@pod-os/elements 0.40.0-rc.6095c7b.0 → 0.40.0-rc.9e1a385.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 +9 -20
- 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-form/pos-login-form.css +0 -12
- package/dist/collection/components/pos-login-form/pos-login-form.js +2 -13
- 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 +0 -2
- 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-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-ae580ab4.entry.js → p-5f98bf3b.entry.js} +5 -5
- package/dist/elements/{p-c4034954.entry.js → p-780eb6aa.entry.js} +1 -1
- package/dist/elements/{p-d6e9d178.entry.js → p-80c897c2.entry.js} +1 -1
- package/dist/elements/{p-0febf76e.entry.js → p-ceeba057.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 +9 -20
- 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 +0 -2
- package/dist/types/store/settings.d.ts +0 -1
- 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]
|
|
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);
|
|
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]
|
|
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);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
exports.setNonce = index.setNonce;
|
|
@@ -31,7 +31,6 @@ const initialSettings = storedSettings
|
|
|
31
31
|
? JSON.parse(storedSettings)
|
|
32
32
|
: {
|
|
33
33
|
offlineCache: false,
|
|
34
|
-
rememberedIdp: null,
|
|
35
34
|
};
|
|
36
35
|
const localSettings = chunk_XQ2OKYYA.createStore(initialSettings);
|
|
37
36
|
persistChanges();
|
|
@@ -47,7 +46,6 @@ function syncChangesAcrossTabs() {
|
|
|
47
46
|
if (event.key === 'settings' && event.newValue) {
|
|
48
47
|
const newSettings = JSON.parse(event.newValue);
|
|
49
48
|
localSettings.state.offlineCache = newSettings.offlineCache;
|
|
50
|
-
localSettings.state.rememberedIdp = newSettings.rememberedIdp;
|
|
51
49
|
}
|
|
52
50
|
});
|
|
53
51
|
}
|
|
@@ -4019,7 +4017,7 @@ const PosLogin = class {
|
|
|
4019
4017
|
};
|
|
4020
4018
|
PosLogin.style = posLoginCss();
|
|
4021
4019
|
|
|
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)}
|
|
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)}`;
|
|
4023
4021
|
|
|
4024
4022
|
const PosLoginForm = class {
|
|
4025
4023
|
constructor(hostRef) {
|
|
@@ -4027,27 +4025,18 @@ const PosLoginForm = class {
|
|
|
4027
4025
|
this.idpUrlSelected = index.createEvent(this, "pod-os:idp-url-selected", 7);
|
|
4028
4026
|
this.idpUrl = '';
|
|
4029
4027
|
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
|
-
}
|
|
4038
4028
|
}
|
|
4039
4029
|
validate() {
|
|
4040
4030
|
this.canSubmit = Boolean(this.idpUrl);
|
|
4041
4031
|
}
|
|
4042
4032
|
render() {
|
|
4043
|
-
return (index.h("form", { key: '
|
|
4033
|
+
return (index.h("form", { key: '15b515887ebceff9ed2adb03f05e4725d5b1d4da', method: "dialog", onSubmit: () => this.handleSubmit() }, index.h("label", { key: '2278fd2cd0629dfc8d0bc3dc1c10223383131e15', htmlFor: "idpUrl" }, "Please enter your Identity Provider"), index.h("input", { key: '2e63bb5aa1d16393abd46d042fd78a8e70dbc476', id: "idpUrl", type: "url", value: this.idpUrl, required: true, onInput: e => this.handleChange(e), list: "suggestedIssuers", placeholder: "Type to search..." }), index.h("datalist", { key: '16de93f77ee4f756c76fd5e58d84cf8a96b7fafb', id: "suggestedIssuers" }, index.h("option", { key: 'c6612878e0dc7be06ba9c88266ba746cc41bbcbd', value: "https://solidcommunity.net/" }, "solidcommunity.net"), index.h("option", { key: 'c93e6a9e2cad61c5247a048a4261079daca2655d', value: "https://solidweb.me/" }, "solidweb.me"), index.h("option", { key: 'd051f96a34bafa0d8c55e0ea1b9bfc7a5eb4f59a', value: "https://login.inrupt.com" }, "Inrupt PodSpaces"), index.h("option", { key: 'c793826a68676e176714898363ad06daa023a2f3', value: "https://trinpod.us" }, "trinpod.us"), index.h("option", { key: '8ed729faba2a6c7b9fbc53d96511ec4ebc0db340', value: "https://trinpod.eu" }, "trinpod.eu"), index.h("option", { key: 'e683f8901b359e8bf82cb3e6d196817ac1150134', value: "https://solid.redpencil.io/" }, "redpencil.io"), index.h("option", { key: 'ddbad19605db043fc6f19ca5d4fc7bfd1d96b743', value: "https://teamid.live/" }, "teamid.live")), index.h("input", { key: 'ac9ebfdcfe6e1053fde4f890abd3e1183621060c', id: "login", type: "submit", value: "Login", disabled: !this.canSubmit })));
|
|
4044
4034
|
}
|
|
4045
4035
|
handleChange(event) {
|
|
4046
4036
|
this.validate();
|
|
4047
4037
|
this.idpUrl = event.target.value;
|
|
4048
4038
|
}
|
|
4049
4039
|
async handleSubmit() {
|
|
4050
|
-
localSettings.state.rememberedIdp = this.rememberMe ? this.idpUrl : null;
|
|
4051
4040
|
this.idpUrlSelected.emit(this.idpUrl);
|
|
4052
4041
|
}
|
|
4053
4042
|
static get delegatesFocus() { return true; }
|
|
@@ -5578,7 +5567,7 @@ const PosNavigation = class {
|
|
|
5578
5567
|
}
|
|
5579
5568
|
}
|
|
5580
5569
|
render() {
|
|
5581
|
-
return (index.h("nav", { key: '
|
|
5570
|
+
return (index.h("nav", { key: 'd5ad4841674cf172e9401a63fc50e58900ca5b1f' }, index.h("search", { key: '8daf86774c49234d10637160fd983681ac483b44' }, index.h("pos-navigation-bar", { key: '200137643dbc0aa1f120c231dc70a0d3f71b596a', searchIndexReady: this.searchIndex !== undefined, current: this.resource }), index.h("dialog", { key: 'f2fb1d3e4a38d17efb6bd80ca791e8a30fafab66', ref: el => (this.dialogRef = el) }, index.h("form", { key: 'e54698d8fb968a5ee6007cc4d5644fec36bf74f3', method: "dialog", onSubmit: () => this.onSubmit() }, index.h("input", { key: '633a4030c6296b5c94e2661bd73168afc1e04438', 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)))));
|
|
5582
5571
|
}
|
|
5583
5572
|
static get watchers() { return {
|
|
5584
5573
|
"uri": [{
|
|
@@ -5609,7 +5598,7 @@ const PosNavigationBar = class {
|
|
|
5609
5598
|
}
|
|
5610
5599
|
render() {
|
|
5611
5600
|
const ariaLabel = this.current ? `${this.current.label()} (Click to search or enter URI)` : 'Search or enter URI';
|
|
5612
|
-
return (index.h("section", { key: '
|
|
5601
|
+
return (index.h("section", { key: '5f49aa9dad9d07550ee8ffbee90036cbc1efda55', class: "current" }, this.current && this.searchIndexReady && index.h("pos-make-findable", { key: '85974a4772aaf8cad3a11cdcd49e6df10141bfe3', uri: this.current.uri }), index.h("button", { key: '40660a3455b0f3392c68d7aea0075b102a1762a2', "aria-label": ariaLabel, onClick: () => this.onClick() }, index.h("div", { key: '9ab8922175d701f714f72aefb95745cf5ae4bb95' }, this.current ? this.current.label() : 'Search or enter URI'), this.icon()), this.current && index.h("pos-share", { key: '3b80c1987f9f5138b11b8a106171fc73a236f426', uri: this.current.uri })));
|
|
5613
5602
|
}
|
|
5614
5603
|
icon() {
|
|
5615
5604
|
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" })));
|
|
@@ -5637,7 +5626,7 @@ const PosNewThingForm = class {
|
|
|
5637
5626
|
PodOsAware.subscribePodOs(this);
|
|
5638
5627
|
}
|
|
5639
5628
|
render() {
|
|
5640
|
-
return (index.h("form", { key: '
|
|
5629
|
+
return (index.h("form", { key: '64781cfb0e570d2368325d674c6637c581bb87c2', method: "dialog", onSubmit: e => this.handleSubmit(e) }, index.h("label", { key: '409e04f147430042eb334024fc7061574ab543cf', htmlFor: "type" }, "Type"), index.h("pos-select-term", { key: '8d5d580ee1f1e2e2c60cac0cc06798e94a0d28c3', id: "type", placeholder: "", value: this.selectedTypeUri, "onPod-os:term-selected": e => this.onTermSelected(e) }), index.h("label", { key: 'a45199618751e24b7d4a1bc13ad85c599cc93d1c', htmlFor: "name" }, "Name"), index.h("input", { key: 'bee3be7a680abbffc08caa5c549b68b1e653872d', 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: 'e8fab4d442188f7f2f325ff7bde3dce6d3f772f6', id: "create", type: "submit", value: "Create", disabled: !this.canSubmit })));
|
|
5641
5630
|
}
|
|
5642
5631
|
handleChange(event) {
|
|
5643
5632
|
this.name = event.target.value;
|
|
@@ -6224,7 +6213,7 @@ const PosRouter = class {
|
|
|
6224
6213
|
this.routeChanged.emit(this.uri);
|
|
6225
6214
|
}
|
|
6226
6215
|
render() {
|
|
6227
|
-
return index.h("slot", { key: '
|
|
6216
|
+
return index.h("slot", { key: 'c092d822705ddca00018c6850358412be5f0aef0' });
|
|
6228
6217
|
}
|
|
6229
6218
|
};
|
|
6230
6219
|
PosRouter.style = posRouterCss();
|
|
@@ -6253,7 +6242,7 @@ const PosSelectTerm = class {
|
|
|
6253
6242
|
this.termSelected.emit({ uri: event.target.value });
|
|
6254
6243
|
}
|
|
6255
6244
|
render() {
|
|
6256
|
-
return (index.h(index.Host, { key: '
|
|
6245
|
+
return (index.h(index.Host, { key: '6a2e97c7b3c21cbcb7e64af30f133b7f721a589f' }, index.h("input", { key: '57bdfec32da3713362fcaf49f25b98184fed03f8', part: "input", list: "terms", placeholder: this.placeholder, value: this.value, onChange: ev => this.handleChange(ev) }), index.h("datalist", { key: '8d92be9bbb91323a8fef79c542f92de72e9d1829', part: "terms", id: "terms" }, this.terms.map(term => (index.h("option", { value: term.uri }, term.shorthand))))));
|
|
6257
6246
|
}
|
|
6258
6247
|
static get delegatesFocus() { return true; }
|
|
6259
6248
|
static get watchers() { return {
|
|
@@ -6355,7 +6344,7 @@ const PosShare = class {
|
|
|
6355
6344
|
}
|
|
6356
6345
|
}
|
|
6357
6346
|
render() {
|
|
6358
|
-
return (index.h("sl-dropdown", { key: '
|
|
6347
|
+
return (index.h("sl-dropdown", { key: '6f05a2eb1b492c9424fa28b76826b59192d93ac3' }, index.h("button", { key: 'c0f7530ece1ad1f6cfe85e7291dbc50aa6cbdec7', slot: "trigger", "aria-label": "Share", part: "button" }, index.h("sl-icon", { key: '9e4c5299dea09378599c97166b10e32ca2db9181', name: "share" })), index.h("sl-menu", { key: 'cbceb11123c96e008df27021fc4a00050d807fe5' }, index.h("sl-menu-item", { key: '3cf3473830aa4d7bc272057febd8fa1c11821c91', value: "copy-uri" }, index.h("sl-icon", { key: 'e1256e2dc3466630484ba23321c79bb3fdc8e81d', slot: "prefix", name: "copy" }), "Copy URI"), this.apps.length > 0 && index.h(OpenWithApps, { key: '5093596308586326c8201f52e609d6037aae9716', apps: this.apps }))));
|
|
6359
6348
|
}
|
|
6360
6349
|
get el() { return index.getElement(this); }
|
|
6361
6350
|
static get watchers() { return {
|
|
@@ -18800,7 +18789,7 @@ const PosUpload = class {
|
|
|
18800
18789
|
}
|
|
18801
18790
|
}
|
|
18802
18791
|
render() {
|
|
18803
|
-
return index.h("div", { key: '
|
|
18792
|
+
return index.h("div", { key: '7f1e6cd1c4f7503012242d3872b967be4adcbbc3', class: "container", ref: el => (this.uppy = el) });
|
|
18804
18793
|
}
|
|
18805
18794
|
};
|
|
18806
18795
|
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: '5ea4a46927219fe07df4cb79d9a43bc8fae9d1cd' }, 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: 'fb013b33f02fd5c756238fe9ce8a9799111e02b7', 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: 'e5b836c6e70ff59cce961eea0844dae97f92a338' }, this.data.length > 0 ? index.h("dl", null, items) : null, index.h("pos-add-relation", { key: 'c59a7ce4cd4dc3861d16b81b5a385beb4dbb65d7', "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: 'a7b586f6dc94539b6df4c021f24d445ef858eaad' }, index.h("section", { key: '3e153c97c3b74c650778d5d41e611a85cb775636' }, index.h("article", { key: '917100ecfbe18110a98c36ec9e1beb86af76b4ee' }, index.h("h2", { key: 'a28c4dd56847eabbc549e6917c6217a8e3ab2cc9' }, "Attachments"), index.h("pos-attachments", { key: 'bf1c808c5f830bc9528c638615f027d6860ea14b', ref: it => (this.attachmentsElement = it) }))), index.h("section", { key: '82a81b160c07847b6957b3e484239eb80eb5acb3' }, ((_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,15 +44,3 @@ 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
|
-
width: auto;
|
|
57
|
-
accent-color: var(--pos-primary-color);
|
|
58
|
-
}
|
|
@@ -1,30 +1,20 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { localSettings } from "../../store/settings";
|
|
3
2
|
export class PosLoginForm {
|
|
4
3
|
constructor() {
|
|
5
4
|
this.idpUrl = '';
|
|
6
5
|
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
|
-
}
|
|
15
6
|
}
|
|
16
7
|
validate() {
|
|
17
8
|
this.canSubmit = Boolean(this.idpUrl);
|
|
18
9
|
}
|
|
19
10
|
render() {
|
|
20
|
-
return (h("form", { key: '
|
|
11
|
+
return (h("form", { key: '15b515887ebceff9ed2adb03f05e4725d5b1d4da', method: "dialog", onSubmit: () => this.handleSubmit() }, h("label", { key: '2278fd2cd0629dfc8d0bc3dc1c10223383131e15', htmlFor: "idpUrl" }, "Please enter your Identity Provider"), h("input", { key: '2e63bb5aa1d16393abd46d042fd78a8e70dbc476', id: "idpUrl", type: "url", value: this.idpUrl, required: true, onInput: e => this.handleChange(e), list: "suggestedIssuers", placeholder: "Type to search..." }), h("datalist", { key: '16de93f77ee4f756c76fd5e58d84cf8a96b7fafb', id: "suggestedIssuers" }, h("option", { key: 'c6612878e0dc7be06ba9c88266ba746cc41bbcbd', value: "https://solidcommunity.net/" }, "solidcommunity.net"), h("option", { key: 'c93e6a9e2cad61c5247a048a4261079daca2655d', value: "https://solidweb.me/" }, "solidweb.me"), h("option", { key: 'd051f96a34bafa0d8c55e0ea1b9bfc7a5eb4f59a', value: "https://login.inrupt.com" }, "Inrupt PodSpaces"), h("option", { key: 'c793826a68676e176714898363ad06daa023a2f3', value: "https://trinpod.us" }, "trinpod.us"), h("option", { key: '8ed729faba2a6c7b9fbc53d96511ec4ebc0db340', value: "https://trinpod.eu" }, "trinpod.eu"), h("option", { key: 'e683f8901b359e8bf82cb3e6d196817ac1150134', value: "https://solid.redpencil.io/" }, "redpencil.io"), h("option", { key: 'ddbad19605db043fc6f19ca5d4fc7bfd1d96b743', value: "https://teamid.live/" }, "teamid.live")), h("input", { key: 'ac9ebfdcfe6e1053fde4f890abd3e1183621060c', id: "login", type: "submit", value: "Login", disabled: !this.canSubmit })));
|
|
21
12
|
}
|
|
22
13
|
handleChange(event) {
|
|
23
14
|
this.validate();
|
|
24
15
|
this.idpUrl = event.target.value;
|
|
25
16
|
}
|
|
26
17
|
async handleSubmit() {
|
|
27
|
-
localSettings.state.rememberedIdp = this.rememberMe ? this.idpUrl : null;
|
|
28
18
|
this.idpUrlSelected.emit(this.idpUrl);
|
|
29
19
|
}
|
|
30
20
|
static get is() { return "pos-login-form"; }
|
|
@@ -43,8 +33,7 @@ export class PosLoginForm {
|
|
|
43
33
|
static get states() {
|
|
44
34
|
return {
|
|
45
35
|
"idpUrl": {},
|
|
46
|
-
"canSubmit": {}
|
|
47
|
-
"rememberMe": {}
|
|
36
|
+
"canSubmit": {}
|
|
48
37
|
};
|
|
49
38
|
}
|
|
50
39
|
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: '5ea4a46927219fe07df4cb79d9a43bc8fae9d1cd' }, 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: 'fb013b33f02fd5c756238fe9ce8a9799111e02b7', 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: '5f49aa9dad9d07550ee8ffbee90036cbc1efda55', class: "current" }, this.current && this.searchIndexReady && h("pos-make-findable", { key: '85974a4772aaf8cad3a11cdcd49e6df10141bfe3', uri: this.current.uri }), h("button", { key: '40660a3455b0f3392c68d7aea0075b102a1762a2', "aria-label": ariaLabel, onClick: () => this.onClick() }, h("div", { key: '9ab8922175d701f714f72aefb95745cf5ae4bb95' }, this.current ? this.current.label() : 'Search or enter URI'), this.icon()), this.current && h("pos-share", { key: '3b80c1987f9f5138b11b8a106171fc73a236f426', 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: 'd5ad4841674cf172e9401a63fc50e58900ca5b1f' }, h("search", { key: '8daf86774c49234d10637160fd983681ac483b44' }, h("pos-navigation-bar", { key: '200137643dbc0aa1f120c231dc70a0d3f71b596a', searchIndexReady: this.searchIndex !== undefined, current: this.resource }), h("dialog", { key: 'f2fb1d3e4a38d17efb6bd80ca791e8a30fafab66', ref: el => (this.dialogRef = el) }, h("form", { key: 'e54698d8fb968a5ee6007cc4d5644fec36bf74f3', method: "dialog", onSubmit: () => this.onSubmit() }, h("input", { key: '633a4030c6296b5c94e2661bd73168afc1e04438', 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: '64781cfb0e570d2368325d674c6637c581bb87c2', method: "dialog", onSubmit: e => this.handleSubmit(e) }, h("label", { key: '409e04f147430042eb334024fc7061574ab543cf', htmlFor: "type" }, "Type"), h("pos-select-term", { key: '8d5d580ee1f1e2e2c60cac0cc06798e94a0d28c3', id: "type", placeholder: "", value: this.selectedTypeUri, "onPod-os:term-selected": e => this.onTermSelected(e) }), h("label", { key: 'a45199618751e24b7d4a1bc13ad85c599cc93d1c', htmlFor: "name" }, "Name"), h("input", { key: 'bee3be7a680abbffc08caa5c549b68b1e653872d', 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: 'e8fab4d442188f7f2f325ff7bde3dce6d3f772f6', 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: 'e5b836c6e70ff59cce961eea0844dae97f92a338' }, this.data.length > 0 ? h("dl", null, items) : null, h("pos-add-relation", { key: 'c59a7ce4cd4dc3861d16b81b5a385beb4dbb65d7', "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: 'c092d822705ddca00018c6850358412be5f0aef0' });
|
|
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: '6a2e97c7b3c21cbcb7e64af30f133b7f721a589f' }, h("input", { key: '57bdfec32da3713362fcaf49f25b98184fed03f8', part: "input", list: "terms", placeholder: this.placeholder, value: this.value, onChange: ev => this.handleChange(ev) }), h("datalist", { key: '8d92be9bbb91323a8fef79c542f92de72e9d1829', 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: '6f05a2eb1b492c9424fa28b76826b59192d93ac3' }, h("button", { key: 'c0f7530ece1ad1f6cfe85e7291dbc50aa6cbdec7', slot: "trigger", "aria-label": "Share", part: "button" }, h("sl-icon", { key: '9e4c5299dea09378599c97166b10e32ca2db9181', name: "share" })), h("sl-menu", { key: 'cbceb11123c96e008df27021fc4a00050d807fe5' }, h("sl-menu-item", { key: '3cf3473830aa4d7bc272057febd8fa1c11821c91', value: "copy-uri" }, h("sl-icon", { key: 'e1256e2dc3466630484ba23321c79bb3fdc8e81d', slot: "prefix", name: "copy" }), "Copy URI"), this.apps.length > 0 && h(OpenWithApps, { key: '5093596308586326c8201f52e609d6037aae9716', 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: '7f1e6cd1c4f7503012242d3872b967be4adcbbc3', 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,7 +4,6 @@ const initialSettings = storedSettings
|
|
|
4
4
|
? JSON.parse(storedSettings)
|
|
5
5
|
: {
|
|
6
6
|
offlineCache: false,
|
|
7
|
-
rememberedIdp: null,
|
|
8
7
|
};
|
|
9
8
|
export const localSettings = createStore(initialSettings);
|
|
10
9
|
persistChanges();
|
|
@@ -20,7 +19,6 @@ function syncChangesAcrossTabs() {
|
|
|
20
19
|
if (event.key === 'settings' && event.newValue) {
|
|
21
20
|
const newSettings = JSON.parse(event.newValue);
|
|
22
21
|
localSettings.state.offlineCache = newSettings.offlineCache;
|
|
23
|
-
localSettings.state.rememberedIdp = newSettings.rememberedIdp;
|
|
24
22
|
}
|
|
25
23
|
});
|
|
26
24
|
}
|
|
@@ -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: 'a7b586f6dc94539b6df4c021f24d445ef858eaad' }, h("section", { key: '3e153c97c3b74c650778d5d41e611a85cb775636' }, h("article", { key: '917100ecfbe18110a98c36ec9e1beb86af76b4ee' }, h("h2", { key: 'a28c4dd56847eabbc549e6917c6217a8e3ab2cc9' }, "Attachments"), h("pos-attachments", { key: 'bf1c808c5f830bc9528c638615f027d6860ea14b', ref: it => (this.attachmentsElement = it) }))), h("section", { key: '82a81b160c07847b6957b3e484239eb80eb5acb3' }, ((_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 d}from"@stencil/core/internal/client";const a=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}validate(){this.canSubmit=Boolean(this.idpUrl)}render(){return i("form",{key:"15b515887ebceff9ed2adb03f05e4725d5b1d4da",method:"dialog",onSubmit:()=>this.handleSubmit()},i("label",{key:"2278fd2cd0629dfc8d0bc3dc1c10223383131e15",htmlFor:"idpUrl"},"Please enter your Identity Provider"),i("input",{key:"2e63bb5aa1d16393abd46d042fd78a8e70dbc476",id:"idpUrl",type:"url",value:this.idpUrl,required:!0,onInput:e=>this.handleChange(e),list:"suggestedIssuers",placeholder:"Type to search..."}),i("datalist",{key:"16de93f77ee4f756c76fd5e58d84cf8a96b7fafb",id:"suggestedIssuers"},i("option",{key:"c6612878e0dc7be06ba9c88266ba746cc41bbcbd",value:"https://solidcommunity.net/"},"solidcommunity.net"),i("option",{key:"c93e6a9e2cad61c5247a048a4261079daca2655d",value:"https://solidweb.me/"},"solidweb.me"),i("option",{key:"d051f96a34bafa0d8c55e0ea1b9bfc7a5eb4f59a",value:"https://login.inrupt.com"},"Inrupt PodSpaces"),i("option",{key:"c793826a68676e176714898363ad06daa023a2f3",value:"https://trinpod.us"},"trinpod.us"),i("option",{key:"8ed729faba2a6c7b9fbc53d96511ec4ebc0db340",value:"https://trinpod.eu"},"trinpod.eu"),i("option",{key:"e683f8901b359e8bf82cb3e6d196817ac1150134",value:"https://solid.redpencil.io/"},"redpencil.io"),i("option",{key:"ddbad19605db043fc6f19ca5d4fc7bfd1d96b743",value:"https://teamid.live/"},"teamid.live")),i("input",{key:"ac9ebfdcfe6e1053fde4f890abd3e1183621060c",id:"login",type:"submit",value:"Login",disabled:!this.canSubmit}))}handleChange(e){this.validate(),this.idpUrl=e.target.value}async handleSubmit(){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)}"}},[17,"pos-login-form",{idpUrl:[32],canSubmit:[32]},void 0,{idpUrl:[{validate:0}]}]);function s(){"undefined"!=typeof customElements&&["pos-login-form"].forEach((e=>{"pos-login-form"===e&&(customElements.get(d(e))||customElements.define(d(e),a))}))}export{a as P,s as d}
|