@pod-os/elements 0.39.0 → 0.40.0-rc.0e71f55.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/esm/elements.js
CHANGED
|
@@ -43,5 +43,5 @@ var patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
|
43
43
|
|
|
44
44
|
patchBrowser().then(async (options) => {
|
|
45
45
|
await globalScripts();
|
|
46
|
-
return bootstrapLazy([["pos-app-generic",[[1,"pos-app-generic"]]],["pos-app-ldp-container",[[1,"pos-app-ldp-container"]]],["pos-app-rdf-document",[[1,"pos-app-rdf-document"]]],["pos-app-image-viewer",[[1,"pos-app-image-viewer",{"resource":[32]}]]],["pos-tool-attachments",[[1,"pos-tool-attachments",{"os":[32],"resource":[32]}]]],["pos-app-document-viewer",[[1,"pos-app-document-viewer",{"resource":[32]}]]],["pos-list",[[0,"pos-list",{"rel":[1],"ifTypeof":[1,"if-typeof"],"fetch":[4],"error":[32],"os":[32],"resource":[32],"items":[32],"templateString":[32]}]]],["pos-case",[[0,"pos-case",{"ifTypeof":[1,"if-typeof"],"ifProperty":[1,"if-property"],"ifRev":[1,"if-rev"],"not":[4],"else":[4],"error":[32]}]]],["pos-switch",[[0,"pos-switch",{"error":[32],"resource":[32],"caseElements":[32],"types":[32],"relations":[32],"reverseRelations":[32]}]]],["pos-value",[[1,"pos-value",{"predicate":[1],"resource":[32]}]]],["pos-attachments",[[1,"pos-attachments",{"resource":[32],"attachments":[32],"addToList":[64]}]]],["pos-container-contents",[[1,"pos-container-contents",{"container":[32],"contents":[32],"loading":[32],"createNewItem":[32]},[[0,"keydown","handleKeyDown"]]]]],["pos-document",[[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",[[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",[[1,"pos-relations",{"data":[32]}],[1,"pos-reverse-relations",{"data":[32]}]]],["pos-subjects",[[1,"pos-subjects",{"data":[32]}]]],["pos-add-relation",[[1,"pos-add-relation",{"os":[32],"resource":[32],"selectedTermUri":[32],"currentValue":[32]}]]],["pos-markdown-document",[[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",[[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",[[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);
|
|
46
|
+
return bootstrapLazy([["pos-app-generic",[[1,"pos-app-generic"]]],["pos-app-ldp-container",[[1,"pos-app-ldp-container"]]],["pos-app-rdf-document",[[1,"pos-app-rdf-document"]]],["pos-app-image-viewer",[[1,"pos-app-image-viewer",{"resource":[32]}]]],["pos-tool-attachments",[[1,"pos-tool-attachments",{"os":[32],"resource":[32]}]]],["pos-app-document-viewer",[[1,"pos-app-document-viewer",{"resource":[32]}]]],["pos-list",[[0,"pos-list",{"rel":[1],"ifTypeof":[1,"if-typeof"],"fetch":[4],"error":[32],"os":[32],"resource":[32],"items":[32],"templateString":[32]}]]],["pos-case",[[0,"pos-case",{"ifTypeof":[1,"if-typeof"],"ifProperty":[1,"if-property"],"ifRev":[1,"if-rev"],"not":[4],"else":[4],"error":[32]}]]],["pos-switch",[[0,"pos-switch",{"error":[32],"resource":[32],"caseElements":[32],"types":[32],"relations":[32],"reverseRelations":[32]}]]],["pos-value",[[1,"pos-value",{"predicate":[1],"resource":[32]}]]],["pos-attachments",[[1,"pos-attachments",{"resource":[32],"attachments":[32],"addToList":[64]}]]],["pos-container-contents",[[1,"pos-container-contents",{"container":[32],"contents":[32],"loading":[32],"createNewItem":[32]},[[0,"keydown","handleKeyDown"]]]]],["pos-document",[[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",[[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",[[1,"pos-relations",{"data":[32]}],[1,"pos-reverse-relations",{"data":[32]}]]],["pos-subjects",[[1,"pos-subjects",{"data":[32]}]]],["pos-add-relation",[[1,"pos-add-relation",{"os":[32],"resource":[32],"selectedTermUri":[32],"currentValue":[32]}]]],["pos-markdown-document",[[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",[[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",[[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);
|
|
47
47
|
});
|
package/dist/esm/loader.js
CHANGED
|
@@ -4,7 +4,7 @@ export { s as setNonce } from './index-spEUIGXI.js';
|
|
|
4
4
|
const defineCustomElements = async (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
6
6
|
await globalScripts();
|
|
7
|
-
return bootstrapLazy([["pos-app-generic",[[1,"pos-app-generic"]]],["pos-app-ldp-container",[[1,"pos-app-ldp-container"]]],["pos-app-rdf-document",[[1,"pos-app-rdf-document"]]],["pos-app-image-viewer",[[1,"pos-app-image-viewer",{"resource":[32]}]]],["pos-tool-attachments",[[1,"pos-tool-attachments",{"os":[32],"resource":[32]}]]],["pos-app-document-viewer",[[1,"pos-app-document-viewer",{"resource":[32]}]]],["pos-list",[[0,"pos-list",{"rel":[1],"ifTypeof":[1,"if-typeof"],"fetch":[4],"error":[32],"os":[32],"resource":[32],"items":[32],"templateString":[32]}]]],["pos-case",[[0,"pos-case",{"ifTypeof":[1,"if-typeof"],"ifProperty":[1,"if-property"],"ifRev":[1,"if-rev"],"not":[4],"else":[4],"error":[32]}]]],["pos-switch",[[0,"pos-switch",{"error":[32],"resource":[32],"caseElements":[32],"types":[32],"relations":[32],"reverseRelations":[32]}]]],["pos-value",[[1,"pos-value",{"predicate":[1],"resource":[32]}]]],["pos-attachments",[[1,"pos-attachments",{"resource":[32],"attachments":[32],"addToList":[64]}]]],["pos-container-contents",[[1,"pos-container-contents",{"container":[32],"contents":[32],"loading":[32],"createNewItem":[32]},[[0,"keydown","handleKeyDown"]]]]],["pos-document",[[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",[[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",[[1,"pos-relations",{"data":[32]}],[1,"pos-reverse-relations",{"data":[32]}]]],["pos-subjects",[[1,"pos-subjects",{"data":[32]}]]],["pos-add-relation",[[1,"pos-add-relation",{"os":[32],"resource":[32],"selectedTermUri":[32],"currentValue":[32]}]]],["pos-markdown-document",[[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",[[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",[[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);
|
|
7
|
+
return bootstrapLazy([["pos-app-generic",[[1,"pos-app-generic"]]],["pos-app-ldp-container",[[1,"pos-app-ldp-container"]]],["pos-app-rdf-document",[[1,"pos-app-rdf-document"]]],["pos-app-image-viewer",[[1,"pos-app-image-viewer",{"resource":[32]}]]],["pos-tool-attachments",[[1,"pos-tool-attachments",{"os":[32],"resource":[32]}]]],["pos-app-document-viewer",[[1,"pos-app-document-viewer",{"resource":[32]}]]],["pos-list",[[0,"pos-list",{"rel":[1],"ifTypeof":[1,"if-typeof"],"fetch":[4],"error":[32],"os":[32],"resource":[32],"items":[32],"templateString":[32]}]]],["pos-case",[[0,"pos-case",{"ifTypeof":[1,"if-typeof"],"ifProperty":[1,"if-property"],"ifRev":[1,"if-rev"],"not":[4],"else":[4],"error":[32]}]]],["pos-switch",[[0,"pos-switch",{"error":[32],"resource":[32],"caseElements":[32],"types":[32],"relations":[32],"reverseRelations":[32]}]]],["pos-value",[[1,"pos-value",{"predicate":[1],"resource":[32]}]]],["pos-attachments",[[1,"pos-attachments",{"resource":[32],"attachments":[32],"addToList":[64]}]]],["pos-container-contents",[[1,"pos-container-contents",{"container":[32],"contents":[32],"loading":[32],"createNewItem":[32]},[[0,"keydown","handleKeyDown"]]]]],["pos-document",[[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",[[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",[[1,"pos-relations",{"data":[32]}],[1,"pos-reverse-relations",{"data":[32]}]]],["pos-subjects",[[1,"pos-subjects",{"data":[32]}]]],["pos-add-relation",[[1,"pos-add-relation",{"os":[32],"resource":[32],"selectedTermUri":[32],"currentValue":[32]}]]],["pos-markdown-document",[[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",[[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",[[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
8
|
};
|
|
9
9
|
|
|
10
10
|
export { defineCustomElements };
|
|
@@ -29,6 +29,7 @@ const initialSettings = storedSettings
|
|
|
29
29
|
? JSON.parse(storedSettings)
|
|
30
30
|
: {
|
|
31
31
|
offlineCache: false,
|
|
32
|
+
rememberedIdp: null,
|
|
32
33
|
};
|
|
33
34
|
const localSettings = createStore$1(initialSettings);
|
|
34
35
|
persistChanges();
|
|
@@ -44,6 +45,7 @@ function syncChangesAcrossTabs() {
|
|
|
44
45
|
if (event.key === 'settings' && event.newValue) {
|
|
45
46
|
const newSettings = JSON.parse(event.newValue);
|
|
46
47
|
localSettings.state.offlineCache = newSettings.offlineCache;
|
|
48
|
+
localSettings.state.rememberedIdp = newSettings.rememberedIdp;
|
|
47
49
|
}
|
|
48
50
|
});
|
|
49
51
|
}
|
|
@@ -3971,7 +3973,7 @@ const PosLabel = class {
|
|
|
3971
3973
|
}
|
|
3972
3974
|
};
|
|
3973
3975
|
|
|
3974
|
-
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
|
|
3976
|
+
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); } `;
|
|
3975
3977
|
|
|
3976
3978
|
const PosLogin = class {
|
|
3977
3979
|
constructor(hostRef) {
|
|
@@ -4015,7 +4017,7 @@ const PosLogin = class {
|
|
|
4015
4017
|
};
|
|
4016
4018
|
PosLogin.style = posLoginCss();
|
|
4017
4019
|
|
|
4018
|
-
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)}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}`;
|
|
4019
4021
|
|
|
4020
4022
|
const PosLoginForm = class {
|
|
4021
4023
|
constructor(hostRef) {
|
|
@@ -4023,18 +4025,27 @@ const PosLoginForm = class {
|
|
|
4023
4025
|
this.idpUrlSelected = createEvent(this, "pod-os:idp-url-selected", 7);
|
|
4024
4026
|
this.idpUrl = '';
|
|
4025
4027
|
this.canSubmit = false;
|
|
4028
|
+
this.rememberMe = false;
|
|
4029
|
+
}
|
|
4030
|
+
componentWillLoad() {
|
|
4031
|
+
const remembered = localSettings.state.rememberedIdp;
|
|
4032
|
+
if (remembered) {
|
|
4033
|
+
this.idpUrl = remembered;
|
|
4034
|
+
this.rememberMe = true;
|
|
4035
|
+
}
|
|
4026
4036
|
}
|
|
4027
4037
|
validate() {
|
|
4028
4038
|
this.canSubmit = Boolean(this.idpUrl);
|
|
4029
4039
|
}
|
|
4030
4040
|
render() {
|
|
4031
|
-
return (h$4("form", { key: '
|
|
4041
|
+
return (h$4("form", { key: 'a402f5254881c362889e82905685ddbcd67043d8', method: "dialog", onSubmit: () => this.handleSubmit() }, h$4("label", { key: 'c5370460c8c8bcb5ed36eeeeee505e65f7e9c223', htmlFor: "idpUrl" }, "Please enter your Identity Provider"), h$4("input", { key: '960c58b08c3d14cc84bc1220f2af76d039b406e4', id: "idpUrl", type: "url", value: this.idpUrl, required: true, onInput: e => this.handleChange(e), list: "suggestedIssuers", placeholder: "Type to search..." }), h$4("datalist", { key: '8d3edf275da4caf0fb1d711ae9ab0b4bd2637a57', id: "suggestedIssuers" }, h$4("option", { key: '4793ca17b5463b29cf53bf6530d80f0bbecf48da', value: "https://solidcommunity.net/" }, "solidcommunity.net"), h$4("option", { key: 'c6b930fd29cd8a8a1a8aa534d607ce2d008a44a9', value: "https://solidweb.me/" }, "solidweb.me"), h$4("option", { key: 'b3e418d76ac9b59ff7fad5e5df07c59ed5e8acb5', value: "https://login.inrupt.com" }, "Inrupt PodSpaces"), h$4("option", { key: 'ffe3602d4a7823bcc1c9c8a3b15a67ee48341e45', value: "https://trinpod.us" }, "trinpod.us"), h$4("option", { key: '896032d7f419cb26bfaf01a82c0698f166c0a47d', value: "https://trinpod.eu" }, "trinpod.eu"), h$4("option", { key: '7b08e9c47808ec1b6cd2ee268579662c3c867f07', value: "https://solid.redpencil.io/" }, "redpencil.io"), h$4("option", { key: 'bac6459ab354f4c821b6bf5043bb5e0783e72e88', value: "https://teamid.live/" }, "teamid.live")), h$4("label", { key: '64bf359c6f5e19ab9fde2b1cd17db678c638a556', class: "remember-me" }, h$4("input", { key: '299df2152d0d18d8238c533ecb62800568215926', id: "rememberMe", type: "checkbox", checked: this.rememberMe, onChange: e => (this.rememberMe = e.target.checked) }), "Remember me"), h$4("input", { key: '7a8f9a24a0a6210bb64335058c5529b0cb1454b0', id: "login", type: "submit", value: "Login", disabled: !this.canSubmit })));
|
|
4032
4042
|
}
|
|
4033
4043
|
handleChange(event) {
|
|
4034
4044
|
this.validate();
|
|
4035
4045
|
this.idpUrl = event.target.value;
|
|
4036
4046
|
}
|
|
4037
4047
|
async handleSubmit() {
|
|
4048
|
+
localSettings.state.rememberedIdp = this.rememberMe ? this.idpUrl : null;
|
|
4038
4049
|
this.idpUrlSelected.emit(this.idpUrl);
|
|
4039
4050
|
}
|
|
4040
4051
|
static get delegatesFocus() { return true; }
|
|
@@ -5565,7 +5576,7 @@ const PosNavigation = class {
|
|
|
5565
5576
|
}
|
|
5566
5577
|
}
|
|
5567
5578
|
render() {
|
|
5568
|
-
return (h$4("nav", { key: '
|
|
5579
|
+
return (h$4("nav", { key: '44f504f9a905c6e63353741cda554a6a35a46f82' }, h$4("search", { key: '98e7cae9729db2959d992f9e41a4cc99064b9eb0' }, h$4("pos-navigation-bar", { key: 'c0ce90fcc8334d0ea784ca3126a1524b036631ac', searchIndexReady: this.searchIndex !== undefined, current: this.resource }), h$4("dialog", { key: 'a9b1418ad48ae298fbd8eaa56e62eb613e8deef6', ref: el => (this.dialogRef = el) }, h$4("form", { key: 'a75933116bd844e0afc4e94eee713adb6d6bb4ea', method: "dialog", onSubmit: () => this.onSubmit() }, h$4("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$4("div", { class: "suggestions" }, h$4("ol", { id: "suggestions-list", role: "listbox", "aria-label": "Search results" }, this.suggestions.map((it, index) => (h$4("li", { id: `option-${index}`, role: "option", "aria-selected": index === this.selectedIndex ? 'true' : 'false' }, h$4("pos-rich-link", { uri: it.ref }))))))) : null)))));
|
|
5569
5580
|
}
|
|
5570
5581
|
static get watchers() { return {
|
|
5571
5582
|
"uri": [{
|
|
@@ -5596,7 +5607,7 @@ const PosNavigationBar = class {
|
|
|
5596
5607
|
}
|
|
5597
5608
|
render() {
|
|
5598
5609
|
const ariaLabel = this.current ? `${this.current.label()} (Click to search or enter URI)` : 'Search or enter URI';
|
|
5599
|
-
return (h$4("section", { key: '
|
|
5610
|
+
return (h$4("section", { key: 'a66626042ab42e63094b7b27729f0c299d6e62a3', class: "current" }, this.current && this.searchIndexReady && h$4("pos-make-findable", { key: '4e2e2e3271c4ed78c34e32e0a815a87dd9d73b52', uri: this.current.uri }), h$4("button", { key: '5ff874354f32f9fef4b15337ce7230c43df0c0ca', "aria-label": ariaLabel, onClick: () => this.onClick() }, h$4("div", { key: 'd00d82f397fb9f3ede61484d6cc2ae74ef92fd06' }, this.current ? this.current.label() : 'Search or enter URI'), this.icon()), this.current && h$4("pos-share", { key: 'a86d78b83dedc4f7cc77170f96c973fe21ded57d', uri: this.current.uri })));
|
|
5600
5611
|
}
|
|
5601
5612
|
icon() {
|
|
5602
5613
|
return (h$4("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$4("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" })));
|
|
@@ -5624,7 +5635,7 @@ const PosNewThingForm = class {
|
|
|
5624
5635
|
subscribePodOs(this);
|
|
5625
5636
|
}
|
|
5626
5637
|
render() {
|
|
5627
|
-
return (h$4("form", { key: '
|
|
5638
|
+
return (h$4("form", { key: '4926181b537caafb59e07a22a1ad57b321d85db7', method: "dialog", onSubmit: e => this.handleSubmit(e) }, h$4("label", { key: 'a1a22fe893a3b963c93d8963345b266987fd2f4b', htmlFor: "type" }, "Type"), h$4("pos-select-term", { key: '549dd0e431534ba1320049ef47bdb2e2efd2d49e', id: "type", placeholder: "", value: this.selectedTypeUri, "onPod-os:term-selected": e => this.onTermSelected(e) }), h$4("label", { key: '5cf8edca5189307fdd2adc2c0035115b51a0b2fd', htmlFor: "name" }, "Name"), h$4("input", { key: 'ea4d4c78016cda1c546fd6aa3addfdedd453c1e2', id: "name", type: "text", value: this.name, onInput: e => this.handleChange(e) }), this.newUri ? (h$4("div", { id: "new-uri", title: "This will be the URI of the new thing" }, this.newUri)) : null, h$4("input", { key: '95da60988cc9ef920add0bd1d5531d234a92372e', id: "create", type: "submit", value: "Create", disabled: !this.canSubmit })));
|
|
5628
5639
|
}
|
|
5629
5640
|
handleChange(event) {
|
|
5630
5641
|
this.name = event.target.value;
|
|
@@ -6211,7 +6222,7 @@ const PosRouter = class {
|
|
|
6211
6222
|
this.routeChanged.emit(this.uri);
|
|
6212
6223
|
}
|
|
6213
6224
|
render() {
|
|
6214
|
-
return h$4("slot", { key: '
|
|
6225
|
+
return h$4("slot", { key: '7e0f0f4ff13b90a511272ca93fee4f954eebb5f4' });
|
|
6215
6226
|
}
|
|
6216
6227
|
};
|
|
6217
6228
|
PosRouter.style = posRouterCss();
|
|
@@ -6240,7 +6251,7 @@ const PosSelectTerm = class {
|
|
|
6240
6251
|
this.termSelected.emit({ uri: event.target.value });
|
|
6241
6252
|
}
|
|
6242
6253
|
render() {
|
|
6243
|
-
return (h$4(Host, { key: '
|
|
6254
|
+
return (h$4(Host, { key: '2a4b6f065c03e62274de7a5c73c95e9539baea21' }, h$4("input", { key: '724179b341841a39d37ebdb94c16c4c09b7673a9', part: "input", list: "terms", placeholder: this.placeholder, value: this.value, onChange: ev => this.handleChange(ev) }), h$4("datalist", { key: 'a8fb7b0ab70e4b4fcb92d6efab25341c37eeea3a', part: "terms", id: "terms" }, this.terms.map(term => (h$4("option", { value: term.uri }, term.shorthand))))));
|
|
6244
6255
|
}
|
|
6245
6256
|
static get delegatesFocus() { return true; }
|
|
6246
6257
|
static get watchers() { return {
|
|
@@ -6342,7 +6353,7 @@ const PosShare = class {
|
|
|
6342
6353
|
}
|
|
6343
6354
|
}
|
|
6344
6355
|
render() {
|
|
6345
|
-
return (h$4("sl-dropdown", { key: '
|
|
6356
|
+
return (h$4("sl-dropdown", { key: '9fe1f5774f811f40ca0a3c51b12df8122e4765d8' }, h$4("button", { key: 'bdb2c61d418749cb7cedf0ead54babf7ba1d3a93', slot: "trigger", "aria-label": "Share", part: "button" }, h$4("sl-icon", { key: 'd0a5ab504ea43edada1b378b8d7627cd4f812aae', name: "share" })), h$4("sl-menu", { key: '75d02eb169c84416c5625f3899987c8e6123d1e1' }, h$4("sl-menu-item", { key: 'b7b6219a57fb40b702f396203e80b419ac6159e1', value: "copy-uri" }, h$4("sl-icon", { key: 'de2921edf5269c22efd828f5eb31f122375061f1', slot: "prefix", name: "copy" }), "Copy URI"), this.apps.length > 0 && h$4(OpenWithApps, { key: 'b636c8e8ea6db6d104eaf4b4cb27078dc8dc0531', apps: this.apps }))));
|
|
6346
6357
|
}
|
|
6347
6358
|
get el() { return getElement(this); }
|
|
6348
6359
|
static get watchers() { return {
|
|
@@ -18787,7 +18798,7 @@ const PosUpload = class {
|
|
|
18787
18798
|
}
|
|
18788
18799
|
}
|
|
18789
18800
|
render() {
|
|
18790
|
-
return h$4("div", { key: '
|
|
18801
|
+
return h$4("div", { key: 'dc900ad6df4df3ab8fe3ce17b4e9a15ae7b70413', class: "container", ref: el => (this.uppy = el) });
|
|
18791
18802
|
}
|
|
18792
18803
|
};
|
|
18793
18804
|
PosUpload.style = posUploadCss();
|
|
@@ -26953,7 +26953,7 @@ const PosMarkdownDocument = class {
|
|
|
26953
26953
|
this.isEditing = false;
|
|
26954
26954
|
}
|
|
26955
26955
|
render() {
|
|
26956
|
-
return (h$1("article", { key: '
|
|
26956
|
+
return (h$1("article", { key: 'a0b82223a94417242bdbdf0eb999515799299dd5' }, this.editable ? (h$1("header", null, this.isEditing ? this.getStatus() : null, this.isEditing ? (h$1("button", { onClick: () => this.stopEditing() }, h$1("sl-icon", { name: "eye" }), "View")) : (h$1("button", { onClick: () => this.startEditing() }, h$1("sl-icon", { name: "pencil-square" }), "Edit")))) : null, h$1("div", { key: '161aa95c7dfeab23e938d0407b634f0d8a8589eb', class: "content", ref: el => (this.editorEl = el) })));
|
|
26957
26957
|
}
|
|
26958
26958
|
getStatus() {
|
|
26959
26959
|
if (this.isModified) {
|
|
@@ -34,7 +34,7 @@ const PosRelations = class {
|
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
36
|
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 }))))))));
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
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) })));
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
PosRelations.style = posRelationsCss();
|
|
@@ -18,7 +18,7 @@ const PosToolAttachments = class {
|
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
20
|
var _a;
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
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 => {
|
|
22
22
|
const result = this.os.attachments().uploadAndAddAttachment(this.resource, file);
|
|
23
23
|
result.map(it => {
|
|
24
24
|
this.attachmentsElement.addToList({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pod-os/elements",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0-rc.0e71f55.0",
|
|
4
4
|
"description": "Custom elements for usage with Solid Pods",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"generate": "stencil generate"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@pod-os/core": "
|
|
25
|
+
"@pod-os/core": "v0.29.0-rc.0e71f55.0",
|
|
26
26
|
"@shoelace-style/shoelace": "^2.20.1",
|
|
27
27
|
"@stencil/core": "^4.43.2",
|
|
28
28
|
"@stencil/store": "^2.2.2",
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"license": "MIT",
|
|
58
58
|
"repository": {
|
|
59
59
|
"type": "git",
|
|
60
|
-
"url": "git+https://github.com/pod-os/
|
|
60
|
+
"url": "git+https://github.com/pod-os/PodOS.git"
|
|
61
61
|
},
|
|
62
62
|
"author": "",
|
|
63
63
|
"bugs": {
|
|
64
|
-
"url": "https://github.com/pod-os/
|
|
64
|
+
"url": "https://github.com/pod-os/PodOS/issues"
|
|
65
65
|
},
|
|
66
|
-
"homepage": "https://github.com/pod-os/
|
|
66
|
+
"homepage": "https://github.com/pod-os/PodOS#readme"
|
|
67
67
|
}
|