@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
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,B as o,d as r,w as t,N as a,e as i,g as n,b as p}from"./p-spEUIGXI.js";export{s as setNonce}from"./p-spEUIGXI.js";var d=e=>{const o=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return o.call(this,e);const s=o.call(this,!1),r=this.childNodes;if(e)for(let e=0;e<r.length;e++)2!==r[e].nodeType&&s.appendChild(r[e].cloneNode(!0));return s}};(()=>{o.isDev&&!o.isTesting&&r("Running in development mode."),o.cloneNodeFix&&d(i.prototype);const s=o.scriptDataOpts?t.document&&Array.from(t.document.querySelectorAll("script")).find((e=>new RegExp(`/${a}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===a)):null,n=import.meta.url,p=o.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==n&&(p.resourcesUrl=new URL(".",n).href),e(p)})().then((async e=>(await n(),p([["p-a234b3fe",[[1,"pos-app-generic"]]],["p-e4eae182",[[1,"pos-app-ldp-container"]]],["p-4fa32d10",[[1,"pos-app-rdf-document"]]],["p-a78df72b",[[1,"pos-app-image-viewer",{resource:[32]}]]],["p-
|
|
1
|
+
import{p as e,B as o,d as r,w as t,N as a,e as i,g as n,b as p}from"./p-spEUIGXI.js";export{s as setNonce}from"./p-spEUIGXI.js";var d=e=>{const o=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return o.call(this,e);const s=o.call(this,!1),r=this.childNodes;if(e)for(let e=0;e<r.length;e++)2!==r[e].nodeType&&s.appendChild(r[e].cloneNode(!0));return s}};(()=>{o.isDev&&!o.isTesting&&r("Running in development mode."),o.cloneNodeFix&&d(i.prototype);const s=o.scriptDataOpts?t.document&&Array.from(t.document.querySelectorAll("script")).find((e=>new RegExp(`/${a}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===a)):null,n=import.meta.url,p=o.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==n&&(p.resourcesUrl=new URL(".",n).href),e(p)})().then((async e=>(await n(),p([["p-a234b3fe",[[1,"pos-app-generic"]]],["p-e4eae182",[[1,"pos-app-ldp-container"]]],["p-4fa32d10",[[1,"pos-app-rdf-document"]]],["p-a78df72b",[[1,"pos-app-image-viewer",{resource:[32]}]]],["p-0febf76e",[[1,"pos-tool-attachments",{os:[32],resource:[32]}]]],["p-33783890",[[1,"pos-app-document-viewer",{resource:[32]}]]],["p-17d63fec",[[0,"pos-list",{rel:[1],ifTypeof:[1,"if-typeof"],fetch:[4],error:[32],os:[32],resource:[32],items:[32],templateString:[32]}]]],["p-aca646a4",[[0,"pos-case",{ifTypeof:[1,"if-typeof"],ifProperty:[1,"if-property"],ifRev:[1,"if-rev"],not:[4],else:[4],error:[32]}]]],["p-31370224",[[0,"pos-switch",{error:[32],resource:[32],caseElements:[32],types:[32],relations:[32],reverseRelations:[32]}]]],["p-624503dd",[[1,"pos-value",{predicate:[1],resource:[32]}]]],["p-5f8df3c2",[[1,"pos-attachments",{resource:[32],attachments:[32],addToList:[64]}]]],["p-ed1d9d77",[[1,"pos-container-contents",{container:[32],contents:[32],loading:[32],createNewItem:[32]},[[0,"keydown","handleKeyDown"]]]]],["p-2f122da6",[[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}]}]]],["p-57d32176",[[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}]}]]],["p-c4034954",[[1,"pos-relations",{data:[32]}],[1,"pos-reverse-relations",{data:[32]}]]],["p-a8628eb4",[[1,"pos-subjects",{data:[32]}]]],["p-2ee1efdb",[[1,"pos-add-relation",{os:[32],resource:[32],selectedTermUri:[32],currentValue:[32]}]]],["p-d6e9d178",[[1,"pos-markdown-document",{file:[16],saveStatus:[1,"save-status"],editable:[4],markdown:[32],isModified:[32],isEditing:[32],startEditing:[64],stopEditing:[64]}]]],["p-513f7548",[[257,"pos-container-item",{resource:[32]}],[1,"pos-container-toolbar"],[1,"pos-create-new-container-item",{type:[1],container:[16],os:[32],name:[32]}]]],["p-f6da714c",[[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}]}]]]],e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as
|
|
1
|
+
import{r as a,h as e,H as i,a as s}from"./p-spEUIGXI.js";import{u as r}from"./p-D0uCfr1-.js";import{u as t}from"./p-yVO4JQ9P.js";const o=class{constructor(e){a(this,e)}async componentWillLoad(){this.os=await r(this.el),this.resource=await t(this.el)}render(){var a;return e(i,{key:"d401de6fd1b51f630bbd5ce6db7ad9c77768d63e"},e("section",{key:"5a59f3c915fabb231558c09b474eaf002e685bc5"},e("article",{key:"650081c28531d7709b2daf1e70587798b5f92455"},e("h2",{key:"1a571e2cbd20a0f57bb634426269a5bc1bd23095"},"Attachments"),e("pos-attachments",{key:"76d57dbcbc7d4534ced8e3bd2f3dd49509039e50",ref:a=>this.attachmentsElement=a}))),e("section",{key:"1a4d06abe179261b511e936fb44261b37540f286"},(null===(a=this.resource)||void 0===a?void 0:a.editable)?e("pos-upload",{accept:["*/*"],uploader:a=>{const e=this.os.attachments().uploadAndAddAttachment(this.resource,a);return e.map((e=>{this.attachmentsElement.addToList({uri:e.url,label:a.name})})),e}}):null))}get el(){return s(this)}};o.style=":host{display:flex;flex-direction:column;gap:var(--size-1);h2{margin:0;padding:0;font-size:var(--scale-2)}}:host{--gap-size:var(--size-1);display:flex;flex-direction:column;gap:var(--gap-size);margin:var(--gap-size)}section{display:flex;flex-direction:column;gap:var(--gap-size)}@media (min-width: 640px){:host{--gap-size:var(--size-4);flex-direction:row;flex-wrap:wrap;section{&:first-of-type{flex:1}}section:not(:first-of-type){flex:0 0 30%}}}article{padding:var(--size-2);display:flex;flex-direction:column;gap:var(--size-2);outline:var(--pos-border-solid);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);background-color:var(--pos-card-background);header{display:flex;flex-direction:column;gap:var(--size-2);h1{margin:0}}}";export{o as pos_tool_attachments}
|