chat-pane 2.4.24 → 2.4.25

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.
@@ -32161,7 +32161,7 @@ var Serializer = /*#__PURE__*/function () {
32161
32161
  // Unicode encoding NTriples style
32162
32162
  uri = backslashUify(uri);
32163
32163
  } else {
32164
- uri = hexify(uri);
32164
+ uri = hexify(decodeURI(uri));
32165
32165
  }
32166
32166
  return '<' + uri + '>';
32167
32167
  }
@@ -34876,9 +34876,9 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
34876
34876
  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; }
34877
34877
  /* @file Update Manager Class
34878
34878
  **
34879
- ** 2007-07-15 originall sparl update module by Joe Presbrey <presbrey@mit.edu>
34879
+ ** 2007-07-15 original SPARQL Update module by Joe Presbrey <presbrey@mit.edu>
34880
34880
  ** 2010-08-08 TimBL folded in Kenny's WEBDAV
34881
- ** 2010-12-07 TimBL addred local file write code
34881
+ ** 2010-12-07 TimBL added local file write code
34882
34882
  */
34883
34883
 
34884
34884
 
@@ -34944,8 +34944,8 @@ var UpdateManager = /*#__PURE__*/function () {
34944
34944
  }
34945
34945
 
34946
34946
  /** Remove from the store HTTP authorization metadata
34947
- * The editble function below relies on copies we have in the store
34948
- * of the results of previous HTTP transactions. Howver, when
34947
+ * The editable function below relies on copies we have in the store
34948
+ * of the results of previous HTTP transactions. However, when
34949
34949
  * the user logs in, then that data misrepresents what would happen
34950
34950
  * if the user tried again.
34951
34951
  */
