@pod-os/elements 0.40.0-rc.f6852f1.0 → 0.41.0-rc.22aea6d.0
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/dist/cjs/elements.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pos-add-new-thing_32.cjs.entry.js +21 -10
- package/dist/cjs/pos-markdown-document.cjs.entry.js +1 -1
- package/dist/cjs/pos-relations_2.cjs.entry.js +1 -1
- package/dist/cjs/pos-tool-attachments.cjs.entry.js +1 -1
- package/dist/collection/components/pos-login/pos-login.css +3 -0
- package/dist/collection/components/pos-login-form/pos-login-form.css +41 -0
- package/dist/collection/components/pos-login-form/pos-login-form.js +13 -2
- package/dist/collection/components/pos-markdown-document/pos-markdown-document.js +1 -1
- package/dist/collection/components/pos-navigation/bar/pos-navigation-bar.js +1 -1
- package/dist/collection/components/pos-navigation/pos-navigation.js +1 -1
- package/dist/collection/components/pos-new-thing-form/pos-new-thing-form.js +1 -1
- package/dist/collection/components/pos-relations/pos-relations.js +1 -1
- package/dist/collection/components/pos-router/pos-router.js +1 -1
- package/dist/collection/components/pos-select-term/pos-select-term.js +1 -1
- package/dist/collection/components/pos-share/pos-share.js +1 -1
- package/dist/collection/components/pos-upload/pos-upload.js +1 -1
- package/dist/collection/store/settings.js +2 -0
- package/dist/collection/tools/pos-tool-attachments/pos-tool-attachments.js +1 -1
- package/dist/components/pos-login-form2.js +1 -1
- package/dist/components/pos-login2.js +1 -1
- package/dist/components/pos-markdown-document2.js +1 -1
- package/dist/components/pos-navigation-bar2.js +1 -1
- package/dist/components/pos-navigation2.js +1 -1
- package/dist/components/pos-new-thing-form2.js +1 -1
- package/dist/components/pos-relations2.js +1 -1
- package/dist/components/pos-router2.js +1 -1
- package/dist/components/pos-select-term2.js +1 -1
- package/dist/components/pos-share2.js +1 -1
- package/dist/components/pos-tool-attachments.js +1 -1
- package/dist/components/pos-upload2.js +1 -1
- package/dist/components/settings.js +1 -1
- package/dist/elements/elements.esm.js +1 -1
- package/dist/elements/{p-ceeba057.entry.js → p-0febf76e.entry.js} +1 -1
- package/dist/elements/{p-1910fa2d.entry.js → p-57d32176.entry.js} +5 -5
- package/dist/elements/{p-780eb6aa.entry.js → p-c4034954.entry.js} +1 -1
- package/dist/elements/{p-80c897c2.entry.js → p-d6e9d178.entry.js} +1 -1
- package/dist/esm/elements.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pos-add-new-thing_32.entry.js +21 -10
- package/dist/esm/pos-markdown-document.entry.js +1 -1
- package/dist/esm/pos-relations_2.entry.js +1 -1
- package/dist/esm/pos-tool-attachments.entry.js +1 -1
- package/dist/types/components/pos-login-form/pos-login-form.d.ts +2 -0
- package/dist/types/store/settings.d.ts +1 -0
- package/package.json +5 -5
package/dist/cjs/elements.cjs.js
CHANGED
|
@@ -45,7 +45,7 @@ var patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
|
45
45
|
|
|
46
46
|
patchBrowser().then(async (options) => {
|
|
47
47
|
await index.globalScripts();
|
|
48
|
-
return index.bootstrapLazy([["pos-app-generic.cjs",[[1,"pos-app-generic"]]],["pos-app-ldp-container.cjs",[[1,"pos-app-ldp-container"]]],["pos-app-rdf-document.cjs",[[1,"pos-app-rdf-document"]]],["pos-app-image-viewer.cjs",[[1,"pos-app-image-viewer",{"resource":[32]}]]],["pos-tool-attachments.cjs",[[1,"pos-tool-attachments",{"os":[32],"resource":[32]}]]],["pos-app-document-viewer.cjs",[[1,"pos-app-document-viewer",{"resource":[32]}]]],["pos-list.cjs",[[0,"pos-list",{"rel":[1],"ifTypeof":[1,"if-typeof"],"fetch":[4],"error":[32],"os":[32],"resource":[32],"items":[32],"templateString":[32]}]]],["pos-case.cjs",[[0,"pos-case",{"ifTypeof":[1,"if-typeof"],"ifProperty":[1,"if-property"],"ifRev":[1,"if-rev"],"not":[4],"else":[4],"error":[32]}]]],["pos-switch.cjs",[[0,"pos-switch",{"error":[32],"resource":[32],"caseElements":[32],"types":[32],"relations":[32],"reverseRelations":[32]}]]],["pos-value.cjs",[[1,"pos-value",{"predicate":[1],"resource":[32]}]]],["pos-attachments.cjs",[[1,"pos-attachments",{"resource":[32],"attachments":[32],"addToList":[64]}]]],["pos-container-contents.cjs",[[1,"pos-container-contents",{"container":[32],"contents":[32],"loading":[32],"createNewItem":[32]},[[0,"keydown","handleKeyDown"]]]]],["pos-document.cjs",[[1,"pos-document",{"src":[1],"alt":[1],"os":[32],"file":[32],"brokenFile":[32],"error":[32],"saveStatus":[32],"loading":[32],"isEditable":[32]},[[0,"pod-os:document-modified","handleDocumentModified"]],{"os":[{"fetchBlob":0}],"src":[{"fetchBlob":0}]}]]],["pos-add-new-thing_32.cjs",[[0,"pos-app-browser",{"restorePreviousSession":[4,"restore-previous-session"],"mode":[1],"uri":[32]}],[0,"pos-internal-router",{"uri":[1]}],[257,"pos-login",{"os":[32],"customLoggedInComponent":[32]},[[4,"pod-os:logout","logout"],[4,"pod-os:login","onLogin"]]],[1,"pos-navigation",{"uri":[1],"os":[32],"inputValue":[32],"searchIndex":[32],"suggestions":[32],"selectedIndex":[32],"resource":[32]},[[0,"pod-os:search:index-created","buildSearchIndex"],[0,"pod-os:search:index-updated","rebuildSearchIndex"],[0,"pod-os:navigate","openNavigationDialog"],[4,"click","closeDialog"],[0,"pod-os:link","clearSuggestions"],[0,"click","onClickSelf"],[0,"keydown","handleKeyDown"]],{"uri":[{"updateResource":0}],"os":[{"updateResource":0}]}],[1,"pos-user-menu",{"webId":[1,"web-id"]},[[0,"sl-select","onSelect"]]],[1,"pos-add-new-thing",{"referenceUri":[1,"reference-uri"]}],[1,"pos-type-router",{"initialTool":[32],"availableTools":[32],"oldTool":[32],"currentTool":[32],"transitioning":[32]},[[0,"pod-os:tool-selected","handleToolSelected"]]],[257,"pos-app",{"restorePreviousSession":[4,"restore-previous-session"],"os":[32],"unsubscribeSettings":[32],"loading":[32]},[[0,"pod-os:init","initializeOs"],[0,"pod-os:module","loadModule"]]],[257,"pos-error-toast",{"title":[32],"message":[32]},[[8,"unhandledrejection","unhandledRejection"],[0,"pod-os:error","catchError"]]],[260,"pos-router",{"mode":[1],"uri":[32]},[[0,"pod-os:link","linkClicked"],[8,"pod-os:session-restored","sessionRestored"]]],[1,"pos-app-dashboard"],[1,"pos-navigation-bar",{"current":[16],"searchIndexReady":[4,"search-index-ready"]},[[4,"keydown","activate"]]],[1,"pos-app-settings"],[17,"pos-new-thing-form",{"referenceUri":[1,"reference-uri"],"os":[32],"newUri":[32],"name":[32],"selectedTypeUri":[32],"canSubmit":[32]},null,{"name":[{"validate":0}],"selectedTypeUri":[{"validate":0}]}],[17,"pos-login-form",{"idpUrl":[32],"canSubmit":[32]},null,{"idpUrl":[{"validate":0}]}],[1,"pos-tool-select",{"selected":[16],"tools":[16]}],[1,"pos-type-index-entries",{"uri":[1],"entries":[32]}],[1,"pos-example-resources"],[1,"pos-make-findable",{"uri":[1],"os":[32],"thing":[32],"indexes":[32],"unsubscribeSessionChange":[32],"showOptions":[32],"isIndexed":[32]},[[0,"sl-select","onSelect"]],{"uri":[{"updateUri":0}]}],[260,"pos-dialog",{"showModal":[64],"close":[64]}],[1,"pos-getting-started"],[1,"pos-setting-offline-cache"],[1,"pos-share",{"uri":[1],"apps":[32],"os":[32]},[[4,"pod-os:resource-loaded","resourceLoaded"],[0,"sl-select","onSelect"]],{"uri":[{"updateApps":0}]}],[257,"pos-picture",{"blurredBackground":[4,"blurred-background"],"noUpload":[4,"no-upload"],"resource":[32],"os":[32],"isUploading":[32]}],[1,"pos-image",{"src":[1],"alt":[1],"blurredBackground":[4,"blurred-background"],"os":[32],"dataUri":[32],"brokenFile":[32],"networkError":[32],"imageError":[32],"loading":[32]},null,{"os":[{"fetchBlob":0}],"src":[{"fetchBlob":0}]}],[1,"pos-upload",{"accept":[16],"uploader":[16]}],[1,"pos-predicate",{"uri":[1],"label":[1],"expanded":[32]}],[17,"pos-select-term",{"placeholder":[1],"value":[1],"os":[32],"terms":[32]},null,{"os":[{"setTerms":0}]}],[257,"pos-rich-link",{"uri":[1],"rel":[1],"rev":[1],"link":[32],"followPredicate":[32],"error":[32],"showCustomContent":[32]}],[1,"pos-description",{"resource":[32]}],[1,"pos-label",{"resource":[32]}],[257,"pos-resource",{"uri":[1],"lazy":[4],"os":[32],"resource":[32],"consumers":[32],"error":[32],"loading":[32],"fetch":[64]},[[0,"pod-os:resource","provideResource"]],{"os":[{"loadResource":0}],"uri":[{"loadResource":0}]}]]],["pos-relations_2.cjs",[[1,"pos-relations",{"data":[32]}],[1,"pos-reverse-relations",{"data":[32]}]]],["pos-subjects.cjs",[[1,"pos-subjects",{"data":[32]}]]],["pos-add-relation.cjs",[[1,"pos-add-relation",{"os":[32],"resource":[32],"selectedTermUri":[32],"currentValue":[32]}]]],["pos-markdown-document.cjs",[[1,"pos-markdown-document",{"file":[16],"saveStatus":[1,"save-status"],"editable":[4],"markdown":[32],"isModified":[32],"isEditing":[32],"startEditing":[64],"stopEditing":[64]}]]],["pos-container-item_3.cjs",[[257,"pos-container-item",{"resource":[32]}],[1,"pos-container-toolbar"],[1,"pos-create-new-container-item",{"type":[1],"container":[16],"os":[32],"name":[32]}]]],["pos-add-literal-value_3.cjs",[[1,"pos-literals",{"data":[32]}],[1,"pos-type-badges",{"data":[32],"typeLabels":[32],"isExpanded":[32]}],[1,"pos-add-literal-value",{"os":[32],"resource":[32],"currentValue":[32],"selectedTermUri":[32]},null,{"os":[{"setName":0}]}]]]], options);
|
|
48
|
+
return index.bootstrapLazy([["pos-app-generic.cjs",[[1,"pos-app-generic"]]],["pos-app-ldp-container.cjs",[[1,"pos-app-ldp-container"]]],["pos-app-rdf-document.cjs",[[1,"pos-app-rdf-document"]]],["pos-app-image-viewer.cjs",[[1,"pos-app-image-viewer",{"resource":[32]}]]],["pos-tool-attachments.cjs",[[1,"pos-tool-attachments",{"os":[32],"resource":[32]}]]],["pos-app-document-viewer.cjs",[[1,"pos-app-document-viewer",{"resource":[32]}]]],["pos-list.cjs",[[0,"pos-list",{"rel":[1],"ifTypeof":[1,"if-typeof"],"fetch":[4],"error":[32],"os":[32],"resource":[32],"items":[32],"templateString":[32]}]]],["pos-case.cjs",[[0,"pos-case",{"ifTypeof":[1,"if-typeof"],"ifProperty":[1,"if-property"],"ifRev":[1,"if-rev"],"not":[4],"else":[4],"error":[32]}]]],["pos-switch.cjs",[[0,"pos-switch",{"error":[32],"resource":[32],"caseElements":[32],"types":[32],"relations":[32],"reverseRelations":[32]}]]],["pos-value.cjs",[[1,"pos-value",{"predicate":[1],"resource":[32]}]]],["pos-attachments.cjs",[[1,"pos-attachments",{"resource":[32],"attachments":[32],"addToList":[64]}]]],["pos-container-contents.cjs",[[1,"pos-container-contents",{"container":[32],"contents":[32],"loading":[32],"createNewItem":[32]},[[0,"keydown","handleKeyDown"]]]]],["pos-document.cjs",[[1,"pos-document",{"src":[1],"alt":[1],"os":[32],"file":[32],"brokenFile":[32],"error":[32],"saveStatus":[32],"loading":[32],"isEditable":[32]},[[0,"pod-os:document-modified","handleDocumentModified"]],{"os":[{"fetchBlob":0}],"src":[{"fetchBlob":0}]}]]],["pos-add-new-thing_32.cjs",[[0,"pos-app-browser",{"restorePreviousSession":[4,"restore-previous-session"],"mode":[1],"uri":[32]}],[0,"pos-internal-router",{"uri":[1]}],[257,"pos-login",{"os":[32],"customLoggedInComponent":[32]},[[4,"pod-os:logout","logout"],[4,"pod-os:login","onLogin"]]],[1,"pos-navigation",{"uri":[1],"os":[32],"inputValue":[32],"searchIndex":[32],"suggestions":[32],"selectedIndex":[32],"resource":[32]},[[0,"pod-os:search:index-created","buildSearchIndex"],[0,"pod-os:search:index-updated","rebuildSearchIndex"],[0,"pod-os:navigate","openNavigationDialog"],[4,"click","closeDialog"],[0,"pod-os:link","clearSuggestions"],[0,"click","onClickSelf"],[0,"keydown","handleKeyDown"]],{"uri":[{"updateResource":0}],"os":[{"updateResource":0}]}],[1,"pos-user-menu",{"webId":[1,"web-id"]},[[0,"sl-select","onSelect"]]],[1,"pos-add-new-thing",{"referenceUri":[1,"reference-uri"]}],[1,"pos-type-router",{"initialTool":[32],"availableTools":[32],"oldTool":[32],"currentTool":[32],"transitioning":[32]},[[0,"pod-os:tool-selected","handleToolSelected"]]],[257,"pos-app",{"restorePreviousSession":[4,"restore-previous-session"],"os":[32],"unsubscribeSettings":[32],"loading":[32]},[[0,"pod-os:init","initializeOs"],[0,"pod-os:module","loadModule"]]],[257,"pos-error-toast",{"title":[32],"message":[32]},[[8,"unhandledrejection","unhandledRejection"],[0,"pod-os:error","catchError"]]],[260,"pos-router",{"mode":[1],"uri":[32]},[[0,"pod-os:link","linkClicked"],[8,"pod-os:session-restored","sessionRestored"]]],[1,"pos-app-dashboard"],[1,"pos-navigation-bar",{"current":[16],"searchIndexReady":[4,"search-index-ready"]},[[4,"keydown","activate"]]],[1,"pos-app-settings"],[17,"pos-new-thing-form",{"referenceUri":[1,"reference-uri"],"os":[32],"newUri":[32],"name":[32],"selectedTypeUri":[32],"canSubmit":[32]},null,{"name":[{"validate":0}],"selectedTypeUri":[{"validate":0}]}],[17,"pos-login-form",{"idpUrl":[32],"canSubmit":[32],"rememberMe":[32]},null,{"idpUrl":[{"validate":0}]}],[1,"pos-tool-select",{"selected":[16],"tools":[16]}],[1,"pos-type-index-entries",{"uri":[1],"entries":[32]}],[1,"pos-example-resources"],[1,"pos-make-findable",{"uri":[1],"os":[32],"thing":[32],"indexes":[32],"unsubscribeSessionChange":[32],"showOptions":[32],"isIndexed":[32]},[[0,"sl-select","onSelect"]],{"uri":[{"updateUri":0}]}],[260,"pos-dialog",{"showModal":[64],"close":[64]}],[1,"pos-getting-started"],[1,"pos-setting-offline-cache"],[1,"pos-share",{"uri":[1],"apps":[32],"os":[32]},[[4,"pod-os:resource-loaded","resourceLoaded"],[0,"sl-select","onSelect"]],{"uri":[{"updateApps":0}]}],[257,"pos-picture",{"blurredBackground":[4,"blurred-background"],"noUpload":[4,"no-upload"],"resource":[32],"os":[32],"isUploading":[32]}],[1,"pos-image",{"src":[1],"alt":[1],"blurredBackground":[4,"blurred-background"],"os":[32],"dataUri":[32],"brokenFile":[32],"networkError":[32],"imageError":[32],"loading":[32]},null,{"os":[{"fetchBlob":0}],"src":[{"fetchBlob":0}]}],[1,"pos-upload",{"accept":[16],"uploader":[16]}],[1,"pos-predicate",{"uri":[1],"label":[1],"expanded":[32]}],[17,"pos-select-term",{"placeholder":[1],"value":[1],"os":[32],"terms":[32]},null,{"os":[{"setTerms":0}]}],[257,"pos-rich-link",{"uri":[1],"rel":[1],"rev":[1],"link":[32],"followPredicate":[32],"error":[32],"showCustomContent":[32]}],[1,"pos-description",{"resource":[32]}],[1,"pos-label",{"resource":[32]}],[257,"pos-resource",{"uri":[1],"lazy":[4],"os":[32],"resource":[32],"consumers":[32],"error":[32],"loading":[32],"fetch":[64]},[[0,"pod-os:resource","provideResource"]],{"os":[{"loadResource":0}],"uri":[{"loadResource":0}]}]]],["pos-relations_2.cjs",[[1,"pos-relations",{"data":[32]}],[1,"pos-reverse-relations",{"data":[32]}]]],["pos-subjects.cjs",[[1,"pos-subjects",{"data":[32]}]]],["pos-add-relation.cjs",[[1,"pos-add-relation",{"os":[32],"resource":[32],"selectedTermUri":[32],"currentValue":[32]}]]],["pos-markdown-document.cjs",[[1,"pos-markdown-document",{"file":[16],"saveStatus":[1,"save-status"],"editable":[4],"markdown":[32],"isModified":[32],"isEditing":[32],"startEditing":[64],"stopEditing":[64]}]]],["pos-container-item_3.cjs",[[257,"pos-container-item",{"resource":[32]}],[1,"pos-container-toolbar"],[1,"pos-create-new-container-item",{"type":[1],"container":[16],"os":[32],"name":[32]}]]],["pos-add-literal-value_3.cjs",[[1,"pos-literals",{"data":[32]}],[1,"pos-type-badges",{"data":[32],"typeLabels":[32],"isExpanded":[32]}],[1,"pos-add-literal-value",{"os":[32],"resource":[32],"currentValue":[32],"selectedTermUri":[32]},null,{"os":[{"setName":0}]}]]]], options);
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
exports.setNonce = index.setNonce;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -5,7 +5,7 @@ var index = require('./index-CFcC3IGM.js');
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await index.globalScripts();
|
|
8
|
-
return index.bootstrapLazy([["pos-app-generic.cjs",[[1,"pos-app-generic"]]],["pos-app-ldp-container.cjs",[[1,"pos-app-ldp-container"]]],["pos-app-rdf-document.cjs",[[1,"pos-app-rdf-document"]]],["pos-app-image-viewer.cjs",[[1,"pos-app-image-viewer",{"resource":[32]}]]],["pos-tool-attachments.cjs",[[1,"pos-tool-attachments",{"os":[32],"resource":[32]}]]],["pos-app-document-viewer.cjs",[[1,"pos-app-document-viewer",{"resource":[32]}]]],["pos-list.cjs",[[0,"pos-list",{"rel":[1],"ifTypeof":[1,"if-typeof"],"fetch":[4],"error":[32],"os":[32],"resource":[32],"items":[32],"templateString":[32]}]]],["pos-case.cjs",[[0,"pos-case",{"ifTypeof":[1,"if-typeof"],"ifProperty":[1,"if-property"],"ifRev":[1,"if-rev"],"not":[4],"else":[4],"error":[32]}]]],["pos-switch.cjs",[[0,"pos-switch",{"error":[32],"resource":[32],"caseElements":[32],"types":[32],"relations":[32],"reverseRelations":[32]}]]],["pos-value.cjs",[[1,"pos-value",{"predicate":[1],"resource":[32]}]]],["pos-attachments.cjs",[[1,"pos-attachments",{"resource":[32],"attachments":[32],"addToList":[64]}]]],["pos-container-contents.cjs",[[1,"pos-container-contents",{"container":[32],"contents":[32],"loading":[32],"createNewItem":[32]},[[0,"keydown","handleKeyDown"]]]]],["pos-document.cjs",[[1,"pos-document",{"src":[1],"alt":[1],"os":[32],"file":[32],"brokenFile":[32],"error":[32],"saveStatus":[32],"loading":[32],"isEditable":[32]},[[0,"pod-os:document-modified","handleDocumentModified"]],{"os":[{"fetchBlob":0}],"src":[{"fetchBlob":0}]}]]],["pos-add-new-thing_32.cjs",[[0,"pos-app-browser",{"restorePreviousSession":[4,"restore-previous-session"],"mode":[1],"uri":[32]}],[0,"pos-internal-router",{"uri":[1]}],[257,"pos-login",{"os":[32],"customLoggedInComponent":[32]},[[4,"pod-os:logout","logout"],[4,"pod-os:login","onLogin"]]],[1,"pos-navigation",{"uri":[1],"os":[32],"inputValue":[32],"searchIndex":[32],"suggestions":[32],"selectedIndex":[32],"resource":[32]},[[0,"pod-os:search:index-created","buildSearchIndex"],[0,"pod-os:search:index-updated","rebuildSearchIndex"],[0,"pod-os:navigate","openNavigationDialog"],[4,"click","closeDialog"],[0,"pod-os:link","clearSuggestions"],[0,"click","onClickSelf"],[0,"keydown","handleKeyDown"]],{"uri":[{"updateResource":0}],"os":[{"updateResource":0}]}],[1,"pos-user-menu",{"webId":[1,"web-id"]},[[0,"sl-select","onSelect"]]],[1,"pos-add-new-thing",{"referenceUri":[1,"reference-uri"]}],[1,"pos-type-router",{"initialTool":[32],"availableTools":[32],"oldTool":[32],"currentTool":[32],"transitioning":[32]},[[0,"pod-os:tool-selected","handleToolSelected"]]],[257,"pos-app",{"restorePreviousSession":[4,"restore-previous-session"],"os":[32],"unsubscribeSettings":[32],"loading":[32]},[[0,"pod-os:init","initializeOs"],[0,"pod-os:module","loadModule"]]],[257,"pos-error-toast",{"title":[32],"message":[32]},[[8,"unhandledrejection","unhandledRejection"],[0,"pod-os:error","catchError"]]],[260,"pos-router",{"mode":[1],"uri":[32]},[[0,"pod-os:link","linkClicked"],[8,"pod-os:session-restored","sessionRestored"]]],[1,"pos-app-dashboard"],[1,"pos-navigation-bar",{"current":[16],"searchIndexReady":[4,"search-index-ready"]},[[4,"keydown","activate"]]],[1,"pos-app-settings"],[17,"pos-new-thing-form",{"referenceUri":[1,"reference-uri"],"os":[32],"newUri":[32],"name":[32],"selectedTypeUri":[32],"canSubmit":[32]},null,{"name":[{"validate":0}],"selectedTypeUri":[{"validate":0}]}],[17,"pos-login-form",{"idpUrl":[32],"canSubmit":[32]},null,{"idpUrl":[{"validate":0}]}],[1,"pos-tool-select",{"selected":[16],"tools":[16]}],[1,"pos-type-index-entries",{"uri":[1],"entries":[32]}],[1,"pos-example-resources"],[1,"pos-make-findable",{"uri":[1],"os":[32],"thing":[32],"indexes":[32],"unsubscribeSessionChange":[32],"showOptions":[32],"isIndexed":[32]},[[0,"sl-select","onSelect"]],{"uri":[{"updateUri":0}]}],[260,"pos-dialog",{"showModal":[64],"close":[64]}],[1,"pos-getting-started"],[1,"pos-setting-offline-cache"],[1,"pos-share",{"uri":[1],"apps":[32],"os":[32]},[[4,"pod-os:resource-loaded","resourceLoaded"],[0,"sl-select","onSelect"]],{"uri":[{"updateApps":0}]}],[257,"pos-picture",{"blurredBackground":[4,"blurred-background"],"noUpload":[4,"no-upload"],"resource":[32],"os":[32],"isUploading":[32]}],[1,"pos-image",{"src":[1],"alt":[1],"blurredBackground":[4,"blurred-background"],"os":[32],"dataUri":[32],"brokenFile":[32],"networkError":[32],"imageError":[32],"loading":[32]},null,{"os":[{"fetchBlob":0}],"src":[{"fetchBlob":0}]}],[1,"pos-upload",{"accept":[16],"uploader":[16]}],[1,"pos-predicate",{"uri":[1],"label":[1],"expanded":[32]}],[17,"pos-select-term",{"placeholder":[1],"value":[1],"os":[32],"terms":[32]},null,{"os":[{"setTerms":0}]}],[257,"pos-rich-link",{"uri":[1],"rel":[1],"rev":[1],"link":[32],"followPredicate":[32],"error":[32],"showCustomContent":[32]}],[1,"pos-description",{"resource":[32]}],[1,"pos-label",{"resource":[32]}],[257,"pos-resource",{"uri":[1],"lazy":[4],"os":[32],"resource":[32],"consumers":[32],"error":[32],"loading":[32],"fetch":[64]},[[0,"pod-os:resource","provideResource"]],{"os":[{"loadResource":0}],"uri":[{"loadResource":0}]}]]],["pos-relations_2.cjs",[[1,"pos-relations",{"data":[32]}],[1,"pos-reverse-relations",{"data":[32]}]]],["pos-subjects.cjs",[[1,"pos-subjects",{"data":[32]}]]],["pos-add-relation.cjs",[[1,"pos-add-relation",{"os":[32],"resource":[32],"selectedTermUri":[32],"currentValue":[32]}]]],["pos-markdown-document.cjs",[[1,"pos-markdown-document",{"file":[16],"saveStatus":[1,"save-status"],"editable":[4],"markdown":[32],"isModified":[32],"isEditing":[32],"startEditing":[64],"stopEditing":[64]}]]],["pos-container-item_3.cjs",[[257,"pos-container-item",{"resource":[32]}],[1,"pos-container-toolbar"],[1,"pos-create-new-container-item",{"type":[1],"container":[16],"os":[32],"name":[32]}]]],["pos-add-literal-value_3.cjs",[[1,"pos-literals",{"data":[32]}],[1,"pos-type-badges",{"data":[32],"typeLabels":[32],"isExpanded":[32]}],[1,"pos-add-literal-value",{"os":[32],"resource":[32],"currentValue":[32],"selectedTermUri":[32]},null,{"os":[{"setName":0}]}]]]], options);
|
|
8
|
+
return index.bootstrapLazy([["pos-app-generic.cjs",[[1,"pos-app-generic"]]],["pos-app-ldp-container.cjs",[[1,"pos-app-ldp-container"]]],["pos-app-rdf-document.cjs",[[1,"pos-app-rdf-document"]]],["pos-app-image-viewer.cjs",[[1,"pos-app-image-viewer",{"resource":[32]}]]],["pos-tool-attachments.cjs",[[1,"pos-tool-attachments",{"os":[32],"resource":[32]}]]],["pos-app-document-viewer.cjs",[[1,"pos-app-document-viewer",{"resource":[32]}]]],["pos-list.cjs",[[0,"pos-list",{"rel":[1],"ifTypeof":[1,"if-typeof"],"fetch":[4],"error":[32],"os":[32],"resource":[32],"items":[32],"templateString":[32]}]]],["pos-case.cjs",[[0,"pos-case",{"ifTypeof":[1,"if-typeof"],"ifProperty":[1,"if-property"],"ifRev":[1,"if-rev"],"not":[4],"else":[4],"error":[32]}]]],["pos-switch.cjs",[[0,"pos-switch",{"error":[32],"resource":[32],"caseElements":[32],"types":[32],"relations":[32],"reverseRelations":[32]}]]],["pos-value.cjs",[[1,"pos-value",{"predicate":[1],"resource":[32]}]]],["pos-attachments.cjs",[[1,"pos-attachments",{"resource":[32],"attachments":[32],"addToList":[64]}]]],["pos-container-contents.cjs",[[1,"pos-container-contents",{"container":[32],"contents":[32],"loading":[32],"createNewItem":[32]},[[0,"keydown","handleKeyDown"]]]]],["pos-document.cjs",[[1,"pos-document",{"src":[1],"alt":[1],"os":[32],"file":[32],"brokenFile":[32],"error":[32],"saveStatus":[32],"loading":[32],"isEditable":[32]},[[0,"pod-os:document-modified","handleDocumentModified"]],{"os":[{"fetchBlob":0}],"src":[{"fetchBlob":0}]}]]],["pos-add-new-thing_32.cjs",[[0,"pos-app-browser",{"restorePreviousSession":[4,"restore-previous-session"],"mode":[1],"uri":[32]}],[0,"pos-internal-router",{"uri":[1]}],[257,"pos-login",{"os":[32],"customLoggedInComponent":[32]},[[4,"pod-os:logout","logout"],[4,"pod-os:login","onLogin"]]],[1,"pos-navigation",{"uri":[1],"os":[32],"inputValue":[32],"searchIndex":[32],"suggestions":[32],"selectedIndex":[32],"resource":[32]},[[0,"pod-os:search:index-created","buildSearchIndex"],[0,"pod-os:search:index-updated","rebuildSearchIndex"],[0,"pod-os:navigate","openNavigationDialog"],[4,"click","closeDialog"],[0,"pod-os:link","clearSuggestions"],[0,"click","onClickSelf"],[0,"keydown","handleKeyDown"]],{"uri":[{"updateResource":0}],"os":[{"updateResource":0}]}],[1,"pos-user-menu",{"webId":[1,"web-id"]},[[0,"sl-select","onSelect"]]],[1,"pos-add-new-thing",{"referenceUri":[1,"reference-uri"]}],[1,"pos-type-router",{"initialTool":[32],"availableTools":[32],"oldTool":[32],"currentTool":[32],"transitioning":[32]},[[0,"pod-os:tool-selected","handleToolSelected"]]],[257,"pos-app",{"restorePreviousSession":[4,"restore-previous-session"],"os":[32],"unsubscribeSettings":[32],"loading":[32]},[[0,"pod-os:init","initializeOs"],[0,"pod-os:module","loadModule"]]],[257,"pos-error-toast",{"title":[32],"message":[32]},[[8,"unhandledrejection","unhandledRejection"],[0,"pod-os:error","catchError"]]],[260,"pos-router",{"mode":[1],"uri":[32]},[[0,"pod-os:link","linkClicked"],[8,"pod-os:session-restored","sessionRestored"]]],[1,"pos-app-dashboard"],[1,"pos-navigation-bar",{"current":[16],"searchIndexReady":[4,"search-index-ready"]},[[4,"keydown","activate"]]],[1,"pos-app-settings"],[17,"pos-new-thing-form",{"referenceUri":[1,"reference-uri"],"os":[32],"newUri":[32],"name":[32],"selectedTypeUri":[32],"canSubmit":[32]},null,{"name":[{"validate":0}],"selectedTypeUri":[{"validate":0}]}],[17,"pos-login-form",{"idpUrl":[32],"canSubmit":[32],"rememberMe":[32]},null,{"idpUrl":[{"validate":0}]}],[1,"pos-tool-select",{"selected":[16],"tools":[16]}],[1,"pos-type-index-entries",{"uri":[1],"entries":[32]}],[1,"pos-example-resources"],[1,"pos-make-findable",{"uri":[1],"os":[32],"thing":[32],"indexes":[32],"unsubscribeSessionChange":[32],"showOptions":[32],"isIndexed":[32]},[[0,"sl-select","onSelect"]],{"uri":[{"updateUri":0}]}],[260,"pos-dialog",{"showModal":[64],"close":[64]}],[1,"pos-getting-started"],[1,"pos-setting-offline-cache"],[1,"pos-share",{"uri":[1],"apps":[32],"os":[32]},[[4,"pod-os:resource-loaded","resourceLoaded"],[0,"sl-select","onSelect"]],{"uri":[{"updateApps":0}]}],[257,"pos-picture",{"blurredBackground":[4,"blurred-background"],"noUpload":[4,"no-upload"],"resource":[32],"os":[32],"isUploading":[32]}],[1,"pos-image",{"src":[1],"alt":[1],"blurredBackground":[4,"blurred-background"],"os":[32],"dataUri":[32],"brokenFile":[32],"networkError":[32],"imageError":[32],"loading":[32]},null,{"os":[{"fetchBlob":0}],"src":[{"fetchBlob":0}]}],[1,"pos-upload",{"accept":[16],"uploader":[16]}],[1,"pos-predicate",{"uri":[1],"label":[1],"expanded":[32]}],[17,"pos-select-term",{"placeholder":[1],"value":[1],"os":[32],"terms":[32]},null,{"os":[{"setTerms":0}]}],[257,"pos-rich-link",{"uri":[1],"rel":[1],"rev":[1],"link":[32],"followPredicate":[32],"error":[32],"showCustomContent":[32]}],[1,"pos-description",{"resource":[32]}],[1,"pos-label",{"resource":[32]}],[257,"pos-resource",{"uri":[1],"lazy":[4],"os":[32],"resource":[32],"consumers":[32],"error":[32],"loading":[32],"fetch":[64]},[[0,"pod-os:resource","provideResource"]],{"os":[{"loadResource":0}],"uri":[{"loadResource":0}]}]]],["pos-relations_2.cjs",[[1,"pos-relations",{"data":[32]}],[1,"pos-reverse-relations",{"data":[32]}]]],["pos-subjects.cjs",[[1,"pos-subjects",{"data":[32]}]]],["pos-add-relation.cjs",[[1,"pos-add-relation",{"os":[32],"resource":[32],"selectedTermUri":[32],"currentValue":[32]}]]],["pos-markdown-document.cjs",[[1,"pos-markdown-document",{"file":[16],"saveStatus":[1,"save-status"],"editable":[4],"markdown":[32],"isModified":[32],"isEditing":[32],"startEditing":[64],"stopEditing":[64]}]]],["pos-container-item_3.cjs",[[257,"pos-container-item",{"resource":[32]}],[1,"pos-container-toolbar"],[1,"pos-create-new-container-item",{"type":[1],"container":[16],"os":[32],"name":[32]}]]],["pos-add-literal-value_3.cjs",[[1,"pos-literals",{"data":[32]}],[1,"pos-type-badges",{"data":[32],"typeLabels":[32],"isExpanded":[32]}],[1,"pos-add-literal-value",{"os":[32],"resource":[32],"currentValue":[32],"selectedTermUri":[32]},null,{"os":[{"setName":0}]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
exports.setNonce = index.setNonce;
|
|
@@ -31,6 +31,7 @@ const initialSettings = storedSettings
|
|
|
31
31
|
? JSON.parse(storedSettings)
|
|
32
32
|
: {
|
|
33
33
|
offlineCache: false,
|
|
34
|
+
rememberedIdp: null,
|
|
34
35
|
};
|
|
35
36
|
const localSettings = chunk_XQ2OKYYA.createStore(initialSettings);
|
|
36
37
|
persistChanges();
|
|
@@ -46,6 +47,7 @@ function syncChangesAcrossTabs() {
|
|
|
46
47
|
if (event.key === 'settings' && event.newValue) {
|
|
47
48
|
const newSettings = JSON.parse(event.newValue);
|
|
48
49
|
localSettings.state.offlineCache = newSettings.offlineCache;
|
|
50
|
+
localSettings.state.rememberedIdp = newSettings.rememberedIdp;
|
|
49
51
|
}
|
|
50
52
|
});
|
|
51
53
|
}
|
|
@@ -3973,7 +3975,7 @@ const PosLabel = class {
|
|
|
3973
3975
|
}
|
|
3974
3976
|
};
|
|
3975
3977
|
|
|
3976
|
-
const posLoginCss = () => `.container{display:flex;align-items:center;gap:var(--size-2)}.user-data{align-items:center;display:inline-flex;gap:10px}.user-data pos-picture{--width:40px
|
|
3978
|
+
const posLoginCss = () => `.container { display: flex; align-items: center; gap: var(--size-2); > pos-resource { display: flex; } } .user-data { align-items: center; display: inline-flex; gap: 10px; } .user-data pos-picture { --width: 40px; --height: 40px; --border-radius: 50%; } pos-login-form { margin: var(--size-2); } dialog { margin-top: var(--size-10); } button#login, button#logout { outline: none; font-weight: var(--weight-bold); letter-spacing: var(--letter-xl); border: none; box-sizing: border-box; border-radius: var(--radius-xs); padding: var(--size-2); box-shadow: var(--shadow-sm); color: var(--pos-primary-text-color); background-color: var(--pos-primary-color); } button#login:focus-within, button#logout:focus-within { outline: var(--pos-input-focus-outline); } button#login:focus, button#login:hover, button#logout:focus, button#logout:hover { filter: brightness(110%); box-shadow: var(--shadow-md); } `;
|
|
3977
3979
|
|
|
3978
3980
|
const PosLogin = class {
|
|
3979
3981
|
constructor(hostRef) {
|
|
@@ -4017,7 +4019,7 @@ const PosLogin = class {
|
|
|
4017
4019
|
};
|
|
4018
4020
|
PosLogin.style = posLoginCss();
|
|
4019
4021
|
|
|
4020
|
-
const posLoginFormCss = () => `:host{display:block;margin:0}form{display:flex;flex-direction:column;gap:var(--size-4)}input{outline:var(--pos-input-outline);padding:var(--scale-000);border:none;border-radius:var(--radius-xs);width:var(--size-full);box-sizing:border-box;background:var(--pos-input-background-color);color:var(--pos-normal-text-color)}input:focus-within{outline:var(--pos-input-focus-outline)}input#login{outline:none;box-shadow:var(--shadow-sm);cursor:pointer;color:var(--pos-primary-text-color);background-color:var(--pos-primary-color)}input#login:disabled{cursor:default;color:var(--pos-disabled-text-color);background-color:var(--pos-disabled-color);box-shadow:none}input#login:hover:not(:disabled),input#login:focus{filter:brightness(110%);box-shadow:var(--shadow-md)}`;
|
|
4022
|
+
const posLoginFormCss = () => `:host{display:block;margin:0}form{display:flex;flex-direction:column;gap:var(--size-4)}input{outline:var(--pos-input-outline);padding:var(--scale-000);border:none;border-radius:var(--radius-xs);width:var(--size-full);box-sizing:border-box;background:var(--pos-input-background-color);color:var(--pos-normal-text-color)}input:focus-within{outline:var(--pos-input-focus-outline)}input#login{outline:none;box-shadow:var(--shadow-sm);cursor:pointer;color:var(--pos-primary-text-color);background-color:var(--pos-primary-color)}input#login:disabled{cursor:default;color:var(--pos-disabled-text-color);background-color:var(--pos-disabled-color);box-shadow:none}input#login:hover:not(:disabled),input#login:focus{filter:brightness(110%);box-shadow:var(--shadow-md)}label.remember-me{display:flex;align-items:center;gap:var(--size-2);cursor:pointer}label.remember-me input[type='checkbox']{margin:0;appearance:none;padding:var(--size-2);width:var(--size-2);height:var(--size-2);border-radius:var(--radius-xs);cursor:pointer;position:relative;flex-shrink:0}label.remember-me input[type='checkbox']:checked{background-color:var(--pos-primary-color);border-color:var(--pos-primary-color)}label.remember-me input[type='checkbox']:checked::after{content:'';position:absolute;inset:0;margin:auto;width:3px;height:6px;border:solid white;border-width:0 1.5px 1.5px 0;transform:translateY(-1px) rotate(45deg)}label.remember-me input[type='checkbox']:focus{outline:2px solid var(--pos-primary-color);outline-offset:2px}`;
|
|
4021
4023
|
|
|
4022
4024
|
const PosLoginForm = class {
|
|
4023
4025
|
constructor(hostRef) {
|
|
@@ -4025,18 +4027,27 @@ const PosLoginForm = class {
|
|
|
4025
4027
|
this.idpUrlSelected = index.createEvent(this, "pod-os:idp-url-selected", 7);
|
|
4026
4028
|
this.idpUrl = '';
|
|
4027
4029
|
this.canSubmit = false;
|
|
4030
|
+
this.rememberMe = false;
|
|
4031
|
+
}
|
|
4032
|
+
componentWillLoad() {
|
|
4033
|
+
const remembered = localSettings.state.rememberedIdp;
|
|
4034
|
+
if (remembered) {
|
|
4035
|
+
this.idpUrl = remembered;
|
|
4036
|
+
this.rememberMe = true;
|
|
4037
|
+
}
|
|
4028
4038
|
}
|
|
4029
4039
|
validate() {
|
|
4030
4040
|
this.canSubmit = Boolean(this.idpUrl);
|
|
4031
4041
|
}
|
|
4032
4042
|
render() {
|
|
4033
|
-
return (index.h("form", { key: '
|
|
4043
|
+
return (index.h("form", { key: 'a402f5254881c362889e82905685ddbcd67043d8', method: "dialog", onSubmit: () => this.handleSubmit() }, index.h("label", { key: 'c5370460c8c8bcb5ed36eeeeee505e65f7e9c223', htmlFor: "idpUrl" }, "Please enter your Identity Provider"), index.h("input", { key: '960c58b08c3d14cc84bc1220f2af76d039b406e4', id: "idpUrl", type: "url", value: this.idpUrl, required: true, onInput: e => this.handleChange(e), list: "suggestedIssuers", placeholder: "Type to search..." }), index.h("datalist", { key: '8d3edf275da4caf0fb1d711ae9ab0b4bd2637a57', id: "suggestedIssuers" }, index.h("option", { key: '4793ca17b5463b29cf53bf6530d80f0bbecf48da', value: "https://solidcommunity.net/" }, "solidcommunity.net"), index.h("option", { key: 'c6b930fd29cd8a8a1a8aa534d607ce2d008a44a9', value: "https://solidweb.me/" }, "solidweb.me"), index.h("option", { key: 'b3e418d76ac9b59ff7fad5e5df07c59ed5e8acb5', value: "https://login.inrupt.com" }, "Inrupt PodSpaces"), index.h("option", { key: 'ffe3602d4a7823bcc1c9c8a3b15a67ee48341e45', value: "https://trinpod.us" }, "trinpod.us"), index.h("option", { key: '896032d7f419cb26bfaf01a82c0698f166c0a47d', value: "https://trinpod.eu" }, "trinpod.eu"), index.h("option", { key: '7b08e9c47808ec1b6cd2ee268579662c3c867f07', value: "https://solid.redpencil.io/" }, "redpencil.io"), index.h("option", { key: 'bac6459ab354f4c821b6bf5043bb5e0783e72e88', value: "https://teamid.live/" }, "teamid.live")), index.h("label", { key: '64bf359c6f5e19ab9fde2b1cd17db678c638a556', class: "remember-me" }, index.h("input", { key: '299df2152d0d18d8238c533ecb62800568215926', id: "rememberMe", type: "checkbox", checked: this.rememberMe, onChange: e => (this.rememberMe = e.target.checked) }), "Remember me"), index.h("input", { key: '7a8f9a24a0a6210bb64335058c5529b0cb1454b0', id: "login", type: "submit", value: "Login", disabled: !this.canSubmit })));
|
|
4034
4044
|
}
|
|
4035
4045
|
handleChange(event) {
|
|
4036
4046
|
this.validate();
|
|
4037
4047
|
this.idpUrl = event.target.value;
|
|
4038
4048
|
}
|
|
4039
4049
|
async handleSubmit() {
|
|
4050
|
+
localSettings.state.rememberedIdp = this.rememberMe ? this.idpUrl : null;
|
|
4040
4051
|
this.idpUrlSelected.emit(this.idpUrl);
|
|
4041
4052
|
}
|
|
4042
4053
|
static get delegatesFocus() { return true; }
|
|
@@ -5567,7 +5578,7 @@ const PosNavigation = class {
|
|
|
5567
5578
|
}
|
|
5568
5579
|
}
|
|
5569
5580
|
render() {
|
|
5570
|
-
return (index.h("nav", { key: '
|
|
5581
|
+
return (index.h("nav", { key: '44f504f9a905c6e63353741cda554a6a35a46f82' }, index.h("search", { key: '98e7cae9729db2959d992f9e41a4cc99064b9eb0' }, index.h("pos-navigation-bar", { key: 'c0ce90fcc8334d0ea784ca3126a1524b036631ac', searchIndexReady: this.searchIndex !== undefined, current: this.resource }), index.h("dialog", { key: 'a9b1418ad48ae298fbd8eaa56e62eb613e8deef6', ref: el => (this.dialogRef = el) }, index.h("form", { key: 'a75933116bd844e0afc4e94eee713adb6d6bb4ea', method: "dialog", onSubmit: () => this.onSubmit() }, index.h("input", { key: 'c6de46f82392acf3752e51e64dc6e5526f8d6a04', ref: el => (this.inputRef = el), enterkeyhint: "search", "aria-label": "Search or enter URI", placeholder: "Search or enter URI", value: this.uri, onChange: e => this.onChange(e), onInput: e => this.onChange(e), role: "combobox", "aria-autocomplete": "list", "aria-expanded": this.suggestions.length > 0, "aria-controls": "suggestions-list", "aria-activedescendant": this.selectedIndex >= 0 ? `option-${this.selectedIndex}` : null }), this.suggestions.length > 0 ? (index.h("div", { class: "suggestions" }, index.h("ol", { id: "suggestions-list", role: "listbox", "aria-label": "Search results" }, this.suggestions.map((it, index$1) => (index.h("li", { id: `option-${index$1}`, role: "option", "aria-selected": index$1 === this.selectedIndex ? 'true' : 'false' }, index.h("pos-rich-link", { uri: it.ref }))))))) : null)))));
|
|
5571
5582
|
}
|
|
5572
5583
|
static get watchers() { return {
|
|
5573
5584
|
"uri": [{
|
|
@@ -5598,7 +5609,7 @@ const PosNavigationBar = class {
|
|
|
5598
5609
|
}
|
|
5599
5610
|
render() {
|
|
5600
5611
|
const ariaLabel = this.current ? `${this.current.label()} (Click to search or enter URI)` : 'Search or enter URI';
|
|
5601
|
-
return (index.h("section", { key: '
|
|
5612
|
+
return (index.h("section", { key: 'a66626042ab42e63094b7b27729f0c299d6e62a3', class: "current" }, this.current && this.searchIndexReady && index.h("pos-make-findable", { key: '4e2e2e3271c4ed78c34e32e0a815a87dd9d73b52', uri: this.current.uri }), index.h("button", { key: '5ff874354f32f9fef4b15337ce7230c43df0c0ca', "aria-label": ariaLabel, onClick: () => this.onClick() }, index.h("div", { key: 'd00d82f397fb9f3ede61484d6cc2ae74ef92fd06' }, this.current ? this.current.label() : 'Search or enter URI'), this.icon()), this.current && index.h("pos-share", { key: 'a86d78b83dedc4f7cc77170f96c973fe21ded57d', uri: this.current.uri })));
|
|
5602
5613
|
}
|
|
5603
5614
|
icon() {
|
|
5604
5615
|
return (index.h("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor" }, index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z" })));
|
|
@@ -5626,7 +5637,7 @@ const PosNewThingForm = class {
|
|
|
5626
5637
|
PodOsAware.subscribePodOs(this);
|
|
5627
5638
|
}
|
|
5628
5639
|
render() {
|
|
5629
|
-
return (index.h("form", { key: '
|
|
5640
|
+
return (index.h("form", { key: '4926181b537caafb59e07a22a1ad57b321d85db7', method: "dialog", onSubmit: e => this.handleSubmit(e) }, index.h("label", { key: 'a1a22fe893a3b963c93d8963345b266987fd2f4b', htmlFor: "type" }, "Type"), index.h("pos-select-term", { key: '549dd0e431534ba1320049ef47bdb2e2efd2d49e', id: "type", placeholder: "", value: this.selectedTypeUri, "onPod-os:term-selected": e => this.onTermSelected(e) }), index.h("label", { key: '5cf8edca5189307fdd2adc2c0035115b51a0b2fd', htmlFor: "name" }, "Name"), index.h("input", { key: 'ea4d4c78016cda1c546fd6aa3addfdedd453c1e2', id: "name", type: "text", value: this.name, onInput: e => this.handleChange(e) }), this.newUri ? (index.h("div", { id: "new-uri", title: "This will be the URI of the new thing" }, this.newUri)) : null, index.h("input", { key: '95da60988cc9ef920add0bd1d5531d234a92372e', id: "create", type: "submit", value: "Create", disabled: !this.canSubmit })));
|
|
5630
5641
|
}
|
|
5631
5642
|
handleChange(event) {
|
|
5632
5643
|
this.name = event.target.value;
|
|
@@ -6213,7 +6224,7 @@ const PosRouter = class {
|
|
|
6213
6224
|
this.routeChanged.emit(this.uri);
|
|
6214
6225
|
}
|
|
6215
6226
|
render() {
|
|
6216
|
-
return index.h("slot", { key: '
|
|
6227
|
+
return index.h("slot", { key: '7e0f0f4ff13b90a511272ca93fee4f954eebb5f4' });
|
|
6217
6228
|
}
|
|
6218
6229
|
};
|
|
6219
6230
|
PosRouter.style = posRouterCss();
|
|
@@ -6242,7 +6253,7 @@ const PosSelectTerm = class {
|
|
|
6242
6253
|
this.termSelected.emit({ uri: event.target.value });
|
|
6243
6254
|
}
|
|
6244
6255
|
render() {
|
|
6245
|
-
return (index.h(index.Host, { key: '
|
|
6256
|
+
return (index.h(index.Host, { key: '2a4b6f065c03e62274de7a5c73c95e9539baea21' }, index.h("input", { key: '724179b341841a39d37ebdb94c16c4c09b7673a9', part: "input", list: "terms", placeholder: this.placeholder, value: this.value, onChange: ev => this.handleChange(ev) }), index.h("datalist", { key: 'a8fb7b0ab70e4b4fcb92d6efab25341c37eeea3a', part: "terms", id: "terms" }, this.terms.map(term => (index.h("option", { value: term.uri }, term.shorthand))))));
|
|
6246
6257
|
}
|
|
6247
6258
|
static get delegatesFocus() { return true; }
|
|
6248
6259
|
static get watchers() { return {
|
|
@@ -6344,7 +6355,7 @@ const PosShare = class {
|
|
|
6344
6355
|
}
|
|
6345
6356
|
}
|
|
6346
6357
|
render() {
|
|
6347
|
-
return (index.h("sl-dropdown", { key: '
|
|
6358
|
+
return (index.h("sl-dropdown", { key: '9fe1f5774f811f40ca0a3c51b12df8122e4765d8' }, index.h("button", { key: 'bdb2c61d418749cb7cedf0ead54babf7ba1d3a93', slot: "trigger", "aria-label": "Share", part: "button" }, index.h("sl-icon", { key: 'd0a5ab504ea43edada1b378b8d7627cd4f812aae', name: "share" })), index.h("sl-menu", { key: '75d02eb169c84416c5625f3899987c8e6123d1e1' }, index.h("sl-menu-item", { key: 'b7b6219a57fb40b702f396203e80b419ac6159e1', value: "copy-uri" }, index.h("sl-icon", { key: 'de2921edf5269c22efd828f5eb31f122375061f1', slot: "prefix", name: "copy" }), "Copy URI"), this.apps.length > 0 && index.h(OpenWithApps, { key: 'b636c8e8ea6db6d104eaf4b4cb27078dc8dc0531', apps: this.apps }))));
|
|
6348
6359
|
}
|
|
6349
6360
|
get el() { return index.getElement(this); }
|
|
6350
6361
|
static get watchers() { return {
|
|
@@ -18789,7 +18800,7 @@ const PosUpload = class {
|
|
|
18789
18800
|
}
|
|
18790
18801
|
}
|
|
18791
18802
|
render() {
|
|
18792
|
-
return index.h("div", { key: '
|
|
18803
|
+
return index.h("div", { key: 'dc900ad6df4df3ab8fe3ce17b4e9a15ae7b70413', class: "container", ref: el => (this.uppy = el) });
|
|
18793
18804
|
}
|
|
18794
18805
|
};
|
|
18795
18806
|
PosUpload.style = posUploadCss();
|
|
@@ -26955,7 +26955,7 @@ const PosMarkdownDocument = class {
|
|
|
26955
26955
|
this.isEditing = false;
|
|
26956
26956
|
}
|
|
26957
26957
|
render() {
|
|
26958
|
-
return (index$1.h("article", { key: '
|
|
26958
|
+
return (index$1.h("article", { key: 'a0b82223a94417242bdbdf0eb999515799299dd5' }, this.editable ? (index$1.h("header", null, this.isEditing ? this.getStatus() : null, this.isEditing ? (index$1.h("button", { onClick: () => this.stopEditing() }, index$1.h("sl-icon", { name: "eye" }), "View")) : (index$1.h("button", { onClick: () => this.startEditing() }, index$1.h("sl-icon", { name: "pencil-square" }), "Edit")))) : null, index$1.h("div", { key: '161aa95c7dfeab23e938d0407b634f0d8a8589eb', class: "content", ref: el => (this.editorEl = el) })));
|
|
26959
26959
|
}
|
|
26960
26960
|
getStatus() {
|
|
26961
26961
|
if (this.isModified) {
|
|
@@ -36,7 +36,7 @@ const PosRelations = class {
|
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
const items = this.data.map(it => (index.h("div", { class: "predicate-values" }, index.h("dt", null, index.h("pos-predicate", { uri: it.predicate, label: it.label })), index.h("div", { class: "values" }, it.uris.map(uri => (index.h("dd", null, index.h("pos-rich-link", { uri: uri }))))))));
|
|
39
|
-
return (index.h(index.Host, { key: '
|
|
39
|
+
return (index.h(index.Host, { key: '90d62fb25fa7de819e041ddacf101cb962a425f7' }, this.data.length > 0 ? index.h("dl", null, items) : null, index.h("pos-add-relation", { key: 'ef4342b879e69aa2a23d3bd597434e606c31081a', "onPod-os:added-relation": ev => this.relationAdded(ev.detail) })));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
PosRelations.style = posRelationsCss();
|
|
@@ -20,7 +20,7 @@ const PosToolAttachments = class {
|
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
22
|
var _a;
|
|
23
|
-
return (index.h(index.Host, { key: '
|
|
23
|
+
return (index.h(index.Host, { key: 'd401de6fd1b51f630bbd5ce6db7ad9c77768d63e' }, index.h("section", { key: '5a59f3c915fabb231558c09b474eaf002e685bc5' }, index.h("article", { key: '650081c28531d7709b2daf1e70587798b5f92455' }, index.h("h2", { key: '1a571e2cbd20a0f57bb634426269a5bc1bd23095' }, "Attachments"), index.h("pos-attachments", { key: '76d57dbcbc7d4534ced8e3bd2f3dd49509039e50', ref: it => (this.attachmentsElement = it) }))), index.h("section", { key: '1a4d06abe179261b511e936fb44261b37540f286' }, ((_a = this.resource) === null || _a === void 0 ? void 0 : _a.editable) ? (index.h("pos-upload", { accept: ['*/*'], uploader: file => {
|
|
24
24
|
const result = this.os.attachments().uploadAndAddAttachment(this.resource, file);
|
|
25
25
|
result.map(it => {
|
|
26
26
|
this.attachmentsElement.addToList({
|
|
@@ -44,3 +44,44 @@ input#login:focus {
|
|
|
44
44
|
filter: brightness(110%);
|
|
45
45
|
box-shadow: var(--shadow-md);
|
|
46
46
|
}
|
|
47
|
+
|
|
48
|
+
label.remember-me {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
gap: var(--size-2);
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
label.remember-me input[type='checkbox'] {
|
|
56
|
+
margin: 0;
|
|
57
|
+
appearance: none;
|
|
58
|
+
padding: var(--size-2);
|
|
59
|
+
width: var(--size-2);
|
|
60
|
+
height: var(--size-2);
|
|
61
|
+
border-radius: var(--radius-xs);
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
position: relative;
|
|
64
|
+
flex-shrink: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
label.remember-me input[type='checkbox']:checked {
|
|
68
|
+
background-color: var(--pos-primary-color);
|
|
69
|
+
border-color: var(--pos-primary-color);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
label.remember-me input[type='checkbox']:checked::after {
|
|
73
|
+
content: '';
|
|
74
|
+
position: absolute;
|
|
75
|
+
inset: 0;
|
|
76
|
+
margin: auto;
|
|
77
|
+
width: 3px;
|
|
78
|
+
height: 6px;
|
|
79
|
+
border: solid white;
|
|
80
|
+
border-width: 0 1.5px 1.5px 0;
|
|
81
|
+
transform: translateY(-1px) rotate(45deg);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
label.remember-me input[type='checkbox']:focus {
|
|
85
|
+
outline: 2px solid var(--pos-primary-color);
|
|
86
|
+
outline-offset: 2px;
|
|
87
|
+
}
|
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { localSettings } from "../../store/settings";
|
|
2
3
|
export class PosLoginForm {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.idpUrl = '';
|
|
5
6
|
this.canSubmit = false;
|
|
7
|
+
this.rememberMe = false;
|
|
8
|
+
}
|
|
9
|
+
componentWillLoad() {
|
|
10
|
+
const remembered = localSettings.state.rememberedIdp;
|
|
11
|
+
if (remembered) {
|
|
12
|
+
this.idpUrl = remembered;
|
|
13
|
+
this.rememberMe = true;
|
|
14
|
+
}
|
|
6
15
|
}
|
|
7
16
|
validate() {
|
|
8
17
|
this.canSubmit = Boolean(this.idpUrl);
|
|
9
18
|
}
|
|
10
19
|
render() {
|
|
11
|
-
return (h("form", { key: '
|
|
20
|
+
return (h("form", { key: 'a402f5254881c362889e82905685ddbcd67043d8', method: "dialog", onSubmit: () => this.handleSubmit() }, h("label", { key: 'c5370460c8c8bcb5ed36eeeeee505e65f7e9c223', htmlFor: "idpUrl" }, "Please enter your Identity Provider"), h("input", { key: '960c58b08c3d14cc84bc1220f2af76d039b406e4', id: "idpUrl", type: "url", value: this.idpUrl, required: true, onInput: e => this.handleChange(e), list: "suggestedIssuers", placeholder: "Type to search..." }), h("datalist", { key: '8d3edf275da4caf0fb1d711ae9ab0b4bd2637a57', id: "suggestedIssuers" }, h("option", { key: '4793ca17b5463b29cf53bf6530d80f0bbecf48da', value: "https://solidcommunity.net/" }, "solidcommunity.net"), h("option", { key: 'c6b930fd29cd8a8a1a8aa534d607ce2d008a44a9', value: "https://solidweb.me/" }, "solidweb.me"), h("option", { key: 'b3e418d76ac9b59ff7fad5e5df07c59ed5e8acb5', value: "https://login.inrupt.com" }, "Inrupt PodSpaces"), h("option", { key: 'ffe3602d4a7823bcc1c9c8a3b15a67ee48341e45', value: "https://trinpod.us" }, "trinpod.us"), h("option", { key: '896032d7f419cb26bfaf01a82c0698f166c0a47d', value: "https://trinpod.eu" }, "trinpod.eu"), h("option", { key: '7b08e9c47808ec1b6cd2ee268579662c3c867f07', value: "https://solid.redpencil.io/" }, "redpencil.io"), h("option", { key: 'bac6459ab354f4c821b6bf5043bb5e0783e72e88', value: "https://teamid.live/" }, "teamid.live")), h("label", { key: '64bf359c6f5e19ab9fde2b1cd17db678c638a556', class: "remember-me" }, h("input", { key: '299df2152d0d18d8238c533ecb62800568215926', id: "rememberMe", type: "checkbox", checked: this.rememberMe, onChange: e => (this.rememberMe = e.target.checked) }), "Remember me"), h("input", { key: '7a8f9a24a0a6210bb64335058c5529b0cb1454b0', id: "login", type: "submit", value: "Login", disabled: !this.canSubmit })));
|
|
12
21
|
}
|
|
13
22
|
handleChange(event) {
|
|
14
23
|
this.validate();
|
|
15
24
|
this.idpUrl = event.target.value;
|
|
16
25
|
}
|
|
17
26
|
async handleSubmit() {
|
|
27
|
+
localSettings.state.rememberedIdp = this.rememberMe ? this.idpUrl : null;
|
|
18
28
|
this.idpUrlSelected.emit(this.idpUrl);
|
|
19
29
|
}
|
|
20
30
|
static get is() { return "pos-login-form"; }
|
|
@@ -33,7 +43,8 @@ export class PosLoginForm {
|
|
|
33
43
|
static get states() {
|
|
34
44
|
return {
|
|
35
45
|
"idpUrl": {},
|
|
36
|
-
"canSubmit": {}
|
|
46
|
+
"canSubmit": {},
|
|
47
|
+
"rememberMe": {}
|
|
37
48
|
};
|
|
38
49
|
}
|
|
39
50
|
static get events() {
|
|
@@ -54,7 +54,7 @@ export class PosMarkdownDocument {
|
|
|
54
54
|
this.isEditing = false;
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return (h("article", { key: '
|
|
57
|
+
return (h("article", { key: 'a0b82223a94417242bdbdf0eb999515799299dd5' }, this.editable ? (h("header", null, this.isEditing ? this.getStatus() : null, this.isEditing ? (h("button", { onClick: () => this.stopEditing() }, h("sl-icon", { name: "eye" }), "View")) : (h("button", { onClick: () => this.startEditing() }, h("sl-icon", { name: "pencil-square" }), "Edit")))) : null, h("div", { key: '161aa95c7dfeab23e938d0407b634f0d8a8589eb', class: "content", ref: el => (this.editorEl = el) })));
|
|
58
58
|
}
|
|
59
59
|
getStatus() {
|
|
60
60
|
if (this.isModified) {
|
|
@@ -11,7 +11,7 @@ export class PosNavigationBar {
|
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
13
|
const ariaLabel = this.current ? `${this.current.label()} (Click to search or enter URI)` : 'Search or enter URI';
|
|
14
|
-
return (h("section", { key: '
|
|
14
|
+
return (h("section", { key: 'a66626042ab42e63094b7b27729f0c299d6e62a3', class: "current" }, this.current && this.searchIndexReady && h("pos-make-findable", { key: '4e2e2e3271c4ed78c34e32e0a815a87dd9d73b52', uri: this.current.uri }), h("button", { key: '5ff874354f32f9fef4b15337ce7230c43df0c0ca', "aria-label": ariaLabel, onClick: () => this.onClick() }, h("div", { key: 'd00d82f397fb9f3ede61484d6cc2ae74ef92fd06' }, this.current ? this.current.label() : 'Search or enter URI'), this.icon()), this.current && h("pos-share", { key: 'a86d78b83dedc4f7cc77170f96c973fe21ded57d', uri: this.current.uri })));
|
|
15
15
|
}
|
|
16
16
|
icon() {
|
|
17
17
|
return (h("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor" }, h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z" })));
|
|
@@ -113,7 +113,7 @@ export class PosNavigation {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
render() {
|
|
116
|
-
return (h("nav", { key: '
|
|
116
|
+
return (h("nav", { key: '44f504f9a905c6e63353741cda554a6a35a46f82' }, h("search", { key: '98e7cae9729db2959d992f9e41a4cc99064b9eb0' }, h("pos-navigation-bar", { key: 'c0ce90fcc8334d0ea784ca3126a1524b036631ac', searchIndexReady: this.searchIndex !== undefined, current: this.resource }), h("dialog", { key: 'a9b1418ad48ae298fbd8eaa56e62eb613e8deef6', ref: el => (this.dialogRef = el) }, h("form", { key: 'a75933116bd844e0afc4e94eee713adb6d6bb4ea', method: "dialog", onSubmit: () => this.onSubmit() }, h("input", { key: 'c6de46f82392acf3752e51e64dc6e5526f8d6a04', ref: el => (this.inputRef = el), enterkeyhint: "search", "aria-label": "Search or enter URI", placeholder: "Search or enter URI", value: this.uri, onChange: e => this.onChange(e), onInput: e => this.onChange(e), role: "combobox", "aria-autocomplete": "list", "aria-expanded": this.suggestions.length > 0, "aria-controls": "suggestions-list", "aria-activedescendant": this.selectedIndex >= 0 ? `option-${this.selectedIndex}` : null }), this.suggestions.length > 0 ? (h("div", { class: "suggestions" }, h("ol", { id: "suggestions-list", role: "listbox", "aria-label": "Search results" }, this.suggestions.map((it, index) => (h("li", { id: `option-${index}`, role: "option", "aria-selected": index === this.selectedIndex ? 'true' : 'false' }, h("pos-rich-link", { uri: it.ref }))))))) : null)))));
|
|
117
117
|
}
|
|
118
118
|
static get is() { return "pos-navigation"; }
|
|
119
119
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,7 +14,7 @@ export class PosNewThingForm {
|
|
|
14
14
|
subscribePodOs(this);
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h("form", { key: '
|
|
17
|
+
return (h("form", { key: '4926181b537caafb59e07a22a1ad57b321d85db7', method: "dialog", onSubmit: e => this.handleSubmit(e) }, h("label", { key: 'a1a22fe893a3b963c93d8963345b266987fd2f4b', htmlFor: "type" }, "Type"), h("pos-select-term", { key: '549dd0e431534ba1320049ef47bdb2e2efd2d49e', id: "type", placeholder: "", value: this.selectedTypeUri, "onPod-os:term-selected": e => this.onTermSelected(e) }), h("label", { key: '5cf8edca5189307fdd2adc2c0035115b51a0b2fd', htmlFor: "name" }, "Name"), h("input", { key: 'ea4d4c78016cda1c546fd6aa3addfdedd453c1e2', id: "name", type: "text", value: this.name, onInput: e => this.handleChange(e) }), this.newUri ? (h("div", { id: "new-uri", title: "This will be the URI of the new thing" }, this.newUri)) : null, h("input", { key: '95da60988cc9ef920add0bd1d5531d234a92372e', id: "create", type: "submit", value: "Create", disabled: !this.canSubmit })));
|
|
18
18
|
}
|
|
19
19
|
handleChange(event) {
|
|
20
20
|
this.name = event.target.value;
|
|
@@ -29,7 +29,7 @@ export class PosRelations {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
const items = this.data.map(it => (h("div", { class: "predicate-values" }, h("dt", null, h("pos-predicate", { uri: it.predicate, label: it.label })), h("div", { class: "values" }, it.uris.map(uri => (h("dd", null, h("pos-rich-link", { uri: uri }))))))));
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '90d62fb25fa7de819e041ddacf101cb962a425f7' }, this.data.length > 0 ? h("dl", null, items) : null, h("pos-add-relation", { key: 'ef4342b879e69aa2a23d3bd597434e606c31081a', "onPod-os:added-relation": ev => this.relationAdded(ev.detail) })));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "pos-relations"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -38,7 +38,7 @@ export class PosRouter {
|
|
|
38
38
|
this.routeChanged.emit(this.uri);
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return h("slot", { key: '
|
|
41
|
+
return h("slot", { key: '7e0f0f4ff13b90a511272ca93fee4f954eebb5f4' });
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "pos-router"; }
|
|
44
44
|
static get originalStyleUrls() {
|
|
@@ -19,7 +19,7 @@ export class PosSelectTerm {
|
|
|
19
19
|
this.termSelected.emit({ uri: event.target.value });
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '2a4b6f065c03e62274de7a5c73c95e9539baea21' }, h("input", { key: '724179b341841a39d37ebdb94c16c4c09b7673a9', part: "input", list: "terms", placeholder: this.placeholder, value: this.value, onChange: ev => this.handleChange(ev) }), h("datalist", { key: 'a8fb7b0ab70e4b4fcb92d6efab25341c37eeea3a', part: "terms", id: "terms" }, this.terms.map(term => (h("option", { value: term.uri }, term.shorthand))))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "pos-select-term"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -36,7 +36,7 @@ export class PosShare {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (h("sl-dropdown", { key: '
|
|
39
|
+
return (h("sl-dropdown", { key: '9fe1f5774f811f40ca0a3c51b12df8122e4765d8' }, h("button", { key: 'bdb2c61d418749cb7cedf0ead54babf7ba1d3a93', slot: "trigger", "aria-label": "Share", part: "button" }, h("sl-icon", { key: 'd0a5ab504ea43edada1b378b8d7627cd4f812aae', name: "share" })), h("sl-menu", { key: '75d02eb169c84416c5625f3899987c8e6123d1e1' }, h("sl-menu-item", { key: 'b7b6219a57fb40b702f396203e80b419ac6159e1', value: "copy-uri" }, h("sl-icon", { key: 'de2921edf5269c22efd828f5eb31f122375061f1', slot: "prefix", name: "copy" }), "Copy URI"), this.apps.length > 0 && h(OpenWithApps, { key: 'b636c8e8ea6db6d104eaf4b4cb27078dc8dc0531', apps: this.apps }))));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "pos-share"; }
|
|
42
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -49,7 +49,7 @@ export class PosUpload {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return h("div", { key: '
|
|
52
|
+
return h("div", { key: 'dc900ad6df4df3ab8fe3ce17b4e9a15ae7b70413', class: "container", ref: el => (this.uppy = el) });
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "pos-upload"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,6 +4,7 @@ const initialSettings = storedSettings
|
|
|
4
4
|
? JSON.parse(storedSettings)
|
|
5
5
|
: {
|
|
6
6
|
offlineCache: false,
|
|
7
|
+
rememberedIdp: null,
|
|
7
8
|
};
|
|
8
9
|
export const localSettings = createStore(initialSettings);
|
|
9
10
|
persistChanges();
|
|
@@ -19,6 +20,7 @@ function syncChangesAcrossTabs() {
|
|
|
19
20
|
if (event.key === 'settings' && event.newValue) {
|
|
20
21
|
const newSettings = JSON.parse(event.newValue);
|
|
21
22
|
localSettings.state.offlineCache = newSettings.offlineCache;
|
|
23
|
+
localSettings.state.rememberedIdp = newSettings.rememberedIdp;
|
|
22
24
|
}
|
|
23
25
|
});
|
|
24
26
|
}
|
|
@@ -11,7 +11,7 @@ export class PosToolAttachments {
|
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
13
|
var _a;
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: 'd401de6fd1b51f630bbd5ce6db7ad9c77768d63e' }, h("section", { key: '5a59f3c915fabb231558c09b474eaf002e685bc5' }, h("article", { key: '650081c28531d7709b2daf1e70587798b5f92455' }, h("h2", { key: '1a571e2cbd20a0f57bb634426269a5bc1bd23095' }, "Attachments"), h("pos-attachments", { key: '76d57dbcbc7d4534ced8e3bd2f3dd49509039e50', ref: it => (this.attachmentsElement = it) }))), h("section", { key: '1a4d06abe179261b511e936fb44261b37540f286' }, ((_a = this.resource) === null || _a === void 0 ? void 0 : _a.editable) ? (h("pos-upload", { accept: ['*/*'], uploader: file => {
|
|
15
15
|
const result = this.os.attachments().uploadAndAddAttachment(this.resource, file);
|
|
16
16
|
result.map(it => {
|
|
17
17
|
this.attachmentsElement.addToList({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as e,HTMLElement as o,createEvent as t,h as i,transformTag as
|
|
1
|
+
import{proxyCustomElement as e,HTMLElement as o,createEvent as t,h as i,transformTag as r}from"@stencil/core/internal/client";import{l as a}from"./settings.js";const s=e(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.idpUrlSelected=t(this,"pod-os:idp-url-selected",7),this.idpUrl="",this.canSubmit=!1,this.rememberMe=!1}componentWillLoad(){const e=a.state.rememberedIdp;e&&(this.idpUrl=e,this.rememberMe=!0)}validate(){this.canSubmit=Boolean(this.idpUrl)}render(){return i("form",{key:"a402f5254881c362889e82905685ddbcd67043d8",method:"dialog",onSubmit:()=>this.handleSubmit()},i("label",{key:"c5370460c8c8bcb5ed36eeeeee505e65f7e9c223",htmlFor:"idpUrl"},"Please enter your Identity Provider"),i("input",{key:"960c58b08c3d14cc84bc1220f2af76d039b406e4",id:"idpUrl",type:"url",value:this.idpUrl,required:!0,onInput:e=>this.handleChange(e),list:"suggestedIssuers",placeholder:"Type to search..."}),i("datalist",{key:"8d3edf275da4caf0fb1d711ae9ab0b4bd2637a57",id:"suggestedIssuers"},i("option",{key:"4793ca17b5463b29cf53bf6530d80f0bbecf48da",value:"https://solidcommunity.net/"},"solidcommunity.net"),i("option",{key:"c6b930fd29cd8a8a1a8aa534d607ce2d008a44a9",value:"https://solidweb.me/"},"solidweb.me"),i("option",{key:"b3e418d76ac9b59ff7fad5e5df07c59ed5e8acb5",value:"https://login.inrupt.com"},"Inrupt PodSpaces"),i("option",{key:"ffe3602d4a7823bcc1c9c8a3b15a67ee48341e45",value:"https://trinpod.us"},"trinpod.us"),i("option",{key:"896032d7f419cb26bfaf01a82c0698f166c0a47d",value:"https://trinpod.eu"},"trinpod.eu"),i("option",{key:"7b08e9c47808ec1b6cd2ee268579662c3c867f07",value:"https://solid.redpencil.io/"},"redpencil.io"),i("option",{key:"bac6459ab354f4c821b6bf5043bb5e0783e72e88",value:"https://teamid.live/"},"teamid.live")),i("label",{key:"64bf359c6f5e19ab9fde2b1cd17db678c638a556",class:"remember-me"},i("input",{key:"299df2152d0d18d8238c533ecb62800568215926",id:"rememberMe",type:"checkbox",checked:this.rememberMe,onChange:e=>this.rememberMe=e.target.checked}),"Remember me"),i("input",{key:"7a8f9a24a0a6210bb64335058c5529b0cb1454b0",id:"login",type:"submit",value:"Login",disabled:!this.canSubmit}))}handleChange(e){this.validate(),this.idpUrl=e.target.value}async handleSubmit(){a.state.rememberedIdp=this.rememberMe?this.idpUrl:null,this.idpUrlSelected.emit(this.idpUrl)}static get delegatesFocus(){return!0}static get watchers(){return{idpUrl:[{validate:0}]}}static get style(){return":host{display:block;margin:0}form{display:flex;flex-direction:column;gap:var(--size-4)}input{outline:var(--pos-input-outline);padding:var(--scale-000);border:none;border-radius:var(--radius-xs);width:var(--size-full);box-sizing:border-box;background:var(--pos-input-background-color);color:var(--pos-normal-text-color)}input:focus-within{outline:var(--pos-input-focus-outline)}input#login{outline:none;box-shadow:var(--shadow-sm);cursor:pointer;color:var(--pos-primary-text-color);background-color:var(--pos-primary-color)}input#login:disabled{cursor:default;color:var(--pos-disabled-text-color);background-color:var(--pos-disabled-color);box-shadow:none}input#login:hover:not(:disabled),input#login:focus{filter:brightness(110%);box-shadow:var(--shadow-md)}label.remember-me{display:flex;align-items:center;gap:var(--size-2);cursor:pointer}label.remember-me input[type='checkbox']{margin:0;appearance:none;padding:var(--size-2);width:var(--size-2);height:var(--size-2);border-radius:var(--radius-xs);cursor:pointer;position:relative;flex-shrink:0}label.remember-me input[type='checkbox']:checked{background-color:var(--pos-primary-color);border-color:var(--pos-primary-color)}label.remember-me input[type='checkbox']:checked::after{content:'';position:absolute;inset:0;margin:auto;width:3px;height:6px;border:solid white;border-width:0 1.5px 1.5px 0;transform:translateY(-1px) rotate(45deg)}label.remember-me input[type='checkbox']:focus{outline:2px solid var(--pos-primary-color);outline-offset:2px}"}},[17,"pos-login-form",{idpUrl:[32],canSubmit:[32],rememberMe:[32]},void 0,{idpUrl:[{validate:0}]}]);function d(){"undefined"!=typeof customElements&&["pos-login-form"].forEach((e=>{"pos-login-form"===e&&(customElements.get(r(e))||customElements.define(r(e),s))}))}export{s as P,d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as o,HTMLElement as s,createEvent as t,h as e,Host as i,transformTag as n}from"@stencil/core/internal/client";import{s as r}from"./session.js";import{d as a}from"./pos-dialog2.js";import{d as l}from"./pos-image2.js";import{d as
|
|
1
|
+
import{proxyCustomElement as o,HTMLElement as s,createEvent as t,h as e,Host as i,transformTag as n}from"@stencil/core/internal/client";import{s as r}from"./session.js";import{d as a}from"./pos-dialog2.js";import{d as l}from"./pos-image2.js";import{d as p}from"./pos-label2.js";import{d as c}from"./pos-login-form2.js";import{d as u}from"./pos-picture2.js";import{d}from"./pos-resource2.js";import{d as g}from"./pos-upload2.js";const m=o(class extends s{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.initializeOsEmitter=t(this,"pod-os:init",7),this.customLoggedInComponent=!1,this.setOs=async o=>{this.os=o}}componentWillLoad(){this.customLoggedInComponent=!!this.host.querySelector('[slot="if-logged-in"]'),this.initializeOsEmitter.emit(this.setOs)}login(o){this.os.login(o.detail)}logout(){this.os.logout()}onLogin(){this.openDialog()}openDialog(){this.dialog.showModal()}render(){return e(i,{key:"9c0cb63442db7acea4e60b09528bf4fc25afe2de"},e("div",{key:"ca56c2b730f371da27c1ac0a465a45d87071722f",class:"container"},r.state.isLoggedIn?this.loggedInComponents():e("button",{id:"login",onClick:()=>this.openDialog()},"Login")),e("pos-dialog",{key:"97b7d80acd6b57980641f189e3c2a67e8e45df44",ref:o=>this.dialog=o},e("span",{key:"3296c22755474e139546491890a5cc35c7a07be9",slot:"title"},"Sign in to your Pod"),e("pos-login-form",{key:"cb68b44a0a7541c116d3711c3ce8d0141515e815","onPod-os:idp-url-selected":o=>this.login(o),slot:"content"})))}loggedInComponents(){return this.customLoggedInComponent?e("slot",{name:"if-logged-in"}):this.defaultLoggedInComponents()}defaultLoggedInComponents(){return[e("pos-resource",{uri:r.state.webId},e("span",{class:"user-data"},e("pos-picture",{"no-upload":!0}),e("pos-label",null))),e("button",{id:"logout",onClick:()=>this.logout()},"Logout")]}get host(){return this}static get style(){return".container { display: flex; align-items: center; gap: var(--size-2); > pos-resource { display: flex; } } .user-data { align-items: center; display: inline-flex; gap: 10px; } .user-data pos-picture { --width: 40px; --height: 40px; --border-radius: 50%; } pos-login-form { margin: var(--size-2); } dialog { margin-top: var(--size-10); } button#login, button#logout { outline: none; font-weight: var(--weight-bold); letter-spacing: var(--letter-xl); border: none; box-sizing: border-box; border-radius: var(--radius-xs); padding: var(--size-2); box-shadow: var(--shadow-sm); color: var(--pos-primary-text-color); background-color: var(--pos-primary-color); } button#login:focus-within, button#logout:focus-within { outline: var(--pos-input-focus-outline); } button#login:focus, button#login:hover, button#logout:focus, button#logout:hover { filter: brightness(110%); box-shadow: var(--shadow-md); } "}},[257,"pos-login",{os:[32],customLoggedInComponent:[32]},[[4,"pod-os:logout","logout"],[4,"pod-os:login","onLogin"]]]);function b(){"undefined"!=typeof customElements&&["pos-login","pos-dialog","pos-image","pos-label","pos-login-form","pos-picture","pos-resource","pos-upload"].forEach((o=>{switch(o){case"pos-login":customElements.get(n(o))||customElements.define(n(o),m);break;case"pos-dialog":customElements.get(n(o))||a();break;case"pos-image":customElements.get(n(o))||l();break;case"pos-label":customElements.get(n(o))||p();break;case"pos-login-form":customElements.get(n(o))||c();break;case"pos-picture":customElements.get(n(o))||u();break;case"pos-resource":customElements.get(n(o))||d();break;case"pos-upload":customElements.get(n(o))||g()}}))}export{m as P,b as d}
|