solid-panes 4.4.2-4 → 4.4.2-5

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 (170) hide show
  1. package/README.md +0 -30
  2. package/dist/_virtual/_rolldown/runtime.cjs.js +1 -1
  3. package/dist/_virtual/~icons/lucide/folder-open.cjs.js +2 -0
  4. package/dist/_virtual/~icons/lucide/folder-open.cjs.js.map +1 -0
  5. package/dist/_virtual/~icons/lucide/folder-open.esm.js +11 -0
  6. package/dist/_virtual/~icons/lucide/folder-open.esm.js.map +1 -0
  7. package/dist/_virtual/~icons/lucide/layout-dashboard.cjs.js +2 -0
  8. package/dist/_virtual/~icons/lucide/layout-dashboard.cjs.js.map +1 -0
  9. package/dist/_virtual/~icons/lucide/layout-dashboard.esm.js +11 -0
  10. package/dist/_virtual/~icons/lucide/layout-dashboard.esm.js.map +1 -0
  11. package/dist/_virtual/~icons/lucide/settings-2.cjs.js +2 -0
  12. package/dist/_virtual/~icons/lucide/settings-2.cjs.js.map +1 -0
  13. package/dist/_virtual/~icons/lucide/settings-2.esm.js +11 -0
  14. package/dist/_virtual/~icons/lucide/settings-2.esm.js.map +1 -0
  15. package/dist/_virtual/~icons/lucide/users.cjs.js +2 -0
  16. package/dist/_virtual/~icons/lucide/users.cjs.js.map +1 -0
  17. package/dist/_virtual/~icons/lucide/users.esm.js +11 -0
  18. package/dist/_virtual/~icons/lucide/users.esm.js.map +1 -0
  19. package/dist/components/header/Header.cjs.js +1 -1
  20. package/dist/components/header/Header.cjs.js.map +1 -1
  21. package/dist/components/navbar/Navbar.cjs.js +15 -0
  22. package/dist/components/navbar/Navbar.cjs.js.map +1 -0
  23. package/dist/components/navbar/Navbar.d.ts +14 -0
  24. package/dist/components/navbar/Navbar.d.ts.map +1 -0
  25. package/dist/components/navbar/Navbar.esm.js +232 -0
  26. package/dist/components/navbar/Navbar.esm.js.map +1 -0
  27. package/dist/components/navbar/Navbar.styles.cjs.js +2 -0
  28. package/dist/components/navbar/Navbar.styles.cjs.js.map +1 -0
  29. package/dist/components/navbar/Navbar.styles.esm.js +7 -0
  30. package/dist/components/navbar/Navbar.styles.esm.js.map +1 -0
  31. package/dist/components/navbar/index.cjs.js +1 -0
  32. package/dist/components/navbar/index.d.ts +4 -0
  33. package/dist/components/navbar/index.d.ts.map +1 -0
  34. package/dist/components/navbar/index.esm.js +1 -0
  35. package/dist/dashboard/basicPreferences.cjs.js +1 -1
  36. package/dist/dashboard/basicPreferences.cjs.js.map +1 -1
  37. package/dist/dashboard/dashboardPane.cjs.js +1 -1
  38. package/dist/dashboard/dashboardPane.cjs.js.map +1 -1
  39. package/dist/dashboard/homepage.cjs.js +1 -1
  40. package/dist/dashboard/homepage.cjs.js.map +1 -1
  41. package/dist/dashboard/homepage.esm.js +2 -2
  42. package/dist/dashboard/homepage.esm.js.map +1 -1
  43. package/dist/form/pane.cjs.js +1 -1
  44. package/dist/form/pane.cjs.js.map +1 -1
  45. package/dist/form/pane.esm.js +2 -1
  46. package/dist/form/pane.esm.js.map +1 -1
  47. package/dist/home/homePane.cjs.js +1 -1
  48. package/dist/home/homePane.cjs.js.map +1 -1
  49. package/dist/humanReadablePane2.cjs.js.map +1 -1
  50. package/dist/humanReadablePane2.esm.js.map +1 -1
  51. package/dist/index.cjs.js +1 -1
  52. package/dist/index.cjs.js.map +1 -1
  53. package/dist/index.esm.js +12 -7
  54. package/dist/index.esm.js.map +1 -1
  55. package/dist/internal/internalPane2.cjs.js +1 -1
  56. package/dist/internal/internalPane2.cjs.js.map +1 -1
  57. package/dist/mainPage/header.cjs.js +1 -1
  58. package/dist/mainPage/header.cjs.js.map +1 -1
  59. package/dist/mainPage/header.d.ts.map +1 -1
  60. package/dist/mainPage/header.esm.js +64 -17
  61. package/dist/mainPage/header.esm.js.map +1 -1
  62. package/dist/mainPage/index.cjs.js +1 -1
  63. package/dist/mainPage/index.cjs.js.map +1 -1
  64. package/dist/mainPage/index.d.ts +1 -9
  65. package/dist/mainPage/index.d.ts.map +1 -1
  66. package/dist/mainPage/index.esm.js +19 -21
  67. package/dist/mainPage/index.esm.js.map +1 -1
  68. package/dist/mainPage/navbar.cjs.js +2 -0
  69. package/dist/mainPage/navbar.cjs.js.map +1 -0
  70. package/dist/mainPage/navbar.d.ts +3 -0
  71. package/dist/mainPage/navbar.d.ts.map +1 -0
  72. package/dist/mainPage/navbar.esm.js +66 -0
  73. package/dist/mainPage/navbar.esm.js.map +1 -0
  74. package/dist/outline/context.d.ts +1 -1
  75. package/dist/outline/manager2.cjs.js +2 -2
  76. package/dist/outline/manager2.cjs.js.map +1 -1
  77. package/dist/outline/manager2.esm.js +330 -453
  78. package/dist/outline/manager2.esm.js.map +1 -1
  79. package/dist/outline/propertyViews.cjs.js +1 -1
  80. package/dist/outline/propertyViews.cjs.js.map +1 -1
  81. package/dist/outline/queryByExample.esm.js +1 -0
  82. package/dist/outline/queryByExample.esm.js.map +1 -1
  83. package/dist/outline/userInput.cjs.js +3 -3
  84. package/dist/outline/userInput.cjs.js.map +1 -1
  85. package/dist/outline/userInput.esm.js +4 -6
  86. package/dist/outline/userInput.esm.js.map +1 -1
  87. package/dist/pad/padPane2.cjs.js +1 -1
  88. package/dist/pad/padPane2.cjs.js.map +1 -1
  89. package/dist/pad/padPane2.esm.js +2 -1
  90. package/dist/pad/padPane2.esm.js.map +1 -1
  91. package/dist/schedule/schedulePane2.cjs.js +1 -1
  92. package/dist/schedule/schedulePane2.cjs.js.map +1 -1
  93. package/dist/schedule/schedulePane2.esm.js +2 -1
  94. package/dist/schedule/schedulePane2.esm.js.map +1 -1
  95. package/dist/sharing/sharingPane.cjs.js +1 -1
  96. package/dist/sharing/sharingPane.cjs.js.map +1 -1
  97. package/dist/social/editProfileDetails.cjs.js +1 -1
  98. package/dist/social/editProfileDetails.cjs.js.map +1 -1
  99. package/dist/social/socialPane2.cjs.js +1 -1
  100. package/dist/social/socialPane2.cjs.js.map +1 -1
  101. package/dist/social/socialPane2.esm.js +1 -1
  102. package/dist/social/socialSections.cjs.js +1 -1
  103. package/dist/social/socialSections.cjs.js.map +1 -1
  104. package/dist/social/triage.cjs.js +1 -1
  105. package/dist/social/triage.cjs.js.map +1 -1
  106. package/dist/tabbed/tabbedPane.cjs.js +1 -1
  107. package/dist/tabbed/tabbedPane.cjs.js.map +1 -1
  108. package/dist/transaction/pane.cjs.js.map +1 -1
  109. package/dist/transaction/pane.esm.js.map +1 -1
  110. package/dist/transaction/period.cjs.js.map +1 -1
  111. package/dist/transaction/period.esm.js.map +1 -1
  112. package/dist/trustedApplications/trustedApplications.dom.cjs.js +1 -1
  113. package/dist/trustedApplications/trustedApplications.dom.cjs.js.map +1 -1
  114. package/dist/trustedApplications/trustedApplications.utils.cjs.js +1 -1
  115. package/dist/trustedApplications/trustedApplications.utils.cjs.js.map +1 -1
  116. package/dist/trustedApplications/trustedApplications.view.cjs.js +1 -1
  117. package/dist/trustedApplications/trustedApplications.view.cjs.js.map +1 -1
  118. package/dist/utils/paneUtils.cjs.js +2 -0
  119. package/dist/utils/paneUtils.cjs.js.map +1 -0
  120. package/dist/utils/paneUtils.d.ts +19 -0
  121. package/dist/utils/paneUtils.d.ts.map +1 -0
  122. package/dist/utils/paneUtils.esm.js +52 -0
  123. package/dist/utils/paneUtils.esm.js.map +1 -0
  124. package/dist/utils/podUtils.cjs.js +2 -0
  125. package/dist/utils/podUtils.cjs.js.map +1 -0
  126. package/dist/utils/podUtils.d.ts +4 -0
  127. package/dist/utils/podUtils.d.ts.map +1 -0
  128. package/dist/utils/podUtils.esm.js +46 -0
  129. package/dist/utils/podUtils.esm.js.map +1 -0
  130. package/dist/utils/webIdUtils.cjs.js +2 -0
  131. package/dist/utils/webIdUtils.cjs.js.map +1 -0
  132. package/dist/utils/webIdUtils.d.ts +6 -0
  133. package/dist/utils/webIdUtils.d.ts.map +1 -0
  134. package/dist/utils/webIdUtils.esm.js +48 -0
  135. package/dist/utils/webIdUtils.esm.js.map +1 -0
  136. package/dist/versionInfo.cjs.js +1 -1
  137. package/dist/versionInfo.cjs.js.map +1 -1
  138. package/dist/versionInfo.esm.js +3 -3
  139. package/dist/versionInfo.esm.js.map +1 -1
  140. package/package.json +10 -13
  141. package/dist/icons/dashboard.cjs.js +0 -2
  142. package/dist/icons/dashboard.cjs.js.map +0 -1
  143. package/dist/icons/dashboard.esm.js +0 -6
  144. package/dist/icons/dashboard.esm.js.map +0 -1
  145. package/dist/icons/iconHelper.cjs.js +0 -2
  146. package/dist/icons/iconHelper.cjs.js.map +0 -1
  147. package/dist/icons/iconHelper.esm.js +0 -17
  148. package/dist/icons/iconHelper.esm.js.map +0 -1
  149. package/dist/icons/menu.cjs.js +0 -9
  150. package/dist/icons/menu.cjs.js.map +0 -1
  151. package/dist/icons/menu.esm.js +0 -6
  152. package/dist/icons/menu.esm.js.map +0 -1
  153. package/dist/mainPage/footer.cjs.js +0 -2
  154. package/dist/mainPage/footer.cjs.js.map +0 -1
  155. package/dist/mainPage/footer.d.ts +0 -13
  156. package/dist/mainPage/footer.d.ts.map +0 -1
  157. package/dist/mainPage/footer.esm.js +0 -18
  158. package/dist/mainPage/footer.esm.js.map +0 -1
  159. package/dist/mainPage/menu.d.ts +0 -6
  160. package/dist/mainPage/menu.d.ts.map +0 -1
  161. package/dist/mainPage/menu2.cjs.js +0 -2
  162. package/dist/mainPage/menu2.cjs.js.map +0 -1
  163. package/dist/mainPage/menu2.esm.js +0 -184
  164. package/dist/mainPage/menu2.esm.js.map +0 -1
  165. package/dist/profileUtils/ownerProfile.cjs.js +0 -2
  166. package/dist/profileUtils/ownerProfile.cjs.js.map +0 -1
  167. package/dist/profileUtils/ownerProfile.d.ts +0 -5
  168. package/dist/profileUtils/ownerProfile.d.ts.map +0 -1
  169. package/dist/profileUtils/ownerProfile.esm.js +0 -50
  170. package/dist/profileUtils/ownerProfile.esm.js.map +0 -1
