chat-pane 2.4.24 → 2.4.25-bc02cfbd
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/LICENSE.md +0 -0
- package/README.md +0 -0
- package/dist/_2b19.js +0 -0
- package/dist/_2b19.js.map +1 -1
- package/dist/index.html +0 -0
- package/dist/longChatPane.js +460 -451
- package/dist/longChatPane.js.map +1 -1
- package/dist/main.js +460 -453
- package/dist/main.js.map +1 -1
- package/dist/shortChatPane.js +460 -451
- package/dist/shortChatPane.js.map +1 -1
- package/dist/vendors-node_modules_jsonld_lib_jsonld_js.js +0 -0
- package/dist/vendors-node_modules_jsonld_lib_jsonld_js.js.map +0 -0
- package/lib/create.js +0 -0
- package/lib/create.js.map +0 -0
- package/lib/longChatPane.js +3 -5
- package/lib/longChatPane.js.map +1 -1
- package/lib/longChatPane.test.js +0 -0
- package/lib/longChatPane.test.js.map +0 -0
- package/lib/main.js +0 -0
- package/lib/main.js.map +0 -0
- package/lib/shortChatPane.js +0 -2
- package/lib/shortChatPane.js.map +1 -1
- package/package.json +12 -12
- package/src/create.ts +0 -0
- package/src/longChatPane.js +0 -0
- package/src/longChatPane.test.ts +0 -0
- package/src/main.js +0 -0
- package/src/shortChatPane.js +0 -0
package/dist/main.js
CHANGED
|
@@ -21420,7 +21420,6 @@ var longChatPane = {
|
|
|
21420
21420
|
}
|
|
21421
21421
|
return null; // Suppress pane otherwise
|
|
21422
21422
|
},
|
|
21423
|
-
|
|
21424
21423
|
mintClass: mainClass,
|
|
21425
21424
|
mintNew: function mintNew(context, newPaneOptions) {
|
|
21426
21425
|
var kb = context.session.store;
|
|
@@ -21481,7 +21480,6 @@ var longChatPane = {
|
|
|
21481
21480
|
// If not loaded already
|
|
21482
21481
|
rdflib__WEBPACK_IMPORTED_MODULE_2__["default"](preferencesFormText, kb, preferencesFormDoc.uri, 'text/turtle'); // Load form directly
|
|
21483
21482
|
}
|
|
21484
|
-
|
|
21485
21483
|
var preferenceProperties = kb.statementsMatching(null, ns.ui.property, null, preferencesFormDoc).map(function (st) {
|
|
21486
21484
|
return st.object;
|
|
21487
21485
|
});
|
|
@@ -39465,7 +39463,7 @@ var Serializer = /*#__PURE__*/function () {
|
|
|
39465
39463
|
// Unicode encoding NTriples style
|
|
39466
39464
|
uri = backslashUify(uri);
|
|
39467
39465
|
} else {
|
|
39468
|
-
uri = hexify(uri);
|
|
39466
|
+
uri = hexify(decodeURI(uri));
|
|
39469
39467
|
}
|
|
39470
39468
|
return '<' + uri + '>';
|
|
39471
39469
|
}
|
|
@@ -42180,9 +42178,9 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
42180
42178
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
42181
42179
|
/* @file Update Manager Class
|
|
42182
42180
|
**
|
|
42183
|
-
** 2007-07-15
|
|
42181
|
+
** 2007-07-15 original SPARQL Update module by Joe Presbrey <presbrey@mit.edu>
|
|
42184
42182
|
** 2010-08-08 TimBL folded in Kenny's WEBDAV
|
|
42185
|
-
** 2010-12-07 TimBL
|
|
42183
|
+
** 2010-12-07 TimBL added local file write code
|
|
42186
42184
|
*/
|
|
42187
42185
|
|
|
42188
42186
|
|
|
@@ -42248,8 +42246,8 @@ var UpdateManager = /*#__PURE__*/function () {
|
|
|
42248
42246
|
}
|
|
42249
42247
|
|
|
42250
42248
|
/** Remove from the store HTTP authorization metadata
|
|
42251
|
-
* The
|
|
42252
|
-
* of the results of previous HTTP transactions.
|
|
42249
|
+
* The editable function below relies on copies we have in the store
|
|
42250
|
+
* of the results of previous HTTP transactions. However, when
|
|
42253
42251
|
* the user logs in, then that data misrepresents what would happen
|
|
42254
42252
|
* if the user tried again.
|
|
42255
42253
|
*/
|
|
@@ -42290,7 +42288,7 @@ var UpdateManager = /*#__PURE__*/function () {
|
|
|
42290
42288
|
* and local write access is determined by those headers.
|
|
42291
42289
|
* This async version not only looks at past HTTP requests, it also makes new ones if necessary.
|
|
42292
42290
|
*
|
|
42293
|
-
* @returns The method string SPARQL or DAV or
|
|
42291
|
+
* @returns The method string N3PATCH or SPARQL or DAV or
|
|
42294
42292
|
* LOCALFILE or false if known, undefined if not known.
|
|
42295
42293
|
*/
|
|
42296
42294
|
}, {
|
|
@@ -42402,6 +42400,7 @@ var UpdateManager = /*#__PURE__*/function () {
|
|
|
42402
42400
|
if (acceptPatch.length) {
|
|
42403
42401
|
for (var i = 0; i < acceptPatch.length; i++) {
|
|
42404
42402
|
method = acceptPatch[i].value.trim();
|
|
42403
|
+
if (method.indexOf('text/n3') >= 0) return 'N3PATCH';
|
|
42405
42404
|
if (method.indexOf('application/sparql-update') >= 0) return 'SPARQL';
|
|
42406
42405
|
if (method.indexOf('application/sparql-update-single-match') >= 0) return 'SPARQL';
|
|
42407
42406
|
}
|
|
@@ -42449,7 +42448,8 @@ var UpdateManager = /*#__PURE__*/function () {
|
|
|
42449
42448
|
}, {
|
|
42450
42449
|
key: "anonymize",
|
|
42451
42450
|
value: function anonymize(obj) {
|
|
42452
|
-
|
|
42451
|
+
var anonymized = obj.toNT().substr(0, 2) === '_:' && this.mentioned(obj) ? '?' + obj.toNT().substr(2) : obj.toNT();
|
|
42452
|
+
return anonymized;
|
|
42453
42453
|
}
|
|
42454
42454
|
}, {
|
|
42455
42455
|
key: "anonymizeNT",
|
|
@@ -42647,7 +42647,7 @@ var UpdateManager = /*#__PURE__*/function () {
|
|
|
42647
42647
|
// console.log('UpdateManager: sending update to <' + uri + '>')
|
|
42648
42648
|
|
|
42649
42649
|
options.noMeta = true;
|
|
42650
|
-
options.contentType = 'application/sparql-update';
|
|
42650
|
+
options.contentType = options.contentType || 'application/sparql-update';
|
|
42651
42651
|
options.body = query;
|
|
42652
42652
|
return _this.store.fetcher.webOperation('PATCH', uri, options);
|
|
42653
42653
|
}).then(function (response) {
|
|
@@ -42665,7 +42665,7 @@ var UpdateManager = /*#__PURE__*/function () {
|
|
|
42665
42665
|
});
|
|
42666
42666
|
}
|
|
42667
42667
|
|
|
42668
|
-
// ARE THESE
|
|
42668
|
+
// ARE THESE THREE FUNCTIONS USED? DEPRECATE?
|
|
42669
42669
|
|
|
42670
42670
|
/** return a statemnet updating function
|
|
42671
42671
|
*
|
|
@@ -42975,7 +42975,93 @@ var UpdateManager = /*#__PURE__*/function () {
|
|
|
42975
42975
|
}
|
|
42976
42976
|
|
|
42977
42977
|
/**
|
|
42978
|
-
*
|
|
42978
|
+
* @private
|
|
42979
|
+
*
|
|
42980
|
+
* This helper function constructs SPARQL Update query from resolved arguments.
|
|
42981
|
+
*
|
|
42982
|
+
* @param ds: deletions array.
|
|
42983
|
+
* @param is: insertions array.
|
|
42984
|
+
* @param bnodes_context: Additional context to uniquely identify any blank nodes.
|
|
42985
|
+
*/
|
|
42986
|
+
}, {
|
|
42987
|
+
key: "constructSparqlUpdateQuery",
|
|
42988
|
+
value: function constructSparqlUpdateQuery(ds, is, bnodes_context) {
|
|
42989
|
+
var whereClause = this.contextWhere(bnodes_context);
|
|
42990
|
+
var query = '';
|
|
42991
|
+
if (whereClause.length) {
|
|
42992
|
+
// Is there a WHERE clause?
|
|
42993
|
+
if (ds.length) {
|
|
42994
|
+
query += 'DELETE { ';
|
|
42995
|
+
for (var i = 0; i < ds.length; i++) {
|
|
42996
|
+
query += this.anonymizeNT(ds[i]) + '\n';
|
|
42997
|
+
}
|
|
42998
|
+
query += ' }\n';
|
|
42999
|
+
}
|
|
43000
|
+
if (is.length) {
|
|
43001
|
+
query += 'INSERT { ';
|
|
43002
|
+
for (var _i5 = 0; _i5 < is.length; _i5++) {
|
|
43003
|
+
query += this.anonymizeNT(is[_i5]) + '\n';
|
|
43004
|
+
}
|
|
43005
|
+
query += ' }\n';
|
|
43006
|
+
}
|
|
43007
|
+
query += whereClause;
|
|
43008
|
+
} else {
|
|
43009
|
+
// no where clause
|
|
43010
|
+
if (ds.length) {
|
|
43011
|
+
query += 'DELETE DATA { ';
|
|
43012
|
+
for (var _i6 = 0; _i6 < ds.length; _i6++) {
|
|
43013
|
+
query += this.anonymizeNT(ds[_i6]) + '\n';
|
|
43014
|
+
}
|
|
43015
|
+
query += ' } \n';
|
|
43016
|
+
}
|
|
43017
|
+
if (is.length) {
|
|
43018
|
+
if (ds.length) query += ' ; ';
|
|
43019
|
+
query += 'INSERT DATA { ';
|
|
43020
|
+
for (var _i7 = 0; _i7 < is.length; _i7++) {
|
|
43021
|
+
query += this.nTriples(is[_i7]) + '\n';
|
|
43022
|
+
}
|
|
43023
|
+
query += ' }\n';
|
|
43024
|
+
}
|
|
43025
|
+
}
|
|
43026
|
+
return query;
|
|
43027
|
+
}
|
|
43028
|
+
|
|
43029
|
+
/**
|
|
43030
|
+
* @private
|
|
43031
|
+
*
|
|
43032
|
+
* This helper function constructs n3-patch query from resolved arguments.
|
|
43033
|
+
*
|
|
43034
|
+
* @param ds: deletions array.
|
|
43035
|
+
* @param is: insertions array.
|
|
43036
|
+
* @param bnodes_context: Additional context to uniquely identify any blanknodes.
|
|
43037
|
+
*/
|
|
43038
|
+
}, {
|
|
43039
|
+
key: "constructN3PatchQuery",
|
|
43040
|
+
value: function constructN3PatchQuery(ds, is, bnodes_context) {
|
|
43041
|
+
var _this3 = this;
|
|
43042
|
+
var query = "\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix ex: <http://www.example.org/terms#>.\n\n_:patch\n";
|
|
43043
|
+
// If bnode context is non trivial, express it as ?conditions formula.
|
|
43044
|
+
if (bnodes_context && bnodes_context.length > 0) {
|
|
43045
|
+
query += "\n solid:where {\n ".concat(bnodes_context.map(function (x) {
|
|
43046
|
+
return _this3.anonymizeNT(x);
|
|
43047
|
+
}).join('\n '), "\n };");
|
|
43048
|
+
}
|
|
43049
|
+
if (ds.length > 0) {
|
|
43050
|
+
query += "\n solid:deletes {\n ".concat(ds.map(function (x) {
|
|
43051
|
+
return _this3.anonymizeNT(x);
|
|
43052
|
+
}).join('\n '), "\n };");
|
|
43053
|
+
}
|
|
43054
|
+
if (is.length > 0) {
|
|
43055
|
+
query += "\n solid:inserts {\n ".concat(is.map(function (x) {
|
|
43056
|
+
return _this3.anonymizeNT(x);
|
|
43057
|
+
}).join('\n '), "\n };");
|
|
43058
|
+
}
|
|
43059
|
+
query += " a solid:InsertDeletePatch .\n";
|
|
43060
|
+
return query;
|
|
43061
|
+
}
|
|
43062
|
+
|
|
43063
|
+
/**
|
|
43064
|
+
* This high-level function updates the local store if the web is changed successfully.
|
|
42979
43065
|
* Deletions, insertions may be undefined or single statements or lists or formulae (may contain bnodes which can be indirectly identified by a where clause).
|
|
42980
43066
|
* The `why` property of each statement must be the same and give the web document to be updated.
|
|
42981
43067
|
* @param deletions - Statement or statements to be deleted.
|
|
@@ -42987,7 +43073,7 @@ var UpdateManager = /*#__PURE__*/function () {
|
|
|
42987
43073
|
}, {
|
|
42988
43074
|
key: "update",
|
|
42989
43075
|
value: function update(deletions, insertions, callback, secondTry) {
|
|
42990
|
-
var
|
|
43076
|
+
var _this4 = this;
|
|
42991
43077
|
var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
42992
43078
|
if (!callback) {
|
|
42993
43079
|
var thisUpdater = this;
|
|
@@ -43055,64 +43141,31 @@ var UpdateManager = /*#__PURE__*/function () {
|
|
|
43055
43141
|
if (protocol === undefined) {
|
|
43056
43142
|
// Not enough metadata
|
|
43057
43143
|
if (secondTry) {
|
|
43058
|
-
throw new Error('Update: Loaded ' + doc + "but
|
|
43144
|
+
throw new Error('Update: Loaded ' + doc + "but still can't figure out what editing protocol it supports.");
|
|
43059
43145
|
}
|
|
43060
43146
|
// console.log(`Update: have not loaded ${doc} before: loading now...`);
|
|
43061
43147
|
this.store.fetcher.load(doc).then(function (response) {
|
|
43062
|
-
|
|
43148
|
+
_this4.update(deletions, insertions, callback, true, options);
|
|
43063
43149
|
}, function (err) {
|
|
43064
43150
|
if (err.response.status === 404) {
|
|
43065
43151
|
// nonexistent files are fine
|
|
43066
|
-
|
|
43152
|
+
_this4.update(deletions, insertions, callback, true, options);
|
|
43067
43153
|
} else {
|
|
43068
43154
|
throw new Error("Update: Can't get updatability status ".concat(doc, " before patching: ").concat(err));
|
|
43069
43155
|
}
|
|
43070
43156
|
});
|
|
43071
43157
|
return;
|
|
43072
|
-
} else if (protocol.indexOf('SPARQL') >= 0) {
|
|
43158
|
+
} else if (protocol.indexOf('SPARQL') >= 0 || protocol.indexOf('N3PATCH') >= 0) {
|
|
43159
|
+
var isSparql = protocol.indexOf('SPARQL') >= 0;
|
|
43073
43160
|
var bnodes = [];
|
|
43074
43161
|
// change ReadOnly type to Mutable type
|
|
43075
43162
|
|
|
43076
43163
|
if (ds.length) bnodes = this.statementArrayBnodes(ds);
|
|
43077
43164
|
if (is.length) bnodes = bnodes.concat(this.statementArrayBnodes(is));
|
|
43078
43165
|
var context = this.bnodeContext(bnodes, doc);
|
|
43079
|
-
var
|
|
43080
|
-
|
|
43081
|
-
|
|
43082
|
-
// Is there a WHERE clause?
|
|
43083
|
-
if (ds.length) {
|
|
43084
|
-
query += 'DELETE { ';
|
|
43085
|
-
for (var i = 0; i < ds.length; i++) {
|
|
43086
|
-
query += this.anonymizeNT(ds[i]) + '\n';
|
|
43087
|
-
}
|
|
43088
|
-
query += ' }\n';
|
|
43089
|
-
}
|
|
43090
|
-
if (is.length) {
|
|
43091
|
-
query += 'INSERT { ';
|
|
43092
|
-
for (var _i5 = 0; _i5 < is.length; _i5++) {
|
|
43093
|
-
query += this.anonymizeNT(is[_i5]) + '\n';
|
|
43094
|
-
}
|
|
43095
|
-
query += ' }\n';
|
|
43096
|
-
}
|
|
43097
|
-
query += whereClause;
|
|
43098
|
-
} else {
|
|
43099
|
-
// no where clause
|
|
43100
|
-
if (ds.length) {
|
|
43101
|
-
query += 'DELETE DATA { ';
|
|
43102
|
-
for (var _i6 = 0; _i6 < ds.length; _i6++) {
|
|
43103
|
-
query += this.anonymizeNT(ds[_i6]) + '\n';
|
|
43104
|
-
}
|
|
43105
|
-
query += ' } \n';
|
|
43106
|
-
}
|
|
43107
|
-
if (is.length) {
|
|
43108
|
-
if (ds.length) query += ' ; ';
|
|
43109
|
-
query += 'INSERT DATA { ';
|
|
43110
|
-
for (var _i7 = 0; _i7 < is.length; _i7++) {
|
|
43111
|
-
query += this.nTriples(is[_i7]) + '\n';
|
|
43112
|
-
}
|
|
43113
|
-
query += ' }\n';
|
|
43114
|
-
}
|
|
43115
|
-
}
|
|
43166
|
+
var query = isSparql ? this.constructSparqlUpdateQuery(ds, is, context) : this.constructN3PatchQuery(ds, is, context);
|
|
43167
|
+
options.contentType = isSparql ? 'application/sparql-update' : 'text/n3';
|
|
43168
|
+
|
|
43116
43169
|
// Track pending upstream patches until they have finished their callbackFunction
|
|
43117
43170
|
control.pendingUpstream = control.pendingUpstream ? control.pendingUpstream + 1 : 1;
|
|
43118
43171
|
if ('upstreamCount' in control) {
|
|
@@ -43133,8 +43186,8 @@ var UpdateManager = /*#__PURE__*/function () {
|
|
|
43133
43186
|
success = false;
|
|
43134
43187
|
body = 'Remote Ok BUT error deleting ' + ds.length + ' from store!!! ' + e;
|
|
43135
43188
|
} // Add in any case -- help recover from weirdness??
|
|
43136
|
-
for (var
|
|
43137
|
-
kb.add(is[
|
|
43189
|
+
for (var i = 0; i < is.length; i++) {
|
|
43190
|
+
kb.add(is[i].subject, is[i].predicate, is[i].object, doc);
|
|
43138
43191
|
}
|
|
43139
43192
|
}
|
|
43140
43193
|
callback(uri, success, body, response);
|
|
@@ -43188,8 +43241,8 @@ var UpdateManager = /*#__PURE__*/function () {
|
|
|
43188
43241
|
for (var i = 0; i < ds.length; i++) {
|
|
43189
43242
|
_utils_js__WEBPACK_IMPORTED_MODULE_12__.RDFArrayRemove(newSts, ds[i]);
|
|
43190
43243
|
}
|
|
43191
|
-
for (var
|
|
43192
|
-
newSts.push(is[
|
|
43244
|
+
for (var _i8 = 0; _i8 < is.length; _i8++) {
|
|
43245
|
+
newSts.push(is[_i8]);
|
|
43193
43246
|
}
|
|
43194
43247
|
var documentString = this.serialize(doc.value, newSts, contentType);
|
|
43195
43248
|
|
|
@@ -43206,11 +43259,11 @@ var UpdateManager = /*#__PURE__*/function () {
|
|
|
43206
43259
|
if (!response.ok) {
|
|
43207
43260
|
throw new Error(response.error);
|
|
43208
43261
|
}
|
|
43209
|
-
for (var
|
|
43210
|
-
kb.remove(ds[
|
|
43262
|
+
for (var _i9 = 0; _i9 < ds.length; _i9++) {
|
|
43263
|
+
kb.remove(ds[_i9]);
|
|
43211
43264
|
}
|
|
43212
|
-
for (var
|
|
43213
|
-
kb.add(is[
|
|
43265
|
+
for (var _i10 = 0; _i10 < is.length; _i10++) {
|
|
43266
|
+
kb.add(is[_i10].subject, is[_i10].predicate, is[_i10].object, doc);
|
|
43214
43267
|
}
|
|
43215
43268
|
callbackFunction(doc.value, response.ok, response.responseText, response);
|
|
43216
43269
|
}).catch(function (err) {
|
|
@@ -43240,8 +43293,8 @@ var UpdateManager = /*#__PURE__*/function () {
|
|
|
43240
43293
|
for (var i = 0; i < ds.length; i++) {
|
|
43241
43294
|
_utils_js__WEBPACK_IMPORTED_MODULE_12__.RDFArrayRemove(newSts, ds[i]);
|
|
43242
43295
|
}
|
|
43243
|
-
for (var
|
|
43244
|
-
newSts.push(is[
|
|
43296
|
+
for (var _i11 = 0; _i11 < is.length; _i11++) {
|
|
43297
|
+
newSts.push(is[_i11]);
|
|
43245
43298
|
}
|
|
43246
43299
|
// serialize to the appropriate format
|
|
43247
43300
|
var dot = doc.value.lastIndexOf('.');
|
|
@@ -43257,11 +43310,11 @@ var UpdateManager = /*#__PURE__*/function () {
|
|
|
43257
43310
|
options.contentType = contentType;
|
|
43258
43311
|
kb.fetcher.webOperation('PUT', doc.value, options).then(function (response) {
|
|
43259
43312
|
if (!response.ok) return callbackFunction(doc.value, false, response.error);
|
|
43260
|
-
for (var
|
|
43261
|
-
kb.remove(ds[
|
|
43313
|
+
for (var _i12 = 0; _i12 < ds.length; _i12++) {
|
|
43314
|
+
kb.remove(ds[_i12]);
|
|
43262
43315
|
}
|
|
43263
|
-
for (var
|
|
43264
|
-
kb.add(is[
|
|
43316
|
+
for (var _i13 = 0; _i13 < is.length; _i13++) {
|
|
43317
|
+
kb.add(is[_i13].subject, is[_i13].predicate, is[_i13].object, doc);
|
|
43265
43318
|
}
|
|
43266
43319
|
callbackFunction(doc.value, true, ''); // success!
|
|
43267
43320
|
});
|
|
@@ -43309,11 +43362,11 @@ var UpdateManager = /*#__PURE__*/function () {
|
|
|
43309
43362
|
}, {
|
|
43310
43363
|
key: "put",
|
|
43311
43364
|
value: function put(doc, data, contentType, callback) {
|
|
43312
|
-
var
|
|
43365
|
+
var _this5 = this;
|
|
43313
43366
|
var kb = this.store;
|
|
43314
43367
|
var documentString;
|
|
43315
43368
|
return Promise.resolve().then(function () {
|
|
43316
|
-
documentString =
|
|
43369
|
+
documentString = _this5.serialize(doc.value, data, contentType);
|
|
43317
43370
|
return kb.fetcher.webOperation('PUT', doc.value, {
|
|
43318
43371
|
contentType: contentType,
|
|
43319
43372
|
body: documentString
|
|
@@ -48102,7 +48155,6 @@ function findAgent(uri, kb) {
|
|
|
48102
48155
|
obj: (0, _rdflib.sym)(uri.slice(0, -1))
|
|
48103
48156
|
}; // Fix a URI where the drag and drop system has added a spurious slash
|
|
48104
48157
|
}
|
|
48105
|
-
|
|
48106
48158
|
if (ns.vcard('WebID').uri in types) return {
|
|
48107
48159
|
pred: 'agent',
|
|
48108
48160
|
obj: obj
|
|
@@ -48113,7 +48165,6 @@ function findAgent(uri, kb) {
|
|
|
48113
48165
|
obj: obj
|
|
48114
48166
|
}; // @@ note vcard membership not RDFs
|
|
48115
48167
|
}
|
|
48116
|
-
|
|
48117
48168
|
if (obj.sameTerm(ns.foaf('Agent')) || obj.sameTerm(ns.acl('AuthenticatedAgent')) ||
|
|
48118
48169
|
// AuthenticatedAgent
|
|
48119
48170
|
obj.sameTerm(ns.rdf('Resource')) || obj.sameTerm(ns.owl('Thing'))) {
|
|
@@ -48503,7 +48554,6 @@ function readACL(doc, aclDoc) {
|
|
|
48503
48554
|
});
|
|
48504
48555
|
});
|
|
48505
48556
|
});
|
|
48506
|
-
|
|
48507
48557
|
return ac;
|
|
48508
48558
|
function getDefaultsFallback(kb, ns) {
|
|
48509
48559
|
return kb.each(undefined, ns.acl('default'), doc).concat(kb.each(undefined, ns.acl('defaultForNew'), doc));
|
|
@@ -48841,7 +48891,6 @@ function getACLorDefault(doc, callbackFunction) {
|
|
|
48841
48891
|
if (!defaults.length) {
|
|
48842
48892
|
return tryParent(uri); // Keep searching
|
|
48843
48893
|
}
|
|
48844
|
-
|
|
48845
48894
|
var defaultHolder = kb.sym(uri);
|
|
48846
48895
|
return callbackFunction(true, false, doc, aclDoc, defaultHolder, defaultACLDoc);
|
|
48847
48896
|
});
|
|
@@ -49839,7 +49888,7 @@ var ChatChannel = exports.ChatChannel = /*#__PURE__*/function () {
|
|
|
49839
49888
|
*/
|
|
49840
49889
|
(0, _createClass2["default"])(ChatChannel, [{
|
|
49841
49890
|
key: "createMessage",
|
|
49842
|
-
value: function () {
|
|
49891
|
+
value: (function () {
|
|
49843
49892
|
var _createMessage = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(text) {
|
|
49844
49893
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
49845
49894
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -49860,9 +49909,10 @@ var ChatChannel = exports.ChatChannel = /*#__PURE__*/function () {
|
|
|
49860
49909
|
as a replacement for an existing one.
|
|
49861
49910
|
The old one iis left, and the two are linked
|
|
49862
49911
|
*/
|
|
49912
|
+
)
|
|
49863
49913
|
}, {
|
|
49864
49914
|
key: "updateMessage",
|
|
49865
|
-
value: function () {
|
|
49915
|
+
value: (function () {
|
|
49866
49916
|
var _updateMessage = (0, _asyncToGenerator2["default"])(function (text) {
|
|
49867
49917
|
var _this = this;
|
|
49868
49918
|
var oldMsg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
@@ -49960,9 +50010,10 @@ var ChatChannel = exports.ChatChannel = /*#__PURE__*/function () {
|
|
|
49960
50010
|
* Wee add a new version of the message,m witha deletion flag (deletion date)
|
|
49961
50011
|
* so that the deletion can be revoked by adding another non-deleted update
|
|
49962
50012
|
*/
|
|
50013
|
+
)
|
|
49963
50014
|
}, {
|
|
49964
50015
|
key: "deleteMessage",
|
|
49965
|
-
value: function () {
|
|
50016
|
+
value: (function () {
|
|
49966
50017
|
var _deleteMessage = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(message) {
|
|
49967
50018
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
49968
50019
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -49978,7 +50029,7 @@ var ChatChannel = exports.ChatChannel = /*#__PURE__*/function () {
|
|
|
49978
50029
|
return _deleteMessage.apply(this, arguments);
|
|
49979
50030
|
}
|
|
49980
50031
|
return deleteMessage;
|
|
49981
|
-
}()
|
|
50032
|
+
}())
|
|
49982
50033
|
}]);
|
|
49983
50034
|
return ChatChannel;
|
|
49984
50035
|
}(); // class ChatChannel
|
|
@@ -50683,7 +50734,6 @@ function _infiniteMessageArea() {
|
|
|
50683
50734
|
if (freeze) {
|
|
50684
50735
|
div.scrollTop = scrollTop; // while adding below keep same things in view
|
|
50685
50736
|
}
|
|
50686
|
-
|
|
50687
50737
|
if (fixScroll) fixScroll();
|
|
50688
50738
|
if (!done) {
|
|
50689
50739
|
_context10.next = 31;
|
|
@@ -50964,7 +51014,6 @@ function _infiniteMessageArea() {
|
|
|
50964
51014
|
} else {
|
|
50965
51015
|
messageTable.appendChild(tr); // not newestFirst
|
|
50966
51016
|
}
|
|
50967
|
-
|
|
50968
51017
|
messageTable.inputRow = tr;
|
|
50969
51018
|
}
|
|
50970
51019
|
|
|
@@ -51004,7 +51053,6 @@ function _infiniteMessageArea() {
|
|
|
51004
51053
|
messageTable.appendChild(scrollBackbuttonTR); // newestFirst
|
|
51005
51054
|
}
|
|
51006
51055
|
}
|
|
51007
|
-
|
|
51008
51056
|
var sts = _solidLogic.store.statementsMatching(null, ns.wf('message'), null, chatDocument);
|
|
51009
51057
|
if (!live && sts.length === 0) {
|
|
51010
51058
|
// not todays
|
|
@@ -51142,7 +51190,6 @@ function _infiniteMessageArea() {
|
|
|
51142
51190
|
if ((0, _chatLogic.isDeleted)(latest) && !options.showDeletedMessages) {
|
|
51143
51191
|
return; // ignore deleted messaged -- @@ could also leave a placeholder
|
|
51144
51192
|
}
|
|
51145
|
-
|
|
51146
51193
|
insertMessageIntoTable(channelObject, messageTable, message, messageTable.fresh, options, userContext); // fresh from elsewhere
|
|
51147
51194
|
};
|
|
51148
51195
|
syncMessages = function _syncMessages(about, messageTable) {
|
|
@@ -51203,7 +51250,6 @@ function _infiniteMessageArea() {
|
|
|
51203
51250
|
/* Add the live message block with entry field for today
|
|
51204
51251
|
*/
|
|
51205
51252
|
// Body of main function
|
|
51206
|
-
|
|
51207
51253
|
options = options || {};
|
|
51208
51254
|
options.authorDateOnLeft = false; // @@ make a user optiosn
|
|
51209
51255
|
newestFirst = options.newestFirst === '1' || options.newestFirst === true; // hack for now
|
|
@@ -51527,9 +51573,9 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
51527
51573
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
51528
51574
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
51529
51575
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } /** UI code for individual messages: display them, edit them
|
|
51530
|
-
|
|
51531
|
-
|
|
51532
|
-
|
|
51576
|
+
*
|
|
51577
|
+
* @packageDocumentation
|
|
51578
|
+
*/ /* global $rdf */
|
|
51533
51579
|
var dom = window.document;
|
|
51534
51580
|
var messageBodyStyle = style.messageBodyStyle;
|
|
51535
51581
|
var label = utils.label;
|
|
@@ -51565,7 +51611,6 @@ var anchor = function anchor(text, term) {
|
|
|
51565
51611
|
a.addEventListener('click', widgets.openHrefInOutlineMode, true);
|
|
51566
51612
|
a.setAttribute('style', 'color: #3B5998; text-decoration: none; '); // font-weight: bold
|
|
51567
51613
|
}
|
|
51568
|
-
|
|
51569
51614
|
a.textContent = text;
|
|
51570
51615
|
return a;
|
|
51571
51616
|
};
|
|
@@ -51822,7 +51867,6 @@ function renderMessageEditor(channelObject, messageTable, userContext, options,
|
|
|
51822
51867
|
oldRow.style.backgroundColor = '#fee';
|
|
51823
51868
|
oldRow.style.visibility = 'hidden'; // @@ FIX THIS AND REMOVE FROM DOM INSTEAD
|
|
51824
51869
|
}
|
|
51825
|
-
|
|
51826
51870
|
messageEditor.parentNode.removeChild(messageEditor); // no longer need editor
|
|
51827
51871
|
} else {
|
|
51828
51872
|
if (fromMainField) {
|
|
@@ -51836,7 +51880,6 @@ function renderMessageEditor(channelObject, messageTable, userContext, options,
|
|
|
51836
51880
|
}
|
|
51837
51881
|
// await channelObject.div.refresh() // Add new day if nec @@ add back
|
|
51838
51882
|
};
|
|
51839
|
-
|
|
51840
51883
|
// const me = authn.currentUser() // Must be logged on or wuld have got login button
|
|
51841
51884
|
if (fromMainField) {
|
|
51842
51885
|
field.setAttribute('style', messageBodyStyle + 'color: #bbb;'); // pendingedit
|
|
@@ -52053,7 +52096,6 @@ function renderMessageEditor(channelObject, messageTable, userContext, options,
|
|
|
52053
52096
|
sortDate = '9999-01-01T00:00:00Z'; // ISO format for field sort
|
|
52054
52097
|
// text = ''
|
|
52055
52098
|
}
|
|
52056
|
-
|
|
52057
52099
|
var messageEditor = dom.createElement('tr');
|
|
52058
52100
|
var lhs = dom.createElement('td');
|
|
52059
52101
|
var middle = dom.createElement('td');
|
|
@@ -52130,6 +52172,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
52130
52172
|
// import * as pad from '../pad'
|
|
52131
52173
|
// pull in first avoid cross-refs
|
|
52132
52174
|
// import * as style from '../style'
|
|
52175
|
+
|
|
52133
52176
|
var dom = window.document;
|
|
52134
52177
|
|
|
52135
52178
|
// THE UNUSED ICONS are here as reminders for possible future functionality
|
|
@@ -52633,7 +52676,6 @@ function newThingUI(createContext, dataBrowserContext, thePanes) {
|
|
|
52633
52676
|
iconArray[i].setAttribute('style', st); // eg 'background-color: #ccc;'
|
|
52634
52677
|
}
|
|
52635
52678
|
}
|
|
52636
|
-
|
|
52637
52679
|
function selectTool(icon) {
|
|
52638
52680
|
styleTheIcons('display: none;'); // 'background-color: #ccc;'
|
|
52639
52681
|
icon.setAttribute('style', iconStyle + 'background-color: yellow;');
|
|
@@ -52688,7 +52730,6 @@ function newThingUI(createContext, dataBrowserContext, thePanes) {
|
|
|
52688
52730
|
// selectUI.parentNode.removeChild(selectUI) // Clean up
|
|
52689
52731
|
// selectUIParent.removeChild(selectUI) // Clean up
|
|
52690
52732
|
}
|
|
52691
|
-
|
|
52692
52733
|
selectNewTool(); // toggle star to plain and menu vanish again
|
|
52693
52734
|
})["catch"](function (err) {
|
|
52694
52735
|
complain(err);
|
|
@@ -53998,29 +54039,29 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
53998
54039
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
53999
54040
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
54000
54041
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } /* eslint-disable camelcase */ /**
|
|
54001
|
-
|
|
54002
|
-
|
|
54003
|
-
|
|
54004
|
-
|
|
54005
|
-
|
|
54006
|
-
|
|
54007
|
-
|
|
54008
|
-
|
|
54009
|
-
|
|
54010
|
-
|
|
54011
|
-
|
|
54012
|
-
|
|
54013
|
-
|
|
54014
|
-
|
|
54015
|
-
|
|
54016
|
-
|
|
54017
|
-
|
|
54018
|
-
|
|
54019
|
-
|
|
54020
|
-
|
|
54021
|
-
|
|
54022
|
-
|
|
54023
|
-
|
|
54042
|
+
* Signing in, signing up, profile and preferences reloading
|
|
54043
|
+
* Type index management
|
|
54044
|
+
*
|
|
54045
|
+
* Many functions in this module take a context object which
|
|
54046
|
+
* holds various RDF symbols, add to it, and return a promise of it.
|
|
54047
|
+
*
|
|
54048
|
+
* * `me` RDF symbol for the user's WebID
|
|
54049
|
+
* * `publicProfile` The user's public profile, iff loaded
|
|
54050
|
+
* * `preferencesFile` The user's personal preference file, iff loaded
|
|
54051
|
+
* * `index.public` The user's public type index file
|
|
54052
|
+
* * `index.private` The user's private type index file
|
|
54053
|
+
*
|
|
54054
|
+
* Not RDF symbols:
|
|
54055
|
+
* * `noun` A string in english for the type of thing -- like "address book"
|
|
54056
|
+
* * `instance` An array of nodes which are existing instances
|
|
54057
|
+
* * `containers` An array of nodes of containers of instances
|
|
54058
|
+
* * `div` A DOM element where UI can be displayed
|
|
54059
|
+
* * `statusArea` A DOM element (opt) progress stuff can be displayed, or error messages
|
|
54060
|
+
* *
|
|
54061
|
+
* * Vocabulary: "load" loads a file if it exists;
|
|
54062
|
+
* * 'Ensure" CREATES the file if it does not exist (if it can) and then loads it.
|
|
54063
|
+
* @packageDocumentation
|
|
54064
|
+
*/ // eslint-disable-next-line camelcase
|
|
54024
54065
|
var store = _solidLogic.solidLogicSingleton.store;
|
|
54025
54066
|
var _solidLogicSingleton$ = _solidLogic.solidLogicSingleton.profile,
|
|
54026
54067
|
loadPreferences = _solidLogicSingleton$.loadPreferences,
|
|
@@ -54058,7 +54099,6 @@ function ensureLoggedIn(context) {
|
|
|
54058
54099
|
_solidLogic.authn.saveUser(webIdUri, context);
|
|
54059
54100
|
resolve(context); // always pass growing context
|
|
54060
54101
|
});
|
|
54061
|
-
|
|
54062
54102
|
context.div.appendChild(box);
|
|
54063
54103
|
});
|
|
54064
54104
|
});
|
|
@@ -54389,6 +54429,15 @@ function renderScopeHeadingRow(context, store, scope) {
|
|
|
54389
54429
|
function registrationList(_x9, _x10) {
|
|
54390
54430
|
return _registrationList.apply(this, arguments);
|
|
54391
54431
|
} // registrationList
|
|
54432
|
+
/**
|
|
54433
|
+
* Bootstrapping identity
|
|
54434
|
+
* (Called by `loginStatusBox()`)
|
|
54435
|
+
*
|
|
54436
|
+
* @param dom
|
|
54437
|
+
* @param setUserCallback
|
|
54438
|
+
*
|
|
54439
|
+
* @returns
|
|
54440
|
+
*/
|
|
54392
54441
|
function _registrationList() {
|
|
54393
54442
|
_registrationList = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(context, options) {
|
|
54394
54443
|
var dom, div, box, scopes, table, tbody, _iterator2, _step2, scope, headingRow, items, _iterator3, _step3, _loop;
|
|
@@ -54520,23 +54569,10 @@ function _registrationList() {
|
|
|
54520
54569
|
}));
|
|
54521
54570
|
return _registrationList.apply(this, arguments);
|
|
54522
54571
|
}
|
|
54523
|
-
function getDefaultSignInButtonStyle() {
|
|
54524
|
-
return 'padding: 1em; border-radius:0.5em; font-size: 100%;';
|
|
54525
|
-
}
|
|
54526
|
-
|
|
54527
|
-
/**
|
|
54528
|
-
* Bootstrapping identity
|
|
54529
|
-
* (Called by `loginStatusBox()`)
|
|
54530
|
-
*
|
|
54531
|
-
* @param dom
|
|
54532
|
-
* @param setUserCallback
|
|
54533
|
-
*
|
|
54534
|
-
* @returns
|
|
54535
|
-
*/
|
|
54536
54572
|
function signInOrSignUpBox(dom, setUserCallback) {
|
|
54537
54573
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
54538
54574
|
options = options || {};
|
|
54539
|
-
var signInButtonStyle = options.buttonStyle ||
|
|
54575
|
+
var signInButtonStyle = options.buttonStyle || style.signInAndUpButtonStyle;
|
|
54540
54576
|
var box = dom.createElement('div');
|
|
54541
54577
|
var magicClassName = 'SolidSignInOrSignUpBox';
|
|
54542
54578
|
debug.log('widgets.signInOrSignUpBox');
|
|
@@ -54549,7 +54585,7 @@ function signInOrSignUpBox(dom, setUserCallback) {
|
|
|
54549
54585
|
box.appendChild(signInPopUpButton);
|
|
54550
54586
|
signInPopUpButton.setAttribute('type', 'button');
|
|
54551
54587
|
signInPopUpButton.setAttribute('value', 'Log in');
|
|
54552
|
-
signInPopUpButton.setAttribute('style', "".concat(signInButtonStyle
|
|
54588
|
+
signInPopUpButton.setAttribute('style', "".concat(signInButtonStyle).concat(style.headerBannerLoginInput) + style.signUpBackground);
|
|
54553
54589
|
_solidLogic.authSession.onLogin(function () {
|
|
54554
54590
|
var me = _solidLogic.authn.currentUser();
|
|
54555
54591
|
// const sessionInfo = authSession.info
|
|
@@ -54590,7 +54626,7 @@ function signInOrSignUpBox(dom, setUserCallback) {
|
|
|
54590
54626
|
box.appendChild(signupButton);
|
|
54591
54627
|
signupButton.setAttribute('type', 'button');
|
|
54592
54628
|
signupButton.setAttribute('value', 'Sign Up for Solid');
|
|
54593
|
-
signupButton.setAttribute('style', "".concat(signInButtonStyle
|
|
54629
|
+
signupButton.setAttribute('style', "".concat(signInButtonStyle).concat(style.headerBannerLoginInput) + style.signInBackground);
|
|
54594
54630
|
signupButton.addEventListener('click', function (_event) {
|
|
54595
54631
|
var signupMgr = new _signup.Signup();
|
|
54596
54632
|
signupMgr.signup().then(function (uri) {
|
|
@@ -54758,7 +54794,7 @@ function loginStatusBox(dom) {
|
|
|
54758
54794
|
});
|
|
54759
54795
|
}
|
|
54760
54796
|
function logoutButton(me, options) {
|
|
54761
|
-
var signInButtonStyle = options.buttonStyle ||
|
|
54797
|
+
var signInButtonStyle = options.buttonStyle || style.signInAndUpButtonStyle;
|
|
54762
54798
|
var logoutLabel = 'WebID logout';
|
|
54763
54799
|
if (me) {
|
|
54764
54800
|
var nick = _solidLogic.solidLogicSingleton.store.any(me, ns.foaf('nick')) || _solidLogic.solidLogicSingleton.store.any(me, ns.foaf('name'));
|
|
@@ -54770,7 +54806,7 @@ function loginStatusBox(dom) {
|
|
|
54770
54806
|
// signOutButton.className = 'WebIDCancelButton'
|
|
54771
54807
|
signOutButton.setAttribute('type', 'button');
|
|
54772
54808
|
signOutButton.setAttribute('value', logoutLabel);
|
|
54773
|
-
signOutButton.setAttribute('style', "".concat(signInButtonStyle
|
|
54809
|
+
signOutButton.setAttribute('style', "".concat(signInButtonStyle));
|
|
54774
54810
|
signOutButton.addEventListener('click', logoutButtonHandler, false);
|
|
54775
54811
|
return signOutButton;
|
|
54776
54812
|
}
|
|
@@ -55327,10 +55363,8 @@ function matrixForQuery(dom, query, vx, vy, vvalue, options, whenDone) {
|
|
|
55327
55363
|
return matrix.insertBefore(tr, ele); // return the tr
|
|
55328
55364
|
}
|
|
55329
55365
|
}
|
|
55330
|
-
|
|
55331
55366
|
return matrix.appendChild(tr); // return the tr
|
|
55332
55367
|
};
|
|
55333
|
-
|
|
55334
55368
|
var columnNumberFor = function columnNumberFor(x1) {
|
|
55335
55369
|
var xNT = x1.toNT(); // xNT is a NT string
|
|
55336
55370
|
var col = null;
|
|
@@ -55507,21 +55541,21 @@ var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime
|
|
|
55507
55541
|
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
|
|
55508
55542
|
var debug = _interopRequireWildcard(__webpack_require__(/*! ../debug */ "./node_modules/solid-ui/lib/debug.js"));
|
|
55509
55543
|
var _iconBase = __webpack_require__(/*! ../iconBase */ "./node_modules/solid-ui/lib/iconBase.js");
|
|
55544
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./node_modules/solid-ui/lib/style.js"));
|
|
55510
55545
|
var widgets = _interopRequireWildcard(__webpack_require__(/*! ../widgets */ "./node_modules/solid-ui/lib/widgets/index.js"));
|
|
55511
55546
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
55512
55547
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
55513
|
-
/// /////////////////////////////////////////////
|
|
55514
55548
|
//
|
|
55515
55549
|
// Media input widget
|
|
55516
55550
|
//
|
|
55517
55551
|
//
|
|
55518
55552
|
// Workflow:
|
|
55519
|
-
// The HTML5 functionality (on
|
|
55520
|
-
// a realtime camera capture
|
|
55553
|
+
// The HTML5 functionality (on mobile) is to prompt for either
|
|
55554
|
+
// a realtime camera capture, OR a selection from images already on the device
|
|
55521
55555
|
// (eg camera roll).
|
|
55522
55556
|
//
|
|
55523
|
-
// The solid alternative is to either take a
|
|
55524
|
-
// or access
|
|
55557
|
+
// The solid alternative is to either take a photo
|
|
55558
|
+
// or access camera roll (etc) OR to access solid cloud storage of favorite photo albums.
|
|
55525
55559
|
// (Especially latest taken ones)
|
|
55526
55560
|
//
|
|
55527
55561
|
|
|
@@ -55530,10 +55564,6 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
55530
55564
|
var cameraIcon = _iconBase.icons.iconBase + 'noun_Camera_1618446_000000.svg'; // Get it from github
|
|
55531
55565
|
var retakeIcon = _iconBase.icons.iconBase + 'noun_479395.svg'; // Get it from github
|
|
55532
55566
|
|
|
55533
|
-
var canvasWidth = '640';
|
|
55534
|
-
var canvasHeight = '480';
|
|
55535
|
-
var controlStyle = "border-radius: 0.5em; margin: 0.8em; width: ".concat(canvasWidth, "; height:").concat(canvasHeight, ";");
|
|
55536
|
-
// const controlStyle = 'border-radius: 0.5em; margin: 0.8em; width: 320; height:240;'
|
|
55537
55567
|
var contentType = 'image/png';
|
|
55538
55568
|
|
|
55539
55569
|
/** A control to capture a picture using camera
|
|
@@ -55578,7 +55608,7 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
|
|
|
55578
55608
|
player = main.appendChild(dom.createElement('video'));
|
|
55579
55609
|
player.setAttribute('controls', '1');
|
|
55580
55610
|
player.setAttribute('autoplay', '1');
|
|
55581
|
-
player.setAttribute('style', controlStyle);
|
|
55611
|
+
player.setAttribute('style', style.controlStyle);
|
|
55582
55612
|
if (!navigator.mediaDevices) {
|
|
55583
55613
|
throw new Error('navigator.mediaDevices not available');
|
|
55584
55614
|
}
|
|
@@ -55596,13 +55626,12 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
|
|
|
55596
55626
|
main.removeChild(canvas);
|
|
55597
55627
|
displayPlayer(); // Make new one as old one is stuck black
|
|
55598
55628
|
}
|
|
55599
|
-
|
|
55600
55629
|
function grabCanvas() {
|
|
55601
55630
|
// Draw the video frame to the canvas.
|
|
55602
55631
|
canvas = dom.createElement('canvas');
|
|
55603
|
-
canvas.setAttribute('width', canvasWidth);
|
|
55604
|
-
canvas.setAttribute('height', canvasHeight);
|
|
55605
|
-
canvas.setAttribute('style', controlStyle);
|
|
55632
|
+
canvas.setAttribute('width', style.canvasWidth);
|
|
55633
|
+
canvas.setAttribute('height', style.canvasHeight);
|
|
55634
|
+
canvas.setAttribute('style', style.controlStyle);
|
|
55606
55635
|
main.appendChild(canvas);
|
|
55607
55636
|
var context = canvas.getContext('2d');
|
|
55608
55637
|
context.drawImage(player, 0, 0, canvas.width, canvas.height);
|
|
@@ -55616,13 +55645,11 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
|
|
|
55616
55645
|
// alert(msg)
|
|
55617
55646
|
}, contentType); // toBlob
|
|
55618
55647
|
}
|
|
55619
|
-
|
|
55620
55648
|
function reviewImage() {
|
|
55621
55649
|
sendButton.style.visibility = 'visible';
|
|
55622
55650
|
retakeButton.style.visibility = 'visible';
|
|
55623
55651
|
shutterButton.style.visibility = 'collapse'; // Hide for now
|
|
55624
55652
|
}
|
|
55625
|
-
|
|
55626
55653
|
function stopVideo() {
|
|
55627
55654
|
if (player && player.srcObject) {
|
|
55628
55655
|
player.srcObject.getVideoTracks().forEach(function (track) {
|
|
@@ -55659,9 +55686,9 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
|
|
|
55659
55686
|
* @param {IndexedForumla} store - The quadstore to store data in
|
|
55660
55687
|
* @param {fuunction} getImageDoc - returns NN of the image file to be created
|
|
55661
55688
|
* @param {function<Node>} doneCallback - called with the image taken
|
|
55662
|
-
* @returns {DomElement} - A div element with the
|
|
55689
|
+
* @returns {DomElement} - A div element with the button in it
|
|
55663
55690
|
*
|
|
55664
|
-
* This
|
|
55691
|
+
* This expands the button to a large control when it is pressed
|
|
55665
55692
|
*/
|
|
55666
55693
|
|
|
55667
55694
|
function cameraButton(dom, store, getImageDoc, doneCallback) {
|
|
@@ -55760,7 +55787,6 @@ function messageArea(dom, kb, subject, messageStore, options) {
|
|
|
55760
55787
|
a.addEventListener('click', UI.widgets.openHrefInOutlineMode, true);
|
|
55761
55788
|
a.setAttribute('style', 'color: #3B5998; text-decoration: none; '); // font-weight: bold
|
|
55762
55789
|
}
|
|
55763
|
-
|
|
55764
55790
|
a.textContent = text;
|
|
55765
55791
|
return a;
|
|
55766
55792
|
};
|
|
@@ -55929,7 +55955,6 @@ function messageArea(dom, kb, subject, messageStore, options) {
|
|
|
55929
55955
|
};
|
|
55930
55956
|
renderMessage(bindings, true); // fresh from elsewhere
|
|
55931
55957
|
};
|
|
55932
|
-
|
|
55933
55958
|
var renderMessage = function renderMessage(bindings, fresh) {
|
|
55934
55959
|
var creator = bindings['?creator'];
|
|
55935
55960
|
var message = bindings['?msg'];
|
|
@@ -56003,7 +56028,6 @@ function messageArea(dom, kb, subject, messageStore, options) {
|
|
|
56003
56028
|
} else {
|
|
56004
56029
|
messageTable.appendChild(tr); // not newestFirst
|
|
56005
56030
|
}
|
|
56006
|
-
|
|
56007
56031
|
var query;
|
|
56008
56032
|
// Do this with a live query to pull in messages from web
|
|
56009
56033
|
if (options.query) {
|
|
@@ -56023,7 +56047,6 @@ function messageArea(dom, kb, subject, messageStore, options) {
|
|
|
56023
56047
|
function doneQuery() {
|
|
56024
56048
|
messageTable.fresh = true; // any new are fresh and so will be greenish
|
|
56025
56049
|
}
|
|
56026
|
-
|
|
56027
56050
|
kb.query(query, renderMessage, undefined, doneQuery);
|
|
56028
56051
|
div.refresh = function () {
|
|
56029
56052
|
syncMessages(subject, messageTable);
|
|
@@ -56099,10 +56122,10 @@ Object.defineProperty(exports, "recordParticipation", ({
|
|
|
56099
56122
|
return _participation.recordParticipation;
|
|
56100
56123
|
}
|
|
56101
56124
|
}));
|
|
56102
|
-
Object.defineProperty(exports, "
|
|
56125
|
+
Object.defineProperty(exports, "renderParticipants", ({
|
|
56103
56126
|
enumerable: true,
|
|
56104
56127
|
get: function get() {
|
|
56105
|
-
return _participation.
|
|
56128
|
+
return _participation.renderParticipants;
|
|
56106
56129
|
}
|
|
56107
56130
|
}));
|
|
56108
56131
|
exports.xmlEncode = xmlEncode;
|
|
@@ -56120,14 +56143,15 @@ var _widgets = __webpack_require__(/*! ./widgets */ "./node_modules/solid-ui/lib
|
|
|
56120
56143
|
var _utils = __webpack_require__(/*! ./utils */ "./node_modules/solid-ui/lib/utils/index.js");
|
|
56121
56144
|
var _debug = __webpack_require__(/*! ./debug */ "./node_modules/solid-ui/lib/debug.js");
|
|
56122
56145
|
var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
|
|
56146
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ./style */ "./node_modules/solid-ui/lib/style.js"));
|
|
56123
56147
|
var _participation = __webpack_require__(/*! ./participation */ "./node_modules/solid-ui/lib/participation.js");
|
|
56124
56148
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
56125
56149
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
56126
56150
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
56127
56151
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** **************
|
|
56128
|
-
|
|
56129
|
-
|
|
56130
|
-
|
|
56152
|
+
* Notepad Widget
|
|
56153
|
+
*/ /** @module pad
|
|
56154
|
+
*/
|
|
56131
56155
|
var store = _solidLogic.solidLogicSingleton.store;
|
|
56132
56156
|
var PAD = (0, _rdflib.Namespace)('http://www.w3.org/ns/pim/pad#');
|
|
56133
56157
|
/**
|
|
@@ -56187,7 +56211,7 @@ function lightColorHash(author) {
|
|
|
56187
56211
|
/** notepad
|
|
56188
56212
|
*
|
|
56189
56213
|
* @param {HTMLDocument} dom - the web page of the browser
|
|
56190
|
-
* @param {NamedNode} padDoc - the document
|
|
56214
|
+
* @param {NamedNode} padDoc - the document in which the participation should be shown
|
|
56191
56215
|
* @param {NamedNode} subject - the thing in which participation is happening
|
|
56192
56216
|
* @param {NamedNode} me - person who is logged into the pod
|
|
56193
56217
|
* @param {notepadOptions} options - the options that can be passed in consist of statusArea, exists
|
|
@@ -56200,7 +56224,7 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
56200
56224
|
if (me && !me.uri) throw new Error('UI.pad.notepad: Invalid userid');
|
|
56201
56225
|
var updater = store.updater;
|
|
56202
56226
|
var PAD = (0, _rdflib.Namespace)('http://www.w3.org/ns/pim/pad#');
|
|
56203
|
-
table.setAttribute('style',
|
|
56227
|
+
table.setAttribute('style', style.notepadStyle);
|
|
56204
56228
|
var upstreamStatus = null;
|
|
56205
56229
|
var downstreamStatus = null;
|
|
56206
56230
|
if (options.statusArea) {
|
|
@@ -56209,10 +56233,10 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
56209
56233
|
upstreamStatus = tr.appendChild(dom.createElement('td'));
|
|
56210
56234
|
downstreamStatus = tr.appendChild(dom.createElement('td'));
|
|
56211
56235
|
if (upstreamStatus) {
|
|
56212
|
-
upstreamStatus.setAttribute('style',
|
|
56236
|
+
upstreamStatus.setAttribute('style', style.upstreamStatus);
|
|
56213
56237
|
}
|
|
56214
56238
|
if (downstreamStatus) {
|
|
56215
|
-
downstreamStatus.setAttribute('style',
|
|
56239
|
+
downstreamStatus.setAttribute('style', style.downstreamStatus);
|
|
56216
56240
|
}
|
|
56217
56241
|
}
|
|
56218
56242
|
/* @@ TODO want to look into this, it seems upstream should be a boolean and default to false ?
|
|
@@ -56235,9 +56259,9 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
56235
56259
|
var setPartStyle = function setPartStyle(part, colors, pending) {
|
|
56236
56260
|
var chunk = part.subject;
|
|
56237
56261
|
colors = colors || '';
|
|
56238
|
-
var baseStyle =
|
|
56239
|
-
var headingCore =
|
|
56240
|
-
var headingStyle =
|
|
56262
|
+
var baseStyle = style.baseStyle;
|
|
56263
|
+
var headingCore = style.headingCore;
|
|
56264
|
+
var headingStyle = style.headingStyle;
|
|
56241
56265
|
var author = kb.any(chunk, ns.dc('author'));
|
|
56242
56266
|
if (!colors && author) {
|
|
56243
56267
|
// Hash the user webid for now -- later allow user selection!
|
|
@@ -56249,9 +56273,9 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
56249
56273
|
// and when the indent is stored as a Number itself, not in an object.
|
|
56250
56274
|
var indent = kb.any(chunk, PAD('indent'));
|
|
56251
56275
|
indent = indent ? indent.value : 0;
|
|
56252
|
-
var
|
|
56276
|
+
var localStyle = indent >= 0 ? baseStyle + 'text-indent: ' + indent * 3 + 'em;' : headingCore + headingStyle[-1 - indent];
|
|
56253
56277
|
// ? baseStyle + 'padding-left: ' + (indent * 3) + 'em;'
|
|
56254
|
-
part.setAttribute('style',
|
|
56278
|
+
part.setAttribute('style', localStyle + colors);
|
|
56255
56279
|
};
|
|
56256
56280
|
var removePart = function removePart(part) {
|
|
56257
56281
|
var chunk = part.subject;
|
|
@@ -56330,29 +56354,6 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
56330
56354
|
}
|
|
56331
56355
|
});
|
|
56332
56356
|
};
|
|
56333
|
-
|
|
56334
|
-
// Use this sort of code to split the line when return pressed in the middle @@
|
|
56335
|
-
/*
|
|
56336
|
-
function doGetCaretPosition doGetCaretPosition (oField) {
|
|
56337
|
-
var iCaretPos = 0
|
|
56338
|
-
// IE Support
|
|
56339
|
-
if (document.selection) {
|
|
56340
|
-
// Set focus on the element to avoid IE bug
|
|
56341
|
-
oField.focus()
|
|
56342
|
-
// To get cursor position, get empty selection range
|
|
56343
|
-
var oSel = document.selection.createRange()
|
|
56344
|
-
// Move selection start to 0 position
|
|
56345
|
-
oSel.moveStart('character', -oField.value.length)
|
|
56346
|
-
// The caret position is selection length
|
|
56347
|
-
iCaretPos = oSel.text.length
|
|
56348
|
-
// Firefox suppor
|
|
56349
|
-
} else if (oField.selectionStart || oField.selectionStart === '0') {
|
|
56350
|
-
iCaretPos = oField.selectionStart
|
|
56351
|
-
}
|
|
56352
|
-
// Return results
|
|
56353
|
-
return (iCaretPos)
|
|
56354
|
-
}
|
|
56355
|
-
*/
|
|
56356
56357
|
var addListeners = function addListeners(part, chunk) {
|
|
56357
56358
|
part.addEventListener('keydown', function (event) {
|
|
56358
56359
|
if (!updater) {
|
|
@@ -56393,9 +56394,9 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
56393
56394
|
// contents need to be sent again
|
|
56394
56395
|
part.state = 4; // delete me
|
|
56395
56396
|
return;
|
|
56396
|
-
case 3: // being deleted
|
|
56397
|
+
case 3: // already being deleted
|
|
56397
56398
|
case 4:
|
|
56398
|
-
// already
|
|
56399
|
+
// already deleted state
|
|
56399
56400
|
return;
|
|
56400
56401
|
case undefined:
|
|
56401
56402
|
case 0:
|
|
@@ -56510,7 +56511,6 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
56510
56511
|
}
|
|
56511
56512
|
});
|
|
56512
56513
|
};
|
|
56513
|
-
|
|
56514
56514
|
part.addEventListener('input', function inputChangeListener(_event) {
|
|
56515
56515
|
// debug.log("input changed "+part.value);
|
|
56516
56516
|
setPartStyle(part, undefined, true); // grey out - not synced
|
|
@@ -56696,8 +56696,6 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
56696
56696
|
}
|
|
56697
56697
|
return;
|
|
56698
56698
|
}
|
|
56699
|
-
// var last = kb.the(undefined, PAD('previous'), subject)
|
|
56700
|
-
// var chunk = first // = kb.the(subject, PAD('next'));
|
|
56701
56699
|
var row;
|
|
56702
56700
|
|
|
56703
56701
|
// First see which of the logical chunks have existing physical manifestations
|
|
@@ -56759,7 +56757,7 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
56759
56757
|
(0, _debug.log)(' reloaded OK');
|
|
56760
56758
|
clearStatus();
|
|
56761
56759
|
if (!consistencyCheck()) {
|
|
56762
|
-
complain('
|
|
56760
|
+
complain('CONSISTENCY CHECK FAILED');
|
|
56763
56761
|
} else {
|
|
56764
56762
|
refreshTree(table);
|
|
56765
56763
|
}
|
|
@@ -56769,7 +56767,6 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
56769
56767
|
(0, _debug.log)(' Already reloading - stop');
|
|
56770
56768
|
return; // once only needed
|
|
56771
56769
|
}
|
|
56772
|
-
|
|
56773
56770
|
reloading = true;
|
|
56774
56771
|
var retryTimeout = 1000; // ms
|
|
56775
56772
|
var tryReload = function tryReload() {
|
|
@@ -56826,7 +56823,6 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
56826
56823
|
}
|
|
56827
56824
|
});
|
|
56828
56825
|
}
|
|
56829
|
-
|
|
56830
56826
|
return table;
|
|
56831
56827
|
}
|
|
56832
56828
|
|
|
@@ -56926,7 +56922,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
56926
56922
|
exports.manageParticipation = manageParticipation;
|
|
56927
56923
|
exports.participationObject = participationObject;
|
|
56928
56924
|
exports.recordParticipation = recordParticipation;
|
|
56929
|
-
exports.
|
|
56925
|
+
exports.renderParticipants = renderParticipants;
|
|
56930
56926
|
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js"));
|
|
56931
56927
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js"));
|
|
56932
56928
|
var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js"));
|
|
@@ -56942,6 +56938,8 @@ var ns = _interopRequireWildcard(__webpack_require__(/*! ./ns */ "./node_modules
|
|
|
56942
56938
|
var _widgets = __webpack_require__(/*! ./widgets */ "./node_modules/solid-ui/lib/widgets/index.js");
|
|
56943
56939
|
var _utils = __webpack_require__(/*! ./utils */ "./node_modules/solid-ui/lib/utils/index.js");
|
|
56944
56940
|
var _pad = __webpack_require__(/*! ./pad */ "./node_modules/solid-ui/lib/pad.js");
|
|
56941
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ./style */ "./node_modules/solid-ui/lib/style.js"));
|
|
56942
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ./styleConstants */ "./node_modules/solid-ui/lib/styleConstants.js"));
|
|
56945
56943
|
var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
|
|
56946
56944
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
56947
56945
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
@@ -56949,8 +56947,8 @@ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol
|
|
|
56949
56947
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
56950
56948
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
56951
56949
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
56952
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /* Manage a UI for the
|
|
56953
|
-
|
|
56950
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /* Manage a UI for the participation of a person in any thing
|
|
56951
|
+
*/ // import { currentUser } from './authn/authn'
|
|
56954
56952
|
var ParticipationTableElement = /*#__PURE__*/function (_HTMLTableElement) {
|
|
56955
56953
|
(0, _inherits2["default"])(ParticipationTableElement, _HTMLTableElement);
|
|
56956
56954
|
var _super = _createSuper(ParticipationTableElement);
|
|
@@ -56975,11 +56973,11 @@ var store = _solidLogic.solidLogicSingleton.store;
|
|
|
56975
56973
|
* @param {NamedNode} unused1/document - the document to render (this argument is no longer used, but left in for backwards compatibility)
|
|
56976
56974
|
* @param {NamedNode} subject - the thing in which the participation is happening
|
|
56977
56975
|
* @param {NamedNode} unused2/me - user that is logged into the pod (this argument is no longer used, but left in for backwards compatibility)
|
|
56978
|
-
* @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable these are used by the personTR button
|
|
56976
|
+
* @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable; these are used by the personTR button
|
|
56979
56977
|
*/
|
|
56980
|
-
function
|
|
56981
|
-
table.setAttribute('style',
|
|
56982
|
-
var
|
|
56978
|
+
function renderParticipants(dom, table, unused1, subject, unused2, options) {
|
|
56979
|
+
table.setAttribute('style', style.participantsStyle);
|
|
56980
|
+
var newRowForParticipation = function newRowForParticipation(parp) {
|
|
56983
56981
|
var person = store.any(parp, ns.wf('participant'));
|
|
56984
56982
|
var tr;
|
|
56985
56983
|
if (!person) {
|
|
@@ -56987,13 +56985,14 @@ function renderPartipants(dom, table, unused1, subject, unused2, options) {
|
|
|
56987
56985
|
tr.textContent = '???'; // Don't crash - invalid part'n entry
|
|
56988
56986
|
return tr;
|
|
56989
56987
|
}
|
|
56990
|
-
var bg = store.anyValue(parp, ns.ui('backgroundColor')) ||
|
|
56988
|
+
var bg = store.anyValue(parp, ns.ui('backgroundColor')) || _styleConstants["default"].participationDefaultBackground;
|
|
56991
56989
|
var block = dom.createElement('div');
|
|
56992
|
-
block.setAttribute('style',
|
|
56990
|
+
block.setAttribute('style', style.participantsBlock);
|
|
56991
|
+
block.style.backgroundColor = bg;
|
|
56993
56992
|
tr = (0, _widgets.personTR)(dom, null, person, options);
|
|
56994
56993
|
table.appendChild(tr);
|
|
56995
56994
|
var td = dom.createElement('td');
|
|
56996
|
-
td.setAttribute('style',
|
|
56995
|
+
td.setAttribute('style', style.personTableTD);
|
|
56997
56996
|
td.appendChild(block);
|
|
56998
56997
|
tr.insertBefore(td, tr.firstChild);
|
|
56999
56998
|
return tr;
|
|
@@ -57007,16 +57006,16 @@ function renderPartipants(dom, table, unused1, subject, unused2, options) {
|
|
|
57007
57006
|
var participations = parps.map(function (p) {
|
|
57008
57007
|
return p[1];
|
|
57009
57008
|
});
|
|
57010
|
-
(0, _utils.syncTableToArray)(table, participations,
|
|
57009
|
+
(0, _utils.syncTableToArray)(table, participations, newRowForParticipation);
|
|
57011
57010
|
};
|
|
57012
57011
|
table.refresh = syncTable;
|
|
57013
57012
|
syncTable();
|
|
57014
57013
|
return table;
|
|
57015
57014
|
}
|
|
57016
57015
|
|
|
57017
|
-
/** Record, or find old,
|
|
57016
|
+
/** Record, or find old, Participation object
|
|
57018
57017
|
*
|
|
57019
|
-
* A
|
|
57018
|
+
* A participation object is a place to record things specifically about
|
|
57020
57019
|
* subject and the user, such as preferences, start of membership, etc
|
|
57021
57020
|
* @param {NamedNode} subject - the thing in which the participation is happening
|
|
57022
57021
|
* @param {NamedNode} document - where to record the data
|
|
@@ -57051,20 +57050,19 @@ function participationObject(subject, padDoc, me) {
|
|
|
57051
57050
|
}
|
|
57052
57051
|
candidates.sort(); // Pick the earliest
|
|
57053
57052
|
// @@ Possibly, for extra credit, delete the others, if we have write access
|
|
57054
|
-
debug.warn('Multiple
|
|
57053
|
+
debug.warn('Multiple participation objects, picking earliest, in ' + padDoc);
|
|
57055
57054
|
resolve(candidates[0][1]);
|
|
57056
57055
|
// throw new Error('Multiple records of your participation')
|
|
57057
57056
|
}
|
|
57058
|
-
|
|
57059
57057
|
if (parps.length) {
|
|
57060
57058
|
// If I am not already recorded
|
|
57061
|
-
resolve(parps[0]); // returns the
|
|
57059
|
+
resolve(parps[0]); // returns the participation object
|
|
57062
57060
|
} else {
|
|
57063
57061
|
var _participation2 = (0, _widgets.newThing)(padDoc);
|
|
57064
57062
|
var ins = [(0, _rdflib.st)(subject, ns.wf('participation'), _participation2, padDoc), (0, _rdflib.st)(_participation2, ns.wf('participant'), me, padDoc), (0, _rdflib.st)(_participation2, ns.cal('dtstart'), new Date(), padDoc), (0, _rdflib.st)(_participation2, ns.ui('backgroundColor'), (0, _pad.lightColorHash)(me), padDoc)];
|
|
57065
57063
|
store.updater.update([], ins, function (uri, ok, errorMessage) {
|
|
57066
57064
|
if (!ok) {
|
|
57067
|
-
reject(new Error('Error recording your
|
|
57065
|
+
reject(new Error('Error recording your participation: ' + errorMessage));
|
|
57068
57066
|
} else {
|
|
57069
57067
|
resolve(_participation2);
|
|
57070
57068
|
}
|
|
@@ -57077,7 +57075,7 @@ function participationObject(subject, padDoc, me) {
|
|
|
57077
57075
|
/** Record my participation and display participants
|
|
57078
57076
|
*
|
|
57079
57077
|
* @param {NamedNode} subject - the thing in which participation is happening
|
|
57080
|
-
* @param {NamedNode} padDoc - the document into which the
|
|
57078
|
+
* @param {NamedNode} padDoc - the document into which the participation should be recorded
|
|
57081
57079
|
* @param {DOMNode} refreshable - a DOM element whose refresh() is to be called if the change works
|
|
57082
57080
|
*
|
|
57083
57081
|
*/
|
|
@@ -57093,24 +57091,22 @@ function recordParticipation(subject, padDoc, refreshable) {
|
|
|
57093
57091
|
}
|
|
57094
57092
|
if (parps.length) {
|
|
57095
57093
|
// If I am not already recorded
|
|
57096
|
-
return parps[0]; // returns the
|
|
57094
|
+
return parps[0]; // returns the participation object
|
|
57097
57095
|
} else {
|
|
57098
57096
|
if (!store.updater.editable(padDoc)) {
|
|
57099
|
-
debug.log('Not recording participation, as no write
|
|
57097
|
+
debug.log('Not recording participation, as no write access as ' + me + ' to ' + padDoc);
|
|
57100
57098
|
return null;
|
|
57101
57099
|
}
|
|
57102
57100
|
var participation = (0, _widgets.newThing)(padDoc);
|
|
57103
57101
|
var ins = [(0, _rdflib.st)(subject, ns.wf('participation'), participation, padDoc), (0, _rdflib.st)(participation, ns.wf('participant'), me, padDoc), (0, _rdflib.st)(participation, ns.cal('dtstart'), new Date(), padDoc), (0, _rdflib.st)(participation, ns.ui('backgroundColor'), (0, _pad.lightColorHash)(me), padDoc)];
|
|
57104
57102
|
store.updater.update([], ins, function (uri, ok, errorMessage) {
|
|
57105
57103
|
if (!ok) {
|
|
57106
|
-
throw new Error('Error recording your
|
|
57104
|
+
throw new Error('Error recording your participation: ' + errorMessage);
|
|
57107
57105
|
}
|
|
57108
57106
|
if (refreshable && refreshable.refresh) {
|
|
57109
57107
|
refreshable.refresh();
|
|
57110
57108
|
}
|
|
57111
|
-
// UI.pad.renderPartipants(dom, table, padDoc, subject, me, options)
|
|
57112
57109
|
});
|
|
57113
|
-
|
|
57114
57110
|
return participation;
|
|
57115
57111
|
}
|
|
57116
57112
|
}
|
|
@@ -57119,23 +57115,22 @@ function recordParticipation(subject, padDoc, refreshable) {
|
|
|
57119
57115
|
*
|
|
57120
57116
|
* @param {Document} dom - the web page loaded into the browser
|
|
57121
57117
|
* @param {HTMLDivElement} container - the container element where the participants should be displayed
|
|
57122
|
-
* @param {NamedNode} document - the document into which the
|
|
57118
|
+
* @param {NamedNode} document - the document into which the participation should be shown
|
|
57123
57119
|
* @param {NamedNode} subject - the thing in which participation is happening
|
|
57124
57120
|
* @param {NamedNode} me - the logged in user
|
|
57125
|
-
* @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable these are used by the personTR button
|
|
57121
|
+
* @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable; these are used by the personTR button
|
|
57126
57122
|
*
|
|
57127
57123
|
*/
|
|
57128
57124
|
function manageParticipation(dom, container, padDoc, subject, me, options) {
|
|
57129
57125
|
var table = dom.createElement('table');
|
|
57130
57126
|
container.appendChild(table);
|
|
57131
|
-
|
|
57127
|
+
renderParticipants(dom, table, padDoc, subject, me, options);
|
|
57132
57128
|
var _participation;
|
|
57133
57129
|
try {
|
|
57134
57130
|
_participation = recordParticipation(subject, padDoc, table);
|
|
57135
57131
|
} catch (e) {
|
|
57136
|
-
container.appendChild((0, _widgets.errorMessageBlock)(dom, 'Error recording your
|
|
57132
|
+
container.appendChild((0, _widgets.errorMessageBlock)(dom, 'Error recording your participation: ' + e)); // Clean up?
|
|
57137
57133
|
}
|
|
57138
|
-
|
|
57139
57134
|
return table;
|
|
57140
57135
|
}
|
|
57141
57136
|
//# sourceMappingURL=participation.js.map
|
|
@@ -57505,41 +57500,34 @@ Signup.prototype.signup = function signup(signupUrl) {
|
|
|
57505
57500
|
/*!********************************************!*\
|
|
57506
57501
|
!*** ./node_modules/solid-ui/lib/style.js ***!
|
|
57507
57502
|
\********************************************/
|
|
57508
|
-
/***/ ((module, exports) => {
|
|
57503
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
57509
57504
|
|
|
57510
57505
|
"use strict";
|
|
57511
57506
|
|
|
57512
57507
|
|
|
57508
|
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
57513
57509
|
Object.defineProperty(exports, "__esModule", ({
|
|
57514
57510
|
value: true
|
|
57515
57511
|
}));
|
|
57516
57512
|
exports.style = void 0;
|
|
57513
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ./styleConstants */ "./node_modules/solid-ui/lib/styleConstants.js"));
|
|
57517
57514
|
// Common readable consistent stylesheet
|
|
57518
57515
|
// to avoid using style sheets which are document-global
|
|
57519
57516
|
// and make programmable style toggling with selection, drag over, etc easier
|
|
57520
|
-
|
|
57521
57517
|
// These must all end with semicolon so they can be appended to.
|
|
57522
57518
|
|
|
57523
|
-
var formBorderColor = '#888888'; // Mid-grey
|
|
57524
|
-
var lowProfileLinkColor = '#3B5998'; // Grey-blue, e.g., for field labels linking to ontology
|
|
57525
|
-
var formFieldNameBoxWidth = '8em'; // The fixed amount to get form fields to line up
|
|
57526
|
-
// The latter we put in when switching awy from using tables. Getting allignment between
|
|
57527
|
-
// fields in different groups though is hard problem.
|
|
57528
|
-
|
|
57529
57519
|
var style = exports.style = {
|
|
57530
57520
|
// styleModule
|
|
57531
57521
|
|
|
57532
57522
|
checkboxStyle: 'color: black; font-size: 100%; padding-left: 0.5 em; padding-right: 0.5 em;',
|
|
57533
|
-
checkboxInputStyle: 'font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em',
|
|
57523
|
+
checkboxInputStyle: 'font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em;',
|
|
57534
57524
|
fieldLabelStyle: 'color: #3B5998; text-decoration: none;',
|
|
57535
|
-
|
|
57536
|
-
textInputStyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c;
|
|
57525
|
+
formSelectStyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;',
|
|
57526
|
+
textInputStyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;',
|
|
57537
57527
|
textInputStyleUneditable:
|
|
57538
57528
|
// Color difference only
|
|
57539
|
-
'background-color: white; padding: 0.5em; border: .05em solid white;
|
|
57540
|
-
|
|
57541
|
-
// Default text input size in characters roughly
|
|
57542
|
-
buttonStyle: 'background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;',
|
|
57529
|
+
'background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.4em;',
|
|
57530
|
+
buttonStyle: 'background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;',
|
|
57543
57531
|
// 'background-color: #eef;
|
|
57544
57532
|
commentStyle: 'padding: 0.7em; border: none; font-size: 100%; white-space: pre-wrap;',
|
|
57545
57533
|
iconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 1em;',
|
|
@@ -57547,20 +57535,18 @@ var style = exports.style = {
|
|
|
57547
57535
|
classIconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 0.2em; border: 0.1em solid green; padding: 0.2em; background-color: #efe;',
|
|
57548
57536
|
// combine with buttonStyle
|
|
57549
57537
|
confirmPopupStyle: 'padding: 0.7em; border-radius: 0.2em; border: 0.1em solid orange; background-color: white; box-shadow: 0.5em 0.9em #888;',
|
|
57550
|
-
tabBorderRadius: '0.2em',
|
|
57551
57538
|
messageBodyStyle: 'white-space: pre-wrap; width: 99%; font-size:100%; border: 0.07em solid #eee; border-radius:0.2em; padding: .3em 0.5em; margin: 0.1em;',
|
|
57552
57539
|
pendingeditModifier: 'color: #bbb;',
|
|
57553
|
-
highlightColor: '#7C4DFF',
|
|
57554
|
-
// Solid lavendar https://design.inrupt.com/atomic-core/?cat=Core
|
|
57555
|
-
|
|
57556
57540
|
// Contacts
|
|
57557
57541
|
personaBarStyle: 'width: 100%; height: 4em; background-color: #eee; vertical-align: middle;',
|
|
57558
57542
|
searchInputStyle: 'border: 0.1em solid #444; border-radius: 0.2em; width: 100%; font-size: 100%; padding: 0.1em 0.6em; margin 0.2em;',
|
|
57559
57543
|
autocompleteRowStyle: 'border: 0.2em solid straw;',
|
|
57560
57544
|
// Login buttons
|
|
57561
|
-
|
|
57545
|
+
signInAndUpButtonStyle: 'padding: 1em; border-radius:0.2em; font-size: 100%;',
|
|
57562
57546
|
// was 0.5em radius
|
|
57563
|
-
|
|
57547
|
+
headerBannerLoginInput: 'margin: 0.75em 0 0.75em 0.5em !important; padding: 0.5em !important;',
|
|
57548
|
+
signUpBackground: 'background-color: #eef;',
|
|
57549
|
+
signInBackground: 'background-color: #efe;',
|
|
57564
57550
|
// Forms
|
|
57565
57551
|
heading1Style: 'font-size: 180%; font-weight: bold; color: #888888; padding: 0.5em; margin: 0.7em 0.0m;',
|
|
57566
57552
|
// originally was brown; now grey
|
|
@@ -57571,87 +57557,104 @@ var style = exports.style = {
|
|
|
57571
57557
|
heading4Style: 'font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;',
|
|
57572
57558
|
// Lowest level used by default in small things
|
|
57573
57559
|
|
|
57574
|
-
formBorderColor: formBorderColor,
|
|
57575
|
-
// originally was brown; now grey
|
|
57576
|
-
formHeadingColor: '#888888',
|
|
57577
|
-
// originally was brown; now grey
|
|
57578
57560
|
formHeadingStyle: 'font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;',
|
|
57579
57561
|
// originally was brown; now grey
|
|
57580
57562
|
formTextInput: 'font-size: 100%; margin: 0.1em; padding: 0.1em;',
|
|
57581
57563
|
// originally used this
|
|
57582
|
-
formGroupStyle: ["padding-left: 0em; border: 0.0em solid ".concat(formBorderColor, "; border-radius: 0.2em;"), // weight 0
|
|
57583
|
-
"padding-left: 2em; border: 0.05em solid ".concat(formBorderColor, "; border-radius: 0.2em;"), "padding-left: 2em; border: 0.1em solid ".concat(formBorderColor, "; border-radius: 0.2em;"), "padding-left: 2em; border: 0.2em solid ".concat(formBorderColor, "; border-radius: 0.2em;") // @@ pink
|
|
57564
|
+
formGroupStyle: ["padding-left: 0em; border: 0.0em solid ".concat(_styleConstants["default"].formBorderColor, "; border-radius: 0.2em;"), // weight 0
|
|
57565
|
+
"padding-left: 2em; border: 0.05em solid ".concat(_styleConstants["default"].formBorderColor, "; border-radius: 0.2em;"), "padding-left: 2em; border: 0.1em solid ".concat(_styleConstants["default"].formBorderColor, "; border-radius: 0.2em;"), "padding-left: 2em; border: 0.2em solid ".concat(_styleConstants["default"].formBorderColor, "; border-radius: 0.2em;") // @@ pink
|
|
57584
57566
|
],
|
|
57585
|
-
formFieldLabelStyle: "
|
|
57586
|
-
|
|
57587
|
-
formFieldNameBoxStyle: "padding: 0.3em; vertical-align: middle; width:".concat(formFieldNameBoxWidth, ";"),
|
|
57588
|
-
textInputBackgroundColor: '#eef',
|
|
57589
|
-
textInputBackgroundColorUneditable: '#fff',
|
|
57590
|
-
textInputColor: '#000',
|
|
57591
|
-
textInputColorPending: '#888',
|
|
57567
|
+
formFieldLabelStyle: "color: ".concat(_styleConstants["default"].lowProfileLinkColor, "; text-decoration: none;"),
|
|
57568
|
+
formFieldNameBoxStyle: "padding: 0.3em; vertical-align: middle; width:".concat(_styleConstants["default"].formFieldNameBoxWidth, ";"),
|
|
57592
57569
|
multilineTextInputStyle: 'font-size:100%; white-space: pre-wrap; background-color: #eef;' + ' border: 0.07em solid gray; padding: 1em 0.5em; margin: 1em 1em;',
|
|
57593
57570
|
// Buttons
|
|
57594
57571
|
renderAsDivStyle: 'display: flex; align-items: center; justify-content: space-between; height: 2.5em; padding: 1em;',
|
|
57595
57572
|
imageDivStyle: 'width:2.5em; padding:0.5em; height: 2.5em;',
|
|
57596
57573
|
linkDivStyle: 'width:2em; padding:0.5em; height: 4em;',
|
|
57597
57574
|
// ACL
|
|
57598
|
-
aclControlBoxContainer: 'margin: 1em',
|
|
57599
|
-
aclControlBoxHeader: 'font-size: 120%; margin: 0 0 1rem',
|
|
57600
|
-
aclControlBoxStatus: 'display: none; margin: 1rem 0',
|
|
57601
|
-
aclControlBoxStatusRevealed: 'display: block',
|
|
57602
|
-
aclGroupContent: 'maxWidth: 650',
|
|
57603
|
-
accessGroupList: 'display: grid; grid-template-columns: 1fr; margin: 1em; width: 100
|
|
57604
|
-
accessGroupListItem: 'display: grid; grid-template-columns: 100px auto 30
|
|
57605
|
-
defaultsController: 'display: flex',
|
|
57606
|
-
defaultsControllerNotice: 'color: #888; flexGrow: 1; fontSize: 80
|
|
57607
|
-
bigButton: 'background-color: white; border: 0.1em solid #888; border-radius: 0.3em; max-width: 50%; padding-bottom: 1em; padding-top: 1em',
|
|
57608
|
-
group: 'color: #888',
|
|
57609
|
-
group1: 'color: green',
|
|
57610
|
-
group2: 'color: #cc0',
|
|
57611
|
-
group3: 'color: orange',
|
|
57612
|
-
group5: 'color: red',
|
|
57613
|
-
group9: 'color: blue',
|
|
57614
|
-
group13: 'color: purple',
|
|
57615
|
-
trustedAppAddApplicationsTable: 'background-color: #eee',
|
|
57616
|
-
trustedAppCancelButton: 'float: right',
|
|
57617
|
-
trustedAppControllerI: 'border-color: orange;
|
|
57618
|
-
temporaryStatusInit: 'background: green',
|
|
57619
|
-
temporaryStatusEnd: 'background: transparent; transition: background 5s linear',
|
|
57575
|
+
aclControlBoxContainer: 'margin: 1em;',
|
|
57576
|
+
aclControlBoxHeader: 'font-size: 120%; margin: 0 0 1rem;',
|
|
57577
|
+
aclControlBoxStatus: 'display: none; margin: 1rem 0;',
|
|
57578
|
+
aclControlBoxStatusRevealed: 'display: block;',
|
|
57579
|
+
aclGroupContent: 'maxWidth: 650;',
|
|
57580
|
+
accessGroupList: 'display: grid; grid-template-columns: 1fr; margin: 1em; width: 100%;',
|
|
57581
|
+
accessGroupListItem: 'display: grid; grid-template-columns: 100px auto 30%;',
|
|
57582
|
+
defaultsController: 'display: flex;',
|
|
57583
|
+
defaultsControllerNotice: 'color: #888; flexGrow: 1; fontSize: 80%;',
|
|
57584
|
+
bigButton: 'background-color: white; border: 0.1em solid #888; border-radius: 0.3em; max-width: 50%; padding-bottom: 1em; padding-top: 1em;',
|
|
57585
|
+
group: 'color: #888;',
|
|
57586
|
+
group1: 'color: green;',
|
|
57587
|
+
group2: 'color: #cc0;',
|
|
57588
|
+
group3: 'color: orange;',
|
|
57589
|
+
group5: 'color: red;',
|
|
57590
|
+
group9: 'color: blue;',
|
|
57591
|
+
group13: 'color: purple;',
|
|
57592
|
+
trustedAppAddApplicationsTable: 'background-color: #eee;',
|
|
57593
|
+
trustedAppCancelButton: 'float: right;',
|
|
57594
|
+
trustedAppControllerI: 'border-color: orange; border-radius: 1em; border-width: 0.1em;',
|
|
57595
|
+
temporaryStatusInit: 'background: green;',
|
|
57596
|
+
temporaryStatusEnd: 'background: transparent; transition: background 5s linear;',
|
|
57620
57597
|
// header
|
|
57621
|
-
headerUserMenuLink: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none',
|
|
57622
|
-
headerUserMenuLinkHover: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%)',
|
|
57623
|
-
headerUserMenuTrigger: 'background: none; border: 0; cursor: pointer; width: 60px; height: 60px',
|
|
57624
|
-
headerUserMenuTriggerImg: 'border-radius: 50%; height: 56px; width: 28px !important',
|
|
57625
|
-
headerUserMenuButton: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100
|
|
57626
|
-
headerUserMenuButtonHover: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%)',
|
|
57627
|
-
headerUserMenuList: 'list-style: none; margin: 0; padding: 0',
|
|
57628
|
-
headerUserMenuListDisplay: 'list-style: none; margin: 0; padding: 0; display:true',
|
|
57629
|
-
headerUserMenuNavigationMenu: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: true',
|
|
57630
|
-
headerUserMenuNavigationMenuNotDisplayed: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: none',
|
|
57631
|
-
headerUserMenuListItem: 'border-bottom: solid 1px #000000',
|
|
57632
|
-
headerUserMenuPhoto: 'border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: cover; height: 50px; width: 50px',
|
|
57633
|
-
headerBanner: 'box-shadow: 0px 1px 4px #000000; display: flex; justify-content: space-between; padding: 0 1.5em; margin-bottom: 4px',
|
|
57634
|
-
headerBannerLink: 'display: block',
|
|
57635
|
-
headerBannerRightMenu: 'display: flex',
|
|
57636
|
-
headerBannerLogin: 'margin-left: auto',
|
|
57637
|
-
allChildrenVisible: 'display:true',
|
|
57638
|
-
|
|
57639
|
-
|
|
57640
|
-
|
|
57641
|
-
headerBannerIcon: 'background-size: 65px 60px !important; height: 60px !important; width: 65px !important',
|
|
57598
|
+
headerUserMenuLink: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none;',
|
|
57599
|
+
headerUserMenuLinkHover: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%);',
|
|
57600
|
+
headerUserMenuTrigger: 'background: none; border: 0; cursor: pointer; width: 60px; height: 60px;',
|
|
57601
|
+
headerUserMenuTriggerImg: 'border-radius: 50%; height: 56px; width: 28px !important;',
|
|
57602
|
+
headerUserMenuButton: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%;',
|
|
57603
|
+
headerUserMenuButtonHover: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%);',
|
|
57604
|
+
headerUserMenuList: 'list-style: none; margin: 0; padding: 0;',
|
|
57605
|
+
headerUserMenuListDisplay: 'list-style: none; margin: 0; padding: 0; display:true;',
|
|
57606
|
+
headerUserMenuNavigationMenu: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: true;',
|
|
57607
|
+
headerUserMenuNavigationMenuNotDisplayed: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: none;',
|
|
57608
|
+
headerUserMenuListItem: 'border-bottom: solid 1px #000000;',
|
|
57609
|
+
headerUserMenuPhoto: 'border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: cover; height: 50px; width: 50px;',
|
|
57610
|
+
headerBanner: 'box-shadow: 0px 1px 4px #000000; display: flex; justify-content: space-between; padding: 0 1.5em; margin-bottom: 4px;',
|
|
57611
|
+
headerBannerLink: 'display: block;',
|
|
57612
|
+
headerBannerRightMenu: 'display: flex;',
|
|
57613
|
+
headerBannerLogin: 'margin-left: auto;',
|
|
57614
|
+
allChildrenVisible: 'display:true;',
|
|
57615
|
+
headerBannerUserMenu: 'border-left: solid 1px #000000; margin-left: auto;',
|
|
57616
|
+
headerBannerHelpMenu: 'border-left: solid 1px #000000; margin-left: auto;',
|
|
57617
|
+
headerBannerIcon: 'background-size: 65px 60px !important; height: 60px !important; width: 65px !important;',
|
|
57642
57618
|
// may just be 65px round($icon-size * 352 / 322);
|
|
57643
57619
|
|
|
57644
57620
|
// footer
|
|
57645
|
-
footer: 'border-top: solid 1px $divider-color; font-size: 0.9em; padding: 0.5em 1.5em',
|
|
57621
|
+
footer: 'border-top: solid 1px $divider-color; font-size: 0.9em; padding: 0.5em 1.5em;',
|
|
57646
57622
|
// buttons
|
|
57647
|
-
primaryButton: 'background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em;text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none',
|
|
57648
|
-
primaryButtonHover: 'background-color: #9f7dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em;text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out',
|
|
57649
|
-
primaryButtonNoBorder: 'background-color: #ffffff; color: #7c4dff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em;text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none',
|
|
57650
|
-
primaryButtonNoBorderHover: 'background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out',
|
|
57651
|
-
secondaryButton: 'background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em;text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none',
|
|
57652
|
-
secondaryButtonHover: 'background-color: #37cde6; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em;text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out',
|
|
57653
|
-
secondaryButtonNoBorder: 'background-color: #ffffff; color: #01c9ea; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none',
|
|
57654
|
-
secondaryButtonNoBorderHover: 'background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out'
|
|
57623
|
+
primaryButton: 'background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;',
|
|
57624
|
+
primaryButtonHover: 'background-color: #9f7dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;',
|
|
57625
|
+
primaryButtonNoBorder: 'background-color: #ffffff; color: #7c4dff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;',
|
|
57626
|
+
primaryButtonNoBorderHover: 'background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;',
|
|
57627
|
+
secondaryButton: 'background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;',
|
|
57628
|
+
secondaryButtonHover: 'background-color: #37cde6; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;',
|
|
57629
|
+
secondaryButtonNoBorder: 'background-color: #ffffff; color: #01c9ea; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;',
|
|
57630
|
+
secondaryButtonNoBorderHover: 'background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;',
|
|
57631
|
+
// media
|
|
57632
|
+
controlStyle: "border-radius: 0.5em; margin: 0.8em; width:".concat(_styleConstants["default"].mediaModuleCanvasWidth, "; height:").concat(_styleConstants["default"].mediaModuleCanvasHeight, ";"),
|
|
57633
|
+
// dragAndDrop
|
|
57634
|
+
dragEvent: 'background-color: #ccc; border: 0.25em dashed black; border-radius: 0.3em;',
|
|
57635
|
+
dropEvent: 'background-color: white; border: 0em solid black;',
|
|
57636
|
+
restoreStyle: 'background-color: white;',
|
|
57637
|
+
// errors
|
|
57638
|
+
errorCancelButton: 'width: 2em; height: 2em; align: right;',
|
|
57639
|
+
errorMessageBlockStyle: 'margin: 0.1em; padding: 0.5em; border: 0.05em solid gray; color:black;',
|
|
57640
|
+
// pad
|
|
57641
|
+
notepadStyle: 'padding: 1em; overflow: auto; resize: horizontal; min-width: 40em;',
|
|
57642
|
+
upstreamStatus: 'width: 50%;',
|
|
57643
|
+
downstreamStatus: 'width: 50%;',
|
|
57644
|
+
baseStyle: 'font-size: 100%; font-family: monospace; width: 100%; border: none; white-space: pre-wrap;',
|
|
57645
|
+
headingCore: 'font-family: sans-serif; font-weight: bold; border: none;',
|
|
57646
|
+
headingStyle: ['font-size: 110%; padding-top: 0.5em; padding-bottom: 0.5em; width: 100%;', 'font-size: 120%; padding-top: 1em; padding-bottom: 1em; width: 100%;', 'font-size: 150%; padding-top: 1em; padding-bottom: 1em; width: 100%;'],
|
|
57647
|
+
// participation
|
|
57648
|
+
participantsStyle: 'margin: 0.8em;',
|
|
57649
|
+
participantsBlock: 'height: 1.5em; width: 1.5em; margin: 0.3em; border 0.01em solid #888;',
|
|
57650
|
+
personTableTD: 'vertical-align: middle;',
|
|
57651
|
+
// tabs
|
|
57652
|
+
tabsNavElement: 'margin: 0;',
|
|
57653
|
+
tabsRootElement: 'display: flex; height: 100%; width: 100%;',
|
|
57654
|
+
tabsMainElement: 'margin: 0; width:100%; height: 100%;',
|
|
57655
|
+
tabContainer: 'list-style-type: none; display: flex; height: 100%; width: 100%; margin: 0; padding: 0;',
|
|
57656
|
+
makeNewSlot: 'background: none; border: none; font: inherit; cursor: pointer;',
|
|
57657
|
+
ellipsis: 'position: absolute; right: 0; bottom: 0; width: 20%; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit;'
|
|
57655
57658
|
};
|
|
57656
57659
|
style.setStyle = function setStyle(ele, styleName) {
|
|
57657
57660
|
ele.style = style[styleName];
|
|
@@ -57661,6 +57664,51 @@ module.exports = style; // @@ No way to do this in ESM
|
|
|
57661
57664
|
|
|
57662
57665
|
/***/ }),
|
|
57663
57666
|
|
|
57667
|
+
/***/ "./node_modules/solid-ui/lib/styleConstants.js":
|
|
57668
|
+
/*!*****************************************************!*\
|
|
57669
|
+
!*** ./node_modules/solid-ui/lib/styleConstants.js ***!
|
|
57670
|
+
\*****************************************************/
|
|
57671
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
57672
|
+
|
|
57673
|
+
"use strict";
|
|
57674
|
+
|
|
57675
|
+
|
|
57676
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
57677
|
+
value: true
|
|
57678
|
+
}));
|
|
57679
|
+
exports["default"] = void 0;
|
|
57680
|
+
var _default = exports["default"] = {
|
|
57681
|
+
highlightColor: '#7C4DFF',
|
|
57682
|
+
// Solid lavender https://design.inrupt.com/atomic-core/?cat=Core
|
|
57683
|
+
|
|
57684
|
+
formBorderColor: '#888888',
|
|
57685
|
+
// Mid-grey
|
|
57686
|
+
formHeadingColor: '#888888',
|
|
57687
|
+
// originally was brown; now grey
|
|
57688
|
+
lowProfileLinkColor: '#3B5998',
|
|
57689
|
+
// Grey-blue, e.g., for field labels linking to ontology
|
|
57690
|
+
formFieldNameBoxWidth: '8em',
|
|
57691
|
+
// The fixed amount to get form fields to line up
|
|
57692
|
+
// We put in the latter when switching away from using tables. However, getting
|
|
57693
|
+
// alignment between fields in different groups is a hard problem.
|
|
57694
|
+
|
|
57695
|
+
mediaModuleCanvasWidth: '640',
|
|
57696
|
+
mediaModuleCanvasHeight: '480',
|
|
57697
|
+
textInputSize: 20,
|
|
57698
|
+
// Rough default text input size, in characters
|
|
57699
|
+
tabBorderRadius: '0.2em',
|
|
57700
|
+
textInputBackgroundColor: '#eef',
|
|
57701
|
+
textInputBackgroundColorUneditable: '#fff',
|
|
57702
|
+
textInputColor: '#000',
|
|
57703
|
+
textInputColorPending: '#888',
|
|
57704
|
+
defaultErrorBackgroundColor: '#fee',
|
|
57705
|
+
participationDefaultBackground: 'white',
|
|
57706
|
+
basicMaxLength: '4096'
|
|
57707
|
+
};
|
|
57708
|
+
//# sourceMappingURL=styleConstants.js.map
|
|
57709
|
+
|
|
57710
|
+
/***/ }),
|
|
57711
|
+
|
|
57664
57712
|
/***/ "./node_modules/solid-ui/lib/style_multiSelect.js":
|
|
57665
57713
|
/*!********************************************************!*\
|
|
57666
57714
|
!*** ./node_modules/solid-ui/lib/style_multiSelect.js ***!
|
|
@@ -58171,7 +58219,6 @@ function renderTableViewPane(doc, options) {
|
|
|
58171
58219
|
if (this.predicate.sameTerm(ns.rdf('type')) && this.superClass) {
|
|
58172
58220
|
return utils.label(this.superClass, true); // do initial cap
|
|
58173
58221
|
}
|
|
58174
|
-
|
|
58175
58222
|
return utils.label(this.predicate);
|
|
58176
58223
|
} else if (this.variable) {
|
|
58177
58224
|
return this.variable.toString();
|
|
@@ -59006,7 +59053,6 @@ function renderTableViewPane(doc, options) {
|
|
|
59006
59053
|
}
|
|
59007
59054
|
}
|
|
59008
59055
|
}
|
|
59009
|
-
|
|
59010
59056
|
tr.appendChild(td);
|
|
59011
59057
|
}
|
|
59012
59058
|
|
|
@@ -59113,7 +59159,6 @@ function renderTableViewPane(doc, options) {
|
|
|
59113
59159
|
// oldStyle = rows[i]._htmlRow.getAttribute('style') || ''
|
|
59114
59160
|
// rows[i]._htmlRow.style.background = '#ffe'; //setAttribute('style', ' background-color: #ffe;')// yellow
|
|
59115
59161
|
}
|
|
59116
|
-
|
|
59117
59162
|
var onResult = function onResult(values) {
|
|
59118
59163
|
if (!query.running) {
|
|
59119
59164
|
return;
|
|
@@ -59183,7 +59228,6 @@ function renderTableViewPane(doc, options) {
|
|
|
59183
59228
|
}
|
|
59184
59229
|
if (options.onDone) options.onDone(resultDiv); // return div makes testing easier
|
|
59185
59230
|
};
|
|
59186
|
-
|
|
59187
59231
|
kb.query(query, onResult, undefined, onDone);
|
|
59188
59232
|
}
|
|
59189
59233
|
|
|
@@ -59331,6 +59375,7 @@ function renderTableViewPane(doc, options) {
|
|
|
59331
59375
|
|
|
59332
59376
|
|
|
59333
59377
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
59378
|
+
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
|
|
59334
59379
|
Object.defineProperty(exports, "__esModule", ({
|
|
59335
59380
|
value: true
|
|
59336
59381
|
}));
|
|
@@ -59347,7 +59392,10 @@ var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/ru
|
|
|
59347
59392
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
59348
59393
|
var _widgets = __webpack_require__(/*! ./widgets */ "./node_modules/solid-ui/lib/widgets/index.js");
|
|
59349
59394
|
var _utils = __webpack_require__(/*! ./utils */ "./node_modules/solid-ui/lib/utils/index.js");
|
|
59395
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ./style */ "./node_modules/solid-ui/lib/style.js"));
|
|
59350
59396
|
var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
|
|
59397
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
59398
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
59351
59399
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
59352
59400
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
59353
59401
|
/**
|
|
@@ -59529,11 +59577,12 @@ var TabElement = /*#__PURE__*/function (_HTMLElement3) {
|
|
|
59529
59577
|
*
|
|
59530
59578
|
* @param options
|
|
59531
59579
|
*/
|
|
59580
|
+
var tabsDefaultBackgroundColor = '#ddddcc';
|
|
59532
59581
|
function tabWidget(options) {
|
|
59533
59582
|
var subject = options.subject;
|
|
59534
59583
|
var dom = options.dom || document;
|
|
59535
59584
|
var orientation = parseInt(options.orientation || '0');
|
|
59536
|
-
var backgroundColor = options.backgroundColor ||
|
|
59585
|
+
var backgroundColor = options.backgroundColor || tabsDefaultBackgroundColor;
|
|
59537
59586
|
var flipped = orientation & 2;
|
|
59538
59587
|
var vertical = orientation & 1;
|
|
59539
59588
|
var onClose = options.onClose;
|
|
@@ -59544,13 +59593,15 @@ function tabWidget(options) {
|
|
|
59544
59593
|
var bodyMainStyle = "flex: 2; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(selectedColor, "; padding: 1em;");
|
|
59545
59594
|
var rootElement = dom.createElement('div'); // 20200117a
|
|
59546
59595
|
|
|
59547
|
-
rootElement.setAttribute('style',
|
|
59596
|
+
rootElement.setAttribute('style', style.tabsRootElement);
|
|
59597
|
+
rootElement.style.flexDirection = (vertical ? 'row' : 'column') + (flipped ? '-reverse' : '');
|
|
59548
59598
|
var navElement = rootElement.appendChild(dom.createElement('nav'));
|
|
59549
|
-
navElement.setAttribute('style',
|
|
59599
|
+
navElement.setAttribute('style', style.tabsNavElement);
|
|
59550
59600
|
var mainElement = rootElement.appendChild(dom.createElement('main'));
|
|
59551
|
-
mainElement.setAttribute('style',
|
|
59601
|
+
mainElement.setAttribute('style', style.tabsMainElement); // override tabbedtab.css
|
|
59552
59602
|
var tabContainer = navElement.appendChild(dom.createElement('ul'));
|
|
59553
|
-
tabContainer.setAttribute('style',
|
|
59603
|
+
tabContainer.setAttribute('style', style.tabContainer);
|
|
59604
|
+
tabContainer.style.flexDirection = "".concat(vertical ? 'column' : 'row');
|
|
59554
59605
|
var tabElement = 'li';
|
|
59555
59606
|
var bodyContainer = mainElement;
|
|
59556
59607
|
rootElement.tabContainer = tabContainer;
|
|
@@ -59570,7 +59621,7 @@ function tabWidget(options) {
|
|
|
59570
59621
|
rootElement.refresh = orderedSync;
|
|
59571
59622
|
orderedSync();
|
|
59572
59623
|
if (!options.startEmpty && tabContainer.children.length && options.selectedTab) {
|
|
59573
|
-
var selectedTab0 = Array.from(tabContainer.children) // Version left for
|
|
59624
|
+
var selectedTab0 = Array.from(tabContainer.children) // Version left for compatibility with ??
|
|
59574
59625
|
.map(function (tab) {
|
|
59575
59626
|
return tab.firstChild;
|
|
59576
59627
|
}).find(function (tab) {
|
|
@@ -59593,7 +59644,6 @@ function tabWidget(options) {
|
|
|
59593
59644
|
} else if (!options.startEmpty) {
|
|
59594
59645
|
tabContainer.children[0].firstChild.click(); // Open first tab
|
|
59595
59646
|
}
|
|
59596
|
-
|
|
59597
59647
|
return rootElement;
|
|
59598
59648
|
function addCancelButton(tabContainer) {
|
|
59599
59649
|
if (tabContainer.dataset.onCloseSet) {
|
|
@@ -59624,7 +59674,7 @@ function tabWidget(options) {
|
|
|
59624
59674
|
ele.setAttribute('style', unselectedStyle);
|
|
59625
59675
|
ele.subject = item;
|
|
59626
59676
|
var div = ele.appendChild(dom.createElement('button'));
|
|
59627
|
-
div.setAttribute('style',
|
|
59677
|
+
div.setAttribute('style', style.makeNewSlot);
|
|
59628
59678
|
div.onclick = function () {
|
|
59629
59679
|
resetTabStyle();
|
|
59630
59680
|
resetBodyStyle();
|
|
@@ -59641,7 +59691,7 @@ function tabWidget(options) {
|
|
|
59641
59691
|
if (options.renderTabSettings && ele.subject) {
|
|
59642
59692
|
var ellipsis = dom.createElement('button');
|
|
59643
59693
|
ellipsis.textContent = '...';
|
|
59644
|
-
ellipsis.setAttribute('style',
|
|
59694
|
+
ellipsis.setAttribute('style', style.ellipsis);
|
|
59645
59695
|
ellipsis.onclick = function () {
|
|
59646
59696
|
resetTabStyle();
|
|
59647
59697
|
resetBodyStyle();
|
|
@@ -59689,7 +59739,6 @@ function tabWidget(options) {
|
|
|
59689
59739
|
if (!differ && items.length === tabContainer.children.length) {
|
|
59690
59740
|
return; // The two just match in order: a case to optimize for
|
|
59691
59741
|
}
|
|
59692
|
-
|
|
59693
59742
|
for (right = tabContainer.children.length - 1; right >= 0; right--) {
|
|
59694
59743
|
slot = tabContainer.children[right];
|
|
59695
59744
|
j = right - tabContainer.children.length + items.length;
|
|
@@ -60076,7 +60125,6 @@ function hashColor(who) {
|
|
|
60076
60125
|
};
|
|
60077
60126
|
return '#' + (hash(who) & 0xffffff | 0xc0c0c0).toString(16); // c0c0c0 or 808080 forces pale
|
|
60078
60127
|
}
|
|
60079
|
-
|
|
60080
60128
|
function genUuid() {
|
|
60081
60129
|
// http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
|
|
60082
60130
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
@@ -60151,7 +60199,6 @@ function syncTableToArrayReOrdered(table, things, createNewRow) {
|
|
|
60151
60199
|
var row = table.children[i];
|
|
60152
60200
|
elementMap[row.subject.toNT()] = row; // More sophisticaed would be to have a bag of duplicates
|
|
60153
60201
|
}
|
|
60154
|
-
|
|
60155
60202
|
for (var g = 0; g < things.length; g++) {
|
|
60156
60203
|
var thing = things[g];
|
|
60157
60204
|
if (g >= table.children.length) {
|
|
@@ -60255,7 +60302,6 @@ function getAbout(kb, target) {
|
|
|
60255
60302
|
// if (level.tagName=='TR') return undefined//this is to prevent literals passing through
|
|
60256
60303
|
}
|
|
60257
60304
|
}
|
|
60258
|
-
|
|
60259
60305
|
UI.log.debug('getAbout: No about found');
|
|
60260
60306
|
return undefined;
|
|
60261
60307
|
}
|
|
@@ -60363,7 +60409,6 @@ function shortName(uri) {
|
|
|
60363
60409
|
for (var _ns in this.prefixes) {
|
|
60364
60410
|
namespaces[this.prefixes[_ns]] = _ns; // reverse index
|
|
60365
60411
|
}
|
|
60366
|
-
|
|
60367
60412
|
var pok;
|
|
60368
60413
|
var canUse = function canUse(pp) {
|
|
60369
60414
|
// if (!__Serializer.prototype.validPrefix.test(pp)) return false; // bad format
|
|
@@ -60413,11 +60458,9 @@ function ontologyLabel(term) {
|
|
|
60413
60458
|
return term.uri + '?!'; // strange should have # or /
|
|
60414
60459
|
}
|
|
60415
60460
|
}
|
|
60416
|
-
|
|
60417
60461
|
for (var _ns2 in UI.ns) {
|
|
60418
60462
|
namespaces[UI.ns[_ns2]] = _ns2; // reverse index
|
|
60419
60463
|
}
|
|
60420
|
-
|
|
60421
60464
|
try {
|
|
60422
60465
|
return namespaces[s];
|
|
60423
60466
|
} catch (e) {}
|
|
@@ -60436,7 +60479,6 @@ function ontologyLabel(term) {
|
|
|
60436
60479
|
}
|
|
60437
60480
|
}
|
|
60438
60481
|
}
|
|
60439
|
-
|
|
60440
60482
|
function labelWithOntology(x, initialCap) {
|
|
60441
60483
|
var t = _solidLogic.store.findTypeURIs(x);
|
|
60442
60484
|
if (t[UI.ns.rdf('Predicate').uri] || t[UI.ns.rdfs('Class').uri]) {
|
|
@@ -60927,28 +60969,28 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
60927
60969
|
}));
|
|
60928
60970
|
exports.versionInfo = void 0;
|
|
60929
60971
|
var versionInfo = exports.versionInfo = {
|
|
60930
|
-
buildTime: '2023-
|
|
60931
|
-
commit: '
|
|
60972
|
+
buildTime: '2023-12-04T10:26:57Z',
|
|
60973
|
+
commit: 'd6736c162182daa4832d184fd6d2cb74ae6f44e3',
|
|
60932
60974
|
npmInfo: {
|
|
60933
|
-
'solid-ui': '2.4.
|
|
60975
|
+
'solid-ui': '2.4.32',
|
|
60934
60976
|
npm: '8.19.4',
|
|
60935
|
-
node: '16.
|
|
60936
|
-
v8: '9.4.146.
|
|
60977
|
+
node: '16.20.2',
|
|
60978
|
+
v8: '9.4.146.26-node.26',
|
|
60937
60979
|
uv: '1.43.0',
|
|
60938
60980
|
zlib: '1.2.11',
|
|
60939
60981
|
brotli: '1.0.9',
|
|
60940
|
-
ares: '1.
|
|
60982
|
+
ares: '1.19.1',
|
|
60941
60983
|
modules: '93',
|
|
60942
|
-
nghttp2: '1.
|
|
60984
|
+
nghttp2: '1.47.0',
|
|
60943
60985
|
napi: '8',
|
|
60944
|
-
llhttp: '6.0.
|
|
60945
|
-
openssl: '1.1.
|
|
60946
|
-
cldr: '
|
|
60947
|
-
icu: '
|
|
60948
|
-
tz: '
|
|
60986
|
+
llhttp: '6.0.11',
|
|
60987
|
+
openssl: '1.1.1v+quic',
|
|
60988
|
+
cldr: '41.0',
|
|
60989
|
+
icu: '71.1',
|
|
60990
|
+
tz: '2022f',
|
|
60949
60991
|
unicode: '14.0',
|
|
60950
|
-
ngtcp2: '0.1
|
|
60951
|
-
nghttp3: '0.
|
|
60992
|
+
ngtcp2: '0.8.1',
|
|
60993
|
+
nghttp3: '0.7.0'
|
|
60952
60994
|
}
|
|
60953
60995
|
};
|
|
60954
60996
|
//# sourceMappingURL=versionInfo.js.map
|
|
@@ -61029,7 +61071,9 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
61029
61071
|
* UI Widgets such as buttons
|
|
61030
61072
|
* @packageDocumentation
|
|
61031
61073
|
*/
|
|
61074
|
+
|
|
61032
61075
|
/* global alert */
|
|
61076
|
+
|
|
61033
61077
|
var iconBase = _iconBase.icons.iconBase;
|
|
61034
61078
|
var cancelIconURI = iconBase + 'noun_1180156.svg'; // black X
|
|
61035
61079
|
var checkIconURI = iconBase + 'noun_1180158.svg'; // green checkmark; Continue
|
|
@@ -61257,7 +61301,6 @@ function findImageFromURI(x) {
|
|
|
61257
61301
|
// message: is apple bug-- should be mid:
|
|
61258
61302
|
return iconDir + 'noun_480183.svg'; // envelope noun_567486
|
|
61259
61303
|
}
|
|
61260
|
-
|
|
61261
61304
|
if (x.uri.startsWith('mailto:')) {
|
|
61262
61305
|
return iconDir + 'noun_567486.svg'; // mailbox - an email desitination
|
|
61263
61306
|
}
|
|
@@ -61268,7 +61311,6 @@ function findImageFromURI(x) {
|
|
|
61268
61311
|
// todo: pick up a possible favicon for the web page itself from a link
|
|
61269
61312
|
// was: return iconDir + 'noun_681601.svg' // document - under solid assumptions
|
|
61270
61313
|
}
|
|
61271
|
-
|
|
61272
61314
|
return null;
|
|
61273
61315
|
}
|
|
61274
61316
|
return iconDir + 'noun_10636_grey.svg'; // Grey Circle - some thing
|
|
@@ -61297,7 +61339,6 @@ function findImage(thing) {
|
|
|
61297
61339
|
if (thing.sameTerm(ns.foaf('Agent')) || thing.sameTerm(ns.rdf('Resource'))) {
|
|
61298
61340
|
return iconDir + 'noun_98053.svg'; // Globe
|
|
61299
61341
|
}
|
|
61300
|
-
|
|
61301
61342
|
var image = kb.any(thing, ns.sioc('avatar')) || kb.any(thing, ns.foaf('img')) || kb.any(thing, ns.vcard('logo')) || kb.any(thing, ns.vcard('hasPhoto')) || kb.any(thing, ns.vcard('photo')) || kb.any(thing, ns.foaf('depiction'));
|
|
61302
61343
|
return image ? image.uri : null;
|
|
61303
61344
|
}
|
|
@@ -61338,7 +61379,6 @@ function trySetImage(element, thing, iconForClassMap) {
|
|
|
61338
61379
|
return false; // maybe we can do better
|
|
61339
61380
|
}
|
|
61340
61381
|
}
|
|
61341
|
-
|
|
61342
61382
|
element.setAttribute('src', iconBase + 'noun_10636_grey.svg'); // Grey Circle - some thing
|
|
61343
61383
|
return false; // we can do better
|
|
61344
61384
|
}
|
|
@@ -61381,7 +61421,6 @@ function faviconOrDefault(dom, x) {
|
|
|
61381
61421
|
};
|
|
61382
61422
|
image.setAttribute('src', iconBase + (isOrigin(x) ? 'noun_15177.svg' : 'noun_681601.svg') // App symbol vs document
|
|
61383
61423
|
);
|
|
61384
|
-
|
|
61385
61424
|
if (x.uri && x.uri.startsWith('https:') && x.uri.indexOf('#') < 0) {
|
|
61386
61425
|
var res = dom.createElement('object'); // favico with a fallback of a default image if no favicon
|
|
61387
61426
|
res.setAttribute('data', tempSite(x) + 'favicon.ico');
|
|
@@ -61561,7 +61600,6 @@ function cancelButton(dom, handler) {
|
|
|
61561
61600
|
// sigh for tsc
|
|
61562
61601
|
b.firstChild.style.opacity = '0.3'; // Black X is too harsh: current language is grey X
|
|
61563
61602
|
}
|
|
61564
|
-
|
|
61565
61603
|
return b;
|
|
61566
61604
|
}
|
|
61567
61605
|
|
|
@@ -61649,7 +61687,6 @@ function renderAsRow(dom, pred, obj, options) {
|
|
|
61649
61687
|
} else {
|
|
61650
61688
|
setName(td2, obj); // This is async
|
|
61651
61689
|
}
|
|
61652
|
-
|
|
61653
61690
|
if (options.deleteFunction) {
|
|
61654
61691
|
deleteButtonWithCheck(dom, td3, options.noun || 'one', options.deleteFunction);
|
|
61655
61692
|
}
|
|
@@ -61838,7 +61875,6 @@ function attachmentList(dom, subject, div) {
|
|
|
61838
61875
|
var attachmentTable = attachmentRight.appendChild(dom.createElement('table'));
|
|
61839
61876
|
attachmentTable.appendChild(dom.createElement('tr')) // attachmentTableTop
|
|
61840
61877
|
;
|
|
61841
|
-
|
|
61842
61878
|
attachmentOuter.refresh = refresh; // Participate in downstream changes
|
|
61843
61879
|
// ;(attachmentTable as any).refresh = refresh <- outer should be best?
|
|
61844
61880
|
|
|
@@ -61859,7 +61895,6 @@ function attachmentList(dom, subject, div) {
|
|
|
61859
61895
|
// buttonDiv.children[1].style = buttonStyle
|
|
61860
61896
|
}
|
|
61861
61897
|
}
|
|
61862
|
-
|
|
61863
61898
|
return attachmentOuter;
|
|
61864
61899
|
}
|
|
61865
61900
|
|
|
@@ -62162,7 +62197,6 @@ function twoLineTransaction(dom, x) {
|
|
|
62162
62197
|
if (!y) failed += '@@ No value for ' + p + '! ';
|
|
62163
62198
|
return y ? utils.escapeForXML(y.value) : '?'; // @@@@
|
|
62164
62199
|
};
|
|
62165
|
-
|
|
62166
62200
|
var box = dom.createElement('table');
|
|
62167
62201
|
box.innerHTML = "\n <tr>\n <td colspan=\"2\"> ".concat(enc('payee'), "</td>\n < /tr>\n < tr >\n <td>").concat(enc('date').slice(0, 10), "</td>\n <td style = \"text-align: right;\">").concat(enc('amount'), "</td>\n </tr>");
|
|
62168
62202
|
if (failed) {
|
|
@@ -62362,39 +62396,34 @@ exports.makeDropTarget = makeDropTarget;
|
|
|
62362
62396
|
exports.uploadFiles = uploadFiles;
|
|
62363
62397
|
var debug = _interopRequireWildcard(__webpack_require__(/*! ../debug */ "./node_modules/solid-ui/lib/debug.js"));
|
|
62364
62398
|
var mime = _interopRequireWildcard(__webpack_require__(/*! mime-types */ "./node_modules/mime-types/index.js"));
|
|
62399
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./node_modules/solid-ui/lib/style.js"));
|
|
62365
62400
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
62366
62401
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
62367
62402
|
/* Drag and drop common functionality
|
|
62368
62403
|
*
|
|
62369
62404
|
* It is easy to make something draggable, or to make it a drag target!
|
|
62370
|
-
* Just call the functions below.
|
|
62371
|
-
*
|
|
62405
|
+
* Just call the functions below. In a Solid world, any part of the UI which
|
|
62406
|
+
* represents one thing which has a URI, should be made draggable using makeDraggable.
|
|
62372
62407
|
* Any list of things should typically allow you to drag new members of the list
|
|
62373
62408
|
* onto it.
|
|
62374
|
-
* The file upload function uploadFiles is provided as often
|
|
62375
|
-
* desktop
|
|
62409
|
+
* The file upload function, uploadFiles, is provided as often as someone drags a file from the computer
|
|
62410
|
+
* desktop. You may want to upload it into the pod.
|
|
62376
62411
|
*/
|
|
62377
62412
|
|
|
62378
62413
|
/* global FileReader alert */
|
|
62379
62414
|
|
|
62380
62415
|
function makeDropTarget(ele, droppedURIHandler, droppedFileHandler) {
|
|
62381
62416
|
var dragoverListener = function dragoverListener(e) {
|
|
62382
|
-
e.preventDefault(); //
|
|
62417
|
+
e.preventDefault(); // Need this; otherwise, drop does not work.
|
|
62383
62418
|
e.dataTransfer.dropEffect = 'copy';
|
|
62384
62419
|
};
|
|
62385
62420
|
var dragenterListener = function dragenterListener(e) {
|
|
62386
62421
|
debug.log('dragenter event dropEffect: ' + e.dataTransfer.dropEffect);
|
|
62387
|
-
if (this.
|
|
62422
|
+
if (this.localStyle) {
|
|
62388
62423
|
// necessary not sure when
|
|
62389
62424
|
if (!this.savedStyle) {
|
|
62390
|
-
this.savedStyle =
|
|
62391
|
-
this.savedStyle.border = this.style.border;
|
|
62392
|
-
this.savedStyle.backgroundColor = this.style.backgroundColor;
|
|
62393
|
-
this.savedStyle.borderRadius = this.style.borderRadius;
|
|
62425
|
+
this.savedStyle = style.dragEvent;
|
|
62394
62426
|
}
|
|
62395
|
-
this.style.backgroundColor = '#ccc';
|
|
62396
|
-
this.style.border = '0.25em dashed black';
|
|
62397
|
-
this.style.borderRadius = '0.3em';
|
|
62398
62427
|
}
|
|
62399
62428
|
e.dataTransfer.dropEffect = 'link';
|
|
62400
62429
|
debug.log('dragenter event dropEffect 2: ' + e.dataTransfer.dropEffect);
|
|
@@ -62402,12 +62431,9 @@ function makeDropTarget(ele, droppedURIHandler, droppedFileHandler) {
|
|
|
62402
62431
|
var dragleaveListener = function dragleaveListener(e) {
|
|
62403
62432
|
debug.log('dragleave event dropEffect: ' + e.dataTransfer.dropEffect);
|
|
62404
62433
|
if (this.savedStyle) {
|
|
62405
|
-
this.
|
|
62406
|
-
this.style.backgroundColor = this.savedStyle.backgroundColor;
|
|
62407
|
-
this.style.borderRadius = this.savedStyle.borderRadius;
|
|
62434
|
+
this.localStyle = this.savedStyle;
|
|
62408
62435
|
} else {
|
|
62409
|
-
this.
|
|
62410
|
-
this.style.border = '0em solid black';
|
|
62436
|
+
this.localStyle = style.dropEvent;
|
|
62411
62437
|
}
|
|
62412
62438
|
};
|
|
62413
62439
|
var dropListener = function dropListener(e) {
|
|
@@ -62446,7 +62472,7 @@ function makeDropTarget(ele, droppedURIHandler, droppedFileHandler) {
|
|
|
62446
62472
|
if (uris) {
|
|
62447
62473
|
droppedURIHandler(uris);
|
|
62448
62474
|
}
|
|
62449
|
-
this.
|
|
62475
|
+
this.localStyle = style.restoreStyle; // restore style
|
|
62450
62476
|
return false;
|
|
62451
62477
|
}; // dropListener
|
|
62452
62478
|
|
|
@@ -62534,7 +62560,6 @@ function uploadFiles(fetcher, files, fileBase, imageBase, successHandler) {
|
|
|
62534
62560
|
// console.log('MIME TYPE MISMATCH: ' + mime.lookup(theFile.name) + ': adding extension: ' + suffix)
|
|
62535
62561
|
}
|
|
62536
62562
|
}
|
|
62537
|
-
|
|
62538
62563
|
var folderName = theFile.type.startsWith('image/') ? imageBase || fileBase : fileBase;
|
|
62539
62564
|
var destURI = folderName + (folderName.endsWith('/') ? '' : '/') + encodeURIComponent(theFile.name) + suffix;
|
|
62540
62565
|
fetcher.webOperation('PUT', destURI, {
|
|
@@ -62568,11 +62593,17 @@ function uploadFiles(fetcher, files, fileBase, imageBase, successHandler) {
|
|
|
62568
62593
|
/* provided dependency */ var console = __webpack_require__(/*! ./node_modules/console-browserify/index.js */ "./node_modules/console-browserify/index.js");
|
|
62569
62594
|
|
|
62570
62595
|
|
|
62596
|
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
62597
|
+
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
|
|
62571
62598
|
Object.defineProperty(exports, "__esModule", ({
|
|
62572
62599
|
value: true
|
|
62573
62600
|
}));
|
|
62574
62601
|
exports.errorMessageBlock = errorMessageBlock;
|
|
62575
62602
|
var _widgets = __webpack_require__(/*! ../widgets */ "./node_modules/solid-ui/lib/widgets/index.js");
|
|
62603
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./node_modules/solid-ui/lib/style.js"));
|
|
62604
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../styleConstants */ "./node_modules/solid-ui/lib/styleConstants.js"));
|
|
62605
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
62606
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
62576
62607
|
/**
|
|
62577
62608
|
* Create an error message block
|
|
62578
62609
|
* @param dom The DOM on which dom.createElement will be called
|
|
@@ -62601,8 +62632,9 @@ function errorMessageBlock(dom, err, backgroundColor, err2) {
|
|
|
62601
62632
|
}
|
|
62602
62633
|
div.appendChild((0, _widgets.cancelButton)(dom, function () {
|
|
62603
62634
|
if (div.parentNode) div.parentNode.removeChild(div);
|
|
62604
|
-
})).style =
|
|
62605
|
-
div.setAttribute('style',
|
|
62635
|
+
})).style = style.errorCancelButton;
|
|
62636
|
+
div.setAttribute('style', style.errorMessageBlockStyle);
|
|
62637
|
+
div.style.backgroundColor = backgroundColor || _styleConstants["default"].defaultErrorBackgroundColor;
|
|
62606
62638
|
return div;
|
|
62607
62639
|
}
|
|
62608
62640
|
//# sourceMappingURL=error.js.map
|
|
@@ -62699,6 +62731,7 @@ var _error = __webpack_require__(/*! ./error */ "./node_modules/solid-ui/lib/wid
|
|
|
62699
62731
|
var _basic = __webpack_require__(/*! ./forms/basic */ "./node_modules/solid-ui/lib/widgets/forms/basic.js");
|
|
62700
62732
|
var _autocompleteField = __webpack_require__(/*! ./forms/autocomplete/autocompleteField */ "./node_modules/solid-ui/lib/widgets/forms/autocomplete/autocompleteField.js");
|
|
62701
62733
|
var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./node_modules/solid-ui/lib/style.js"));
|
|
62734
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../styleConstants */ "./node_modules/solid-ui/lib/styleConstants.js"));
|
|
62702
62735
|
var _iconBase = __webpack_require__(/*! ../iconBase */ "./node_modules/solid-ui/lib/iconBase.js");
|
|
62703
62736
|
var log = _interopRequireWildcard(__webpack_require__(/*! ../log */ "./node_modules/solid-ui/lib/log.js"));
|
|
62704
62737
|
var ns = _interopRequireWildcard(__webpack_require__(/*! ../ns */ "./node_modules/solid-ui/lib/ns.js"));
|
|
@@ -62712,9 +62745,9 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
62712
62745
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
62713
62746
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
62714
62747
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } /* F O R M S
|
|
62715
|
-
|
|
62716
|
-
|
|
62717
|
-
|
|
62748
|
+
*
|
|
62749
|
+
* A Vanilla Dom implementation of the form language
|
|
62750
|
+
*/ /* eslint-disable multiline-ternary */ /* global alert */ // Note default export
|
|
62718
62751
|
var checkMarkCharacter = "\u2713";
|
|
62719
62752
|
var cancelCharacter = "\u2715";
|
|
62720
62753
|
var dashCharacter = '-';
|
|
@@ -62756,7 +62789,6 @@ function refreshOpionsSubfieldinGroup(dom, already, subject, dataDoc, callbackFu
|
|
|
62756
62789
|
}
|
|
62757
62790
|
}
|
|
62758
62791
|
}
|
|
62759
|
-
|
|
62760
62792
|
_fieldFunction.field[ns.ui('Form').uri] = _fieldFunction.field[ns.ui('Group').uri] = function (dom, container, already, subject, form, dataDoc, callbackFunction) {
|
|
62761
62793
|
var box = dom.createElement('div');
|
|
62762
62794
|
var ui = ns.ui;
|
|
@@ -63297,7 +63329,6 @@ _fieldFunction.field[ns.ui('Multiple').uri] = function (dom, container, already,
|
|
|
63297
63329
|
vals = reverse ? kb.each(null, property, subject, dataDoc) : kb.each(subject, property, null, dataDoc);
|
|
63298
63330
|
vals.sort(); // achieve consistency on each refresh
|
|
63299
63331
|
}
|
|
63300
|
-
|
|
63301
63332
|
utils.syncTableToArrayReOrdered(body, vals, renderItem);
|
|
63302
63333
|
}
|
|
63303
63334
|
body.refresh = refresh; // Allow live update
|
|
@@ -63387,7 +63418,7 @@ _fieldFunction.field[ns.ui('MultiLineTextField').uri] = function (dom, container
|
|
|
63387
63418
|
box.style.display = 'flex';
|
|
63388
63419
|
box.style.flexDirection = 'row';
|
|
63389
63420
|
var left = box.appendChild(dom.createElement('div'));
|
|
63390
|
-
left.style.width =
|
|
63421
|
+
left.style.width = _styleConstants["default"].formFieldNameBoxWidth;
|
|
63391
63422
|
var right = box.appendChild(dom.createElement('div'));
|
|
63392
63423
|
left.appendChild((0, _basic.fieldLabel)(dom, property, form));
|
|
63393
63424
|
dataDoc = (0, _basic.fieldStore)(subject, property, dataDoc);
|
|
@@ -63546,7 +63577,6 @@ _fieldFunction.field[ns.ui('Choice').uri] = function (dom, container, already, s
|
|
|
63546
63577
|
if (kb.any(form, ui('canMintNew'))) {
|
|
63547
63578
|
opts.mint = '* Create new *'; // @@ could be better
|
|
63548
63579
|
}
|
|
63549
|
-
|
|
63550
63580
|
var multiSelect = kb.any(form, ui('multiselect')); // Optional
|
|
63551
63581
|
if (multiSelect) opts.multiSelect = true;
|
|
63552
63582
|
|
|
@@ -63812,9 +63842,8 @@ function promptForNew(dom, kb, subject, predicate, theClass, form, dataDoc, call
|
|
|
63812
63842
|
log.debug('lists[0] is ' + lists[0]);
|
|
63813
63843
|
form = lists[0]; // Pick any one
|
|
63814
63844
|
}
|
|
63815
|
-
|
|
63816
63845
|
log.debug('form is ' + form);
|
|
63817
|
-
box.setAttribute('style', "border: 0.05em solid ".concat(
|
|
63846
|
+
box.setAttribute('style', "border: 0.05em solid ".concat(_styleConstants["default"].formBorderColor, "; color: ").concat(_styleConstants["default"].formBorderColor)); // @@color?
|
|
63818
63847
|
box.innerHTML = '<h3>New ' + utils.label(theClass) + '</h3>';
|
|
63819
63848
|
var formFunction = (0, _fieldFunction.fieldFunction)(dom, form);
|
|
63820
63849
|
var object = newThing(dataDoc);
|
|
@@ -63862,7 +63891,6 @@ function makeDescription(dom, kb, subject, predicate, dataDoc, callbackFunction)
|
|
|
63862
63891
|
// field.value = utils.label(predicate); // Was"enter a description here" @@ possibly: add prompt which disappears
|
|
63863
63892
|
field.select(); // Select it ready for user input -- doesn't work
|
|
63864
63893
|
}
|
|
63865
|
-
|
|
63866
63894
|
group.refresh = function () {
|
|
63867
63895
|
var v = kb.any(subject, predicate, null, dataDoc);
|
|
63868
63896
|
if (v && v.value !== field.value) {
|
|
@@ -63870,17 +63898,16 @@ function makeDescription(dom, kb, subject, predicate, dataDoc, callbackFunction)
|
|
|
63870
63898
|
// @@ this is the place to color the field from the user who chanaged it
|
|
63871
63899
|
}
|
|
63872
63900
|
};
|
|
63873
|
-
|
|
63874
63901
|
function saveChange(_e) {
|
|
63875
63902
|
submit.disabled = true;
|
|
63876
63903
|
submit.setAttribute('style', 'visibility: hidden; float: right;'); // Keep UI clean
|
|
63877
63904
|
field.disabled = true;
|
|
63878
|
-
field.style.color =
|
|
63905
|
+
field.style.color = _styleConstants["default"].textInputColorPending;
|
|
63879
63906
|
var ds = kb.statementsMatching(subject, predicate, null, dataDoc);
|
|
63880
63907
|
var is = $rdf.st(subject, predicate, field.value, dataDoc);
|
|
63881
63908
|
kb.updater.update(ds, is, function (uri, ok, body) {
|
|
63882
63909
|
if (ok) {
|
|
63883
|
-
field.style.color =
|
|
63910
|
+
field.style.color = _styleConstants["default"].textInputColor;
|
|
63884
63911
|
field.disabled = false;
|
|
63885
63912
|
} else {
|
|
63886
63913
|
group.appendChild((0, _error.errorMessageBlock)(dom, 'Error (while saving change to ' + dataDoc.uri + '): ' + body));
|
|
@@ -63909,7 +63936,7 @@ function makeDescription(dom, kb, subject, predicate, dataDoc, callbackFunction)
|
|
|
63909
63936
|
field.addEventListener('change', saveChange, true);
|
|
63910
63937
|
} else {
|
|
63911
63938
|
field.disabled = true; // @@ change color too
|
|
63912
|
-
field.style.backgroundColor =
|
|
63939
|
+
field.style.backgroundColor = _styleConstants["default"].textInputBackgroundColorUneditable;
|
|
63913
63940
|
}
|
|
63914
63941
|
return group;
|
|
63915
63942
|
}
|
|
@@ -63977,7 +64004,6 @@ function makeSelectForClassifierOptions(dom, kb, subject, predicate, possible, o
|
|
|
63977
64004
|
}); // @@ if ok, need some form of refresh of the select for the new thing
|
|
63978
64005
|
}
|
|
63979
64006
|
});
|
|
63980
|
-
|
|
63981
64007
|
select.parentNode.appendChild(thisForm);
|
|
63982
64008
|
newObject = thisForm.AJAR_subject;
|
|
63983
64009
|
} else {
|
|
@@ -64034,7 +64060,7 @@ function makeSelectForClassifierOptions(dom, kb, subject, predicate, possible, o
|
|
|
64034
64060
|
});
|
|
64035
64061
|
};
|
|
64036
64062
|
var select = dom.createElement('select');
|
|
64037
|
-
select.setAttribute('style', style.
|
|
64063
|
+
select.setAttribute('style', style.formSelectStyle);
|
|
64038
64064
|
if (options.multiple) select.setAttribute('multiple', 'true');
|
|
64039
64065
|
select.currentURI = null;
|
|
64040
64066
|
select.refresh = function () {
|
|
@@ -64047,7 +64073,6 @@ function makeSelectForClassifierOptions(dom, kb, subject, predicate, possible, o
|
|
|
64047
64073
|
}
|
|
64048
64074
|
select.disabled = false; // unlocked any conflict we had got into
|
|
64049
64075
|
};
|
|
64050
|
-
|
|
64051
64076
|
for (var uri in uris) {
|
|
64052
64077
|
var c = kb.sym(uri);
|
|
64053
64078
|
var option = dom.createElement('option');
|
|
@@ -64056,7 +64081,6 @@ function makeSelectForClassifierOptions(dom, kb, subject, predicate, possible, o
|
|
|
64056
64081
|
} else {
|
|
64057
64082
|
option.appendChild(dom.createTextNode(utils.label(c, true))); // Init.
|
|
64058
64083
|
}
|
|
64059
|
-
|
|
64060
64084
|
var backgroundColor = kb.any(c, kb.sym('http://www.w3.org/ns/ui#backgroundColor'));
|
|
64061
64085
|
if (backgroundColor) {
|
|
64062
64086
|
option.setAttribute('style', 'background-color: ' + backgroundColor.value + '; ');
|
|
@@ -64067,7 +64091,6 @@ function makeSelectForClassifierOptions(dom, kb, subject, predicate, possible, o
|
|
|
64067
64091
|
select.currentURI = uri;
|
|
64068
64092
|
// dump("Already in class: "+ uri+"\n")
|
|
64069
64093
|
}
|
|
64070
|
-
|
|
64071
64094
|
select.appendChild(option);
|
|
64072
64095
|
}
|
|
64073
64096
|
if (editable && options.mint) {
|
|
@@ -64177,7 +64200,7 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, options, da
|
|
|
64177
64200
|
});
|
|
64178
64201
|
};
|
|
64179
64202
|
var select = dom.createElement('select');
|
|
64180
|
-
select.setAttribute('style', style.
|
|
64203
|
+
select.setAttribute('style', style.formSelectStyle);
|
|
64181
64204
|
select.currentURI = null;
|
|
64182
64205
|
select.refresh = function () {
|
|
64183
64206
|
actual = getActual(); // refresh
|
|
@@ -64189,7 +64212,6 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, options, da
|
|
|
64189
64212
|
}
|
|
64190
64213
|
select.disabled = false; // unlocked any conflict we had got into
|
|
64191
64214
|
};
|
|
64192
|
-
|
|
64193
64215
|
for (var uri in uris) {
|
|
64194
64216
|
var c = kb.sym(uri);
|
|
64195
64217
|
var option = dom.createElement('option');
|
|
@@ -64198,7 +64220,6 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, options, da
|
|
|
64198
64220
|
} else {
|
|
64199
64221
|
option.appendChild(dom.createTextNode(utils.label(c, true))); // Init.
|
|
64200
64222
|
}
|
|
64201
|
-
|
|
64202
64223
|
var backgroundColor = kb.any(c, kb.sym('http://www.w3.org/ns/ui#backgroundColor'));
|
|
64203
64224
|
if (backgroundColor) {
|
|
64204
64225
|
option.setAttribute('style', 'background-color: ' + backgroundColor.value + '; ');
|
|
@@ -64209,7 +64230,6 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, options, da
|
|
|
64209
64230
|
select.currentURI = uri;
|
|
64210
64231
|
// dump("Already in class: "+ uri+"\n")
|
|
64211
64232
|
}
|
|
64212
|
-
|
|
64213
64233
|
select.appendChild(option);
|
|
64214
64234
|
}
|
|
64215
64235
|
if (!select.currentURI) {
|
|
@@ -64307,10 +64327,8 @@ function buildCheckboxForm(dom, kb, lab, del, ins, form, dataDoc, tristate) {
|
|
|
64307
64327
|
if (!x.why) {
|
|
64308
64328
|
x.why = dataDoc; // be back-compaitible with old code
|
|
64309
64329
|
}
|
|
64310
|
-
|
|
64311
64330
|
return [x]; // one statements
|
|
64312
64331
|
}
|
|
64313
|
-
|
|
64314
64332
|
if (x instanceof Array) return x;
|
|
64315
64333
|
throw new Error('buildCheckboxForm: bad param ' + x);
|
|
64316
64334
|
}
|
|
@@ -64376,7 +64394,6 @@ function buildCheckboxForm(dom, kb, lab, del, ins, form, dataDoc, tristate) {
|
|
|
64376
64394
|
}
|
|
64377
64395
|
});
|
|
64378
64396
|
};
|
|
64379
|
-
|
|
64380
64397
|
input.addEventListener('click', boxHandler, false);
|
|
64381
64398
|
return box;
|
|
64382
64399
|
}
|
|
@@ -64463,7 +64480,7 @@ function makeSelectForChoice(dom, container, kb, subject, predicate, inputPossib
|
|
|
64463
64480
|
select.refresh();
|
|
64464
64481
|
};
|
|
64465
64482
|
var select = dom.createElement('select');
|
|
64466
|
-
select.setAttribute('style', style.
|
|
64483
|
+
select.setAttribute('style', style.formSelectStyle);
|
|
64467
64484
|
select.setAttribute('id', 'formSelect');
|
|
64468
64485
|
select.currentURI = null;
|
|
64469
64486
|
for (var uri in optionsFromClassUIfrom) {
|
|
@@ -64490,13 +64507,11 @@ function makeSelectForChoice(dom, container, kb, subject, predicate, inputPossib
|
|
|
64490
64507
|
is.push($rdf.st(subject, predicate, t, dataDoc));
|
|
64491
64508
|
// console.log("----value added " + t)
|
|
64492
64509
|
}
|
|
64493
|
-
|
|
64494
64510
|
if (uiFrom && !kb.holds(t, ns.rdf('type'), kb.sym(uiFrom), dataDoc)) {
|
|
64495
64511
|
is.push($rdf.st(t, ns.rdf('type'), kb.sym(uiFrom), dataDoc));
|
|
64496
64512
|
// console.log("----added type to value " + uiFrom)
|
|
64497
64513
|
}
|
|
64498
64514
|
};
|
|
64499
|
-
|
|
64500
64515
|
var existingValues = kb.each(subject, predicate, null, dataDoc).map(function (object) {
|
|
64501
64516
|
return object.value;
|
|
64502
64517
|
});
|
|
@@ -64549,7 +64564,6 @@ function makeSelectForChoice(dom, container, kb, subject, predicate, inputPossib
|
|
|
64549
64564
|
}); // @@ if ok, need some form of refresh of the select for the new thing
|
|
64550
64565
|
}
|
|
64551
64566
|
});
|
|
64552
|
-
|
|
64553
64567
|
select.parentNode.appendChild(thisForm);
|
|
64554
64568
|
newObject = thisForm.AJAR_subject;
|
|
64555
64569
|
} else {
|
|
@@ -64711,11 +64725,11 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
64711
64725
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
64712
64726
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
64713
64727
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } /* The Autocomplete Control with decorations
|
|
64714
|
-
|
|
64715
|
-
|
|
64716
|
-
|
|
64717
|
-
|
|
64718
|
-
|
|
64728
|
+
|
|
64729
|
+
This control has the buttons which control the state between editing, viewing, searching, accepting
|
|
64730
|
+
and so on. See the state diagram in the documentation. The AUtocomplete Picker does the main work.
|
|
64731
|
+
|
|
64732
|
+
*/
|
|
64719
64733
|
// dbpediaParameters
|
|
64720
64734
|
|
|
64721
64735
|
var WEBID_NOUN = 'Solid ID';
|
|
@@ -65226,7 +65240,6 @@ function autocompleteField(dom, container, already, subject, form, doc, callback
|
|
|
65226
65240
|
}, function (err) {
|
|
65227
65241
|
rhs.appendChild(widgets.errorMessageBlock(dom, "Error rendering autocomplete ".concat(form, ": ").concat(err), '#fee', err)); //
|
|
65228
65242
|
});
|
|
65229
|
-
|
|
65230
65243
|
return box;
|
|
65231
65244
|
}
|
|
65232
65245
|
|
|
@@ -65255,6 +65268,7 @@ var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime
|
|
|
65255
65268
|
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
|
|
65256
65269
|
var debug = _interopRequireWildcard(__webpack_require__(/*! ../../../debug */ "./node_modules/solid-ui/lib/debug.js"));
|
|
65257
65270
|
var style = _interopRequireWildcard(__webpack_require__(/*! ../../../style */ "./node_modules/solid-ui/lib/style.js"));
|
|
65271
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../../../styleConstants */ "./node_modules/solid-ui/lib/styleConstants.js"));
|
|
65258
65272
|
var widgets = _interopRequireWildcard(__webpack_require__(/*! ../../../widgets */ "./node_modules/solid-ui/lib/widgets/index.js"));
|
|
65259
65273
|
var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
|
|
65260
65274
|
var _publicData = __webpack_require__(/*! ./publicData */ "./node_modules/solid-ui/lib/widgets/forms/autocomplete/publicData.js");
|
|
@@ -65264,10 +65278,10 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
65264
65278
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
65265
65279
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
65266
65280
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } /* Autocomplete Picker: Create and edit data using public data
|
|
65267
|
-
|
|
65268
|
-
|
|
65269
|
-
|
|
65270
|
-
|
|
65281
|
+
**
|
|
65282
|
+
** As the data source is passed as a parameter, all kinds of APIa and query services can be used
|
|
65283
|
+
**
|
|
65284
|
+
*/
|
|
65271
65285
|
var AUTOCOMPLETE_THRESHOLD = 4; // don't check until this many characters typed
|
|
65272
65286
|
var AUTOCOMPLETE_ROWS = 20; // 20?
|
|
65273
65287
|
var AUTOCOMPLETE_ROWS_STRETCH = 40;
|
|
@@ -65318,14 +65332,12 @@ function _renderAutoComplete() {
|
|
|
65318
65332
|
if (decoration.acceptButton) {
|
|
65319
65333
|
setVisible(decoration.acceptButton, false); // hide until input complete
|
|
65320
65334
|
}
|
|
65321
|
-
|
|
65322
65335
|
if (decoration.editButton) {
|
|
65323
65336
|
setVisible(decoration.editButton, true);
|
|
65324
65337
|
}
|
|
65325
65338
|
if (decoration.cancelButton) {
|
|
65326
65339
|
setVisible(decoration.cancelButton, false); // only allow cancel when there is something to cancel
|
|
65327
65340
|
}
|
|
65328
|
-
|
|
65329
65341
|
inputEventHandlerLock = false;
|
|
65330
65342
|
clearList();
|
|
65331
65343
|
};
|
|
@@ -65409,7 +65421,6 @@ function _renderAutoComplete() {
|
|
|
65409
65421
|
if (loadedEnough && slimmed.length <= AUTOCOMPLETE_ROWS_STRETCH) {
|
|
65410
65422
|
numberOfRows = slimmed.length; // stretch if it means we get all items
|
|
65411
65423
|
}
|
|
65412
|
-
|
|
65413
65424
|
allDisplayed = loadedEnough && slimmed.length <= numberOfRows;
|
|
65414
65425
|
debug.log(" Filter:\"".concat(filter, "\" lastBindings: ").concat(lastBindings.length, ", slimmed to ").concat(slimmed.length, "; rows: ").concat(numberOfRows, ", Enough? ").concat(loadedEnough, ", All displayed? ").concat(allDisplayed));
|
|
65415
65426
|
displayable = slimmed.slice(0, numberOfRows);
|
|
@@ -65657,7 +65668,7 @@ function _renderAutoComplete() {
|
|
|
65657
65668
|
searchInput = cell.appendChild(dom.createElement('input'));
|
|
65658
65669
|
searchInput.setAttribute('type', 'text');
|
|
65659
65670
|
initialize();
|
|
65660
|
-
size = acOptions.size ||
|
|
65671
|
+
size = acOptions.size || _styleConstants["default"].textInputSize || 20;
|
|
65661
65672
|
searchInput.setAttribute('size', size);
|
|
65662
65673
|
searchInput.setAttribute('data-testid', 'autocomplete-input');
|
|
65663
65674
|
searchInputStyle = style.textInputStyle ||
|
|
@@ -65972,7 +65983,6 @@ var escoParameters = exports.escoParameters = {
|
|
|
65972
65983
|
// returnFormat: 'ESCO',
|
|
65973
65984
|
// targetClass: {}
|
|
65974
65985
|
};
|
|
65975
|
-
|
|
65976
65986
|
var dbpediaParameters = exports.dbpediaParameters = {
|
|
65977
65987
|
label: 'DBPedia',
|
|
65978
65988
|
logo: _solidLogic.store.sym('https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/DBpediaLogo.svg/263px-DBpediaLogo.svg.png'),
|
|
@@ -66018,7 +66028,6 @@ var wikidataIncomingClassMap = exports.wikidataIncomingClassMap = {
|
|
|
66018
66028
|
// geographic location
|
|
66019
66029
|
'http://www.wikidata.org/entity/Q167037': ns.schema('Corporation') // Corporation
|
|
66020
66030
|
};
|
|
66021
|
-
|
|
66022
66031
|
var variableNameToPredicateMap = exports.variableNameToPredicateMap = {
|
|
66023
66032
|
// allow other mappings to be added in theory hence var
|
|
66024
66033
|
// wikidata:
|
|
@@ -66129,7 +66138,6 @@ function ESCOResultToBindings(json) {
|
|
|
66129
66138
|
}
|
|
66130
66139
|
}; // simulate SPARQL bindings
|
|
66131
66140
|
});
|
|
66132
|
-
|
|
66133
66141
|
return bindings;
|
|
66134
66142
|
}
|
|
66135
66143
|
|
|
@@ -66545,6 +66553,7 @@ function _getDbpediaDetails() {
|
|
|
66545
66553
|
"use strict";
|
|
66546
66554
|
|
|
66547
66555
|
|
|
66556
|
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
66548
66557
|
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
|
|
66549
66558
|
Object.defineProperty(exports, "__esModule", ({
|
|
66550
66559
|
value: true
|
|
@@ -66557,6 +66566,7 @@ var _rdflib = __webpack_require__(/*! rdflib */ "./node_modules/rdflib/esm/index
|
|
|
66557
66566
|
var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
|
|
66558
66567
|
var ns = _interopRequireWildcard(__webpack_require__(/*! ../../ns */ "./node_modules/solid-ui/lib/ns.js"));
|
|
66559
66568
|
var _style = __webpack_require__(/*! ../../style */ "./node_modules/solid-ui/lib/style.js");
|
|
66569
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../../styleConstants */ "./node_modules/solid-ui/lib/styleConstants.js"));
|
|
66560
66570
|
var _utils = __webpack_require__(/*! ../../utils */ "./node_modules/solid-ui/lib/utils/index.js");
|
|
66561
66571
|
var _error = __webpack_require__(/*! ../error */ "./node_modules/solid-ui/lib/widgets/error.js");
|
|
66562
66572
|
var _fieldFunction = __webpack_require__(/*! ./fieldFunction */ "./node_modules/solid-ui/lib/widgets/forms/fieldFunction.js");
|
|
@@ -66572,7 +66582,7 @@ function renderNameValuePair(dom, kb, box, form, label) {
|
|
|
66572
66582
|
box.style.display = 'flex';
|
|
66573
66583
|
box.style.flexDirection = 'row';
|
|
66574
66584
|
var lhs = box.appendChild(dom.createElement('div'));
|
|
66575
|
-
lhs.style.width =
|
|
66585
|
+
lhs.style.width = _styleConstants["default"].formFieldNameBoxWidth;
|
|
66576
66586
|
var rhs = box.appendChild(dom.createElement('div'));
|
|
66577
66587
|
lhs.setAttribute('class', 'formFieldName');
|
|
66578
66588
|
lhs.setAttribute('style', _style.formFieldNameBoxStyle);
|
|
@@ -66677,10 +66687,10 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
|
|
|
66677
66687
|
field.style = style;
|
|
66678
66688
|
rhs.appendChild(field);
|
|
66679
66689
|
field.setAttribute('type', params.type ? params.type : 'text');
|
|
66680
|
-
var size = kb.anyJS(form, ns.ui('size')) ||
|
|
66690
|
+
var size = kb.anyJS(form, ns.ui('size')) || _styleConstants["default"].textInputSize || 20;
|
|
66681
66691
|
field.setAttribute('size', size);
|
|
66682
66692
|
var maxLength = kb.any(form, ns.ui('maxLength'));
|
|
66683
|
-
field.setAttribute('maxLength', maxLength ? '' + maxLength :
|
|
66693
|
+
field.setAttribute('maxLength', maxLength ? '' + maxLength : _styleConstants["default"].basicMaxLength);
|
|
66684
66694
|
doc = doc || fieldStore(subject, property, doc);
|
|
66685
66695
|
var obj = kb.any(subject, property, undefined, doc);
|
|
66686
66696
|
if (!obj) {
|
|
@@ -66702,11 +66712,9 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
|
|
|
66702
66712
|
field.readOnly = true // was: disabled. readOnly is better
|
|
66703
66713
|
;
|
|
66704
66714
|
field.style = _style.textInputStyleUneditable + paramStyle;
|
|
66705
|
-
// backgroundColor = textInputBackgroundColorUneditable
|
|
66706
66715
|
if (suppressEmptyUneditable && field.value === '') {
|
|
66707
66716
|
box.style.display = 'none'; // clutter
|
|
66708
66717
|
}
|
|
66709
|
-
|
|
66710
66718
|
return box;
|
|
66711
66719
|
}
|
|
66712
66720
|
|
|
@@ -66890,63 +66898,63 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
66890
66898
|
* field in questions, different values may be read
|
|
66891
66899
|
* from here.
|
|
66892
66900
|
*/
|
|
66893
|
-
var fieldParams = exports.fieldParams = (_fieldParams = {}, (0, _defineProperty2["default"])(_fieldParams, ns.ui('ColorField').uri, {
|
|
66901
|
+
var fieldParams = exports.fieldParams = (_fieldParams = {}, (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_fieldParams, ns.ui('ColorField').uri, {
|
|
66894
66902
|
size: 9,
|
|
66895
66903
|
type: 'color',
|
|
66896
66904
|
style: 'height: 3em;',
|
|
66897
66905
|
// around 1.5em is padding
|
|
66898
66906
|
dt: 'color',
|
|
66899
66907
|
pattern: /^\s*#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]([0-9a-f][0-9a-f])?\s*$/
|
|
66900
|
-
}),
|
|
66908
|
+
}), ns.ui('DateField').uri, {
|
|
66901
66909
|
size: 20,
|
|
66902
66910
|
type: 'date',
|
|
66903
66911
|
dt: 'date',
|
|
66904
66912
|
pattern: /^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?Z?\s*$/
|
|
66905
|
-
}),
|
|
66913
|
+
}), ns.ui('DateTimeField').uri, {
|
|
66906
66914
|
size: 20,
|
|
66907
66915
|
type: 'datetime-local',
|
|
66908
66916
|
// See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime
|
|
66909
66917
|
dt: 'dateTime',
|
|
66910
66918
|
pattern: /^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?(T[0-2][0-9]:[0-5][0-9](:[0-5][0-9])?)?Z?\s*$/
|
|
66911
|
-
}),
|
|
66919
|
+
}), ns.ui('TimeField').uri, {
|
|
66912
66920
|
size: 10,
|
|
66913
66921
|
type: 'time',
|
|
66914
66922
|
dt: 'time',
|
|
66915
66923
|
pattern: /^\s*([0-2]?[0-9]:[0-5][0-9](:[0-5][0-9])?)\s*$/
|
|
66916
|
-
}),
|
|
66924
|
+
}), ns.ui('IntegerField').uri, {
|
|
66917
66925
|
size: 12,
|
|
66918
66926
|
style: 'text-align: right;',
|
|
66919
66927
|
dt: 'integer',
|
|
66920
66928
|
pattern: /^\s*-?[0-9]+\s*$/
|
|
66921
|
-
}),
|
|
66929
|
+
}), ns.ui('DecimalField').uri, {
|
|
66922
66930
|
size: 12,
|
|
66923
66931
|
style: 'text-align: right;',
|
|
66924
66932
|
dt: 'decimal',
|
|
66925
66933
|
pattern: /^\s*-?[0-9]*(\.[0-9]*)?\s*$/
|
|
66926
|
-
}),
|
|
66934
|
+
}), ns.ui('FloatField').uri, {
|
|
66927
66935
|
size: 12,
|
|
66928
66936
|
style: 'text-align: right;',
|
|
66929
66937
|
dt: 'float',
|
|
66930
66938
|
pattern: /^\s*-?[0-9]*(\.[0-9]*)?((e|E)-?[0-9]*)?\s*$/
|
|
66931
|
-
}),
|
|
66939
|
+
}), ns.ui('SingleLineTextField').uri, {}), ns.ui('NamedNodeURIField').uri, {
|
|
66932
66940
|
namedNode: true
|
|
66933
|
-
}), (0, _defineProperty2["default"])(
|
|
66941
|
+
}), ns.ui('TextField').uri, {}), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_fieldParams, ns.ui('PhoneField').uri, {
|
|
66934
66942
|
size: 20,
|
|
66935
66943
|
uriPrefix: 'tel:',
|
|
66936
66944
|
pattern: /^\+?[\d-]+[\d]*$/
|
|
66937
|
-
}),
|
|
66945
|
+
}), ns.ui('EmailField').uri, {
|
|
66938
66946
|
size: 30,
|
|
66939
66947
|
uriPrefix: 'mailto:',
|
|
66940
66948
|
pattern: /^\s*.*@.*\..*\s*$/ // @@ Get the right regexp here
|
|
66941
|
-
}),
|
|
66949
|
+
}), ns.ui('Group').uri, {
|
|
66942
66950
|
style: _style.formGroupStyle
|
|
66943
|
-
}),
|
|
66951
|
+
}), ns.ui('Comment').uri, {
|
|
66944
66952
|
element: 'p',
|
|
66945
|
-
style: _style.commentStyle
|
|
66946
|
-
}),
|
|
66953
|
+
style: _style.commentStyle
|
|
66954
|
+
}), ns.ui('Heading').uri, {
|
|
66947
66955
|
element: 'h3',
|
|
66948
|
-
style: _style.formHeadingStyle
|
|
66949
|
-
})
|
|
66956
|
+
style: _style.formHeadingStyle
|
|
66957
|
+
}));
|
|
66950
66958
|
//# sourceMappingURL=fieldParams.js.map
|
|
66951
66959
|
|
|
66952
66960
|
/***/ }),
|
|
@@ -68270,7 +68278,6 @@ function patch(url, _ref3) {
|
|
|
68270
68278
|
// }
|
|
68271
68279
|
// })
|
|
68272
68280
|
}
|
|
68273
|
-
|
|
68274
68281
|
function indexes(book) {
|
|
68275
68282
|
return {
|
|
68276
68283
|
// bookIndex: book,
|