@@ -34986,7 +34986,7 @@ var UpdateManager = /*#__PURE__*/function () {
34986
34986
  * and local write access is determined by those headers.
34987
34987
  * This async version not only looks at past HTTP requests, it also makes new ones if necessary.
34988
34988
  *
34989
- * @returns The method string SPARQL or DAV or
34989
+ * @returns The method string N3PATCH or SPARQL or DAV or
34990
34990
  * LOCALFILE or false if known, undefined if not known.
34991
34991
  */
34992
34992
  }, {
@@ -35098,6 +35098,7 @@ var UpdateManager = /*#__PURE__*/function () {
35098
35098
  if (acceptPatch.length) {
35099
35099
  for (var i = 0; i < acceptPatch.length; i++) {
35100
35100
  method = acceptPatch[i].value.trim();
35101
+ if (method.indexOf('text/n3') >= 0) return 'N3PATCH';
35101
35102
  if (method.indexOf('application/sparql-update') >= 0) return 'SPARQL';
35102
35103
  if (method.indexOf('application/sparql-update-single-match') >= 0) return 'SPARQL';
35103
35104
  }
@@ -35145,7 +35146,8 @@ var UpdateManager = /*#__PURE__*/function () {
35145
35146
  }, {
35146
35147
  key: "anonymize",
35147
35148
  value: function anonymize(obj) {
35148
- return obj.toNT().substr(0, 2) === '_:' && this.mentioned(obj) ? '?' + obj.toNT().substr(2) : obj.toNT();
35149
+ var anonymized = obj.toNT().substr(0, 2) === '_:' && this.mentioned(obj) ? '?' + obj.toNT().substr(2) : obj.toNT();
35150
+ return anonymized;
35149
35151
  }
35150
35152
  }, {
35151
35153
  key: "anonymizeNT",
@@ -35343,7 +35345,7 @@ var UpdateManager = /*#__PURE__*/function () {
35343
35345
  // console.log('UpdateManager: sending update to <' + uri + '>')
35344
35346
 
35345
35347
  options.noMeta = true;
35346
- options.contentType = 'application/sparql-update';
35348
+ options.contentType = options.contentType || 'application/sparql-update';
35347
35349
  options.body = query;
35348
35350
  return _this.store.fetcher.webOperation('PATCH', uri, options);
35349
35351
  }).then(function (response) {
@@ -35361,7 +35363,7 @@ var UpdateManager = /*#__PURE__*/function () {
35361
35363
  });
35362
35364
  }
35363
35365
 
35364
- // ARE THESE THEE FUNCTIONS USED? DEPROCATE?
35366
+ // ARE THESE THREE FUNCTIONS USED? DEPRECATE?
35365
35367
 
35366
35368
  /** return a statemnet updating function
35367
35369
  *
@@ -35671,7 +35673,93 @@ var UpdateManager = /*#__PURE__*/function () {
35671
35673
  }
35672
35674
 
35673
35675
  /**
35674
- * This high-level function updates the local store iff the web is changed successfully.
35676
+ * @private
35677
+ *
35678
+ * This helper function constructs SPARQL Update query from resolved arguments.
35679
+ *
35680
+ * @param ds: deletions array.
35681
+ * @param is: insertions array.
35682
+ * @param bnodes_context: Additional context to uniquely identify any blank nodes.
35683
+ */
35684
+ }, {
35685
+ key: "constructSparqlUpdateQuery",
35686
+ value: function constructSparqlUpdateQuery(ds, is, bnodes_context) {
35687
+ var whereClause = this.contextWhere(bnodes_context);
35688
+ var query = '';
35689
+ if (whereClause.length) {
35690
+ // Is there a WHERE clause?
35691
+ if (ds.length) {
35692
+ query += 'DELETE { ';
35693
+ for (var i = 0; i < ds.length; i++) {
35694
+ query += this.anonymizeNT(ds[i]) + '\n';
35695
+ }
35696
+ query += ' }\n';
35697
+ }
35698
+ if (is.length) {
35699
+ query += 'INSERT { ';
35700
+ for (var _i5 = 0; _i5 < is.length; _i5++) {
35701
+ query += this.anonymizeNT(is[_i5]) + '\n';
35702
+ }
35703
+ query += ' }\n';
35704
+ }
35705
+ query += whereClause;
35706
+ } else {
35707
+ // no where clause
35708
+ if (ds.length) {
35709
+ query += 'DELETE DATA { ';
35710
+ for (var _i6 = 0; _i6 < ds.length; _i6++) {
35711
+ query += this.anonymizeNT(ds[_i6]) + '\n';
35712
+ }
35713
+ query += ' } \n';
35714
+ }
35715
+ if (is.length) {
35716
+ if (ds.length) query += ' ; ';
35717
+ query += 'INSERT DATA { ';
35718
+ for (var _i7 = 0; _i7 < is.length; _i7++) {
35719
+ query += this.nTriples(is[_i7]) + '\n';
35720
+ }
35721
+ query += ' }\n';
35722
+ }
35723
+ }
35724
+ return query;
35725
+ }
35726
+
35727
+ /**
35728
+ * @private
35729
+ *
35730
+ * This helper function constructs n3-patch query from resolved arguments.
35731
+ *
35732
+ * @param ds: deletions array.
35733
+ * @param is: insertions array.
35734
+ * @param bnodes_context: Additional context to uniquely identify any blanknodes.
35735
+ */
35736
+ }, {
35737
+ key: "constructN3PatchQuery",
35738
+ value: function constructN3PatchQuery(ds, is, bnodes_context) {
35739
+ var _this3 = this;
35740
+ var query = "\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix ex: <http://www.example.org/terms#>.\n\n_:patch\n";
35741
+ // If bnode context is non trivial, express it as ?conditions formula.
35742
+ if (bnodes_context && bnodes_context.length > 0) {
35743
+ query += "\n solid:where {\n ".concat(bnodes_context.map(function (x) {
35744
+ return _this3.anonymizeNT(x);
35745
+ }).join('\n '), "\n };");
35746
+ }
35747
+ if (ds.length > 0) {
35748
+ query += "\n solid:deletes {\n ".concat(ds.map(function (x) {
35749
+ return _this3.anonymizeNT(x);
35750
+ }).join('\n '), "\n };");
35751
+ }
35752
+ if (is.length > 0) {
35753
+ query += "\n solid:inserts {\n ".concat(is.map(function (x) {
35754
+ return _this3.anonymizeNT(x);
35755
+ }).join('\n '), "\n };");
35756
+ }
35757
+ query += " a solid:InsertDeletePatch .\n";
35758
+ return query;
35759
+ }
35760
+
35761
+ /**
35762
+ * This high-level function updates the local store if the web is changed successfully.
35675
35763
  * Deletions, insertions may be undefined or single statements or lists or formulae (may contain bnodes which can be indirectly identified by a where clause).
35676
35764
  * The `why` property of each statement must be the same and give the web document to be updated.
35677
35765
  * @param deletions - Statement or statements to be deleted.
@@ -35683,7 +35771,7 @@ var UpdateManager = /*#__PURE__*/function () {
35683
35771
  }, {
35684
35772
  key: "update",
35685
35773
  value: function update(deletions, insertions, callback, secondTry) {
35686
- var _this3 = this;
35774
+ var _this4 = this;
35687
35775
  var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
35688
35776
  if (!callback) {
35689
35777
  var thisUpdater = this;
@@ -35751,64 +35839,31 @@ var UpdateManager = /*#__PURE__*/function () {
35751
35839
  if (protocol === undefined) {
35752
35840
  // Not enough metadata
35753
35841
  if (secondTry) {
35754
- throw new Error('Update: Loaded ' + doc + "but stil can't figure out what editing protcol it supports.");
35842
+ throw new Error('Update: Loaded ' + doc + "but still can't figure out what editing protocol it supports.");
35755
35843
  }
35756
35844
  // console.log(`Update: have not loaded ${doc} before: loading now...`);
35757
35845
  this.store.fetcher.load(doc).then(function (response) {
35758
- _this3.update(deletions, insertions, callback, true, options);
35846
+ _this4.update(deletions, insertions, callback, true, options);
35759
35847
  }, function (err) {
35760
35848
  if (err.response.status === 404) {
35761
35849
  // nonexistent files are fine
35762
- _this3.update(deletions, insertions, callback, true, options);
35850
+ _this4.update(deletions, insertions, callback, true, options);
35763
35851
  } else {
35764
35852
  throw new Error("Update: Can't get updatability status ".concat(doc, " before patching: ").concat(err));
35765
35853
  }
35766
35854
  });
35767
35855
  return;
35768
- } else if (protocol.indexOf('SPARQL') >= 0) {
35856
+ } else if (protocol.indexOf('SPARQL') >= 0 || protocol.indexOf('N3PATCH') >= 0) {
35857
+ var isSparql = protocol.indexOf('SPARQL') >= 0;
35769
35858
  var bnodes = [];
35770
35859
  // change ReadOnly type to Mutable type
35771
35860
 
35772
35861
  if (ds.length) bnodes = this.statementArrayBnodes(ds);
35773
35862
  if (is.length) bnodes = bnodes.concat(this.statementArrayBnodes(is));
35774
35863
  var context = this.bnodeContext(bnodes, doc);
35775
- var whereClause = this.contextWhere(context);
35776
- var query = '';
35777
- if (whereClause.length) {
35778
- // Is there a WHERE clause?
35779
- if (ds.length) {
35780
- query += 'DELETE { ';
35781
- for (var i = 0; i < ds.length; i++) {
35782
- query += this.anonymizeNT(ds[i]) + '\n';
35783
- }
35784
- query += ' }\n';
35785
- }
35786
- if (is.length) {
35787
- query += 'INSERT { ';
35788
- for (var _i5 = 0; _i5 < is.length; _i5++) {
35789
- query += this.anonymizeNT(is[_i5]) + '\n';
35790
- }
35791
- query += ' }\n';
35792
- }
35793
- query += whereClause;
35794
- } else {
35795
- // no where clause
35796
- if (ds.length) {
35797
- query += 'DELETE DATA { ';
35798
- for (var _i6 = 0; _i6 < ds.length; _i6++) {
35799
- query += this.anonymizeNT(ds[_i6]) + '\n';
35800
- }
35801
- query += ' } \n';
35802
- }
35803
- if (is.length) {
35804
- if (ds.length) query += ' ; ';
35805
- query += 'INSERT DATA { ';
35806
- for (var _i7 = 0; _i7 < is.length; _i7++) {
35807
- query += this.nTriples(is[_i7]) + '\n';
35808
- }
35809
- query += ' }\n';
35810
- }
35811
- }
35864
+ var query = isSparql ? this.constructSparqlUpdateQuery(ds, is, context) : this.constructN3PatchQuery(ds, is, context);
35865
+ options.contentType = isSparql ? 'application/sparql-update' : 'text/n3';
35866
+
35812
35867
  // Track pending upstream patches until they have finished their callbackFunction
35813
35868
  control.pendingUpstream = control.pendingUpstream ? control.pendingUpstream + 1 : 1;
35814
35869
  if ('upstreamCount' in control) {
@@ -35829,8 +35884,8 @@ var UpdateManager = /*#__PURE__*/function () {
35829
35884
  success = false;
35830
35885
  body = 'Remote Ok BUT error deleting ' + ds.length + ' from store!!! ' + e;
35831
35886
  } // Add in any case -- help recover from weirdness??
35832
- for (var _i8 = 0; _i8 < is.length; _i8++) {
35833
- kb.add(is[_i8].subject, is[_i8].predicate, is[_i8].object, doc);
35887
+ for (var i = 0; i < is.length; i++) {
35888
+ kb.add(is[i].subject, is[i].predicate, is[i].object, doc);
35834
35889
  }
35835
35890
  }
35836
35891
  callback(uri, success, body, response);
@@ -35884,8 +35939,8 @@ var UpdateManager = /*#__PURE__*/function () {
35884
35939
  for (var i = 0; i < ds.length; i++) {
35885
35940
  _utils_js__WEBPACK_IMPORTED_MODULE_12__.RDFArrayRemove(newSts, ds[i]);
35886
35941
  }
35887
- for (var _i9 = 0; _i9 < is.length; _i9++) {
35888
- newSts.push(is[_i9]);
35942
+ for (var _i8 = 0; _i8 < is.length; _i8++) {
35943
+ newSts.push(is[_i8]);
35889
35944
  }
35890
35945
  var documentString = this.serialize(doc.value, newSts, contentType);
35891
35946
 
@@ -35902,11 +35957,11 @@ var UpdateManager = /*#__PURE__*/function () {
35902
35957
  if (!response.ok) {
35903
35958
  throw new Error(response.error);
35904
35959
  }
35905
- for (var _i10 = 0; _i10 < ds.length; _i10++) {
35906
- kb.remove(ds[_i10]);
35960
+ for (var _i9 = 0; _i9 < ds.length; _i9++) {
35961
+ kb.remove(ds[_i9]);
35907
35962
  }
35908
- for (var _i11 = 0; _i11 < is.length; _i11++) {
35909
- kb.add(is[_i11].subject, is[_i11].predicate, is[_i11].object, doc);
35963
+ for (var _i10 = 0; _i10 < is.length; _i10++) {
35964
+ kb.add(is[_i10].subject, is[_i10].predicate, is[_i10].object, doc);
35910
35965
  }
35911
35966
  callbackFunction(doc.value, response.ok, response.responseText, response);
35912
35967
  }).catch(function (err) {
@@ -35936,8 +35991,8 @@ var UpdateManager = /*#__PURE__*/function () {
35936
35991
  for (var i = 0; i < ds.length; i++) {
35937
35992
  _utils_js__WEBPACK_IMPORTED_MODULE_12__.RDFArrayRemove(newSts, ds[i]);
35938
35993
  }
35939
- for (var _i12 = 0; _i12 < is.length; _i12++) {
35940
- newSts.push(is[_i12]);
35994
+ for (var _i11 = 0; _i11 < is.length; _i11++) {
35995
+ newSts.push(is[_i11]);
35941
35996
  }
35942
35997
  // serialize to the appropriate format
35943
35998
  var dot = doc.value.lastIndexOf('.');
@@ -35953,11 +36008,11 @@ var UpdateManager = /*#__PURE__*/function () {
35953
36008
  options.contentType = contentType;
35954
36009
  kb.fetcher.webOperation('PUT', doc.value, options).then(function (response) {
35955
36010
  if (!response.ok) return callbackFunction(doc.value, false, response.error);
35956
- for (var _i13 = 0; _i13 < ds.length; _i13++) {
35957
- kb.remove(ds[_i13]);
36011
+ for (var _i12 = 0; _i12 < ds.length; _i12++) {
36012
+ kb.remove(ds[_i12]);
35958
36013
  }
35959
- for (var _i14 = 0; _i14 < is.length; _i14++) {
35960
- kb.add(is[_i14].subject, is[_i14].predicate, is[_i14].object, doc);
36014
+ for (var _i13 = 0; _i13 < is.length; _i13++) {
36015
+ kb.add(is[_i13].subject, is[_i13].predicate, is[_i13].object, doc);
35961
36016
  }
35962
36017
  callbackFunction(doc.value, true, ''); // success!
35963
36018
  });
@@ -36005,11 +36060,11 @@ var UpdateManager = /*#__PURE__*/function () {
36005
36060
  }, {
36006
36061
  key: "put",
36007
36062
  value: function put(doc, data, contentType, callback) {
36008
- var _this4 = this;
36063
+ var _this5 = this;
36009
36064
  var kb = this.store;
36010
36065
  var documentString;
36011
36066
  return Promise.resolve().then(function () {
36012
- documentString = _this4.serialize(doc.value, data, contentType);
36067
+ documentString = _this5.serialize(doc.value, data, contentType);
36013
36068
  return kb.fetcher.webOperation('PUT', doc.value, {
36014
36069
  contentType: contentType,
36015
36070
  body: documentString
@@ -40742,7 +40797,6 @@ function findAgent(uri, kb) {
40742
40797
  obj: (0, _rdflib.sym)(uri.slice(0, -1))
40743
40798
  }; // Fix a URI where the drag and drop system has added a spurious slash
40744
40799
  }
40745
-
40746
40800
  if (ns.vcard('WebID').uri in types) return {
40747
40801
  pred: 'agent',
40748
40802
  obj: obj
@@ -40753,7 +40807,6 @@ function findAgent(uri, kb) {
40753
40807
  obj: obj
40754
40808
  }; // @@ note vcard membership not RDFs
40755
40809
  }
40756
-
40757
40810
  if (obj.sameTerm(ns.foaf('Agent')) || obj.sameTerm(ns.acl('AuthenticatedAgent')) ||
40758
40811
  // AuthenticatedAgent
40759
40812
  obj.sameTerm(ns.rdf('Resource')) || obj.sameTerm(ns.owl('Thing'))) {
@@ -41143,7 +41196,6 @@ function readACL(doc, aclDoc) {
41143
41196
  });
41144
41197
  });
41145
41198
  });
41146
-
41147
41199
  return ac;
41148
41200
  function getDefaultsFallback(kb, ns) {
41149
41201
  return kb.each(undefined, ns.acl('default'), doc).concat(kb.each(undefined, ns.acl('defaultForNew'), doc));
@@ -41481,7 +41533,6 @@ function getACLorDefault(doc, callbackFunction) {
41481
41533
  if (!defaults.length) {
41482
41534
  return tryParent(uri); // Keep searching
41483
41535
  }
41484
-
41485
41536
  var defaultHolder = kb.sym(uri);
41486
41537
  return callbackFunction(true, false, doc, aclDoc, defaultHolder, defaultACLDoc);
41487
41538
  });
@@ -42479,7 +42530,7 @@ var ChatChannel = exports.ChatChannel = /*#__PURE__*/function () {
42479
42530
  */
42480
42531
  (0, _createClass2["default"])(ChatChannel, [{
42481
42532
  key: "createMessage",
42482
- value: function () {
42533
+ value: (function () {
42483
42534
  var _createMessage = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(text) {
42484
42535
  return _regenerator["default"].wrap(function _callee$(_context) {
42485
42536
  while (1) switch (_context.prev = _context.next) {
@@ -42500,9 +42551,10 @@ var ChatChannel = exports.ChatChannel = /*#__PURE__*/function () {
42500
42551
  as a replacement for an existing one.
42501
42552
  The old one iis left, and the two are linked
42502
42553
  */
42554
+ )
42503
42555
  }, {
42504
42556
  key: "updateMessage",
42505
- value: function () {
42557
+ value: (function () {
42506
42558
  var _updateMessage = (0, _asyncToGenerator2["default"])(function (text) {
42507
42559
  var _this = this;
42508
42560
  var oldMsg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
@@ -42600,9 +42652,10 @@ var ChatChannel = exports.ChatChannel = /*#__PURE__*/function () {
42600
42652
  * Wee add a new version of the message,m witha deletion flag (deletion date)
42601
42653
  * so that the deletion can be revoked by adding another non-deleted update
42602
42654
  */
42655
+ )
42603
42656
  }, {
42604
42657
  key: "deleteMessage",
42605
- value: function () {
42658
+ value: (function () {
42606
42659
  var _deleteMessage = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(message) {
42607
42660
  return _regenerator["default"].wrap(function _callee3$(_context3) {
42608
42661
  while (1) switch (_context3.prev = _context3.next) {
@@ -42618,7 +42671,7 @@ var ChatChannel = exports.ChatChannel = /*#__PURE__*/function () {
42618
42671
  return _deleteMessage.apply(this, arguments);
42619
42672
  }
42620
42673
  return deleteMessage;
42621
- }()
42674
+ }())
42622
42675
  }]);
42623
42676
  return ChatChannel;
42624
42677
  }(); // class ChatChannel
@@ -43323,7 +43376,6 @@ function _infiniteMessageArea() {
43323
43376
  if (freeze) {
43324
43377
  div.scrollTop = scrollTop; // while adding below keep same things in view
43325
43378
  }
43326
-
43327
43379
  if (fixScroll) fixScroll();
43328
43380
  if (!done) {
43329
43381
  _context10.next = 31;
@@ -43604,7 +43656,6 @@ function _infiniteMessageArea() {
43604
43656
  } else {
43605
43657
  messageTable.appendChild(tr); // not newestFirst
43606
43658
  }
43607
-
43608
43659
  messageTable.inputRow = tr;
43609
43660
  }
43610
43661
 
@@ -43644,7 +43695,6 @@ function _infiniteMessageArea() {
43644
43695
  messageTable.appendChild(scrollBackbuttonTR); // newestFirst
43645
43696
  }
43646
43697
  }
43647
-
43648
43698
  var sts = _solidLogic.store.statementsMatching(null, ns.wf('message'), null, chatDocument);
43649
43699
  if (!live && sts.length === 0) {
43650
43700
  // not todays
@@ -43782,7 +43832,6 @@ function _infiniteMessageArea() {
43782
43832
  if ((0, _chatLogic.isDeleted)(latest) && !options.showDeletedMessages) {
43783
43833
  return; // ignore deleted messaged -- @@ could also leave a placeholder
43784
43834
  }
43785
-
43786
43835
  insertMessageIntoTable(channelObject, messageTable, message, messageTable.fresh, options, userContext); // fresh from elsewhere
43787
43836
  };
43788
43837
  syncMessages = function _syncMessages(about, messageTable) {
@@ -43843,7 +43892,6 @@ function _infiniteMessageArea() {
43843
43892
  /* Add the live message block with entry field for today
43844
43893
  */
43845
43894
  // Body of main function
43846
-
43847
43895
  options = options || {};
43848
43896
  options.authorDateOnLeft = false; // @@ make a user optiosn
43849
43897
  newestFirst = options.newestFirst === '1' || options.newestFirst === true; // hack for now
@@ -44167,9 +44215,9 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
44167
44215
  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; } } }; }
44168
44216
  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); }
44169
44217
  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
44170
- *
44171
- * @packageDocumentation
44172
- */ /* global $rdf */
44218
+ *
44219
+ * @packageDocumentation
44220
+ */ /* global $rdf */
44173
44221
  var dom = window.document;
44174
44222
  var messageBodyStyle = style.messageBodyStyle;
44175
44223
  var label = utils.label;
@@ -44205,7 +44253,6 @@ var anchor = function anchor(text, term) {
44205
44253
  a.addEventListener('click', widgets.openHrefInOutlineMode, true);
44206
44254
  a.setAttribute('style', 'color: #3B5998; text-decoration: none; '); // font-weight: bold
44207
44255
  }
44208
-
44209
44256
  a.textContent = text;
44210
44257
  return a;
44211
44258
  };
@@ -44462,7 +44509,6 @@ function renderMessageEditor(channelObject, messageTable, userContext, options,
44462
44509
  oldRow.style.backgroundColor = '#fee';
44463
44510
  oldRow.style.visibility = 'hidden'; // @@ FIX THIS AND REMOVE FROM DOM INSTEAD
44464
44511
  }
44465
-
44466
44512
  messageEditor.parentNode.removeChild(messageEditor); // no longer need editor
44467
44513
  } else {
44468
44514
  if (fromMainField) {
@@ -44476,7 +44522,6 @@ function renderMessageEditor(channelObject, messageTable, userContext, options,
44476
44522
  }
44477
44523
  // await channelObject.div.refresh() // Add new day if nec @@ add back
44478
44524
  };
44479
-
44480
44525
  // const me = authn.currentUser() // Must be logged on or wuld have got login button
44481
44526
  if (fromMainField) {
44482
44527
  field.setAttribute('style', messageBodyStyle + 'color: #bbb;'); // pendingedit
@@ -44693,7 +44738,6 @@ function renderMessageEditor(channelObject, messageTable, userContext, options,
44693
44738
  sortDate = '9999-01-01T00:00:00Z'; // ISO format for field sort
44694
44739
  // text = ''
44695
44740
  }
44696
-
44697
44741
  var messageEditor = dom.createElement('tr');
44698
44742
  var lhs = dom.createElement('td');
44699
44743
  var middle = dom.createElement('td');
@@ -44770,6 +44814,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
44770
44814
  // import * as pad from '../pad'
44771
44815
  // pull in first avoid cross-refs
44772
44816
  // import * as style from '../style'
44817
+
44773
44818
  var dom = window.document;
44774
44819
 
44775
44820
  // THE UNUSED ICONS are here as reminders for possible future functionality
@@ -45273,7 +45318,6 @@ function newThingUI(createContext, dataBrowserContext, thePanes) {
45273
45318
  iconArray[i].setAttribute('style', st); // eg 'background-color: #ccc;'
45274
45319
  }
45275
45320
  }
45276
-
45277
45321
  function selectTool(icon) {
45278
45322
  styleTheIcons('display: none;'); // 'background-color: #ccc;'
45279
45323
  icon.setAttribute('style', iconStyle + 'background-color: yellow;');
@@ -45328,7 +45372,6 @@ function newThingUI(createContext, dataBrowserContext, thePanes) {
45328
45372
  // selectUI.parentNode.removeChild(selectUI) // Clean up
45329
45373
  // selectUIParent.removeChild(selectUI) // Clean up
45330
45374
  }
45331
-
45332
45375
  selectNewTool(); // toggle star to plain and menu vanish again
45333
45376
  })["catch"](function (err) {
45334
45377
  complain(err);
@@ -46636,29 +46679,29 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
46636
46679
  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; } } }; }
46637
46680
  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); }
46638
46681
  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 */ /**
46639
- * Signing in, signing up, profile and preferences reloading
46640
- * Type index management
46641
- *
46642
- * Many functions in this module take a context object which
46643
- * holds various RDF symbols, add to it, and return a promise of it.
46644
- *
46645
- * * `me` RDF symbol for the user's WebID
46646
- * * `publicProfile` The user's public profile, iff loaded
46647
- * * `preferencesFile` The user's personal preference file, iff loaded
46648
- * * `index.public` The user's public type index file
46649
- * * `index.private` The user's private type index file
46650
- *
46651
- * Not RDF symbols:
46652
- * * `noun` A string in english for the type of thing -- like "address book"
46653
- * * `instance` An array of nodes which are existing instances
46654
- * * `containers` An array of nodes of containers of instances
46655
- * * `div` A DOM element where UI can be displayed
46656
- * * `statusArea` A DOM element (opt) progress stuff can be displayed, or error messages
46657
- * *
46658
- * * Vocabulary: "load" loads a file if it exists;
46659
- * * 'Ensure" CREATES the file if it does not exist (if it can) and then loads it.
46660
- * @packageDocumentation
46661
- */ // eslint-disable-next-line camelcase
46682
+ * Signing in, signing up, profile and preferences reloading
46683
+ * Type index management
46684
+ *
46685
+ * Many functions in this module take a context object which
46686
+ * holds various RDF symbols, add to it, and return a promise of it.
46687
+ *
46688
+ * * `me` RDF symbol for the user's WebID
46689
+ * * `publicProfile` The user's public profile, iff loaded
46690
+ * * `preferencesFile` The user's personal preference file, iff loaded
46691
+ * * `index.public` The user's public type index file
46692
+ * * `index.private` The user's private type index file
46693
+ *
46694
+ * Not RDF symbols:
46695
+ * * `noun` A string in english for the type of thing -- like "address book"
46696
+ * * `instance` An array of nodes which are existing instances
46697
+ * * `containers` An array of nodes of containers of instances
46698
+ * * `div` A DOM element where UI can be displayed
46699
+ * * `statusArea` A DOM element (opt) progress stuff can be displayed, or error messages
46700
+ * *
46701
+ * * Vocabulary: "load" loads a file if it exists;
46702
+ * * 'Ensure" CREATES the file if it does not exist (if it can) and then loads it.
46703
+ * @packageDocumentation
46704
+ */ // eslint-disable-next-line camelcase
46662
46705
  var store = _solidLogic.solidLogicSingleton.store;
46663
46706
  var _solidLogicSingleton$ = _solidLogic.solidLogicSingleton.profile,
46664
46707
  loadPreferences = _solidLogicSingleton$.loadPreferences,
@@ -46696,7 +46739,6 @@ function ensureLoggedIn(context) {
46696
46739
  _solidLogic.authn.saveUser(webIdUri, context);
46697
46740
  resolve(context); // always pass growing context
46698
46741
  });
46699
-
46700
46742
  context.div.appendChild(box);
46701
46743
  });
46702
46744
  });
@@ -47027,6 +47069,15 @@ function renderScopeHeadingRow(context, store, scope) {
47027
47069
  function registrationList(_x9, _x10) {
47028
47070
  return _registrationList.apply(this, arguments);
47029
47071
  } // registrationList
47072
+ /**
47073
+ * Bootstrapping identity
47074
+ * (Called by `loginStatusBox()`)
47075
+ *
47076
+ * @param dom
47077
+ * @param setUserCallback
47078
+ *
47079
+ * @returns
47080
+ */
47030
47081
  function _registrationList() {
47031
47082
  _registrationList = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(context, options) {
47032
47083
  var dom, div, box, scopes, table, tbody, _iterator2, _step2, scope, headingRow, items, _iterator3, _step3, _loop;
@@ -47158,23 +47209,10 @@ function _registrationList() {
47158
47209
  }));
47159
47210
  return _registrationList.apply(this, arguments);
47160
47211
  }
47161
- function getDefaultSignInButtonStyle() {
47162
- return 'padding: 1em; border-radius:0.5em; font-size: 100%;';
47163
- }
47164
-
47165
- /**
47166
- * Bootstrapping identity
47167
- * (Called by `loginStatusBox()`)
47168
- *
47169
- * @param dom
47170
- * @param setUserCallback
47171
- *
47172
- * @returns
47173
- */
47174
47212
  function signInOrSignUpBox(dom, setUserCallback) {
47175
47213
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
47176
47214
  options = options || {};
47177
- var signInButtonStyle = options.buttonStyle || getDefaultSignInButtonStyle();
47215
+ var signInButtonStyle = options.buttonStyle || style.signInAndUpButtonStyle;
47178
47216
  var box = dom.createElement('div');
47179
47217
  var magicClassName = 'SolidSignInOrSignUpBox';
47180
47218
  debug.log('widgets.signInOrSignUpBox');
@@ -47187,7 +47225,7 @@ function signInOrSignUpBox(dom, setUserCallback) {
47187
47225
  box.appendChild(signInPopUpButton);
47188
47226
  signInPopUpButton.setAttribute('type', 'button');
47189
47227
  signInPopUpButton.setAttribute('value', 'Log in');
47190
- signInPopUpButton.setAttribute('style', "".concat(signInButtonStyle, "background-color: #eef;").concat(style.headerBannerLoginInput));
47228
+ signInPopUpButton.setAttribute('style', "".concat(signInButtonStyle).concat(style.headerBannerLoginInput) + style.signUpBackground);
47191
47229
  _solidLogic.authSession.onLogin(function () {
47192
47230
  var me = _solidLogic.authn.currentUser();
47193
47231
  // const sessionInfo = authSession.info
@@ -47228,7 +47266,7 @@ function signInOrSignUpBox(dom, setUserCallback) {
47228
47266
  box.appendChild(signupButton);
47229
47267
  signupButton.setAttribute('type', 'button');
47230
47268
  signupButton.setAttribute('value', 'Sign Up for Solid');
47231
- signupButton.setAttribute('style', "".concat(signInButtonStyle, "background-color: #efe;").concat(style.headerBannerLoginInput));
47269
+ signupButton.setAttribute('style', "".concat(signInButtonStyle).concat(style.headerBannerLoginInput) + style.signInBackground);
47232
47270
  signupButton.addEventListener('click', function (_event) {
47233
47271
  var signupMgr = new _signup.Signup();
47234
47272
  signupMgr.signup().then(function (uri) {
@@ -47396,7 +47434,7 @@ function loginStatusBox(dom) {
47396
47434
  });
47397
47435
  }
47398
47436
  function logoutButton(me, options) {
47399
- var signInButtonStyle = options.buttonStyle || getDefaultSignInButtonStyle();
47437
+ var signInButtonStyle = options.buttonStyle || style.signInAndUpButtonStyle;
47400
47438
  var logoutLabel = 'WebID logout';
47401
47439
  if (me) {
47402
47440
  var nick = _solidLogic.solidLogicSingleton.store.any(me, ns.foaf('nick')) || _solidLogic.solidLogicSingleton.store.any(me, ns.foaf('name'));
@@ -47408,7 +47446,7 @@ function loginStatusBox(dom) {
47408
47446
  // signOutButton.className = 'WebIDCancelButton'
47409
47447
  signOutButton.setAttribute('type', 'button');
47410
47448
  signOutButton.setAttribute('value', logoutLabel);
47411
- signOutButton.setAttribute('style', "".concat(signInButtonStyle, "background-color: #eee;"));
47449
+ signOutButton.setAttribute('style', "".concat(signInButtonStyle));
47412
47450
  signOutButton.addEventListener('click', logoutButtonHandler, false);
47413
47451
  return signOutButton;
47414
47452
  }
@@ -47965,10 +48003,8 @@ function matrixForQuery(dom, query, vx, vy, vvalue, options, whenDone) {
47965
48003
  return matrix.insertBefore(tr, ele); // return the tr
47966
48004
  }
47967
48005
  }
47968
-
47969
48006
  return matrix.appendChild(tr); // return the tr
47970
48007
  };
47971
-
47972
48008
  var columnNumberFor = function columnNumberFor(x1) {
47973
48009
  var xNT = x1.toNT(); // xNT is a NT string
47974
48010
  var col = null;
@@ -48145,21 +48181,21 @@ var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime
48145
48181
  var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
48146
48182
  var debug = _interopRequireWildcard(__webpack_require__(/*! ../debug */ "./node_modules/solid-ui/lib/debug.js"));
48147
48183
  var _iconBase = __webpack_require__(/*! ../iconBase */ "./node_modules/solid-ui/lib/iconBase.js");
48184
+ var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./node_modules/solid-ui/lib/style.js"));
48148
48185
  var widgets = _interopRequireWildcard(__webpack_require__(/*! ../widgets */ "./node_modules/solid-ui/lib/widgets/index.js"));
48149
48186
  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); }
48150
48187
  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; }
48151
- /// /////////////////////////////////////////////
48152
48188
  //
48153
48189
  // Media input widget
48154
48190
  //
48155
48191
  //
48156
48192
  // Workflow:
48157
- // The HTML5 functionality (on mobille) is to prompt for either
48158
- // a realtime camera capture , OR a selection from images already ont the device
48193
+ // The HTML5 functionality (on mobile) is to prompt for either
48194
+ // a realtime camera capture, OR a selection from images already on the device
48159
48195
  // (eg camera roll).
48160
48196
  //
48161
- // The solid alternative is to either take a phtoto
48162
- // or access cemra roll (etc) OR to access solid cloud storage of favorite photo almbums.
48197
+ // The solid alternative is to either take a photo
48198
+ // or access camera roll (etc) OR to access solid cloud storage of favorite photo albums.
48163
48199
  // (Especially latest taken ones)
48164
48200
  //
48165
48201
 
@@ -48168,10 +48204,6 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
48168
48204
  var cameraIcon = _iconBase.icons.iconBase + 'noun_Camera_1618446_000000.svg'; // Get it from github
48169
48205
  var retakeIcon = _iconBase.icons.iconBase + 'noun_479395.svg'; // Get it from github
48170
48206
 
48171
- var canvasWidth = '640';
48172
- var canvasHeight = '480';
48173
- var controlStyle = "border-radius: 0.5em; margin: 0.8em; width: ".concat(canvasWidth, "; height:").concat(canvasHeight, ";");
48174
- // const controlStyle = 'border-radius: 0.5em; margin: 0.8em; width: 320; height:240;'
48175
48207
  var contentType = 'image/png';
48176
48208
 
48177
48209
  /** A control to capture a picture using camera
@@ -48216,7 +48248,7 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
48216
48248
  player = main.appendChild(dom.createElement('video'));
48217
48249
  player.setAttribute('controls', '1');
48218
48250
  player.setAttribute('autoplay', '1');
48219
- player.setAttribute('style', controlStyle);
48251
+ player.setAttribute('style', style.controlStyle);
48220
48252
  if (!navigator.mediaDevices) {
48221
48253
  throw new Error('navigator.mediaDevices not available');
48222
48254
  }
@@ -48234,13 +48266,12 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
48234
48266
  main.removeChild(canvas);
48235
48267
  displayPlayer(); // Make new one as old one is stuck black
48236
48268
  }
48237
-
48238
48269
  function grabCanvas() {
48239
48270
  // Draw the video frame to the canvas.
48240
48271
  canvas = dom.createElement('canvas');
48241
- canvas.setAttribute('width', canvasWidth);
48242
- canvas.setAttribute('height', canvasHeight);
48243
- canvas.setAttribute('style', controlStyle);
48272
+ canvas.setAttribute('width', style.canvasWidth);
48273
+ canvas.setAttribute('height', style.canvasHeight);
48274
+ canvas.setAttribute('style', style.controlStyle);
48244
48275
  main.appendChild(canvas);
48245
48276
  var context = canvas.getContext('2d');
48246
48277
  context.drawImage(player, 0, 0, canvas.width, canvas.height);
@@ -48254,13 +48285,11 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
48254
48285
  // alert(msg)
48255
48286
  }, contentType); // toBlob
48256
48287
  }
48257
-
48258
48288
  function reviewImage() {
48259
48289
  sendButton.style.visibility = 'visible';
48260
48290
  retakeButton.style.visibility = 'visible';
48261
48291
  shutterButton.style.visibility = 'collapse'; // Hide for now
48262
48292
  }
48263
-
48264
48293
  function stopVideo() {
48265
48294
  if (player && player.srcObject) {
48266
48295
  player.srcObject.getVideoTracks().forEach(function (track) {
@@ -48297,9 +48326,9 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
48297
48326
  * @param {IndexedForumla} store - The quadstore to store data in
48298
48327
  * @param {fuunction} getImageDoc - returns NN of the image file to be created
48299
48328
  * @param {function<Node>} doneCallback - called with the image taken
48300
- * @returns {DomElement} - A div element with the buton in it
48329
+ * @returns {DomElement} - A div element with the button in it
48301
48330
  *
48302
- * This expacts the buttton to a large control when it is pressed
48331
+ * This expands the button to a large control when it is pressed
48303
48332
  */
48304
48333
 
48305
48334
  function cameraButton(dom, store, getImageDoc, doneCallback) {
@@ -48398,7 +48427,6 @@ function messageArea(dom, kb, subject, messageStore, options) {
48398
48427
  a.addEventListener('click', UI.widgets.openHrefInOutlineMode, true);
48399
48428
  a.setAttribute('style', 'color: #3B5998; text-decoration: none; '); // font-weight: bold
48400
48429
  }
48401
-
48402
48430
  a.textContent = text;
48403
48431
  return a;
48404
48432
  };
@@ -48567,7 +48595,6 @@ function messageArea(dom, kb, subject, messageStore, options) {
48567
48595
  };
48568
48596
  renderMessage(bindings, true); // fresh from elsewhere
48569
48597
  };
48570
-
48571
48598
  var renderMessage = function renderMessage(bindings, fresh) {
48572
48599
  var creator = bindings['?creator'];
48573
48600
  var message = bindings['?msg'];
@@ -48641,7 +48668,6 @@ function messageArea(dom, kb, subject, messageStore, options) {
48641
48668
  } else {
48642
48669
  messageTable.appendChild(tr); // not newestFirst
48643
48670
  }
48644
-
48645
48671
  var query;
48646
48672
  // Do this with a live query to pull in messages from web
48647
48673
  if (options.query) {
@@ -48661,7 +48687,6 @@ function messageArea(dom, kb, subject, messageStore, options) {
48661
48687
  function doneQuery() {
48662
48688
  messageTable.fresh = true; // any new are fresh and so will be greenish
48663
48689
  }
48664
-
48665
48690
  kb.query(query, renderMessage, undefined, doneQuery);
48666
48691
  div.refresh = function () {
48667
48692
  syncMessages(subject, messageTable);
@@ -48737,10 +48762,10 @@ Object.defineProperty(exports, "recordParticipation", ({
48737
48762
  return _participation.recordParticipation;
48738
48763
  }
48739
48764
  }));
48740
- Object.defineProperty(exports, "renderPartipants", ({
48765
+ Object.defineProperty(exports, "renderParticipants", ({
48741
48766
  enumerable: true,
48742
48767
  get: function get() {
48743
- return _participation.renderPartipants;
48768
+ return _participation.renderParticipants;
48744
48769
  }
48745
48770
  }));
48746
48771
  exports.xmlEncode = xmlEncode;
@@ -48758,14 +48783,15 @@ var _widgets = __webpack_require__(/*! ./widgets */ "./node_modules/solid-ui/lib
48758
48783
  var _utils = __webpack_require__(/*! ./utils */ "./node_modules/solid-ui/lib/utils/index.js");
48759
48784
  var _debug = __webpack_require__(/*! ./debug */ "./node_modules/solid-ui/lib/debug.js");
48760
48785
  var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
48786
+ var style = _interopRequireWildcard(__webpack_require__(/*! ./style */ "./node_modules/solid-ui/lib/style.js"));
48761
48787
  var _participation = __webpack_require__(/*! ./participation */ "./node_modules/solid-ui/lib/participation.js");
48762
48788
  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); }
48763
48789
  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; }
48764
48790
  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); }; }
48765
48791
  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; } } /** **************
48766
- * Notepad Widget
48767
- */ /** @module pad
48768
- */
48792
+ * Notepad Widget
48793
+ */ /** @module pad
48794
+ */
48769
48795
  var store = _solidLogic.solidLogicSingleton.store;
48770
48796
  var PAD = (0, _rdflib.Namespace)('http://www.w3.org/ns/pim/pad#');
48771
48797
  /**
@@ -48825,7 +48851,7 @@ function lightColorHash(author) {
48825
48851
  /** notepad
48826
48852
  *
48827
48853
  * @param {HTMLDocument} dom - the web page of the browser
48828
- * @param {NamedNode} padDoc - the document into which the particpation should be shown
48854
+ * @param {NamedNode} padDoc - the document in which the participation should be shown
48829
48855
  * @param {NamedNode} subject - the thing in which participation is happening
48830
48856
  * @param {NamedNode} me - person who is logged into the pod
48831
48857
  * @param {notepadOptions} options - the options that can be passed in consist of statusArea, exists
@@ -48838,7 +48864,7 @@ function notepad(dom, padDoc, subject, me, options) {
48838
48864
  if (me && !me.uri) throw new Error('UI.pad.notepad: Invalid userid');
48839
48865
  var updater = store.updater;
48840
48866
  var PAD = (0, _rdflib.Namespace)('http://www.w3.org/ns/pim/pad#');
48841
- table.setAttribute('style', 'padding: 1em; overflow: auto; resize: horizontal; min-width: 40em;');
48867
+ table.setAttribute('style', style.notepadStyle);
48842
48868
  var upstreamStatus = null;
48843
48869
  var downstreamStatus = null;
48844
48870
  if (options.statusArea) {
@@ -48847,10 +48873,10 @@ function notepad(dom, padDoc, subject, me, options) {
48847
48873
  upstreamStatus = tr.appendChild(dom.createElement('td'));
48848
48874
  downstreamStatus = tr.appendChild(dom.createElement('td'));
48849
48875
  if (upstreamStatus) {
48850
- upstreamStatus.setAttribute('style', 'width:50%');
48876
+ upstreamStatus.setAttribute('style', style.upstreamStatus);
48851
48877
  }
48852
48878
  if (downstreamStatus) {
48853
- downstreamStatus.setAttribute('style', 'width:50%');
48879
+ downstreamStatus.setAttribute('style', style.downstreamStatus);
48854
48880
  }
48855
48881
  }
48856
48882
  /* @@ TODO want to look into this, it seems upstream should be a boolean and default to false ?
@@ -48873,9 +48899,9 @@ function notepad(dom, padDoc, subject, me, options) {
48873
48899
  var setPartStyle = function setPartStyle(part, colors, pending) {
48874
48900
  var chunk = part.subject;
48875
48901
  colors = colors || '';
48876
- var baseStyle = 'font-size: 100%; font-family: monospace; width: 100%; border: none; white-space: pre-wrap;';
48877
- var headingCore = 'font-family: sans-serif; font-weight: bold; border: none;';
48878
- var 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%;'];
48902
+ var baseStyle = style.baseStyle;
48903
+ var headingCore = style.headingCore;
48904
+ var headingStyle = style.headingStyle;
48879
48905
  var author = kb.any(chunk, ns.dc('author'));
48880
48906
  if (!colors && author) {
48881
48907
  // Hash the user webid for now -- later allow user selection!
@@ -48887,9 +48913,9 @@ function notepad(dom, padDoc, subject, me, options) {
48887
48913
  // and when the indent is stored as a Number itself, not in an object.
48888
48914
  var indent = kb.any(chunk, PAD('indent'));
48889
48915
  indent = indent ? indent.value : 0;
48890
- var style = indent >= 0 ? baseStyle + 'text-indent: ' + indent * 3 + 'em;' : headingCore + headingStyle[-1 - indent];
48916
+ var localStyle = indent >= 0 ? baseStyle + 'text-indent: ' + indent * 3 + 'em;' : headingCore + headingStyle[-1 - indent];
48891
48917
  // ? baseStyle + 'padding-left: ' + (indent * 3) + 'em;'
48892
- part.setAttribute('style', style + colors);
48918
+ part.setAttribute('style', localStyle + colors);
48893
48919
  };
48894
48920
  var removePart = function removePart(part) {
48895
48921
  var chunk = part.subject;
@@ -48968,29 +48994,6 @@ function notepad(dom, padDoc, subject, me, options) {
48968
48994
  }
48969
48995
  });
48970
48996
  };
48971
-
48972
- // Use this sort of code to split the line when return pressed in the middle @@
48973
- /*
48974
- function doGetCaretPosition doGetCaretPosition (oField) {
48975
- var iCaretPos = 0
48976
- // IE Support
48977
- if (document.selection) {
48978
- // Set focus on the element to avoid IE bug
48979
- oField.focus()
48980
- // To get cursor position, get empty selection range
48981
- var oSel = document.selection.createRange()
48982
- // Move selection start to 0 position
48983
- oSel.moveStart('character', -oField.value.length)
48984
- // The caret position is selection length
48985
- iCaretPos = oSel.text.length
48986
- // Firefox suppor
48987
- } else if (oField.selectionStart || oField.selectionStart === '0') {
48988
- iCaretPos = oField.selectionStart
48989
- }
48990
- // Return results
48991
- return (iCaretPos)
48992
- }
48993
- */
48994
48997
  var addListeners = function addListeners(part, chunk) {
48995
48998
  part.addEventListener('keydown', function (event) {
48996
48999
  if (!updater) {
@@ -49031,9 +49034,9 @@ function notepad(dom, padDoc, subject, me, options) {
49031
49034
  // contents need to be sent again
49032
49035
  part.state = 4; // delete me
49033
49036
  return;
49034
- case 3: // being deleted already
49037
+ case 3: // already being deleted
49035
49038
  case 4:
49036
- // already deleme state
49039
+ // already deleted state
49037
49040
  return;
49038
49041
  case undefined:
49039
49042
  case 0:
@@ -49148,7 +49151,6 @@ function notepad(dom, padDoc, subject, me, options) {
49148
49151
  }
49149
49152
  });
49150
49153
  };
49151
-
49152
49154
  part.addEventListener('input', function inputChangeListener(_event) {
49153
49155
  // debug.log("input changed "+part.value);
49154
49156
  setPartStyle(part, undefined, true); // grey out - not synced
@@ -49334,8 +49336,6 @@ function notepad(dom, padDoc, subject, me, options) {
49334
49336
  }
49335
49337
  return;
49336
49338
  }
49337
- // var last = kb.the(undefined, PAD('previous'), subject)
49338
- // var chunk = first // = kb.the(subject, PAD('next'));
49339
49339
  var row;
49340
49340
 
49341
49341
  // First see which of the logical chunks have existing physical manifestations
@@ -49397,7 +49397,7 @@ function notepad(dom, padDoc, subject, me, options) {
49397
49397
  (0, _debug.log)(' reloaded OK');
49398
49398
  clearStatus();
49399
49399
  if (!consistencyCheck()) {
49400
- complain('CONSITENCY CHECK FAILED');
49400
+ complain('CONSISTENCY CHECK FAILED');
49401
49401
  } else {
49402
49402
  refreshTree(table);
49403
49403
  }
@@ -49407,7 +49407,6 @@ function notepad(dom, padDoc, subject, me, options) {
49407
49407
  (0, _debug.log)(' Already reloading - stop');
49408
49408
  return; // once only needed
49409
49409
  }
49410
-
49411
49410
  reloading = true;
49412
49411
  var retryTimeout = 1000; // ms
49413
49412
  var tryReload = function tryReload() {
@@ -49464,7 +49463,6 @@ function notepad(dom, padDoc, subject, me, options) {
49464
49463
  }
49465
49464
  });
49466
49465
  }
49467
-
49468
49466
  return table;
49469
49467
  }
49470
49468
 
@@ -49564,7 +49562,7 @@ Object.defineProperty(exports, "__esModule", ({
49564
49562
  exports.manageParticipation = manageParticipation;
49565
49563
  exports.participationObject = participationObject;
49566
49564
  exports.recordParticipation = recordParticipation;
49567
- exports.renderPartipants = renderPartipants;
49565
+ exports.renderParticipants = renderParticipants;
49568
49566
  var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js"));
49569
49567
  var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js"));
49570
49568
  var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js"));
@@ -49580,6 +49578,8 @@ var ns = _interopRequireWildcard(__webpack_require__(/*! ./ns */ "./node_modules
49580
49578
  var _widgets = __webpack_require__(/*! ./widgets */ "./node_modules/solid-ui/lib/widgets/index.js");
49581
49579
  var _utils = __webpack_require__(/*! ./utils */ "./node_modules/solid-ui/lib/utils/index.js");
49582
49580
  var _pad = __webpack_require__(/*! ./pad */ "./node_modules/solid-ui/lib/pad.js");
49581
+ var style = _interopRequireWildcard(__webpack_require__(/*! ./style */ "./node_modules/solid-ui/lib/style.js"));
49582
+ var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ./styleConstants */ "./node_modules/solid-ui/lib/styleConstants.js"));
49583
49583
  var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
49584
49584
  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); }
49585
49585
  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; }
@@ -49587,8 +49587,8 @@ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol
49587
49587
  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); }
49588
49588
  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; }
49589
49589
  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); }; }
49590
- 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 particpation of a person in any thing
49591
- */ // import { currentUser } from './authn/authn'
49590
+ 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
49591
+ */ // import { currentUser } from './authn/authn'
49592
49592
  var ParticipationTableElement = /*#__PURE__*/function (_HTMLTableElement) {
49593
49593
  (0, _inherits2["default"])(ParticipationTableElement, _HTMLTableElement);
49594
49594
  var _super = _createSuper(ParticipationTableElement);
@@ -49613,11 +49613,11 @@ var store = _solidLogic.solidLogicSingleton.store;
49613
49613
  * @param {NamedNode} unused1/document - the document to render (this argument is no longer used, but left in for backwards compatibility)
49614
49614
  * @param {NamedNode} subject - the thing in which the participation is happening
49615
49615
  * @param {NamedNode} unused2/me - user that is logged into the pod (this argument is no longer used, but left in for backwards compatibility)
49616
- * @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable these are used by the personTR button
49616
+ * @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable; these are used by the personTR button
49617
49617
  */
49618
- function renderPartipants(dom, table, unused1, subject, unused2, options) {
49619
- table.setAttribute('style', 'margin: 0.8em;');
49620
- var newRowForParticpation = function newRowForParticpation(parp) {
49618
+ function renderParticipants(dom, table, unused1, subject, unused2, options) {
49619
+ table.setAttribute('style', style.participantsStyle);
49620
+ var newRowForParticipation = function newRowForParticipation(parp) {
49621
49621
  var person = store.any(parp, ns.wf('participant'));
49622
49622
  var tr;
49623
49623
  if (!person) {
@@ -49625,13 +49625,14 @@ function renderPartipants(dom, table, unused1, subject, unused2, options) {
49625
49625
  tr.textContent = '???'; // Don't crash - invalid part'n entry
49626
49626
  return tr;
49627
49627
  }
49628
- var bg = store.anyValue(parp, ns.ui('backgroundColor')) || 'white';
49628
+ var bg = store.anyValue(parp, ns.ui('backgroundColor')) || _styleConstants["default"].participationDefaultBackground;
49629
49629
  var block = dom.createElement('div');
49630
- block.setAttribute('style', 'height: 1.5em; width: 1.5em; margin: 0.3em; border 0.01em solid #888; background-color: ' + bg);
49630
+ block.setAttribute('style', style.participantsBlock);
49631
+ block.style.backgroundColor = bg;
49631
49632
  tr = (0, _widgets.personTR)(dom, null, person, options);
49632
49633
  table.appendChild(tr);
49633
49634
  var td = dom.createElement('td');
49634
- td.setAttribute('style', 'vertical-align: middle;');
49635
+ td.setAttribute('style', style.personTableTD);
49635
49636
  td.appendChild(block);
49636
49637
  tr.insertBefore(td, tr.firstChild);
49637
49638
  return tr;
@@ -49645,16 +49646,16 @@ function renderPartipants(dom, table, unused1, subject, unused2, options) {
49645
49646
  var participations = parps.map(function (p) {
49646
49647
  return p[1];
49647
49648
  });
49648
- (0, _utils.syncTableToArray)(table, participations, newRowForParticpation);
49649
+ (0, _utils.syncTableToArray)(table, participations, newRowForParticipation);
49649
49650
  };
49650
49651
  table.refresh = syncTable;
49651
49652
  syncTable();
49652
49653
  return table;
49653
49654
  }
49654
49655
 
49655
- /** Record, or find old, Particpation object
49656
+ /** Record, or find old, Participation object
49656
49657
  *
49657
- * A particpaption object is a place to record things specifically about
49658
+ * A participation object is a place to record things specifically about
49658
49659
  * subject and the user, such as preferences, start of membership, etc
49659
49660
  * @param {NamedNode} subject - the thing in which the participation is happening
49660
49661
  * @param {NamedNode} document - where to record the data
@@ -49689,20 +49690,19 @@ function participationObject(subject, padDoc, me) {
49689
49690
  }
49690
49691
  candidates.sort(); // Pick the earliest
49691
49692
  // @@ Possibly, for extra credit, delete the others, if we have write access
49692
- debug.warn('Multiple particpation objects, picking earliest, in ' + padDoc);
49693
+ debug.warn('Multiple participation objects, picking earliest, in ' + padDoc);
49693
49694
  resolve(candidates[0][1]);
49694
49695
  // throw new Error('Multiple records of your participation')
49695
49696
  }
49696
-
49697
49697
  if (parps.length) {
49698
49698
  // If I am not already recorded
49699
- resolve(parps[0]); // returns the particpation object
49699
+ resolve(parps[0]); // returns the participation object
49700
49700
  } else {
49701
49701
  var _participation2 = (0, _widgets.newThing)(padDoc);
49702
49702
  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)];
49703
49703
  store.updater.update([], ins, function (uri, ok, errorMessage) {
49704
49704
  if (!ok) {
49705
- reject(new Error('Error recording your partipation: ' + errorMessage));
49705
+ reject(new Error('Error recording your participation: ' + errorMessage));
49706
49706
  } else {
49707
49707
  resolve(_participation2);
49708
49708
  }
@@ -49715,7 +49715,7 @@ function participationObject(subject, padDoc, me) {
49715
49715
  /** Record my participation and display participants
49716
49716
  *
49717
49717
  * @param {NamedNode} subject - the thing in which participation is happening
49718
- * @param {NamedNode} padDoc - the document into which the particpation should be recorded
49718
+ * @param {NamedNode} padDoc - the document into which the participation should be recorded
49719
49719
  * @param {DOMNode} refreshable - a DOM element whose refresh() is to be called if the change works
49720
49720
  *
49721
49721
  */
@@ -49731,24 +49731,22 @@ function recordParticipation(subject, padDoc, refreshable) {
49731
49731
  }
49732
49732
  if (parps.length) {
49733
49733
  // If I am not already recorded
49734
- return parps[0]; // returns the particpation object
49734
+ return parps[0]; // returns the participation object
49735
49735
  } else {
49736
49736
  if (!store.updater.editable(padDoc)) {
49737
- debug.log('Not recording participation, as no write acesss as ' + me + ' to ' + padDoc);
49737
+ debug.log('Not recording participation, as no write access as ' + me + ' to ' + padDoc);
49738
49738
  return null;
49739
49739
  }
49740
49740
  var participation = (0, _widgets.newThing)(padDoc);
49741
49741
  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)];
49742
49742
  store.updater.update([], ins, function (uri, ok, errorMessage) {
49743
49743
  if (!ok) {
49744
- throw new Error('Error recording your partipation: ' + errorMessage);
49744
+ throw new Error('Error recording your participation: ' + errorMessage);
49745
49745
  }
49746
49746
  if (refreshable && refreshable.refresh) {
49747
49747
  refreshable.refresh();
49748
49748
  }
49749
- // UI.pad.renderPartipants(dom, table, padDoc, subject, me, options)
49750
49749
  });
49751
-
49752
49750
  return participation;
49753
49751
  }
49754
49752
  }
@@ -49757,23 +49755,22 @@ function recordParticipation(subject, padDoc, refreshable) {
49757
49755
  *
49758
49756
  * @param {Document} dom - the web page loaded into the browser
49759
49757
  * @param {HTMLDivElement} container - the container element where the participants should be displayed
49760
- * @param {NamedNode} document - the document into which the particpation should be shown
49758
+ * @param {NamedNode} document - the document into which the participation should be shown
49761
49759
  * @param {NamedNode} subject - the thing in which participation is happening
49762
49760
  * @param {NamedNode} me - the logged in user
49763
- * @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable these are used by the personTR button
49761
+ * @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable; these are used by the personTR button
49764
49762
  *
49765
49763
  */
49766
49764
  function manageParticipation(dom, container, padDoc, subject, me, options) {
49767
49765
  var table = dom.createElement('table');
49768
49766
  container.appendChild(table);
49769
- renderPartipants(dom, table, padDoc, subject, me, options);
49767
+ renderParticipants(dom, table, padDoc, subject, me, options);
49770
49768
  var _participation;
49771
49769
  try {
49772
49770
  _participation = recordParticipation(subject, padDoc, table);
49773
49771
  } catch (e) {
49774
- container.appendChild((0, _widgets.errorMessageBlock)(dom, 'Error recording your partipation: ' + e)); // Clean up?
49772
+ container.appendChild((0, _widgets.errorMessageBlock)(dom, 'Error recording your participation: ' + e)); // Clean up?
49775
49773
  }
49776
-
49777
49774
  return table;
49778
49775
  }
49779
49776
  //# sourceMappingURL=participation.js.map
@@ -50143,41 +50140,34 @@ Signup.prototype.signup = function signup(signupUrl) {
50143
50140
  /*!********************************************!*\
50144
50141
  !*** ./node_modules/solid-ui/lib/style.js ***!
50145
50142
  \********************************************/
50146
- /***/ ((module, exports) => {
50143
+ /***/ ((module, exports, __webpack_require__) => {
50147
50144
 
50148
50145
  "use strict";
50149
50146
 
50150
50147
 
50148
+ var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
50151
50149
  Object.defineProperty(exports, "__esModule", ({
50152
50150
  value: true
50153
50151
  }));
50154
50152
  exports.style = void 0;
50153
+ var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ./styleConstants */ "./node_modules/solid-ui/lib/styleConstants.js"));
50155
50154
  // Common readable consistent stylesheet
50156
50155
  // to avoid using style sheets which are document-global
50157
50156
  // and make programmable style toggling with selection, drag over, etc easier
50158
-
50159
50157
  // These must all end with semicolon so they can be appended to.
50160
50158
 
50161
- var formBorderColor = '#888888'; // Mid-grey
50162
- var lowProfileLinkColor = '#3B5998'; // Grey-blue, e.g., for field labels linking to ontology
50163
- var formFieldNameBoxWidth = '8em'; // The fixed amount to get form fields to line up
50164
- // The latter we put in when switching awy from using tables. Getting allignment between
50165
- // fields in different groups though is hard problem.
50166
-
50167
50159
  var style = exports.style = {
50168
50160
  // styleModule
50169
50161
 
50170
50162
  checkboxStyle: 'color: black; font-size: 100%; padding-left: 0.5 em; padding-right: 0.5 em;',
50171
- checkboxInputStyle: 'font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em',
50163
+ checkboxInputStyle: 'font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em;',
50172
50164
  fieldLabelStyle: 'color: #3B5998; text-decoration: none;',
50173
- formSelectSTyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;',
50174
- textInputStyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;',
50165
+ formSelectStyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;',
50166
+ textInputStyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;',
50175
50167
  textInputStyleUneditable:
50176
50168
  // Color difference only
50177
- 'background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.4em;',
50178
- textInputSize: 20,
50179
- // Default text input size in characters roughly
50180
- buttonStyle: 'background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;',
50169
+ 'background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.4em;',
50170
+ buttonStyle: 'background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;',
50181
50171
  // 'background-color: #eef;
50182
50172
  commentStyle: 'padding: 0.7em; border: none; font-size: 100%; white-space: pre-wrap;',
50183
50173
  iconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 1em;',
@@ -50185,20 +50175,18 @@ var style = exports.style = {
50185
50175
  classIconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 0.2em; border: 0.1em solid green; padding: 0.2em; background-color: #efe;',
50186
50176
  // combine with buttonStyle
50187
50177
  confirmPopupStyle: 'padding: 0.7em; border-radius: 0.2em; border: 0.1em solid orange; background-color: white; box-shadow: 0.5em 0.9em #888;',
50188
- tabBorderRadius: '0.2em',
50189
50178
  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;',
50190
50179
  pendingeditModifier: 'color: #bbb;',
50191
- highlightColor: '#7C4DFF',
50192
- // Solid lavendar https://design.inrupt.com/atomic-core/?cat=Core
50193
-
50194
50180
  // Contacts
50195
50181
  personaBarStyle: 'width: 100%; height: 4em; background-color: #eee; vertical-align: middle;',
50196
50182
  searchInputStyle: 'border: 0.1em solid #444; border-radius: 0.2em; width: 100%; font-size: 100%; padding: 0.1em 0.6em; margin 0.2em;',
50197
50183
  autocompleteRowStyle: 'border: 0.2em solid straw;',
50198
50184
  // Login buttons
50199
- signInButtonStyle: 'padding: 1em; border-radius:0.2em; font-size: 100%;',
50185
+ signInAndUpButtonStyle: 'padding: 1em; border-radius:0.2em; font-size: 100%;',
50200
50186
  // was 0.5em radius
50201
-
50187
+ headerBannerLoginInput: 'margin: 0.75em 0 0.75em 0.5em !important; padding: 0.5em !important;',
50188
+ signUpBackground: 'background-color: #eef;',
50189
+ signInBackground: 'background-color: #efe;',
50202
50190
  // Forms
50203
50191
  heading1Style: 'font-size: 180%; font-weight: bold; color: #888888; padding: 0.5em; margin: 0.7em 0.0m;',
50204
50192
  // originally was brown; now grey
@@ -50209,87 +50197,104 @@ var style = exports.style = {
50209
50197
  heading4Style: 'font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;',
50210
50198
  // Lowest level used by default in small things
50211
50199
 
50212
- formBorderColor: formBorderColor,
50213
- // originally was brown; now grey
50214
- formHeadingColor: '#888888',
50215
- // originally was brown; now grey
50216
50200
  formHeadingStyle: 'font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;',
50217
50201
  // originally was brown; now grey
50218
50202
  formTextInput: 'font-size: 100%; margin: 0.1em; padding: 0.1em;',
50219
50203
  // originally used this
50220
- formGroupStyle: ["padding-left: 0em; border: 0.0em solid ".concat(formBorderColor, "; border-radius: 0.2em;"), // weight 0
50221
- "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
50204
+ formGroupStyle: ["padding-left: 0em; border: 0.0em solid ".concat(_styleConstants["default"].formBorderColor, "; border-radius: 0.2em;"), // weight 0
50205
+ "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
50222
50206
  ],
50223
- formFieldLabelStyle: "'color: ".concat(lowProfileLinkColor, "; text-decoration: none;'"),
50224
- formFieldNameBoxWidth: formFieldNameBoxWidth,
50225
- formFieldNameBoxStyle: "padding: 0.3em; vertical-align: middle; width:".concat(formFieldNameBoxWidth, ";"),
50226
- textInputBackgroundColor: '#eef',
50227
- textInputBackgroundColorUneditable: '#fff',
50228
- textInputColor: '#000',
50229
- textInputColorPending: '#888',
50207
+ formFieldLabelStyle: "color: ".concat(_styleConstants["default"].lowProfileLinkColor, "; text-decoration: none;"),
50208
+ formFieldNameBoxStyle: "padding: 0.3em; vertical-align: middle; width:".concat(_styleConstants["default"].formFieldNameBoxWidth, ";"),
50230
50209
  multilineTextInputStyle: 'font-size:100%; white-space: pre-wrap; background-color: #eef;' + ' border: 0.07em solid gray; padding: 1em 0.5em; margin: 1em 1em;',
50231
50210
  // Buttons
50232
50211
  renderAsDivStyle: 'display: flex; align-items: center; justify-content: space-between; height: 2.5em; padding: 1em;',
50233
50212
  imageDivStyle: 'width:2.5em; padding:0.5em; height: 2.5em;',
50234
50213
  linkDivStyle: 'width:2em; padding:0.5em; height: 4em;',
50235
50214
  // ACL
50236
- aclControlBoxContainer: 'margin: 1em',
50237
- aclControlBoxHeader: 'font-size: 120%; margin: 0 0 1rem',
50238
- aclControlBoxStatus: 'display: none; margin: 1rem 0',
50239
- aclControlBoxStatusRevealed: 'display: block',
50240
- aclGroupContent: 'maxWidth: 650',
50241
- accessGroupList: 'display: grid; grid-template-columns: 1fr; margin: 1em; width: 100%',
50242
- accessGroupListItem: 'display: grid; grid-template-columns: 100px auto 30%',
50243
- defaultsController: 'display: flex',
50244
- defaultsControllerNotice: 'color: #888; flexGrow: 1; fontSize: 80%',
50245
- bigButton: 'background-color: white; border: 0.1em solid #888; border-radius: 0.3em; max-width: 50%; padding-bottom: 1em; padding-top: 1em',
50246
- group: 'color: #888',
50247
- group1: 'color: green',
50248
- group2: 'color: #cc0',
50249
- group3: 'color: orange',
50250
- group5: 'color: red',
50251
- group9: 'color: blue',
50252
- group13: 'color: purple',
50253
- trustedAppAddApplicationsTable: 'background-color: #eee',
50254
- trustedAppCancelButton: 'float: right',
50255
- trustedAppControllerI: 'border-color: orange; borderRadius: 1em; borderWidth: 0.1em',
50256
- temporaryStatusInit: 'background: green',
50257
- temporaryStatusEnd: 'background: transparent; transition: background 5s linear',
50215
+ aclControlBoxContainer: 'margin: 1em;',
50216
+ aclControlBoxHeader: 'font-size: 120%; margin: 0 0 1rem;',
50217
+ aclControlBoxStatus: 'display: none; margin: 1rem 0;',
50218
+ aclControlBoxStatusRevealed: 'display: block;',
50219
+ aclGroupContent: 'maxWidth: 650;',
50220
+ accessGroupList: 'display: grid; grid-template-columns: 1fr; margin: 1em; width: 100%;',
50221
+ accessGroupListItem: 'display: grid; grid-template-columns: 100px auto 30%;',
50222
+ defaultsController: 'display: flex;',
50223
+ defaultsControllerNotice: 'color: #888; flexGrow: 1; fontSize: 80%;',
50224
+ bigButton: 'background-color: white; border: 0.1em solid #888; border-radius: 0.3em; max-width: 50%; padding-bottom: 1em; padding-top: 1em;',
50225
+ group: 'color: #888;',
50226
+ group1: 'color: green;',
50227
+ group2: 'color: #cc0;',
50228
+ group3: 'color: orange;',
50229
+ group5: 'color: red;',
50230
+ group9: 'color: blue;',
50231
+ group13: 'color: purple;',
50232
+ trustedAppAddApplicationsTable: 'background-color: #eee;',
50233
+ trustedAppCancelButton: 'float: right;',
50234
+ trustedAppControllerI: 'border-color: orange; border-radius: 1em; border-width: 0.1em;',
50235
+ temporaryStatusInit: 'background: green;',
50236
+ temporaryStatusEnd: 'background: transparent; transition: background 5s linear;',
50258
50237
  // header
50259
- 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',
50260
- 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%)',
50261
- headerUserMenuTrigger: 'background: none; border: 0; cursor: pointer; width: 60px; height: 60px',
50262
- headerUserMenuTriggerImg: 'border-radius: 50%; height: 56px; width: 28px !important',
50263
- headerUserMenuButton: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%',
50264
- 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%)',
50265
- headerUserMenuList: 'list-style: none; margin: 0; padding: 0',
50266
- headerUserMenuListDisplay: 'list-style: none; margin: 0; padding: 0; display:true',
50267
- headerUserMenuNavigationMenu: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: true',
50268
- headerUserMenuNavigationMenuNotDisplayed: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: none',
50269
- headerUserMenuListItem: 'border-bottom: solid 1px #000000',
50270
- headerUserMenuPhoto: 'border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: cover; height: 50px; width: 50px',
50271
- headerBanner: 'box-shadow: 0px 1px 4px #000000; display: flex; justify-content: space-between; padding: 0 1.5em; margin-bottom: 4px',
50272
- headerBannerLink: 'display: block',
50273
- headerBannerRightMenu: 'display: flex',
50274
- headerBannerLogin: 'margin-left: auto',
50275
- allChildrenVisible: 'display:true',
50276
- headerBannerLoginInput: 'margin: 0.75em 0 0.75em 0.5em !important; padding: 0.5em !important',
50277
- headerBannerUserMenu: 'border-left: solid 1px #000000; margin-left: auto',
50278
- headerBannerHelpMenu: 'border-left: solid 1px #000000; margin.left: auto',
50279
- headerBannerIcon: 'background-size: 65px 60px !important; height: 60px !important; width: 65px !important',
50238
+ 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;',
50239
+ 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%);',
50240
+ headerUserMenuTrigger: 'background: none; border: 0; cursor: pointer; width: 60px; height: 60px;',
50241
+ headerUserMenuTriggerImg: 'border-radius: 50%; height: 56px; width: 28px !important;',
50242
+ headerUserMenuButton: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%;',
50243
+ 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%);',
50244
+ headerUserMenuList: 'list-style: none; margin: 0; padding: 0;',
50245
+ headerUserMenuListDisplay: 'list-style: none; margin: 0; padding: 0; display:true;',
50246
+ headerUserMenuNavigationMenu: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: true;',
50247
+ headerUserMenuNavigationMenuNotDisplayed: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: none;',
50248
+ headerUserMenuListItem: 'border-bottom: solid 1px #000000;',
50249
+ headerUserMenuPhoto: 'border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: cover; height: 50px; width: 50px;',
50250
+ headerBanner: 'box-shadow: 0px 1px 4px #000000; display: flex; justify-content: space-between; padding: 0 1.5em; margin-bottom: 4px;',
50251
+ headerBannerLink: 'display: block;',
50252
+ headerBannerRightMenu: 'display: flex;',
50253
+ headerBannerLogin: 'margin-left: auto;',
50254
+ allChildrenVisible: 'display:true;',
50255
+ headerBannerUserMenu: 'border-left: solid 1px #000000; margin-left: auto;',
50256
+ headerBannerHelpMenu: 'border-left: solid 1px #000000; margin-left: auto;',
50257
+ headerBannerIcon: 'background-size: 65px 60px !important; height: 60px !important; width: 65px !important;',
50280
50258
  // may just be 65px round($icon-size * 352 / 322);
50281
50259
 
50282
50260
  // footer
50283
- footer: 'border-top: solid 1px $divider-color; font-size: 0.9em; padding: 0.5em 1.5em',
50261
+ footer: 'border-top: solid 1px $divider-color; font-size: 0.9em; padding: 0.5em 1.5em;',
50284
50262
  // buttons
50285
- 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',
50286
- 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',
50287
- 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',
50288
- 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',
50289
- 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',
50290
- 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',
50291
- 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',
50292
- 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'
50263
+ 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;',
50264
+ 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;',
50265
+ 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;',
50266
+ 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;',
50267
+ 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;',
50268
+ 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;',
50269
+ 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;',
50270
+ 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;',
50271
+ // media
50272
+ controlStyle: "border-radius: 0.5em; margin: 0.8em; width:".concat(_styleConstants["default"].mediaModuleCanvasWidth, "; height:").concat(_styleConstants["default"].mediaModuleCanvasHeight, ";"),
50273
+ // dragAndDrop
50274
+ dragEvent: 'background-color: #ccc; border: 0.25em dashed black; border-radius: 0.3em;',
50275
+ dropEvent: 'background-color: white; border: 0em solid black;',
50276
+ restoreStyle: 'background-color: white;',
50277
+ // errors
50278
+ errorCancelButton: 'width: 2em; height: 2em; align: right;',
50279
+ errorMessageBlockStyle: 'margin: 0.1em; padding: 0.5em; border: 0.05em solid gray; color:black;',
50280
+ // pad
50281
+ notepadStyle: 'padding: 1em; overflow: auto; resize: horizontal; min-width: 40em;',
50282
+ upstreamStatus: 'width: 50%;',
50283
+ downstreamStatus: 'width: 50%;',
50284
+ baseStyle: 'font-size: 100%; font-family: monospace; width: 100%; border: none; white-space: pre-wrap;',
50285
+ headingCore: 'font-family: sans-serif; font-weight: bold; border: none;',
50286
+ 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%;'],
50287
+ // participation
50288
+ participantsStyle: 'margin: 0.8em;',
50289
+ participantsBlock: 'height: 1.5em; width: 1.5em; margin: 0.3em; border 0.01em solid #888;',
50290
+ personTableTD: 'vertical-align: middle;',
50291
+ // tabs
50292
+ tabsNavElement: 'margin: 0;',
50293
+ tabsRootElement: 'display: flex; height: 100%; width: 100%;',
50294
+ tabsMainElement: 'margin: 0; width:100%; height: 100%;',
50295
+ tabContainer: 'list-style-type: none; display: flex; height: 100%; width: 100%; margin: 0; padding: 0;',
50296
+ makeNewSlot: 'background: none; border: none; font: inherit; cursor: pointer;',
50297
+ ellipsis: 'position: absolute; right: 0; bottom: 0; width: 20%; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit;'
50293
50298
  };
50294
50299
  style.setStyle = function setStyle(ele, styleName) {
50295
50300
  ele.style = style[styleName];
@@ -50299,6 +50304,51 @@ module.exports = style; // @@ No way to do this in ESM
50299
50304
 
50300
50305
  /***/ }),
50301
50306
 
50307
+ /***/ "./node_modules/solid-ui/lib/styleConstants.js":
50308
+ /*!*****************************************************!*\
50309
+ !*** ./node_modules/solid-ui/lib/styleConstants.js ***!
50310
+ \*****************************************************/
50311
+ /***/ ((__unused_webpack_module, exports) => {
50312
+
50313
+ "use strict";
50314
+
50315
+
50316
+ Object.defineProperty(exports, "__esModule", ({
50317
+ value: true
50318
+ }));
50319
+ exports["default"] = void 0;
50320
+ var _default = exports["default"] = {
50321
+ highlightColor: '#7C4DFF',
50322
+ // Solid lavender https://design.inrupt.com/atomic-core/?cat=Core
50323
+
50324
+ formBorderColor: '#888888',
50325
+ // Mid-grey
50326
+ formHeadingColor: '#888888',
50327
+ // originally was brown; now grey
50328
+ lowProfileLinkColor: '#3B5998',
50329
+ // Grey-blue, e.g., for field labels linking to ontology
50330
+ formFieldNameBoxWidth: '8em',
50331
+ // The fixed amount to get form fields to line up
50332
+ // We put in the latter when switching away from using tables. However, getting
50333
+ // alignment between fields in different groups is a hard problem.
50334
+
50335
+ mediaModuleCanvasWidth: '640',
50336
+ mediaModuleCanvasHeight: '480',
50337
+ textInputSize: 20,
50338
+ // Rough default text input size, in characters
50339
+ tabBorderRadius: '0.2em',
50340
+ textInputBackgroundColor: '#eef',
50341
+ textInputBackgroundColorUneditable: '#fff',
50342
+ textInputColor: '#000',
50343
+ textInputColorPending: '#888',
50344
+ defaultErrorBackgroundColor: '#fee',
50345
+ participationDefaultBackground: 'white',
50346
+ basicMaxLength: '4096'
50347
+ };
50348
+ //# sourceMappingURL=styleConstants.js.map
50349
+
50350
+ /***/ }),
50351
+
50302
50352
  /***/ "./node_modules/solid-ui/lib/style_multiSelect.js":
50303
50353
  /*!********************************************************!*\
50304
50354
  !*** ./node_modules/solid-ui/lib/style_multiSelect.js ***!
@@ -50809,7 +50859,6 @@ function renderTableViewPane(doc, options) {
50809
50859
  if (this.predicate.sameTerm(ns.rdf('type')) && this.superClass) {
50810
50860
  return utils.label(this.superClass, true); // do initial cap
50811
50861
  }
50812
-
50813
50862
  return utils.label(this.predicate);
50814
50863
  } else if (this.variable) {
50815
50864
  return this.variable.toString();
@@ -51644,7 +51693,6 @@ function renderTableViewPane(doc, options) {
51644
51693
  }
51645
51694
  }
51646
51695
  }
51647
-
51648
51696
  tr.appendChild(td);
51649
51697
  }
51650
51698
 
@@ -51751,7 +51799,6 @@ function renderTableViewPane(doc, options) {
51751
51799
  // oldStyle = rows[i]._htmlRow.getAttribute('style') || ''
51752
51800
  // rows[i]._htmlRow.style.background = '#ffe'; //setAttribute('style', ' background-color: #ffe;')// yellow
51753
51801
  }
51754
-
51755
51802
  var onResult = function onResult(values) {
51756
51803
  if (!query.running) {
51757
51804
  return;
@@ -51821,7 +51868,6 @@ function renderTableViewPane(doc, options) {
51821
51868
  }
51822
51869
  if (options.onDone) options.onDone(resultDiv); // return div makes testing easier
51823
51870
  };
51824
-
51825
51871
  kb.query(query, onResult, undefined, onDone);
51826
51872
  }
51827
51873
 
@@ -51969,6 +52015,7 @@ function renderTableViewPane(doc, options) {
51969
52015
 
51970
52016
 
51971
52017
  var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
52018
+ var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
51972
52019
  Object.defineProperty(exports, "__esModule", ({
51973
52020
  value: true
51974
52021
  }));
@@ -51985,7 +52032,10 @@ var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/ru
51985
52032
  var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
51986
52033
  var _widgets = __webpack_require__(/*! ./widgets */ "./node_modules/solid-ui/lib/widgets/index.js");
51987
52034
  var _utils = __webpack_require__(/*! ./utils */ "./node_modules/solid-ui/lib/utils/index.js");
52035
+ var style = _interopRequireWildcard(__webpack_require__(/*! ./style */ "./node_modules/solid-ui/lib/style.js"));
51988
52036
  var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
52037
+ 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); }
52038
+ 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; }
51989
52039
  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); }; }
51990
52040
  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; } }
51991
52041
  /**
@@ -52167,11 +52217,12 @@ var TabElement = /*#__PURE__*/function (_HTMLElement3) {
52167
52217
  *
52168
52218
  * @param options
52169
52219
  */
52220
+ var tabsDefaultBackgroundColor = '#ddddcc';
52170
52221
  function tabWidget(options) {
52171
52222
  var subject = options.subject;
52172
52223
  var dom = options.dom || document;
52173
52224
  var orientation = parseInt(options.orientation || '0');
52174
- var backgroundColor = options.backgroundColor || '#ddddcc';
52225
+ var backgroundColor = options.backgroundColor || tabsDefaultBackgroundColor;
52175
52226
  var flipped = orientation & 2;
52176
52227
  var vertical = orientation & 1;
52177
52228
  var onClose = options.onClose;
@@ -52182,13 +52233,15 @@ function tabWidget(options) {
52182
52233
  var bodyMainStyle = "flex: 2; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(selectedColor, "; padding: 1em;");
52183
52234
  var rootElement = dom.createElement('div'); // 20200117a
52184
52235
 
52185
- rootElement.setAttribute('style', 'display: flex; height: 100%; width: 100%; flex-direction: ' + (vertical ? 'row' : 'column') + (flipped ? '-reverse;' : ';'));
52236
+ rootElement.setAttribute('style', style.tabsRootElement);
52237
+ rootElement.style.flexDirection = (vertical ? 'row' : 'column') + (flipped ? '-reverse' : '');
52186
52238
  var navElement = rootElement.appendChild(dom.createElement('nav'));
52187
- navElement.setAttribute('style', 'margin: 0;');
52239
+ navElement.setAttribute('style', style.tabsNavElement);
52188
52240
  var mainElement = rootElement.appendChild(dom.createElement('main'));
52189
- mainElement.setAttribute('style', 'margin: 0; width:100%; height: 100%;'); // override tabbedtab.css
52241
+ mainElement.setAttribute('style', style.tabsMainElement); // override tabbedtab.css
52190
52242
  var tabContainer = navElement.appendChild(dom.createElement('ul'));
52191
- tabContainer.setAttribute('style', "\n list-style-type: none;\n display: flex;\n height: 100%;\n width: 100%;\n margin: 0;\n padding: 0;\n flex-direction: ".concat(vertical ? 'column' : 'row', "\n "));
52243
+ tabContainer.setAttribute('style', style.tabContainer);
52244
+ tabContainer.style.flexDirection = "".concat(vertical ? 'column' : 'row');
52192
52245
  var tabElement = 'li';
52193
52246
  var bodyContainer = mainElement;
52194
52247
  rootElement.tabContainer = tabContainer;
@@ -52208,7 +52261,7 @@ function tabWidget(options) {
52208
52261
  rootElement.refresh = orderedSync;
52209
52262
  orderedSync();
52210
52263
  if (!options.startEmpty && tabContainer.children.length && options.selectedTab) {
52211
- var selectedTab0 = Array.from(tabContainer.children) // Version left for compatability with ??
52264
+ var selectedTab0 = Array.from(tabContainer.children) // Version left for compatibility with ??
52212
52265
  .map(function (tab) {
52213
52266
  return tab.firstChild;
52214
52267
  }).find(function (tab) {
@@ -52231,7 +52284,6 @@ function tabWidget(options) {
52231
52284
  } else if (!options.startEmpty) {
52232
52285
  tabContainer.children[0].firstChild.click(); // Open first tab
52233
52286
  }
52234
-
52235
52287
  return rootElement;
52236
52288
  function addCancelButton(tabContainer) {
52237
52289
  if (tabContainer.dataset.onCloseSet) {
@@ -52262,7 +52314,7 @@ function tabWidget(options) {
52262
52314
  ele.setAttribute('style', unselectedStyle);
52263
52315
  ele.subject = item;
52264
52316
  var div = ele.appendChild(dom.createElement('button'));
52265
- div.setAttribute('style', 'background: none; border: none; font: inherit; cursor: pointer');
52317
+ div.setAttribute('style', style.makeNewSlot);
52266
52318
  div.onclick = function () {
52267
52319
  resetTabStyle();
52268
52320
  resetBodyStyle();
@@ -52279,7 +52331,7 @@ function tabWidget(options) {
52279
52331
  if (options.renderTabSettings && ele.subject) {
52280
52332
  var ellipsis = dom.createElement('button');
52281
52333
  ellipsis.textContent = '...';
52282
- ellipsis.setAttribute('style', 'position: absolute; right: 0; bottom: 0; width: 20%; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit;');
52334
+ ellipsis.setAttribute('style', style.ellipsis);
52283
52335
  ellipsis.onclick = function () {
52284
52336
  resetTabStyle();
52285
52337
  resetBodyStyle();
@@ -52327,7 +52379,6 @@ function tabWidget(options) {
52327
52379
  if (!differ && items.length === tabContainer.children.length) {
52328
52380
  return; // The two just match in order: a case to optimize for
52329
52381
  }
52330
-
52331
52382
  for (right = tabContainer.children.length - 1; right >= 0; right--) {
52332
52383
  slot = tabContainer.children[right];
52333
52384
  j = right - tabContainer.children.length + items.length;
@@ -52713,7 +52764,6 @@ function hashColor(who) {
52713
52764
  };
52714
52765
  return '#' + (hash(who) & 0xffffff | 0xc0c0c0).toString(16); // c0c0c0 or 808080 forces pale
52715
52766
  }
52716
-
52717
52767
  function genUuid() {
52718
52768
  // http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
52719
52769
  return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
@@ -52788,7 +52838,6 @@ function syncTableToArrayReOrdered(table, things, createNewRow) {
52788
52838
  var row = table.children[i];
52789
52839
  elementMap[row.subject.toNT()] = row; // More sophisticaed would be to have a bag of duplicates
52790
52840
  }
52791
-
52792
52841
  for (var g = 0; g < things.length; g++) {
52793
52842
  var thing = things[g];
52794
52843
  if (g >= table.children.length) {
@@ -52892,7 +52941,6 @@ function getAbout(kb, target) {
52892
52941
  // if (level.tagName=='TR') return undefined//this is to prevent literals passing through
52893
52942
  }
52894
52943
  }
52895
-
52896
52944
  UI.log.debug('getAbout: No about found');
52897
52945
  return undefined;
52898
52946
  }
@@ -53000,7 +53048,6 @@ function shortName(uri) {
53000
53048
  for (var _ns in this.prefixes) {
53001
53049
  namespaces[this.prefixes[_ns]] = _ns; // reverse index
53002
53050
  }
53003
-
53004
53051
  var pok;
53005
53052
  var canUse = function canUse(pp) {
53006
53053
  // if (!__Serializer.prototype.validPrefix.test(pp)) return false; // bad format
@@ -53050,11 +53097,9 @@ function ontologyLabel(term) {
53050
53097
  return term.uri + '?!'; // strange should have # or /
53051
53098
  }
53052
53099
  }
53053
-
53054
53100
  for (var _ns2 in UI.ns) {
53055
53101
  namespaces[UI.ns[_ns2]] = _ns2; // reverse index
53056
53102
  }
53057
-
53058
53103
  try {
53059
53104
  return namespaces[s];
53060
53105
  } catch (e) {}
@@ -53073,7 +53118,6 @@ function ontologyLabel(term) {
53073
53118
  }
53074
53119
  }
53075
53120
  }
53076
-
53077
53121
  function labelWithOntology(x, initialCap) {
53078
53122
  var t = _solidLogic.store.findTypeURIs(x);
53079
53123
  if (t[UI.ns.rdf('Predicate').uri] || t[UI.ns.rdfs('Class').uri]) {
@@ -53564,28 +53608,28 @@ Object.defineProperty(exports, "__esModule", ({
53564
53608
  }));
53565
53609
  exports.versionInfo = void 0;
53566
53610
  var versionInfo = exports.versionInfo = {
53567
- buildTime: '2023-11-01T10:00:12Z',
53568
- commit: '408c1ba06cc43e7d1a006287fe11b9938f8b7b7b',
53611
+ buildTime: '2023-12-04T10:26:57Z',
53612
+ commit: 'd6736c162182daa4832d184fd6d2cb74ae6f44e3',
53569
53613
  npmInfo: {
53570
- 'solid-ui': '2.4.29',
53614
+ 'solid-ui': '2.4.32',
53571
53615
  npm: '8.19.4',
53572
- node: '16.14.0',
53573
- v8: '9.4.146.24-node.20',
53616
+ node: '16.20.2',
53617
+ v8: '9.4.146.26-node.26',
53574
53618
  uv: '1.43.0',
53575
53619
  zlib: '1.2.11',
53576
53620
  brotli: '1.0.9',
53577
- ares: '1.18.1',
53621
+ ares: '1.19.1',
53578
53622
  modules: '93',
53579
- nghttp2: '1.45.1',
53623
+ nghttp2: '1.47.0',
53580
53624
  napi: '8',
53581
- llhttp: '6.0.4',
53582
- openssl: '1.1.1m+quic',
53583
- cldr: '40.0',
53584
- icu: '70.1',
53585
- tz: '2021a3',
53625
+ llhttp: '6.0.11',
53626
+ openssl: '1.1.1v+quic',
53627
+ cldr: '41.0',
53628
+ icu: '71.1',
53629
+ tz: '2022f',
53586
53630
  unicode: '14.0',
53587
- ngtcp2: '0.1.0-DEV',
53588
- nghttp3: '0.1.0-DEV'
53631
+ ngtcp2: '0.8.1',
53632
+ nghttp3: '0.7.0'
53589
53633
  }
53590
53634
  };
53591
53635
  //# sourceMappingURL=versionInfo.js.map
@@ -53666,7 +53710,9 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
53666
53710
  * UI Widgets such as buttons
53667
53711
  * @packageDocumentation
53668
53712
  */
53713
+
53669
53714
  /* global alert */
53715
+
53670
53716
  var iconBase = _iconBase.icons.iconBase;
53671
53717
  var cancelIconURI = iconBase + 'noun_1180156.svg'; // black X
53672
53718
  var checkIconURI = iconBase + 'noun_1180158.svg'; // green checkmark; Continue
@@ -53894,7 +53940,6 @@ function findImageFromURI(x) {
53894
53940
  // message: is apple bug-- should be mid:
53895
53941
  return iconDir + 'noun_480183.svg'; // envelope noun_567486
53896
53942
  }
53897
-
53898
53943
  if (x.uri.startsWith('mailto:')) {
53899
53944
  return iconDir + 'noun_567486.svg'; // mailbox - an email desitination
53900
53945
  }
@@ -53905,7 +53950,6 @@ function findImageFromURI(x) {
53905
53950
  // todo: pick up a possible favicon for the web page itself from a link
53906
53951
  // was: return iconDir + 'noun_681601.svg' // document - under solid assumptions
53907
53952
  }
53908
-
53909
53953
  return null;
53910
53954
  }
53911
53955
  return iconDir + 'noun_10636_grey.svg'; // Grey Circle - some thing
@@ -53934,7 +53978,6 @@ function findImage(thing) {
53934
53978
  if (thing.sameTerm(ns.foaf('Agent')) || thing.sameTerm(ns.rdf('Resource'))) {
53935
53979
  return iconDir + 'noun_98053.svg'; // Globe
53936
53980
  }
53937
-
53938
53981
  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'));
53939
53982
  return image ? image.uri : null;
53940
53983
  }
@@ -53975,7 +54018,6 @@ function trySetImage(element, thing, iconForClassMap) {
53975
54018
  return false; // maybe we can do better
53976
54019
  }
53977
54020
  }
53978
-
53979
54021
  element.setAttribute('src', iconBase + 'noun_10636_grey.svg'); // Grey Circle - some thing
53980
54022
  return false; // we can do better
53981
54023
  }
@@ -54018,7 +54060,6 @@ function faviconOrDefault(dom, x) {
54018
54060
  };
54019
54061
  image.setAttribute('src', iconBase + (isOrigin(x) ? 'noun_15177.svg' : 'noun_681601.svg') // App symbol vs document
54020
54062
  );
54021
-
54022
54063
  if (x.uri && x.uri.startsWith('https:') && x.uri.indexOf('#') < 0) {
54023
54064
  var res = dom.createElement('object'); // favico with a fallback of a default image if no favicon
54024
54065
  res.setAttribute('data', tempSite(x) + 'favicon.ico');
@@ -54198,7 +54239,6 @@ function cancelButton(dom, handler) {
54198
54239
  // sigh for tsc
54199
54240
  b.firstChild.style.opacity = '0.3'; // Black X is too harsh: current language is grey X
54200
54241
  }
54201
-
54202
54242
  return b;
54203
54243
  }
54204
54244
 
@@ -54286,7 +54326,6 @@ function renderAsRow(dom, pred, obj, options) {
54286
54326
  } else {
54287
54327
  setName(td2, obj); // This is async
54288
54328
  }
54289
-
54290
54329
  if (options.deleteFunction) {
54291
54330
  deleteButtonWithCheck(dom, td3, options.noun || 'one', options.deleteFunction);
54292
54331
  }
@@ -54475,7 +54514,6 @@ function attachmentList(dom, subject, div) {
54475
54514
  var attachmentTable = attachmentRight.appendChild(dom.createElement('table'));
54476
54515
  attachmentTable.appendChild(dom.createElement('tr')) // attachmentTableTop
54477
54516
  ;
54478
-
54479
54517
  attachmentOuter.refresh = refresh; // Participate in downstream changes
54480
54518
  // ;(attachmentTable as any).refresh = refresh <- outer should be best?
54481
54519
 
@@ -54496,7 +54534,6 @@ function attachmentList(dom, subject, div) {
54496
54534
  // buttonDiv.children[1].style = buttonStyle
54497
54535
  }
54498
54536
  }
54499
-
54500
54537
  return attachmentOuter;
54501
54538
  }
54502
54539
 
@@ -54799,7 +54836,6 @@ function twoLineTransaction(dom, x) {
54799
54836
  if (!y) failed += '@@ No value for ' + p + '! ';
54800
54837
  return y ? utils.escapeForXML(y.value) : '?'; // @@@@
54801
54838
  };
54802
-
54803
54839
  var box = dom.createElement('table');
54804
54840
  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>");
54805
54841
  if (failed) {
@@ -54999,39 +55035,34 @@ exports.makeDropTarget = makeDropTarget;
54999
55035
  exports.uploadFiles = uploadFiles;
55000
55036
  var debug = _interopRequireWildcard(__webpack_require__(/*! ../debug */ "./node_modules/solid-ui/lib/debug.js"));
55001
55037
  var mime = _interopRequireWildcard(__webpack_require__(/*! mime-types */ "./node_modules/mime-types/index.js"));
55038
+ var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./node_modules/solid-ui/lib/style.js"));
55002
55039
  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); }
55003
55040
  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; }
55004
55041
  /* Drag and drop common functionality
55005
55042
  *
55006
55043
  * It is easy to make something draggable, or to make it a drag target!
55007
- * Just call the functions below. In a solid world, any part of the UI which
55008
- * represent one thing which has a UR, should be made draggable using makeDraggable
55044
+ * Just call the functions below. In a Solid world, any part of the UI which
55045
+ * represents one thing which has a URI, should be made draggable using makeDraggable.
55009
55046
  * Any list of things should typically allow you to drag new members of the list
55010
55047
  * onto it.
55011
- * The file upload function uploadFiles is provided as often of someone drags a file from the computer
55012
- * desktop, you may want to upload it into the pod.
55048
+ * The file upload function, uploadFiles, is provided as often as someone drags a file from the computer
55049
+ * desktop. You may want to upload it into the pod.
55013
55050
  */
55014
55051
 
55015
55052
  /* global FileReader alert */
55016
55053
 
55017
55054
  function makeDropTarget(ele, droppedURIHandler, droppedFileHandler) {
55018
55055
  var dragoverListener = function dragoverListener(e) {
55019
- e.preventDefault(); // Neeed else drop does not work [sic]
55056
+ e.preventDefault(); // Need this; otherwise, drop does not work.
55020
55057
  e.dataTransfer.dropEffect = 'copy';
55021
55058
  };
55022
55059
  var dragenterListener = function dragenterListener(e) {
55023
55060
  debug.log('dragenter event dropEffect: ' + e.dataTransfer.dropEffect);
55024
- if (this.style) {
55061
+ if (this.localStyle) {
55025
55062
  // necessary not sure when
55026
55063
  if (!this.savedStyle) {
55027
- this.savedStyle = {};
55028
- this.savedStyle.border = this.style.border;
55029
- this.savedStyle.backgroundColor = this.style.backgroundColor;
55030
- this.savedStyle.borderRadius = this.style.borderRadius;
55064
+ this.savedStyle = style.dragEvent;
55031
55065
  }
55032
- this.style.backgroundColor = '#ccc';
55033
- this.style.border = '0.25em dashed black';
55034
- this.style.borderRadius = '0.3em';
55035
55066
  }
55036
55067
  e.dataTransfer.dropEffect = 'link';
55037
55068
  debug.log('dragenter event dropEffect 2: ' + e.dataTransfer.dropEffect);
@@ -55039,12 +55070,9 @@ function makeDropTarget(ele, droppedURIHandler, droppedFileHandler) {
55039
55070
  var dragleaveListener = function dragleaveListener(e) {
55040
55071
  debug.log('dragleave event dropEffect: ' + e.dataTransfer.dropEffect);
55041
55072
  if (this.savedStyle) {
55042
- this.style.border = this.savedStyle.border;
55043
- this.style.backgroundColor = this.savedStyle.backgroundColor;
55044
- this.style.borderRadius = this.savedStyle.borderRadius;
55073
+ this.localStyle = this.savedStyle;
55045
55074
  } else {
55046
- this.style.backgroundColor = 'white';
55047
- this.style.border = '0em solid black';
55075
+ this.localStyle = style.dropEvent;
55048
55076
  }
55049
55077
  };
55050
55078
  var dropListener = function dropListener(e) {
@@ -55083,7 +55111,7 @@ function makeDropTarget(ele, droppedURIHandler, droppedFileHandler) {
55083
55111
  if (uris) {
55084
55112
  droppedURIHandler(uris);
55085
55113
  }
55086
- this.style.backgroundColor = 'white'; // restore style
55114
+ this.localStyle = style.restoreStyle; // restore style
55087
55115
  return false;
55088
55116
  }; // dropListener
55089
55117
 
@@ -55171,7 +55199,6 @@ function uploadFiles(fetcher, files, fileBase, imageBase, successHandler) {
55171
55199
  // console.log('MIME TYPE MISMATCH: ' + mime.lookup(theFile.name) + ': adding extension: ' + suffix)
55172
55200
  }
55173
55201
  }
55174
-
55175
55202
  var folderName = theFile.type.startsWith('image/') ? imageBase || fileBase : fileBase;
55176
55203
  var destURI = folderName + (folderName.endsWith('/') ? '' : '/') + encodeURIComponent(theFile.name) + suffix;
55177
55204
  fetcher.webOperation('PUT', destURI, {
@@ -55204,11 +55231,17 @@ function uploadFiles(fetcher, files, fileBase, imageBase, successHandler) {
55204
55231
  "use strict";
55205
55232
 
55206
55233
 
55234
+ var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
55235
+ var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
55207
55236
  Object.defineProperty(exports, "__esModule", ({
55208
55237
  value: true
55209
55238
  }));
55210
55239
  exports.errorMessageBlock = errorMessageBlock;
55211
55240
  var _widgets = __webpack_require__(/*! ../widgets */ "./node_modules/solid-ui/lib/widgets/index.js");
55241
+ var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./node_modules/solid-ui/lib/style.js"));
55242
+ var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../styleConstants */ "./node_modules/solid-ui/lib/styleConstants.js"));
55243
+ 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); }
55244
+ 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; }
55212
55245
  /**
55213
55246
  * Create an error message block
55214
55247
  * @param dom The DOM on which dom.createElement will be called
@@ -55237,8 +55270,9 @@ function errorMessageBlock(dom, err, backgroundColor, err2) {
55237
55270
  }
55238
55271
  div.appendChild((0, _widgets.cancelButton)(dom, function () {
55239
55272
  if (div.parentNode) div.parentNode.removeChild(div);
55240
- })).style = 'width: 2em; height: 2em; align: right;';
55241
- div.setAttribute('style', 'margin: 0.1em; padding: 0.5em; border: 0.05em solid gray; background-color: ' + (backgroundColor || '#fee') + '; color:black;');
55273
+ })).style = style.errorCancelButton;
55274
+ div.setAttribute('style', style.errorMessageBlockStyle);
55275
+ div.style.backgroundColor = backgroundColor || _styleConstants["default"].defaultErrorBackgroundColor;
55242
55276
  return div;
55243
55277
  }
55244
55278
  //# sourceMappingURL=error.js.map
@@ -55335,6 +55369,7 @@ var _error = __webpack_require__(/*! ./error */ "./node_modules/solid-ui/lib/wid
55335
55369
  var _basic = __webpack_require__(/*! ./forms/basic */ "./node_modules/solid-ui/lib/widgets/forms/basic.js");
55336
55370
  var _autocompleteField = __webpack_require__(/*! ./forms/autocomplete/autocompleteField */ "./node_modules/solid-ui/lib/widgets/forms/autocomplete/autocompleteField.js");
55337
55371
  var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./node_modules/solid-ui/lib/style.js"));
55372
+ var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../styleConstants */ "./node_modules/solid-ui/lib/styleConstants.js"));
55338
55373
  var _iconBase = __webpack_require__(/*! ../iconBase */ "./node_modules/solid-ui/lib/iconBase.js");
55339
55374
  var log = _interopRequireWildcard(__webpack_require__(/*! ../log */ "./node_modules/solid-ui/lib/log.js"));
55340
55375
  var ns = _interopRequireWildcard(__webpack_require__(/*! ../ns */ "./node_modules/solid-ui/lib/ns.js"));
@@ -55348,9 +55383,9 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
55348
55383
  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; } } }; }
55349
55384
  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); }
55350
55385
  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
55351
- *
55352
- * A Vanilla Dom implementation of the form language
55353
- */ /* eslint-disable multiline-ternary */ /* global alert */ // Note default export
55386
+ *
55387
+ * A Vanilla Dom implementation of the form language
55388
+ */ /* eslint-disable multiline-ternary */ /* global alert */ // Note default export
55354
55389
  var checkMarkCharacter = "\u2713";
55355
55390
  var cancelCharacter = "\u2715";
55356
55391
  var dashCharacter = '-';
@@ -55392,7 +55427,6 @@ function refreshOpionsSubfieldinGroup(dom, already, subject, dataDoc, callbackFu
55392
55427
  }
55393
55428
  }
55394
55429
  }
55395
-
55396
55430
  _fieldFunction.field[ns.ui('Form').uri] = _fieldFunction.field[ns.ui('Group').uri] = function (dom, container, already, subject, form, dataDoc, callbackFunction) {
55397
55431
  var box = dom.createElement('div');
55398
55432
  var ui = ns.ui;
@@ -55933,7 +55967,6 @@ _fieldFunction.field[ns.ui('Multiple').uri] = function (dom, container, already,
55933
55967
  vals = reverse ? kb.each(null, property, subject, dataDoc) : kb.each(subject, property, null, dataDoc);
55934
55968
  vals.sort(); // achieve consistency on each refresh
55935
55969
  }
55936
-
55937
55970
  utils.syncTableToArrayReOrdered(body, vals, renderItem);
55938
55971
  }
55939
55972
  body.refresh = refresh; // Allow live update
@@ -56023,7 +56056,7 @@ _fieldFunction.field[ns.ui('MultiLineTextField').uri] = function (dom, container
56023
56056
  box.style.display = 'flex';
56024
56057
  box.style.flexDirection = 'row';
56025
56058
  var left = box.appendChild(dom.createElement('div'));
56026
- left.style.width = style.formFieldNameBoxWidth;
56059
+ left.style.width = _styleConstants["default"].formFieldNameBoxWidth;
56027
56060
  var right = box.appendChild(dom.createElement('div'));
56028
56061
  left.appendChild((0, _basic.fieldLabel)(dom, property, form));
56029
56062
  dataDoc = (0, _basic.fieldStore)(subject, property, dataDoc);
@@ -56182,7 +56215,6 @@ _fieldFunction.field[ns.ui('Choice').uri] = function (dom, container, already, s
56182
56215
  if (kb.any(form, ui('canMintNew'))) {
56183
56216
  opts.mint = '* Create new *'; // @@ could be better
56184
56217
  }
56185
-
56186
56218
  var multiSelect = kb.any(form, ui('multiselect')); // Optional
56187
56219
  if (multiSelect) opts.multiSelect = true;
56188
56220
 
@@ -56448,9 +56480,8 @@ function promptForNew(dom, kb, subject, predicate, theClass, form, dataDoc, call
56448
56480
  log.debug('lists[0] is ' + lists[0]);
56449
56481
  form = lists[0]; // Pick any one
56450
56482
  }
56451
-
56452
56483
  log.debug('form is ' + form);
56453
- box.setAttribute('style', "border: 0.05em solid ".concat(style.formBorderColor, "; color: ").concat(style.formBorderColor)); // @@color?
56484
+ box.setAttribute('style', "border: 0.05em solid ".concat(_styleConstants["default"].formBorderColor, "; color: ").concat(_styleConstants["default"].formBorderColor)); // @@color?
56454
56485
  box.innerHTML = '<h3>New ' + utils.label(theClass) + '</h3>';
56455
56486
  var formFunction = (0, _fieldFunction.fieldFunction)(dom, form);
56456
56487
  var object = newThing(dataDoc);
@@ -56498,7 +56529,6 @@ function makeDescription(dom, kb, subject, predicate, dataDoc, callbackFunction)
56498
56529
  // field.value = utils.label(predicate); // Was"enter a description here" @@ possibly: add prompt which disappears
56499
56530
  field.select(); // Select it ready for user input -- doesn't work
56500
56531
  }
56501
-
56502
56532
  group.refresh = function () {
56503
56533
  var v = kb.any(subject, predicate, null, dataDoc);
56504
56534
  if (v && v.value !== field.value) {
@@ -56506,17 +56536,16 @@ function makeDescription(dom, kb, subject, predicate, dataDoc, callbackFunction)
56506
56536
  // @@ this is the place to color the field from the user who chanaged it
56507
56537
  }
56508
56538
  };
56509
-
56510
56539
  function saveChange(_e) {
56511
56540
  submit.disabled = true;
56512
56541
  submit.setAttribute('style', 'visibility: hidden; float: right;'); // Keep UI clean
56513
56542
  field.disabled = true;
56514
- field.style.color = style.textInputColorPending; // setAttribute('style', style + 'color: gray;') // pending
56543
+ field.style.color = _styleConstants["default"].textInputColorPending;
56515
56544
  var ds = kb.statementsMatching(subject, predicate, null, dataDoc);
56516
56545
  var is = $rdf.st(subject, predicate, field.value, dataDoc);
56517
56546
  kb.updater.update(ds, is, function (uri, ok, body) {
56518
56547
  if (ok) {
56519
- field.style.color = style.textInputColor;
56548
+ field.style.color = _styleConstants["default"].textInputColor;
56520
56549
  field.disabled = false;
56521
56550
  } else {
56522
56551
  group.appendChild((0, _error.errorMessageBlock)(dom, 'Error (while saving change to ' + dataDoc.uri + '): ' + body));
@@ -56545,7 +56574,7 @@ function makeDescription(dom, kb, subject, predicate, dataDoc, callbackFunction)
56545
56574
  field.addEventListener('change', saveChange, true);
56546
56575
  } else {
56547
56576
  field.disabled = true; // @@ change color too
56548
- field.style.backgroundColor = style.textInputBackgroundColorUneditable;
56577
+ field.style.backgroundColor = _styleConstants["default"].textInputBackgroundColorUneditable;
56549
56578
  }
56550
56579
  return group;
56551
56580
  }
@@ -56613,7 +56642,6 @@ function makeSelectForClassifierOptions(dom, kb, subject, predicate, possible, o
56613
56642
  }); // @@ if ok, need some form of refresh of the select for the new thing
56614
56643
  }
56615
56644
  });
56616
-
56617
56645
  select.parentNode.appendChild(thisForm);
56618
56646
  newObject = thisForm.AJAR_subject;
56619
56647
  } else {
@@ -56670,7 +56698,7 @@ function makeSelectForClassifierOptions(dom, kb, subject, predicate, possible, o
56670
56698
  });
56671
56699
  };
56672
56700
  var select = dom.createElement('select');
56673
- select.setAttribute('style', style.formSelectSTyle);
56701
+ select.setAttribute('style', style.formSelectStyle);
56674
56702
  if (options.multiple) select.setAttribute('multiple', 'true');
56675
56703
  select.currentURI = null;
56676
56704
  select.refresh = function () {
@@ -56683,7 +56711,6 @@ function makeSelectForClassifierOptions(dom, kb, subject, predicate, possible, o
56683
56711
  }
56684
56712
  select.disabled = false; // unlocked any conflict we had got into
56685
56713
  };
56686
-
56687
56714
  for (var uri in uris) {
56688
56715
  var c = kb.sym(uri);
56689
56716
  var option = dom.createElement('option');
@@ -56692,7 +56719,6 @@ function makeSelectForClassifierOptions(dom, kb, subject, predicate, possible, o
56692
56719
  } else {
56693
56720
  option.appendChild(dom.createTextNode(utils.label(c, true))); // Init.
56694
56721
  }
56695
-
56696
56722
  var backgroundColor = kb.any(c, kb.sym('http://www.w3.org/ns/ui#backgroundColor'));
56697
56723
  if (backgroundColor) {
56698
56724
  option.setAttribute('style', 'background-color: ' + backgroundColor.value + '; ');
@@ -56703,7 +56729,6 @@ function makeSelectForClassifierOptions(dom, kb, subject, predicate, possible, o
56703
56729
  select.currentURI = uri;
56704
56730
  // dump("Already in class: "+ uri+"\n")
56705
56731
  }
56706
-
56707
56732
  select.appendChild(option);
56708
56733
  }
56709
56734
  if (editable && options.mint) {
@@ -56813,7 +56838,7 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, options, da
56813
56838
  });
56814
56839
  };
56815
56840
  var select = dom.createElement('select');
56816
- select.setAttribute('style', style.formSelectSTyle);
56841
+ select.setAttribute('style', style.formSelectStyle);
56817
56842
  select.currentURI = null;
56818
56843
  select.refresh = function () {
56819
56844
  actual = getActual(); // refresh
@@ -56825,7 +56850,6 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, options, da
56825
56850
  }
56826
56851
  select.disabled = false; // unlocked any conflict we had got into
56827
56852
  };
56828
-
56829
56853
  for (var uri in uris) {
56830
56854
  var c = kb.sym(uri);
56831
56855
  var option = dom.createElement('option');
@@ -56834,7 +56858,6 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, options, da
56834
56858
  } else {
56835
56859
  option.appendChild(dom.createTextNode(utils.label(c, true))); // Init.
56836
56860
  }
56837
-
56838
56861
  var backgroundColor = kb.any(c, kb.sym('http://www.w3.org/ns/ui#backgroundColor'));
56839
56862
  if (backgroundColor) {
56840
56863
  option.setAttribute('style', 'background-color: ' + backgroundColor.value + '; ');
@@ -56845,7 +56868,6 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, options, da
56845
56868
  select.currentURI = uri;
56846
56869
  // dump("Already in class: "+ uri+"\n")
56847
56870
  }
56848
-
56849
56871
  select.appendChild(option);
56850
56872
  }
56851
56873
  if (!select.currentURI) {
@@ -56943,10 +56965,8 @@ function buildCheckboxForm(dom, kb, lab, del, ins, form, dataDoc, tristate) {
56943
56965
  if (!x.why) {
56944
56966
  x.why = dataDoc; // be back-compaitible with old code
56945
56967
  }
56946
-
56947
56968
  return [x]; // one statements
56948
56969
  }
56949
-
56950
56970
  if (x instanceof Array) return x;
56951
56971
  throw new Error('buildCheckboxForm: bad param ' + x);
56952
56972
  }
@@ -57012,7 +57032,6 @@ function buildCheckboxForm(dom, kb, lab, del, ins, form, dataDoc, tristate) {
57012
57032
  }
57013
57033
  });
57014
57034
  };
57015
-
57016
57035
  input.addEventListener('click', boxHandler, false);
57017
57036
  return box;
57018
57037
  }
@@ -57099,7 +57118,7 @@ function makeSelectForChoice(dom, container, kb, subject, predicate, inputPossib
57099
57118
  select.refresh();
57100
57119
  };
57101
57120
  var select = dom.createElement('select');
57102
- select.setAttribute('style', style.formSelectSTyle);
57121
+ select.setAttribute('style', style.formSelectStyle);
57103
57122
  select.setAttribute('id', 'formSelect');
57104
57123
  select.currentURI = null;
57105
57124
  for (var uri in optionsFromClassUIfrom) {
@@ -57126,13 +57145,11 @@ function makeSelectForChoice(dom, container, kb, subject, predicate, inputPossib
57126
57145
  is.push($rdf.st(subject, predicate, t, dataDoc));
57127
57146
  // console.log("----value added " + t)
57128
57147
  }
57129
-
57130
57148
  if (uiFrom && !kb.holds(t, ns.rdf('type'), kb.sym(uiFrom), dataDoc)) {
57131
57149
  is.push($rdf.st(t, ns.rdf('type'), kb.sym(uiFrom), dataDoc));
57132
57150
  // console.log("----added type to value " + uiFrom)
57133
57151
  }
57134
57152
  };
57135
-
57136
57153
  var existingValues = kb.each(subject, predicate, null, dataDoc).map(function (object) {
57137
57154
  return object.value;
57138
57155
  });
@@ -57185,7 +57202,6 @@ function makeSelectForChoice(dom, container, kb, subject, predicate, inputPossib
57185
57202
  }); // @@ if ok, need some form of refresh of the select for the new thing
57186
57203
  }
57187
57204
  });
57188
-
57189
57205
  select.parentNode.appendChild(thisForm);
57190
57206
  newObject = thisForm.AJAR_subject;
57191
57207
  } else {
@@ -57347,11 +57363,11 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
57347
57363
  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; } } }; }