@@ -1,30 +1,28 @@
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}.iconTD{vertical-align:top;border:none;width:0;margin:.2em;padding:0}.labelTD{width:100%}.paneIconTray{justify-content:flex-start;align-items:center;display:flex}.paneShown{border-radius:var(--border-radius-md,.5rem);width:24px;margin-left:var(--spacing-small,.1rem);padding:.188rem;background-color:var(--header-menu-item-hover,#e6dcff)!important;border:none!important}.paneHidden{border-radius:var(--border-radius-md,.5rem);width:24px;margin-left:var(--spacing-small,.1rem);padding:.188rem}.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{margin:var(--spacing-xxxs,.2rem);vertical-align:top;border:none;flex-direction:row;justify-content:space-between;padding:0;display:flex}`)),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}.iconTD{vertical-align:top;border:none;width:0;margin:.2em;padding:0}.labelTD{width:100%}.paneIconTray{justify-content:flex-start;align-items:center;display:flex}.paneShown{border-radius:var(--border-radius-md,.5rem);width:24px;margin-left:var(--spacing-small,.1rem);padding:.188rem;background-color:var(--header-menu-item-hover,#e6dcff)!important;border:none!important}.paneHidden{border-radius:var(--border-radius-md,.5rem);width:24px;margin-left:var(--spacing-small,.1rem);padding:.188rem}.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{border:1px solid var(--color-border,#444);vertical-align:top;background:var(--solid-ui-color-white,#fff);border-radius:5px;flex-direction:row;justify-content:space-between;display:flex;overflow:hidden}`)),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
- import { getNameOfPodOwner as i } from "../profileUtils/ownerProfile.esm.js";
6
+ import { loadContainerRepresentation as i } from "../utils/podUtils.esm.js";
7
7
  import a from "../icons/person.esm.js";
8
8
  import o from "../icons/friends.esm.js";
9
- import s from "../icons/folder.esm.js";
10
- import c from "../icons/dashboard.esm.js";
11
- import * as l from "solid-ui";
12
- import { authSession as u, authn as d, store as f } from "solid-logic";
13
- import * as p from "pane-registry";
14
- import * as m from "rdflib";
9
+ import * as s from "solid-ui";
10
+ import { store as c } from "solid-logic";
11
+ import * as l from "pane-registry";
12
+ import * as u from "rdflib";
15
13
  //#region src/outline/manager.js
16
14
  /* istanbul ignore file */
17
- var h = a, g = o, _ = s, v = c;
18
- function y(a) {
15
+ var d = a, f = o;
16
+ function p(a) {
19
17
  let o = a.dom;
20
18
  this.document = a.dom, this.context = a, this.outlineIcons = t, this.labeller = this.labeller || {}, this.labeller.LanguagePreference = "";
21
- let s = this, c = this, y = [];
22
- this.selection = y, this.ancestor = l.utils.ancestor, this.sparql = m.UpdateManager, this.kb = f;
23
- let b = f, x = f.fetcher;
19
+ let p = this, m = this, h = [];
20
+ this.selection = h, this.ancestor = s.utils.ancestor, this.sparql = u.UpdateManager, this.kb = c;
21
+ let g = c, _ = c.fetcher;
24
22
  o.outline = this, this.qs = new r(), this.UserInput = new n(this), this.clipboardAddress = "tabulator:clipboard", this.UserInput.clipboardInit(this.clipboardAddress);
25
- let S = this.outlineElement;
23
+ let v = this.outlineElement;
26
24
  this.init = function() {
27
- let e = k();
25
+ let e = x();
28
26
  e.outline = this;
29
27
  }, this.getLayoutMode = function() {
30
28
  let e = this.context?.environment?.layout;
@@ -34,364 +32,252 @@ function y(a) {
34
32
  return e <= 768 || t && e <= 1024 ? "mobile" : "desktop";
35
33
  }
36
34
  return "desktop";
37
- }, C.lastkbsize = 0;
38
- function C(e) {
35
+ }, y.lastkbsize = 0;
36
+ function y(e) {
39
37
  let t = [];
40
38
  for (let e = arguments.length - 1; e > 0; e--) t[e - 1] = arguments[e];
41
39
  let n = (/* @__PURE__ */ new Date()).getTime(), r = e.apply(e, t), i = (/* @__PURE__ */ new Date()).getTime();
42
- return l.log.info("BENCHMARK: kb delta: " + (b.statements.length - C.lastkbsize) + ", time elapsed for " + e + " was " + (i - n) + "ms"), C.lastkbsize = b.statements.length, r;
40
+ return s.log.info("BENCHMARK: kb delta: " + (g.statements.length - y.lastkbsize) + ", time elapsed for " + e + " was " + (i - n) + "ms"), y.lastkbsize = g.statements.length, r;
43
41
  }
44
- function ee(e, n, r) {
45
- let i = l.utils.AJARImage(t.src.icon_remove_node, "remove", void 0, o);
46
- return i.addEventListener("click", ue), i.node = r, i.setAttribute("about", n.toNT()), i.style.marginLeft = "5px", i.style.marginRight = "10px", e.appendChild(i), i;
42
+ function b(e, n, r) {
43
+ let i = s.utils.AJARImage(t.src.icon_remove_node, "remove", void 0, o);
44
+ return i.addEventListener("click", G), i.node = r, i.setAttribute("about", n.toNT()), i.style.marginLeft = "5px", i.style.marginRight = "10px", e.appendChild(i), i;
47
45
  }
48
46
  this.appendAccessIcons = function(e, t, n) {
49
47
  if (n.termType !== "NamedNode") return;
50
48
  let r = e.uris(n);
51
49
  r.sort();
52
50
  let i = null;
53
- for (let e = 0; e < r.length; e++) r[e] !== i && (i = r[e], c.appendAccessIcon(t, i));
51
+ for (let e = 0; e < r.length; e++) r[e] !== i && (i = r[e], m.appendAccessIcon(t, i));
54
52
  }, this.appendAccessIcon = function(e, n) {
55
53
  if (!n) return "";
56
- let r = m.uri.docpart(n);
54
+ let r = u.uri.docpart(n);
57
55
  if (r.slice(0, 5) !== "http:") return "";
58
- let i = x.getState(r), a, s, c;
56
+ let i = _.getState(r), a, c, l;
59
57
  switch (i) {
60
58
  case "unrequested":
61
- a = t.src.icon_unrequested, s = "fetch", c = le;
59
+ a = t.src.icon_unrequested, c = "fetch", l = W;
62
60
  break;
63
61
  case "requested":
64
- a = t.src.icon_requested, s = "fetching", c = K;
62
+ a = t.src.icon_requested, c = "fetching", l = H;
65
63
  break;
66
64
  case "fetched":
67
- a = t.src.icon_fetched, c = ce, s = "loaded";
65
+ a = t.src.icon_fetched, l = U, c = "loaded";
68
66
  break;
69
67
  case "failed":
70
- a = t.src.icon_failed, s = "failed", c = K;
68
+ a = t.src.icon_failed, c = "failed", l = H;
71
69
  break;
72
70
  case "unpermitted":
73
- a = t.src.icon_failed, c = K, s = "no perm";
71
+ a = t.src.icon_failed, l = H, c = "no perm";
74
72
  break;
75
73
  case "unfetchable":
76
- a = t.src.icon_failed, c = K, s = "cannot fetch";
77
- break;
78
- default:
79
- l.log.error("?? state = " + i);
74
+ a = t.src.icon_failed, l = H, c = "cannot fetch";
80
75
  break;
76
+ default: s.log.error("?? state = " + i);
81
77
  }
82
- let u = l.utils.AJARImage(a, s, t.tooltips[a].replace(/[Tt]his resource/, r), o);
83
- return u.setAttribute("uri", n), u.addEventListener("click", c), ae(u, r), e.appendChild(u), u;
78
+ let d = s.utils.AJARImage(a, c, t.tooltips[a].replace(/[Tt]his resource/, r), o);
79
+ return d.setAttribute("uri", n), d.addEventListener("click", l), N(d, r), e.appendChild(d), d;
84
80
  }, this.outlineObjectTD = function(e, t, n, r) {
85
81
  let i = o.createElement("td");
86
- return i.classList.add("obj"), i.setAttribute("notSelectable", "false"), i.style.margin = "0.2em", e ? (i.style.border = "none", i.style.padding = "0", i.style.verticalAlign = "top", (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(l.utils.AJARImage(l.icons.originalIconBase + "tbl-expand-trans.png", "expand", void 0, o)).addEventListener("click", oe)), i.setAttribute("class", "obj"), b.whether(e, l.ns.rdf("type"), l.ns.link("Request")) && (i.className = "undetermined"), t ||= pe, i.appendChild(t(e)), n && ee(i, e, n), i.tabulatorSelect = function() {
87
- W(this, !0);
82
+ return i.classList.add("obj"), i.setAttribute("notSelectable", "false"), i.style.margin = "0.2em", e ? (i.style.border = "none", i.style.padding = "0", i.style.verticalAlign = "top", (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(s.utils.AJARImage(s.icons.originalIconBase + "tbl-expand-trans.png", "expand", void 0, o)).addEventListener("click", B)), i.setAttribute("class", "obj"), g.whether(e, s.ns.rdf("type"), s.ns.link("Request")) && (i.className = "undetermined"), t ||= ee, i.appendChild(t(e)), n && b(i, e, n), i.tabulatorSelect = function() {
83
+ R(this, !0);
88
84
  }, i.tabulatorDeselect = function() {
89
- W(this, !1);
90
- }, i.addEventListener("click", q), i) : (i.textContent = "No object available.", i);
85
+ R(this, !1);
86
+ }, i.addEventListener("click", K), i) : (i.textContent = "No object available.", i);
91
87
  }, this.outlinePredicateTD = function(e, n, r, i) {
92
88
  let a = o.createElement("TD");
93
89
  a.setAttribute("about", e.toNT()), a.setAttribute("class", i ? "pred internal" : "pred");
94
- let s;
90
+ let c;
95
91
  switch (e.termType) {
96
92
  case "BlankNode":
97
93
  a.className = "undetermined";
98
94
  break;
99
95
  case "NamedNode":
100
- s = l.utils.predicateLabelForXML(e, r);
96
+ c = s.utils.predicateLabelForXML(e, r);
101
97
  break;
102
- case "Collection": s = l.utils.predicateLabelForXML(e.elements[0], r);
98
+ case "Collection": c = s.utils.predicateLabelForXML(e.elements[0], r);
103
99
  }
104
- s = s ? s.slice(0, 1).toUpperCase() + s.slice(1) : "...";
105
- let c = o.createElement("TD");
106
- c.classList.add("labelTD"), c.setAttribute("notSelectable", "true"), c.appendChild(o.createTextNode(s)), a.appendChild(c), c.style.width = "100%", a.appendChild(L.construct(o));
100
+ c = c ? c.slice(0, 1).toUpperCase() + c.slice(1) : "...";
101
+ let l = o.createElement("TD");
102
+ l.classList.add("labelTD"), l.setAttribute("notSelectable", "true"), l.appendChild(o.createTextNode(c)), a.appendChild(l), l.style.width = "100%", a.appendChild(M.construct(o));
107
103
  for (let e in t.termWidgets) {
108
104
  if (!n || !n.AJAR_statement) break;
109
- t.termWidgets[e].filter && t.termWidgets[e].filter(n.AJAR_statement, "pred", r) && L.addIcon(a, t.termWidgets[e]);
105
+ t.termWidgets[e].filter && t.termWidgets[e].filter(n.AJAR_statement, "pred", r) && M.addIcon(a, t.termWidgets[e]);
110
106
  }
111
107
  return a.tabulatorSelect = function() {
112
- W(this, !0);
108
+ R(this, !0);
113
109
  }, a.tabulatorDeselect = function() {
114
- W(this, !1);
115
- }, a.addEventListener("click", q), a;
110
+ R(this, !1);
111
+ }, a.addEventListener("click", K), a;
116
112
  };
117
- async function w(e = {}) {
118
- console.log("globalAppTabs @@");
119
- let t = o.createElement("div"), n = d.currentUser();
120
- if (!n) throw alert("Must be logged in for this"), Error("Not logged in");
121
- let r = await T(), i = e.selectedTab ? r.find((t) => t.paneName === e.selectedTab || t.tabName === e.selectedTab) : r[0];
122
- if (!i) return t;
123
- t.dataset.globalPaneName = i.tabName || i.paneName;
124
- let a = t.appendChild(o.createElement("div")), s = p.byName(i.paneName), l = a.appendChild(o.createElement("table"));
125
- return c.GotoSubject(i.subject || n, !0, s, !1, void 0, l), t;
126
- }
127
- this.getDashboard = w;
128
- async function T() {
129
- let e = d.currentUser();
130
- if (!e) return [];
131
- o.createElement("div");
132
- let t = [{
133
- paneName: "profile",
134
- subject: e,
135
- label: "Your profile",
136
- icon: h
137
- }, {
138
- paneName: "social",
139
- subject: e,
140
- label: "Your friends",
141
- icon: g
142
- }], [n] = await Promise.all([r()]);
143
- return t.push(...n), t.push({
144
- paneName: "home",
145
- label: "Your dashboard",
146
- icon: v
147
- }, {
148
- paneName: "basicPreferences",
149
- label: "Your preferences",
150
- icon: l.icons.iconBase + "noun_Sliders_341315_000000.svg"
151
- }), t;
152
- async function r() {
153
- async function t(e) {
154
- return await j(e), b.holds(e, Q.rdf("type"), Q.space("Storage"), e.doc()) ? (r.push(e), !0) : !1;
155
- }
156
- async function n(e) {
157
- let n = new URL(e), r = n.pathname;
158
- for (; r.length;) if (r = r.substring(0, r.lastIndexOf("/")), await t(b.sym(`${n.origin}${r}/`))) return;
159
- }
160
- try {
161
- await b.fetcher.load(e.doc());
162
- } catch (e) {
163
- return console.error("Unable to load profile", e), [];
164
- }
165
- let r = b.each(e, Q.space("storage"), null, e.doc());
166
- await Promise.all(r.map(async (e) => {
167
- await j(e);
168
- }));
169
- try {
170
- await n(new URL(window.location.href).searchParams.get("uri") || window.location.href);
171
- } catch (e) {
172
- console.error("cannot load container", e);
173
- }
174
- function a(e) {
175
- let t = [];
176
- return e.forEach((e) => {
177
- t.find((t) => t.equals(e)) || t.push(e);
178
- }), t;
179
- }
180
- return r = a(r), r.length ? Promise.all(r.map(async (t, n) => {
181
- function r(e) {
182
- return e.uri.split("//")[1].slice(0, -1);
183
- }
184
- let a = await i(t, b, x) || "", o = r(e).startsWith(r(t)) ? "Your storage" : a.trim() === "" ? r(t) : a + "'s storage";
185
- return {
186
- paneName: "folder",
187
- tabName: `folder-${n}`,
188
- label: o,
189
- subject: t,
190
- icon: _
191
- };
192
- })) : [];
193
- }
194
- }
195
- this.getDashboardItems = T;
196
- function te() {
197
- let e = O(), t = k();
198
- e.innerHTML = "", D(e), E(t);
199
- }
200
- u.events.on("logout", te);
201
- function E(e) {
202
- e.removeAttribute("hidden"), e.style.display = "";
113
+ function x() {
114
+ return w("OutlineView", "Resource browser");
203
115
  }
204
- function D(e) {
205
- e.setAttribute("hidden", ""), e.style.display = "none";
116
+ function S() {
117
+ return document.querySelector("solid-panes-navbar");
206
118
  }
207
- async function ne(e, t = {}) {
208
- let n = O(), r = k();
209
- if (n.childNodes.length > 0) {
210
- let i = n.firstElementChild;
211
- if (i && t.pane && i.dataset.globalPaneName === t.pane && i.dataset.subject === (e && e.value || "")) {
212
- D(r), E(n);
213
- return;
214
- }
215
- n.innerHTML = "";
216
- }
217
- let i = await w({ selectedTab: t.pane });
218
- D(r), E(n), n.appendChild(i);
119
+ function C() {
120
+ let e = S();
121
+ e && e.classList.remove("navbar--hidden");
219
122
  }
220
- this.showDashboard = ne;
221
- function O() {
222
- return A("GlobalDashboard", "Dashboard");
223
- }
224
- function k() {
225
- return A("OutlineView", "Resource browser");
226
- }
227
- function A(e) {
228
- let t = document.getElementById("app-view") || document.getElementById("MainContent") || document.querySelector("[role=\"main\"]") || document.body;
229
- if (e === "OutlineView") {
123
+ function w(e) {
124
+ if (document.getElementById("MainContent") || document.body, e === "OutlineView") {
230
125
  let e = document.getElementById("OutlineView");
231
126
  if (e) return e;
127
+ let t = document.getElementById("MainContent") || document.body;
232
128
  if (t) {
233
129
  let e = document.createElement("table");
234
130
  return e.id = "OutlineView", e.classList.add("outline-view"), e.setAttribute("aria-label", "Resource browser"), t.appendChild(e), e;
235
131
  }
236
132
  }
237
- return document.getElementById(e) || (() => {
238
- let n = document.createElement("section");
239
- return n.id = e, n.setAttribute("aria-label", "Dashboard"), n.classList.add("global-dashboard"), t.appendChild(n);
240
- })();
241
- }
242
- async function j(e) {
243
- if (!b.any(e, Q.ldp("contains"), void 0, e.doc())) {
244
- let t = (await b.fetcher.webOperation("GET", e.uri, b.fetcher.initFetchOptions(e.uri, { headers: { accept: "text/turtle" } }))).responseText;
245
- m.parse(t, b, e.uri, "text/turtle");
246
- }
247
133
  }
248
- async function M(e, t) {
249
- e.uri.endsWith("/") && await j(e);
134
+ async function T(e, t) {
135
+ e.uri.endsWith("/") && await i(e);
250
136
  let n = t.session.paneRegistry, r = n.list.filter((n) => n.label(e, t) && !n.global);
251
137
  if (r.length === 0) return [n.byName("internal")];
252
- let i = await l.login.filterAvailablePanes(r);
253
- return i.length === 0 ? [r[0]] : n.list.indexOf(r[0]) < n.list.indexOf(i[0]) ? [r[0]].concat(i) : i;
138
+ let a = await s.login.filterAvailablePanes(r);
139
+ return a.length === 0 ? [r[0]] : n.list.indexOf(r[0]) < n.list.indexOf(a[0]) ? [r[0]].concat(a) : a;
254
140
  }
255
- function re(e, t) {
141
+ function E(e, t) {
256
142
  return e.find((e) => e.shouldGetFocus && e.shouldGetFocus(t)) || e[0];
257
143
  }
258
- async function ie(e, t, n) {
259
- async function r(n, r = {}) {
260
- let s = "width: 24px; border-radius: 0.5em; border-top: solid #222 1px; border-left: solid #222 0.1em; border-bottom: solid #eee 0.1em; border-right: solid #eee 0.1em; margin-left: 1em; padding: 3px; background-color: #ffd;", c = "width: 24px; border-radius: 0.5em; margin-left: 1em; padding: 3px", u = n.appendChild(o.createElement("nav"));
144
+ async function D(e, t, n) {
145
+ async function r(n = {}) {
146
+ let r = n.hideList ? [] : await T(e, a);
147
+ c.firstPane = t || E(r, e);
148
+ }
149
+ async function i(n, r = {}) {
150
+ let i = "width: 24px; border-radius: 0.5em; border-top: solid #222 1px; border-left: solid #222 0.1em; border-bottom: solid #eee 0.1em; border-right: solid #eee 0.1em; margin-left: 1em; padding: 3px; background-color: #ffd;", l = "width: 24px; border-radius: 0.5em; margin-left: 1em; padding: 3px", u = n.appendChild(o.createElement("nav"));
261
151
  u.style = "display:flex; justify-content: flex-start; align-items: center;";
262
- let d = r.hideList ? [] : await M(e, a);
263
- i.firstPane = t || re(d, e);
264
- let f = d.indexOf(i.firstPane);
265
- return d.length !== 1 && d.forEach((t, d) => {
266
- let p = t.label(e, a), m = "";
267
- m = t.name === "profile" ? h : t.name === "social" ? g : typeof t.icon == "function" ? t.icon(e, a) : t.icon;
268
- let _ = l.utils.AJARImage(m, p, p, o);
269
- m instanceof Promise && m.then((e) => {
152
+ let p = r.hideList ? [] : await T(e, a);
153
+ c.firstPane = t || E(p, e);
154
+ let m = p.indexOf(c.firstPane);
155
+ return p.length !== 1 && p.forEach((t, p) => {
156
+ let h = t.label(e, a), g = "";
157
+ g = t.name === "profile" ? d : t.name === "social" ? f : typeof t.icon == "function" ? t.icon(e, a) : t.icon;
158
+ let _ = s.utils.AJARImage(g, h, h, o);
159
+ g instanceof Promise && g.then((e) => {
270
160
  _.setAttribute("src", e);
271
161
  }).catch((e) => {
272
162
  console.error("Error resolving async icon:", e);
273
- }), _.style = t === i.firstPane ? s : c, function(t, i) {
163
+ }), _.style = t === c.firstPane ? i : l, function(t, c) {
274
164
  t.addEventListener("click", function(u) {
275
165
  let d;
276
166
  for (d = n; d.parentNode && d.nodeName !== "TABLE"; d = d.parentNode);
277
167
  if (d.nodeName !== "TABLE") throw Error("outline: internal error.");
278
168
  let f = function(e) {
279
- for (let t = d.firstChild; t; t = t.nextSibling) t.pane !== void 0 && (!e || t.pane === e) && (t.paneButton && (t.paneButton.setAttribute("class", "paneHidden"), t.paneButton.style = c), N(t), t.pane.requireQueryButton && d.parentNode.className && p === 1 && o.getElementById("queryButton") && o.getElementById("queryButton").setAttribute("style", "display:none;"));
169
+ for (let t = d.firstChild; t; t = t.nextSibling) t.pane !== void 0 && (!e || t.pane === e) && (t.paneButton && (t.paneButton.setAttribute("class", "paneHidden"), t.paneButton.style = l), O(t), t.pane.requireQueryButton && d.parentNode.className && p === 1 && o.getElementById("queryButton") && o.getElementById("queryButton").setAttribute("style", "display:none;"));
280
170
  };
281
171
  t.getAttribute("class") === "paneHidden" ? (u.shiftKey || f(), function(n) {
282
172
  let i;
283
- l.log.info("outline: Rendering pane (2): " + n.name);
173
+ s.log.info("outline: Rendering pane (2): " + n.name);
284
174
  try {
285
175
  i = n.render(e, a, r);
286
176
  } catch (e) {
287
177
  i = o.createElement("div"), i.setAttribute("class", "exceptionPane");
288
178
  let t = o.createElement("pre");
289
- i.appendChild(t), t.appendChild(o.createTextNode(l.utils.stackString(e)));
179
+ i.appendChild(t), t.appendChild(o.createTextNode(s.utils.stackString(e)));
290
180
  }
291
181
  n.requireQueryButton && o.getElementById("queryButton") && o.getElementById("queryButton").removeAttribute("style");
292
- let s = d.firstChild.nextSibling, c = o.createElement("tr"), u = c.appendChild(o.createElement("td"));
293
- u.setAttribute("colspan", "2"), u.style.textAlign = "left", u.style.width = "100%", u.appendChild(i), s ? d.insertBefore(c, s) : d.appendChild(c), c.pane = n, c.paneButton = t;
294
- }(i), t.setAttribute("class", "paneShown"), t.style = s) : (f(i), t.setAttribute("class", "paneHidden"), t.style = c);
182
+ let c = d.firstChild.nextSibling, l = o.createElement("tr"), u = l.appendChild(o.createElement("td"));
183
+ u.setAttribute("colspan", "2"), u.style.textAlign = "left", u.style.width = "100%", u.appendChild(i), c ? d.insertBefore(l, c) : d.appendChild(l), l.pane = n, l.paneButton = t;
184
+ }(c), t.setAttribute("class", "paneShown"), t.style = i) : (f(c), t.setAttribute("class", "paneHidden"), t.style = l);
295
185
  let p = 0;
296
186
  for (let e = d.firstChild; e; e = e.nextSibling) e.pane && e.pane.requireQueryButton && p++;
297
187
  }, !1);
298
- }(_, t), _.setAttribute("class", d === f ? "paneShown" : "paneHidden"), d === f && (i.paneButton = _), u.appendChild(_);
188
+ }(_, t), _.setAttribute("class", p === m ? "paneShown" : "paneHidden"), p === m && (c.paneButton = _), u.appendChild(_);
299
189
  }), u;
300
190
  }
301
- let i = o.createElement("tr");
302
- n.hover && i.setAttribute("class", "hoverControl");
303
- let s = i.appendChild(o.createElement("td"));
304
- s.setAttribute("style", "margin: 0.2em; border: none; padding-top: 0; padding-bottom: 0; vertical-align: top;display:flex; justify-content: space-between; flex-direction: row;background-color: var(--color-background, #F8F9FB);"), s.setAttribute("notSelectable", "true"), s.setAttribute("about", e.toNT()), s.setAttribute("colspan", "2");
305
- let c = s.appendChild(o.createElement("div"));
306
- c.style = "display:flex; justify-content: flex-start; align-items: center; flex-wrap: wrap;";
307
- let u = !!t;
308
- if (!n.solo && !u) {
309
- c.appendChild(l.utils.AJARImage(l.icons.originalIconBase + "tbl-collapse.png", "collapse", void 0, o)).addEventListener("click", se);
310
- let t = c.appendChild(o.createElement("h1"));
311
- t.appendChild(o.createTextNode(l.utils.label(e))), t.style = "font-size: 150%; margin: 0 0.6em 0 0; padding: 0.1em 0.4em;background-color: var(--color-background, #F8F9FB);", l.widgets.makeDraggable(t, e);
191
+ let c = o.createElement("tr");
192
+ n.hover && c.setAttribute("class", "hoverControl");
193
+ let l = c.appendChild(o.createElement("td"));
194
+ l.classList.add("tdFlex"), l.setAttribute("notSelectable", "true"), l.setAttribute("about", e.toNT()), l.setAttribute("colspan", "2");
195
+ let u = l.appendChild(o.createElement("div"));
196
+ u.style = "display:flex; justify-content: flex-start; align-items: center; flex-wrap: wrap;";
197
+ let p = !!t;
198
+ if (!n.solo && !p) {
199
+ u.appendChild(s.utils.AJARImage(s.icons.originalIconBase + "tbl-collapse.png", "collapse", void 0, o)).addEventListener("click", V);
200
+ let t = u.appendChild(o.createElement("h1"));
201
+ t.appendChild(o.createTextNode(s.utils.label(e))), t.style = "font-size: 150%; margin: 0 0.6em 0 0; padding: 0.1em 0.4em;background-color: var(--color-background, #F8F9FB);", s.widgets.makeDraggable(t, e), u.appendChild(await i(l, { hideList: p }));
312
202
  }
313
- return c.appendChild(await r(s, { hideList: u })), i.firstChild.tabulatorSelect = function() {
314
- W(this, !0);
315
- }, i.firstChild.tabulatorDeselect = function() {
316
- W(this, !1);
317
- }, i;
203
+ return await r({ hideList: p }), u.childNodes.length === 0 && (c.style.display = "none"), c;
318
204
  }
319
- function N(e) {
205
+ function O(e) {
320
206
  let t = e.parentNode, n = t.parentNode, r = o.createElement("table");
321
207
  r.classList.add("placeholderTable"), n.replaceChild(r, t), t.removeChild(e), n.replaceChild(t, r);
322
208
  }
323
- let P = this.propertyTable = function(e, t, n, r) {
324
- return l.log.debug("Property table for: " + e), e = b.canon(e), t ? (l.log.info("Re-expand: " + t), t) : (t = o.createElement("table"), t.classList.add("tableFullWidth"), ie(e, n, r).then((n) => {
209
+ let k = this.propertyTable = function(e, t, n, r) {
210
+ return s.log.debug("Property table for: " + e), e = g.canon(e), t ? (s.log.info("Re-expand: " + t), t) : (t = o.createElement("table"), t.classList.add("tableFullWidth"), D(e, n, r).then((n) => {
325
211
  if (t.appendChild(n), n.firstPane) {
326
212
  let i;
327
213
  try {
328
- l.log.info("outline: Rendering pane (1): " + n.firstPane.name), i = n.firstPane.render(e, a, r);
214
+ s.log.info("outline: Rendering pane (1): " + n.firstPane.name), i = n.firstPane.render(e, a, r);
329
215
  } catch (e) {
330
216
  i = o.createElement("div"), i.setAttribute("class", "exceptionPane");
331
217
  let t = o.createElement("pre");
332
- i.appendChild(t), t.appendChild(o.createTextNode(l.utils.stackString(e)));
218
+ i.appendChild(t), t.appendChild(o.createTextNode(s.utils.stackString(e)));
333
219
  }
334
- let s = o.createElement("tr"), c = s.appendChild(o.createElement("td"));
335
- c.setAttribute("colspan", "2"), c.style.textAlign = "left", c.style.width = "100%", c.style.backgroundColor = "var(--color-background, #F8F9FB)", c.appendChild(i), n.firstPane.requireQueryButton && o.getElementById("queryButton") && o.getElementById("queryButton").removeAttribute("style"), t.appendChild(s), s.pane = n.firstPane, s.paneButton = n.paneButton;
220
+ let c = o.createElement("tr"), l = c.appendChild(o.createElement("td"));
221
+ l.setAttribute("colspan", "2"), l.style.textAlign = "left", l.style.width = "100%", l.style.backgroundColor = "var(--color-background, #F8F9FB)", l.appendChild(i), n.firstPane.requireQueryButton && o.getElementById("queryButton") && o.getElementById("queryButton").removeAttribute("style"), t.appendChild(c), c.pane = n.firstPane, c.paneButton = n.paneButton;
336
222
  }
337
223
  }), t);
338
224
  };
339
- function F(e, t, n) {
225
+ function A(e, t, n) {
340
226
  let r = e.createElement("TR");
341
227
  r.AJAR_statement = t, r.AJAR_inverse = n, r.setAttribute("predTR", "true");
342
- let i = c.outlinePredicateTD(t.predicate, r, n);
228
+ let i = m.outlinePredicateTD(t.predicate, r, n);
343
229
  return r.appendChild(i), r;
344
230
  }
345
- this.propertyTR = F;
346
- function I(e, t, n, r) {
347
- if (l.log.debug("Property list length = " + t.length), t.length === 0) return "";
348
- let i, a, u;
231
+ this.propertyTR = A;
232
+ function j(e, t, n, r) {
233
+ if (s.log.debug("Property list length = " + t.length), t.length === 0) return "";
234
+ let i, a, c;
349
235
  n ? (i = function(e) {
350
236
  return e.subject;
351
- }, t = t.sort(l.utils.RDFComparePredicateSubject)) : (i = function(e) {
237
+ }, t = t.sort(s.utils.RDFComparePredicateSubject)) : (i = function(e) {
352
238
  return e.object;
353
- }, t = t.sort(l.utils.RDFComparePredicateObject));
354
- let d = t.length;
355
- for (a = 0; a < d; a++) {
356
- let f = t[a];
357
- if (r && !r(f.predicate, n)) continue;
358
- let p = F(o, f, n);
359
- e.appendChild(p);
360
- let m = p.firstChild, h = $.defaults[f.predicate.uri], g = 0, _ = 0, v = 0;
361
- for (u = 0; u + a < d && t[a + u].predicate.sameTerm(f.predicate); u++) u > 0 && i(t[a + u]).sameTerm(i(t[a + u - 1])) && g++, i(t[a + u]).lang && s.labeller.LanguagePreference && (_ += 1, i(t[a + u]).lang.indexOf(s.labeller.LanguagePreference) >= 0 && v++);
362
- if (v > 0 && _ === g + 1) {
363
- for (let e = a; e <= a + g; e++) if (s.labeller.LanguagePreference && i(t[e]).lang.indexOf(s.labeller.LanguagePreference) >= 0) {
364
- p.appendChild(c.outlineObjectTD(i(t[e]), h, void 0, f));
239
+ }, t = t.sort(s.utils.RDFComparePredicateObject));
240
+ let l = t.length;
241
+ for (a = 0; a < l; a++) {
242
+ let u = t[a];
243
+ if (r && !r(u.predicate, n)) continue;
244
+ let d = A(o, u, n);
245
+ e.appendChild(d);
246
+ let f = d.firstChild, h = $.defaults[u.predicate.uri], _ = 0, v = 0, y = 0;
247
+ for (c = 0; c + a < l && t[a + c].predicate.sameTerm(u.predicate); c++) c > 0 && i(t[a + c]).sameTerm(i(t[a + c - 1])) && _++, i(t[a + c]).lang && p.labeller.LanguagePreference && (v += 1, i(t[a + c]).lang.indexOf(p.labeller.LanguagePreference) >= 0 && y++);
248
+ if (y > 0 && v === _ + 1) {
249
+ for (let e = a; e <= a + _; e++) if (p.labeller.LanguagePreference && i(t[e]).lang.indexOf(p.labeller.LanguagePreference) >= 0) {
250
+ d.appendChild(m.outlineObjectTD(i(t[e]), h, void 0, u));
365
251
  break;
366
252
  }
367
- a += g;
253
+ a += _;
368
254
  continue;
369
255
  }
370
- p.appendChild(c.outlineObjectTD(i(f), h, void 0, f)), p.showNobj = function(r) {
371
- let s = u - g, d = 2 * r < s ? r : s, p = [];
372
- if (s !== 1) {
373
- m.setAttribute("rowspan", d === s ? s : r + 1);
374
- let g;
375
- d < s && d === 1 && m.setAttribute("rowspan", 2);
376
- let _ = 0;
377
- for (g = 1; g < u; g++) if (b.canon(i(t[a + g])).sameTerm(b.canon(i(t[a + g - 1])))) l.log.info("there are duplicates here: %s", t[a + g - 1]);
256
+ d.appendChild(m.outlineObjectTD(i(u), h, void 0, u)), d.showNobj = function(r) {
257
+ let l = c - _, d = 2 * r < l ? r : l, p = [];
258
+ if (l !== 1) {
259
+ f.setAttribute("rowspan", d === l ? l : r + 1);
260
+ let _;
261
+ d < l && d === 1 && f.setAttribute("rowspan", 2);
262
+ let v = 0;
263
+ for (_ = 1; _ < c; _++) if (g.canon(i(t[a + _])).sameTerm(g.canon(i(t[a + _ - 1])))) s.log.info("there are duplicates here: %s", t[a + _ - 1]);
378
264
  else {
379
- _++, f = t[a + g], h = $.defaults[f.predicate.uri];
265
+ v++, u = t[a + _], h = $.defaults[u.predicate.uri];
380
266
  let r = o.createElement("tr");
381
- r.style.colspan = "1", r.appendChild(c.outlineObjectTD(i(t[a + g]), h, void 0, f)), r.AJAR_statement = f, r.AJAR_inverse = n, e.appendChild(r), _ >= d && (r.style.display = "none", p.push(r));
267
+ r.style.colspan = "1", r.appendChild(m.outlineObjectTD(i(t[a + _]), h, void 0, u)), r.AJAR_statement = u, r.AJAR_inverse = n, e.appendChild(r), v >= d && (r.style.display = "none", p.push(r));
382
268
  }
383
- d === s && m.setAttribute("rowspan", _ + 1);
269
+ d === l && f.setAttribute("rowspan", v + 1);
384
270
  }
385
- if (d < s) {
271
+ if (d < l) {
386
272
  let t = o.createElement("tr"), n = t.appendChild(o.createElement("td"));
387
- if (n.setAttribute("style", "margin: 0.2em; border: none; padding: 0; vertical-align: top;"), n.setAttribute("notSelectable", "false"), s > r) {
273
+ if (n.setAttribute("style", "margin: 0.2em; border: none; padding: 0; vertical-align: top;"), n.setAttribute("notSelectable", "false"), l > r) {
388
274
  let e = o.createElement("a");
389
275
  n.appendChild(e);
390
276
  let t = (function(e) {
391
- return e(m, u, g, r);
277
+ return e(f, c, _, r);
392
278
  })(function(t, n, r, i) {
393
279
  return function(n) {
394
- e.innerHTML = "", n === "none" ? (e.appendChild(l.utils.AJARImage(l.icons.originalIconBase + "tbl-more-trans.png", "more", "See all", o)), e.appendChild(o.createTextNode(s - i + " more...")), t.setAttribute("rowspan", i + 1)) : (e.appendChild(l.utils.AJARImage(l.icons.originalIconBase + "tbl-shrink.png", "(less)", void 0, o)), t.setAttribute("rowspan", s + 1));
280
+ e.innerHTML = "", n === "none" ? (e.appendChild(s.utils.AJARImage(s.icons.originalIconBase + "tbl-more-trans.png", "more", "See all", o)), e.appendChild(o.createTextNode(l - i + " more...")), t.setAttribute("rowspan", i + 1)) : (e.appendChild(s.utils.AJARImage(s.icons.originalIconBase + "tbl-shrink.png", "(less)", void 0, o)), t.setAttribute("rowspan", l + 1));
395
281
  for (let e = 0; e < p.length; e++) {
396
282
  let t = p[e];
397
283
  t.style.display = n;
@@ -404,23 +290,23 @@ function y(a) {
404
290
  }
405
291
  e.appendChild(t);
406
292
  }
407
- }, p.showAllobj = function() {
408
- p.showNobj(u - g);
409
- }, p.showNobj(10), a += u - 1;
293
+ }, d.showAllobj = function() {
294
+ d.showNobj(c - _);
295
+ }, d.showNobj(10), a += c - 1;
410
296
  }
411
297
  }
412
- this.appendPropertyTRs = I;
413
- let L = {};
414
- globalThis.termWidget = L, L.construct = function(e) {
298
+ this.appendPropertyTRs = j;
299
+ let M = {};
300
+ globalThis.termWidget = M, M.construct = function(e) {
415
301
  e ||= document;
416
302
  let t = e.createElement("TD");
417
303
  return t.setAttribute("style", "margin: 0.2em; border: none; padding: 0; vertical-align: top;"), t.setAttribute("class", "iconTD"), t.setAttribute("notSelectable", "true"), t.style.width = "0px", t;
418
- }, L.addIcon = function(e, t, n) {
304
+ }, M.addIcon = function(e, t, n) {
419
305
  let r = e.childNodes[1];
420
306
  if (!r) return;
421
- let i = r.style.width, a = l.utils.AJARImage(t.src, t.alt, t.tooltip, o);
307
+ let i = r.style.width, a = s.utils.AJARImage(t.src, t.alt, t.tooltip, o);
422
308
  i = parseInt(i), i += t.width, r.style.width = i + "px", r.appendChild(a), n && a.addEventListener("click", n);
423
- }, L.removeIcon = function(e, t) {
309
+ }, M.removeIcon = function(e, t) {
424
310
  let n = e.childNodes[1], r;
425
311
  if (!n) return;
426
312
  let i = n.style.width;
@@ -432,99 +318,94 @@ function y(a) {
432
318
  } catch (e) {
433
319
  console.log(e), r = "";
434
320
  }
435
- a === m.uri.join(t.src, r) && n.removeChild(i);
321
+ a === u.uri.join(t.src, r) && n.removeChild(i);
436
322
  }
437
- }, L.replaceIcon = function(e, t, n, r) {
438
- L.removeIcon(e, t), L.addIcon(e, n, r);
323
+ }, M.replaceIcon = function(e, t, n, r) {
324
+ M.removeIcon(e, t), M.addIcon(e, n, r);
439
325
  };
440
- function R() {
441
- this.pat = b.formula(), this.vars = [];
442
- }
443
- let z = [];
444
- z[0] = new R();
445
- function ae(e, n) {
446
- l.log.debug("Button callbacks for " + n + " added");
326
+ function N(e, n) {
327
+ s.log.debug("Button callbacks for " + n + " added");
447
328
  let r = function(r) {
448
329
  return function(i) {
449
- return i.indexOf("#") >= 0 && console.log("@@ makeIconCallback: Not expecting # in URI whose state changed: " + i), !e || !s.ancestor(e, "DIV") ? !1 : (i === n && (e.src = r, e.title = t.tooltips[r]), !0);
330
+ return i.indexOf("#") >= 0 && console.log("@@ makeIconCallback: Not expecting # in URI whose state changed: " + i), !e || !p.ancestor(e, "DIV") ? !1 : (i === n && (e.src = r, e.title = t.tooltips[r]), !0);
450
331
  };
451
332
  };
452
- x.addCallback("request", r(t.src.icon_requested)), x.addCallback("done", r(t.src.icon_fetched)), x.addCallback("fail", r(t.src.icon_failed));
333
+ _.addCallback("request", r(t.src.icon_requested)), _.addCallback("done", r(t.src.icon_fetched)), _.addCallback("fail", r(t.src.icon_failed));
453
334
  }
454
- function B(e) {
335
+ function P(e) {
455
336
  let t = e.getAttribute("class");
456
337
  return !!(t && t.indexOf("selected") >= 0);
457
338
  }
458
- function V(e) {
459
- let n = c.targetOf(e).parentNode;
460
- L.replaceIcon(n.parentNode, t.termWidgets.optOn, t.termWidgets.optOff, H), n.parentNode.parentNode.removeAttribute("optional");
339
+ function F(e) {
340
+ let n = m.targetOf(e).parentNode;
341
+ M.replaceIcon(n.parentNode, t.termWidgets.optOn, t.termWidgets.optOff, I), n.parentNode.parentNode.removeAttribute("optional");
461
342
  }
462
- function H(e) {
463
- let n = c.targetOf(e).parentNode;
464
- L.replaceIcon(n.parentNode, t.termWidgets.optOff, t.termWidgets.optOn, V), n.parentNode.parentNode.setAttribute("optional", "true");
343
+ function I(e) {
344
+ let n = m.targetOf(e).parentNode;
345
+ M.replaceIcon(n.parentNode, t.termWidgets.optOff, t.termWidgets.optOn, F), n.parentNode.parentNode.setAttribute("optional", "true");
465
346
  }
466
- function U(e, n) {
347
+ function L(e, n) {
467
348
  let r = t.termWidgets.optOn, i = t.termWidgets.optOff;
468
349
  for (let t = e; t.parentNode; t = t.parentNode) for (;;) if (t.getAttribute("predTR")) {
469
350
  let e = t.getAttribute("parentOfSelected");
470
- e = e ? parseInt(e) : 0, e === 0 && n > 0 && L.addIcon(t.childNodes[0], t.getAttribute("optional") ? r : i, t.getAttribute("optional") ? V : H), e += n, t.setAttribute("parentOfSelected", e), e === 0 && (t.removeAttribute("parentOfSelected"), L.removeIcon(t.childNodes[0], t.getAttribute("optional") ? r : i));
351
+ e = e ? parseInt(e) : 0, e === 0 && n > 0 && M.addIcon(t.childNodes[0], t.getAttribute("optional") ? r : i, t.getAttribute("optional") ? F : I), e += n, t.setAttribute("parentOfSelected", e), e === 0 && (t.removeAttribute("parentOfSelected"), M.removeIcon(t.childNodes[0], t.getAttribute("optional") ? r : i));
471
352
  break;
472
353
  } else if (t.previousSibling && t.previousSibling.nodeName === "TR") t = t.previousSibling;
473
354
  else break;
474
355
  }
475
356
  this.statusBarClick = function(e) {
476
- let t = l.utils.getTarget(e);
357
+ let t = s.utils.getTarget(e);
477
358
  t.label && (window.content.location = t.label);
478
359
  }, this.showURI = function(e) {
479
360
  e && o.getElementById("UserURI") && (o.getElementById("UserURI").value = e.termType === "NamedNode" ? e.uri : "");
480
361
  }, this.showSource = function() {
481
362
  if (!(typeof sourceWidget > "u")) {
482
363
  for (let e in sourceWidget.sources) sourceWidget.sources[e].setAttribute("class", "");
483
- for (let e = 0; e < y.length; e++) {
484
- if (!y[e].parentNode) {
485
- console.log("showSource: EH? no parentNode? " + y[e] + "\n");
364
+ for (let e = 0; e < h.length; e++) {
365
+ if (!h[e].parentNode) {
366
+ console.log("showSource: EH? no parentNode? " + h[e] + "\n");
486
367
  continue;
487
368
  }
488
- let t = y[e].parentNode.AJAR_statement;
369
+ let t = h[e].parentNode.AJAR_statement;
489
370
  if (!t) continue;
490
371
  let n = t.why;
491
372
  n && n.uri && sourceWidget.highlight(n, !0);
492
373
  }
493
374
  }
494
375
  }, this.getSelection = function() {
495
- return y;
376
+ return h;
496
377
  };
497
- function W(e, n) {
498
- if (e.nodeName !== "TD") throw l.log.debug("down" + e.nodeName), Error("Expected TD in setSelected: " + e.nodeName + " : " + e.textContent);
499
- l.log.debug("pass");
378
+ function R(e, n) {
379
+ if (e.nodeName !== "TD") throw s.log.debug("down" + e.nodeName), Error("Expected TD in setSelected: " + e.nodeName + " : " + e.textContent);
380
+ s.log.debug("pass");
500
381
  let r = e.getAttribute("class");
501
382
  if (r ||= "", n) {
502
- r += " selected", (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && U(e, 1), y.push(e);
503
- let n = l.utils.getTerm(e);
504
- c.showURI(n);
383
+ r += " selected", (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && L(e, 1), h.push(e);
384
+ let n = s.utils.getTerm(e);
385
+ m.showURI(n);
505
386
  let i = e.AJAR_statement;
506
387
  if (i === void 0 && e.parentNode && (i = e.parentNode.AJAR_statement), i) {
507
388
  let n = i.why;
508
- f.updater.editable(n.uri, b) && r.indexOf("pred") >= 0 && L.addIcon(e, t.termWidgets.addTri);
389
+ c.updater.editable(n.uri, g) && r.indexOf("pred") >= 0 && M.addIcon(e, t.termWidgets.addTri);
509
390
  }
510
- } else l.log.debug("cla=$" + r + "$"), r === "selected" && (r = ""), r = r.replace(" selected", ""), (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && U(e, -1), r.indexOf("pred") >= 0 && L.removeIcon(e, t.termWidgets.addTri), y = y.filter(function(t) {
391
+ } else s.log.debug("cla=$" + r + "$"), r === "selected" && (r = ""), r = r.replace(" selected", ""), (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && L(e, -1), r.indexOf("pred") >= 0 && M.removeIcon(e, t.termWidgets.addTri), h = h.filter(function(t) {
511
392
  return t === e;
512
- }), l.log.info("Deselecting " + e.textContent);
513
- typeof sourceWidget < "u" && c.showSource(), e.setAttribute("class", r);
393
+ }), s.log.info("Deselecting " + e.textContent);
394
+ typeof sourceWidget < "u" && m.showSource(), e.setAttribute("class", r);
514
395
  }
515
- function G() {
516
- let e = y.length;
517
- for (let t = e - 1; t >= 0; t--) W(y[t], !1);
518
- y = [];
396
+ function z() {
397
+ let e = h.length;
398
+ for (let t = e - 1; t >= 0; t--) R(h[t], !1);
399
+ h = [];
519
400
  }
520
401
  this.targetOf = function(e) {
521
402
  let t;
522
403
  if (e ||= window.event, e.target) t = e.target;
523
404
  else if (e.srcElement) t = e.srcElement;
524
- else return l.log.error("can't get target for event " + e), !1;
405
+ else return s.log.error("can't get target for event " + e), !1;
525
406
  return t.nodeType === 3 && (t = t.parentNode), t;
526
407
  }, this.walk = function(e, t) {
527
- let n = t || y[0], r;
408
+ let n = t || h[0], r;
528
409
  switch (e) {
529
410
  case "down":
530
411
  try {
@@ -533,7 +414,7 @@ function y(a) {
533
414
  this.walk("up");
534
415
  return;
535
416
  }
536
- G(), W(r, !0);
417
+ z(), R(r, !0);
537
418
  break;
538
419
  case "up":
539
420
  try {
@@ -541,44 +422,42 @@ function y(a) {
541
422
  } catch {
542
423
  return;
543
424
  }
544
- G(), W(r, !0);
425
+ z(), R(r, !0);
545
426
  break;
546
427
  case "right":
547
- if (G(), n.nextSibling || n.lastChild.tagName === "strong") W(n.nextSibling, !0);
428
+ if (z(), n.nextSibling || n.lastChild.tagName === "strong") R(n.nextSibling, !0);
548
429
  else {
549
430
  let e = o.evaluate("table/div/tr/td[2]", n, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
550
- W(e, !0);
431
+ R(e, !0);
551
432
  }
552
433
  break;
553
434
  case "left":
554
- if (G(), n.previousSibling && n.previousSibling.className === "undetermined") return W(n.previousSibling, !0), !0;
555
- W(l.utils.ancestor(n.parentNode, "TD"), !0);
556
- break;
557
- case "moveTo":
558
- G(), W(t, !0);
435
+ if (z(), n.previousSibling && n.previousSibling.className === "undetermined") return R(n.previousSibling, !0), !0;
436
+ R(s.utils.ancestor(n.parentNode, "TD"), !0);
559
437
  break;
438
+ case "moveTo": z(), R(t, !0);
560
439
  }
561
440
  (e === "down" || e === "up") && (r.tabulatorSelect || this.walk(e));
562
441
  }, this.OutlinerKeypressPanel = function(e) {
563
- l.log.info("Key " + e.keyCode + " pressed");
442
+ s.log.info("Key " + e.keyCode + " pressed");
564
443
  function t(e) {
565
444
  e && o.getElementById("UserURI") && (o.getElementById("UserURI").value = e.termType === "NamedNode" ? e.uri : "");
566
445
  }
567
446
  function n(e) {
568
- return arguments[3] ? !0 : (u("right", a), t(l.utils.getAbout(b, y[0])), !0);
447
+ return arguments[3] ? !0 : (u("right", a), t(s.utils.getAbout(g, h[0])), !0);
569
448
  }
570
449
  let r, i;
571
- if (l.utils.getTarget(e).tagName === "TEXTAREA" || l.utils.getTarget(e).id === "UserURI" || y.length > 1) return;
572
- if (y.length === 0) {
573
- (e.keyCode === 13 || e.keyCode === 38 || e.keyCode === 40 || e.keyCode === 37 || e.keyCode === 39) && (this.walk("right", c.focusTd), t(l.utils.getAbout(b, y[0])));
450
+ if (s.utils.getTarget(e).tagName === "TEXTAREA" || s.utils.getTarget(e).id === "UserURI" || h.length > 1) return;
451
+ if (h.length === 0) {
452
+ (e.keyCode === 13 || e.keyCode === 38 || e.keyCode === 40 || e.keyCode === 37 || e.keyCode === 39) && (this.walk("right", m.focusTd), t(s.utils.getAbout(g, h[0])));
574
453
  return;
575
454
  }
576
- let a = y[0];
577
- switch (x.removeCallback("done", "setSelectedAfterward"), x.removeCallback("fail", "setSelectedAfterward"), e.keyCode) {
455
+ let a = h[0];
456
+ switch (_.removeCallback("done", "setSelectedAfterward"), _.removeCallback("fail", "setSelectedAfterward"), e.keyCode) {
578
457
  case 13:
579
- if (l.utils.getTarget(e).tagName === "HTML") {
580
- let e = l.utils.getAbout(b, a);
581
- r = a.parentNode.AJAR_statement.why, i = f.updater.editable(r.uri, b), e ? s.GotoSubject(e, !0) : i && c.UserInput.Enter(a);
458
+ if (s.utils.getTarget(e).tagName === "HTML") {
459
+ let e = s.utils.getAbout(g, a);
460
+ r = a.parentNode.AJAR_statement.why, i = c.updater.editable(r.uri, g), e ? p.GotoSubject(e, !0) : i && m.UserInput.Enter(a);
582
461
  } else this.UserInput.Keypress(e), this.walk("down"), e.stopPropagation();
583
462
  return;
584
463
  case 38:
@@ -586,28 +465,28 @@ function y(a) {
586
465
  break;
587
466
  case 40: this.walk("down"), e.stopPropagation(), e.preventDefault();
588
467
  }
589
- if (l.utils.getTarget(e).tagName === "INPUT") return;
468
+ if (s.utils.getTarget(e).tagName === "INPUT") return;
590
469
  let u;
591
470
  switch (e.keyCode) {
592
471
  case 46:
593
472
  case 8:
594
- r = a.parentNode.AJAR_statement.why, i = f.updater.editable(r.uri, b), i && (e.preventDefault(), this.UserInput.Delete(a));
473
+ r = a.parentNode.AJAR_statement.why, i = c.updater.editable(r.uri, g), i && (e.preventDefault(), this.UserInput.Delete(a));
595
474
  break;
596
475
  case 37: {
597
476
  if (this.walk("left")) return;
598
- let e = l.utils.ancestor(a.parentNode, "TD");
599
- X(a, l.utils.getAbout(b, e));
477
+ let e = s.utils.ancestor(a.parentNode, "TD");
478
+ X(a, s.utils.getAbout(g, e));
600
479
  break;
601
480
  }
602
481
  case 39:
603
482
  {
604
- let e = l.utils.getAbout(b, a);
483
+ let e = s.utils.getAbout(g, a);
605
484
  if (e) {
606
485
  if (u = this.walk, a.nextSibling) {
607
486
  this.walk("right");
608
487
  return;
609
488
  }
610
- a.firstChild.tagName !== "TABLE" && (x.addCallback("done", n), x.addCallback("fail", n), Y(a, e, { pane: p.byName("defaultPane") })), n();
489
+ a.firstChild.tagName !== "TABLE" && (_.addCallback("done", n), _.addCallback("fail", n), Y(a, e, { pane: l.byName("defaultPane") })), n();
611
490
  }
612
491
  }
613
492
  break;
@@ -616,157 +495,154 @@ function y(a) {
616
495
  default: switch (e.charCode) {
617
496
  case 99:
618
497
  if (e.ctrlKey) {
619
- c.UserInput.copyToClipboard(c.clipboardAddress, a);
498
+ m.UserInput.copyToClipboard(m.clipboardAddress, a);
620
499
  break;
621
500
  }
622
501
  break;
623
502
  case 118:
624
503
  case 112:
625
504
  if (e.ctrlKey) {
626
- c.UserInput.pasteFromClipboard(c.clipboardAddress, a);
505
+ m.UserInput.pasteFromClipboard(m.clipboardAddress, a);
627
506
  break;
628
507
  }
629
508
  break;
630
- default: l.utils.getTarget(e).tagName;
509
+ default: s.utils.getTarget(e).tagName;
631
510
  }
632
511
  }
633
- if (t(l.utils.getAbout(b, y[0])), y[0]) {
634
- let e = l.utils.findPos(y[0])[1];
635
- e + y[0].clientHeight > window.scrollY + window.innerHeight && l.utils.getEyeFocus(y[0], !0, !0, window), e < window.scrollY + 54 && l.utils.getEyeFocus(y[0], !0, void 0, window);
636
- }
512
+ t(s.utils.getAbout(g, h[0]));
637
513
  }, this.OutlinerMouseclickPanel = function(e) {
638
- switch (c.UserInput._tabulatorMode) {
514
+ switch (m.UserInput._tabulatorMode) {
639
515
  case 0:
640
- de(e);
641
- break;
642
- case 1:
643
- c.UserInput.Click(e);
516
+ q(e);
644
517
  break;
645
- default:
518
+ case 1: m.UserInput.Click(e);
646
519
  }
647
520
  };
648
- function oe(e) {
649
- let t = c.targetOf(e), n = t.parentNode, r = l.utils.getAbout(b, t), i = e.altKey ? p.byName("internal") : void 0;
521
+ function B(e) {
522
+ let t = m.targetOf(e), n = t.parentNode, r = s.utils.getAbout(g, t), i = e.altKey ? l.byName("internal") : void 0;
650
523
  e.shiftKey ? Z(n, r, i) : e.altKey ? Y(n, r, {
651
- pane: p.byName("internal"),
524
+ pane: l.byName("internal"),
652
525
  immediate: !0
653
526
  }) : Y(n, r);
654
527
  }
655
- function se(e) {
656
- let t = c.targetOf(e), n = l.utils.getAbout(b, t), r = e.altKey ? p.byName("internal") : void 0, i = t.parentNode.parentNode;
528
+ function V(e) {
529
+ let t = m.targetOf(e), n = s.utils.getAbout(g, t), r = e.altKey ? l.byName("internal") : void 0, i = t.parentNode.parentNode;
657
530
  X(i, n, r);
658
531
  }
659
- function K(e) {
660
- let t = c.targetOf(e).getAttribute("uri");
661
- e.altKey ? x.fetch(m.uri.docpart(t), { force: !0 }) : x.refresh(b.sym(m.uri.docpart(t)));
532
+ function H(e) {
533
+ let t = m.targetOf(e).getAttribute("uri");
534
+ e.altKey ? _.fetch(u.uri.docpart(t), { force: !0 }) : _.refresh(g.sym(u.uri.docpart(t)));
662
535
  }
663
- function ce(e) {
664
- let t = c.targetOf(e).getAttribute("uri");
665
- e.altKey ? x.fetch(m.uri.docpart(t), { force: !0 }) : x.refresh(b.sym(m.uri.docpart(t)));
536
+ function U(e) {
537
+ let t = m.targetOf(e).getAttribute("uri");
538
+ e.altKey ? _.fetch(u.uri.docpart(t), { force: !0 }) : _.refresh(g.sym(u.uri.docpart(t)));
666
539
  }
667
- function le(e) {
668
- let t = c.targetOf(e).getAttribute("uri");
669
- x.fetch(m.uri.docpart(t));
540
+ function W(e) {
541
+ let t = m.targetOf(e).getAttribute("uri");
542
+ _.fetch(u.uri.docpart(t));
670
543
  }
671
- function ue(e) {
672
- let t = c.targetOf(e), n = t.node;
673
- n.childNodes.length > 1 && (n = t.parentNode), N(n);
544
+ function G(e) {
545
+ let t = m.targetOf(e), n = t.node;
546
+ n.childNodes.length > 1 && (n = t.parentNode), O(n);
674
547
  }
675
- function q(e) {
676
- if (c.UserInput._tabulatorMode) return c.UserInput.Click(e);
677
- let t = c.targetOf(e), n;
678
- for (n = l.utils.ancestor(t, "TD"); n && n.getAttribute("notSelectable") !== "false"; n = l.utils.ancestor(n.parentNode, "TD"));
548
+ function K(e) {
549
+ if (m.UserInput._tabulatorMode) return m.UserInput.Click(e);
550
+ let t = m.targetOf(e), n;
551
+ for (n = s.utils.ancestor(t, "TD"); n && n.getAttribute("notSelectable") !== "false"; n = s.utils.ancestor(n.parentNode, "TD"));
679
552
  if (!n) return;
680
- let r = B(n);
681
- if (l.log.debug("Was node selected before: " + r), e.altKey) W(n, !B(n));
682
- else if (e.shiftKey) W(n, !0);
553
+ let r = P(n);
554
+ if (s.log.debug("Was node selected before: " + r), e.altKey) R(n, !P(n));
555
+ else if (e.shiftKey) R(n, !0);
683
556
  else {
684
- if (G(), c.UserInput.clearInputAndSave(e), W(n, !0), e.detail === 2) {
557
+ if (z(), m.UserInput.clearInputAndSave(e), R(n, !0), e.detail === 2) {
685
558
  e.stopPropagation();
686
559
  return;
687
560
  }
688
561
  let t;
689
562
  if (n.parentNode && (t = n.parentNode.AJAR_statement), !t) return;
690
- let i = t.why, a = f.updater.editable(i.uri, b);
691
- r && a && c.UserInput.Click(e, y[0]);
563
+ let i = t.why, a = c.updater.editable(i.uri, g);
564
+ r && a && m.UserInput.Click(e, h[0]);
692
565
  }
693
- l.log.debug("Was node selected after: " + B(n) + ", count=" + y.length), e.stopPropagation();
566
+ s.log.debug("Was node selected after: " + P(n) + ", count=" + h.length), e.stopPropagation();
694
567
  }
695
- function de(e) {
696
- l.log.info("@TabulatorMousedown, dom.location is now " + o.location);
697
- let n = c.targetOf(e);
568
+ function q(e) {
569
+ s.log.info("@TabulatorMousedown, dom.location is now " + o.location);
570
+ let n = m.targetOf(e);
698
571
  if (!n) return;
699
572
  let r = n.tagName;
700
- r === "INPUT" || r === "TEXTAREA" || (c.UserInput.clearMenu(), c.UserInput.lastModified && c.UserInput.lastModified.parentNode.nextSibling && c.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) && c.UserInput.clearInputAndSave(e), (!n.src || n.src.slice(n.src.indexOf("/icons/") + 1) !== t.src.icon_show_choices) && c.UserInput.clearMenu(), e && e.stopPropagation());
573
+ r !== "INPUT" && r !== "TEXTAREA" && (m.UserInput.clearMenu(), m.UserInput.lastModified && m.UserInput.lastModified.parentNode.nextSibling && m.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) && m.UserInput.clearInputAndSave(e), (!n.src || n.src.slice(n.src.indexOf("/icons/") + 1) !== t.src.icon_show_choices) && m.UserInput.clearMenu(), e && e.stopPropagation());
701
574
  }
702
575
  function J(e) {
703
- o.title = l.utils.label(e), o.location.href.startsWith(e.site().uri);
576
+ o.title = s.utils.label(e), o.location.href.startsWith(e.site().uri);
704
577
  }
705
578
  function Y(e, t, n) {
706
579
  n ||= {};
707
580
  let r = n.pane, i = !!n.already, a = n.immediate;
708
- l.log.info("@outlineExpand, dom is now " + o.location), x.removeCallback("done", "expand"), x.removeCallback("fail", "expand");
709
- let s = b.canon(t);
710
- function u() {
711
- if (s = b.canon(s), !e || !e.parentNode || !e.parentNode.parentNode) return !1;
581
+ s.log.info("@outlineExpand, dom is now " + o.location), _.removeCallback("done", "expand"), _.removeCallback("fail", "expand");
582
+ let c = g.canon(t);
583
+ function l() {
584
+ if (c = g.canon(c), !e || !e.parentNode || !e.parentNode.parentNode) return !1;
712
585
  let t;
713
- if (l.log.info("@@ REPAINTING "), !i) t = P(s, void 0, r, n);
586
+ if (s.log.info("@@ REPAINTING "), !i) t = k(c, void 0, r, n);
714
587
  else {
715
- for (l.log.info(" ... p is " + e), t = e.firstChild; t.nextSibling && (l.log.info(" ... checking node " + t), t.nodeName !== "table"); t = t.nextSibling);
716
- t = P(s, t, r, n);
588
+ for (s.log.info(" ... p is " + e), t = e.firstChild; t.nextSibling && (s.log.info(" ... checking node " + t), t.nodeName !== "table"); t = t.nextSibling);
589
+ t = k(c, t, r, n);
717
590
  }
718
- i = !0, l.utils.ancestor(e, "TABLE") && l.utils.ancestor(e, "TABLE").style.backgroundColor === "white" ? t.style.backgroundColor = "#eee" : t.style.backgroundColor = "white", l.utils.emptyNode(e).appendChild(t), c.focusTd = e, l.log.debug("expand: Node for " + s + " expanded");
719
- let a = b.each(s, l.ns.rdfs("seeAlso"));
720
- for (let e = 0; e < a.length; e++) e === 25 && l.log.warn("expand: Warning: many (" + a.length + ") seeAlso links for " + s), x.lookUpThing(a[e], s);
591
+ i = !0, s.utils.ancestor(e, "TABLE") && s.utils.ancestor(e, "TABLE").style.backgroundColor === "white" ? t.style.backgroundColor = "#eee" : t.style.backgroundColor = "white", s.utils.emptyNode(e).appendChild(t), m.focusTd = e, s.log.debug("expand: Node for " + c + " expanded");
592
+ let a = g.each(c, s.ns.rdfs("seeAlso"));
593
+ for (let e = 0; e < a.length; e++) e === 25 && s.log.warn("expand: Warning: many (" + a.length + ") seeAlso links for " + c), _.lookUpThing(a[e], c);
721
594
  }
722
595
  function d(e) {
723
596
  if (arguments[3]) return !0;
724
- let t = b.canon(s);
725
- l.log.info("@@ expand: relevant subject=" + t + ", uri=" + e + ", already=" + i);
726
- let n = b.sym(m.uri.docpart(e));
597
+ let t = g.canon(c);
598
+ s.log.info("@@ expand: relevant subject=" + t + ", uri=" + e + ", already=" + i);
599
+ let n = g.sym(u.uri.docpart(e));
727
600
  if (e.indexOf("#") >= 0) throw Error("Internal error: hash in " + e);
728
- return function() {
601
+ return !function() {
729
602
  if (!t.uri) return !0;
730
- let r = b.uris(t);
603
+ let r = g.uris(t);
731
604
  if (!r) return !1;
732
- for (let t = 0; t < r.length; t++) for (let n = m.uri.docpart(r[t]); n; n = b.HTTPRedirects[n]) if (e === n) return !0;
733
- return !!b.anyStatementMatching(t, void 0, void 0, n);
734
- }() ? (l.log.success("@@ expand OK: relevant subject=" + t + ", uri=" + e + ", source=" + i), u(), !1) : !0;
605
+ for (let t = 0; t < r.length; t++) for (let n = u.uri.docpart(r[t]); n; n = g.HTTPRedirects[n]) if (e === n) return !0;
606
+ return !!g.anyStatementMatching(t, void 0, void 0, n);
607
+ }() || (s.log.success("@@ expand OK: relevant subject=" + t + ", uri=" + e + ", source=" + i), l(), !1);
735
608
  }
736
- n.solo && J(s), l.log.debug("outlineExpand: dereferencing " + s);
609
+ n.solo && J(c), s.log.debug("outlineExpand: dereferencing " + c);
737
610
  let f = o.createElement("span");
738
- e.appendChild(f), x.addCallback("done", d), x.addCallback("fail", d);
611
+ e.appendChild(f), _.addCallback("done", d), _.addCallback("fail", d);
739
612
  let p = [];
740
- if (s.uri && s.uri.split(":")[0] === "rdf") {
741
- u();
613
+ if (c.uri && c.uri.split(":")[0] === "rdf") {
614
+ l();
742
615
  return;
743
616
  }
744
- for (let e = 0; e < p.length; e++) if (p[e](s) === void 0) {
745
- u(), l.log.debug("outline 1815"), (void 0)[1] && S.removeChild(S.lastChild);
746
- return;
617
+ for (let e = 0; e < p.length; e++) {
618
+ let t;
619
+ if (t === p[e](c)) {
620
+ l(), s.log.debug("outline 1815"), t[1] && v.removeChild(v.lastChild);
621
+ return;
622
+ }
747
623
  }
748
- if (s.uri && !a && !l.widgets.isAudio(s) && !l.widgets.isVideo(s)) {
749
- let t = s.doc() && s.doc().uri ? s.doc().uri : "" + s.doc(), r = function(e) {
750
- let t = !!(s && s.uri && s.site && s.site().uri === s.uri);
624
+ if (c.uri && !a && !s.widgets.isAudio(c) && !s.widgets.isVideo(c)) {
625
+ let t = c.doc() && c.doc().uri ? c.doc().uri : "" + c.doc(), r = function(e) {
626
+ let t = !!(c && c.uri && c.site && c.site().uri === c.uri);
751
627
  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.";
752
628
  }, i = function(e, t) {
753
629
  let n = typeof e == "string" ? e : String(e || ""), r = t?.status || t?.response?.status;
754
630
  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;
755
631
  }, a = function(n, a) {
756
632
  if (e.querySelector && t && e.querySelector("[data-outline-error-for=\"" + t + "\"]")) return;
757
- let s = i(n, a), c = s ? r(s) : n, u = l.widgets.errorMessageBlock(o, c, "#fee", a instanceof Error ? a : void 0);
633
+ let c = i(n, a), l = c ? r(c) : n, u = s.widgets.errorMessageBlock(o, l, "#fee", a instanceof Error ? a : void 0);
758
634
  t && u.setAttribute("data-outline-error-for", t), e.appendChild(u);
759
- }, c = !1, d = x.nowOrWhenFetched(s.doc(), void 0, function(e, t) {
760
- e ? (x.lookUpThing(s), u(), n.solo && J(s)) : (c = !0, a(t, void 0));
635
+ }, u = !1, d = _.nowOrWhenFetched(c.doc(), void 0, function(e, t) {
636
+ e ? (_.lookUpThing(c), l(), n.solo && J(c)) : (u = !0, a(t, void 0));
761
637
  });
762
638
  d && typeof d.catch == "function" && d.catch(function(e) {
763
- c || (c = !0, a(e, e));
639
+ u || (u = !0, a(e, e));
764
640
  });
765
- } else u();
641
+ } else l();
766
642
  }
767
643
  function X(e, t) {
768
- let n = l.utils.ancestor(e, "TR");
769
- n = l.utils.ancestor(n.parentNode, "TR");
644
+ let n = s.utils.ancestor(e, "TR");
645
+ n = s.utils.ancestor(n.parentNode, "TR");
770
646
  let r;
771
647
  n && (r = n.AJAR_statement);
772
648
  let i;
@@ -774,65 +650,66 @@ function y(a) {
774
650
  alert("Not enclosed in TD!");
775
651
  return;
776
652
  }
777
- l.log.debug("Collapsing subject " + t);
653
+ s.log.debug("Collapsing subject " + t);
778
654
  let a;
779
- r && (l.log.debug("looking up pred " + r.predicate.uri + "in defaults"), a = $.defaults[r.predicate.uri]), l.log.debug("view= " + a);
655
+ r && (s.log.debug("looking up pred " + r.predicate.uri + "in defaults"), a = $.defaults[r.predicate.uri]), s.log.debug("view= " + a);
780
656
  let o;
781
- i.parentNode.parentNode.id === "outline" && (o = i.parentNode), c.replaceTD(c.outlineObjectTD(t, a, o, r), i);
657
+ i.parentNode.parentNode.id === "outline" && (o = i.parentNode), m.replaceTD(m.outlineObjectTD(t, a, o, r), i);
782
658
  }
783
659
  this.replaceTD = function(e, t) {
784
660
  let n;
785
- B(t) && (n = !0);
786
- for (let e = y.length - 1; e > -1; e--) for (let n = y[e]; n.parentNode; n = n.parentNode) n === t && W(y[e], !1);
787
- t.parentNode.replaceChild(e, t), n && W(e, !0);
661
+ P(t) && (n = !0);
662
+ for (let e = h.length - 1; e > -1; e--) for (let n = h[e]; n.parentNode; n = n.parentNode) n === t && R(h[e], !1);
663
+ t.parentNode.replaceChild(e, t), n && R(e, !0);
788
664
  };
789
665
  function Z(e, t) {
790
666
  let n = null;
791
- for (let t = e.parentNode; t; t = t.parentNode) l.log.debug("level " + t.tagName), t.tagName === "TD" && (n = t);
792
- l.utils.emptyNode(n).appendChild(P(t)), J(t), n.setAttribute("about", t.toNT());
667
+ for (let t = e.parentNode; t; t = t.parentNode) s.log.debug("level " + t.tagName), t.tagName === "TD" && (n = t);
668
+ s.utils.emptyNode(n).appendChild(k(t)), J(t), n.setAttribute("about", t.toNT());
793
669
  }
794
- s.outlineRefocus = Z, this.GotoFormURI_enterKey = function(e) {
795
- e.keyCode === 13 && s.GotoFormURI(e);
670
+ p.outlineRefocus = Z, this.GotoFormURI_enterKey = function(e) {
671
+ e.keyCode === 13 && p.GotoFormURI(e);
796
672
  }, this.GotoFormURI = function(e) {
797
- fe(o.getElementById("UserURI").value);
673
+ Q(o.getElementById("UserURI").value);
798
674
  };
799
- function fe(e) {
800
- let t = b.sym(e);
675
+ function Q(e) {
676
+ let t = g.sym(e);
801
677
  this.GotoSubject(t, !0);
802
678
  }
803
679
  this.GotoURIinit = function(e) {
804
- let t = b.sym(e);
680
+ let t = g.sym(e);
805
681
  this.GotoSubject(t);
806
- }, this.GotoSubject = function(e, t, n, r, i, a) {
807
- a ||= k("OutlineView"), r && (l.utils.emptyNode(a), a.style.width = "100%");
808
- function s() {
682
+ }, this.GotoSubject = function(e, t, n, r, i, a, c = !0) {
683
+ let l = x();
684
+ c && (!a || a === l) && C(), a ||= l, r && (s.utils.emptyNode(a), a.style.width = "100%");
685
+ function u() {
809
686
  let t = o.createElement("TR");
810
687
  t.style.verticalAlign = "top", a.appendChild(t);
811
- let n = c.outlineObjectTD(e, void 0, t);
688
+ let n = m.outlineObjectTD(e, void 0, t);
812
689
  return t.appendChild(n), n;
813
690
  }
814
- let u = s();
815
- if (r && J(e), t) {
816
- Y(u, e, {
817
- pane: n,
818
- solo: r
819
- });
820
- let t = u.parentNode;
821
- l.utils.getEyeFocus(t, !1, void 0, window);
822
- }
823
- if (r && o && o.defaultView && o.defaultView.history && document.location.href !== e.uri) {
824
- let t = n ? { paneName: n.name } : {};
691
+ let d = u();
692
+ if (r && J(e), t && Y(d, e, {
693
+ pane: n,
694
+ solo: r
695
+ }), r && o && o.defaultView && o.defaultView.history) {
696
+ let t = o.defaultView.history.state || {}, r = n ? { paneName: n.name } : {};
697
+ n && n.subject && typeof n.subject.uri == "string" && (r.paneUri = n.subject.uri);
698
+ let i = {
699
+ ...t,
700
+ ...r
701
+ };
825
702
  try {
826
703
  let n = new URL(document.location.href), r = new URL(e.uri, document.location.href);
827
- n.origin === r.origin && o.defaultView.history.pushState(t, e.uri, e.uri);
704
+ n.origin === r.origin && (document.location.href === e.uri ? JSON.stringify(t) !== JSON.stringify(i) && o.defaultView.history.replaceState(i, e.uri, e.uri) : o.defaultView.history.pushState(i, e.uri, e.uri));
828
705
  } catch (e) {
829
706
  console.log(e);
830
707
  }
831
708
  }
832
709
  return e;
833
710
  };
834
- let Q = l.ns, $ = e(o);
835
- function pe(e) {
711
+ let $ = e(o);
712
+ function ee(e) {
836
713
  let n;
837
714
  if (e.termType === "Literal") {
838
715
  let t = {
@@ -843,33 +720,33 @@ function y(a) {
843
720
  n = o.createElement("span"), n.textContent = e.value;
844
721
  let r = "";
845
722
  if (e.datatype && e.datatype.uri) {
846
- let n = l.ns.xsd("").uri;
723
+ let n = s.ns.xsd("").uri;
847
724
  e.datatype.uri.slice(0, n.length) === n && (r = t[e.datatype.uri.slice(n.length)]);
848
725
  }
849
726
  n.setAttribute("style", r || "white-space: pre-wrap;");
850
- } else if (e.termType === "NamedNode" || e.termType === "BlankNode") if (n = o.createElement("span"), n.setAttribute("about", e.toNT()), c.appendAccessIcons(b, n, e), e.termType === "NamedNode") if (e.uri.slice(0, 4) === "tel:") {
727
+ } else if (e.termType === "NamedNode" || e.termType === "BlankNode") if (n = o.createElement("span"), n.setAttribute("about", e.toNT()), m.appendAccessIcons(g, n, e), e.termType === "NamedNode") if (e.uri.slice(0, 4) === "tel:") {
851
728
  let r = e.uri.slice(4), i = o.createElement("a");
852
- n.appendChild(o.createTextNode(r)), i.setAttribute("href", e.uri), i.appendChild(l.utils.AJARImage(t.src.icon_telephone, "phone", "phone " + r, o)), n.appendChild(i), i.firstChild.setAttribute("class", "phoneIcon");
729
+ n.appendChild(o.createTextNode(r)), i.setAttribute("href", e.uri), i.appendChild(s.utils.AJARImage(t.src.icon_telephone, "phone", "phone " + r, o)), n.appendChild(i), i.firstChild.setAttribute("class", "phoneIcon");
853
730
  } else {
854
- n.appendChild(o.createTextNode(l.utils.label(e)));
855
- let t = l.widgets.linkIcon(o, e);
856
- n.appendChild(t), l.widgets.makeDraggable(n, e);
731
+ n.appendChild(o.createTextNode(s.utils.label(e)));
732
+ let t = s.widgets.linkIcon(o, e);
733
+ n.appendChild(t), s.widgets.makeDraggable(n, e);
857
734
  }
858
- else n.appendChild(o.createTextNode(l.utils.label(e)));
735
+ else n.appendChild(o.createTextNode(s.utils.label(e)));
859
736
  else if (e.termType === "Collection") {
860
737
  n = o.createElement("table"), n.classList.add("tableFullWidth"), n.setAttribute("about", e.toNT());
861
738
  for (let t = 0; t < e.elements.length; t++) {
862
739
  let r = e.elements[t], i = n.appendChild(o.createElement("tr")), a = i.appendChild(o.createElement("td"));
863
- a.classList.add("obj"), a.setAttribute("notSelectable", "false"), a.setAttribute("about", e.toNT()), a.innerHTML = t + 1 + ")", i.appendChild(c.outlineObjectTD(r));
740
+ a.classList.add("obj"), a.setAttribute("notSelectable", "false"), a.setAttribute("about", e.toNT()), a.innerHTML = t + 1 + ")", i.appendChild(m.outlineObjectTD(r));
864
741
  }
865
- } else e.termType === "Graph" ? (n = p.byName("dataContentPane").statementsAsTables(e.statements, a), n.setAttribute("class", "nestedFormula")) : (l.log.error("Object " + e + " has unknown term type: " + e.termType), n = o.createTextNode("[unknownTermType:" + e.termType + "]"));
866
- return l.log.debug("contents: " + n.innerHTML), n;
742
+ } else e.termType === "Graph" ? (n = l.byName("dataContentPane").statementsAsTables(e.statements, a), n.setAttribute("class", "nestedFormula")) : (s.log.error("Object " + e + " has unknown term type: " + e.termType), n = o.createTextNode("[unknownTermType:" + e.termType + "]"));
743
+ return s.log.debug("contents: " + n.innerHTML), n;
867
744
  }
868
745
  return this.createTabURI = function() {
869
746
  o.getElementById("UserURI").value = o.URL + "?uri=" + o.getElementById("UserURI").value;
870
- }, this.UserInput.setSelected = W, this.UserInput.deselectAll = G, this.UserInput.views = $, this.outlineExpand = Y, this;
747
+ }, this.UserInput.setSelected = R, this.UserInput.deselectAll = z, this.UserInput.views = $, this.outlineExpand = Y, this;
871
748
  }
872
749
  //#endregion
873
- export { y as default };
750
+ export { p as default };
874
751
 
875
752
  //# sourceMappingURL=manager2.esm.js.map