solid-panes 3.5.35 → 3.5.36-85706e73
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/dokieli/dokieliPane.js +3 -2
- package/lib/dokieli/dokieliPane.js.map +1 -1
- package/lib/dokieli/new.js +2 -1
- package/lib/dokieli/new.js.map +1 -1
- package/lib/outline/manager.js +0 -8
- package/lib/outline/manager.js.map +1 -1
- package/lib/schedule/formsForSchedule.js +1 -5
- package/lib/schedule/formsForSchedule.js.map +1 -1
- package/lib/versionInfo.js +3 -3
- package/lib/versionInfo.js.map +1 -1
- package/package.json +1 -1
- package/src/dokieli/dokieliPane.js +1 -1
- package/src/dokieli/new.js +5 -4
- package/src/outline/manager.js +0 -9
- package/src/schedule/formsForSchedule.js +1 -1
- package/src/versionInfo.ts +3 -3
- package/lib/outline/licenseOptions.js +0 -80
- package/lib/outline/licenseOptions.js.map +0 -1
- package/src/outline/licenseOptions.js +0 -105
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _default = exports["default"] = "\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix sched: <http://www.w3.org/ns/pim/schedule#>.\n\n cal:Vevent ui:annotationForm <#form2>, <#form3>; ui:creationForm <#form1> .\n\n<#bigForm>\n dc:title\n \"Schedule event (single form).\";\n a ui:Group;\n ui:parts ( <#form1> <#form2> <#form3> ).\n\n<#form1>\n dc:title\n \"Schedule an event (wizard)\";\n a ui:Form;\n ui:parts (\n <#form1header>\n <#eventTitle>\n <#eventLocation>\n <#eventType>\n <#eventSwitch>\n <#eventComment>\n <#eventAuthor> ).\n\n<#form1header> a ui:Heading; ui:contents \"Schedule an event\" .\n\n<#eventTitle>\n a ui:SingleLineTextField;\n ui:maxLength\n \"128\";\n ui:property\n cal:summary;\n ui:size\n \"40\".\n\n<#eventLocation>\n a ui:SingleLineTextField;\n ui:maxLength\n \"512\";\n ui:property\n cal:location;\n ui:size\n \"40\".\n\n<#eventType> a ui:BooleanField;\n ui:property sched:allDay;\n ui:default true . # Used to be the only way\n\n<#eventSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm> ].\n\n <#AllDayForm> a ui:IntegerField ;\n ui:property sched:durationInDays;\n ui:label \"How many days?\";\n ui:min 1;\n ui:default 1 .\n\n <#NotAllDayForm> a ui:IntegerField ;\n ui:property sched:durationInMinutes;\n ui:label \"Duration (mins)\";\n ui:min 5;\n ui:default 55 .\n\n<#eventComment>\n a ui:MultiLineTextField;\n# ui:maxLength\n# \"1048\";\n# ui:size\n# \"40\".\n ui:property\n cal:comment.\n\n<#eventAuthor>\n a ui:Multiple; ui:min 1; ui:part <#eventAuthorGroup>; ui:property dc:author.\n\n <#eventAuthorGroup> a ui:Group; ui:parts ( <#authorName> <#authorEmail> ) .\n <#authorName> a ui:SingleLineTextField; ui:property foaf:name .\n <#authorEmail> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n\n\n#####################\n\n<#form2> dc:title \"Select possible days or times\"; a ui:Form;\n ui:parts ( <#id1118132113134> <#possibleSwitch> ).\n\n <#id1118132113134> a ui:Heading; ui:contents \"Time proposals\" .\n\n <#possibleSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm2> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm2> ].\n\n <#AllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleDate>; ui:property sched:option.\n <#posssibleDate> a ui:DateField; ui:property cal:dtstart; ui:label \"date\".\n\n <#NotAllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleTime>; ui:property sched:option.\n <#posssibleTime> a ui:DateTimeField; ui:property cal:dtstart; ui:label \"date and time\".\n\n ##################################\n\n <#form3> dc:title \"Select invited people\"; a ui:Form; ui:parts ( <#id1118132113135> <#id1417314641301b> ) .\n<#id1417314641301b>\n a ui:Multiple; ui:min 1; ui:part <#id1417314674292b>; ui:property sched:invitee.\n <#id1417314674292b> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n <#id1118132113135> a ui:Heading; ui:contents \"Who to invite\" .\n\n# ENDS\n";
|
|
3
|
+
module.exports = "\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix sched: <http://www.w3.org/ns/pim/schedule#>.\n\n cal:Vevent ui:annotationForm <#form2>, <#form3>; ui:creationForm <#form1> .\n\n<#bigForm>\n dc:title\n \"Schedule event (single form).\";\n a ui:Group;\n ui:parts ( <#form1> <#form2> <#form3> ).\n\n<#form1>\n dc:title\n \"Schedule an event (wizard)\";\n a ui:Form;\n ui:parts (\n <#form1header>\n <#eventTitle>\n <#eventLocation>\n <#eventType>\n <#eventSwitch>\n <#eventComment>\n <#eventAuthor> ).\n\n<#form1header> a ui:Heading; ui:contents \"Schedule an event\" .\n\n<#eventTitle>\n a ui:SingleLineTextField;\n ui:maxLength\n \"128\";\n ui:property\n cal:summary;\n ui:size\n \"40\".\n\n<#eventLocation>\n a ui:SingleLineTextField;\n ui:maxLength\n \"512\";\n ui:property\n cal:location;\n ui:size\n \"40\".\n\n<#eventType> a ui:BooleanField;\n ui:property sched:allDay;\n ui:default true . # Used to be the only way\n\n<#eventSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm> ].\n\n <#AllDayForm> a ui:IntegerField ;\n ui:property sched:durationInDays;\n ui:label \"How many days?\";\n ui:min 1;\n ui:default 1 .\n\n <#NotAllDayForm> a ui:IntegerField ;\n ui:property sched:durationInMinutes;\n ui:label \"Duration (mins)\";\n ui:min 5;\n ui:default 55 .\n\n<#eventComment>\n a ui:MultiLineTextField;\n# ui:maxLength\n# \"1048\";\n# ui:size\n# \"40\".\n ui:property\n cal:comment.\n\n<#eventAuthor>\n a ui:Multiple; ui:min 1; ui:part <#eventAuthorGroup>; ui:property dc:author.\n\n <#eventAuthorGroup> a ui:Group; ui:parts ( <#authorName> <#authorEmail> ) .\n <#authorName> a ui:SingleLineTextField; ui:property foaf:name .\n <#authorEmail> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n\n\n#####################\n\n<#form2> dc:title \"Select possible days or times\"; a ui:Form;\n ui:parts ( <#id1118132113134> <#possibleSwitch> ).\n\n <#id1118132113134> a ui:Heading; ui:contents \"Time proposals\" .\n\n <#possibleSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm2> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm2> ].\n\n <#AllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleDate>; ui:property sched:option.\n <#posssibleDate> a ui:DateField; ui:property cal:dtstart; ui:label \"date\".\n\n <#NotAllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleTime>; ui:property sched:option.\n <#posssibleTime> a ui:DateTimeField; ui:property cal:dtstart; ui:label \"date and time\".\n\n ##################################\n\n <#form3> dc:title \"Select invited people\"; a ui:Form; ui:parts ( <#id1118132113135> <#id1417314641301b> ) .\n<#id1417314641301b>\n a ui:Multiple; ui:min 1; ui:part <#id1417314674292b>; ui:property sched:invitee.\n <#id1417314674292b> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n <#id1118132113135> a ui:Heading; ui:contents \"Who to invite\" .\n\n# ENDS\n";
|
|
8
4
|
//# sourceMappingURL=formsForSchedule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formsForSchedule.js","names":[],"sources":["../../src/schedule/formsForSchedule.js"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"formsForSchedule.js","names":["module","exports"],"sources":["../../src/schedule/formsForSchedule.js"],"sourcesContent":["module.exports = `\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix sched: <http://www.w3.org/ns/pim/schedule#>.\n\n cal:Vevent ui:annotationForm <#form2>, <#form3>; ui:creationForm <#form1> .\n\n<#bigForm>\n dc:title\n \"Schedule event (single form).\";\n a ui:Group;\n ui:parts ( <#form1> <#form2> <#form3> ).\n\n<#form1>\n dc:title\n \"Schedule an event (wizard)\";\n a ui:Form;\n ui:parts (\n <#form1header>\n <#eventTitle>\n <#eventLocation>\n <#eventType>\n <#eventSwitch>\n <#eventComment>\n <#eventAuthor> ).\n\n<#form1header> a ui:Heading; ui:contents \"Schedule an event\" .\n\n<#eventTitle>\n a ui:SingleLineTextField;\n ui:maxLength\n \"128\";\n ui:property\n cal:summary;\n ui:size\n \"40\".\n\n<#eventLocation>\n a ui:SingleLineTextField;\n ui:maxLength\n \"512\";\n ui:property\n cal:location;\n ui:size\n \"40\".\n\n<#eventType> a ui:BooleanField;\n ui:property sched:allDay;\n ui:default true . # Used to be the only way\n\n<#eventSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm> ].\n\n <#AllDayForm> a ui:IntegerField ;\n ui:property sched:durationInDays;\n ui:label \"How many days?\";\n ui:min 1;\n ui:default 1 .\n\n <#NotAllDayForm> a ui:IntegerField ;\n ui:property sched:durationInMinutes;\n ui:label \"Duration (mins)\";\n ui:min 5;\n ui:default 55 .\n\n<#eventComment>\n a ui:MultiLineTextField;\n# ui:maxLength\n# \"1048\";\n# ui:size\n# \"40\".\n ui:property\n cal:comment.\n\n<#eventAuthor>\n a ui:Multiple; ui:min 1; ui:part <#eventAuthorGroup>; ui:property dc:author.\n\n <#eventAuthorGroup> a ui:Group; ui:parts ( <#authorName> <#authorEmail> ) .\n <#authorName> a ui:SingleLineTextField; ui:property foaf:name .\n <#authorEmail> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n\n\n#####################\n\n<#form2> dc:title \"Select possible days or times\"; a ui:Form;\n ui:parts ( <#id1118132113134> <#possibleSwitch> ).\n\n <#id1118132113134> a ui:Heading; ui:contents \"Time proposals\" .\n\n <#possibleSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm2> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm2> ].\n\n <#AllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleDate>; ui:property sched:option.\n <#posssibleDate> a ui:DateField; ui:property cal:dtstart; ui:label \"date\".\n\n <#NotAllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleTime>; ui:property sched:option.\n <#posssibleTime> a ui:DateTimeField; ui:property cal:dtstart; ui:label \"date and time\".\n\n ##################################\n\n <#form3> dc:title \"Select invited people\"; a ui:Form; ui:parts ( <#id1118132113135> <#id1417314641301b> ) .\n<#id1417314641301b>\n a ui:Multiple; ui:min 1; ui:part <#id1417314674292b>; ui:property sched:invitee.\n <#id1417314674292b> a ui:EmailField; ui:label \"email\"; ui:property foaf:mbox .\n <#id1118132113135> a ui:Heading; ui:contents \"Who to invite\" .\n\n# ENDS\n`\n"],"mappings":";;AAAAA,MAAM,CAACC,OAAO,m6GAoHb","ignoreList":[]}
|
package/lib/versionInfo.js
CHANGED
|
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _default = exports["default"] = {
|
|
8
|
-
buildTime: "2024-
|
|
9
|
-
commit: "
|
|
8
|
+
buildTime: "2024-08-29T18:00:09Z",
|
|
9
|
+
commit: "85706e731698932d66bd08735f9d793b4514f043",
|
|
10
10
|
npmInfo: {
|
|
11
|
-
'solid-panes': '3.5.
|
|
11
|
+
'solid-panes': '3.5.36',
|
|
12
12
|
npm: '8.19.4',
|
|
13
13
|
node: '16.20.2',
|
|
14
14
|
v8: '9.4.146.26-node.26',
|
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","ngtcp2","nghttp3"],"sources":["../src/versionInfo.ts"],"sourcesContent":["export default {\nbuildTime: \"2024-
|
|
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","ngtcp2","nghttp3"],"sources":["../src/versionInfo.ts"],"sourcesContent":["export default {\nbuildTime: \"2024-08-29T18:00:09Z\",\ncommit: \"85706e731698932d66bd08735f9d793b4514f043\",\nnpmInfo:\n{\n 'solid-panes': '3.5.36',\n npm: '8.19.4',\n node: '16.20.2',\n v8: '9.4.146.26-node.26',\n uv: '1.43.0',\n zlib: '1.2.11',\n brotli: '1.0.9',\n ares: '1.19.1',\n modules: '93',\n nghttp2: '1.47.0',\n napi: '8',\n llhttp: '6.0.11',\n openssl: '1.1.1v+quic',\n cldr: '41.0',\n icu: '71.1',\n tz: '2022f',\n unicode: '14.0',\n ngtcp2: '0.8.1',\n nghttp3: '0.7.0'\n}\n};\n"],"mappings":";;;;;;oCAAe;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,QAAQ;IAChBC,OAAO,EAAE,aAAa;IACtBC,IAAI,EAAE,MAAM;IACZC,GAAG,EAAE,MAAM;IACXC,EAAE,EAAE,OAAO;IACXC,OAAO,EAAE,MAAM;IACfC,MAAM,EAAE,OAAO;IACfC,OAAO,EAAE;EACX;AACA,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ import * as mime from 'mime-types'
|
|
|
11
11
|
|
|
12
12
|
// const DOKIELI_TEMPLATE_URI = 'https://dokie.li/new' // Copy to make new dok
|
|
13
13
|
|
|
14
|
-
import
|
|
14
|
+
import DOKIELI_TEMPLATE from './new.js' // Distributed with this library
|
|
15
15
|
|
|
16
16
|
export default {
|
|
17
17
|
icon: UI.icons.iconBase + 'dokieli-logo.png', // @@ improve? more like doccument?
|
package/src/dokieli/new.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const DOKIELI_TEMPLATE = `
|
|
2
2
|
<!DOCTYPE html>
|
|
3
3
|
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
|
4
4
|
<head>
|
|
@@ -10,12 +10,13 @@ export default `
|
|
|
10
10
|
<script src="https://dokie.li/scripts/dokieli.js"></script>
|
|
11
11
|
</head>
|
|
12
12
|
|
|
13
|
-
<body about="" prefix="rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# rdfs: http://www.w3.org/2000/01/rdf-schema# owl: http://www.w3.org/2002/07/owl# xsd: http://www.w3.org/2001/XMLSchema# dcterms: http://purl.org/dc/terms/ dctypes: http://purl.org/dc/dcmitype/ foaf: http://xmlns.com/foaf/0.1/ pimspace: http://www.w3.org/ns/pim/space#
|
|
13
|
+
<body about="" prefix="rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# rdfs: http://www.w3.org/2000/01/rdf-schema# owl: http://www.w3.org/2002/07/owl# xsd: http://www.w3.org/2001/XMLSchema# rdfa: http://www.w3.org/ns/rdfa# dcterms: http://purl.org/dc/terms/ dctypes: http://purl.org/dc/dcmitype/ foaf: http://xmlns.com/foaf/0.1/ pimspace: http://www.w3.org/ns/pim/space# skos: http://www.w3.org/2004/02/skos/core# prov: http://www.w3.org/ns/prov# mem: http://mementoweb.org/ns# qb: http://purl.org/linked-data/cube# schema: http://schema.org/ void: http://rdfs.org/ns/void# rsa: http://www.w3.org/ns/auth/rsa# cert: http://www.w3.org/ns/auth/cert# wgs: http://www.w3.org/2003/01/geo/wgs84_pos# bibo: http://purl.org/ontology/bibo/ sioc: http://rdfs.org/sioc/ns# doap: http://usefulinc.com/ns/doap# dbr: http://dbpedia.org/resource/ dbp: http://dbpedia.org/property/ sio: http://semanticscience.org/resource/ opmw: http://www.opmw.org/ontology/ deo: http://purl.org/spar/deo/ doco: http://purl.org/spar/doco/ cito: http://purl.org/spar/cito/ fabio: http://purl.org/spar/fabio/ oa: http://www.w3.org/ns/oa# as: https://www.w3.org/ns/activitystreams# ldp: http://www.w3.org/ns/ldp# solid: http://www.w3.org/ns/solid/terms# acl: http://www.w3.org/ns/auth/acl# earl: http://www.w3.org/ns/earl# spec: http://www.w3.org/ns/spec# odrl: http://www.w3.org/ns/odrl/2/ dio: https://w3id.org/dio# rel: https://www.w3.org/ns/iana/link-relations/relation#" typeof="schema:CreativeWork prov:Entity">
|
|
14
14
|
<main>
|
|
15
15
|
<article about="" typeof="schema:Article">
|
|
16
16
|
|
|
17
17
|
</article>
|
|
18
18
|
</main>
|
|
19
19
|
</body>
|
|
20
|
-
</html
|
|
21
|
-
|
|
20
|
+
</html>`
|
|
21
|
+
|
|
22
|
+
export default DOKIELI_TEMPLATE
|
package/src/outline/manager.js
CHANGED
|
@@ -7,8 +7,6 @@ import * as $rdf from 'rdflib'
|
|
|
7
7
|
import * as UI from 'solid-ui'
|
|
8
8
|
import { authn, authSession, store } from 'solid-logic'
|
|
9
9
|
import { propertyViews } from './propertyViews'
|
|
10
|
-
import { licenseOptions } from './licenseOptions'
|
|
11
|
-
|
|
12
10
|
import { outlineIcons } from './outlineIcons.js' // @@ chec
|
|
13
11
|
import { UserInput } from './userInput.js'
|
|
14
12
|
import * as queryByExample from './queryByExample.js'
|
|
@@ -179,13 +177,6 @@ export default function (context) {
|
|
|
179
177
|
td.setAttribute('notSelectable', 'false')
|
|
180
178
|
let theClass = 'obj'
|
|
181
179
|
|
|
182
|
-
// check the IPR on the data. Ok if there is any checked license which is one the document has.
|
|
183
|
-
if (statement && statement.why) {
|
|
184
|
-
if (licenseOptions && licenseOptions.checklicense && licenseOptions.checklicense()) {
|
|
185
|
-
theClass += ' licOkay' // flag as light green etc .licOkay {background-color: #dfd}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
180
|
// set about and put 'expand' icon
|
|
190
181
|
if (
|
|
191
182
|
obj.termType === 'NamedNode' ||
|
package/src/versionInfo.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
buildTime: "2024-
|
|
3
|
-
commit: "
|
|
2
|
+
buildTime: "2024-08-29T18:00:09Z",
|
|
3
|
+
commit: "85706e731698932d66bd08735f9d793b4514f043",
|
|
4
4
|
npmInfo:
|
|
5
5
|
{
|
|
6
|
-
'solid-panes': '3.5.
|
|
6
|
+
'solid-panes': '3.5.36',
|
|
7
7
|
npm: '8.19.4',
|
|
8
8
|
node: '16.20.2',
|
|
9
9
|
v8: '9.4.146.26-node.26',
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.licenseOptions = licenseOptions;
|
|
7
|
-
exports.licenseURI = void 0;
|
|
8
|
-
var _solidLogic = require("solid-logic");
|
|
9
|
-
// This was a student project to
|
|
10
|
-
// allow the user to chose favoite CC license terms and have them highlighted
|
|
11
|
-
|
|
12
|
-
// tabulator.options becaome UI.licenseOptions
|
|
13
|
-
// Possible future alternative directoons: Store license preferences in a solid preferences file
|
|
14
|
-
|
|
15
|
-
var licenseURI = exports.licenseURI = ['http://creativecommons.org/licenses/by-nc-nd/3.0/', 'http://creativecommons.org/licenses/by-nc-sa/3.0/', 'http://creativecommons.org/licenses/by-nc/3.0/', 'http://creativecommons.org/licenses/by-nd/3.0/', 'http://creativecommons.org/licenses/by-sa/3.0/', 'http://creativecommons.org/licenses/by/3.0/'];
|
|
16
|
-
var names = ['BY-NC-ND', 'BY-NC-SA', 'BY-NC', 'BY-ND', 'BY-SA', 'BY'];
|
|
17
|
-
function licenseOptions() {
|
|
18
|
-
this.options = {};
|
|
19
|
-
this.references = [];
|
|
20
|
-
this.checkedLicenses = [];
|
|
21
|
-
this.openCheckBoxWindow = function () {
|
|
22
|
-
this["this"].display = window.open(' ', 'NewWin', 'menubar=0,location=no,status=no,directories=no,toolbar=no,scrollbars=yes,height=200,width=200');
|
|
23
|
-
};
|
|
24
|
-
var message = "<font face='arial' size='2'><form name ='checkboxes'>";
|
|
25
|
-
var lics = this.checkedLicenses;
|
|
26
|
-
for (var kk = 0; kk < lics.length; kk++) {
|
|
27
|
-
message += "<input type='checkbox' name = 'n" + kk + "' onClick = 'tabulator.options.submit()'" + (
|
|
28
|
-
// @@ FIXME
|
|
29
|
-
lics[kk] ? 'CHECKED' : '') + ' />CC: ' + names[kk] + '<br />';
|
|
30
|
-
}
|
|
31
|
-
message += "<br /> <a onclick='tabulator.options.selectAll()'>[Select All] </a>"; // @@ FIXME
|
|
32
|
-
message += "<a onclick='tabulator.options.deselectAll()'> [Deselect All]</a>"; // @@ FIXME
|
|
33
|
-
message += '</form></font>';
|
|
34
|
-
this.display.document.write(message);
|
|
35
|
-
this.display.document.close();
|
|
36
|
-
var i;
|
|
37
|
-
for (i = 0; i < 6; i++) {
|
|
38
|
-
this.references[i] = this["this"].display.document.checkboxes.elements[i];
|
|
39
|
-
}
|
|
40
|
-
this.selectAll = function () {
|
|
41
|
-
var i;
|
|
42
|
-
for (i = 0; i < 6; i++) {
|
|
43
|
-
this.display.document.checkboxes.elements[i].checked = true;
|
|
44
|
-
this.references[i].checked = true;
|
|
45
|
-
this.checkedLicenses[i] = true;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
this.deselectAll = function () {
|
|
49
|
-
var i;
|
|
50
|
-
for (i = 0; i < 6; i++) {
|
|
51
|
-
this.display.document.checkboxes.elements[i].checked = false;
|
|
52
|
-
this.references[i].checked = false;
|
|
53
|
-
this.checkedLicenses[i] = false;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
this.submit = function () {
|
|
57
|
-
// alert('this.submit: checked=' + this.references[0].checked)
|
|
58
|
-
for (var _i = 0; _i < 6; _i++) {
|
|
59
|
-
this.checkedLicenses[_i] = !!this.references[_i].checked;
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
this.checkLicense = function checkLicense(statement) {
|
|
63
|
-
var licenses = _solidLogic.store.each(statement.why, _solidLogic.store.sym('http://creativecommons.org/ns#license'), null, statement.why);
|
|
64
|
-
// UI.log.info('licenses:' + statement.why + ': ' + licenses)
|
|
65
|
-
for (var _i2 = 0; _i2 < licenses.length; _i2++) {
|
|
66
|
-
for (var j = 0; j < this.checkedLicenses.length; j++) {
|
|
67
|
-
if (this.checkedLicenses[j] && licenses[_i2].uri === licenseURI[j]) {
|
|
68
|
-
return true;
|
|
69
|
-
// theClass += ' licOkay' // icon_expand
|
|
70
|
-
// break
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return false;
|
|
75
|
-
};
|
|
76
|
-
return this;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// ends
|
|
80
|
-
//# sourceMappingURL=licenseOptions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"licenseOptions.js","names":["_solidLogic","require","licenseURI","exports","names","licenseOptions","options","references","checkedLicenses","openCheckBoxWindow","display","window","open","message","lics","kk","length","document","write","close","i","checkboxes","elements","selectAll","checked","deselectAll","submit","checkLicense","statement","licenses","store","each","why","sym","j","uri"],"sources":["../../src/outline/licenseOptions.js"],"sourcesContent":["// This was a student project to\n// allow the user to chose favoite CC license terms and have them highlighted\n\n// tabulator.options becaome UI.licenseOptions\n// Possible future alternative directoons: Store license preferences in a solid preferences file\nimport { store } from 'solid-logic'\n\nexport const licenseURI = [\n 'http://creativecommons.org/licenses/by-nc-nd/3.0/',\n 'http://creativecommons.org/licenses/by-nc-sa/3.0/',\n 'http://creativecommons.org/licenses/by-nc/3.0/',\n 'http://creativecommons.org/licenses/by-nd/3.0/',\n 'http://creativecommons.org/licenses/by-sa/3.0/',\n 'http://creativecommons.org/licenses/by/3.0/'\n]\n\nconst names = ['BY-NC-ND', 'BY-NC-SA', 'BY-NC', 'BY-ND', 'BY-SA', 'BY']\n\nexport function licenseOptions () {\n this.options = {}\n this.references = []\n this.checkedLicenses = []\n\n this.openCheckBoxWindow = function () {\n this.this.display = window.open(\n ' ',\n 'NewWin',\n 'menubar=0,location=no,status=no,directories=no,toolbar=no,scrollbars=yes,height=200,width=200'\n )\n }\n let message = \"<font face='arial' size='2'><form name ='checkboxes'>\"\n const lics = this.checkedLicenses\n for (let kk = 0; kk < lics.length; kk++) {\n message +=\n \"<input type='checkbox' name = 'n\" +\n kk +\n \"' onClick = 'tabulator.options.submit()'\" + // @@ FIXME\n (lics[kk] ? 'CHECKED' : '') +\n ' />CC: ' +\n names[kk] +\n '<br />'\n }\n\n message +=\n \"<br /> <a onclick='tabulator.options.selectAll()'>[Select All] </a>\" // @@ FIXME\n message += \"<a onclick='tabulator.options.deselectAll()'> [Deselect All]</a>\" // @@ FIXME\n message += '</form></font>'\n\n this.display.document.write(message)\n\n this.display.document.close()\n\n let i\n for (i = 0; i < 6; i++) {\n this.references[i] = this.this.display.document.checkboxes.elements[i]\n }\n\n this.selectAll = function () {\n let i\n for (i = 0; i < 6; i++) {\n this.display.document.checkboxes.elements[i].checked = true\n this.references[i].checked = true\n this.checkedLicenses[i] = true\n }\n }\n\n this.deselectAll = function () {\n let i\n for (i = 0; i < 6; i++) {\n this.display.document.checkboxes.elements[i].checked = false\n this.references[i].checked = false\n this.checkedLicenses[i] = false\n }\n }\n\n this.submit = function () {\n // alert('this.submit: checked=' + this.references[0].checked)\n for (let i = 0; i < 6; i++) {\n this.checkedLicenses[i] = !!this.references[i].checked\n }\n }\n\n this.checkLicense = function checkLicense (statement) {\n const licenses = store.each(\n statement.why,\n store.sym('http://creativecommons.org/ns#license'),\n null,\n statement.why\n )\n // UI.log.info('licenses:' + statement.why + ': ' + licenses)\n for (let i = 0; i < licenses.length; i++) {\n for (let j = 0; j < this.checkedLicenses.length; j++) {\n if (this.checkedLicenses[j] && licenses[i].uri === licenseURI[j]) {\n return true\n // theClass += ' licOkay' // icon_expand\n // break\n }\n }\n }\n return false\n }\n return this\n}\n\n// ends\n"],"mappings":";;;;;;;AAKA,IAAAA,WAAA,GAAAC,OAAA;AALA;AACA;;AAEA;AACA;;AAGO,IAAMC,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,CACxB,mDAAmD,EACnD,mDAAmD,EACnD,gDAAgD,EAChD,gDAAgD,EAChD,gDAAgD,EAChD,6CAA6C,CAC9C;AAED,IAAME,KAAK,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC;AAEhE,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AK,IAAIc,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,IAAI,CAAC1B,eAAe,CAACQ,MAAM,EAAEkB,CAAC,EAAE,EAAE;QACpD,IAAI,IAAI,CAAC1B,eAAe,CAAC0B,CAAC,CAAC,IAAIL,QAAQ,CAACT,GAAC,CAAC,CAACe,GAAG,KAAKjC,UAAU,CAACgC,CAAC,CAAC,EAAE;UAChE,OAAO,IAAI;UACX;UACA;QACF;MACF;IACF;IACA,OAAO,KAAK;EACd,CAAC;EACD,OAAO,IAAI;AACb;;AAEA","ignoreList":[]}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
// This was a student project to
|
|
2
|
-
// allow the user to chose favoite CC license terms and have them highlighted
|
|
3
|
-
|
|
4
|
-
// tabulator.options becaome UI.licenseOptions
|
|
5
|
-
// Possible future alternative directoons: Store license preferences in a solid preferences file
|
|
6
|
-
import { store } from 'solid-logic'
|
|
7
|
-
|
|
8
|
-
export const licenseURI = [
|
|
9
|
-
'http://creativecommons.org/licenses/by-nc-nd/3.0/',
|
|
10
|
-
'http://creativecommons.org/licenses/by-nc-sa/3.0/',
|
|
11
|
-
'http://creativecommons.org/licenses/by-nc/3.0/',
|
|
12
|
-
'http://creativecommons.org/licenses/by-nd/3.0/',
|
|
13
|
-
'http://creativecommons.org/licenses/by-sa/3.0/',
|
|
14
|
-
'http://creativecommons.org/licenses/by/3.0/'
|
|
15
|
-
]
|
|
16
|
-
|
|
17
|
-
const names = ['BY-NC-ND', 'BY-NC-SA', 'BY-NC', 'BY-ND', 'BY-SA', 'BY']
|
|
18
|
-
|
|
19
|
-
export function licenseOptions () {
|
|
20
|
-
this.options = {}
|
|
21
|
-
this.references = []
|
|
22
|
-
this.checkedLicenses = []
|
|
23
|
-
|
|
24
|
-
this.openCheckBoxWindow = function () {
|
|
25
|
-
this.this.display = window.open(
|
|
26
|
-
' ',
|
|
27
|
-
'NewWin',
|
|
28
|
-
'menubar=0,location=no,status=no,directories=no,toolbar=no,scrollbars=yes,height=200,width=200'
|
|
29
|
-
)
|
|
30
|
-
}
|
|
31
|
-
let message = "<font face='arial' size='2'><form name ='checkboxes'>"
|
|
32
|
-
const lics = this.checkedLicenses
|
|
33
|
-
for (let kk = 0; kk < lics.length; kk++) {
|
|
34
|
-
message +=
|
|
35
|
-
"<input type='checkbox' name = 'n" +
|
|
36
|
-
kk +
|
|
37
|
-
"' onClick = 'tabulator.options.submit()'" + // @@ FIXME
|
|
38
|
-
(lics[kk] ? 'CHECKED' : '') +
|
|
39
|
-
' />CC: ' +
|
|
40
|
-
names[kk] +
|
|
41
|
-
'<br />'
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
message +=
|
|
45
|
-
"<br /> <a onclick='tabulator.options.selectAll()'>[Select All] </a>" // @@ FIXME
|
|
46
|
-
message += "<a onclick='tabulator.options.deselectAll()'> [Deselect All]</a>" // @@ FIXME
|
|
47
|
-
message += '</form></font>'
|
|
48
|
-
|
|
49
|
-
this.display.document.write(message)
|
|
50
|
-
|
|
51
|
-
this.display.document.close()
|
|
52
|
-
|
|
53
|
-
let i
|
|
54
|
-
for (i = 0; i < 6; i++) {
|
|
55
|
-
this.references[i] = this.this.display.document.checkboxes.elements[i]
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
this.selectAll = function () {
|
|
59
|
-
let i
|
|
60
|
-
for (i = 0; i < 6; i++) {
|
|
61
|
-
this.display.document.checkboxes.elements[i].checked = true
|
|
62
|
-
this.references[i].checked = true
|
|
63
|
-
this.checkedLicenses[i] = true
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
this.deselectAll = function () {
|
|
68
|
-
let i
|
|
69
|
-
for (i = 0; i < 6; i++) {
|
|
70
|
-
this.display.document.checkboxes.elements[i].checked = false
|
|
71
|
-
this.references[i].checked = false
|
|
72
|
-
this.checkedLicenses[i] = false
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
this.submit = function () {
|
|
77
|
-
// alert('this.submit: checked=' + this.references[0].checked)
|
|
78
|
-
for (let i = 0; i < 6; i++) {
|
|
79
|
-
this.checkedLicenses[i] = !!this.references[i].checked
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
this.checkLicense = function checkLicense (statement) {
|
|
84
|
-
const licenses = store.each(
|
|
85
|
-
statement.why,
|
|
86
|
-
store.sym('http://creativecommons.org/ns#license'),
|
|
87
|
-
null,
|
|
88
|
-
statement.why
|
|
89
|
-
)
|
|
90
|
-
// UI.log.info('licenses:' + statement.why + ': ' + licenses)
|
|
91
|
-
for (let i = 0; i < licenses.length; i++) {
|
|
92
|
-
for (let j = 0; j < this.checkedLicenses.length; j++) {
|
|
93
|
-
if (this.checkedLicenses[j] && licenses[i].uri === licenseURI[j]) {
|
|
94
|
-
return true
|
|
95
|
-
// theClass += ' licOkay' // icon_expand
|
|
96
|
-
// break
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
return false
|
|
101
|
-
}
|
|
102
|
-
return this
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// ends
|