57348
57364
  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); }
57349
57365
  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
57350
-
57351
- This control has the buttons which control the state between editing, viewing, searching, accepting
57352
- and so on. See the state diagram in the documentation. The AUtocomplete Picker does the main work.
57353
-
57354
- */
57366
+
57367
+ This control has the buttons which control the state between editing, viewing, searching, accepting
57368
+ and so on. See the state diagram in the documentation. The AUtocomplete Picker does the main work.
57369
+
57370
+ */
57355
57371
  // dbpediaParameters
57356
57372
 
57357
57373
  var WEBID_NOUN = 'Solid ID';
@@ -57862,7 +57878,6 @@ function autocompleteField(dom, container, already, subject, form, doc, callback
57862
57878
  }, function (err) {
57863
57879
  rhs.appendChild(widgets.errorMessageBlock(dom, "Error rendering autocomplete ".concat(form, ": ").concat(err), '#fee', err)); //
57864
57880
  });
57865
-
57866
57881
  return box;
57867
57882
  }
57868
57883
 
@@ -57891,6 +57906,7 @@ var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime
57891
57906
  var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
57892
57907
  var debug = _interopRequireWildcard(__webpack_require__(/*! ../../../debug */ "./node_modules/solid-ui/lib/debug.js"));
57893
57908
  var style = _interopRequireWildcard(__webpack_require__(/*! ../../../style */ "./node_modules/solid-ui/lib/style.js"));
