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.
- package/README.md +302 -302
- package/dist/solid-ui.esm.js +266 -266
- package/dist/solid-ui.esm.js.map +1 -1
- package/dist/solid-ui.esm.min.js +1 -1
- package/dist/solid-ui.esm.min.js.map +1 -1
- package/dist/solid-ui.js +266 -266
- package/dist/solid-ui.js.map +1 -1
- package/dist/solid-ui.min.js +1 -1
- package/dist/solid-ui.min.js.map +1 -1
- package/dist/versionInfo.js +2 -2
- package/dist/widgets/buttons.js +17 -17
- package/package.json +133 -133
- /package/dist/{themes/foundation/accessibility.css → theme-accessibility.css} +0 -0
- /package/dist/{themes/presets/classic.css → theme-classic.css} +0 -0
- /package/dist/{themes/presets/default.css → theme-default.css} +0 -0
- /package/dist/{themes/presets/signal.css → theme-signal.css} +0 -0
- /package/dist/{themes/presets/telegram.css → theme-telegram.css} +0 -0
- /package/dist/{themes/foundation/variables.css → theme-variables.css} +0 -0
- /package/dist/{themes/presets/wave.css → theme-wave.css} +0 -0
- /package/dist/{themes/README.md → themes-README.md} +0 -0
package/dist/solid-ui.js
CHANGED
|
@@ -3205,7 +3205,7 @@ var createLinkForURI = function createLinkForURI(dom, linkDiv, obj) {
|
|
|
3205
3205
|
linkDiv.appendChild(dom.createElement('br'));
|
|
3206
3206
|
};
|
|
3207
3207
|
;// ./src/widgets/buttons.ts
|
|
3208
|
-
/* Buttons
|
|
3208
|
+
/* Buttons
|
|
3209
3209
|
*/
|
|
3210
3210
|
|
|
3211
3211
|
|
|
@@ -3220,9 +3220,9 @@ var createLinkForURI = function createLinkForURI(dom, linkDiv, obj) {
|
|
|
3220
3220
|
|
|
3221
3221
|
|
|
3222
3222
|
|
|
3223
|
-
/**
|
|
3224
|
-
* UI Widgets such as buttons
|
|
3225
|
-
* @packageDocumentation
|
|
3223
|
+
/**
|
|
3224
|
+
* UI Widgets such as buttons
|
|
3225
|
+
* @packageDocumentation
|
|
3226
3226
|
*/
|
|
3227
3227
|
|
|
3228
3228
|
/* global alert */
|
|
@@ -3250,8 +3250,8 @@ function getStatusArea(context) {
|
|
|
3250
3250
|
return null;
|
|
3251
3251
|
}
|
|
3252
3252
|
|
|
3253
|
-
/**
|
|
3254
|
-
* Display an error message block
|
|
3253
|
+
/**
|
|
3254
|
+
* Display an error message block
|
|
3255
3255
|
*/
|
|
3256
3256
|
function complain(context, err) {
|
|
3257
3257
|
if (!err) return; // only if error
|
|
@@ -3260,8 +3260,8 @@ function complain(context, err) {
|
|
|
3260
3260
|
if (ele) ele.appendChild(errorMessageBlock(context && context.dom || document, err));else alert(err);
|
|
3261
3261
|
}
|
|
3262
3262
|
|
|
3263
|
-
/**
|
|
3264
|
-
* Remove all the children of an HTML element
|
|
3263
|
+
/**
|
|
3264
|
+
* Remove all the children of an HTML element
|
|
3265
3265
|
*/
|
|
3266
3266
|
function clearElement(ele) {
|
|
3267
3267
|
while (ele.firstChild) {
|
|
@@ -3270,8 +3270,8 @@ function clearElement(ele) {
|
|
|
3270
3270
|
return ele;
|
|
3271
3271
|
}
|
|
3272
3272
|
|
|
3273
|
-
/**
|
|
3274
|
-
* To figure out the log URI from the full URI used to invoke the reasoner
|
|
3273
|
+
/**
|
|
3274
|
+
* To figure out the log URI from the full URI used to invoke the reasoner
|
|
3275
3275
|
*/
|
|
3276
3276
|
function extractLogURI(fullURI) {
|
|
3277
3277
|
var logPos = fullURI.search(/logFile=/);
|
|
@@ -3279,11 +3279,11 @@ function extractLogURI(fullURI) {
|
|
|
3279
3279
|
return fullURI.substring(logPos + 8, rulPos);
|
|
3280
3280
|
}
|
|
3281
3281
|
|
|
3282
|
-
/**
|
|
3283
|
-
* By default, converts e.g. '2020-02-19T19:35:28.557Z' to '19:35'
|
|
3284
|
-
* if today is 19 Feb 2020, and to 'Feb 19' if not.
|
|
3285
|
-
* @@@ TODO This needs to be changed to local time
|
|
3286
|
-
* @param noTime Return a string like 'Feb 19' even if it's today.
|
|
3282
|
+
/**
|
|
3283
|
+
* By default, converts e.g. '2020-02-19T19:35:28.557Z' to '19:35'
|
|
3284
|
+
* if today is 19 Feb 2020, and to 'Feb 19' if not.
|
|
3285
|
+
* @@@ TODO This needs to be changed to local time
|
|
3286
|
+
* @param noTime Return a string like 'Feb 19' even if it's today.
|
|
3287
3287
|
*/
|
|
3288
3288
|
function shortDate(str, noTime) {
|
|
3289
3289
|
if (!str) return '???';
|
|
@@ -3304,11 +3304,11 @@ function shortDate(str, noTime) {
|
|
|
3304
3304
|
}
|
|
3305
3305
|
}
|
|
3306
3306
|
|
|
3307
|
-
/**
|
|
3308
|
-
* Format a date and time
|
|
3309
|
-
* @param date for instance `new Date()`
|
|
3310
|
-
* @param format for instance '{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}'
|
|
3311
|
-
* @returns for instance '2000-01-15T23:14:23.002'
|
|
3307
|
+
/**
|
|
3308
|
+
* Format a date and time
|
|
3309
|
+
* @param date for instance `new Date()`
|
|
3310
|
+
* @param format for instance '{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}'
|
|
3311
|
+
* @returns for instance '2000-01-15T23:14:23.002'
|
|
3312
3312
|
*/
|
|
3313
3313
|
function formatDateTime(date, format) {
|
|
3314
3314
|
return format.split('{').map(function (s) {
|
|
@@ -3324,17 +3324,17 @@ function formatDateTime(date, format) {
|
|
|
3324
3324
|
}).join('');
|
|
3325
3325
|
}
|
|
3326
3326
|
|
|
3327
|
-
/**
|
|
3328
|
-
* Get a string representation of the current time
|
|
3329
|
-
* @returns for instance '2000-01-15T23:14:23.002'
|
|
3327
|
+
/**
|
|
3328
|
+
* Get a string representation of the current time
|
|
3329
|
+
* @returns for instance '2000-01-15T23:14:23.002'
|
|
3330
3330
|
*/
|
|
3331
3331
|
function timestamp() {
|
|
3332
3332
|
return formatDateTime(new Date(), '{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}');
|
|
3333
3333
|
}
|
|
3334
3334
|
|
|
3335
|
-
/**
|
|
3336
|
-
* Get a short string representation of the current time
|
|
3337
|
-
* @returns for instance '23:14:23.002'
|
|
3335
|
+
/**
|
|
3336
|
+
* Get a short string representation of the current time
|
|
3337
|
+
* @returns for instance '23:14:23.002'
|
|
3338
3338
|
*/
|
|
3339
3339
|
function shortTime() {
|
|
3340
3340
|
return formatDateTime(new Date(), '{Hours}:{Minutes}:{Seconds}.{Milliseconds}');
|
|
@@ -3342,8 +3342,8 @@ function shortTime() {
|
|
|
3342
3342
|
|
|
3343
3343
|
// ///////////////////// Handy UX widgets
|
|
3344
3344
|
|
|
3345
|
-
/**
|
|
3346
|
-
* Sets the best name we have and looks up a better one
|
|
3345
|
+
/**
|
|
3346
|
+
* Sets the best name we have and looks up a better one
|
|
3347
3347
|
*/
|
|
3348
3348
|
function setName(element, x) {
|
|
3349
3349
|
var kb = external_SolidLogic_.store;
|
|
@@ -3364,29 +3364,29 @@ function setName(element, x) {
|
|
|
3364
3364
|
}
|
|
3365
3365
|
}
|
|
3366
3366
|
|
|
3367
|
-
/**
|
|
3368
|
-
* Set of suitable images
|
|
3369
|
-
* See also [[findImage]]
|
|
3370
|
-
* @param x The thing for which we want to find an image
|
|
3371
|
-
* @param kb The RDF store to look in
|
|
3372
|
-
* @returns It goes looking for triples in `kb`,
|
|
3373
|
-
* `(subject: x), (predicate: see list below) (object: image-url)`
|
|
3374
|
-
* to find any image linked from the thing with one of the following
|
|
3375
|
-
* predicates (in order):
|
|
3376
|
-
* * ns.sioc('avatar')
|
|
3377
|
-
* * ns.foaf('img')
|
|
3378
|
-
* * ns.vcard('logo')
|
|
3379
|
-
* * ns.vcard('hasPhoto')
|
|
3380
|
-
* * ns.vcard('photo')
|
|
3381
|
-
* * ns.foaf('depiction')
|
|
3382
|
-
|
|
3367
|
+
/**
|
|
3368
|
+
* Set of suitable images
|
|
3369
|
+
* See also [[findImage]]
|
|
3370
|
+
* @param x The thing for which we want to find an image
|
|
3371
|
+
* @param kb The RDF store to look in
|
|
3372
|
+
* @returns It goes looking for triples in `kb`,
|
|
3373
|
+
* `(subject: x), (predicate: see list below) (object: image-url)`
|
|
3374
|
+
* to find any image linked from the thing with one of the following
|
|
3375
|
+
* predicates (in order):
|
|
3376
|
+
* * ns.sioc('avatar')
|
|
3377
|
+
* * ns.foaf('img')
|
|
3378
|
+
* * ns.vcard('logo')
|
|
3379
|
+
* * ns.vcard('hasPhoto')
|
|
3380
|
+
* * ns.vcard('photo')
|
|
3381
|
+
* * ns.foaf('depiction')
|
|
3382
|
+
|
|
3383
3383
|
*/
|
|
3384
3384
|
function imagesOf(x, kb) {
|
|
3385
3385
|
return kb.each(x, src_ns.sioc('avatar')).concat(kb.each(x, src_ns.foaf('img'))).concat(kb.each(x, src_ns.vcard('logo'))).concat(kb.each(x, src_ns.vcard('hasPhoto'))).concat(kb.each(x, src_ns.vcard('photo'))).concat(kb.each(x, src_ns.foaf('depiction')));
|
|
3386
3386
|
}
|
|
3387
3387
|
|
|
3388
|
-
/**
|
|
3389
|
-
* Best logo or avatar or photo etc to represent someone or some group etc
|
|
3388
|
+
/**
|
|
3389
|
+
* Best logo or avatar or photo etc to represent someone or some group etc
|
|
3390
3390
|
*/
|
|
3391
3391
|
var iconForClass = {
|
|
3392
3392
|
// Potentially extendable by other apps, panes, etc
|
|
@@ -3421,8 +3421,8 @@ var iconForClass = {
|
|
|
3421
3421
|
'wf:Closed': 'noun_17020.svg'
|
|
3422
3422
|
};
|
|
3423
3423
|
|
|
3424
|
-
/**
|
|
3425
|
-
* Returns the origin of the URI of a NamedNode
|
|
3424
|
+
/**
|
|
3425
|
+
* Returns the origin of the URI of a NamedNode
|
|
3426
3426
|
*/
|
|
3427
3427
|
function tempSite(x) {
|
|
3428
3428
|
// use only while one in rdflib fails with origins 2019
|
|
@@ -3438,8 +3438,8 @@ function tempSite(x) {
|
|
|
3438
3438
|
}
|
|
3439
3439
|
}
|
|
3440
3440
|
|
|
3441
|
-
/**
|
|
3442
|
-
* Find an image for this thing as a class
|
|
3441
|
+
/**
|
|
3442
|
+
* Find an image for this thing as a class
|
|
3443
3443
|
*/
|
|
3444
3444
|
function findImageFromURI(x) {
|
|
3445
3445
|
var iconDir = buttons_iconBase;
|
|
@@ -3469,22 +3469,22 @@ function findImageFromURI(x) {
|
|
|
3469
3469
|
return iconDir + 'noun_10636_grey.svg'; // Grey Circle - some thing
|
|
3470
3470
|
}
|
|
3471
3471
|
|
|
3472
|
-
/**
|
|
3473
|
-
* Find something we have as explicit image data for the thing
|
|
3474
|
-
* See also [[imagesOf]]
|
|
3475
|
-
* @param thing The thing for which we want to find an image
|
|
3476
|
-
* @returns The URL of a globe icon if thing equals `ns.foaf('Agent')`
|
|
3477
|
-
* or `ns.rdf('Resource')`. Otherwise, it goes looking for
|
|
3478
|
-
* triples in `store`,
|
|
3479
|
-
* `(subject: thing), (predicate: see list below) (object: image-url)`
|
|
3480
|
-
* to find any image linked from the thing with one of the following
|
|
3481
|
-
* predicates (in order):
|
|
3482
|
-
* * ns.sioc('avatar')
|
|
3483
|
-
* * ns.foaf('img')
|
|
3484
|
-
* * ns.vcard('logo')
|
|
3485
|
-
* * ns.vcard('hasPhoto')
|
|
3486
|
-
* * ns.vcard('photo')
|
|
3487
|
-
* * ns.foaf('depiction')
|
|
3472
|
+
/**
|
|
3473
|
+
* Find something we have as explicit image data for the thing
|
|
3474
|
+
* See also [[imagesOf]]
|
|
3475
|
+
* @param thing The thing for which we want to find an image
|
|
3476
|
+
* @returns The URL of a globe icon if thing equals `ns.foaf('Agent')`
|
|
3477
|
+
* or `ns.rdf('Resource')`. Otherwise, it goes looking for
|
|
3478
|
+
* triples in `store`,
|
|
3479
|
+
* `(subject: thing), (predicate: see list below) (object: image-url)`
|
|
3480
|
+
* to find any image linked from the thing with one of the following
|
|
3481
|
+
* predicates (in order):
|
|
3482
|
+
* * ns.sioc('avatar')
|
|
3483
|
+
* * ns.foaf('img')
|
|
3484
|
+
* * ns.vcard('logo')
|
|
3485
|
+
* * ns.vcard('hasPhoto')
|
|
3486
|
+
* * ns.vcard('photo')
|
|
3487
|
+
* * ns.foaf('depiction')
|
|
3488
3488
|
*/
|
|
3489
3489
|
function findImage(thing) {
|
|
3490
3490
|
var kb = external_SolidLogic_.store;
|
|
@@ -3496,11 +3496,11 @@ function findImage(thing) {
|
|
|
3496
3496
|
return image ? image.uri : null;
|
|
3497
3497
|
}
|
|
3498
3498
|
|
|
3499
|
-
/**
|
|
3500
|
-
* Do the best you can with the data available
|
|
3501
|
-
*
|
|
3502
|
-
* @return {Boolean} Are we happy with this icon?
|
|
3503
|
-
* Sets src AND STYLE of the image.
|
|
3499
|
+
/**
|
|
3500
|
+
* Do the best you can with the data available
|
|
3501
|
+
*
|
|
3502
|
+
* @return {Boolean} Are we happy with this icon?
|
|
3503
|
+
* Sets src AND STYLE of the image.
|
|
3504
3504
|
*/
|
|
3505
3505
|
function trySetImage(element, thing, iconForClassMap) {
|
|
3506
3506
|
var kb = external_SolidLogic_.store;
|
|
@@ -3536,8 +3536,8 @@ function trySetImage(element, thing, iconForClassMap) {
|
|
|
3536
3536
|
return false; // we can do better
|
|
3537
3537
|
}
|
|
3538
3538
|
|
|
3539
|
-
/**
|
|
3540
|
-
* ToDo: Also add icons for *properties* like home, work, email, range, domain, comment,
|
|
3539
|
+
/**
|
|
3540
|
+
* ToDo: Also add icons for *properties* like home, work, email, range, domain, comment,
|
|
3541
3541
|
*/
|
|
3542
3542
|
function setImage(element, thing) {
|
|
3543
3543
|
// 20191230a
|
|
@@ -3586,7 +3586,7 @@ function faviconOrDefault(dom, x) {
|
|
|
3586
3586
|
}
|
|
3587
3587
|
}
|
|
3588
3588
|
|
|
3589
|
-
/* Two-option dialog pop-up
|
|
3589
|
+
/* Two-option dialog pop-up
|
|
3590
3590
|
*/
|
|
3591
3591
|
|
|
3592
3592
|
function renderDeleteConfirmPopup(dom, refererenceElement, prompt, deleteFunction) {
|
|
@@ -3637,9 +3637,9 @@ function renderDeleteConfirmPopup(dom, refererenceElement, prompt, deleteFunctio
|
|
|
3637
3637
|
cancelPrompt.addEventListener('click', removePopup);
|
|
3638
3638
|
return popup;
|
|
3639
3639
|
}
|
|
3640
|
-
/**
|
|
3641
|
-
* Delete button with a check you really mean it
|
|
3642
|
-
* @@ Supress check if command key held down?
|
|
3640
|
+
/**
|
|
3641
|
+
* Delete button with a check you really mean it
|
|
3642
|
+
* @@ Supress check if command key held down?
|
|
3643
3643
|
*/
|
|
3644
3644
|
function deleteButtonWithCheck(dom, container, noun, deleteFunction) {
|
|
3645
3645
|
function createPopup() {
|
|
@@ -3665,14 +3665,14 @@ function deleteButtonWithCheck(dom, container, noun, deleteFunction) {
|
|
|
3665
3665
|
return deleteButton; // or button div? caller may change size of image
|
|
3666
3666
|
}
|
|
3667
3667
|
|
|
3668
|
-
/* Make a button
|
|
3669
|
-
*
|
|
3670
|
-
* @param dom - the DOM document object
|
|
3671
|
-
* @Param iconURI - the URI of the icon to use (if any)
|
|
3672
|
-
* @param text - the tooltip text or possibly button contents text
|
|
3673
|
-
* @param handler <function> - A handler to called when button is clicked
|
|
3674
|
-
*
|
|
3675
|
-
* @returns <dDomElement> - the button
|
|
3668
|
+
/* Make a button
|
|
3669
|
+
*
|
|
3670
|
+
* @param dom - the DOM document object
|
|
3671
|
+
* @Param iconURI - the URI of the icon to use (if any)
|
|
3672
|
+
* @param text - the tooltip text or possibly button contents text
|
|
3673
|
+
* @param handler <function> - A handler to called when button is clicked
|
|
3674
|
+
*
|
|
3675
|
+
* @returns <dDomElement> - the button
|
|
3676
3676
|
*/
|
|
3677
3677
|
function buttons_button(dom, iconURI, text, handler) {
|
|
3678
3678
|
var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {
|
|
@@ -3740,12 +3740,12 @@ function buttons_button(dom, iconURI, text, handler) {
|
|
|
3740
3740
|
return button;
|
|
3741
3741
|
}
|
|
3742
3742
|
|
|
3743
|
-
/* Make a cancel button
|
|
3744
|
-
*
|
|
3745
|
-
* @param dom - the DOM document object
|
|
3746
|
-
* @param handler <function> - A handler to called when button is clicked
|
|
3747
|
-
*
|
|
3748
|
-
* @returns <dDomElement> - the button
|
|
3743
|
+
/* Make a cancel button
|
|
3744
|
+
*
|
|
3745
|
+
* @param dom - the DOM document object
|
|
3746
|
+
* @param handler <function> - A handler to called when button is clicked
|
|
3747
|
+
*
|
|
3748
|
+
* @returns <dDomElement> - the button
|
|
3749
3749
|
*/
|
|
3750
3750
|
function buttons_cancelButton(dom, handler) {
|
|
3751
3751
|
var b = buttons_button(dom, cancelIconURI, 'Cancel', handler);
|
|
@@ -3756,22 +3756,22 @@ function buttons_cancelButton(dom, handler) {
|
|
|
3756
3756
|
return b;
|
|
3757
3757
|
}
|
|
3758
3758
|
|
|
3759
|
-
/* Make a continue button
|
|
3760
|
-
*
|
|
3761
|
-
* @param dom - the DOM document object
|
|
3762
|
-
* @param handler <function> - A handler to called when button is clicked
|
|
3763
|
-
*
|
|
3764
|
-
* @returns <dDomElement> - the button
|
|
3759
|
+
/* Make a continue button
|
|
3760
|
+
*
|
|
3761
|
+
* @param dom - the DOM document object
|
|
3762
|
+
* @param handler <function> - A handler to called when button is clicked
|
|
3763
|
+
*
|
|
3764
|
+
* @returns <dDomElement> - the button
|
|
3765
3765
|
*/
|
|
3766
3766
|
function continueButton(dom, handler) {
|
|
3767
3767
|
return buttons_button(dom, checkIconURI, 'Continue', handler);
|
|
3768
3768
|
}
|
|
3769
3769
|
|
|
3770
|
-
/* Grab a name for a new thing
|
|
3771
|
-
*
|
|
3772
|
-
* Form to get the name of a new thing before we create it
|
|
3773
|
-
* @params theClass Misspelt to avoid clashing with the JavaScript keyword
|
|
3774
|
-
* @returns: a promise of (a name or null if cancelled)
|
|
3770
|
+
/* Grab a name for a new thing
|
|
3771
|
+
*
|
|
3772
|
+
* Form to get the name of a new thing before we create it
|
|
3773
|
+
* @params theClass Misspelt to avoid clashing with the JavaScript keyword
|
|
3774
|
+
* @returns: a promise of (a name or null if cancelled)
|
|
3775
3775
|
*/
|
|
3776
3776
|
function askName(dom, kb, container, predicate, theClass, noun) {
|
|
3777
3777
|
return new Promise(function (resolve, _reject) {
|
|
@@ -3813,10 +3813,10 @@ function askName(dom, kb, container, predicate, theClass, noun) {
|
|
|
3813
3813
|
}); // Promise
|
|
3814
3814
|
}
|
|
3815
3815
|
|
|
3816
|
-
/**
|
|
3817
|
-
* A TR to represent a draggable person, etc in a list
|
|
3818
|
-
*
|
|
3819
|
-
* pred is unused param at the moment
|
|
3816
|
+
/**
|
|
3817
|
+
* A TR to represent a draggable person, etc in a list
|
|
3818
|
+
*
|
|
3819
|
+
* pred is unused param at the moment
|
|
3820
3820
|
*/
|
|
3821
3821
|
var personTR = renderAsRow; // The legacy name is used in a lot of places
|
|
3822
3822
|
|
|
@@ -3860,11 +3860,11 @@ function renderAsRow(dom, pred, obj, options) {
|
|
|
3860
3860
|
return tr;
|
|
3861
3861
|
}
|
|
3862
3862
|
|
|
3863
|
-
/* A helper function for renderAsDiv
|
|
3864
|
-
* creates the NameDiv for the person
|
|
3865
|
-
* Note: could not move it to the helper file because they call exported functions
|
|
3866
|
-
* from buttons
|
|
3867
|
-
* @internal exporting this only for unit tests
|
|
3863
|
+
/* A helper function for renderAsDiv
|
|
3864
|
+
* creates the NameDiv for the person
|
|
3865
|
+
* Note: could not move it to the helper file because they call exported functions
|
|
3866
|
+
* from buttons
|
|
3867
|
+
* @internal exporting this only for unit tests
|
|
3868
3868
|
*/
|
|
3869
3869
|
function createNameDiv(dom, div, title, obj) {
|
|
3870
3870
|
var nameDiv = div.appendChild(dom.createElement('div'));
|
|
@@ -3874,11 +3874,11 @@ function createNameDiv(dom, div, title, obj) {
|
|
|
3874
3874
|
setName(nameDiv, obj); // This is async
|
|
3875
3875
|
}
|
|
3876
3876
|
}
|
|
3877
|
-
/* A helper function for renderAsDiv
|
|
3878
|
-
* creates the linkDiv for the person
|
|
3879
|
-
* Note: could not move it to the helper file because they call exported functions
|
|
3880
|
-
* from buttons
|
|
3881
|
-
* @internal exporting this only for unit tests
|
|
3877
|
+
/* A helper function for renderAsDiv
|
|
3878
|
+
* creates the linkDiv for the person
|
|
3879
|
+
* Note: could not move it to the helper file because they call exported functions
|
|
3880
|
+
* from buttons
|
|
3881
|
+
* @internal exporting this only for unit tests
|
|
3882
3882
|
*/
|
|
3883
3883
|
function createLinkDiv(dom, div, obj, options) {
|
|
3884
3884
|
var linkDiv = div.appendChild(dom.createElement('div'));
|
|
@@ -3894,9 +3894,9 @@ function createLinkDiv(dom, div, obj, options) {
|
|
|
3894
3894
|
makeDraggable(div, obj);
|
|
3895
3895
|
}
|
|
3896
3896
|
}
|
|
3897
|
-
/**
|
|
3898
|
-
* A Div to represent a draggable person, etc in a list
|
|
3899
|
-
* configurable to add an onClick listener
|
|
3897
|
+
/**
|
|
3898
|
+
* A Div to represent a draggable person, etc in a list
|
|
3899
|
+
* configurable to add an onClick listener
|
|
3900
3900
|
*/
|
|
3901
3901
|
function renderAsDiv(dom, obj, options) {
|
|
3902
3902
|
var div = dom.createElement('div');
|
|
@@ -3918,8 +3918,8 @@ function renderAsDiv(dom, obj, options) {
|
|
|
3918
3918
|
return div;
|
|
3919
3919
|
}
|
|
3920
3920
|
|
|
3921
|
-
/**
|
|
3922
|
-
* Refresh a DOM tree recursively
|
|
3921
|
+
/**
|
|
3922
|
+
* Refresh a DOM tree recursively
|
|
3923
3923
|
*/
|
|
3924
3924
|
function refreshTree(root) {
|
|
3925
3925
|
if (root.refresh) {
|
|
@@ -3931,15 +3931,15 @@ function refreshTree(root) {
|
|
|
3931
3931
|
}
|
|
3932
3932
|
}
|
|
3933
3933
|
|
|
3934
|
-
/**
|
|
3935
|
-
* Options argument for [[attachmentList]] function
|
|
3934
|
+
/**
|
|
3935
|
+
* Options argument for [[attachmentList]] function
|
|
3936
3936
|
*/
|
|
3937
3937
|
|
|
3938
|
-
/**
|
|
3939
|
-
* Component that displays a list of resources, for instance
|
|
3940
|
-
* the attachments of a message, or the various documents related
|
|
3941
|
-
* to a meeting.
|
|
3942
|
-
* Accepts dropping URLs onto it to add attachments to it.
|
|
3938
|
+
/**
|
|
3939
|
+
* Component that displays a list of resources, for instance
|
|
3940
|
+
* the attachments of a message, or the various documents related
|
|
3941
|
+
* to a meeting.
|
|
3942
|
+
* Accepts dropping URLs onto it to add attachments to it.
|
|
3943
3943
|
*/
|
|
3944
3944
|
function attachmentList(dom, subject, div) {
|
|
3945
3945
|
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
@@ -4052,11 +4052,11 @@ function attachmentList(dom, subject, div) {
|
|
|
4052
4052
|
|
|
4053
4053
|
// /////////////////////////////////////////////////////////////////////////////
|
|
4054
4054
|
|
|
4055
|
-
/**
|
|
4056
|
-
* Event Handler for links within solid apps.
|
|
4057
|
-
*
|
|
4058
|
-
* Note that native links have constraints in Firefox, they
|
|
4059
|
-
* don't work with local files for instance (2011)
|
|
4055
|
+
/**
|
|
4056
|
+
* Event Handler for links within solid apps.
|
|
4057
|
+
*
|
|
4058
|
+
* Note that native links have constraints in Firefox, they
|
|
4059
|
+
* don't work with local files for instance (2011)
|
|
4060
4060
|
*/
|
|
4061
4061
|
function openHrefInOutlineMode(e) {
|
|
4062
4062
|
e.preventDefault();
|
|
@@ -4080,10 +4080,10 @@ function openHrefInOutlineMode(e) {
|
|
|
4080
4080
|
// dom.outlineManager.GotoSubject(store.sym(uri), true, undefined, true, undefined)
|
|
4081
4081
|
}
|
|
4082
4082
|
|
|
4083
|
-
/**
|
|
4084
|
-
* Make a URI in the Tabulator.org annotation store out of the URI of the thing to be annotated.
|
|
4085
|
-
*
|
|
4086
|
-
* @@ Todo: make it a personal preference.
|
|
4083
|
+
/**
|
|
4084
|
+
* Make a URI in the Tabulator.org annotation store out of the URI of the thing to be annotated.
|
|
4085
|
+
*
|
|
4086
|
+
* @@ Todo: make it a personal preference.
|
|
4087
4087
|
*/
|
|
4088
4088
|
function defaultAnnotationStore(subject) {
|
|
4089
4089
|
if (subject.uri === undefined) return undefined;
|
|
@@ -4101,10 +4101,10 @@ function defaultAnnotationStore(subject) {
|
|
|
4101
4101
|
return external_SolidLogic_.store.sym('http://tabulator.org/wiki/annnotation/' + s);
|
|
4102
4102
|
}
|
|
4103
4103
|
|
|
4104
|
-
/**
|
|
4105
|
-
* Retrieve all RDF class URIs from solid-ui's RDF store
|
|
4106
|
-
* @returns an object `ret` such that `Object.keys(ret)` is
|
|
4107
|
-
* the list of all class URIs.
|
|
4104
|
+
/**
|
|
4105
|
+
* Retrieve all RDF class URIs from solid-ui's RDF store
|
|
4106
|
+
* @returns an object `ret` such that `Object.keys(ret)` is
|
|
4107
|
+
* the list of all class URIs.
|
|
4108
4108
|
*/
|
|
4109
4109
|
function allClassURIs() {
|
|
4110
4110
|
var set = {};
|
|
@@ -4121,16 +4121,16 @@ function allClassURIs() {
|
|
|
4121
4121
|
return set;
|
|
4122
4122
|
}
|
|
4123
4123
|
|
|
4124
|
-
/**
|
|
4125
|
-
* Figuring which properties we know about
|
|
4126
|
-
*
|
|
4127
|
-
* When the user inputs an RDF property, like for a form field
|
|
4128
|
-
* or when specifying the relationship between two arbitrary things,
|
|
4129
|
-
* then er can prompt them with properties the session knows about
|
|
4130
|
-
*
|
|
4131
|
-
* TODO: Look again by catching this somewhere. (On the kb?)
|
|
4132
|
-
* TODO: move to diff module? Not really a button.
|
|
4133
|
-
* @param {Store} kb The quadstore to be searched.
|
|
4124
|
+
/**
|
|
4125
|
+
* Figuring which properties we know about
|
|
4126
|
+
*
|
|
4127
|
+
* When the user inputs an RDF property, like for a form field
|
|
4128
|
+
* or when specifying the relationship between two arbitrary things,
|
|
4129
|
+
* then er can prompt them with properties the session knows about
|
|
4130
|
+
*
|
|
4131
|
+
* TODO: Look again by catching this somewhere. (On the kb?)
|
|
4132
|
+
* TODO: move to diff module? Not really a button.
|
|
4133
|
+
* @param {Store} kb The quadstore to be searched.
|
|
4134
4134
|
*/
|
|
4135
4135
|
|
|
4136
4136
|
function propertyTriage(kb) {
|
|
@@ -4168,12 +4168,12 @@ function propertyTriage(kb) {
|
|
|
4168
4168
|
return possibleProperties;
|
|
4169
4169
|
}
|
|
4170
4170
|
|
|
4171
|
-
/**
|
|
4172
|
-
* General purpose widgets
|
|
4171
|
+
/**
|
|
4172
|
+
* General purpose widgets
|
|
4173
4173
|
*/
|
|
4174
4174
|
|
|
4175
|
-
/**
|
|
4176
|
-
* A button for jumping
|
|
4175
|
+
/**
|
|
4176
|
+
* A button for jumping
|
|
4177
4177
|
*/
|
|
4178
4178
|
function linkButton(dom, object) {
|
|
4179
4179
|
var b = dom.createElement('button');
|
|
@@ -4188,8 +4188,8 @@ function linkButton(dom, object) {
|
|
|
4188
4188
|
return b;
|
|
4189
4189
|
}
|
|
4190
4190
|
|
|
4191
|
-
/**
|
|
4192
|
-
* A button to remove some other element from the page
|
|
4191
|
+
/**
|
|
4192
|
+
* A button to remove some other element from the page
|
|
4193
4193
|
*/
|
|
4194
4194
|
function removeButton(dom, element) {
|
|
4195
4195
|
var b = dom.createElement('button');
|
|
@@ -4219,17 +4219,17 @@ function removeButton(dom, element) {
|
|
|
4219
4219
|
//
|
|
4220
4220
|
// These are for selecting different modes, sources,styles, etc.
|
|
4221
4221
|
//
|
|
4222
|
-
/*
|
|
4223
|
-
buttons.headerButtons = function (dom, kb, name, words) {
|
|
4224
|
-
const box = dom.createElement('table')
|
|
4225
|
-
var i, word, s = '<tr>'
|
|
4226
|
-
box.setAttribute('style', 'width: 90%; height: 1.5em')
|
|
4227
|
-
for (i=0; i<words.length; i++) {
|
|
4228
|
-
s += '<td><input type="radio" name="' + name + '" id="' + words[i] + '" value='
|
|
4229
|
-
}
|
|
4230
|
-
box.innerHTML = s + '</tr>'
|
|
4231
|
-
|
|
4232
|
-
}
|
|
4222
|
+
/*
|
|
4223
|
+
buttons.headerButtons = function (dom, kb, name, words) {
|
|
4224
|
+
const box = dom.createElement('table')
|
|
4225
|
+
var i, word, s = '<tr>'
|
|
4226
|
+
box.setAttribute('style', 'width: 90%; height: 1.5em')
|
|
4227
|
+
for (i=0; i<words.length; i++) {
|
|
4228
|
+
s += '<td><input type="radio" name="' + name + '" id="' + words[i] + '" value='
|
|
4229
|
+
}
|
|
4230
|
+
box.innerHTML = s + '</tr>'
|
|
4231
|
+
|
|
4232
|
+
}
|
|
4233
4233
|
*/
|
|
4234
4234
|
// ////////////////////////////////////////////////////////////
|
|
4235
4235
|
//
|
|
@@ -4319,9 +4319,9 @@ function twoLineDefault(dom, x) {
|
|
|
4319
4319
|
return box;
|
|
4320
4320
|
}
|
|
4321
4321
|
|
|
4322
|
-
/**
|
|
4323
|
-
* Find a function that can create a widget for a given class
|
|
4324
|
-
* @param c The RDF class for which we want a widget generator function
|
|
4322
|
+
/**
|
|
4323
|
+
* Find a function that can create a widget for a given class
|
|
4324
|
+
* @param c The RDF class for which we want a widget generator function
|
|
4325
4325
|
*/
|
|
4326
4326
|
function twoLineWidgetForClass(c) {
|
|
4327
4327
|
var widget = index.twoLine[c.uri];
|
|
@@ -4335,12 +4335,12 @@ function twoLineWidgetForClass(c) {
|
|
|
4335
4335
|
return index.twoLine[''];
|
|
4336
4336
|
}
|
|
4337
4337
|
|
|
4338
|
-
/**
|
|
4339
|
-
* Display a transaction
|
|
4340
|
-
* @param x Should have attributes through triples in store:
|
|
4341
|
-
* * ns.qu('payee') -> a named node
|
|
4342
|
-
* * ns.qu('date) -> a literal
|
|
4343
|
-
* * ns.qu('amount') -> a literal
|
|
4338
|
+
/**
|
|
4339
|
+
* Display a transaction
|
|
4340
|
+
* @param x Should have attributes through triples in store:
|
|
4341
|
+
* * ns.qu('payee') -> a named node
|
|
4342
|
+
* * ns.qu('date) -> a literal
|
|
4343
|
+
* * ns.qu('amount') -> a literal
|
|
4344
4344
|
*/
|
|
4345
4345
|
function twoLineTransaction(dom, x) {
|
|
4346
4346
|
var failed = '';
|
|
@@ -4357,12 +4357,12 @@ function twoLineTransaction(dom, x) {
|
|
|
4357
4357
|
return box;
|
|
4358
4358
|
}
|
|
4359
4359
|
|
|
4360
|
-
/**
|
|
4361
|
-
* Display a trip
|
|
4362
|
-
* @param x Should have attributes through triples in store:
|
|
4363
|
-
* * ns.dc('title') -> a literal
|
|
4364
|
-
* * ns.cal('dtstart') -> a literal
|
|
4365
|
-
* * ns.cal('dtend') -> a literal
|
|
4360
|
+
/**
|
|
4361
|
+
* Display a trip
|
|
4362
|
+
* @param x Should have attributes through triples in store:
|
|
4363
|
+
* * ns.dc('title') -> a literal
|
|
4364
|
+
* * ns.cal('dtstart') -> a literal
|
|
4365
|
+
* * ns.cal('dtend') -> a literal
|
|
4366
4366
|
*/
|
|
4367
4367
|
function twoLineTrip(dom, x) {
|
|
4368
4368
|
var enc = function enc(p) {
|
|
@@ -4374,8 +4374,8 @@ function twoLineTrip(dom, x) {
|
|
|
4374
4374
|
return box;
|
|
4375
4375
|
}
|
|
4376
4376
|
|
|
4377
|
-
/**
|
|
4378
|
-
* Stick a stylesheet link the document if not already there
|
|
4377
|
+
/**
|
|
4378
|
+
* Stick a stylesheet link the document if not already there
|
|
4379
4379
|
*/
|
|
4380
4380
|
function addStyleSheet(dom, href) {
|
|
4381
4381
|
var links = dom.querySelectorAll('link');
|
|
@@ -4399,8 +4399,8 @@ function isAudio(file) {
|
|
|
4399
4399
|
function isVideo(file) {
|
|
4400
4400
|
return isImage(file, 'video');
|
|
4401
4401
|
}
|
|
4402
|
-
/**
|
|
4403
|
-
*
|
|
4402
|
+
/**
|
|
4403
|
+
*
|
|
4404
4404
|
*/
|
|
4405
4405
|
function isImage(file, kind) {
|
|
4406
4406
|
var dcCLasses = {
|
|
@@ -4422,12 +4422,12 @@ function isImage(file, kind) {
|
|
|
4422
4422
|
return false;
|
|
4423
4423
|
}
|
|
4424
4424
|
|
|
4425
|
-
/**
|
|
4426
|
-
* File upload button
|
|
4427
|
-
* @param dom The DOM aka document
|
|
4428
|
-
* @param droppedFileHandler Same handler function as drop, takes array of file objects
|
|
4429
|
-
* @returns {Element} - a div with a button and a inout in it
|
|
4430
|
-
* The input is hidden, as it is uglky - the user clicks on the nice icons and fires the input.
|
|
4425
|
+
/**
|
|
4426
|
+
* File upload button
|
|
4427
|
+
* @param dom The DOM aka document
|
|
4428
|
+
* @param droppedFileHandler Same handler function as drop, takes array of file objects
|
|
4429
|
+
* @returns {Element} - a div with a button and a inout in it
|
|
4430
|
+
* The input is hidden, as it is uglky - the user clicks on the nice icons and fires the input.
|
|
4431
4431
|
*/
|
|
4432
4432
|
// See https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications
|
|
4433
4433
|
function fileUploadButtonDiv(dom, droppedFileHandler) {
|
|
@@ -22714,11 +22714,11 @@ var ThemeLoader = /*#__PURE__*/function () {
|
|
|
22714
22714
|
function ThemeLoader() {
|
|
22715
22715
|
classCallCheck_classCallCheck(this, ThemeLoader);
|
|
22716
22716
|
this.themes = {
|
|
22717
|
-
classic: '
|
|
22718
|
-
"default": '
|
|
22719
|
-
wave: '
|
|
22720
|
-
telegram: '
|
|
22721
|
-
signal: '
|
|
22717
|
+
classic: 'theme-classic.css',
|
|
22718
|
+
"default": 'theme-default.css',
|
|
22719
|
+
wave: 'theme-wave.css',
|
|
22720
|
+
telegram: 'theme-telegram.css',
|
|
22721
|
+
signal: 'theme-signal.css'
|
|
22722
22722
|
};
|
|
22723
22723
|
this.currentTheme = this.getSavedTheme();
|
|
22724
22724
|
this.linkElements = {};
|
|
@@ -22782,12 +22782,12 @@ var ThemeLoader = /*#__PURE__*/function () {
|
|
|
22782
22782
|
while (1) switch (_context2.prev = _context2.next) {
|
|
22783
22783
|
case 0:
|
|
22784
22784
|
// Variables
|
|
22785
|
-
variablesLink = this.createLinkElement('solid-ui-variables', '
|
|
22785
|
+
variablesLink = this.createLinkElement('solid-ui-variables', 'theme-variables.css');
|
|
22786
22786
|
document.head.insertBefore(variablesLink, document.head.firstChild);
|
|
22787
22787
|
this.linkElements.variables = variablesLink;
|
|
22788
22788
|
|
|
22789
22789
|
// Accessibility
|
|
22790
|
-
a11yLink = this.createLinkElement('solid-ui-accessibility', '
|
|
22790
|
+
a11yLink = this.createLinkElement('solid-ui-accessibility', 'theme-accessibility.css');
|
|
22791
22791
|
document.head.insertBefore(a11yLink, document.head.firstChild);
|
|
22792
22792
|
this.linkElements.accessibility = a11yLink;
|
|
22793
22793
|
|
|
@@ -25256,9 +25256,9 @@ function throttle(func, wait) {
|
|
|
25256
25256
|
|
|
25257
25257
|
|
|
25258
25258
|
/* global EventListenerOrEventListenerObject */
|
|
25259
|
-
/*
|
|
25260
|
-
This file was copied from mashlib/src/global/header.ts file. It is modified to
|
|
25261
|
-
work in solid-ui by adjusting where imported functions are found.
|
|
25259
|
+
/*
|
|
25260
|
+
This file was copied from mashlib/src/global/header.ts file. It is modified to
|
|
25261
|
+
work in solid-ui by adjusting where imported functions are found.
|
|
25262
25262
|
*/
|
|
25263
25263
|
|
|
25264
25264
|
|
|
@@ -25270,29 +25270,29 @@ function throttle(func, wait) {
|
|
|
25270
25270
|
|
|
25271
25271
|
|
|
25272
25272
|
|
|
25273
|
-
/**
|
|
25274
|
-
* menu icons
|
|
25273
|
+
/**
|
|
25274
|
+
* menu icons
|
|
25275
25275
|
*/
|
|
25276
25276
|
var DEFAULT_HELP_MENU_ICON = iconBase/* icons */.Pt.iconBase + 'noun_help.svg';
|
|
25277
25277
|
var DEFAUL_SOLID_ICON_URL = 'https://solidproject.org/assets/img/solid-emblem.svg';
|
|
25278
25278
|
|
|
25279
|
-
/*
|
|
25280
|
-
HeaderOptions allow for customizing the logo and menu list. If a logo is not provided the default
|
|
25281
|
-
is solid. Menulist will always show a link to logout and to the users profile.
|
|
25279
|
+
/*
|
|
25280
|
+
HeaderOptions allow for customizing the logo and menu list. If a logo is not provided the default
|
|
25281
|
+
is solid. Menulist will always show a link to logout and to the users profile.
|
|
25282
25282
|
*/
|
|
25283
25283
|
|
|
25284
|
-
/**
|
|
25285
|
-
* Initialize header component, the header object returned depends on whether the user is authenticated.
|
|
25286
|
-
* @param store the data store
|
|
25287
|
-
* @param userMenuList a list of menu items when the user is logged in
|
|
25288
|
-
* @param options allow the header to be customized with a personalized logo, help icon and a help menu list of links or buttons.
|
|
25289
|
-
* @returns a header for an authenticated user with menu items given or a login screen
|
|
25284
|
+
/**
|
|
25285
|
+
* Initialize header component, the header object returned depends on whether the user is authenticated.
|
|
25286
|
+
* @param store the data store
|
|
25287
|
+
* @param userMenuList a list of menu items when the user is logged in
|
|
25288
|
+
* @param options allow the header to be customized with a personalized logo, help icon and a help menu list of links or buttons.
|
|
25289
|
+
* @returns a header for an authenticated user with menu items given or a login screen
|
|
25290
25290
|
*/
|
|
25291
25291
|
function initHeader(_x, _x2, _x3) {
|
|
25292
25292
|
return _initHeader.apply(this, arguments);
|
|
25293
25293
|
}
|
|
25294
|
-
/**
|
|
25295
|
-
* @ignore exporting this only for the unit test
|
|
25294
|
+
/**
|
|
25295
|
+
* @ignore exporting this only for the unit test
|
|
25296
25296
|
*/
|
|
25297
25297
|
function _initHeader() {
|
|
25298
25298
|
_initHeader = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3(store, userMenuList, options) {
|
|
@@ -25339,14 +25339,14 @@ function rebuildHeader(header, store, pod, userMenuList, options) {
|
|
|
25339
25339
|
}, _callee);
|
|
25340
25340
|
}));
|
|
25341
25341
|
}
|
|
25342
|
-
/**
|
|
25343
|
-
* @ignore exporting this only for the unit test
|
|
25342
|
+
/**
|
|
25343
|
+
* @ignore exporting this only for the unit test
|
|
25344
25344
|
*/
|
|
25345
25345
|
function createBanner(_x4, _x5, _x6, _x7, _x8) {
|
|
25346
25346
|
return _createBanner.apply(this, arguments);
|
|
25347
25347
|
}
|
|
25348
|
-
/**
|
|
25349
|
-
* @ignore exporting this only for the unit test
|
|
25348
|
+
/**
|
|
25349
|
+
* @ignore exporting this only for the unit test
|
|
25350
25350
|
*/
|
|
25351
25351
|
function _createBanner() {
|
|
25352
25352
|
_createBanner = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4(store, pod, user, userMenuList, options) {
|
|
@@ -25529,8 +25529,8 @@ function createHelpMenu(options, helpMenuItems) {
|
|
|
25529
25529
|
});
|
|
25530
25530
|
return helpMenuContainer;
|
|
25531
25531
|
}
|
|
25532
|
-
/**
|
|
25533
|
-
* @ignore exporting this only for the unit test
|
|
25532
|
+
/**
|
|
25533
|
+
* @ignore exporting this only for the unit test
|
|
25534
25534
|
*/
|
|
25535
25535
|
function createLoginSignUpButtons() {
|
|
25536
25536
|
var profileLoginButtonPre = document.createElement('div');
|
|
@@ -25538,8 +25538,8 @@ function createLoginSignUpButtons() {
|
|
|
25538
25538
|
profileLoginButtonPre.appendChild(loginStatusBox(document, null, {}));
|
|
25539
25539
|
return profileLoginButtonPre;
|
|
25540
25540
|
}
|
|
25541
|
-
/**
|
|
25542
|
-
* @ignore exporting this only for the unit test
|
|
25541
|
+
/**
|
|
25542
|
+
* @ignore exporting this only for the unit test
|
|
25543
25543
|
*/
|
|
25544
25544
|
function createUserMenuButton(label, onClick) {
|
|
25545
25545
|
var button = document.createElement('button');
|
|
@@ -25554,8 +25554,8 @@ function createUserMenuButton(label, onClick) {
|
|
|
25554
25554
|
button.innerText = label;
|
|
25555
25555
|
return button;
|
|
25556
25556
|
}
|
|
25557
|
-
/**
|
|
25558
|
-
* @ignore exporting this only for the unit test
|
|
25557
|
+
/**
|
|
25558
|
+
* @ignore exporting this only for the unit test
|
|
25559
25559
|
*/
|
|
25560
25560
|
function createUserMenuLink(label, href, target) {
|
|
25561
25561
|
var link = document.createElement('a');
|
|
@@ -25572,15 +25572,15 @@ function createUserMenuLink(label, href, target) {
|
|
|
25572
25572
|
return link;
|
|
25573
25573
|
}
|
|
25574
25574
|
|
|
25575
|
-
/**
|
|
25576
|
-
* @ignore exporting this only for the unit test
|
|
25575
|
+
/**
|
|
25576
|
+
* @ignore exporting this only for the unit test
|
|
25577
25577
|
*/
|
|
25578
25578
|
function createUserMenu(_x9, _x0, _x1) {
|
|
25579
25579
|
return _createUserMenu.apply(this, arguments);
|
|
25580
25580
|
}
|
|
25581
25581
|
|
|
25582
|
-
/**
|
|
25583
|
-
* @ignore exporting this only for the unit test
|
|
25582
|
+
/**
|
|
25583
|
+
* @ignore exporting this only for the unit test
|
|
25584
25584
|
*/
|
|
25585
25585
|
function _createUserMenu() {
|
|
25586
25586
|
_createUserMenu = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee5(store, user, userMenuList) {
|
|
@@ -25661,8 +25661,8 @@ function createUserMenuItem(child) {
|
|
|
25661
25661
|
menuProfileItem.appendChild(child);
|
|
25662
25662
|
return menuProfileItem;
|
|
25663
25663
|
}
|
|
25664
|
-
/**
|
|
25665
|
-
* @ignore exporting this only for the unit test
|
|
25664
|
+
/**
|
|
25665
|
+
* @ignore exporting this only for the unit test
|
|
25666
25666
|
*/
|
|
25667
25667
|
function getProfileImg(store, user) {
|
|
25668
25668
|
var profileUrl = null;
|
|
@@ -25680,8 +25680,8 @@ function getProfileImg(store, user) {
|
|
|
25680
25680
|
return profileImage;
|
|
25681
25681
|
}
|
|
25682
25682
|
|
|
25683
|
-
/**
|
|
25684
|
-
* @internal
|
|
25683
|
+
/**
|
|
25684
|
+
* @internal
|
|
25685
25685
|
*/
|
|
25686
25686
|
function toggleMenu(event, trigger, menu) {
|
|
25687
25687
|
var isExpanded = trigger.getAttribute('aria-expanded') === 'true';
|
|
@@ -25809,43 +25809,43 @@ function createControllerInfoBlock(store, user, pod, podOwner, options) {
|
|
|
25809
25809
|
;// ./src/create/types.ts
|
|
25810
25810
|
|
|
25811
25811
|
;// ./src/index.ts
|
|
25812
|
-
/*
|
|
25813
|
-
The MIT License (MIT)
|
|
25814
|
-
|
|
25815
|
-
Copyright (c) 2015-2016 Solid
|
|
25816
|
-
|
|
25817
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
25818
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
25819
|
-
in the Software without restriction, including without limitation the rights
|
|
25820
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
25821
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
25822
|
-
furnished to do so, subject to the following conditions:
|
|
25823
|
-
|
|
25824
|
-
The above copyright notice and this permission notice shall be included in all
|
|
25825
|
-
copies or substantial portions of the Software.
|
|
25826
|
-
|
|
25827
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25828
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25829
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25830
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25831
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25832
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25833
|
-
SOFTWARE.
|
|
25834
|
-
|
|
25835
|
-
If you would like to know more about the solid Solid project, please see
|
|
25836
|
-
https://github.com/solidos/solid
|
|
25812
|
+
/*
|
|
25813
|
+
The MIT License (MIT)
|
|
25814
|
+
|
|
25815
|
+
Copyright (c) 2015-2016 Solid
|
|
25816
|
+
|
|
25817
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
25818
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
25819
|
+
in the Software without restriction, including without limitation the rights
|
|
25820
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
25821
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
25822
|
+
furnished to do so, subject to the following conditions:
|
|
25823
|
+
|
|
25824
|
+
The above copyright notice and this permission notice shall be included in all
|
|
25825
|
+
copies or substantial portions of the Software.
|
|
25826
|
+
|
|
25827
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25828
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25829
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25830
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25831
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25832
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25833
|
+
SOFTWARE.
|
|
25834
|
+
|
|
25835
|
+
If you would like to know more about the solid Solid project, please see
|
|
25836
|
+
https://github.com/solidos/solid
|
|
25837
25837
|
*/
|
|
25838
25838
|
|
|
25839
25839
|
|
|
25840
|
-
/**
|
|
25841
|
-
* Provides a Solid client helper object (which exposes various static modules).
|
|
25842
|
-
* @module UI.js
|
|
25843
|
-
* @main UI.js
|
|
25840
|
+
/**
|
|
25841
|
+
* Provides a Solid client helper object (which exposes various static modules).
|
|
25842
|
+
* @module UI.js
|
|
25843
|
+
* @main UI.js
|
|
25844
25844
|
*/
|
|
25845
25845
|
|
|
25846
|
-
/**
|
|
25847
|
-
* @class UI
|
|
25848
|
-
* @static
|
|
25846
|
+
/**
|
|
25847
|
+
* @class UI
|
|
25848
|
+
* @static
|
|
25849
25849
|
*/
|
|
25850
25850
|
|
|
25851
25851
|
// REMOVE @ts-ignore as you migrate files to TypeScript
|