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,2 +1,2 @@
1
- const e=require("./viewAsImage.cjs.js"),t=require("./viewAsMbox.cjs.js");let n=require("solid-ui");function r(r){let a={properties:[],defaults:[],classes:[]},o=e.default(r),s=t.default(r);return i(a,n.ns.foaf(`depiction`).uri,o,!0),i(a,n.ns.foaf(`img`).uri,o,!0),i(a,n.ns.foaf(`thumbnail`).uri,o,!0),i(a,n.ns.foaf(`logo`).uri,o,!0),i(a,n.ns.schema(`image`).uri,o,!0),i(a,n.ns.foaf(`mbox`).uri,s,!0),a}function i(e,t,n,r){e.properties[t]||(e.properties[t]=[]),e.properties[t].push(n),r&&(e.defaults[t]=n)}exports.propertyViews=r,exports.viewsAddPropertyView=i;
1
+ require("../_virtual/_rolldown/runtime.cjs.js");const e=require("./viewAsImage.cjs.js"),t=require("./viewAsMbox.cjs.js");let n=require("solid-ui");function r(r){let a={properties:[],defaults:[],classes:[]},o=e.default(r),s=t.default(r);return i(a,n.ns.foaf(`depiction`).uri,o,!0),i(a,n.ns.foaf(`img`).uri,o,!0),i(a,n.ns.foaf(`thumbnail`).uri,o,!0),i(a,n.ns.foaf(`logo`).uri,o,!0),i(a,n.ns.schema(`image`).uri,o,!0),i(a,n.ns.foaf(`mbox`).uri,s,!0),a}function i(e,t,n,r){e.properties[t]||(e.properties[t]=[]),e.properties[t].push(n),r&&(e.defaults[t]=n)}exports.propertyViews=r,exports.viewsAddPropertyView=i;
2
2
  //# sourceMappingURL=propertyViews.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"propertyViews.cjs.js","names":[],"sources":["../../src/outline/propertyViews.ts"],"sourcesContent":["import { ns } from 'solid-ui'\nimport viewAsImage from './viewAsImage'\nimport viewAsMbox from './viewAsMbox'\n\n/** some builtin simple views **/\n\nexport function propertyViews (dom) {\n // view that applies to items that are objects of certain properties.\n const views = {\n properties: [],\n defaults: [],\n classes: []\n } // views\n\n const asImage = viewAsImage(dom)\n const asMbox = viewAsMbox(dom)\n\n viewsAddPropertyView(views, ns.foaf('depiction').uri, asImage, true)\n viewsAddPropertyView(views, ns.foaf('img').uri, asImage, true)\n viewsAddPropertyView(views, ns.foaf('thumbnail').uri, asImage, true)\n viewsAddPropertyView(views, ns.foaf('logo').uri, asImage, true)\n viewsAddPropertyView(views, ns.schema('image').uri, asImage, true)\n viewsAddPropertyView(views, ns.foaf('mbox').uri, asMbox, true)\n return views\n}\n\n/** add a property view function **/\nexport function viewsAddPropertyView (views, property, pviewfunc, isDefault) {\n if (!views.properties[property]) {\n views.properties[property] = []\n }\n views.properties[property].push(pviewfunc)\n if (isDefault) {\n // will override an existing default!\n views.defaults[property] = pviewfunc\n }\n} // viewsAddPropertyView\n"],"mappings":"mGAMA,SAAgB,EAAe,EAAK,CAElC,IAAM,EAAQ,CACZ,WAAY,CAAC,EACb,SAAU,CAAC,EACX,QAAS,CAAC,CACZ,EAEM,EAAU,EAAA,QAAY,CAAG,EACzB,EAAS,EAAA,QAAW,CAAG,EAQ7B,OANA,EAAqB,EAAO,EAAA,GAAG,KAAK,WAAW,CAAC,CAAC,IAAK,EAAS,EAAI,EACnE,EAAqB,EAAO,EAAA,GAAG,KAAK,KAAK,CAAC,CAAC,IAAK,EAAS,EAAI,EAC7D,EAAqB,EAAO,EAAA,GAAG,KAAK,WAAW,CAAC,CAAC,IAAK,EAAS,EAAI,EACnE,EAAqB,EAAO,EAAA,GAAG,KAAK,MAAM,CAAC,CAAC,IAAK,EAAS,EAAI,EAC9D,EAAqB,EAAO,EAAA,GAAG,OAAO,OAAO,CAAC,CAAC,IAAK,EAAS,EAAI,EACjE,EAAqB,EAAO,EAAA,GAAG,KAAK,MAAM,CAAC,CAAC,IAAK,EAAQ,EAAI,EACtD,CACT,CAGA,SAAgB,EAAsB,EAAO,EAAU,EAAW,EAAW,CACtE,EAAM,WAAW,KACpB,EAAM,WAAW,GAAY,CAAC,GAEhC,EAAM,WAAW,EAAS,CAAC,KAAK,CAAS,EACrC,IAEF,EAAM,SAAS,GAAY,EAE/B"}
1
+ {"version":3,"file":"propertyViews.cjs.js","names":[],"sources":["../../src/outline/propertyViews.ts"],"sourcesContent":["import { ns } from 'solid-ui'\nimport viewAsImage from './viewAsImage'\nimport viewAsMbox from './viewAsMbox'\n\n/** some builtin simple views **/\n\nexport function propertyViews (dom) {\n // view that applies to items that are objects of certain properties.\n const views = {\n properties: [],\n defaults: [],\n classes: []\n } // views\n\n const asImage = viewAsImage(dom)\n const asMbox = viewAsMbox(dom)\n\n viewsAddPropertyView(views, ns.foaf('depiction').uri, asImage, true)\n viewsAddPropertyView(views, ns.foaf('img').uri, asImage, true)\n viewsAddPropertyView(views, ns.foaf('thumbnail').uri, asImage, true)\n viewsAddPropertyView(views, ns.foaf('logo').uri, asImage, true)\n viewsAddPropertyView(views, ns.schema('image').uri, asImage, true)\n viewsAddPropertyView(views, ns.foaf('mbox').uri, asMbox, true)\n return views\n}\n\n/** add a property view function **/\nexport function viewsAddPropertyView (views, property, pviewfunc, isDefault) {\n if (!views.properties[property]) {\n views.properties[property] = []\n }\n views.properties[property].push(pviewfunc)\n if (isDefault) {\n // will override an existing default!\n views.defaults[property] = pviewfunc\n }\n} // viewsAddPropertyView\n"],"mappings":"mJAMA,SAAgB,EAAe,EAAK,CAElC,IAAM,EAAQ,CACZ,WAAY,CAAC,EACb,SAAU,CAAC,EACX,QAAS,CAAC,CACZ,EAEM,EAAU,EAAA,QAAY,CAAG,EACzB,EAAS,EAAA,QAAW,CAAG,EAQ7B,OANA,EAAqB,EAAO,EAAA,GAAG,KAAK,WAAW,CAAC,CAAC,IAAK,EAAS,EAAI,EACnE,EAAqB,EAAO,EAAA,GAAG,KAAK,KAAK,CAAC,CAAC,IAAK,EAAS,EAAI,EAC7D,EAAqB,EAAO,EAAA,GAAG,KAAK,WAAW,CAAC,CAAC,IAAK,EAAS,EAAI,EACnE,EAAqB,EAAO,EAAA,GAAG,KAAK,MAAM,CAAC,CAAC,IAAK,EAAS,EAAI,EAC9D,EAAqB,EAAO,EAAA,GAAG,OAAO,OAAO,CAAC,CAAC,IAAK,EAAS,EAAI,EACjE,EAAqB,EAAO,EAAA,GAAG,KAAK,MAAM,CAAC,CAAC,IAAK,EAAQ,EAAI,EACtD,CACT,CAGA,SAAgB,EAAsB,EAAO,EAAU,EAAW,EAAW,CACtE,EAAM,WAAW,KACpB,EAAM,WAAW,GAAY,CAAC,GAEhC,EAAM,WAAW,EAAS,CAAC,KAAK,CAAS,EACrC,IAEF,EAAM,SAAS,GAAY,EAE/B"}
@@ -2,6 +2,7 @@ import "solid-ui";
2
2
  import "solid-logic";