57909
+ var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../../../styleConstants */ "./node_modules/solid-ui/lib/styleConstants.js"));
57894
57910
  var widgets = _interopRequireWildcard(__webpack_require__(/*! ../../../widgets */ "./node_modules/solid-ui/lib/widgets/index.js"));
57895
57911
  var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
57896
57912
  var _publicData = __webpack_require__(/*! ./publicData */ "./node_modules/solid-ui/lib/widgets/forms/autocomplete/publicData.js");
@@ -57900,10 +57916,10 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
57900
57916
  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; } } }; }
57901
57917
  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); }
57902
57918
  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
57903
- **
57904
- ** As the data source is passed as a parameter, all kinds of APIa and query services can be used
57905
- **
57906
- */
57919
+ **
57920
+ ** As the data source is passed as a parameter, all kinds of APIa and query services can be used
57921
+ **
57922
+ */
57907
57923
  var AUTOCOMPLETE_THRESHOLD = 4; // don't check until this many characters typed
57908
57924
  var AUTOCOMPLETE_ROWS = 20; // 20?
57909
57925
  var AUTOCOMPLETE_ROWS_STRETCH = 40;
@@ -57954,14 +57970,12 @@ function _renderAutoComplete() {
57954
57970
  if (decoration.acceptButton) {
57955
57971
  setVisible(decoration.acceptButton, false); // hide until input complete
57956
57972
  }
57957
-
57958
57973
  if (decoration.editButton) {
57959
57974
  setVisible(decoration.editButton, true);
57960
57975
  }
57961
57976
  if (decoration.cancelButton) {
57962
57977
  setVisible(decoration.cancelButton, false); // only allow cancel when there is something to cancel
57963
57978
  }
57964
-
57965
57979
  inputEventHandlerLock = false;
57966
57980
  clearList();
57967
57981
  };
