solid-ui 3.0.1-11be53b → 3.0.1-27039d9

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.
@@ -3557,9 +3557,9 @@ hmac.create = (hash, key) => new HMAC(hash, key);
3557
3557
 
3558
3558
 
3559
3559
  /* global EventListenerOrEventListenerObject */
3560
- /*
3561
- This file was copied from mashlib/src/global/header.ts file. It is modified to
3562
- work in solid-ui by adjusting where imported functions are found.
3560
+ /*
3561
+ This file was copied from mashlib/src/global/header.ts file. It is modified to
3562
+ work in solid-ui by adjusting where imported functions are found.
3563
3563
  */
3564
3564
 
3565
3565
 
@@ -3571,29 +3571,29 @@ hmac.create = (hash, key) => new HMAC(hash, key);
3571
3571
 
3572
3572
 
3573
3573
 
3574
- /**
3575
- * menu icons
3574
+ /**
3575
+ * menu icons
3576
3576
  */
3577
3577
  var DEFAULT_HELP_MENU_ICON = _index__WEBPACK_IMPORTED_MODULE_2__/* .icons */ .Pt.iconBase + 'noun_help.svg';
3578
3578
  var DEFAUL_SOLID_ICON_URL = 'https://solidproject.org/assets/img/solid-emblem.svg';
3579
3579
 
3580
- /*
3581
- HeaderOptions allow for customizing the logo and menu list. If a logo is not provided the default
3582
- is solid. Menulist will always show a link to logout and to the users profile.
3580
+ /*
3581
+ HeaderOptions allow for customizing the logo and menu list. If a logo is not provided the default
3582
+ is solid. Menulist will always show a link to logout and to the users profile.
3583
3583
  */
3584
3584
 
3585
- /**
3586
- * Initialize header component, the header object returned depends on whether the user is authenticated.
3587
- * @param store the data store
3588
- * @param userMenuList a list of menu items when the user is logged in
3589
- * @param options allow the header to be customized with a personalized logo, help icon and a help menu list of links or buttons.
3590
- * @returns a header for an authenticated user with menu items given or a login screen
3585
+ /**
3586
+ * Initialize header component, the header object returned depends on whether the user is authenticated.
3587
+ * @param store the data store
3588
+ * @param userMenuList a list of menu items when the user is logged in
3589
+ * @param options allow the header to be customized with a personalized logo, help icon and a help menu list of links or buttons.
3590
+ * @returns a header for an authenticated user with menu items given or a login screen
3591
3591
  */
3592
3592
  function initHeader(_x, _x2, _x3) {
3593
3593
  return _initHeader.apply(this, arguments);
3594
3594
  }
3595
- /**
3596
- * @ignore exporting this only for the unit test
3595
+ /**
3596
+ * @ignore exporting this only for the unit test
3597
3597
  */
3598
3598
  function _initHeader() {
3599
3599
  _initHeader = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee3(store, userMenuList, options) {
@@ -3640,14 +3640,14 @@ function rebuildHeader(header, store, pod, userMenuList, options) {
3640
3640
  }, _callee);
3641
3641
  }));
3642
3642
  }
3643
- /**
3644
- * @ignore exporting this only for the unit test
3643
+ /**
3644
+ * @ignore exporting this only for the unit test
3645
3645
  */
3646
3646
  function createBanner(_x4, _x5, _x6, _x7, _x8) {
3647
3647
  return _createBanner.apply(this, arguments);
3648
3648
  }
3649
- /**
3650
- * @ignore exporting this only for the unit test
3649
+ /**
3650
+ * @ignore exporting this only for the unit test
3651
3651
  */
3652
3652
  function _createBanner() {
3653
3653
  _createBanner = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee4(store, pod, user, userMenuList, options) {
@@ -3830,8 +3830,8 @@ function createHelpMenu(options, helpMenuItems) {
3830
3830
  });
3831
3831
  return helpMenuContainer;
3832
3832
  }
3833
- /**
3834
- * @ignore exporting this only for the unit test
3833
+ /**
3834
+ * @ignore exporting this only for the unit test
3835
3835
  */
