solid-panes 3.5.18-5dfe2dbf → 3.5.18-a4dc4f9c
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.
- package/dev/loader.ts +11 -11
- package/lib/argument/argumentPane.js +7 -15
- package/lib/argument/argumentPane.js.map +1 -1
- package/lib/dashboard/basicPreferences.d.ts.map +1 -1
- package/lib/dashboard/basicPreferences.js +6 -6
- package/lib/dashboard/basicPreferences.js.map +1 -1
- package/lib/dashboard/dashboardPane.d.ts.map +1 -1
- package/lib/dashboard/dashboardPane.js +4 -6
- package/lib/dashboard/dashboardPane.js.map +1 -1
- package/lib/dataContentPane.js +1 -1
- package/lib/dataContentPane.js.map +1 -1
- package/lib/form/pane.js +6 -15
- package/lib/form/pane.js.map +1 -1
- package/lib/home/homePane.d.ts.map +1 -1
- package/lib/home/homePane.js +5 -7
- package/lib/home/homePane.js.map +1 -1
- package/lib/index.d.ts +3 -7
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -15
- package/lib/index.js.map +1 -1
- package/lib/mainPage/header.d.ts.map +1 -1
- package/lib/mainPage/header.js +2 -4
- package/lib/mainPage/header.js.map +1 -1
- package/lib/microblogPane/microblogPane.js +14 -16
- package/lib/microblogPane/microblogPane.js.map +1 -1
- package/lib/outline/dragDrop.js +6 -16
- package/lib/outline/dragDrop.js.map +1 -1
- package/lib/outline/licenseOptions.js +5 -12
- package/lib/outline/licenseOptions.js.map +1 -1
- package/lib/outline/manager.js +21 -29
- package/lib/outline/manager.js.map +1 -1
- package/lib/outline/queryByExample.js +6 -14
- package/lib/outline/queryByExample.js.map +1 -1
- package/lib/outline/userInput.js +80 -90
- package/lib/outline/userInput.js.map +1 -1
- package/lib/pad/padPane.d.ts.map +1 -1
- package/lib/pad/padPane.js +4 -6
- package/lib/pad/padPane.js.map +1 -1
- package/lib/profile/editProfile.view.d.ts.map +1 -1
- package/lib/profile/editProfile.view.js +3 -3
- package/lib/profile/editProfile.view.js.map +1 -1
- package/lib/schedule/schedulePane.js +14 -26
- package/lib/schedule/schedulePane.js.map +1 -1
- package/lib/socialPane.js +6 -16
- package/lib/socialPane.js.map +1 -1
- package/lib/transaction/pane.js +1 -1
- package/lib/transaction/pane.js.map +1 -1
- package/lib/transaction/period.js +1 -1
- package/lib/transaction/period.js.map +1 -1
- package/lib/trip/tripPane.js +1 -1
- package/lib/trip/tripPane.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.dom.d.ts.map +1 -1
- package/lib/trustedApplications/trustedApplications.dom.js +9 -11
- package/lib/trustedApplications/trustedApplications.dom.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.view.d.ts.map +1 -1
- package/lib/trustedApplications/trustedApplications.view.js +3 -5
- package/lib/trustedApplications/trustedApplications.view.js.map +1 -1
- package/lib/versionInfo.js +2 -2
- package/lib/versionInfo.js.map +1 -1
- package/package.json +13 -13
- package/src/argument/argumentPane.js +5 -5
- package/src/dashboard/basicPreferences.ts +5 -4
- package/src/dashboard/dashboardPane.ts +3 -4
- package/src/dataContentPane.js +1 -1
- package/src/form/pane.js +4 -5
- package/src/home/homePane.ts +6 -7
- package/src/index.ts +18 -24
- package/src/mainPage/header.ts +2 -3
- package/src/microblogPane/microblogPane.js +8 -9
- package/src/outline/dragDrop.js +4 -5
- package/src/outline/licenseOptions.js +5 -4
- package/src/outline/manager.js +21 -22
- package/src/outline/queryByExample.js +4 -4
- package/src/outline/userInput.js +72 -72
- package/src/pad/padPane.ts +3 -3
- package/src/profile/editProfile.view.ts +8 -5
- package/src/schedule/schedulePane.js +13 -14
- package/src/socialPane.js +4 -5
- package/src/transaction/pane.js +1 -1
- package/src/transaction/period.js +1 -1
- package/src/trip/tripPane.js +1 -1
- package/src/trustedApplications/trustedApplications.dom.ts +1 -2
- package/src/trustedApplications/trustedApplications.view.ts +4 -4
- package/src/versionInfo.ts +2 -2
package/src/mainPage/header.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { icons, initHeader } from 'solid-ui'
|
|
1
|
+
import { icons, authn, initHeader } from 'solid-ui'
|
|
3
2
|
/**
|
|
4
3
|
* menu icons
|
|
5
4
|
*/
|
|
@@ -42,7 +41,7 @@ async function setUserMenu (outliner: any) {
|
|
|
42
41
|
const logOut = {
|
|
43
42
|
label: LOG_OUT_MENU_ITEM,
|
|
44
43
|
onclick: () => {
|
|
45
|
-
authSession.logout()
|
|
44
|
+
authn.authSession.logout()
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
47
|
|
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
Charles McKenzie <charles2@mit.edu>
|
|
4
4
|
*/
|
|
5
5
|
/* global alert */
|
|
6
|
-
|
|
7
|
-
import * as UI from 'solid-ui'
|
|
6
|
+
const UI = require('solid-ui')
|
|
8
7
|
|
|
9
8
|
module.exports = {
|
|
10
9
|
icon: UI.icons.originalIconBase + 'microblog/microblog.png',
|
|
11
10
|
name: 'microblogPane',
|
|
12
11
|
label: function (subject) {
|
|
13
|
-
if (store.whether(subject, UI.ns.rdf('type'), UI.ns.foaf('Person'))) {
|
|
12
|
+
if (UI.store.whether(subject, UI.ns.rdf('type'), UI.ns.foaf('Person'))) {
|
|
14
13
|
return 'Microblog'
|
|
15
14
|
} else {
|
|
16
15
|
return null
|
|
@@ -26,9 +25,9 @@ module.exports = {
|
|
|
26
25
|
const terms = UI.rdf.Namespace('http://purl.org/dc/terms/')
|
|
27
26
|
const RDF = UI.ns.rdf
|
|
28
27
|
|
|
29
|
-
const kb = store
|
|
28
|
+
const kb = UI.store
|
|
30
29
|
const charCount = 140
|
|
31
|
-
const sf = store.fetcher
|
|
30
|
+
const sf = UI.store.fetcher
|
|
32
31
|
//* **********************************************
|
|
33
32
|
// BACK END
|
|
34
33
|
//* **********************************************
|
|
@@ -135,7 +134,7 @@ module.exports = {
|
|
|
135
134
|
// attempt to fetch user account from local preferences if just
|
|
136
135
|
// in case the user's foaf was not writable. add it to the store
|
|
137
136
|
// this will probably need to change.
|
|
138
|
-
const theUser = authn.currentUser()
|
|
137
|
+
const theUser = UI.authn.currentUser()
|
|
139
138
|
|
|
140
139
|
if (theUser) {
|
|
141
140
|
let theAccount = UI.preferences.get('acct')
|
|
@@ -305,7 +304,7 @@ module.exports = {
|
|
|
305
304
|
})
|
|
306
305
|
}
|
|
307
306
|
Microblog.prototype.getMyURI = function () {
|
|
308
|
-
const me = authn.currentUser()
|
|
307
|
+
const me = UI.authn.currentUser()
|
|
309
308
|
console.log(me)
|
|
310
309
|
const myMicroblog = kb.any(kb.sym(me), FOAF('holdsAccount'))
|
|
311
310
|
console.log('\n\n' + myMicroblog)
|
|
@@ -534,7 +533,7 @@ module.exports = {
|
|
|
534
533
|
} else if (resourceType.uri === SIOC('User').uri) {
|
|
535
534
|
this.thisIsMe = s.uri === mb.getMyURI()
|
|
536
535
|
} else if (resourceType.uri === FOAF('Person').uri) {
|
|
537
|
-
const me = authn.currentUser()
|
|
536
|
+
const me = UI.authn.currentUser()
|
|
538
537
|
const meUri = me && me.uri
|
|
539
538
|
this.thisIsMe = s.uri === meUri
|
|
540
539
|
} else {
|
|
@@ -901,7 +900,7 @@ module.exports = {
|
|
|
901
900
|
) {
|
|
902
901
|
creator = creators[c]
|
|
903
902
|
// var mb = kb.sym(creator.uri.split("#")[0]);
|
|
904
|
-
// store.fetcher.refresh(mb);
|
|
903
|
+
// UI.store.fetcher.refresh(mb);
|
|
905
904
|
break
|
|
906
905
|
// TODO add support for more than one microblog in same foaf
|
|
907
906
|
}
|
package/src/outline/dragDrop.js
CHANGED
|
@@ -20,10 +20,9 @@ if (!tabulator_gBrowser) {
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
/* 2007: adapted from dragAndDrop UI Library */
|
|
23
|
-
import { store } from 'solid-logic'
|
|
24
|
-
import * as UI from 'solid-ui'
|
|
25
|
-
import * as $rdf from 'rdflib'
|
|
26
23
|
|
|
24
|
+
const UI = require('solid-ui')
|
|
25
|
+
const $rdf = require('rdflib')
|
|
27
26
|
const dragAndDrop = (module.exports = {})
|
|
28
27
|
|
|
29
28
|
dragAndDrop.util = {}
|
|
@@ -271,7 +270,7 @@ const TabulatorOutlinerObserver = {
|
|
|
271
270
|
const templateDoc = $rdf.sym(
|
|
272
271
|
'chrome://tabulator/content/internalKnowledge.n3#defaultNew'
|
|
273
272
|
)
|
|
274
|
-
store.copyTo(templateDoc, $rdf.sym(url))
|
|
273
|
+
UI.store.copyTo(templateDoc, $rdf.sym(url))
|
|
275
274
|
/*
|
|
276
275
|
function WriteToFileRepresentedBy (subject){
|
|
277
276
|
var outputFormulaTerm=kb.any(subject,OWL('unionOf'))
|
|
@@ -334,7 +333,7 @@ const TabulatorOutlinerObserver = {
|
|
|
334
333
|
const thisOutline = table.outline
|
|
335
334
|
thisOutline.UserInput.insertTermTo(
|
|
336
335
|
targetTd,
|
|
337
|
-
UI.utils.getAbout(store, this.dragTarget)
|
|
336
|
+
UI.utils.getAbout(UI.store, this.dragTarget)
|
|
338
337
|
)
|
|
339
338
|
},
|
|
340
339
|
onDragStart: function (x, y, td) {
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
// tabulator.options becaome UI.licenseOptions
|
|
5
5
|
// Possible future alternative directoons: Store licence preferences in a solid preferences file
|
|
6
|
-
import * as UI from 'solid-ui'
|
|
7
|
-
import { store } from 'solid-logic'
|
|
8
6
|
|
|
9
7
|
const licenseURI = [
|
|
10
8
|
'http://creativecommons.org/licenses/by-nc-nd/3.0/',
|
|
@@ -17,6 +15,9 @@ const licenseURI = [
|
|
|
17
15
|
|
|
18
16
|
const names = ['BY-NC-ND', 'BY-NC-SA', 'BY-NC', 'BY-ND', 'BY-SA', 'BY']
|
|
19
17
|
|
|
18
|
+
const UI = require('solid-ui')
|
|
19
|
+
const kb = UI.store
|
|
20
|
+
|
|
20
21
|
module.exports = function licenseOptions () {
|
|
21
22
|
this.options = {}
|
|
22
23
|
this.references = []
|
|
@@ -82,9 +83,9 @@ module.exports = function licenseOptions () {
|
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
this.checkLicence = function checkLicense (statement) {
|
|
85
|
-
const licenses =
|
|
86
|
+
const licenses = kb.each(
|
|
86
87
|
statement.why,
|
|
87
|
-
|
|
88
|
+
kb.sym('http://creativecommons.org/ns#license')
|
|
88
89
|
)
|
|
89
90
|
UI.log.info('licenses:' + statement.why + ': ' + licenses)
|
|
90
91
|
for (let i = 0; i < licenses.length; i++) {
|
package/src/outline/manager.js
CHANGED
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as UI from 'solid-ui'
|
|
7
|
-
import
|
|
8
|
-
import * as paneRegistry from 'pane-registry'
|
|
7
|
+
import * as panes from 'pane-registry'
|
|
9
8
|
import * as $rdf from 'rdflib'
|
|
10
9
|
import YAHOO from './dragDrop'
|
|
11
10
|
import outlineIcons from './outlineIcons'
|
|
@@ -31,9 +30,9 @@ export default function (context) {
|
|
|
31
30
|
this.selection = selection
|
|
32
31
|
this.ancestor = UI.utils.ancestor // make available as outline.ancestor in callbacks
|
|
33
32
|
this.sparql = UI.rdf.UpdateManager
|
|
34
|
-
this.kb = store
|
|
35
|
-
const kb = store
|
|
36
|
-
const sf = store.fetcher
|
|
33
|
+
this.kb = UI.store
|
|
34
|
+
const kb = UI.store
|
|
35
|
+
const sf = UI.store.fetcher
|
|
37
36
|
dom.outline = this
|
|
38
37
|
this.qs = new queryByExample.QuerySource() // Track queries in queryByExample
|
|
39
38
|
|
|
@@ -345,7 +344,7 @@ export default function (context) {
|
|
|
345
344
|
async function globalAppTabs (options = {}) {
|
|
346
345
|
console.log('globalAppTabs @@')
|
|
347
346
|
const div = dom.createElement('div')
|
|
348
|
-
const me = authn.currentUser()
|
|
347
|
+
const me = UI.authn.currentUser()
|
|
349
348
|
if (!me) {
|
|
350
349
|
alert('Must be logged in for this')
|
|
351
350
|
throw new Error('Not logged in')
|
|
@@ -359,10 +358,10 @@ export default function (context) {
|
|
|
359
358
|
|
|
360
359
|
function renderMain (containerDiv, item) {
|
|
361
360
|
// Items are pane names
|
|
362
|
-
const pane =
|
|
361
|
+
const pane = panes.byName(item.paneName) // 20190701
|
|
363
362
|
containerDiv.innerHTML = ''
|
|
364
363
|
const table = containerDiv.appendChild(dom.createElement('table'))
|
|
365
|
-
const me = authn.currentUser()
|
|
364
|
+
const me = UI.authn.currentUser()
|
|
366
365
|
thisOutline.GotoSubject(
|
|
367
366
|
item.subject || me,
|
|
368
367
|
true,
|
|
@@ -392,7 +391,7 @@ export default function (context) {
|
|
|
392
391
|
this.getDashboard = globalAppTabs
|
|
393
392
|
|
|
394
393
|
async function getDashboardItems () {
|
|
395
|
-
const me = authn.currentUser()
|
|
394
|
+
const me = UI.authn.currentUser()
|
|
396
395
|
if (!me) return []
|
|
397
396
|
const div = dom.createElement('div')
|
|
398
397
|
const [books, pods] = await Promise.all([getAddressBooks(), getPods()])
|
|
@@ -483,7 +482,7 @@ export default function (context) {
|
|
|
483
482
|
|
|
484
483
|
async function getAddressBooks () {
|
|
485
484
|
try {
|
|
486
|
-
const context = await UI.
|
|
485
|
+
const context = await UI.authn.findAppInstances(
|
|
487
486
|
{ me, div, dom },
|
|
488
487
|
ns.vcard('AddressBook')
|
|
489
488
|
)
|
|
@@ -535,7 +534,7 @@ export default function (context) {
|
|
|
535
534
|
})
|
|
536
535
|
|
|
537
536
|
// close the dashboard if user log out
|
|
538
|
-
authSession.onLogout(closeDashboard)
|
|
537
|
+
UI.authn.authSession.onLogout(closeDashboard)
|
|
539
538
|
|
|
540
539
|
// finally - switch to showing dashboard
|
|
541
540
|
outlineContainer.style.display = 'none'
|
|
@@ -601,7 +600,7 @@ export default function (context) {
|
|
|
601
600
|
// there are no relevant panes, simply return default pane (which ironically is internalPane)
|
|
602
601
|
return [panes.byName('internal')]
|
|
603
602
|
}
|
|
604
|
-
const filteredPanes = await UI.
|
|
603
|
+
const filteredPanes = await UI.authn.filterAvailablePanes(relevantPanes)
|
|
605
604
|
if (filteredPanes.length === 0) {
|
|
606
605
|
// if no relevant panes are available panes because of user role, we still allow for the most relevant pane to be viewed
|
|
607
606
|
return [relevantPanes[0]]
|
|
@@ -1368,7 +1367,7 @@ export default function (context) {
|
|
|
1368
1367
|
if (target.label) {
|
|
1369
1368
|
window.content.location = target.label
|
|
1370
1369
|
// The following alternative does not work in the extension.
|
|
1371
|
-
// var s = store.sym(target.label);
|
|
1370
|
+
// var s = UI.store.sym(target.label);
|
|
1372
1371
|
// outline.GotoSubject(s, true);
|
|
1373
1372
|
}
|
|
1374
1373
|
}
|
|
@@ -1439,7 +1438,7 @@ export default function (context) {
|
|
|
1439
1438
|
// don't do these for headers or base nodes
|
|
1440
1439
|
const source = st.why
|
|
1441
1440
|
// var target = st.why
|
|
1442
|
-
const editable = store.updater.editable(source.uri, kb)
|
|
1441
|
+
const editable = UI.store.updater.editable(source.uri, kb)
|
|
1443
1442
|
if (!editable) {
|
|
1444
1443
|
// let target = node.parentNode.AJAR_inverse ? st.object : st.subject
|
|
1445
1444
|
} // left hand side
|
|
@@ -1610,7 +1609,7 @@ export default function (context) {
|
|
|
1610
1609
|
// I don't know why 'HTML'
|
|
1611
1610
|
const object = UI.utils.getAbout(kb, selectedTd)
|
|
1612
1611
|
target = selectedTd.parentNode.AJAR_statement.why
|
|
1613
|
-
editable = store.updater.editable(target.uri, kb)
|
|
1612
|
+
editable = UI.store.updater.editable(target.uri, kb)
|
|
1614
1613
|
if (object) {
|
|
1615
1614
|
// <Feature about='enterToExpand'>
|
|
1616
1615
|
outline.GotoSubject(object, true)
|
|
@@ -1661,7 +1660,7 @@ export default function (context) {
|
|
|
1661
1660
|
case 46: // delete
|
|
1662
1661
|
case 8: // backspace
|
|
1663
1662
|
target = selectedTd.parentNode.AJAR_statement.why
|
|
1664
|
-
editable = store.updater.editable(target.uri, kb)
|
|
1663
|
+
editable = UI.store.updater.editable(target.uri, kb)
|
|
1665
1664
|
if (editable) {
|
|
1666
1665
|
e.preventDefault() // prevent from going back
|
|
1667
1666
|
this.UserInput.Delete(selectedTd)
|
|
@@ -1689,7 +1688,7 @@ export default function (context) {
|
|
|
1689
1688
|
sf.addCallback('done', setSelectedAfterward)
|
|
1690
1689
|
sf.addCallback('fail', setSelectedAfterward)
|
|
1691
1690
|
outlineExpand(selectedTd, obj, {
|
|
1692
|
-
pane:
|
|
1691
|
+
pane: panes.byName('defaultPane')
|
|
1693
1692
|
})
|
|
1694
1693
|
}
|
|
1695
1694
|
setSelectedAfterward()
|
|
@@ -1792,7 +1791,7 @@ export default function (context) {
|
|
|
1792
1791
|
const target = thisOutline.targetOf(e)
|
|
1793
1792
|
const p = target.parentNode
|
|
1794
1793
|
const subject = UI.utils.getAbout(kb, target)
|
|
1795
|
-
const pane = e.altKey ?
|
|
1794
|
+
const pane = e.altKey ? panes.byName('internal') : undefined // set later: was panes.defaultPane
|
|
1796
1795
|
|
|
1797
1796
|
if (e.shiftKey) {
|
|
1798
1797
|
// Shift forces a refocus - bring this to the top
|
|
@@ -1801,7 +1800,7 @@ export default function (context) {
|
|
|
1801
1800
|
if (e.altKey) {
|
|
1802
1801
|
// To investigate screw ups, dont wait show internals
|
|
1803
1802
|
outlineExpand(p, subject, {
|
|
1804
|
-
pane:
|
|
1803
|
+
pane: panes.byName('internal'),
|
|
1805
1804
|
immediate: true
|
|
1806
1805
|
})
|
|
1807
1806
|
} else {
|
|
@@ -1814,7 +1813,7 @@ export default function (context) {
|
|
|
1814
1813
|
// for icon UI.icons.originalIconBase + 'tbl-collapse.png'
|
|
1815
1814
|
const target = thisOutline.targetOf(e)
|
|
1816
1815
|
const subject = UI.utils.getAbout(kb, target)
|
|
1817
|
-
const pane = e.altKey ?
|
|
1816
|
+
const pane = e.altKey ? panes.byName('internal') : undefined
|
|
1818
1817
|
const p = target.parentNode.parentNode
|
|
1819
1818
|
outlineCollapse(p, subject, pane)
|
|
1820
1819
|
}
|
|
@@ -1903,7 +1902,7 @@ export default function (context) {
|
|
|
1903
1902
|
const st = node.parentNode.AJAR_statement
|
|
1904
1903
|
if (!st) return // For example in the title TD of an expanded pane
|
|
1905
1904
|
const target = st.why
|
|
1906
|
-
const editable = store.updater.editable(target.uri, kb)
|
|
1905
|
+
const editable = UI.store.updater.editable(target.uri, kb)
|
|
1907
1906
|
if (sel && editable) thisOutline.UserInput.Click(e, selection[0]) // was next 2 lines
|
|
1908
1907
|
// var text='TabulatorMouseDown@Outline()';
|
|
1909
1908
|
// HCIoptions['able to edit in Discovery Mode by mouse'].setupHere([sel,e,thisOutline,selection[0]],text);
|
|
@@ -2415,7 +2414,7 @@ export default function (context) {
|
|
|
2415
2414
|
row.appendChild(thisOutline.outlineObjectTD(elt))
|
|
2416
2415
|
}
|
|
2417
2416
|
} else if (obj.termType === 'Graph') {
|
|
2418
|
-
rep =
|
|
2417
|
+
rep = panes
|
|
2419
2418
|
.byName('dataContentPane')
|
|
2420
2419
|
.statementsAsTables(obj.statements, context)
|
|
2421
2420
|
rep.setAttribute('class', 'nestedFormula')
|
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
// to find all other places which had the same pattern.
|
|
7
7
|
// Fields could be optional by pressing th ewhite optoional button
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
import * as UI from 'solid-ui'
|
|
9
|
+
const UI = require('solid-ui')
|
|
11
10
|
|
|
12
11
|
module.exports = {
|
|
13
12
|
makeQueryRow,
|
|
@@ -32,6 +31,7 @@ function predParentOf (node) {
|
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
function makeQueryRow (q, tr, constraint) {
|
|
34
|
+
const kb = UI.store
|
|
35
35
|
// predtr = predParentOf(tr)
|
|
36
36
|
// var nodes = tr.childNodes
|
|
37
37
|
// var n = tr.childNodes.length
|
|
@@ -87,7 +87,7 @@ function makeQueryRow (q, tr, constraint) {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
if (opt) {
|
|
90
|
-
const optForm =
|
|
90
|
+
const optForm = kb.formula()
|
|
91
91
|
optionalSubqueriesIndex.push(optForm)
|
|
92
92
|
predtr.setAttribute(
|
|
93
93
|
'optionalSubqueriesIndex',
|
|
@@ -115,7 +115,7 @@ function makeQueryRow (q, tr, constraint) {
|
|
|
115
115
|
// UI.log.debug('Initial variable: '+tr.AJAR_variable)
|
|
116
116
|
const v = tr.AJAR_variable
|
|
117
117
|
? tr.AJAR_variable
|
|
118
|
-
:
|
|
118
|
+
: kb.variable(UI.utils.newVariableName())
|
|
119
119
|
q.vars.push(v)
|
|
120
120
|
v.label = hasParent ? parentVar.label : UI.utils.label(parentVar)
|
|
121
121
|
v.label += ' ' + UI.utils.predicateLabelForXML(st.predicate, inverse)
|