@@ -58045,7 +58059,6 @@ function _renderAutoComplete() {
58045
58059
  if (loadedEnough && slimmed.length <= AUTOCOMPLETE_ROWS_STRETCH) {
58046
58060
  numberOfRows = slimmed.length; // stretch if it means we get all items
58047
58061
  }
58048
-
58049
58062
  allDisplayed = loadedEnough && slimmed.length <= numberOfRows;
58050
58063
  debug.log(" Filter:\"".concat(filter, "\" lastBindings: ").concat(lastBindings.length, ", slimmed to ").concat(slimmed.length, "; rows: ").concat(numberOfRows, ", Enough? ").concat(loadedEnough, ", All displayed? ").concat(allDisplayed));
58051
58064
  displayable = slimmed.slice(0, numberOfRows);
@@ -58293,7 +58306,7 @@ function _renderAutoComplete() {
58293
58306
  searchInput = cell.appendChild(dom.createElement('input'));
58294
58307
  searchInput.setAttribute('type', 'text');
58295
58308
  initialize();
58296
- size = acOptions.size || style.textInputSize || 20;
58309
+ size = acOptions.size || _styleConstants["default"].textInputSize || 20;
58297
58310
  searchInput.setAttribute('size', size);
58298
58311
  searchInput.setAttribute('data-testid', 'autocomplete-input');
58299
58312
  searchInputStyle = style.textInputStyle ||
@@ -58607,7 +58620,6 @@ var escoParameters = exports.escoParameters = {
58607
58620
  // returnFormat: 'ESCO',
58608
58621
  // targetClass: {}
58609
58622
  };
58610
-
58611
58623
  var dbpediaParameters = exports.dbpediaParameters = {
58612
58624
  label: 'DBPedia',
58613
58625
  logo: _solidLogic.store.sym('https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/DBpediaLogo.svg/263px-DBpediaLogo.svg.png'),
@@ -58653,7 +58665,6 @@ var wikidataIncomingClassMap = exports.wikidataIncomingClassMap = {
58653
58665
  // geographic location
58654
58666
  'http://www.wikidata.org/entity/Q167037': ns.schema('Corporation') // Corporation
58655
58667
  };
58656
-
58657
58668
  var variableNameToPredicateMap = exports.variableNameToPredicateMap = {
58658
58669
  // allow other mappings to be added in theory hence var
58659
58670
  // wikidata:
@@ -58764,7 +58775,6 @@ function ESCOResultToBindings(json) {
58764
58775
  }
58765
58776
  }; // simulate SPARQL bindings
58766
58777
  });
58767
-
58768
58778
  return bindings;
58769
58779
  }