3
3
  import "rdflib";
4
4
  //#region src/outline/queryByExample.js
5
+ /* istanbul ignore file */
5
6
  function e() {
6
7
  this.queries = [], this.listeners = [], this.addQuery = function(e) {
7
8
  let t;
@@ -1 +1 @@
1
- {"version":3,"file":"queryByExample.esm.js","names":[],"sources":["../../src/outline/queryByExample.js"],"sourcesContent":["/* istanbul ignore file */\n// The query-by-example functionality in the tabulator\n// was the ability to expore a bit of the web in outline mode,\n// select a ceratain set of fields in the tree,\n// then pres \"find all\" which would then generte a SPARQL query\n// to find all other places which had the same pattern.\n// Fields could be optional by pressing th ewhite optoional button\n\nimport { store } from 'solid-logic'\nimport * as UI from 'solid-ui'\nimport * as $rdf from 'rdflib'\n\nconst optionalSubqueriesIndex = []\n\nfunction predParentOf (node) {\n let n = node\n while (true) {\n if (n.getAttribute('predTR')) {\n return n\n } else if (n.previousSibling && n.previousSibling.nodeName === 'TR') {\n n = n.previousSibling\n } else {\n console.log('Could not find predParent')\n return node\n }\n }\n}\n\nexport function makeQueryRow (q, tr, constraint) {\n // predtr = predParentOf(tr)\n // var nodes = tr.childNodes\n // var n = tr.childNodes.length\n const inverse = tr.AJAR_inverse\n // var hasVar = 0\n let parentVar, level, pat\n\n function makeRDFStatement (freeVar, parent) {\n if (inverse) {\n return new $rdf.Statement(freeVar, st.predicate, parent)\n } else {\n return new $rdf.Statement(parent, st.predicate, freeVar)\n }\n }\n\n let optionalSubqueryIndex = null\n\n for (level = tr.parentNode; level; level = level.parentNode) {\n if (typeof level.AJAR_statement !== 'undefined') {\n // level.AJAR_statement\n level.setAttribute('bla', level.AJAR_statement) // @@? -timbl\n // UI.log.debug(\"Parent TR statement=\"+level.AJAR_statement + \", var=\" + level.AJAR_variable)\n /* for(let c=0;c<level.parentNode.childNodes.length;c++) //This makes sure the same variable is used for a subject\n if(level.parentNode.childNodes[c].AJAR_variable)\n level.AJAR_variable = level.parentNode.childNodes[c].AJAR_variable; */\n if (!level.AJAR_variable) {\n makeQueryRow(q, level)\n }\n parentVar = level.AJAR_variable\n const predLevel = predParentOf(level)\n if (predLevel.getAttribute('optionalSubqueriesIndex')) {\n optionalSubqueryIndex = predLevel.getAttribute(\n 'optionalSubqueriesIndex'\n )\n pat = optionalSubqueriesIndex[optionalSubqueryIndex]\n }\n break\n }\n }\n\n if (!pat) {\n pat = q.pat\n }\n\n const predtr = predParentOf(tr)\n // /////OPTIONAL KLUDGE///////////\n const opt = predtr.getAttribute('optional')\n if (!opt) {\n if (optionalSubqueryIndex) {\n predtr.setAttribute('optionalSubqueriesIndex', optionalSubqueryIndex)\n } else {\n predtr.removeAttribute('optionalSubqueriesIndex')\n }\n }\n if (opt) {\n const optForm = store.formula()\n optionalSubqueriesIndex.push(optForm)\n predtr.setAttribute(\n 'optionalSubqueriesIndex',\n optionalSubqueriesIndex.length - 1\n )\n pat.optional.push(optForm)\n pat = optForm\n }\n\n // //////////////////////////////\n\n const st = tr.AJAR_statement\n\n const constraintVar = tr.AJAR_inverse ? st.subject : st.object // this is only used for constraints\n let hasParent = true\n if (constraintVar.isBlank && constraint) {\n window.alert(\n 'You cannot constrain a query with a blank node. No constraint will be added.'\n )\n }\n if (!parentVar) {\n hasParent = false\n parentVar = inverse ? st.object : st.subject // if there is no parents, uses the sub/obj\n }\n // UI.log.debug('Initial variable: '+tr.AJAR_variable)\n const v = tr.AJAR_variable\n ? tr.AJAR_variable\n : store.variable(UI.utils.newVariableName())\n q.vars.push(v)\n v.label = hasParent ? parentVar.label : UI.utils.label(parentVar)\n v.label += ' ' + UI.utils.predicateLabelForXML(st.predicate, inverse)\n const pattern = makeRDFStatement(v, parentVar)\n // alert(pattern)\n v.label = v.label.slice(0, 1).toUpperCase() + v.label.slice(1) // init cap\n\n // See ../rdf/sparql.js\n // This should only work on literals but doesn't.\n function ConstraintEqualTo (value) {\n this.describe = function (varstr) {\n return varstr + ' = ' + value.toNT()\n }\n this.test = function (term) {\n return value.sameTerm(term)\n }\n return this\n }\n\n if (constraint) {\n // binds the constrained variable to its selected value\n pat.constraints[v] = new ConstraintEqualTo(constraintVar)\n }\n UI.log.info('Pattern: ' + pattern)\n pattern.tr = tr\n tr.AJAR_pattern = pattern // Cross-link UI and query line\n tr.AJAR_variable = v\n // UI.log.debug('Final variable: '+tr.AJAR_variable)\n UI.log.debug('Query pattern: ' + pattern)\n pat.statements.push(pattern)\n return v\n} // makeQueryRow\n\nfunction saveQuery (selection, qs) {\n // var qs = outline.qs // @@\n const q = new $rdf.Query()\n const n = selection.length\n let i, sel, st, tr\n for (i = 0; i < n; i++) {\n sel = selection[i]\n tr = sel.parentNode\n st = tr.AJAR_statement\n UI.log.debug('Statement ' + st)\n if (sel.getAttribute('class').indexOf('pred') >= 0) {\n UI.log.info(' We have a predicate')\n makeQueryRow(q, tr)\n }\n if (sel.getAttribute('class').indexOf('obj') >= 0) {\n UI.log.info(' We have an object')\n makeQueryRow(q, tr, true)\n }\n }\n qs.addQuery(q)\n\n function resetOutliner (pat) {\n const n = pat.statements.length\n let pattern, tr\n for (let i = 0; i < n; i++) {\n pattern = pat.statements[i]\n tr = pattern.tr\n // UI.log.debug('tr: ' + tr.AJAR_statement);\n if (typeof tr !== 'undefined') {\n tr.AJAR_pattern = null // TODO: is this == to whats in current version?\n tr.AJAR_variable = null\n }\n }\n for (const x in pat.optional) {\n resetOutliner(pat.optional[x])\n }\n }\n resetOutliner(q.pat)\n // NextVariable=0;\n return q\n} // saveQuery\n\n// When the user asks for all list of all matching parts of the data\n//\nexport function viewAndSaveQuery (outline, selection) {\n const qs = outline.qs\n UI.log.info('outline.doucment is now ' + outline.document.location)\n const q = saveQuery(selection, qs)\n /*\n if (tabulator.isExtension) {\n // tabulator.drawInBestView(q)\n } else\n */\n\n for (let i = 0; i < qs.listeners.length; i++) {\n qs.listeners[i].getActiveView().view.drawQuery(q)\n qs.listeners[i].updateQueryControls(qs.listeners[i].getActiveView())\n }\n}\n\n/**\n * The QuerySource object stores a set of listeners and a set of queries.\n * It keeps the listeners aware of those queries that the source currently\n * contains, and it is then up to the listeners to decide what to do with\n * those queries in terms of displays.\n * Not used 2010-08 -- TimBL\n * @class QuerySource\n * @author jambo\n */\n\nexport function QuerySource () {\n /**\n * stores all of the queries currently held by this source,\n * indexed by ID number.\n */\n this.queries = []\n /**\n * stores the listeners for a query object.\n * @see TabbedContainer\n */\n this.listeners = []\n\n /**\n * add a Query object to the query source--It will be given an ID number\n * and a name, if it doesn't already have one. This subsequently adds the\n * query to all of the listeners the QuerySource knows about.\n */\n this.addQuery = function (q) {\n let i\n if (q.name === null || q.name === '') {\n q.name = 'Query #' + (this.queries.length + 1)\n }\n q.id = this.queries.length\n this.queries.push(q)\n for (i = 0; i < this.listeners.length; i++) {\n if (this.listeners[i] !== null) {\n this.listeners[i].addQuery(q)\n }\n }\n }\n\n /**\n * Remove a Query object from the source. Tells all listeners to also\n * remove the query.\n */\n this.removeQuery = function (q) {\n let i\n for (i = 0; i < this.listeners.length; i++) {\n if (this.listeners[i] !== null) {\n this.listeners[i].removeQuery(q)\n }\n }\n if (this.queries[q.id] !== null) {\n delete this.queries[q.id]\n }\n }\n\n /**\n * adds a \"Listener\" to this QuerySource - that is, an object\n * which is capable of both adding and removing queries.\n * Currently, only the TabbedContainer class is added.\n * also puts all current queries into the listener to be used.\n */\n this.addListener = function (listener) {\n let i\n this.listeners.push(listener)\n for (i = 0; i < this.queries.length; i++) {\n if (this.queries[i] !== null) {\n listener.addQuery(this.queries[i])\n }\n }\n }\n /**\n * removes listener from the array of listeners, if it exists! Also takes\n * all of the queries from this source out of the listener.\n */\n this.removeListener = function (listener) {\n let i\n for (i = 0; i < this.queries.length; i++) {\n if (this.queries[i] !== null) {\n listener.removeQuery(this.queries[i])\n }\n }\n\n for (i = 0; i < this.listeners.length; i++) {\n if (this.listeners[i] === listener) {\n delete this.listeners[i]\n }\n }\n }\n}\n"],"mappings":";;;;AAwNA,SAAgB,IAAe;CAkE7B,AA7DA,KAAK,UAAU,CAAC,GAKhB,KAAK,YAAY,CAAC,GAOlB,KAAK,WAAW,SAAU,GAAG;EAC3B,IAAI;EAMJ,MALI,EAAE,SAAS,QAAQ,EAAE,SAAS,QAChC,EAAE,OAAO,aAAa,KAAK,QAAQ,SAAS,KAE9C,EAAE,KAAK,KAAK,QAAQ,QACpB,KAAK,QAAQ,KAAK,CAAC,GACd,IAAI,GAAG,IAAI,KAAK,UAAU,QAAQ,KACrC,AAAI,KAAK,UAAU,OAAO,QACxB,KAAK,UAAU,EAAE,CAAC,SAAS,CAAC;CAGlC,GAMA,KAAK,cAAc,SAAU,GAAG;EAC9B,IAAI;EACJ,KAAK,IAAI,GAAG,IAAI,KAAK,UAAU,QAAQ,KACrC,AAAI,KAAK,UAAU,OAAO,QACxB,KAAK,UAAU,EAAE,CAAC,YAAY,CAAC;EAGnC,AAAI,KAAK,QAAQ,EAAE,QAAQ,QACzB,OAAO,KAAK,QAAQ,EAAE;CAE1B,GAQA,KAAK,cAAc,SAAU,GAAU;EACrC,IAAI;EAEJ,KADA,KAAK,UAAU,KAAK,CAAQ,GACvB,IAAI,GAAG,IAAI,KAAK,QAAQ,QAAQ,KACnC,AAAI,KAAK,QAAQ,OAAO,QACtB,EAAS,SAAS,KAAK,QAAQ,EAAE;CAGvC,GAKA,KAAK,iBAAiB,SAAU,GAAU;EACxC,IAAI;EACJ,KAAK,IAAI,GAAG,IAAI,KAAK,QAAQ,QAAQ,KACnC,AAAI,KAAK,QAAQ,OAAO,QACtB,EAAS,YAAY,KAAK,QAAQ,EAAE;EAIxC,KAAK,IAAI,GAAG,IAAI,KAAK,UAAU,QAAQ,KACrC,AAAI,KAAK,UAAU,OAAO,KACxB,OAAO,KAAK,UAAU;CAG5B;AACF"}
1
+ {"version":3,"file":"queryByExample.esm.js","names":[],"sources":["../../src/outline/queryByExample.js"],"sourcesContent":["/* istanbul ignore file */\n// The query-by-example functionality in the tabulator\n// was the ability to expore a bit of the web in outline mode,\n// select a ceratain set of fields in the tree,\n// then pres \"find all\" which would then generte a SPARQL query\n// to find all other places which had the same pattern.\n// Fields could be optional by pressing th ewhite optoional button\n\nimport { store } from 'solid-logic'\nimport * as UI from 'solid-ui'\nimport * as $rdf from 'rdflib'\n\nconst optionalSubqueriesIndex = []\n\nfunction predParentOf (node) {\n let n = node\n while (true) {\n if (n.getAttribute('predTR')) {\n return n\n } else if (n.previousSibling && n.previousSibling.nodeName === 'TR') {\n n = n.previousSibling\n } else {\n console.log('Could not find predParent')\n return node\n }\n }\n}\n\nexport function makeQueryRow (q, tr, constraint) {\n // predtr = predParentOf(tr)\n // var nodes = tr.childNodes\n // var n = tr.childNodes.length\n const inverse = tr.AJAR_inverse\n // var hasVar = 0\n let parentVar, level, pat\n\n function makeRDFStatement (freeVar, parent) {\n if (inverse) {\n return new $rdf.Statement(freeVar, st.predicate, parent)\n } else {\n return new $rdf.Statement(parent, st.predicate, freeVar)\n }\n }\n\n let optionalSubqueryIndex = null\n\n for (level = tr.parentNode; level; level = level.parentNode) {\n if (typeof level.AJAR_statement !== 'undefined') {\n // level.AJAR_statement\n level.setAttribute('bla', level.AJAR_statement) // @@? -timbl\n // UI.log.debug(\"Parent TR statement=\"+level.AJAR_statement + \", var=\" + level.AJAR_variable)\n /* for(let c=0;c<level.parentNode.childNodes.length;c++) //This makes sure the same variable is used for a subject\n if(level.parentNode.childNodes[c].AJAR_variable)\n level.AJAR_variable = level.parentNode.childNodes[c].AJAR_variable; */\n if (!level.AJAR_variable) {\n makeQueryRow(q, level)\n }\n parentVar = level.AJAR_variable\n const predLevel = predParentOf(level)\n if (predLevel.getAttribute('optionalSubqueriesIndex')) {\n optionalSubqueryIndex = predLevel.getAttribute(\n 'optionalSubqueriesIndex'\n )\n pat = optionalSubqueriesIndex[optionalSubqueryIndex]\n }\n break\n }\n }\n\n if (!pat) {\n pat = q.pat\n }\n\n const predtr = predParentOf(tr)\n // /////OPTIONAL KLUDGE///////////\n const opt = predtr.getAttribute('optional')\n if (!opt) {\n if (optionalSubqueryIndex) {\n predtr.setAttribute('optionalSubqueriesIndex', optionalSubqueryIndex)\n } else {\n predtr.removeAttribute('optionalSubqueriesIndex')\n }\n }\n if (opt) {\n const optForm = store.formula()\n optionalSubqueriesIndex.push(optForm)\n predtr.setAttribute(\n 'optionalSubqueriesIndex',\n optionalSubqueriesIndex.length - 1\n )\n pat.optional.push(optForm)\n pat = optForm\n }\n\n // //////////////////////////////\n\n const st = tr.AJAR_statement\n\n const constraintVar = tr.AJAR_inverse ? st.subject : st.object // this is only used for constraints\n let hasParent = true\n if (constraintVar.isBlank && constraint) {\n window.alert(\n 'You cannot constrain a query with a blank node. No constraint will be added.'\n )\n }\n if (!parentVar) {\n hasParent = false\n parentVar = inverse ? st.object : st.subject // if there is no parents, uses the sub/obj\n }\n // UI.log.debug('Initial variable: '+tr.AJAR_variable)\n const v = tr.AJAR_variable\n ? tr.AJAR_variable\n : store.variable(UI.utils.newVariableName())\n q.vars.push(v)\n v.label = hasParent ? parentVar.label : UI.utils.label(parentVar)\n v.label += ' ' + UI.utils.predicateLabelForXML(st.predicate, inverse)\n const pattern = makeRDFStatement(v, parentVar)\n // alert(pattern)\n v.label = v.label.slice(0, 1).toUpperCase() + v.label.slice(1) // init cap\n\n // See ../rdf/sparql.js\n // This should only work on literals but doesn't.\n function ConstraintEqualTo (value) {\n this.describe = function (varstr) {\n return varstr + ' = ' + value.toNT()\n }\n this.test = function (term) {\n return value.sameTerm(term)\n }\n return this\n }\n\n if (constraint) {\n // binds the constrained variable to its selected value\n pat.constraints[v] = new ConstraintEqualTo(constraintVar)\n }\n UI.log.info('Pattern: ' + pattern)\n pattern.tr = tr\n tr.AJAR_pattern = pattern // Cross-link UI and query line\n tr.AJAR_variable = v\n // UI.log.debug('Final variable: '+tr.AJAR_variable)\n UI.log.debug('Query pattern: ' + pattern)\n pat.statements.push(pattern)\n return v\n} // makeQueryRow\n\nfunction saveQuery (selection, qs) {\n // var qs = outline.qs // @@\n const q = new $rdf.Query()\n const n = selection.length\n let i, sel, st, tr\n for (i = 0; i < n; i++) {\n sel = selection[i]\n tr = sel.parentNode\n st = tr.AJAR_statement\n UI.log.debug('Statement ' + st)\n if (sel.getAttribute('class').indexOf('pred') >= 0) {\n UI.log.info(' We have a predicate')\n makeQueryRow(q, tr)\n }\n if (sel.getAttribute('class').indexOf('obj') >= 0) {\n UI.log.info(' We have an object')\n makeQueryRow(q, tr, true)\n }\n }\n qs.addQuery(q)\n\n function resetOutliner (pat) {\n const n = pat.statements.length\n let pattern, tr\n for (let i = 0; i < n; i++) {\n pattern = pat.statements[i]\n tr = pattern.tr\n // UI.log.debug('tr: ' + tr.AJAR_statement);\n if (typeof tr !== 'undefined') {\n tr.AJAR_pattern = null // TODO: is this == to whats in current version?\n tr.AJAR_variable = null\n }\n }\n for (const x in pat.optional) {\n resetOutliner(pat.optional[x])\n }\n }\n resetOutliner(q.pat)\n // NextVariable=0;\n return q\n} // saveQuery\n\n// When the user asks for all list of all matching parts of the data\n//\nexport function viewAndSaveQuery (outline, selection) {\n const qs = outline.qs\n UI.log.info('outline.doucment is now ' + outline.document.location)\n const q = saveQuery(selection, qs)\n /*\n if (tabulator.isExtension) {\n // tabulator.drawInBestView(q)\n } else\n */\n\n for (let i = 0; i < qs.listeners.length; i++) {\n qs.listeners[i].getActiveView().view.drawQuery(q)\n qs.listeners[i].updateQueryControls(qs.listeners[i].getActiveView())\n }\n}\n\n/**\n * The QuerySource object stores a set of listeners and a set of queries.\n * It keeps the listeners aware of those queries that the source currently\n * contains, and it is then up to the listeners to decide what to do with\n * those queries in terms of displays.\n * Not used 2010-08 -- TimBL\n * @class QuerySource\n * @author jambo\n */\n\nexport function QuerySource () {\n /**\n * stores all of the queries currently held by this source,\n * indexed by ID number.\n */\n this.queries = []\n /**\n * stores the listeners for a query object.\n * @see TabbedContainer\n */\n this.listeners = []\n\n /**\n * add a Query object to the query source--It will be given an ID number\n * and a name, if it doesn't already have one. This subsequently adds the\n * query to all of the listeners the QuerySource knows about.\n */\n this.addQuery = function (q) {\n let i\n if (q.name === null || q.name === '') {\n q.name = 'Query #' + (this.queries.length + 1)\n }\n q.id = this.queries.length\n this.queries.push(q)\n for (i = 0; i < this.listeners.length; i++) {\n if (this.listeners[i] !== null) {\n this.listeners[i].addQuery(q)\n }\n }\n }\n\n /**\n * Remove a Query object from the source. Tells all listeners to also\n * remove the query.\n */\n this.removeQuery = function (q) {\n let i\n for (i = 0; i < this.listeners.length; i++) {\n if (this.listeners[i] !== null) {\n this.listeners[i].removeQuery(q)\n }\n }\n if (this.queries[q.id] !== null) {\n delete this.queries[q.id]\n }\n }\n\n /**\n * adds a \"Listener\" to this QuerySource - that is, an object\n * which is capable of both adding and removing queries.\n * Currently, only the TabbedContainer class is added.\n * also puts all current queries into the listener to be used.\n */\n this.addListener = function (listener) {\n let i\n this.listeners.push(listener)\n for (i = 0; i < this.queries.length; i++) {\n if (this.queries[i] !== null) {\n listener.addQuery(this.queries[i])\n }\n }\n }\n /**\n * removes listener from the array of listeners, if it exists! Also takes\n * all of the queries from this source out of the listener.\n */\n this.removeListener = function (listener) {\n let i\n for (i = 0; i < this.queries.length; i++) {\n if (this.queries[i] !== null) {\n listener.removeQuery(this.queries[i])\n }\n }\n\n for (i = 0; i < this.listeners.length; i++) {\n if (this.listeners[i] === listener) {\n delete this.listeners[i]\n }\n }\n }\n}\n"],"mappings":";;;;;AAwNA,SAAgB,IAAe;CAkE7B,AA7DA,KAAK,UAAU,CAAC,GAKhB,KAAK,YAAY,CAAC,GAOlB,KAAK,WAAW,SAAU,GAAG;EAC3B,IAAI;EAMJ,MALI,EAAE,SAAS,QAAQ,EAAE,SAAS,QAChC,EAAE,OAAO,aAAa,KAAK,QAAQ,SAAS,KAE9C,EAAE,KAAK,KAAK,QAAQ,QACpB,KAAK,QAAQ,KAAK,CAAC,GACd,IAAI,GAAG,IAAI,KAAK,UAAU,QAAQ,KACrC,AAAI,KAAK,UAAU,OAAO,QACxB,KAAK,UAAU,EAAE,CAAC,SAAS,CAAC;CAGlC,GAMA,KAAK,cAAc,SAAU,GAAG;EAC9B,IAAI;EACJ,KAAK,IAAI,GAAG,IAAI,KAAK,UAAU,QAAQ,KACrC,AAAI,KAAK,UAAU,OAAO,QACxB,KAAK,UAAU,EAAE,CAAC,YAAY,CAAC;EAGnC,AAAI,KAAK,QAAQ,EAAE,QAAQ,QACzB,OAAO,KAAK,QAAQ,EAAE;CAE1B,GAQA,KAAK,cAAc,SAAU,GAAU;EACrC,IAAI;EAEJ,KADA,KAAK,UAAU,KAAK,CAAQ,GACvB,IAAI,GAAG,IAAI,KAAK,QAAQ,QAAQ,KACnC,AAAI,KAAK,QAAQ,OAAO,QACtB,EAAS,SAAS,KAAK,QAAQ,EAAE;CAGvC,GAKA,KAAK,iBAAiB,SAAU,GAAU;EACxC,IAAI;EACJ,KAAK,IAAI,GAAG,IAAI,KAAK,QAAQ,QAAQ,KACnC,AAAI,KAAK,QAAQ,OAAO,QACtB,EAAS,YAAY,KAAK,QAAQ,EAAE;EAIxC,KAAK,IAAI,GAAG,IAAI,KAAK,UAAU,QAAQ,KACrC,AAAI,KAAK,UAAU,OAAO,KACxB,OAAO,KAAK,UAAU;CAG5B;AACF"}
@@ -2,7 +2,7 @@ const e=require("../_virtual/_rolldown/runtime.cjs.js");let t=require("solid-ui"
2
2
  `)},u=t.ns.rdf,d=i.Namespace(`http://purl.org/ontology/bibo/`),f=i.Namespace(`http://purl.org/dc/elements/1.1/`),p=!1;return a||(a=new i.Formula,a.superFormula=n.store),o||=new i.IndexedFormula,o.name=`TempFormula`,n.store.updater||(n.store.updater=new i.UpdateManager(n.store)),{sparqler:n.store.updater,lastModified:null,lastModifiedStat:null,statIsInverse:!1,addNewPredicateObject:function(r){if(t.utils.getTarget(r).className!==`bottom-border-active`)return;let a=e.UserInput,o=t.utils.getTarget(r),s=c.createElement(`tr`);t.utils.ancestor(o,`DIV`).insertBefore(s,t.utils.ancestor(o,`TR`));let l=c.createElement(`tr`),u=a.generateRequest(`(TBD)`,l,!0);s.appendChild(l.firstChild);let d=a.generateRequest(`(Enter text or drag an object onto this field)`,l,!1);if(s.appendChild(l.firstChild),t.utils.ancestor(o,`TR`).previousSibling&&t.utils.ancestor(o,`TR`).previousSibling.AJAR_statement){let e=t.utils.ancestor(o,`TR`).previousSibling.AJAR_statement;a.formUndetStat(s,e.subject,u,d,e.why,!1)}else{let e=t.utils.getAbout(n.store,t.utils.ancestor(o.parentNode.parentNode,`TD`)),r=n.store.sym(i.Util.uri.docpart(e.uri));a.formUndetStat(s,e,u,d,r,!1)}e.walk(`moveTo`,s.firstChild),t.log.info(`addNewPredicateObject: selection = `+e.getSelection().map(function(e){return e.textContent}).join(`, `)),this.startFillInText(e.getSelection()[0])},addNewObject:function(n){let r=t.utils.getTarget(n).parentNode.parentNode,i=r.parentNode.AJAR_inverse;this.lastModifiedStat=r.parentNode.AJAR_statement;let a=this.appendToPredicate(r),o=this.generateRequest(` (Error) `,a,!1),s=a.previousSibling.AJAR_statement;i?this.formUndetStat(a,o,s.predicate,s.object,s.why,!0):this.formUndetStat(a,s.subject,s.predicate,o,s.why,!1),e.walk(`moveTo`,a.lastChild),this.startFillInText(a.lastChild)},Delete:function(e){this.deleteTriple(e,!1)},Enter:function(e){this.literalModification(e)},Click:function(e){let n=t.utils.getTarget(e);t.utils.getTerm(n).termType===`Literal`&&(this.literalModification(n),e.preventDefault(),e.stopPropagation())},pasteFromClipboard:function(n,r){function i(n){let r=e.clipboard[n].shift();if(r===null){t.log.warn(`no more element in clipboard!`);return}switch(n){case`predicates`:case`objects`:{let t=e.clipboard.all;for(let e=0;;e++)if(r.sameTerm(t[e])){t.splice(e,1);break}break}case`all`:throw Error(`hostorical code not understood - what is theCollection?`)}return r}let a;switch(r.className){case`undetermined selected`:if(a=r.nextSibling?i(`predicates`):i(`objects`),!a)return;break;case`pred selected`:if(a=i(`objects`),!a)return;break;case`selected`:{let e=i(`all`);if(!e)return;a=e[0],this.insertTermTo(r,a,e[1]);return}}this.insertTermTo(r,a)},startFillInText:function(e){switch(this.whatSortOfEditCell(e)){case`DatatypeProperty-like`:t.utils.emptyNode(e),this.lastModified=this.createInputBoxIn(e,` (Please Input) `),this.lastModified.isNew=!1,this.lastModified.select();break;case`predicate`:this.performAutoCompleteEdit(e,`PredicateAutoComplete`);break;case`ObjectProperty-like`:case`no-idea`:this.performAutoCompleteEdit(e,`GeneralAutoComplete`)}},literalModification:function(e){if(t.log.debug(`entering literal Modification with `+e+e.textContent),e.className.indexOf(` pendingedit`)!==-1)return t.log.warn(`The node you attempted to edit has a request still pending.
3
3
  Please wait for the request to finish (the text will turn black)
4
4
  before editing this node again.`),!0;let r=e;if(!this.getStatementAbout(r))return;let i,a;try{i=t.utils.getTerm(r),a=t.utils.ancestor(r,`TR`)}catch(i){t.log.warn(`userinput.js: `+i+t.utils.getAbout(n.store,e)),t.log.error(r+` getStatement Error:`+i)}let o;try{o=a.lastChild}catch(e){t.log.error(e+`@`+r)}if(i.termType===`Literal`){if(o.removeChild(o.firstChild),i.value.match(`
5
- `)){let e=c.createElement(`textarea`);e.appendChild(c.createTextNode(i.value)),e.setAttribute(`rows`,(i.value.match(/\n/g).length+1).toString()),e.setAttribute(`cols`,`100`),e.setAttribute(`class`,`textinput`),o.appendChild(e),this.lastModified=e}else this.lastModified=this.createInputBoxIn(o,i.value);this.lastModified.isNew=!1,this.lastModified.select()}return!0},performAutoCompleteEdit:function(e,n){t.utils.emptyNode(e),l(`perform AutoCompleteEdit. THIS IS=`+this),this.lastModified=this.createInputBoxIn(e,``),this.lastModified.select(),this.lastModified.addEventListener(`keypress`,this.getAutoCompleteHandler(n),!1),this.getAutoCompleteHandler(n)(1)},backOut:function(){this.deleteTriple(this.lastModified.parentNode,!0),this.lastModified=null},clearMenu:function(){let e=c.getElementById(this.menuID);e&&e.parentNode.removeChild(e)},clearInputAndSave:function(a){let o;if(!this.lastModified)return;if(!this.lastModified.isNew)try{o=this.getStatementAbout(this.lastModified).object}catch{return}let s=this.lastModifiedStat,c,l,d,f;if(this.lastModified.value!==this.lastModified.defaultValue){let l;if(this.lastModified.value===``){this.lastModified.value=this.lastModified.defaultValue,this.clearInputAndSave();return}else if(this.lastModified.isNew){s=new i.Statement(s.subject,s.predicate,n.store.literal(this.lastModified.value),s.why),c=this.views.defaults[s.predicate.uri],l=t.utils.ancestor(this.lastModified,`TR`);try{n.store.updater.update([],[s],function(n,r,i){r||(t.log.error(`Error occurs while inserting `+s+`
5
+ `)){let e=c.createElement(`textarea`);e.appendChild(c.createTextNode(i.value)),e.setAttribute(`rows`,(i.value.match(/\n/g).length+1).toString()),e.setAttribute(`cols`,`100`),e.setAttribute(`class`,`textinput`),o.appendChild(e),this.lastModified=e}else this.lastModified=this.createInputBoxIn(o,i.value);this.lastModified.isNew=!1,this.lastModified.select()}return!0},performAutoCompleteEdit:function(e,n){t.utils.emptyNode(e),l(`perform AutoCompleteEdit. THIS IS=`+this),this.lastModified=this.createInputBoxIn(e,``),this.lastModified.select(),this.lastModified.addEventListener(`keypress`,this.getAutoCompleteHandler(n),!1),this.getAutoCompleteHandler(n)(1)},backOut:function(){this.deleteTriple(this.lastModified.parentNode,!0),this.lastModified=null},clearMenu:function(){let e=c.getElementById(this.menuID);e&&e.parentNode.removeChild(e)},clearInputAndSave:function(a){let o;if(!this.lastModified)return;if(!this.lastModified.isNew)try{o=this.getStatementAbout(this.lastModified).object}catch{return}let s=this.lastModifiedStat,c,l,d,f;if(this.lastModified.value!==this.lastModified.defaultValue){let l;if(this.lastModified.value===``){this.lastModified.value=this.lastModified.defaultValue,this.clearInputAndSave();return}if(this.lastModified.isNew){s=new i.Statement(s.subject,s.predicate,n.store.literal(this.lastModified.value),s.why),c=this.views.defaults[s.predicate.uri],l=t.utils.ancestor(this.lastModified,`TR`);try{n.store.updater.update([],[s],function(n,r,i){r||(t.log.error(`Error occurs while inserting `+s+`
6
6
 
7
7
  `+i+`
8
8
  `),e.UserInput.deleteTriple(l.lastChild,!0))})}catch(e){t.log.error(`Error inserting fact `+s+`:
@@ -34,11 +34,11 @@ WHERE{
34
34
  ?pred `+t.ns.rdfs(`range`)+`?objectClass.
35
35
  }`,o=i.SPARQLToQuery(l)}this.showMenu(e,`GeneralPredicateChoice`,o,{isPredicate:a,selectedTd:r})}else{let o=r.parentNode.AJAR_statement.predicate;if((n.store.whether(o,u(`type`),t.ns.owl(`DatatypeProperty`))||o.termType===`Collection`||n.store.whether(o,t.ns.rdfs(`range`),t.ns.rdfs(`Literal`)))&&(r.className=``,t.utils.emptyNode(r),this.lastModified=this.createInputBoxIn(r,` (Please Input) `),this.lastModified.isNew=!1,this.lastModified.select()),r.parentNode.AJAR_statement.predicate.sameTerm(u(`type`))){let n=`SELECT ?class WHERE{?class `+u(`type`)+t.ns.rdfs(`Class`)+`.}`,o=i.SPARQLToQuery(n);this.showMenu(e,`TypeChoice`,o,{isPredicate:a,selectedTd:r})}}},getAutoCompleteHandler:function(r){l(`
36
36
 
37
- ***** In getAutoCompleteHandler ****** mode = `+r),r===`PredicateAutoComplete`?r=`predicate`:r!==`JournalTAC`&&(r=`all`);let i;return i=r===`JournalTAC`?c.getElementById(`inpid_journal_title`):this.lastModified||e.getSelection()[0].firstChild,l(`InputBox=`+i),l(`InputBox.value=`+i.value),function(a){l(`ENTER EVENT=`+a),l(`1. outside (if eneterEvent)`);let o={},s=i.parentNode;r||=s.nextSibling?`predicate`:`all`,o.pageX=t.utils.findPos(s)[0],o.pageY=t.utils.findPos(s)[1]+s.clientHeight,l(`epX=`+o.pageX+`, epY=`+o.pageY+`, mode=`+r);let u=c.getElementById(e.UserInput.menuID);function d(r){r&&(u.lastHighlight&&(u.lastHighlight.className=``),u.lastHighlight=r,u.lastHighlight.className=`activeItem`,e.showURI(t.utils.getAbout(n.store,u.lastHighlight)))}if(a){l(`2. in (if enterEvent). with type = `+typeof a);let f=i.value;if(typeof a==`object`)switch(l(`3. in typeof enterEvent is object, will switch to keys, arrows, etc. keycode = `+a.keyCode),a.stopPropagation(),u&&!u.lastHighlight&&d(u.firstChild.firstChild),a.keyCode){case 13:case 9:if(l(`handler: Enter or Tab`),!u){e.UserInput.clearInputAndSave();return}if(!u.lastHighlight)return r===`JournalTAC`?(e.UserInput.clearMenu(),l(`no lastH`),`no lastH`):void 0;if(u.lastHighlight.tagName===`INPUT`)switch(u.lastHighlight.value){case`New...`:l(`subcase New`),e.UserInput.createNew();break;case`GiveURI`:l(`subcase GiveURI`),e.UserInput.inputURI();break}else{if(r===`JournalTAC`){if(l(`movedArrow? `+p),p&&u.lastHighlight){let e=u.lastHighlight.firstChild.firstChild.innerHTML,t=u.lastHighlight.firstChild.nextSibling.innerHTML;return t=t.slice(4,-4),[`gotdptitle`,e,t]}return`asGivenTxt`}let a=t.utils.getAbout(n.store,u.lastHighlight),o=r===`predicate`?`predicate`:`object`;e.UserInput.clearMenu(),e.UserInput.fillInRequest(o,i.parentNode,a)}l(`outside`);return;case 38:return l(`handler: Arrow UP`),p=!0,f===``&&u.lastHighlight.tagName===`TR`&&!u.lastHighlight.previousSibling?d(u.firstChild.firstChild):d(u.lastHighlight.previousSibling),`I'm a little Arrow Up`;case 40:return l(`handler: Arrow Down`),p=!0,u.lastHighlight.tagName===`INPUT`?d(u.childNodes[1].firstChild):d(u.lastHighlight.nextSibling),`I'm a little Down Arrow`;case 37:case 39:l(`handler: Arrow left, right`),u.lastHighlight.tagName===`INPUT`&&(a.keyCode===37?d(u.lastHighlight.previousSibling):d(u.lastHighlight.nextSibling));return;case 8:l(`handler: Backspace`),f=f.slice(0,-1);break;case 27:if(l(`handler: Esc`),!u){e.UserInput.backOut();return}e.UserInput.clearMenu();return;default:l(`handler: Default`),p=!1,l(`oldtext=`+f),f+=String.fromCharCode(a.charCode),l(`charcodent=`+a.charCode),l(`strcharcod=`+String.fromCharCode(a.charCode)),console.log(`DEFAULT txtstr=`+f+`
37
+ ***** In getAutoCompleteHandler ****** mode = `+r),r===`PredicateAutoComplete`?r=`predicate`:r!==`JournalTAC`&&(r=`all`);let i;return i=r===`JournalTAC`?c.getElementById(`inpid_journal_title`):this.lastModified||e.getSelection()[0].firstChild,l(`InputBox=`+i),l(`InputBox.value=`+i.value),function(a){l(`ENTER EVENT=`+a),l(`1. outside (if eneterEvent)`);let o={},s=i.parentNode;r||=s.nextSibling?`predicate`:`all`,o.pageX=t.utils.findPos(s)[0],o.pageY=t.utils.findPos(s)[1]+s.clientHeight,l(`epX=`+o.pageX+`, epY=`+o.pageY+`, mode=`+r);let u=c.getElementById(e.UserInput.menuID);function d(r){r&&(u.lastHighlight&&(u.lastHighlight.className=``),u.lastHighlight=r,u.lastHighlight.className=`activeItem`,e.showURI(t.utils.getAbout(n.store,u.lastHighlight)))}if(a){l(`2. in (if enterEvent). with type = `+typeof a);let f=i.value;if(typeof a==`object`)switch(l(`3. in typeof enterEvent is object, will switch to keys, arrows, etc. keycode = `+a.keyCode),a.stopPropagation(),u&&!u.lastHighlight&&d(u.firstChild.firstChild),a.keyCode){case 13:case 9:if(l(`handler: Enter or Tab`),!u){e.UserInput.clearInputAndSave();return}if(!u.lastHighlight)return r===`JournalTAC`?(e.UserInput.clearMenu(),l(`no lastH`),`no lastH`):void 0;if(u.lastHighlight.tagName===`INPUT`)switch(u.lastHighlight.value){case`New...`:l(`subcase New`),e.UserInput.createNew();break;case`GiveURI`:l(`subcase GiveURI`),e.UserInput.inputURI()}else{if(r===`JournalTAC`){if(l(`movedArrow? `+p),p&&u.lastHighlight){let e=u.lastHighlight.firstChild.firstChild.innerHTML,t=u.lastHighlight.firstChild.nextSibling.innerHTML;return t=t.slice(4,-4),[`gotdptitle`,e,t]}return`asGivenTxt`}let a=t.utils.getAbout(n.store,u.lastHighlight),o=r===`predicate`?`predicate`:`object`;e.UserInput.clearMenu(),e.UserInput.fillInRequest(o,i.parentNode,a)}l(`outside`);return;case 38:return l(`handler: Arrow UP`),p=!0,f===``&&u.lastHighlight.tagName===`TR`&&!u.lastHighlight.previousSibling?d(u.firstChild.firstChild):d(u.lastHighlight.previousSibling),`I'm a little Arrow Up`;case 40:return l(`handler: Arrow Down`),p=!0,u.lastHighlight.tagName===`INPUT`?d(u.childNodes[1].firstChild):d(u.lastHighlight.nextSibling),`I'm a little Down Arrow`;case 37:case 39:l(`handler: Arrow left, right`),u.lastHighlight.tagName===`INPUT`&&(a.keyCode===37?d(u.lastHighlight.previousSibling):d(u.lastHighlight.nextSibling));return;case 8:l(`handler: Backspace`),f=f.slice(0,-1);break;case 27:if(l(`handler: Esc`),!u){e.UserInput.backOut();return}e.UserInput.clearMenu();return;default:l(`handler: Default`),p=!1,l(`oldtext=`+f),f+=String.fromCharCode(a.charCode),l(`charcodent=`+a.charCode),l(`strcharcod=`+String.fromCharCode(a.charCode)),console.log(`DEFAULT txtstr=`+f+`
38
38
  `)}if(r===`all`?(l(`generalAC after switch, newText=`+f+`mode is all`),e.UserInput.clearMenu(),e.UserInput.showMenu(o,`GeneralAutoComplete`,void 0,{inputText:f,selectedTd:s}),f.length===0&&e.UserInput.WildCardButtons()):r===`predicate`?(l(`predicateAC after switch, newText=`+f+`mode is predicate`),e.UserInput.clearMenu(),e.UserInput.showMenu(o,`PredicateAutoComplete`,void 0,{inputText:f,isPredicate:!0,selectedTd:s})):r===`JournalTAC`&&(l(`JouralTAC after switch, newText=`+f),e.UserInput.clearMenu(),e.UserInput.showMenu(o,`JournalTitleAutoComplete`,void 0,{inputText:f},`orderisuseless`)),u=c.getElementById(e.UserInput.menuID),!u){l(`No menu element. Do not show menu.`);return}return l(`at end of handler
39
39
  ^^^^^^^^^^^^^^^^^
40
40
 
41
- `),d(u.firstChild.firstChild),e.showURI(t.utils.getAbout(n.store,u.lastHighlight)),`nothing to return`}}},WildCardButtons:function(){let n=c.getElementById(e.UserInput.menuID),r=n.insertBefore(c.createElement(`div`),n.firstChild),i=r.appendChild(c.createElement(`input`)),a=r.appendChild(c.createElement(`input`));i.type=`button`,i.value=`New...`,a.type=`button`,a.value=`Know its URI`;function o(n){let r=c.getElementById(e.UserInput.menuID);r.lastHighlight&&(r.lastHighlight.className=``),r.lastHighlight=t.utils.ancestor(t.utils.getTarget(n),`INPUT`),r.lastHighlight&&(r.lastHighlight.className=`activeItem`)}r.addEventListener(`mouseover`,o,!1),i.addEventListener(`click`,this.createNew,!1),a.addEventListener(`click`,this.inputURI,!1)},Keypress:function(t){if(t.keyCode===13)if(e.targetOf(t).tagName!==`TEXTAREA`)this.clearInputAndSave();else{let e=parseInt(this.lastModified.getAttribute(`rows`));this.lastModified.setAttribute(`rows`,(e+1).toString()),t.stopPropagation()}},Mousedown:function(e){l(`MOUSING DOWN`),window.addEventListener(`keypress`,function(e){e.ctrlKey&&(e.charCode===115||e.charCode===113)&&s.switchMode()},!1),window.addEventListener(`mousedown`,s.Mousedown,!1);let t=document.getElementById(`OutlineView`);t&&(t.oncontextmenu=function(){return!1}),e.button===2&&(s.switchMode(),e&&(e.preventDefault(),e.stopPropagation()))},Mouseover:function(e){if(this.className=`bottom-border-active`,this._tabulatorMode===1)switch(t.utils.getTarget(e).tagName){case`TD`:{let n=t.utils.getTarget(e);n.className===`pred`&&(n.style.cursor=`copy`);break}case`DIV`:{let n=t.utils.getTarget(e);t.utils.getTarget(e).className===`bottom-border`&&(n.style.borderColor=`rgb(100%,65%,0%)`,n.style.cursor=`copy`);break}default:}},Mouseout:function(e){if(this.className=`bottom-border`,this._tabulatorMode===1){let n=t.utils.getTarget(e);t.utils.getTarget(e).className===`bottom-border`&&(n.style.borderColor=`transparent`,n.style.cursor=`auto`)}},whatSortOfEditCell:function(e){if(e.nextSibling)return`predicate`;let r=this.getStatementAbout(e).predicate;return n.store.whether(r,t.ns.rdf(`type`),t.ns.owl(`DatatypeProperty`))||n.store.whether(r,t.ns.rdfs(`range`),t.ns.rdfs(`Literal`))||r.termType===`Collection`?`DatatypeProperty-like`:n.store.whether(r,u(`type`),t.ns.owl(`ObjectProperty`))?`ObjectProperty-like`:`no-idea`},getStatementAbout:function(e){let n=t.utils.ancestor(e,`TR`);if(!n)throw Error(`No ancestor TR for the TD we clicked on:`+e);let r;try{r=n.AJAR_statement}catch{throw Error(`No AJAR_statement!`+e+e.textContent+` has ancestor `+n)}return this.lastModifiedStat=n.AJAR_statement,this.statIsInverse=n.AJAR_inverse,r},createInputBoxIn:function(n,r){function i(t){(t.keyCode===38||t.keyCode===40)&&(e.OutlinerKeypressPanel(t),e.UserInput.clearInputAndSave())}t.log.info(`myDocument in createInputBoxIn is now `+c.location),t.log.info(`outline.document is now `+e.document.location);let a=c.createElement(`input`);return a.setAttribute(`value`,r),a.setAttribute(`class`,`textinput`),n.className!==`undetermined selected`&&(a.setAttribute(`size`,`100`),a.addEventListener(`keypress`,i,!1)),n.appendChild(a),a},createNew:function(t){e.UserInput.clearMenu();let r=e.getSelection()[0],i=r.parentNode.AJAR_statement.why,a=n.store.nextSymbol(i);e.UserInput.fillInRequest(`object`,r,a),e.outlineExpand(e.getSelection()[0],a)},inputURI:function(r){let i=e.UserInput;i.clearMenu();let a=e.getSelection()[0];t.utils.emptyNode(a);let o=` (Type a URI) `;i.lastModified=i.createInputBoxIn(a,o),i.lastModified.select();function s(e){switch(e.stopPropagation(),e.keyCode){case 13:case 9:if(this.value!==o){let e=this.value;i.fillInRequest(`object`,a,n.store.sym(e))}}}i.lastModified.addEventListener(`keypress`,s,!1)},appendToPredicate:function(e){let t=!1,n;try{for(n=e.parentNode.nextSibling;n.childNodes.length===1&&n.AJAR_statement;n=n.nextSibling);}catch{t=!0}let r=c.createElement(`tr`);if(r.style.colspan=`1`,r.style.display=`block`,r.style.display=``,e.hasAttribute(`rowspan`)&&e.setAttribute(`rowspan`,parseInt(e.getAttribute(`rowspan`))+1),e.hasAttribute(`rowspan`)||e.setAttribute(`rowspan`,`2`),!t)n.parentNode.insertBefore(r,n);else{let t=e.parentNode.parentNode;t.className===`defaultPane`?t.insertBefore(r,t.lastChild):t.appendChild(r)}return r},bnode2symbol:function(e,t){n.store.copyTo(e,t,[`two-direction`,`delete`])},generateRequest:function(n,r,i,a){let s;a||(s=r||t.utils.ancestor(this.lastModified,`TR`),t.utils.emptyNode(s));let c=o,l=c.bnode();if(c.add(l,t.ns.rdf(`type`),t.ns.link(`Request`)),n.length,c.add(l,t.ns.link(`message`),c.literal(n)),c.add(l,t.ns.link(`to`),c.literal(`The User`)),c.add(l,t.ns.link(`from`),c.literal(`The User`)),!a){let t;t=i?s.appendChild(e.outlinePredicateTD(l,s,!1,!1)):s.appendChild(e.outlineObjectTD(l)),t.className=`undetermined`,t.textContent=n}return l},showMenu:function(r,a,o,s,p){t.log.info(`myDocument is now `+c.location),t.log.info(`outline.doucment is now `+e.document.location);let m=this,h=c.createElement(`div`);if(l(`
41
+ `),d(u.firstChild.firstChild),e.showURI(t.utils.getAbout(n.store,u.lastHighlight)),`nothing to return`}}},WildCardButtons:function(){let n=c.getElementById(e.UserInput.menuID),r=n.insertBefore(c.createElement(`div`),n.firstChild),i=r.appendChild(c.createElement(`input`)),a=r.appendChild(c.createElement(`input`));i.type=`button`,i.value=`New...`,a.type=`button`,a.value=`Know its URI`;function o(n){let r=c.getElementById(e.UserInput.menuID);r.lastHighlight&&(r.lastHighlight.className=``),r.lastHighlight=t.utils.ancestor(t.utils.getTarget(n),`INPUT`),r.lastHighlight&&(r.lastHighlight.className=`activeItem`)}r.addEventListener(`mouseover`,o,!1),i.addEventListener(`click`,this.createNew,!1),a.addEventListener(`click`,this.inputURI,!1)},Keypress:function(t){if(t.keyCode===13)if(e.targetOf(t).tagName!==`TEXTAREA`)this.clearInputAndSave();else{let e=parseInt(this.lastModified.getAttribute(`rows`));this.lastModified.setAttribute(`rows`,(e+1).toString()),t.stopPropagation()}},Mousedown:function(e){l(`MOUSING DOWN`),window.addEventListener(`keypress`,function(e){e.ctrlKey&&(e.charCode===115||e.charCode===113)&&s.switchMode()},!1),window.addEventListener(`mousedown`,s.Mousedown,!1);let t=document.getElementById(`OutlineView`);t&&(t.oncontextmenu=function(){return!1}),e.button===2&&(s.switchMode(),e&&(e.preventDefault(),e.stopPropagation()))},Mouseover:function(e){if(this.className=`bottom-border-active`,this._tabulatorMode===1)switch(t.utils.getTarget(e).tagName){case`TD`:{let n=t.utils.getTarget(e);n.className===`pred`&&(n.style.cursor=`copy`);break}case`DIV`:{let n=t.utils.getTarget(e);t.utils.getTarget(e).className===`bottom-border`&&(n.style.borderColor=`rgb(100%,65%,0%)`,n.style.cursor=`copy`);break}}},Mouseout:function(e){if(this.className=`bottom-border`,this._tabulatorMode===1){let n=t.utils.getTarget(e);t.utils.getTarget(e).className===`bottom-border`&&(n.style.borderColor=`transparent`,n.style.cursor=`auto`)}},whatSortOfEditCell:function(e){if(e.nextSibling)return`predicate`;let r=this.getStatementAbout(e).predicate;return n.store.whether(r,t.ns.rdf(`type`),t.ns.owl(`DatatypeProperty`))||n.store.whether(r,t.ns.rdfs(`range`),t.ns.rdfs(`Literal`))||r.termType===`Collection`?`DatatypeProperty-like`:n.store.whether(r,u(`type`),t.ns.owl(`ObjectProperty`))?`ObjectProperty-like`:`no-idea`},getStatementAbout:function(e){let n=t.utils.ancestor(e,`TR`);if(!n)throw Error(`No ancestor TR for the TD we clicked on:`+e);let r;try{r=n.AJAR_statement}catch{throw Error(`No AJAR_statement!`+e+e.textContent+` has ancestor `+n)}return this.lastModifiedStat=n.AJAR_statement,this.statIsInverse=n.AJAR_inverse,r},createInputBoxIn:function(n,r){function i(t){(t.keyCode===38||t.keyCode===40)&&(e.OutlinerKeypressPanel(t),e.UserInput.clearInputAndSave())}t.log.info(`myDocument in createInputBoxIn is now `+c.location),t.log.info(`outline.document is now `+e.document.location);let a=c.createElement(`input`);return a.setAttribute(`value`,r),a.setAttribute(`class`,`textinput`),n.className!==`undetermined selected`&&(a.setAttribute(`size`,`100`),a.addEventListener(`keypress`,i,!1)),n.appendChild(a),a},createNew:function(t){e.UserInput.clearMenu();let r=e.getSelection()[0],i=r.parentNode.AJAR_statement.why,a=n.store.nextSymbol(i);e.UserInput.fillInRequest(`object`,r,a),e.outlineExpand(e.getSelection()[0],a)},inputURI:function(r){let i=e.UserInput;i.clearMenu();let a=e.getSelection()[0];t.utils.emptyNode(a);let o=` (Type a URI) `;i.lastModified=i.createInputBoxIn(a,o),i.lastModified.select();function s(e){switch(e.stopPropagation(),e.keyCode){case 13:case 9:if(this.value!==o){let e=this.value;i.fillInRequest(`object`,a,n.store.sym(e))}}}i.lastModified.addEventListener(`keypress`,s,!1)},appendToPredicate:function(e){let t=!1,n;try{for(n=e.parentNode.nextSibling;n.childNodes.length===1&&n.AJAR_statement;n=n.nextSibling);}catch{t=!0}let r=c.createElement(`tr`);if(r.style.colspan=`1`,r.style.display=`block`,r.style.display=``,e.hasAttribute(`rowspan`)&&e.setAttribute(`rowspan`,parseInt(e.getAttribute(`rowspan`))+1),e.hasAttribute(`rowspan`)||e.setAttribute(`rowspan`,`2`),!t)n.parentNode.insertBefore(r,n);else{let t=e.parentNode.parentNode;t.className===`defaultPane`?t.insertBefore(r,t.lastChild):t.appendChild(r)}return r},bnode2symbol:function(e,t){n.store.copyTo(e,t,[`two-direction`,`delete`])},generateRequest:function(n,r,i,a){let s;a||(s=r||t.utils.ancestor(this.lastModified,`TR`),t.utils.emptyNode(s));let c=o,l=c.bnode();if(c.add(l,t.ns.rdf(`type`),t.ns.link(`Request`)),n.length,c.add(l,t.ns.link(`message`),c.literal(n)),c.add(l,t.ns.link(`to`),c.literal(`The User`)),c.add(l,t.ns.link(`from`),c.literal(`The User`)),!a){let t;t=i?s.appendChild(e.outlinePredicateTD(l,s,!1,!1)):s.appendChild(e.outlineObjectTD(l)),t.className=`undetermined`,t.textContent=n}return l},showMenu:function(r,a,o,s,p){t.log.info(`myDocument is now `+c.location),t.log.info(`outline.doucment is now `+e.document.location);let m=this,h=c.createElement(`div`);if(l(`
42
42
  **** In showMenu, menuType = `+a+`
43
43
  `),s)for(let e in s)console.log(` extra `+e+`: `+s[e]+`
44
44
  `);console.log(`CREATED MENU