solid-panes 3.5.28-59efa615 → 3.5.28-697270ee
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/lib/home/homePane.d.ts.map +1 -1
- package/lib/home/homePane.js +2 -14
- package/lib/home/homePane.js.map +1 -1
- package/lib/tableViewPane.js +1 -1
- package/lib/tableViewPane.js.map +1 -1
- package/lib/versionInfo.js +2 -2
- package/lib/versionInfo.js.map +1 -1
- package/package.json +1 -1
- package/src/home/homePane.ts +1 -14
- package/src/tableViewPane.js +1 -1
- package/src/versionInfo.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"homePane.d.ts","sourceRoot":"","sources":["../../src/home/homePane.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAM9C,QAAA,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"homePane.d.ts","sourceRoot":"","sources":["../../src/home/homePane.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAM9C,QAAA,MAAM,cAAc,EAAE,cAoDrB,CAAA;AAGD,eAAe,cAAc,CAAA"}
|
package/lib/home/homePane.js
CHANGED
|
@@ -60,20 +60,8 @@ var HomePaneSource = {
|
|
|
60
60
|
relevantPanes = _context.sent;
|
|
61
61
|
_solidUi.create.newThingUI(creationContext, context, relevantPanes); // newUI Have to pass panes down
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
_solidUi.login.registrationList(homePaneContext, {
|
|
66
|
-
"private": true
|
|
67
|
-
}).then(function (authContext) {
|
|
68
|
-
div.appendChild(dom.createElement('h4')).textContent = 'Public things';
|
|
69
|
-
div.appendChild(dom.createElement('p')).textContent = 'Things in this list are visible to others.';
|
|
70
|
-
_solidUi.login.registrationList(authContext, {
|
|
71
|
-
"public": true
|
|
72
|
-
}).then(function () {
|
|
73
|
-
// done
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
case 10:
|
|
63
|
+
_solidUi.login.registrationList(homePaneContext, {}).then(function () {});
|
|
64
|
+
case 9:
|
|
77
65
|
case "end":
|
|
78
66
|
return _context.stop();
|
|
79
67
|
}
|
package/lib/home/homePane.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"homePane.js","names":["HomePaneSource","icon","icons","iconBase","global","name","label","render","subject","context","dom","showContent","homePaneContext","div","statusArea","me","appendChild","createElement","textContent","creationDiv","creationContext","login","filterAvailablePanes","session","paneRegistry","list","relevantPanes","create","newThingUI","registrationList","then","
|
|
1
|
+
{"version":3,"file":"homePane.js","names":["HomePaneSource","icon","icons","iconBase","global","name","label","render","subject","context","dom","showContent","homePaneContext","div","statusArea","me","appendChild","createElement","textContent","creationDiv","creationContext","login","filterAvailablePanes","session","paneRegistry","list","relevantPanes","create","newThingUI","registrationList","then","authn","currentUser"],"sources":["../../src/home/homePane.ts"],"sourcesContent":["/* Home Pane\n **\n ** The home pane is avaiable everywhere and allows a user\n ** to\n ** - keep track of their stuff\n ** - make new things, and possibly\n ** - keep track of accounts and workspaces etc\n **\n */\n\nimport { PaneDefinition } from 'pane-registry'\nimport { NamedNode } from 'rdflib'\nimport { authn } from 'solid-logic'\nimport { create, icons, login } from 'solid-ui'\nimport { CreateContext } from 'solid-ui/lib/create/types'\n\nconst HomePaneSource: PaneDefinition = {\n icon: icons.iconBase + 'noun_547570.svg', // noun_25830\n\n global: true,\n\n name: 'home',\n\n // Does the subject deserve an home pane?\n //\n // yes, always!\n //\n label: function () {\n return 'home'\n },\n\n render: function (subject, context) {\n const dom = context.dom\n const showContent = async function () {\n const homePaneContext = { div: div, dom: dom, statusArea: div, me: me }\n /*\n div.appendChild(dom.createElement('h4')).textContent = 'Login status'\n var loginStatusDiv = div.appendChild(context.dom.createElement('div'))\n // TODO: Find out what the actual type is:\n type UriType = unknown;\n loginStatusDiv.appendChild(UI.login.loginStatusBox(context.dom, () => {\n // Here we know new log in status\n }))\n */\n div.appendChild(dom.createElement('h4')).textContent =\n 'Create new thing somewhere'\n const creationDiv = div.appendChild(dom.createElement('div'))\n const creationContext: CreateContext = {\n div: creationDiv,\n dom: dom,\n statusArea: div,\n me: me\n }\n const relevantPanes = await login.filterAvailablePanes(\n context.session.paneRegistry.list\n )\n create.newThingUI(creationContext, context, relevantPanes) // newUI Have to pass panes down\n\n login.registrationList(homePaneContext, {}).then(function () {})\n }\n\n const div = dom.createElement('div')\n const me: NamedNode = authn.currentUser() as NamedNode // this will be incorrect if not logged in\n\n showContent()\n\n return div\n }\n} // pane object\n\n// ends\nexport default HomePaneSource\n"],"mappings":";;;;;;;AAYA;AACA;AAA+C,+CAZ/C;AAAA;AAAA;AAeA,IAAMA,cAA8B,GAAG;EACrCC,IAAI,EAAEC,cAAK,CAACC,QAAQ,GAAG,iBAAiB;EAAE;;EAE1CC,MAAM,EAAE,IAAI;EAEZC,IAAI,EAAE,MAAM;EAEZ;EACA;EACA;EACA;EACAC,KAAK,EAAE,iBAAY;IACjB,OAAO,MAAM;EACf,CAAC;EAEDC,MAAM,EAAE,gBAAUC,OAAO,EAAEC,OAAO,EAAE;IAClC,IAAMC,GAAG,GAAGD,OAAO,CAACC,GAAG;IACvB,IAAMC,WAAW;MAAA,sEAAG;QAAA;QAAA;UAAA;YAAA;cACZC,eAAe,GAAG;gBAAEC,GAAG,EAAEA,GAAG;gBAAEH,GAAG,EAAEA,GAAG;gBAAEI,UAAU,EAAED,GAAG;gBAAEE,EAAE,EAAEA;cAAG,CAAC;cACvE;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;cACMF,GAAG,CAACG,WAAW,CAACN,GAAG,CAACO,aAAa,CAAC,IAAI,CAAC,CAAC,CAACC,WAAW,GAClD,4BAA4B;cACxBC,WAAW,GAAGN,GAAG,CAACG,WAAW,CAACN,GAAG,CAACO,aAAa,CAAC,KAAK,CAAC,CAAC;cACvDG,eAA8B,GAAG;gBACrCP,GAAG,EAAEM,WAAW;gBAChBT,GAAG,EAAEA,GAAG;gBACRI,UAAU,EAAED,GAAG;gBACfE,EAAE,EAAEA;cACN,CAAC;cAAA;cAAA,OAC2BM,cAAK,CAACC,oBAAoB,CACpDb,OAAO,CAACc,OAAO,CAACC,YAAY,CAACC,IAAI,CAClC;YAAA;cAFKC,aAAa;cAGnBC,eAAM,CAACC,UAAU,CAACR,eAAe,EAAEX,OAAO,EAAEiB,aAAa,CAAC,EAAC;;cAE3DL,cAAK,CAACQ,gBAAgB,CAACjB,eAAe,EAAE,CAAC,CAAC,CAAC,CAACkB,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;YAAA;YAAA;cAAA;UAAA;QAAA;MAAA,CACjE;MAAA,gBA1BKnB,WAAW;QAAA;MAAA;IAAA,GA0BhB;IAED,IAAME,GAAG,GAAGH,GAAG,CAACO,aAAa,CAAC,KAAK,CAAC;IACpC,IAAMF,EAAa,GAAGgB,iBAAK,CAACC,WAAW,EAAe,EAAC;;IAEvDrB,WAAW,EAAE;IAEb,OAAOE,GAAG;EACZ;AACF,CAAC,EAAC;;AAEF;AAAA,eACeb,cAAc;AAAA"}
|
package/lib/tableViewPane.js
CHANGED
|
@@ -24,7 +24,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
24
24
|
|
|
25
25
|
// ///////////////////////////////////////////////////////////////////
|
|
26
26
|
|
|
27
|
-
// Table view pane -- view of a class
|
|
27
|
+
// Table view pane -- view of a class as a table of properties of class members
|
|
28
28
|
|
|
29
29
|
var tableViewPane = {
|
|
30
30
|
icon: UI.icons.originalIconBase + 'table.png',
|
package/lib/tableViewPane.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableViewPane.js","names":["tableViewPane","icon","UI","icons","originalIconBase","name","label","subject","context","store","session","any","undefined","ns","rdf","n","statementsMatching","length","utils","render","myDocument","dom","div","createElement","setAttribute","appendChild","table","tableClass"],"sources":["../src/tableViewPane.js"],"sourcesContent":["// Format an array of RDF statements as an HTML table.\n//\n// This can operate in one of three modes: when the class of object is given\n// or when the source document from which data is taken is given,\n// or if a prepared query object is given.\n// (In principle it could operate with neither class nor document\n// given but typically\n// there would be too much data.)\n// When the tableClass is not given, it looks for common classes in the data,\n// and gives the user the option.\n//\n// 2008 Written, Ilaria Liccardi\n// 2014 core functionality now in common/table.js -timbl\n\n// ///////////////////////////////////////////////////////////////////\n\n// Table view pane -- view of a class
|
|
1
|
+
{"version":3,"file":"tableViewPane.js","names":["tableViewPane","icon","UI","icons","originalIconBase","name","label","subject","context","store","session","any","undefined","ns","rdf","n","statementsMatching","length","utils","render","myDocument","dom","div","createElement","setAttribute","appendChild","table","tableClass"],"sources":["../src/tableViewPane.js"],"sourcesContent":["// Format an array of RDF statements as an HTML table.\n//\n// This can operate in one of three modes: when the class of object is given\n// or when the source document from which data is taken is given,\n// or if a prepared query object is given.\n// (In principle it could operate with neither class nor document\n// given but typically\n// there would be too much data.)\n// When the tableClass is not given, it looks for common classes in the data,\n// and gives the user the option.\n//\n// 2008 Written, Ilaria Liccardi\n// 2014 core functionality now in common/table.js -timbl\n\n// ///////////////////////////////////////////////////////////////////\n\n// Table view pane -- view of a class as a table of properties of class members\nimport * as UI from 'solid-ui'\n\nexport const tableViewPane = {\n icon: UI.icons.originalIconBase + 'table.png',\n\n name: 'tableOfClass',\n\n label: function (subject, context) {\n const store = context.session.store\n // if (!store.holds(subject, UI.ns.rdf('type'),UI.ns.rdfs('Class'))) return null\n if (!store.any(undefined, UI.ns.rdf('type'), subject)) {\n return null\n }\n const n = store.statementsMatching(undefined, UI.ns.rdf('type'), subject)\n .length\n if (n === 0) {\n // None, suppress pane\n return null\n }\n if (n > 15) {\n // @@ At the moment this pane can be slow with too many @@ fixme by using limits\n return null\n }\n return UI.utils.label(subject) + ' table'\n },\n\n render: function (subject, context) {\n const myDocument = context.dom\n const div = myDocument.createElement('div')\n div.setAttribute('class', 'tablePane')\n div.appendChild(UI.table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AC;IAC9D,OAAOe,GAAG;EACZ;AACF,CAAC;AAAA"}
|
package/lib/versionInfo.js
CHANGED
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _default = {
|
|
8
|
-
buildTime: "2023-
|
|
9
|
-
commit: "
|
|
8
|
+
buildTime: "2023-02-01T21:43:01Z",
|
|
9
|
+
commit: "697270ee58970707f814d6dc8fa8e8470f7f1ad6",
|
|
10
10
|
npmInfo: {
|
|
11
11
|
'solid-panes': '3.5.28',
|
|
12
12
|
npm: '8.19.3',
|
package/lib/versionInfo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionInfo.js","names":["buildTime","commit","npmInfo","npm","node","v8","uv","zlib","brotli","ares","modules","nghttp2","napi","llhttp","openssl","cldr","icu","tz","unicode"],"sources":["../src/versionInfo.ts"],"sourcesContent":["export default {\nbuildTime: \"2023-
|
|
1
|
+
{"version":3,"file":"versionInfo.js","names":["buildTime","commit","npmInfo","npm","node","v8","uv","zlib","brotli","ares","modules","nghttp2","napi","llhttp","openssl","cldr","icu","tz","unicode"],"sources":["../src/versionInfo.ts"],"sourcesContent":["export default {\nbuildTime: \"2023-02-01T21:43:01Z\",\ncommit: \"697270ee58970707f814d6dc8fa8e8470f7f1ad6\",\nnpmInfo:\n{\n 'solid-panes': '3.5.28',\n npm: '8.19.3',\n node: '14.21.2',\n v8: '8.4.371.23-node.88',\n uv: '1.42.0',\n zlib: '1.2.11',\n brotli: '1.0.9',\n ares: '1.18.1',\n modules: '83',\n nghttp2: '1.42.0',\n napi: '8',\n llhttp: '2.1.6',\n openssl: '1.1.1s',\n cldr: '40.0',\n icu: '70.1',\n tz: '2022f',\n unicode: '14.0'\n}\n};\n"],"mappings":";;;;;;eAAe;EACfA,SAAS,EAAE,sBAAsB;EACjCC,MAAM,EAAE,0CAA0C;EAClDC,OAAO,EACP;IACE,aAAa,EAAE,QAAQ;IACvBC,GAAG,EAAE,QAAQ;IACbC,IAAI,EAAE,SAAS;IACfC,EAAE,EAAE,oBAAoB;IACxBC,EAAE,EAAE,QAAQ;IACZC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE,OAAO;IACfC,IAAI,EAAE,QAAQ;IACdC,OAAO,EAAE,IAAI;IACbC,OAAO,EAAE,QAAQ;IACjBC,IAAI,EAAE,GAAG;IACTC,MAAM,EAAE,OAAO;IACfC,OAAO,EAAE,QAAQ;IACjBC,IAAI,EAAE,MAAM;IACZC,GAAG,EAAE,MAAM;IACXC,EAAE,EAAE,OAAO;IACXC,OAAO,EAAE;EACX;AACA,CAAC;AAAA"}
|
package/package.json
CHANGED
package/src/home/homePane.ts
CHANGED
|
@@ -56,20 +56,7 @@ const HomePaneSource: PaneDefinition = {
|
|
|
56
56
|
)
|
|
57
57
|
create.newThingUI(creationContext, context, relevantPanes) // newUI Have to pass panes down
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
// TODO: Replace by a common, representative interface
|
|
61
|
-
login
|
|
62
|
-
.registrationList(homePaneContext, { private: true })
|
|
63
|
-
.then(function (authContext) {
|
|
64
|
-
div.appendChild(dom.createElement('h4')).textContent = 'Public things'
|
|
65
|
-
div.appendChild(dom.createElement('p')).textContent =
|
|
66
|
-
'Things in this list are visible to others.'
|
|
67
|
-
login
|
|
68
|
-
.registrationList(authContext, { public: true })
|
|
69
|
-
.then(function () {
|
|
70
|
-
// done
|
|
71
|
-
})
|
|
72
|
-
})
|
|
59
|
+
login.registrationList(homePaneContext, {}).then(function () {})
|
|
73
60
|
}
|
|
74
61
|
|
|
75
62
|
const div = dom.createElement('div')
|
package/src/tableViewPane.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
// ///////////////////////////////////////////////////////////////////
|
|
16
16
|
|
|
17
|
-
// Table view pane -- view of a class
|
|
17
|
+
// Table view pane -- view of a class as a table of properties of class members
|
|
18
18
|
import * as UI from 'solid-ui'
|
|
19
19
|
|
|
20
20
|
export const tableViewPane = {
|
package/src/versionInfo.ts
CHANGED