58770
58780
 
@@ -59180,6 +59190,7 @@ function _getDbpediaDetails() {
59180
59190
  "use strict";
59181
59191
 
59182
59192
 
59193
+ var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
59183
59194
  var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
59184
59195
  Object.defineProperty(exports, "__esModule", ({
59185
59196
  value: true
@@ -59192,6 +59203,7 @@ var _rdflib = __webpack_require__(/*! rdflib */ "./node_modules/rdflib/esm/index
59192
59203
  var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
59193
59204
  var ns = _interopRequireWildcard(__webpack_require__(/*! ../../ns */ "./node_modules/solid-ui/lib/ns.js"));
59194
59205
  var _style = __webpack_require__(/*! ../../style */ "./node_modules/solid-ui/lib/style.js");
59206
+ var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../../styleConstants */ "./node_modules/solid-ui/lib/styleConstants.js"));
59195
59207
  var _utils = __webpack_require__(/*! ../../utils */ "./node_modules/solid-ui/lib/utils/index.js");
59196
59208
  var _error = __webpack_require__(/*! ../error */ "./node_modules/solid-ui/lib/widgets/error.js");
59197
59209
  var _fieldFunction = __webpack_require__(/*! ./fieldFunction */ "./node_modules/solid-ui/lib/widgets/forms/fieldFunction.js");
@@ -59207,7 +59219,7 @@ function renderNameValuePair(dom, kb, box, form, label) {
59207
59219
  box.style.display = 'flex';
59208
59220
  box.style.flexDirection = 'row';
59209
59221
  var lhs = box.appendChild(dom.createElement('div'));
59210
- lhs.style.width = _style.formFieldNameBoxWidth;
59222
+ lhs.style.width = _styleConstants["default"].formFieldNameBoxWidth;
59211
59223
  var rhs = box.appendChild(dom.createElement('div'));
59212
59224
  lhs.setAttribute('class', 'formFieldName');
59213
59225
  lhs.setAttribute('style', _style.formFieldNameBoxStyle);
@@ -59312,10 +59324,10 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
59312
59324
  field.style = style;
59313
59325
  rhs.appendChild(field);
59314
59326
  field.setAttribute('type', params.type ? params.type : 'text');
59315
- var size = kb.anyJS(form, ns.ui('size')) || _style.textInputSize || 20;
59327
+ var size = kb.anyJS(form, ns.ui('size')) || _styleConstants["default"].textInputSize || 20;
59316
59328
  field.setAttribute('size', size);
59317
59329
  var maxLength = kb.any(form, ns.ui('maxLength'));
59318
- field.setAttribute('maxLength', maxLength ? '' + maxLength : '4096');
59330
+ field.setAttribute('maxLength', maxLength ? '' + maxLength : _styleConstants["default"].basicMaxLength);
59319
59331
  doc = doc || fieldStore(subject, property, doc);
59320
59332
  var obj = kb.any(subject, property, undefined, doc);
59321
59333
  if (!obj) {
@@ -59337,11 +59349,9 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
59337
59349
  field.readOnly = true // was: disabled. readOnly is better
59338
59350
  ;
59339
59351
  field.style = _style.textInputStyleUneditable + paramStyle;
59340
- // backgroundColor = textInputBackgroundColorUneditable
59341
59352
  if (suppressEmptyUneditable && field.value === '') {
59342
59353
  box.style.display = 'none'; // clutter
59343
59354
  }
59344
-
59345
59355
  return box;
59346
59356
  }
59347
59357
 
@@ -59525,63 +59535,63 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
59525
59535
  * field in questions, different values may be read
59526
59536
  * from here.
59527
59537
  */
59528
- var fieldParams = exports.fieldParams = (_fieldParams = {}, (0, _defineProperty2["default"])(_fieldParams, ns.ui('ColorField').uri, {
59538
+ 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, {
59529
59539
  size: 9,
59530
59540
  type: 'color',
59531
59541
  style: 'height: 3em;',
59532
59542
  // around 1.5em is padding
59533
59543
  dt: 'color',
59534
59544
  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*$/
59535
- }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('DateField').uri, {
59545
+ }), ns.ui('DateField').uri, {
59536
59546
  size: 20,
59537
59547
  type: 'date',
59538
59548
  dt: 'date',
59539
59549
  pattern: /^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?Z?\s*$/
59540
- }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('DateTimeField').uri, {
59550
+ }), ns.ui('DateTimeField').uri, {
59541
59551
  size: 20,
59542
59552
  type: 'datetime-local',
59543
59553
  // See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime
59544
59554
  dt: 'dateTime',
59545
59555
  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*$/
59546
- }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('TimeField').uri, {
59556
+ }), ns.ui('TimeField').uri, {
59547
59557
  size: 10,
59548
59558
  type: 'time',
59549
59559
  dt: 'time',
59550
59560
  pattern: /^\s*([0-2]?[0-9]:[0-5][0-9](:[0-5][0-9])?)\s*$/
59551
- }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('IntegerField').uri, {
59561
+ }), ns.ui('IntegerField').uri, {
59552
59562
  size: 12,
59553
59563
  style: 'text-align: right;',
59554
59564
  dt: 'integer',
59555
59565
  pattern: /^\s*-?[0-9]+\s*$/
59556
- }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('DecimalField').uri, {
59566
+ }), ns.ui('DecimalField').uri, {
59557
59567
  size: 12,
59558
59568
  style: 'text-align: right;',
59559
59569
  dt: 'decimal',
59560
59570
  pattern: /^\s*-?[0-9]*(\.[0-9]*)?\s*$/
59561
- }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('FloatField').uri, {
59571
+ }), ns.ui('FloatField').uri, {
59562
59572
  size: 12,
59563
59573
  style: 'text-align: right;',
59564
59574
  dt: 'float',
59565
59575
  pattern: /^\s*-?[0-9]*(\.[0-9]*)?((e|E)-?[0-9]*)?\s*$/
59566
- }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('SingleLineTextField').uri, {}), (0, _defineProperty2["default"])(_fieldParams, ns.ui('NamedNodeURIField').uri, {
59576
+ }), ns.ui('SingleLineTextField').uri, {}), ns.ui('NamedNodeURIField').uri, {
59567
59577
  namedNode: true
59568
- }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('TextField').uri, {}), (0, _defineProperty2["default"])(_fieldParams, ns.ui('PhoneField').uri, {
59578
+ }), ns.ui('TextField').uri, {}), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_fieldParams, ns.ui('PhoneField').uri, {
59569
59579
  size: 20,
59570
59580
  uriPrefix: 'tel:',
59571
59581
  pattern: /^\+?[\d-]+[\d]*$/
59572
- }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('EmailField').uri, {
59582
+ }), ns.ui('EmailField').uri, {
59573
59583
  size: 30,
59574
59584
  uriPrefix: 'mailto:',
59575
59585
  pattern: /^\s*.*@.*\..*\s*$/ // @@ Get the right regexp here
59576
- }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('Group').uri, {
59586
+ }), ns.ui('Group').uri, {
59577
59587
  style: _style.formGroupStyle
59578
- }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('Comment').uri, {
59588
+ }), ns.ui('Comment').uri, {
59579
59589
  element: 'p',
59580
- style: _style.commentStyle // was `padding: 0.1em 1.5em; color: ${formHeadingColor}; white-space: pre-wrap;`
59581
- }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('Heading').uri, {
59590
+ style: _style.commentStyle
59591
+ }), ns.ui('Heading').uri, {
59582
59592
  element: 'h3',
59583
- style: _style.formHeadingStyle // was: `font-size: 110%; font-weight: bold; color: ${formHeadingColor}; padding: 0.2em;`
59584
- }), _fieldParams);
59593
+ style: _style.formHeadingStyle
59594
+ }));
59585
59595
  //# sourceMappingURL=fieldParams.js.map
59586
59596
 
59587
59597
  /***/ }),
@@ -60904,7 +60914,6 @@ function patch(url, _ref3) {
60904
60914
  // }
60905
60915
  // })
60906
60916
  }
60907
-
60908
60917
  function indexes(book) {
60909
60918
  return {
60910
60919
  // bookIndex: book,