solid-ui 3.0.1-11be53b → 3.0.1-3f71940
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 +364 -279
- package/dist/solid-ui.esm.js.map +1 -1
- package/dist/solid-ui.esm.min.js +2 -2
- package/dist/solid-ui.esm.min.js.map +1 -1
- package/dist/solid-ui.js +371 -285
- package/dist/solid-ui.js.map +1 -1
- package/dist/solid-ui.min.js +8 -8
- 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
|
@@ -2279,17 +2279,6 @@ function _slicedToArray(r, e) {
|
|
|
2279
2279
|
|
|
2280
2280
|
// EXTERNAL MODULE: ./node_modules/mime-types/index.js
|
|
2281
2281
|
var mime_types = __webpack_require__(49);
|
|
2282
|
-
;// ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
2283
|
-
|
|
2284
|
-
function _defineProperty(e, r, t) {
|
|
2285
|
-
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
2286
|
-
value: t,
|
|
2287
|
-
enumerable: !0,
|
|
2288
|
-
configurable: !0,
|
|
2289
|
-
writable: !0
|
|
2290
|
-
}) : e[r] = t, e;
|
|
2291
|
-
}
|
|
2292
|
-
|
|
2293
2282
|
;// ./src/styleConstants.js
|
|
2294
2283
|
/* harmony default export */ const styleConstants = ({
|
|
2295
2284
|
highlightColor: '#7C4DFF',
|
|
@@ -2320,8 +2309,6 @@ function _defineProperty(e, r, t) {
|
|
|
2320
2309
|
basicMaxLength: '4096'
|
|
2321
2310
|
});
|
|
2322
2311
|
;// ./src/style.js
|
|
2323
|
-
|
|
2324
|
-
var _style;
|
|
2325
2312
|
// Common readable consistent stylesheet
|
|
2326
2313
|
// to avoid using style sheets which are document-global
|
|
2327
2314
|
// and make programmable style toggling with selection, drag over, etc easier
|
|
@@ -2332,7 +2319,7 @@ var _style;
|
|
|
2332
2319
|
// Fallback values preserve original appearance when themes aren't loaded
|
|
2333
2320
|
|
|
2334
2321
|
|
|
2335
|
-
var style =
|
|
2322
|
+
var style = {
|
|
2336
2323
|
// styleModule
|
|
2337
2324
|
|
|
2338
2325
|
checkboxStyle: 'color: var(--sui-text, black); font-size: 100%; padding-left: 0.5em; padding-right: 0.5em;',
|
|
@@ -2382,8 +2369,86 @@ var style = (_style = {
|
|
|
2382
2369
|
linkDivStyle: 'width: var(--sui-icon-size, 2em); padding: 0.5em; height: 4em;',
|
|
2383
2370
|
// ACL
|
|
2384
2371
|
aclControlBoxContainer: 'margin: 1em;',
|
|
2385
|
-
aclControlBoxHeader: 'font-size:
|
|
2386
|
-
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_style, "aclControlBoxHeader", 'font-size: 120%; margin: 0 0 1rem;'), "aclControlBoxStatus", 'display: none; margin: 1rem 0;'), "aclControlBoxStatusRevealed", 'display: block;'), "aclGroupContent", 'maxWidth: 650;'), "accessGroupList", 'display: grid; grid-template-columns: 1fr; margin: var(--sui-space-md, 1em); width: 100%;'), "accessGroupListItem", 'display: grid; grid-template-columns: 100px auto 30%;'), "defaultsController", 'display: flex;'), "defaultsControllerNotice", 'color: var(--sui-text-muted, #888); flexGrow: 1; fontSize: 80%;'), "bigButton", 'background-color: var(--sui-bg-panel, white); border: 0.1em solid var(--sui-border-color-dark, #888); border-radius: var(--sui-border-radius, 0.3em); max-width: 50%; padding-bottom: var(--sui-space-md, 1em); padding-top: var(--sui-space-md, 1em);'), "group", 'color: var(--sui-group-default, #888);'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_style, "group1", 'color: var(--sui-group-1, green);'), "group2", 'color: var(--sui-group-2, #cc0);'), "group3", 'color: var(--sui-group-3, orange);'), "group5", 'color: var(--sui-group-5, red);'), "group9", 'color: var(--sui-group-9, blue);'), "group13", 'color: var(--sui-group-13, purple);'), "trustedAppAddApplicationsTable", 'background-color: var(--sui-bg-panel, #eee);'), "trustedAppCancelButton", 'float: right;'), "trustedAppControllerI", 'border-color: var(--sui-warning, orange); border-radius: var(--sui-border-radius-lg, 1em); border-width: 0.1em;'), "temporaryStatusInit", 'background: var(--sui-success, green);'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_style, "temporaryStatusEnd", 'background: transparent; transition: background 5s linear;'), "headerUserMenuLink", 'background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%; text-decoration: none;'), "headerUserMenuLinkHover", 'background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%; text-decoration: none; background-image: var(--sui-header-gradient, linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%));'), "headerUserMenuTrigger", 'background: none; border: 0; cursor: pointer; width: var(--sui-header-height, 60px); height: var(--sui-header-height, 60px);'), "headerUserMenuTriggerImg", 'border-radius: var(--sui-border-radius-full, 50%); height: 56px; width: 28px !important;'), "headerUserMenuButton", 'background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%;'), "headerUserMenuButtonHover", 'background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%; background-image: var(--sui-header-gradient, linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%));'), "headerUserMenuList", 'list-style: none; margin: 0; padding: 0;'), "headerUserMenuListDisplay", 'list-style: none; margin: 0; padding: 0; display:true;'), "headerUserMenuNavigationMenu", 'background: var(--sui-bg-panel, white); border: solid 1px var(--sui-text, #000000); border-right: 0; position: absolute; right: 0; top: var(--sui-header-height, 60px); width: 200px; z-index: var(--sui-z-dropdown, 1); display: true;'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_style, "headerUserMenuNavigationMenuNotDisplayed", 'background: var(--sui-bg-panel, white); border: solid 1px var(--sui-text, #000000); border-right: 0; position: absolute; right: 0; top: var(--sui-header-height, 60px); width: 200px; z-index: var(--sui-z-dropdown, 1); display: none;'), "headerUserMenuListItem", 'border-bottom: solid 1px var(--sui-text, #000000);'), "headerUserMenuPhoto", 'border-radius: var(--sui-border-radius-full, 50%); background-position: center; background-repeat: no-repeat; background-size: cover; height: 50px; width: 50px;'), "headerBanner", 'background: var(--sui-bg-header, white); box-shadow: var(--sui-header-shadow, 0px 1px 4px #000000); display: flex; justify-content: space-between; padding: 0 var(--sui-space-lg, 1.5em);'), "headerBannerRightMenu", 'display: flex;'), "headerBannerLogin", 'margin-left: auto;'), "allChildrenVisible", 'display: true;'), "headerBannerUserMenu", 'border-left: solid 1px var(--sui-text, #000000); margin-left: auto;'), "headerBannerHelpMenu", 'border-left: solid 1px var(--sui-text, #000000); margin-left: auto;'), "headerBannerIcon", 'background-size: 65px var(--sui-header-height, 60px) !important; height: var(--sui-header-height, 60px) !important; width: 65px !important;'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_style, "footer", 'border-top: solid 1px var(--sui-border-color, #ccc); font-size: 0.9em; padding: var(--sui-space-sm, 0.5em) var(--sui-space-lg, 1.5em);'), "primaryButton", 'background-color: var(--sui-primary-light, #7c4dff); color: var(--sui-text-on-primary, #ffffff); font-family: var(--sui-font-family, Raleway, Roboto, sans-serif); border-radius: var(--sui-border-radius, 0.25em); border-color: var(--sui-primary-light, #7c4dff); border: 1px solid; cursor: pointer; font-size: 0.8em; text-decoration: none; padding: var(--sui-button-padding-sm, 0.5em 4em); transition: var(--sui-transition, 0.25s all ease-in-out); outline: none;'), "primaryButtonHover", 'background-color: var(--sui-primary, #9f7dff); color: var(--sui-text-on-primary, #ffffff); font-family: var(--sui-font-family, Raleway, Roboto, sans-serif); border-radius: var(--sui-border-radius, 0.25em); border-color: var(--sui-primary-light, #7c4dff); border: 1px solid; cursor: pointer; font-size: 0.8em; text-decoration: none; padding: var(--sui-button-padding-sm, 0.5em 4em); transition: var(--sui-transition, 0.25s all ease-in-out); outline: none;'), "primaryButtonNoBorder", 'background-color: var(--sui-bg-panel, #ffffff); color: var(--sui-primary-light, #7c4dff); font-family: var(--sui-font-family, Raleway, Roboto, sans-serif); border-radius: var(--sui-border-radius, 0.25em); border-color: var(--sui-primary-light, #7c4dff); border: 1px solid; cursor: pointer; font-size: 0.8em; text-decoration: none; padding: var(--sui-button-padding-sm, 0.5em 4em); transition: var(--sui-transition, 0.25s all ease-in-out); outline: none;'), "primaryButtonNoBorderHover", 'background-color: var(--sui-primary-light, #7c4dff); color: var(--sui-text-on-primary, #ffffff); font-family: var(--sui-font-family, Raleway, Roboto, sans-serif); border-radius: var(--sui-border-radius, 0.25em); border-color: var(--sui-primary-light, #7c4dff); border: 1px solid; cursor: pointer; font-size: 0.8em; text-decoration: none; padding: var(--sui-button-padding-sm, 0.5em 4em); transition: var(--sui-transition, 0.25s all ease-in-out); outline: none;'), "secondaryButton", 'background-color: var(--sui-accent, #01c9ea); color: var(--sui-text-on-primary, #ffffff); font-family: var(--sui-font-family, Raleway, Roboto, sans-serif); border-radius: var(--sui-border-radius, 0.25em); border-color: var(--sui-accent, #01c9ea); border: 1px solid; cursor: pointer; font-size: 0.8em; text-decoration: none; padding: var(--sui-button-padding-sm, 0.5em 4em); transition: var(--sui-transition, 0.25s all ease-in-out); outline: none;'), "secondaryButtonHover", 'background-color: var(--sui-info, #37cde6); color: var(--sui-text-on-primary, #ffffff); font-family: var(--sui-font-family, Raleway, Roboto, sans-serif); border-radius: var(--sui-border-radius, 0.25em); border-color: var(--sui-primary-light, #7c4dff); border: 1px solid; cursor: pointer; font-size: 0.8em; text-decoration: none; padding: var(--sui-button-padding-sm, 0.5em 4em); transition: var(--sui-transition, 0.25s all ease-in-out); outline: none;'), "secondaryButtonNoBorder", 'background-color: var(--sui-bg-panel, #ffffff); color: var(--sui-accent, #01c9ea); font-family: var(--sui-font-family, Raleway, Roboto, sans-serif); border-radius: var(--sui-border-radius, 0.25em); border-color: var(--sui-accent, #01c9ea); border: 1px solid; cursor: pointer; font-size: 0.8em; text-decoration: none; padding: var(--sui-button-padding-sm, 0.5em 4em); transition: var(--sui-transition, 0.25s all ease-in-out); outline: none;'), "secondaryButtonNoBorderHover", 'background-color: var(--sui-accent, #01c9ea); color: var(--sui-text-on-primary, #ffffff); font-family: var(--sui-font-family, Raleway, Roboto, sans-serif); border-radius: var(--sui-border-radius, 0.25em); border-color: var(--sui-accent, #01c9ea); border: 1px solid; cursor: pointer; font-size: 0.8em; text-decoration: none; padding: var(--sui-button-padding-sm, 0.5em 4em); transition: var(--sui-transition, 0.25s all ease-in-out); outline: none;'), "controlStyle", "border-radius: var(--sui-border-radius, 0.5em); margin: 0.8em; width: ".concat(styleConstants.mediaModuleCanvasWidth, "; height: ").concat(styleConstants.mediaModuleCanvasHeight, ";")), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_style, "dragEvent", 'background-color: var(--sui-bg-hover, #ccc); border: 0.25em dashed var(--sui-text, black); border-radius: var(--sui-border-radius, 0.3em);'), "dropEvent", 'background-color: var(--sui-bg-panel, white); border: 0 solid var(--sui-text, black);'), "restoreStyle", 'background-color: var(--sui-bg-panel, white);'), "errorCancelButton", 'width: var(--sui-icon-size, 2em); height: var(--sui-icon-size, 2em); align: right;'), "errorMessageBlockStyle", 'margin: 0.1em; padding: var(--sui-space-sm, 0.5em); border: var(--sui-border-width, 0.05em) solid var(--sui-border-color-dark, gray); color: var(--sui-text, black);'), "notepadStyle", 'padding: var(--sui-space-md, 1em); overflow: auto; resize: horizontal; min-width: 40em;'), "upstreamStatus", 'width: 50%;'), "downstreamStatus", 'width: 50%;'), "baseStyle", 'font-size: 100%; font-family: var(--sui-font-family-mono, monospace); width: 100%; border: none; white-space: pre-wrap;'), "headingCore", 'font-family: var(--sui-font-family, sans-serif); font-weight: bold; border: none;'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_style, "headingStyle", ['font-size: 110%; padding-top: var(--sui-space-sm, 0.5em); padding-bottom: var(--sui-space-sm, 0.5em); width: 100%;', 'font-size: 120%; padding-top: var(--sui-space-md, 1em); padding-bottom: var(--sui-space-md, 1em); width: 100%;', 'font-size: 150%; padding-top: var(--sui-space-md, 1em); padding-bottom: var(--sui-space-md, 1em); width: 100%;']), "participantsStyle", 'margin: 0.8em;'), "participantsBlock", 'height: 1.5em; width: 1.5em; margin: 0.3em; border: 0.01em solid var(--sui-border-color-dark, #888);'), "personTableTD", 'vertical-align: middle;'), "tabsNavElement", 'margin: 0;'), "tabsRootElement", 'display: flex; height: 100%; width: 100%;'), "tabsMainElement", 'margin: 0; width: 100%; height: 100%;'), "tabContainer", 'list-style-type: none; display: flex; height: 100%; width: 100%; margin: 0; padding: 0;'), "makeNewSlot", 'background: none; border: none; font: inherit; cursor: pointer;'), "ellipsis", 'position: absolute; right: 0; bottom: 0; width: 20%; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit;'));
|
|
2372
|
+
aclControlBoxHeader: 'font-size: 120%; margin: 0 0 1rem;',
|
|
2373
|
+
aclControlBoxStatus: 'display: none; margin: 1rem 0;',
|
|
2374
|
+
aclControlBoxStatusRevealed: 'display: block;',
|
|
2375
|
+
aclGroupContent: 'maxWidth: 650;',
|
|
2376
|
+
accessGroupList: 'display: grid; grid-template-columns: 1fr; margin: var(--sui-space-md, 1em); width: 100%;',
|
|
2377
|
+
accessGroupListItem: 'display: grid; grid-template-columns: 100px auto 30%;',
|
|
2378
|
+
defaultsController: 'display: flex;',
|
|
2379
|
+
defaultsControllerNotice: 'color: var(--sui-text-muted, #888); flexGrow: 1; fontSize: 80%;',
|
|
2380
|
+
bigButton: 'background-color: var(--sui-bg-panel, white); border: 0.1em solid var(--sui-border-color-dark, #888); border-radius: var(--sui-border-radius, 0.3em); max-width: 50%; padding-bottom: var(--sui-space-md, 1em); padding-top: var(--sui-space-md, 1em);',
|
|
2381
|
+
group: 'color: var(--sui-group-default, #888);',
|
|
2382
|
+
group1: 'color: var(--sui-group-1, green);',
|
|
2383
|
+
group2: 'color: var(--sui-group-2, #cc0);',
|
|
2384
|
+
group3: 'color: var(--sui-group-3, orange);',
|
|
2385
|
+
group5: 'color: var(--sui-group-5, red);',
|
|
2386
|
+
group9: 'color: var(--sui-group-9, blue);',
|
|
2387
|
+
group13: 'color: var(--sui-group-13, purple);',
|
|
2388
|
+
trustedAppAddApplicationsTable: 'background-color: var(--sui-bg-panel, #eee);',
|
|
2389
|
+
trustedAppCancelButton: 'float: right;',
|
|
2390
|
+
trustedAppControllerI: 'border-color: var(--sui-warning, orange); border-radius: var(--sui-border-radius-lg, 1em); border-width: 0.1em;',
|
|
2391
|
+
temporaryStatusInit: 'background: var(--sui-success, green);',
|
|
2392
|
+
temporaryStatusEnd: 'background: transparent; transition: background 5s linear;',
|
|
2393
|
+
// header
|
|
2394
|
+
headerUserMenuLink: 'background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%; text-decoration: none;',
|
|
2395
|
+
headerUserMenuLinkHover: 'background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%; text-decoration: none; background-image: var(--sui-header-gradient, linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%));',
|
|
2396
|
+
headerUserMenuTrigger: 'background: none; border: 0; cursor: pointer; width: var(--sui-header-height, 60px); height: var(--sui-header-height, 60px);',
|
|
2397
|
+
headerUserMenuTriggerImg: 'border-radius: var(--sui-border-radius-full, 50%); height: 56px; width: 28px !important;',
|
|
2398
|
+
headerUserMenuButton: 'background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%;',
|
|
2399
|
+
headerUserMenuButtonHover: 'background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%; background-image: var(--sui-header-gradient, linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%));',
|
|
2400
|
+
headerUserMenuList: 'list-style: none; margin: 0; padding: 0;',
|
|
2401
|
+
headerUserMenuListDisplay: 'list-style: none; margin: 0; padding: 0; display:true;',
|
|
2402
|
+
headerUserMenuNavigationMenu: 'background: var(--sui-bg-panel, white); border: solid 1px var(--sui-text, #000000); border-right: 0; position: absolute; right: 0; top: var(--sui-header-height, 60px); width: 200px; z-index: var(--sui-z-dropdown, 1); display: true;',
|
|
2403
|
+
headerUserMenuNavigationMenuNotDisplayed: 'background: var(--sui-bg-panel, white); border: solid 1px var(--sui-text, #000000); border-right: 0; position: absolute; right: 0; top: var(--sui-header-height, 60px); width: 200px; z-index: var(--sui-z-dropdown, 1); display: none;',
|
|
2404
|
+
headerUserMenuListItem: 'border-bottom: solid 1px var(--sui-text, #000000);',
|
|
2405
|
+
headerUserMenuPhoto: 'border-radius: var(--sui-border-radius-full, 50%); background-position: center; background-repeat: no-repeat; background-size: cover; height: 50px; width: 50px;',
|
|
2406
|
+
headerBanner: 'background: var(--sui-bg-header, white); box-shadow: var(--sui-header-shadow, 0px 1px 4px #000000); display: flex; justify-content: space-between; padding: 0 var(--sui-space-lg, 1.5em);',
|
|
2407
|
+
headerBannerRightMenu: 'display: flex;',
|
|
2408
|
+
headerBannerLogin: 'margin-left: auto;',
|
|
2409
|
+
allChildrenVisible: 'display: true;',
|
|
2410
|
+
headerBannerUserMenu: 'border-left: solid 1px var(--sui-text, #000000); margin-left: auto;',
|
|
2411
|
+
headerBannerHelpMenu: 'border-left: solid 1px var(--sui-text, #000000); margin-left: auto;',
|
|
2412
|
+
headerBannerIcon: 'background-size: 65px var(--sui-header-height, 60px) !important; height: var(--sui-header-height, 60px) !important; width: 65px !important;',
|
|
2413
|
+
// footer
|
|
2414
|
+
footer: 'border-top: solid 1px var(--sui-border-color, #ccc); font-size: 0.9em; padding: var(--sui-space-sm, 0.5em) var(--sui-space-lg, 1.5em);',
|
|
2415
|
+
// buttons
|
|
2416
|
+
primaryButton: 'background-color: var(--sui-primary-light, #7c4dff); color: var(--sui-text-on-primary, #ffffff); font-family: var(--sui-font-family, Raleway, Roboto, sans-serif); border-radius: var(--sui-border-radius, 0.25em); border-color: var(--sui-primary-light, #7c4dff); border: 1px solid; cursor: pointer; font-size: 0.8em; text-decoration: none; padding: var(--sui-button-padding-sm, 0.5em 4em); transition: var(--sui-transition, 0.25s all ease-in-out); outline: none;',
|
|
2417
|
+
primaryButtonHover: 'background-color: var(--sui-primary, #9f7dff); color: var(--sui-text-on-primary, #ffffff); font-family: var(--sui-font-family, Raleway, Roboto, sans-serif); border-radius: var(--sui-border-radius, 0.25em); border-color: var(--sui-primary-light, #7c4dff); border: 1px solid; cursor: pointer; font-size: 0.8em; text-decoration: none; padding: var(--sui-button-padding-sm, 0.5em 4em); transition: var(--sui-transition, 0.25s all ease-in-out); outline: none;',
|
|
2418
|
+
primaryButtonNoBorder: 'background-color: var(--sui-bg-panel, #ffffff); color: var(--sui-primary-light, #7c4dff); font-family: var(--sui-font-family, Raleway, Roboto, sans-serif); border-radius: var(--sui-border-radius, 0.25em); border-color: var(--sui-primary-light, #7c4dff); border: 1px solid; cursor: pointer; font-size: 0.8em; text-decoration: none; padding: var(--sui-button-padding-sm, 0.5em 4em); transition: var(--sui-transition, 0.25s all ease-in-out); outline: none;',
|
|
2419
|
+
primaryButtonNoBorderHover: 'background-color: var(--sui-primary-light, #7c4dff); color: var(--sui-text-on-primary, #ffffff); font-family: var(--sui-font-family, Raleway, Roboto, sans-serif); border-radius: var(--sui-border-radius, 0.25em); border-color: var(--sui-primary-light, #7c4dff); border: 1px solid; cursor: pointer; font-size: 0.8em; text-decoration: none; padding: var(--sui-button-padding-sm, 0.5em 4em); transition: var(--sui-transition, 0.25s all ease-in-out); outline: none;',
|
|
2420
|
+
secondaryButton: 'background-color: var(--sui-accent, #01c9ea); color: var(--sui-text-on-primary, #ffffff); font-family: var(--sui-font-family, Raleway, Roboto, sans-serif); border-radius: var(--sui-border-radius, 0.25em); border-color: var(--sui-accent, #01c9ea); border: 1px solid; cursor: pointer; font-size: 0.8em; text-decoration: none; padding: var(--sui-button-padding-sm, 0.5em 4em); transition: var(--sui-transition, 0.25s all ease-in-out); outline: none;',
|
|
2421
|
+
secondaryButtonHover: 'background-color: var(--sui-info, #37cde6); color: var(--sui-text-on-primary, #ffffff); font-family: var(--sui-font-family, Raleway, Roboto, sans-serif); border-radius: var(--sui-border-radius, 0.25em); border-color: var(--sui-primary-light, #7c4dff); border: 1px solid; cursor: pointer; font-size: 0.8em; text-decoration: none; padding: var(--sui-button-padding-sm, 0.5em 4em); transition: var(--sui-transition, 0.25s all ease-in-out); outline: none;',
|
|
2422
|
+
secondaryButtonNoBorder: 'background-color: var(--sui-bg-panel, #ffffff); color: var(--sui-accent, #01c9ea); font-family: var(--sui-font-family, Raleway, Roboto, sans-serif); border-radius: var(--sui-border-radius, 0.25em); border-color: var(--sui-accent, #01c9ea); border: 1px solid; cursor: pointer; font-size: 0.8em; text-decoration: none; padding: var(--sui-button-padding-sm, 0.5em 4em); transition: var(--sui-transition, 0.25s all ease-in-out); outline: none;',
|
|
2423
|
+
secondaryButtonNoBorderHover: 'background-color: var(--sui-accent, #01c9ea); color: var(--sui-text-on-primary, #ffffff); font-family: var(--sui-font-family, Raleway, Roboto, sans-serif); border-radius: var(--sui-border-radius, 0.25em); border-color: var(--sui-accent, #01c9ea); border: 1px solid; cursor: pointer; font-size: 0.8em; text-decoration: none; padding: var(--sui-button-padding-sm, 0.5em 4em); transition: var(--sui-transition, 0.25s all ease-in-out); outline: none;',
|
|
2424
|
+
// media
|
|
2425
|
+
controlStyle: "border-radius: var(--sui-border-radius, 0.5em); margin: 0.8em; width: ".concat(styleConstants.mediaModuleCanvasWidth, "; height: ").concat(styleConstants.mediaModuleCanvasHeight, ";"),
|
|
2426
|
+
// dragAndDrop
|
|
2427
|
+
dragEvent: 'background-color: var(--sui-bg-hover, #ccc); border: 0.25em dashed var(--sui-text, black); border-radius: var(--sui-border-radius, 0.3em);',
|
|
2428
|
+
dropEvent: 'background-color: var(--sui-bg-panel, white); border: 0 solid var(--sui-text, black);',
|
|
2429
|
+
restoreStyle: 'background-color: var(--sui-bg-panel, white);',
|
|
2430
|
+
// errors
|
|
2431
|
+
errorCancelButton: 'width: var(--sui-icon-size, 2em); height: var(--sui-icon-size, 2em); align: right;',
|
|
2432
|
+
errorMessageBlockStyle: 'margin: 0.1em; padding: var(--sui-space-sm, 0.5em); border: var(--sui-border-width, 0.05em) solid var(--sui-border-color-dark, gray); color: var(--sui-text, black);',
|
|
2433
|
+
// pad
|
|
2434
|
+
notepadStyle: 'padding: var(--sui-space-md, 1em); overflow: auto; resize: horizontal; min-width: 40em;',
|
|
2435
|
+
upstreamStatus: 'width: 50%;',
|
|
2436
|
+
downstreamStatus: 'width: 50%;',
|
|
2437
|
+
baseStyle: 'font-size: 100%; font-family: var(--sui-font-family-mono, monospace); width: 100%; border: none; white-space: pre-wrap;',
|
|
2438
|
+
headingCore: 'font-family: var(--sui-font-family, sans-serif); font-weight: bold; border: none;',
|
|
2439
|
+
headingStyle: ['font-size: 110%; padding-top: var(--sui-space-sm, 0.5em); padding-bottom: var(--sui-space-sm, 0.5em); width: 100%;', 'font-size: 120%; padding-top: var(--sui-space-md, 1em); padding-bottom: var(--sui-space-md, 1em); width: 100%;', 'font-size: 150%; padding-top: var(--sui-space-md, 1em); padding-bottom: var(--sui-space-md, 1em); width: 100%;'],
|
|
2440
|
+
// participation
|
|
2441
|
+
participantsStyle: 'margin: 0.8em;',
|
|
2442
|
+
participantsBlock: 'height: 1.5em; width: 1.5em; margin: 0.3em; border: 0.01em solid var(--sui-border-color-dark, #888);',
|
|
2443
|
+
personTableTD: 'vertical-align: middle;',
|
|
2444
|
+
// tabs
|
|
2445
|
+
tabsNavElement: 'margin: 0;',
|
|
2446
|
+
tabsRootElement: 'display: flex; height: 100%; width: 100%;',
|
|
2447
|
+
tabsMainElement: 'margin: 0; width: 100%; height: 100%;',
|
|
2448
|
+
tabContainer: 'list-style-type: none; display: flex; height: 100%; width: 100%; margin: 0; padding: 0;',
|
|
2449
|
+
makeNewSlot: 'background: none; border: none; font: inherit; cursor: pointer;',
|
|
2450
|
+
ellipsis: 'position: absolute; right: 0; bottom: 0; width: 20%; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit;'
|
|
2451
|
+
};
|
|
2387
2452
|
style.setStyle = function setStyle(ele, styleName) {
|
|
2388
2453
|
ele.style = style[styleName];
|
|
2389
2454
|
};
|
|
@@ -3205,7 +3270,7 @@ var createLinkForURI = function createLinkForURI(dom, linkDiv, obj) {
|
|
|
3205
3270
|
linkDiv.appendChild(dom.createElement('br'));
|
|
3206
3271
|
};
|
|
3207
3272
|
;// ./src/widgets/buttons.ts
|
|
3208
|
-
/* Buttons
|
|
3273
|
+
/* Buttons
|
|
3209
3274
|
*/
|
|
3210
3275
|
|
|
3211
3276
|
|
|
@@ -3220,9 +3285,9 @@ var createLinkForURI = function createLinkForURI(dom, linkDiv, obj) {
|
|
|
3220
3285
|
|
|
3221
3286
|
|
|
3222
3287
|
|
|
3223
|
-
/**
|
|
3224
|
-
* UI Widgets such as buttons
|
|
3225
|
-
* @packageDocumentation
|
|
3288
|
+
/**
|
|
3289
|
+
* UI Widgets such as buttons
|
|
3290
|
+
* @packageDocumentation
|
|
3226
3291
|
*/
|
|
3227
3292
|
|
|
3228
3293
|
/* global alert */
|
|
@@ -3250,8 +3315,8 @@ function getStatusArea(context) {
|
|
|
3250
3315
|
return null;
|
|
3251
3316
|
}
|
|
3252
3317
|
|
|
3253
|
-
/**
|
|
3254
|
-
* Display an error message block
|
|
3318
|
+
/**
|
|
3319
|
+
* Display an error message block
|
|
3255
3320
|
*/
|
|
3256
3321
|
function complain(context, err) {
|
|
3257
3322
|
if (!err) return; // only if error
|
|
@@ -3260,8 +3325,8 @@ function complain(context, err) {
|
|
|
3260
3325
|
if (ele) ele.appendChild(errorMessageBlock(context && context.dom || document, err));else alert(err);
|
|
3261
3326
|
}
|
|
3262
3327
|
|
|
3263
|
-
/**
|
|
3264
|
-
* Remove all the children of an HTML element
|
|
3328
|
+
/**
|
|
3329
|
+
* Remove all the children of an HTML element
|
|
3265
3330
|
*/
|
|
3266
3331
|
function clearElement(ele) {
|
|
3267
3332
|
while (ele.firstChild) {
|
|
@@ -3270,8 +3335,8 @@ function clearElement(ele) {
|
|
|
3270
3335
|
return ele;
|
|
3271
3336
|
}
|
|
3272
3337
|
|
|
3273
|
-
/**
|
|
3274
|
-
* To figure out the log URI from the full URI used to invoke the reasoner
|
|
3338
|
+
/**
|
|
3339
|
+
* To figure out the log URI from the full URI used to invoke the reasoner
|
|
3275
3340
|
*/
|
|
3276
3341
|
function extractLogURI(fullURI) {
|
|
3277
3342
|
var logPos = fullURI.search(/logFile=/);
|
|
@@ -3279,11 +3344,11 @@ function extractLogURI(fullURI) {
|
|
|
3279
3344
|
return fullURI.substring(logPos + 8, rulPos);
|
|
3280
3345
|
}
|
|
3281
3346
|
|
|
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.
|
|
3347
|
+
/**
|
|
3348
|
+
* By default, converts e.g. '2020-02-19T19:35:28.557Z' to '19:35'
|
|
3349
|
+
* if today is 19 Feb 2020, and to 'Feb 19' if not.
|
|
3350
|
+
* @@@ TODO This needs to be changed to local time
|
|
3351
|
+
* @param noTime Return a string like 'Feb 19' even if it's today.
|
|
3287
3352
|
*/
|
|
3288
3353
|
function shortDate(str, noTime) {
|
|
3289
3354
|
if (!str) return '???';
|
|
@@ -3304,11 +3369,11 @@ function shortDate(str, noTime) {
|
|
|
3304
3369
|
}
|
|
3305
3370
|
}
|
|
3306
3371
|
|
|
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'
|
|
3372
|
+
/**
|
|
3373
|
+
* Format a date and time
|
|
3374
|
+
* @param date for instance `new Date()`
|
|
3375
|
+
* @param format for instance '{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}'
|
|
3376
|
+
* @returns for instance '2000-01-15T23:14:23.002'
|
|
3312
3377
|
*/
|
|
3313
3378
|
function formatDateTime(date, format) {
|
|
3314
3379
|
return format.split('{').map(function (s) {
|
|
@@ -3324,17 +3389,17 @@ function formatDateTime(date, format) {
|
|
|
3324
3389
|
}).join('');
|
|
3325
3390
|
}
|
|
3326
3391
|
|
|
3327
|
-
/**
|
|
3328
|
-
* Get a string representation of the current time
|
|
3329
|
-
* @returns for instance '2000-01-15T23:14:23.002'
|
|
3392
|
+
/**
|
|
3393
|
+
* Get a string representation of the current time
|
|
3394
|
+
* @returns for instance '2000-01-15T23:14:23.002'
|
|
3330
3395
|
*/
|
|
3331
3396
|
function timestamp() {
|
|
3332
3397
|
return formatDateTime(new Date(), '{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}');
|
|
3333
3398
|
}
|
|
3334
3399
|
|
|
3335
|
-
/**
|
|
3336
|
-
* Get a short string representation of the current time
|
|
3337
|
-
* @returns for instance '23:14:23.002'
|
|
3400
|
+
/**
|
|
3401
|
+
* Get a short string representation of the current time
|
|
3402
|
+
* @returns for instance '23:14:23.002'
|
|
3338
3403
|
*/
|
|
3339
3404
|
function shortTime() {
|
|
3340
3405
|
return formatDateTime(new Date(), '{Hours}:{Minutes}:{Seconds}.{Milliseconds}');
|
|
@@ -3342,8 +3407,8 @@ function shortTime() {
|
|
|
3342
3407
|
|
|
3343
3408
|
// ///////////////////// Handy UX widgets
|
|
3344
3409
|
|
|
3345
|
-
/**
|
|
3346
|
-
* Sets the best name we have and looks up a better one
|
|
3410
|
+
/**
|
|
3411
|
+
* Sets the best name we have and looks up a better one
|
|
3347
3412
|
*/
|
|
3348
3413
|
function setName(element, x) {
|
|
3349
3414
|
var kb = external_SolidLogic_.store;
|
|
@@ -3364,29 +3429,29 @@ function setName(element, x) {
|
|
|
3364
3429
|
}
|
|
3365
3430
|
}
|
|
3366
3431
|
|
|
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
|
-
|
|
3432
|
+
/**
|
|
3433
|
+
* Set of suitable images
|
|
3434
|
+
* See also [[findImage]]
|
|
3435
|
+
* @param x The thing for which we want to find an image
|
|
3436
|
+
* @param kb The RDF store to look in
|
|
3437
|
+
* @returns It goes looking for triples in `kb`,
|
|
3438
|
+
* `(subject: x), (predicate: see list below) (object: image-url)`
|
|
3439
|
+
* to find any image linked from the thing with one of the following
|
|
3440
|
+
* predicates (in order):
|
|
3441
|
+
* * ns.sioc('avatar')
|
|
3442
|
+
* * ns.foaf('img')
|
|
3443
|
+
* * ns.vcard('logo')
|
|
3444
|
+
* * ns.vcard('hasPhoto')
|
|
3445
|
+
* * ns.vcard('photo')
|
|
3446
|
+
* * ns.foaf('depiction')
|
|
3447
|
+
|
|
3383
3448
|
*/
|
|
3384
3449
|
function imagesOf(x, kb) {
|
|
3385
3450
|
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
3451
|
}
|
|
3387
3452
|
|
|
3388
|
-
/**
|
|
3389
|
-
* Best logo or avatar or photo etc to represent someone or some group etc
|
|
3453
|
+
/**
|
|
3454
|
+
* Best logo or avatar or photo etc to represent someone or some group etc
|
|
3390
3455
|
*/
|
|
3391
3456
|
var iconForClass = {
|
|
3392
3457
|
// Potentially extendable by other apps, panes, etc
|
|
@@ -3421,8 +3486,8 @@ var iconForClass = {
|
|
|
3421
3486
|
'wf:Closed': 'noun_17020.svg'
|
|
3422
3487
|
};
|
|
3423
3488
|
|
|
3424
|
-
/**
|
|
3425
|
-
* Returns the origin of the URI of a NamedNode
|
|
3489
|
+
/**
|
|
3490
|
+
* Returns the origin of the URI of a NamedNode
|
|
3426
3491
|
*/
|
|
3427
3492
|
function tempSite(x) {
|
|
3428
3493
|
// use only while one in rdflib fails with origins 2019
|
|
@@ -3438,8 +3503,8 @@ function tempSite(x) {
|
|
|
3438
3503
|
}
|
|
3439
3504
|
}
|
|
3440
3505
|
|
|
3441
|
-
/**
|
|
3442
|
-
* Find an image for this thing as a class
|
|
3506
|
+
/**
|
|
3507
|
+
* Find an image for this thing as a class
|
|
3443
3508
|
*/
|
|
3444
3509
|
function findImageFromURI(x) {
|
|
3445
3510
|
var iconDir = buttons_iconBase;
|
|
@@ -3469,22 +3534,22 @@ function findImageFromURI(x) {
|
|
|
3469
3534
|
return iconDir + 'noun_10636_grey.svg'; // Grey Circle - some thing
|
|
3470
3535
|
}
|
|
3471
3536
|
|
|
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')
|
|
3537
|
+
/**
|
|
3538
|
+
* Find something we have as explicit image data for the thing
|
|
3539
|
+
* See also [[imagesOf]]
|
|
3540
|
+
* @param thing The thing for which we want to find an image
|
|
3541
|
+
* @returns The URL of a globe icon if thing equals `ns.foaf('Agent')`
|
|
3542
|
+
* or `ns.rdf('Resource')`. Otherwise, it goes looking for
|
|
3543
|
+
* triples in `store`,
|
|
3544
|
+
* `(subject: thing), (predicate: see list below) (object: image-url)`
|
|
3545
|
+
* to find any image linked from the thing with one of the following
|
|
3546
|
+
* predicates (in order):
|
|
3547
|
+
* * ns.sioc('avatar')
|
|
3548
|
+
* * ns.foaf('img')
|
|
3549
|
+
* * ns.vcard('logo')
|
|
3550
|
+
* * ns.vcard('hasPhoto')
|
|
3551
|
+
* * ns.vcard('photo')
|
|
3552
|
+
* * ns.foaf('depiction')
|
|
3488
3553
|
*/
|
|
3489
3554
|
function findImage(thing) {
|
|
3490
3555
|
var kb = external_SolidLogic_.store;
|
|
@@ -3496,11 +3561,11 @@ function findImage(thing) {
|
|
|
3496
3561
|
return image ? image.uri : null;
|
|
3497
3562
|
}
|
|
3498
3563
|
|
|
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.
|
|
3564
|
+
/**
|
|
3565
|
+
* Do the best you can with the data available
|
|
3566
|
+
*
|
|
3567
|
+
* @return {Boolean} Are we happy with this icon?
|
|
3568
|
+
* Sets src AND STYLE of the image.
|
|
3504
3569
|
*/
|
|
3505
3570
|
function trySetImage(element, thing, iconForClassMap) {
|
|
3506
3571
|
var kb = external_SolidLogic_.store;
|
|
@@ -3536,8 +3601,8 @@ function trySetImage(element, thing, iconForClassMap) {
|
|
|
3536
3601
|
return false; // we can do better
|
|
3537
3602
|
}
|
|
3538
3603
|
|
|
3539
|
-
/**
|
|
3540
|
-
* ToDo: Also add icons for *properties* like home, work, email, range, domain, comment,
|
|
3604
|
+
/**
|
|
3605
|
+
* ToDo: Also add icons for *properties* like home, work, email, range, domain, comment,
|
|
3541
3606
|
*/
|
|
3542
3607
|
function setImage(element, thing) {
|
|
3543
3608
|
// 20191230a
|
|
@@ -3586,7 +3651,7 @@ function faviconOrDefault(dom, x) {
|
|
|
3586
3651
|
}
|
|
3587
3652
|
}
|
|
3588
3653
|
|
|
3589
|
-
/* Two-option dialog pop-up
|
|
3654
|
+
/* Two-option dialog pop-up
|
|
3590
3655
|
*/
|
|
3591
3656
|
|
|
3592
3657
|
function renderDeleteConfirmPopup(dom, refererenceElement, prompt, deleteFunction) {
|
|
@@ -3637,9 +3702,9 @@ function renderDeleteConfirmPopup(dom, refererenceElement, prompt, deleteFunctio
|
|
|
3637
3702
|
cancelPrompt.addEventListener('click', removePopup);
|
|
3638
3703
|
return popup;
|
|
3639
3704
|
}
|
|
3640
|
-
/**
|
|
3641
|
-
* Delete button with a check you really mean it
|
|
3642
|
-
* @@ Supress check if command key held down?
|
|
3705
|
+
/**
|
|
3706
|
+
* Delete button with a check you really mean it
|
|
3707
|
+
* @@ Supress check if command key held down?
|
|
3643
3708
|
*/
|
|
3644
3709
|
function deleteButtonWithCheck(dom, container, noun, deleteFunction) {
|
|
3645
3710
|
function createPopup() {
|
|
@@ -3665,14 +3730,14 @@ function deleteButtonWithCheck(dom, container, noun, deleteFunction) {
|
|
|
3665
3730
|
return deleteButton; // or button div? caller may change size of image
|
|
3666
3731
|
}
|
|
3667
3732
|
|
|
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
|
|
3733
|
+
/* Make a button
|
|
3734
|
+
*
|
|
3735
|
+
* @param dom - the DOM document object
|
|
3736
|
+
* @Param iconURI - the URI of the icon to use (if any)
|
|
3737
|
+
* @param text - the tooltip text or possibly button contents text
|
|
3738
|
+
* @param handler <function> - A handler to called when button is clicked
|
|
3739
|
+
*
|
|
3740
|
+
* @returns <dDomElement> - the button
|
|
3676
3741
|
*/
|
|
3677
3742
|
function buttons_button(dom, iconURI, text, handler) {
|
|
3678
3743
|
var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {
|
|
@@ -3740,12 +3805,12 @@ function buttons_button(dom, iconURI, text, handler) {
|
|
|
3740
3805
|
return button;
|
|
3741
3806
|
}
|
|
3742
3807
|
|
|
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
|
|
3808
|
+
/* Make a cancel button
|
|
3809
|
+
*
|
|
3810
|
+
* @param dom - the DOM document object
|
|
3811
|
+
* @param handler <function> - A handler to called when button is clicked
|
|
3812
|
+
*
|
|
3813
|
+
* @returns <dDomElement> - the button
|
|
3749
3814
|
*/
|
|
3750
3815
|
function buttons_cancelButton(dom, handler) {
|
|
3751
3816
|
var b = buttons_button(dom, cancelIconURI, 'Cancel', handler);
|
|
@@ -3756,22 +3821,22 @@ function buttons_cancelButton(dom, handler) {
|
|
|
3756
3821
|
return b;
|
|
3757
3822
|
}
|
|
3758
3823
|
|
|
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
|
|
3824
|
+
/* Make a continue button
|
|
3825
|
+
*
|
|
3826
|
+
* @param dom - the DOM document object
|
|
3827
|
+
* @param handler <function> - A handler to called when button is clicked
|
|
3828
|
+
*
|
|
3829
|
+
* @returns <dDomElement> - the button
|
|
3765
3830
|
*/
|
|
3766
3831
|
function continueButton(dom, handler) {
|
|
3767
3832
|
return buttons_button(dom, checkIconURI, 'Continue', handler);
|
|
3768
3833
|
}
|
|
3769
3834
|
|
|
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)
|
|
3835
|
+
/* Grab a name for a new thing
|
|
3836
|
+
*
|
|
3837
|
+
* Form to get the name of a new thing before we create it
|
|
3838
|
+
* @params theClass Misspelt to avoid clashing with the JavaScript keyword
|
|
3839
|
+
* @returns: a promise of (a name or null if cancelled)
|
|
3775
3840
|
*/
|
|
3776
3841
|
function askName(dom, kb, container, predicate, theClass, noun) {
|
|
3777
3842
|
return new Promise(function (resolve, _reject) {
|
|
@@ -3813,10 +3878,10 @@ function askName(dom, kb, container, predicate, theClass, noun) {
|
|
|
3813
3878
|
}); // Promise
|
|
3814
3879
|
}
|
|
3815
3880
|
|
|
3816
|
-
/**
|
|
3817
|
-
* A TR to represent a draggable person, etc in a list
|
|
3818
|
-
*
|
|
3819
|
-
* pred is unused param at the moment
|
|
3881
|
+
/**
|
|
3882
|
+
* A TR to represent a draggable person, etc in a list
|
|
3883
|
+
*
|
|
3884
|
+
* pred is unused param at the moment
|
|
3820
3885
|
*/
|
|
3821
3886
|
var personTR = renderAsRow; // The legacy name is used in a lot of places
|
|
3822
3887
|
|
|
@@ -3860,11 +3925,11 @@ function renderAsRow(dom, pred, obj, options) {
|
|
|
3860
3925
|
return tr;
|
|
3861
3926
|
}
|
|
3862
3927
|
|
|
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
|
|
3928
|
+
/* A helper function for renderAsDiv
|
|
3929
|
+
* creates the NameDiv for the person
|
|
3930
|
+
* Note: could not move it to the helper file because they call exported functions
|
|
3931
|
+
* from buttons
|
|
3932
|
+
* @internal exporting this only for unit tests
|
|
3868
3933
|
*/
|
|
3869
3934
|
function createNameDiv(dom, div, title, obj) {
|
|
3870
3935
|
var nameDiv = div.appendChild(dom.createElement('div'));
|
|
@@ -3874,11 +3939,11 @@ function createNameDiv(dom, div, title, obj) {
|
|
|
3874
3939
|
setName(nameDiv, obj); // This is async
|
|
3875
3940
|
}
|
|
3876
3941
|
}
|
|
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
|
|
3942
|
+
/* A helper function for renderAsDiv
|
|
3943
|
+
* creates the linkDiv for the person
|
|
3944
|
+
* Note: could not move it to the helper file because they call exported functions
|
|
3945
|
+
* from buttons
|
|
3946
|
+
* @internal exporting this only for unit tests
|
|
3882
3947
|
*/
|
|
3883
3948
|
function createLinkDiv(dom, div, obj, options) {
|
|
3884
3949
|
var linkDiv = div.appendChild(dom.createElement('div'));
|
|
@@ -3894,9 +3959,9 @@ function createLinkDiv(dom, div, obj, options) {
|
|
|
3894
3959
|
makeDraggable(div, obj);
|
|
3895
3960
|
}
|
|
3896
3961
|
}
|
|
3897
|
-
/**
|
|
3898
|
-
* A Div to represent a draggable person, etc in a list
|
|
3899
|
-
* configurable to add an onClick listener
|
|
3962
|
+
/**
|
|
3963
|
+
* A Div to represent a draggable person, etc in a list
|
|
3964
|
+
* configurable to add an onClick listener
|
|
3900
3965
|
*/
|
|
3901
3966
|
function renderAsDiv(dom, obj, options) {
|
|
3902
3967
|
var div = dom.createElement('div');
|
|
@@ -3918,8 +3983,8 @@ function renderAsDiv(dom, obj, options) {
|
|
|
3918
3983
|
return div;
|
|
3919
3984
|
}
|
|
3920
3985
|
|
|
3921
|
-
/**
|
|
3922
|
-
* Refresh a DOM tree recursively
|
|
3986
|
+
/**
|
|
3987
|
+
* Refresh a DOM tree recursively
|
|
3923
3988
|
*/
|
|
3924
3989
|
function refreshTree(root) {
|
|
3925
3990
|
if (root.refresh) {
|
|
@@ -3931,15 +3996,15 @@ function refreshTree(root) {
|
|
|
3931
3996
|
}
|
|
3932
3997
|
}
|
|
3933
3998
|
|
|
3934
|
-
/**
|
|
3935
|
-
* Options argument for [[attachmentList]] function
|
|
3999
|
+
/**
|
|
4000
|
+
* Options argument for [[attachmentList]] function
|
|
3936
4001
|
*/
|
|
3937
4002
|
|
|
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.
|
|
4003
|
+
/**
|
|
4004
|
+
* Component that displays a list of resources, for instance
|
|
4005
|
+
* the attachments of a message, or the various documents related
|
|
4006
|
+
* to a meeting.
|
|
4007
|
+
* Accepts dropping URLs onto it to add attachments to it.
|
|
3943
4008
|
*/
|
|
3944
4009
|
function attachmentList(dom, subject, div) {
|
|
3945
4010
|
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
@@ -4052,11 +4117,11 @@ function attachmentList(dom, subject, div) {
|
|
|
4052
4117
|
|
|
4053
4118
|
// /////////////////////////////////////////////////////////////////////////////
|
|
4054
4119
|
|
|
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)
|
|
4120
|
+
/**
|
|
4121
|
+
* Event Handler for links within solid apps.
|
|
4122
|
+
*
|
|
4123
|
+
* Note that native links have constraints in Firefox, they
|
|
4124
|
+
* don't work with local files for instance (2011)
|
|
4060
4125
|
*/
|
|
4061
4126
|
function openHrefInOutlineMode(e) {
|
|
4062
4127
|
e.preventDefault();
|
|
@@ -4080,10 +4145,10 @@ function openHrefInOutlineMode(e) {
|
|
|
4080
4145
|
// dom.outlineManager.GotoSubject(store.sym(uri), true, undefined, true, undefined)
|
|
4081
4146
|
}
|
|
4082
4147
|
|
|
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.
|
|
4148
|
+
/**
|
|
4149
|
+
* Make a URI in the Tabulator.org annotation store out of the URI of the thing to be annotated.
|
|
4150
|
+
*
|
|
4151
|
+
* @@ Todo: make it a personal preference.
|
|
4087
4152
|
*/
|
|
4088
4153
|
function defaultAnnotationStore(subject) {
|
|
4089
4154
|
if (subject.uri === undefined) return undefined;
|
|
@@ -4101,10 +4166,10 @@ function defaultAnnotationStore(subject) {
|
|
|
4101
4166
|
return external_SolidLogic_.store.sym('http://tabulator.org/wiki/annnotation/' + s);
|
|
4102
4167
|
}
|
|
4103
4168
|
|
|
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.
|
|
4169
|
+
/**
|
|
4170
|
+
* Retrieve all RDF class URIs from solid-ui's RDF store
|
|
4171
|
+
* @returns an object `ret` such that `Object.keys(ret)` is
|
|
4172
|
+
* the list of all class URIs.
|
|
4108
4173
|
*/
|
|
4109
4174
|
function allClassURIs() {
|
|
4110
4175
|
var set = {};
|
|
@@ -4121,16 +4186,16 @@ function allClassURIs() {
|
|
|
4121
4186
|
return set;
|
|
4122
4187
|
}
|
|
4123
4188
|
|
|
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.
|
|
4189
|
+
/**
|
|
4190
|
+
* Figuring which properties we know about
|
|
4191
|
+
*
|
|
4192
|
+
* When the user inputs an RDF property, like for a form field
|
|
4193
|
+
* or when specifying the relationship between two arbitrary things,
|
|
4194
|
+
* then er can prompt them with properties the session knows about
|
|
4195
|
+
*
|
|
4196
|
+
* TODO: Look again by catching this somewhere. (On the kb?)
|
|
4197
|
+
* TODO: move to diff module? Not really a button.
|
|
4198
|
+
* @param {Store} kb The quadstore to be searched.
|
|
4134
4199
|
*/
|
|
4135
4200
|
|
|
4136
4201
|
function propertyTriage(kb) {
|
|
@@ -4168,12 +4233,12 @@ function propertyTriage(kb) {
|
|
|
4168
4233
|
return possibleProperties;
|
|
4169
4234
|
}
|
|
4170
4235
|
|
|
4171
|
-
/**
|
|
4172
|
-
* General purpose widgets
|
|
4236
|
+
/**
|
|
4237
|
+
* General purpose widgets
|
|
4173
4238
|
*/
|
|
4174
4239
|
|
|
4175
|
-
/**
|
|
4176
|
-
* A button for jumping
|
|
4240
|
+
/**
|
|
4241
|
+
* A button for jumping
|
|
4177
4242
|
*/
|
|
4178
4243
|
function linkButton(dom, object) {
|
|
4179
4244
|
var b = dom.createElement('button');
|
|
@@ -4188,8 +4253,8 @@ function linkButton(dom, object) {
|
|
|
4188
4253
|
return b;
|
|
4189
4254
|
}
|
|
4190
4255
|
|
|
4191
|
-
/**
|
|
4192
|
-
* A button to remove some other element from the page
|
|
4256
|
+
/**
|
|
4257
|
+
* A button to remove some other element from the page
|
|
4193
4258
|
*/
|
|
4194
4259
|
function removeButton(dom, element) {
|
|
4195
4260
|
var b = dom.createElement('button');
|
|
@@ -4219,17 +4284,17 @@ function removeButton(dom, element) {
|
|
|
4219
4284
|
//
|
|
4220
4285
|
// These are for selecting different modes, sources,styles, etc.
|
|
4221
4286
|
//
|
|
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
|
-
}
|
|
4287
|
+
/*
|
|
4288
|
+
buttons.headerButtons = function (dom, kb, name, words) {
|
|
4289
|
+
const box = dom.createElement('table')
|
|
4290
|
+
var i, word, s = '<tr>'
|
|
4291
|
+
box.setAttribute('style', 'width: 90%; height: 1.5em')
|
|
4292
|
+
for (i=0; i<words.length; i++) {
|
|
4293
|
+
s += '<td><input type="radio" name="' + name + '" id="' + words[i] + '" value='
|
|
4294
|
+
}
|
|
4295
|
+
box.innerHTML = s + '</tr>'
|
|
4296
|
+
|
|
4297
|
+
}
|
|
4233
4298
|
*/
|
|
4234
4299
|
// ////////////////////////////////////////////////////////////
|
|
4235
4300
|
//
|
|
@@ -4319,9 +4384,9 @@ function twoLineDefault(dom, x) {
|
|
|
4319
4384
|
return box;
|
|
4320
4385
|
}
|
|
4321
4386
|
|
|
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
|
|
4387
|
+
/**
|
|
4388
|
+
* Find a function that can create a widget for a given class
|
|
4389
|
+
* @param c The RDF class for which we want a widget generator function
|
|
4325
4390
|
*/
|
|
4326
4391
|
function twoLineWidgetForClass(c) {
|
|
4327
4392
|
var widget = index.twoLine[c.uri];
|
|
@@ -4335,12 +4400,12 @@ function twoLineWidgetForClass(c) {
|
|
|
4335
4400
|
return index.twoLine[''];
|
|
4336
4401
|
}
|
|
4337
4402
|
|
|
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
|
|
4403
|
+
/**
|
|
4404
|
+
* Display a transaction
|
|
4405
|
+
* @param x Should have attributes through triples in store:
|
|
4406
|
+
* * ns.qu('payee') -> a named node
|
|
4407
|
+
* * ns.qu('date) -> a literal
|
|
4408
|
+
* * ns.qu('amount') -> a literal
|
|
4344
4409
|
*/
|
|
4345
4410
|
function twoLineTransaction(dom, x) {
|
|
4346
4411
|
var failed = '';
|
|
@@ -4357,12 +4422,12 @@ function twoLineTransaction(dom, x) {
|
|
|
4357
4422
|
return box;
|
|
4358
4423
|
}
|
|
4359
4424
|
|
|
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
|
|
4425
|
+
/**
|
|
4426
|
+
* Display a trip
|
|
4427
|
+
* @param x Should have attributes through triples in store:
|
|
4428
|
+
* * ns.dc('title') -> a literal
|
|
4429
|
+
* * ns.cal('dtstart') -> a literal
|
|
4430
|
+
* * ns.cal('dtend') -> a literal
|
|
4366
4431
|
*/
|
|
4367
4432
|
function twoLineTrip(dom, x) {
|
|
4368
4433
|
var enc = function enc(p) {
|
|
@@ -4374,8 +4439,8 @@ function twoLineTrip(dom, x) {
|
|
|
4374
4439
|
return box;
|
|
4375
4440
|
}
|
|
4376
4441
|
|
|
4377
|
-
/**
|
|
4378
|
-
* Stick a stylesheet link the document if not already there
|
|
4442
|
+
/**
|
|
4443
|
+
* Stick a stylesheet link the document if not already there
|
|
4379
4444
|
*/
|
|
4380
4445
|
function addStyleSheet(dom, href) {
|
|
4381
4446
|
var links = dom.querySelectorAll('link');
|
|
@@ -4399,8 +4464,8 @@ function isAudio(file) {
|
|
|
4399
4464
|
function isVideo(file) {
|
|
4400
4465
|
return isImage(file, 'video');
|
|
4401
4466
|
}
|
|
4402
|
-
/**
|
|
4403
|
-
*
|
|
4467
|
+
/**
|
|
4468
|
+
*
|
|
4404
4469
|
*/
|
|
4405
4470
|
function isImage(file, kind) {
|
|
4406
4471
|
var dcCLasses = {
|
|
@@ -4422,12 +4487,12 @@ function isImage(file, kind) {
|
|
|
4422
4487
|
return false;
|
|
4423
4488
|
}
|
|
4424
4489
|
|
|
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.
|
|
4490
|
+
/**
|
|
4491
|
+
* File upload button
|
|
4492
|
+
* @param dom The DOM aka document
|
|
4493
|
+
* @param droppedFileHandler Same handler function as drop, takes array of file objects
|
|
4494
|
+
* @returns {Element} - a div with a button and a inout in it
|
|
4495
|
+
* The input is hidden, as it is uglky - the user clicks on the nice icons and fires the input.
|
|
4431
4496
|
*/
|
|
4432
4497
|
// See https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications
|
|
4433
4498
|
function fileUploadButtonDiv(dom, droppedFileHandler) {
|
|
@@ -4463,6 +4528,17 @@ index = {
|
|
|
4463
4528
|
widgetForClass: twoLineWidgetForClass
|
|
4464
4529
|
}
|
|
4465
4530
|
};
|
|
4531
|
+
;// ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
4532
|
+
|
|
4533
|
+
function _defineProperty(e, r, t) {
|
|
4534
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
4535
|
+
value: t,
|
|
4536
|
+
enumerable: !0,
|
|
4537
|
+
configurable: !0,
|
|
4538
|
+
writable: !0
|
|
4539
|
+
}) : e[r] = t, e;
|
|
4540
|
+
}
|
|
4541
|
+
|
|
4466
4542
|
;// ./src/signup/config-default.js
|
|
4467
4543
|
/**
|
|
4468
4544
|
* Provides a simple configuration object for Solid web client and other
|
|
@@ -22714,11 +22790,11 @@ var ThemeLoader = /*#__PURE__*/function () {
|
|
|
22714
22790
|
function ThemeLoader() {
|
|
22715
22791
|
classCallCheck_classCallCheck(this, ThemeLoader);
|
|
22716
22792
|
this.themes = {
|
|
22717
|
-
classic: '
|
|
22718
|
-
"default": '
|
|
22719
|
-
wave: '
|
|
22720
|
-
telegram: '
|
|
22721
|
-
signal: '
|
|
22793
|
+
classic: 'theme-classic.css',
|
|
22794
|
+
"default": 'theme-default.css',
|
|
22795
|
+
wave: 'theme-wave.css',
|
|
22796
|
+
telegram: 'theme-telegram.css',
|
|
22797
|
+
signal: 'theme-signal.css'
|
|
22722
22798
|
};
|
|
22723
22799
|
this.currentTheme = this.getSavedTheme();
|
|
22724
22800
|
this.linkElements = {};
|
|
@@ -22756,6 +22832,7 @@ var ThemeLoader = /*#__PURE__*/function () {
|
|
|
22756
22832
|
case 4:
|
|
22757
22833
|
_context.prev = 4;
|
|
22758
22834
|
_t = _context["catch"](1);
|
|
22835
|
+
// eslint-disable-next-line no-console
|
|
22759
22836
|
console.error('Failed to initialize theme system:', _t);
|
|
22760
22837
|
// Continue without themes - use inline styles as fallback
|
|
22761
22838
|
case 5:
|
|
@@ -22782,12 +22859,12 @@ var ThemeLoader = /*#__PURE__*/function () {
|
|
|
22782
22859
|
while (1) switch (_context2.prev = _context2.next) {
|
|
22783
22860
|
case 0:
|
|
22784
22861
|
// Variables
|
|
22785
|
-
variablesLink = this.createLinkElement('solid-ui-variables', '
|
|
22862
|
+
variablesLink = this.createLinkElement('solid-ui-variables', 'theme-variables.css');
|
|
22786
22863
|
document.head.insertBefore(variablesLink, document.head.firstChild);
|
|
22787
22864
|
this.linkElements.variables = variablesLink;
|
|
22788
22865
|
|
|
22789
22866
|
// Accessibility
|
|
22790
|
-
a11yLink = this.createLinkElement('solid-ui-accessibility', '
|
|
22867
|
+
a11yLink = this.createLinkElement('solid-ui-accessibility', 'theme-accessibility.css');
|
|
22791
22868
|
document.head.insertBefore(a11yLink, document.head.firstChild);
|
|
22792
22869
|
this.linkElements.accessibility = a11yLink;
|
|
22793
22870
|
|
|
@@ -22845,6 +22922,7 @@ var ThemeLoader = /*#__PURE__*/function () {
|
|
|
22845
22922
|
case 3:
|
|
22846
22923
|
_context3.prev = 3;
|
|
22847
22924
|
_t2 = _context3["catch"](1);
|
|
22925
|
+
// eslint-disable-next-line no-console
|
|
22848
22926
|
console.error("Failed to load theme \"".concat(themeName, "\":"), _t2);
|
|
22849
22927
|
throw _t2;
|
|
22850
22928
|
case 4:
|
|
@@ -22906,13 +22984,18 @@ var ThemeLoader = /*#__PURE__*/function () {
|
|
|
22906
22984
|
}, {
|
|
22907
22985
|
key: "resolveThemePath",
|
|
22908
22986
|
value: function resolveThemePath(path) {
|
|
22909
|
-
//
|
|
22910
|
-
//
|
|
22987
|
+
// Use webpack public path if available (set by mashlib/build config)
|
|
22988
|
+
// eslint-disable-next-line camelcase
|
|
22911
22989
|
if (true) {
|
|
22990
|
+
// eslint-disable-next-line camelcase, no-undef
|
|
22912
22991
|
return __webpack_require__.p + path;
|
|
22913
22992
|
}
|
|
22914
22993
|
|
|
22915
|
-
//
|
|
22994
|
+
// Use global base path if set by mashlib
|
|
22995
|
+
// removed by dead control flow
|
|
22996
|
+
|
|
22997
|
+
|
|
22998
|
+
// Try to find mashlib or solid-ui base path from script tags
|
|
22916
22999
|
// removed by dead control flow
|
|
22917
23000
|
var scripts;
|
|
22918
23001
|
// removed by dead control flow
|
|
@@ -22920,6 +23003,8 @@ var ThemeLoader = /*#__PURE__*/function () {
|
|
|
22920
23003
|
// removed by dead control flow
|
|
22921
23004
|
var baseUrl, script;
|
|
22922
23005
|
// removed by dead control flow
|
|
23006
|
+
var origin;
|
|
23007
|
+
// removed by dead control flow
|
|
22923
23008
|
|
|
22924
23009
|
}
|
|
22925
23010
|
|
|
@@ -22969,6 +23054,7 @@ var ThemeLoader = /*#__PURE__*/function () {
|
|
|
22969
23054
|
try {
|
|
22970
23055
|
localStorage.setItem(STORAGE_KEY, themeName);
|
|
22971
23056
|
} catch (error) {
|
|
23057
|
+
// eslint-disable-next-line no-console
|
|
22972
23058
|
console.warn('Failed to save theme preference:', error);
|
|
22973
23059
|
}
|
|
22974
23060
|
}
|
|
@@ -25256,9 +25342,9 @@ function throttle(func, wait) {
|
|
|
25256
25342
|
|
|
25257
25343
|
|
|
25258
25344
|
/* 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.
|
|
25345
|
+
/*
|
|
25346
|
+
This file was copied from mashlib/src/global/header.ts file. It is modified to
|
|
25347
|
+
work in solid-ui by adjusting where imported functions are found.
|
|
25262
25348
|
*/
|
|
25263
25349
|
|
|
25264
25350
|
|
|
@@ -25270,29 +25356,29 @@ function throttle(func, wait) {
|
|
|
25270
25356
|
|
|
25271
25357
|
|
|
25272
25358
|
|
|
25273
|
-
/**
|
|
25274
|
-
* menu icons
|
|
25359
|
+
/**
|
|
25360
|
+
* menu icons
|
|
25275
25361
|
*/
|
|
25276
25362
|
var DEFAULT_HELP_MENU_ICON = iconBase/* icons */.Pt.iconBase + 'noun_help.svg';
|
|
25277
25363
|
var DEFAUL_SOLID_ICON_URL = 'https://solidproject.org/assets/img/solid-emblem.svg';
|
|
25278
25364
|
|
|
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.
|
|
25365
|
+
/*
|
|
25366
|
+
HeaderOptions allow for customizing the logo and menu list. If a logo is not provided the default
|
|
25367
|
+
is solid. Menulist will always show a link to logout and to the users profile.
|
|
25282
25368
|
*/
|
|
25283
25369
|
|
|
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
|
|
25370
|
+
/**
|
|
25371
|
+
* Initialize header component, the header object returned depends on whether the user is authenticated.
|
|
25372
|
+
* @param store the data store
|
|
25373
|
+
* @param userMenuList a list of menu items when the user is logged in
|
|
25374
|
+
* @param options allow the header to be customized with a personalized logo, help icon and a help menu list of links or buttons.
|
|
25375
|
+
* @returns a header for an authenticated user with menu items given or a login screen
|
|
25290
25376
|
*/
|
|
25291
25377
|
function initHeader(_x, _x2, _x3) {
|
|
25292
25378
|
return _initHeader.apply(this, arguments);
|
|
25293
25379
|
}
|
|
25294
|
-
/**
|
|
25295
|
-
* @ignore exporting this only for the unit test
|
|
25380
|
+
/**
|
|
25381
|
+
* @ignore exporting this only for the unit test
|
|
25296
25382
|
*/
|
|
25297
25383
|
function _initHeader() {
|
|
25298
25384
|
_initHeader = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3(store, userMenuList, options) {
|
|
@@ -25339,14 +25425,14 @@ function rebuildHeader(header, store, pod, userMenuList, options) {
|
|
|
25339
25425
|
}, _callee);
|
|
25340
25426
|
}));
|
|
25341
25427
|
}
|
|
25342
|
-
/**
|
|
25343
|
-
* @ignore exporting this only for the unit test
|
|
25428
|
+
/**
|
|
25429
|
+
* @ignore exporting this only for the unit test
|
|
25344
25430
|
*/
|
|
25345
25431
|
function createBanner(_x4, _x5, _x6, _x7, _x8) {
|
|
25346
25432
|
return _createBanner.apply(this, arguments);
|
|
25347
25433
|
}
|
|
25348
|
-
/**
|
|
25349
|
-
* @ignore exporting this only for the unit test
|
|
25434
|
+
/**
|
|
25435
|
+
* @ignore exporting this only for the unit test
|
|
25350
25436
|
*/
|
|
25351
25437
|
function _createBanner() {
|
|
25352
25438
|
_createBanner = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4(store, pod, user, userMenuList, options) {
|
|
@@ -25529,8 +25615,8 @@ function createHelpMenu(options, helpMenuItems) {
|
|
|
25529
25615
|
});
|
|
25530
25616
|
return helpMenuContainer;
|
|
25531
25617
|
}
|
|
25532
|
-
/**
|
|
25533
|
-
* @ignore exporting this only for the unit test
|
|
25618
|
+
/**
|
|
25619
|
+
* @ignore exporting this only for the unit test
|
|
25534
25620
|
*/
|
|
25535
25621
|
function createLoginSignUpButtons() {
|
|
25536
25622
|
var profileLoginButtonPre = document.createElement('div');
|
|
@@ -25538,8 +25624,8 @@ function createLoginSignUpButtons() {
|
|
|
25538
25624
|
profileLoginButtonPre.appendChild(loginStatusBox(document, null, {}));
|
|
25539
25625
|
return profileLoginButtonPre;
|
|
25540
25626
|
}
|
|
25541
|
-
/**
|
|
25542
|
-
* @ignore exporting this only for the unit test
|
|
25627
|
+
/**
|
|
25628
|
+
* @ignore exporting this only for the unit test
|
|
25543
25629
|
*/
|
|
25544
25630
|
function createUserMenuButton(label, onClick) {
|
|
25545
25631
|
var button = document.createElement('button');
|
|
@@ -25554,8 +25640,8 @@ function createUserMenuButton(label, onClick) {
|
|
|
25554
25640
|
button.innerText = label;
|
|
25555
25641
|
return button;
|
|
25556
25642
|
}
|
|
25557
|
-
/**
|
|
25558
|
-
* @ignore exporting this only for the unit test
|
|
25643
|
+
/**
|
|
25644
|
+
* @ignore exporting this only for the unit test
|
|
25559
25645
|
*/
|
|
25560
25646
|
function createUserMenuLink(label, href, target) {
|
|
25561
25647
|
var link = document.createElement('a');
|
|
@@ -25572,15 +25658,15 @@ function createUserMenuLink(label, href, target) {
|
|
|
25572
25658
|
return link;
|
|
25573
25659
|
}
|
|
25574
25660
|
|
|
25575
|
-
/**
|
|
25576
|
-
* @ignore exporting this only for the unit test
|
|
25661
|
+
/**
|
|
25662
|
+
* @ignore exporting this only for the unit test
|
|
25577
25663
|
*/
|
|
25578
25664
|
function createUserMenu(_x9, _x0, _x1) {
|
|
25579
25665
|
return _createUserMenu.apply(this, arguments);
|
|
25580
25666
|
}
|
|
25581
25667
|
|
|
25582
|
-
/**
|
|
25583
|
-
* @ignore exporting this only for the unit test
|
|
25668
|
+
/**
|
|
25669
|
+
* @ignore exporting this only for the unit test
|
|
25584
25670
|
*/
|
|
25585
25671
|
function _createUserMenu() {
|
|
25586
25672
|
_createUserMenu = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee5(store, user, userMenuList) {
|
|
@@ -25661,8 +25747,8 @@ function createUserMenuItem(child) {
|
|
|
25661
25747
|
menuProfileItem.appendChild(child);
|
|
25662
25748
|
return menuProfileItem;
|
|
25663
25749
|
}
|
|
25664
|
-
/**
|
|
25665
|
-
* @ignore exporting this only for the unit test
|
|
25750
|
+
/**
|
|
25751
|
+
* @ignore exporting this only for the unit test
|
|
25666
25752
|
*/
|
|
25667
25753
|
function getProfileImg(store, user) {
|
|
25668
25754
|
var profileUrl = null;
|
|
@@ -25680,8 +25766,8 @@ function getProfileImg(store, user) {
|
|
|
25680
25766
|
return profileImage;
|
|
25681
25767
|
}
|
|
25682
25768
|
|
|
25683
|
-
/**
|
|
25684
|
-
* @internal
|
|
25769
|
+
/**
|
|
25770
|
+
* @internal
|
|
25685
25771
|
*/
|
|
25686
25772
|
function toggleMenu(event, trigger, menu) {
|
|
25687
25773
|
var isExpanded = trigger.getAttribute('aria-expanded') === 'true';
|
|
@@ -25809,43 +25895,43 @@ function createControllerInfoBlock(store, user, pod, podOwner, options) {
|
|
|
25809
25895
|
;// ./src/create/types.ts
|
|
25810
25896
|
|
|
25811
25897
|
;// ./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
|
|
25898
|
+
/*
|
|
25899
|
+
The MIT License (MIT)
|
|
25900
|
+
|
|
25901
|
+
Copyright (c) 2015-2016 Solid
|
|
25902
|
+
|
|
25903
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
25904
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
25905
|
+
in the Software without restriction, including without limitation the rights
|
|
25906
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
25907
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
25908
|
+
furnished to do so, subject to the following conditions:
|
|
25909
|
+
|
|
25910
|
+
The above copyright notice and this permission notice shall be included in all
|
|
25911
|
+
copies or substantial portions of the Software.
|
|
25912
|
+
|
|
25913
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25914
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25915
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25916
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25917
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25918
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25919
|
+
SOFTWARE.
|
|
25920
|
+
|
|
25921
|
+
If you would like to know more about the solid Solid project, please see
|
|
25922
|
+
https://github.com/solidos/solid
|
|
25837
25923
|
*/
|
|
25838
25924
|
|
|
25839
25925
|
|
|
25840
|
-
/**
|
|
25841
|
-
* Provides a Solid client helper object (which exposes various static modules).
|
|
25842
|
-
* @module UI.js
|
|
25843
|
-
* @main UI.js
|
|
25926
|
+
/**
|
|
25927
|
+
* Provides a Solid client helper object (which exposes various static modules).
|
|
25928
|
+
* @module UI.js
|
|
25929
|
+
* @main UI.js
|
|
25844
25930
|
*/
|
|
25845
25931
|
|
|
25846
|
-
/**
|
|
25847
|
-
* @class UI
|
|
25848
|
-
* @static
|
|
25932
|
+
/**
|
|
25933
|
+
* @class UI
|
|
25934
|
+
* @static
|
|
25849
25935
|
*/
|
|
25850
25936
|
|
|
25851
25937
|
// REMOVE @ts-ignore as you migrate files to TypeScript
|