3836
3836
  function createLoginSignUpButtons() {
3837
3837
  var profileLoginButtonPre = document.createElement('div');
@@ -3839,8 +3839,8 @@ function createLoginSignUpButtons() {
3839
3839
  profileLoginButtonPre.appendChild((0,_login_login__WEBPACK_IMPORTED_MODULE_4__.loginStatusBox)(document, null, {}));
3840
3840
  return profileLoginButtonPre;
3841
3841
  }
3842
- /**
3843
- * @ignore exporting this only for the unit test
3842
+ /**
3843
+ * @ignore exporting this only for the unit test
3844
3844
  */
3845
3845
  function createUserMenuButton(label, onClick) {
3846
3846
  var button = document.createElement('button');
@@ -3855,8 +3855,8 @@ function createUserMenuButton(label, onClick) {
3855
3855
  button.innerText = label;
3856
3856
  return button;
3857
3857
  }
3858
- /**
3859
- * @ignore exporting this only for the unit test
3858
+ /**
3859
+ * @ignore exporting this only for the unit test
3860
3860
  */
3861
3861
  function createUserMenuLink(label, href, target) {
3862
3862
  var link = document.createElement('a');
@@ -3873,15 +3873,15 @@ function createUserMenuLink(label, href, target) {
3873
3873
  return link;
3874
3874
  }
3875
3875
 
3876
- /**
3877
- * @ignore exporting this only for the unit test
3876
+ /**
3877
+ * @ignore exporting this only for the unit test
3878
3878
  */
3879
3879
  function createUserMenu(_x9, _x0, _x1) {
3880
3880
  return _createUserMenu.apply(this, arguments);
3881
3881
  }
3882
3882
 
3883
- /**
3884
- * @ignore exporting this only for the unit test
3883
+ /**
3884
+ * @ignore exporting this only for the unit test
3885
3885
  */
3886
3886
  function _createUserMenu() {
3887
3887
  _createUserMenu = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee5(store, user, userMenuList) {
@@ -3962,8 +3962,8 @@ function createUserMenuItem(child) {
3962
3962
  menuProfileItem.appendChild(child);
3963
3963
  return menuProfileItem;
3964
3964
  }
3965
- /**
3966
- * @ignore exporting this only for the unit test
3965
+ /**
3966
+ * @ignore exporting this only for the unit test
3967
3967
  */
3968
3968
  function getProfileImg(store, user) {
3969
3969
  var profileUrl = null;
@@ -3981,8 +3981,8 @@ function getProfileImg(store, user) {
3981
3981
  return profileImage;
3982
3982
  }
3983
3983
 
3984
- /**
3985
- * @internal
3984
+ /**
3985
+ * @internal
3986
3986
  */
3987
3987
  function toggleMenu(event, trigger, menu) {
3988
3988
  var isExpanded = trigger.getAttribute('aria-expanded') === 'true';
@@ -10186,7 +10186,7 @@ function renderMessageEditor(channelObject, messageTable, userContext, options,
10186
10186
  /* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(3468);
10187
10187
  /* harmony import */ var _widgetHelpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9287);
10188
10188
  /* harmony import */ var _buttons_iconLinks__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9326);
10189
- /* Buttons
10189
+ /* Buttons
10190
10190
  */
10191
10191
 
10192
10192
 
@@ -10201,9 +10201,9 @@ function renderMessageEditor(channelObject, messageTable, userContext, options,
10201
10201
 
10202
10202
 
10203
10203
 
10204
- /**
10205
- * UI Widgets such as buttons
10206
- * @packageDocumentation
10204
+ /**
10205
+ * UI Widgets such as buttons
10206
+ * @packageDocumentation
10207
10207
  */
10208
10208
 
10209
10209
  /* global alert */
@@ -10231,8 +10231,8 @@ function getStatusArea(context) {
10231
10231
  return null;
10232
10232
  }
10233
10233
 
10234
- /**
10235
- * Display an error message block
10234
+ /**
10235
+ * Display an error message block
10236
10236
  */
10237
10237
  function complain(context, err) {
10238
10238
  if (!err) return; // only if error
@@ -10241,8 +10241,8 @@ function complain(context, err) {
10241
10241
  if (ele) ele.appendChild((0,_error__WEBPACK_IMPORTED_MODULE_10__/* .errorMessageBlock */ .F)(context && context.dom || document, err));else alert(err);
10242
10242
  }
10243
10243
 
10244
- /**
10245
- * Remove all the children of an HTML element
10244
+ /**
10245
+ * Remove all the children of an HTML element
10246
10246
  */
10247
10247
  function clearElement(ele) {
10248
10248
  while (ele.firstChild) {
@@ -10251,8 +10251,8 @@ function clearElement(ele) {
10251
10251
  return ele;
10252
10252
  }
10253
10253
 
10254
- /**
10255
- * To figure out the log URI from the full URI used to invoke the reasoner
10254
+ /**
10255
+ * To figure out the log URI from the full URI used to invoke the reasoner
10256
10256
  */
10257
10257
  function extractLogURI(fullURI) {
10258
10258
  var logPos = fullURI.search(/logFile=/);
@@ -10260,11 +10260,11 @@ function extractLogURI(fullURI) {
10260
10260
  return fullURI.substring(logPos + 8, rulPos);
10261
10261
  }
10262
10262
 
10263
- /**
10264
- * By default, converts e.g. '2020-02-19T19:35:28.557Z' to '19:35'
10265
- * if today is 19 Feb 2020, and to 'Feb 19' if not.
10266
- * @@@ TODO This needs to be changed to local time
10267
- * @param noTime Return a string like 'Feb 19' even if it's today.
10263
+ /**
10264
+ * By default, converts e.g. '2020-02-19T19:35:28.557Z' to '19:35'
10265
+ * if today is 19 Feb 2020, and to 'Feb 19' if not.
10266
+ * @@@ TODO This needs to be changed to local time
10267
+ * @param noTime Return a string like 'Feb 19' even if it's today.
10268
10268
  */
10269
10269
  function shortDate(str, noTime) {
10270
10270
  if (!str) return '???';
@@ -10285,11 +10285,11 @@ function shortDate(str, noTime) {
10285
10285
  }
10286
10286
  }
10287
10287
 
10288
- /**
10289
- * Format a date and time
10290
- * @param date for instance `new Date()`
10291
- * @param format for instance '{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}'
10292
- * @returns for instance '2000-01-15T23:14:23.002'
10288
+ /**
10289
+ * Format a date and time
10290
+ * @param date for instance `new Date()`
10291
+ * @param format for instance '{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}'
10292
+ * @returns for instance '2000-01-15T23:14:23.002'
10293
10293
  */
10294
10294
  function formatDateTime(date, format) {
10295
10295
  return format.split('{').map(function (s) {
@@ -10305,17 +10305,17 @@ function formatDateTime(date, format) {
10305
10305
  }).join('');
10306
10306
  }
10307
10307
 
10308
- /**
10309
- * Get a string representation of the current time
10310
- * @returns for instance '2000-01-15T23:14:23.002'
10308
+ /**
10309
+ * Get a string representation of the current time
10310
+ * @returns for instance '2000-01-15T23:14:23.002'
10311
10311
  */
10312
10312
  function timestamp() {
10313
10313
  return formatDateTime(new Date(), '{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}');
10314
10314
  }
10315
10315
 
10316
- /**
10317
- * Get a short string representation of the current time
10318
- * @returns for instance '23:14:23.002'
10316
+ /**
10317
+ * Get a short string representation of the current time
10318
+ * @returns for instance '23:14:23.002'
10319
10319
  */
10320
10320
  function shortTime() {
10321
10321
  return formatDateTime(new Date(), '{Hours}:{Minutes}:{Seconds}.{Milliseconds}');
@@ -10323,8 +10323,8 @@ function shortTime() {
10323
10323
 
10324
10324
  // ///////////////////// Handy UX widgets
10325
10325
 
10326
- /**
10327
- * Sets the best name we have and looks up a better one
10326
+ /**
10327
+ * Sets the best name we have and looks up a better one
10328
10328
  */
10329
10329
  function setName(element, x) {
10330
10330
  var kb = solid_logic__WEBPACK_IMPORTED_MODULE_7__.store;
@@ -10345,29 +10345,29 @@ function setName(element, x) {
10345
10345
  }
10346
10346
  }
10347
10347
 
10348
- /**
10349
- * Set of suitable images
10350
- * See also [[findImage]]
10351
- * @param x The thing for which we want to find an image
10352
- * @param kb The RDF store to look in
10353
- * @returns It goes looking for triples in `kb`,
10354
- * `(subject: x), (predicate: see list below) (object: image-url)`
10355
- * to find any image linked from the thing with one of the following
10356
- * predicates (in order):
10357
- * * ns.sioc('avatar')
10358
- * * ns.foaf('img')
10359
- * * ns.vcard('logo')
10360
- * * ns.vcard('hasPhoto')
10361
- * * ns.vcard('photo')
10362
- * * ns.foaf('depiction')
10363
-
10348
+ /**
10349
+ * Set of suitable images
10350
+ * See also [[findImage]]
10351
+ * @param x The thing for which we want to find an image
10352
+ * @param kb The RDF store to look in
10353
+ * @returns It goes looking for triples in `kb`,
10354
+ * `(subject: x), (predicate: see list below) (object: image-url)`
10355
+ * to find any image linked from the thing with one of the following
10356
+ * predicates (in order):
10357
+ * * ns.sioc('avatar')
10358
+ * * ns.foaf('img')
10359
+ * * ns.vcard('logo')
10360
+ * * ns.vcard('hasPhoto')
10361
+ * * ns.vcard('photo')
10362
+ * * ns.foaf('depiction')
10363
+
10364
10364
  */
10365
10365
  function imagesOf(x, kb) {
10366
10366
  return kb.each(x, _ns__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.sioc('avatar')).concat(kb.each(x, _ns__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.foaf('img'))).concat(kb.each(x, _ns__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.vcard('logo'))).concat(kb.each(x, _ns__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.vcard('hasPhoto'))).concat(kb.each(x, _ns__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.vcard('photo'))).concat(kb.each(x, _ns__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.foaf('depiction')));
10367
10367
  }
10368
10368
 
10369
- /**
10370
- * Best logo or avatar or photo etc to represent someone or some group etc
10369
+ /**
10370
+ * Best logo or avatar or photo etc to represent someone or some group etc
10371
10371
  */
10372
10372
  var iconForClass = {
10373
10373
  // Potentially extendable by other apps, panes, etc
@@ -10402,8 +10402,8 @@ var iconForClass = {
10402
10402
  'wf:Closed': 'noun_17020.svg'
10403
10403
  };
10404
10404
 
10405
- /**
10406
- * Returns the origin of the URI of a NamedNode
10405
+ /**
10406
+ * Returns the origin of the URI of a NamedNode
10407
10407
  */
10408
10408
  function tempSite(x) {
10409
10409
  // use only while one in rdflib fails with origins 2019
@@ -10419,8 +10419,8 @@ function tempSite(x) {
10419
10419
  }
10420
10420
  }
10421
10421
 
10422
- /**
10423
- * Find an image for this thing as a class
10422
+ /**
10423
+ * Find an image for this thing as a class
10424
10424
  */
10425
10425
  function findImageFromURI(x) {
10426
10426
  var iconDir = iconBase;
@@ -10450,22 +10450,22 @@ function findImageFromURI(x) {
10450
10450
  return iconDir + 'noun_10636_grey.svg'; // Grey Circle - some thing
10451
10451
  }
10452
10452
 
10453
- /**
10454
- * Find something we have as explicit image data for the thing
10455
- * See also [[imagesOf]]
10456
- * @param thing The thing for which we want to find an image
10457
- * @returns The URL of a globe icon if thing equals `ns.foaf('Agent')`
10458
- * or `ns.rdf('Resource')`. Otherwise, it goes looking for
10459
- * triples in `store`,
10460
- * `(subject: thing), (predicate: see list below) (object: image-url)`
10461
- * to find any image linked from the thing with one of the following
10462
- * predicates (in order):
10463
- * * ns.sioc('avatar')
10464
- * * ns.foaf('img')
10465
- * * ns.vcard('logo')
10466
- * * ns.vcard('hasPhoto')
10467
- * * ns.vcard('photo')
10468
- * * ns.foaf('depiction')
10453
+ /**
10454
+ * Find something we have as explicit image data for the thing
10455
+ * See also [[imagesOf]]
10456
+ * @param thing The thing for which we want to find an image
10457
+ * @returns The URL of a globe icon if thing equals `ns.foaf('Agent')`
10458
+ * or `ns.rdf('Resource')`. Otherwise, it goes looking for
10459
+ * triples in `store`,
10460
+ * `(subject: thing), (predicate: see list below) (object: image-url)`
10461
+ * to find any image linked from the thing with one of the following
10462
+ * predicates (in order):
10463
+ * * ns.sioc('avatar')
10464
+ * * ns.foaf('img')
10465
+ * * ns.vcard('logo')
10466
+ * * ns.vcard('hasPhoto')
10467
+ * * ns.vcard('photo')
10468
+ * * ns.foaf('depiction')
10469
10469
  */
10470
10470
  function findImage(thing) {
10471
10471
  var kb = solid_logic__WEBPACK_IMPORTED_MODULE_7__.store;
@@ -10477,11 +10477,11 @@ function findImage(thing) {
10477
10477
  return image ? image.uri : null;
10478
10478
  }
10479
10479
 
10480
- /**
10481
- * Do the best you can with the data available
10482
- *
10483
- * @return {Boolean} Are we happy with this icon?
10484
- * Sets src AND STYLE of the image.
10480
+ /**
10481
+ * Do the best you can with the data available
10482
+ *
10483
+ * @return {Boolean} Are we happy with this icon?
10484
+ * Sets src AND STYLE of the image.
10485
10485
  */
10486
10486
  function trySetImage(element, thing, iconForClassMap) {
10487
10487
  var kb = solid_logic__WEBPACK_IMPORTED_MODULE_7__.store;
@@ -10517,8 +10517,8 @@ function trySetImage(element, thing, iconForClassMap) {
10517
10517
  return false; // we can do better
10518
10518
  }
10519
10519
 
10520
- /**
10521
- * ToDo: Also add icons for *properties* like home, work, email, range, domain, comment,
10520
+ /**
10521
+ * ToDo: Also add icons for *properties* like home, work, email, range, domain, comment,
10522
10522
  */
10523
10523
  function setImage(element, thing) {
10524
10524
  // 20191230a
@@ -10567,7 +10567,7 @@ function faviconOrDefault(dom, x) {
10567
10567
  }
10568
10568
  }
10569
10569
 
10570
- /* Two-option dialog pop-up
10570
+ /* Two-option dialog pop-up
10571
10571
  */
10572
10572
 
10573
10573
  function renderDeleteConfirmPopup(dom, refererenceElement, prompt, deleteFunction) {
@@ -10618,9 +10618,9 @@ function renderDeleteConfirmPopup(dom, refererenceElement, prompt, deleteFunctio
10618
10618
  cancelPrompt.addEventListener('click', removePopup);
10619
10619
  return popup;
10620
10620
  }
10621
- /**
10622
- * Delete button with a check you really mean it
10623
- * @@ Supress check if command key held down?
10621
+ /**
10622
+ * Delete button with a check you really mean it
10623
+ * @@ Supress check if command key held down?
10624
10624
  */
10625
10625
  function deleteButtonWithCheck(dom, container, noun, deleteFunction) {
10626
10626
  function createPopup() {
@@ -10646,14 +10646,14 @@ function deleteButtonWithCheck(dom, container, noun, deleteFunction) {
10646
10646
  return deleteButton; // or button div? caller may change size of image
10647
10647
  }
10648
10648
 
10649
- /* Make a button
10650
- *
10651
- * @param dom - the DOM document object
10652
- * @Param iconURI - the URI of the icon to use (if any)
10653
- * @param text - the tooltip text or possibly button contents text
10654
- * @param handler <function> - A handler to called when button is clicked
10655
- *
10656
- * @returns <dDomElement> - the button
10649
+ /* Make a button
10650
+ *
10651
+ * @param dom - the DOM document object
10652
+ * @Param iconURI - the URI of the icon to use (if any)
10653
+ * @param text - the tooltip text or possibly button contents text
10654
+ * @param handler <function> - A handler to called when button is clicked
10655
+ *
10656
+ * @returns <dDomElement> - the button
10657
10657
  */
10658
10658
  function button(dom, iconURI, text, handler) {
10659
10659
  var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {
@@ -10721,12 +10721,12 @@ function button(dom, iconURI, text, handler) {
10721
10721
  return button;
10722
10722
  }
10723
10723
 
10724
- /* Make a cancel button
10725
- *
10726
- * @param dom - the DOM document object
10727
- * @param handler <function> - A handler to called when button is clicked
10728
- *
10729
- * @returns <dDomElement> - the button
10724
+ /* Make a cancel button
10725
+ *
10726
+ * @param dom - the DOM document object
10727
+ * @param handler <function> - A handler to called when button is clicked
10728
+ *
10729
+ * @returns <dDomElement> - the button
10730
10730
  */
10731
10731
  function cancelButton(dom, handler) {
10732
10732
  var b = button(dom, cancelIconURI, 'Cancel', handler);
@@ -10737,22 +10737,22 @@ function cancelButton(dom, handler) {
10737
10737
  return b;
10738
10738
  }
10739
10739
 
10740
- /* Make a continue button
10741
- *
10742
- * @param dom - the DOM document object
10743
- * @param handler <function> - A handler to called when button is clicked
10744
- *
10745
- * @returns <dDomElement> - the button
10740
+ /* Make a continue button
10741
+ *
10742
+ * @param dom - the DOM document object
10743
+ * @param handler <function> - A handler to called when button is clicked
10744
+ *
10745
+ * @returns <dDomElement> - the button
10746
10746
  */
10747
10747
  function continueButton(dom, handler) {
10748
10748
  return button(dom, checkIconURI, 'Continue', handler);
10749
10749
  }
10750
10750
 
10751
- /* Grab a name for a new thing
10752
- *
10753
- * Form to get the name of a new thing before we create it
10754
- * @params theClass Misspelt to avoid clashing with the JavaScript keyword
10755
- * @returns: a promise of (a name or null if cancelled)
10751
+ /* Grab a name for a new thing
10752
+ *
10753
+ * Form to get the name of a new thing before we create it
10754
+ * @params theClass Misspelt to avoid clashing with the JavaScript keyword
10755
+ * @returns: a promise of (a name or null if cancelled)
10756
10756
  */
10757
10757
  function askName(dom, kb, container, predicate, theClass, noun) {
10758
10758
  return new Promise(function (resolve, _reject) {
@@ -10794,10 +10794,10 @@ function askName(dom, kb, container, predicate, theClass, noun) {
10794
10794
  }); // Promise
10795
10795
  }
10796
10796
 
10797
- /**
10798
- * A TR to represent a draggable person, etc in a list
10799
- *
10800
- * pred is unused param at the moment
10797
+ /**
10798
+ * A TR to represent a draggable person, etc in a list
10799
+ *
10800
+ * pred is unused param at the moment
10801
10801
  */
10802
10802
  var personTR = renderAsRow; // The legacy name is used in a lot of places
10803
10803
 
@@ -10841,11 +10841,11 @@ function renderAsRow(dom, pred, obj, options) {
10841
10841
  return tr;
10842
10842
  }
10843
10843
 
10844
- /* A helper function for renderAsDiv
10845
- * creates the NameDiv for the person
10846
- * Note: could not move it to the helper file because they call exported functions
10847
- * from buttons
10848
- * @internal exporting this only for unit tests
10844
+ /* A helper function for renderAsDiv
10845
+ * creates the NameDiv for the person
10846
+ * Note: could not move it to the helper file because they call exported functions
10847
+ * from buttons
10848
+ * @internal exporting this only for unit tests
10849
10849
  */
10850
10850
  function createNameDiv(dom, div, title, obj) {
10851
10851
  var nameDiv = div.appendChild(dom.createElement('div'));
@@ -10855,11 +10855,11 @@ function createNameDiv(dom, div, title, obj) {
10855
10855
  setName(nameDiv, obj); // This is async
10856
10856
  }
10857
10857
  }
10858
- /* A helper function for renderAsDiv
10859
- * creates the linkDiv for the person
10860
- * Note: could not move it to the helper file because they call exported functions
10861
- * from buttons
10862
- * @internal exporting this only for unit tests
10858
+ /* A helper function for renderAsDiv
10859
+ * creates the linkDiv for the person
10860
+ * Note: could not move it to the helper file because they call exported functions
10861
+ * from buttons
10862
+ * @internal exporting this only for unit tests
10863
10863
  */
10864
10864
  function createLinkDiv(dom, div, obj, options) {
10865
10865
  var linkDiv = div.appendChild(dom.createElement('div'));
@@ -10875,9 +10875,9 @@ function createLinkDiv(dom, div, obj, options) {
10875
10875
  (0,_dragAndDrop__WEBPACK_IMPORTED_MODULE_6__/* .makeDraggable */ .eB)(div, obj);
10876
10876
  }
10877
10877
  }
10878
- /**
10879
- * A Div to represent a draggable person, etc in a list
10880
- * configurable to add an onClick listener
10878
+ /**
10879
+ * A Div to represent a draggable person, etc in a list
10880
+ * configurable to add an onClick listener
10881
10881
  */
10882
10882
  function renderAsDiv(dom, obj, options) {
10883
10883
  var div = dom.createElement('div');
@@ -10899,8 +10899,8 @@ function renderAsDiv(dom, obj, options) {
10899
10899
  return div;
10900
10900
  }
10901
10901
 
10902
- /**
10903
- * Refresh a DOM tree recursively
10902
+ /**
10903
+ * Refresh a DOM tree recursively
10904
10904
  */
10905
10905
  function refreshTree(root) {
10906
10906
  if (root.refresh) {
@@ -10912,15 +10912,15 @@ function refreshTree(root) {
10912
10912
  }
10913
10913
  }
10914
10914
 
10915
- /**
10916
- * Options argument for [[attachmentList]] function
10915
+ /**
10916
+ * Options argument for [[attachmentList]] function
10917
10917
  */
10918
10918
 
10919
- /**
10920
- * Component that displays a list of resources, for instance
10921
- * the attachments of a message, or the various documents related
10922
- * to a meeting.
10923
- * Accepts dropping URLs onto it to add attachments to it.
10919
+ /**
10920
+ * Component that displays a list of resources, for instance
10921
+ * the attachments of a message, or the various documents related
10922
+ * to a meeting.
10923
+ * Accepts dropping URLs onto it to add attachments to it.
10924
10924
  */
10925
10925
  function attachmentList(dom, subject, div) {
10926
10926
  var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
@@ -11033,11 +11033,11 @@ function attachmentList(dom, subject, div) {
11033
11033
 
11034
11034
  // /////////////////////////////////////////////////////////////////////////////
11035
11035
 
11036
- /**
11037
- * Event Handler for links within solid apps.
11038
- *
11039
- * Note that native links have constraints in Firefox, they
11040
- * don't work with local files for instance (2011)
11036
+ /**
11037
+ * Event Handler for links within solid apps.
11038
+ *
11039
+ * Note that native links have constraints in Firefox, they
11040
+ * don't work with local files for instance (2011)
11041
11041
  */
11042
11042
  function openHrefInOutlineMode(e) {
11043
11043
  e.preventDefault();
@@ -11061,10 +11061,10 @@ function openHrefInOutlineMode(e) {
11061
11061
  // dom.outlineManager.GotoSubject(store.sym(uri), true, undefined, true, undefined)
11062
11062
  }
11063
11063
 
11064
- /**
11065
- * Make a URI in the Tabulator.org annotation store out of the URI of the thing to be annotated.
11066
- *
11067
- * @@ Todo: make it a personal preference.
11064
+ /**
11065
+ * Make a URI in the Tabulator.org annotation store out of the URI of the thing to be annotated.
11066
+ *
11067
+ * @@ Todo: make it a personal preference.
11068
11068
  */
11069
11069
  function defaultAnnotationStore(subject) {
11070
11070
  if (subject.uri === undefined) return undefined;
@@ -11082,10 +11082,10 @@ function defaultAnnotationStore(subject) {
11082
11082
  return solid_logic__WEBPACK_IMPORTED_MODULE_7__.store.sym('http://tabulator.org/wiki/annnotation/' + s);
11083
11083
  }
11084
11084
 
11085
- /**
11086
- * Retrieve all RDF class URIs from solid-ui's RDF store
11087
- * @returns an object `ret` such that `Object.keys(ret)` is
11088
- * the list of all class URIs.
11085
+ /**
11086
+ * Retrieve all RDF class URIs from solid-ui's RDF store
11087
+ * @returns an object `ret` such that `Object.keys(ret)` is
11088
+ * the list of all class URIs.
11089
11089
  */
11090
11090
  function allClassURIs() {
11091
11091
  var set = {};
@@ -11102,16 +11102,16 @@ function allClassURIs() {
11102
11102
  return set;
11103
11103
  }
11104
11104
 
11105
- /**
11106
- * Figuring which properties we know about
11107
- *
11108
- * When the user inputs an RDF property, like for a form field
11109
- * or when specifying the relationship between two arbitrary things,
11110
- * then er can prompt them with properties the session knows about
11111
- *
11112
- * TODO: Look again by catching this somewhere. (On the kb?)
11113
- * TODO: move to diff module? Not really a button.
11114
- * @param {Store} kb The quadstore to be searched.
11105
+ /**
11106
+ * Figuring which properties we know about
11107
+ *
11108
+ * When the user inputs an RDF property, like for a form field
11109
+ * or when specifying the relationship between two arbitrary things,
11110
+ * then er can prompt them with properties the session knows about
11111
+ *
11112
+ * TODO: Look again by catching this somewhere. (On the kb?)
11113
+ * TODO: move to diff module? Not really a button.
11114
+ * @param {Store} kb The quadstore to be searched.
11115
11115
  */
11116
11116
 
11117
11117
  function propertyTriage(kb) {
@@ -11149,12 +11149,12 @@ function propertyTriage(kb) {
11149
11149
  return possibleProperties;
11150
11150
  }
11151
11151
 
11152
- /**
11153
- * General purpose widgets
11152
+ /**
11153
+ * General purpose widgets
11154
11154
  */
11155
11155
 
11156
- /**
11157
- * A button for jumping
11156
+ /**
11157
+ * A button for jumping
11158
11158
  */
11159
11159
  function linkButton(dom, object) {
11160
11160
  var b = dom.createElement('button');
@@ -11169,8 +11169,8 @@ function linkButton(dom, object) {
11169
11169
  return b;
11170
11170
  }
11171
11171
 
11172
- /**
11173
- * A button to remove some other element from the page
11172
+ /**
11173
+ * A button to remove some other element from the page
11174
11174
  */
11175
11175
  function removeButton(dom, element) {
11176
11176
  var b = dom.createElement('button');
@@ -11200,17 +11200,17 @@ function removeButton(dom, element) {
11200
11200
  //
11201
11201
  // These are for selecting different modes, sources,styles, etc.
11202
11202
  //
11203
- /*
11204
- buttons.headerButtons = function (dom, kb, name, words) {
11205
- const box = dom.createElement('table')
11206
- var i, word, s = '<tr>'
11207
- box.setAttribute('style', 'width: 90%; height: 1.5em')
11208
- for (i=0; i<words.length; i++) {
11209
- s += '<td><input type="radio" name="' + name + '" id="' + words[i] + '" value='
11210
- }
11211
- box.innerHTML = s + '</tr>'
11212
-
11213
- }
11203
+ /*
11204
+ buttons.headerButtons = function (dom, kb, name, words) {
11205
+ const box = dom.createElement('table')
11206
+ var i, word, s = '<tr>'
11207
+ box.setAttribute('style', 'width: 90%; height: 1.5em')
11208
+ for (i=0; i<words.length; i++) {
11209
+ s += '<td><input type="radio" name="' + name + '" id="' + words[i] + '" value='
11210
+ }
11211
+ box.innerHTML = s + '</tr>'
11212
+
11213
+ }
11214
11214
  */
11215
11215
  // ////////////////////////////////////////////////////////////
11216
11216
  //
@@ -11300,9 +11300,9 @@ function twoLineDefault(dom, x) {
11300
11300
  return box;
11301
11301
  }
11302
11302
 
11303
- /**
11304
- * Find a function that can create a widget for a given class
11305
- * @param c The RDF class for which we want a widget generator function
11303
+ /**
11304
+ * Find a function that can create a widget for a given class
11305
+ * @param c The RDF class for which we want a widget generator function
11306
11306
  */
11307
11307
  function twoLineWidgetForClass(c) {
11308
11308
  var widget = index.twoLine[c.uri];
@@ -11316,12 +11316,12 @@ function twoLineWidgetForClass(c) {
11316
11316
  return index.twoLine[''];
11317
11317
  }
11318
11318
 
11319
- /**
11320
- * Display a transaction
11321
- * @param x Should have attributes through triples in store:
11322
- * * ns.qu('payee') -> a named node
11323
- * * ns.qu('date) -> a literal
11324
- * * ns.qu('amount') -> a literal
11319
+ /**
11320
+ * Display a transaction
11321
+ * @param x Should have attributes through triples in store:
11322
+ * * ns.qu('payee') -> a named node
11323
+ * * ns.qu('date) -> a literal
11324
+ * * ns.qu('amount') -> a literal
11325
11325
  */
11326
11326
  function twoLineTransaction(dom, x) {
11327
11327
  var failed = '';
@@ -11338,12 +11338,12 @@ function twoLineTransaction(dom, x) {
11338
11338
  return box;
11339
11339
  }
11340
11340
 
11341
- /**
11342
- * Display a trip
11343
- * @param x Should have attributes through triples in store:
11344
- * * ns.dc('title') -> a literal
11345
- * * ns.cal('dtstart') -> a literal
11346
- * * ns.cal('dtend') -> a literal
11341
+ /**
11342
+ * Display a trip
11343
+ * @param x Should have attributes through triples in store:
11344
+ * * ns.dc('title') -> a literal
11345
+ * * ns.cal('dtstart') -> a literal
11346
+ * * ns.cal('dtend') -> a literal
11347
11347
  */
11348
11348
  function twoLineTrip(dom, x) {
11349
11349
  var enc = function enc(p) {
@@ -11355,8 +11355,8 @@ function twoLineTrip(dom, x) {
11355
11355
  return box;
11356
11356
  }
11357
11357
 
11358
- /**
11359
- * Stick a stylesheet link the document if not already there
11358
+ /**
11359
+ * Stick a stylesheet link the document if not already there
11360
11360
  */
11361
11361
  function addStyleSheet(dom, href) {
11362
11362
  var links = dom.querySelectorAll('link');
@@ -11380,8 +11380,8 @@ function isAudio(file) {
11380
11380
  function isVideo(file) {
11381
11381
  return isImage(file, 'video');
11382
11382
  }
11383
- /**
11384
- *
11383
+ /**
11384
+ *
11385
11385
  */
11386
11386
  function isImage(file, kind) {
11387
11387
  var dcCLasses = {
@@ -11403,12 +11403,12 @@ function isImage(file, kind) {
11403
11403
  return false;
11404
11404
  }
11405
11405
 
11406
- /**
11407
- * File upload button
11408
- * @param dom The DOM aka document
11409
- * @param droppedFileHandler Same handler function as drop, takes array of file objects
11410
- * @returns {Element} - a div with a button and a inout in it
11411
- * The input is hidden, as it is uglky - the user clicks on the nice icons and fires the input.
11406
+ /**
11407
+ * File upload button
11408
+ * @param dom The DOM aka document
11409
+ * @param droppedFileHandler Same handler function as drop, takes array of file objects
11410
+ * @returns {Element} - a div with a button and a inout in it
11411
+ * The input is hidden, as it is uglky - the user clicks on the nice icons and fires the input.
11412
11412
  */
11413
11413
  // See https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications
11414
11414
  function fileUploadButtonDiv(dom, droppedFileHandler) {
@@ -21539,11 +21539,11 @@ var ThemeLoader = /*#__PURE__*/function () {
21539
21539
  function ThemeLoader() {
21540
21540
  (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, ThemeLoader);
21541
21541
  this.themes = {
21542
- classic: 'themes/presets/classic.css',
21543
- "default": 'themes/presets/default.css',
21544
- wave: 'themes/presets/wave.css',
21545
- telegram: 'themes/presets/telegram.css',
21546
- signal: 'themes/presets/signal.css'
21542
+ classic: 'theme-classic.css',
21543
+ "default": 'theme-default.css',
21544
+ wave: 'theme-wave.css',
21545
+ telegram: 'theme-telegram.css',
21546
+ signal: 'theme-signal.css'
21547
21547
  };
21548
21548
  this.currentTheme = this.getSavedTheme();
21549
21549
  this.linkElements = {};
@@ -21607,12 +21607,12 @@ var ThemeLoader = /*#__PURE__*/function () {
21607
21607
  while (1) switch (_context2.prev = _context2.next) {
21608
21608
  case 0:
21609
21609
  // Variables
21610
- variablesLink = this.createLinkElement('solid-ui-variables', 'themes/foundation/variables.css');
21610
+ variablesLink = this.createLinkElement('solid-ui-variables', 'theme-variables.css');
21611
21611
  document.head.insertBefore(variablesLink, document.head.firstChild);
21612
21612
  this.linkElements.variables = variablesLink;
21613
21613
 
21614
21614
  // Accessibility
21615
- a11yLink = this.createLinkElement('solid-ui-accessibility', 'themes/foundation/accessibility.css');
21615
+ a11yLink = this.createLinkElement('solid-ui-accessibility', 'theme-accessibility.css');
21616
21616
  document.head.insertBefore(a11yLink, document.head.firstChild);
21617
21617
  this.linkElements.accessibility = a11yLink;
21618
21618
 
@@ -27283,43 +27283,43 @@ var __webpack_exports__ = {};
27283
27283
  /* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(1648);
27284
27284
  /* harmony import */ var _footer__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(7134);
27285
27285
  /* harmony import */ var _create_types__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(5912);
27286
- /*
27287
- The MIT License (MIT)
27288
-
27289
- Copyright (c) 2015-2016 Solid
27290
-
27291
- Permission is hereby granted, free of charge, to any person obtaining a copy
27292
- of this software and associated documentation files (the "Software"), to deal
27293
- in the Software without restriction, including without limitation the rights
27294
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
27295
- copies of the Software, and to permit persons to whom the Software is
27296
- furnished to do so, subject to the following conditions:
27297
-
27298
- The above copyright notice and this permission notice shall be included in all
27299
- copies or substantial portions of the Software.
27300
-
27301
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27302
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27303
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27304
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27305
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27306
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27307
- SOFTWARE.
27308
-
27309
- If you would like to know more about the solid Solid project, please see
27310
- https://github.com/solidos/solid
27286
+ /*
27287
+ The MIT License (MIT)
27288
+
27289
+ Copyright (c) 2015-2016 Solid
27290
+
27291
+ Permission is hereby granted, free of charge, to any person obtaining a copy
27292
+ of this software and associated documentation files (the "Software"), to deal
27293
+ in the Software without restriction, including without limitation the rights
27294
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
27295
+ copies of the Software, and to permit persons to whom the Software is
27296
+ furnished to do so, subject to the following conditions:
27297
+
27298
+ The above copyright notice and this permission notice shall be included in all
27299
+ copies or substantial portions of the Software.
27300
+
27301
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27302
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27303
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27304
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27305
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27306
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27307
+ SOFTWARE.
27308
+
27309
+ If you would like to know more about the solid Solid project, please see
27310
+ https://github.com/solidos/solid
27311
27311
  */
27312
27312
 
27313
27313
 
27314
- /**
27315
- * Provides a Solid client helper object (which exposes various static modules).
27316
- * @module UI.js
27317
- * @main UI.js
27314
+ /**
27315
+ * Provides a Solid client helper object (which exposes various static modules).
27316
+ * @module UI.js
27317
+ * @main UI.js
27318
27318
  */
27319
27319
 
27320
- /**
27321
- * @class UI
27322
- * @static
27320
+ /**
27321
+ * @class UI
27322
+ * @static
27323
27323
  */
27324
27324
 
27325
27325
  // REMOVE @ts-ignore as you migrate files to TypeScript