@pod-os/elements 0.39.0 → 0.40.0-rc.2a09542.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{r as o,c as r,h as a,H as l}from"./p-spEUIGXI.js";import{s as e}from"./p-BW_CkW1K.js";const s=class{constructor(a){o(this,a),this.subscribeResource=r(this,"pod-os:resource",7),this.data=[],this.receiveResource=o=>{this.data=o.relations()}}componentWillLoad(){e(this)}relationAdded(o){const r=this.data.find((r=>r.predicate===o.predicate));this.data=r?this.data.map((a=>a.predicate===r.predicate?{predicate:r.predicate,label:r.label,uris:[...r.uris,...o.uris]}:a)):[...this.data,o]}render(){const o=this.data.map((o=>a("div",{class:"predicate-values"},a("dt",null,a("pos-predicate",{uri:o.predicate,label:o.label})),a("div",{class:"values"},o.uris.map((o=>a("dd",null,a("pos-rich-link",{uri:o}))))))));return a(l,{key:"
|
|
1
|
+
import{r as o,c as r,h as a,H as l}from"./p-spEUIGXI.js";import{s as e}from"./p-BW_CkW1K.js";const s=class{constructor(a){o(this,a),this.subscribeResource=r(this,"pod-os:resource",7),this.data=[],this.receiveResource=o=>{this.data=o.relations()}}componentWillLoad(){e(this)}relationAdded(o){const r=this.data.find((r=>r.predicate===o.predicate));this.data=r?this.data.map((a=>a.predicate===r.predicate?{predicate:r.predicate,label:r.label,uris:[...r.uris,...o.uris]}:a)):[...this.data,o]}render(){const o=this.data.map((o=>a("div",{class:"predicate-values"},a("dt",null,a("pos-predicate",{uri:o.predicate,label:o.label})),a("div",{class:"values"},o.uris.map((o=>a("dd",null,a("pos-rich-link",{uri:o}))))))));return a(l,{key:"90d62fb25fa7de819e041ddacf101cb962a425f7"},this.data.length>0?a("dl",null,o):null,a("pos-add-relation",{key:"ef4342b879e69aa2a23d3bd597434e606c31081a","onPod-os:added-relation":o=>this.relationAdded(o.detail)}))}};s.style=":host{--background-base-color:color-mix(in srgb, var(--pos-background-color), var(--color-grey-800) 10%);--background-color-even:hsl(from var(--background-base-color) h s calc(l + 7));--background-color-odd:hsl(from var(--background-base-color) h s calc(l + 10));--border-color:var(--background-base-color)}dd{padding:0;margin:0}dl{display:flex;flex-direction:column;gap:var(--size-1);padding:0;margin:0}dt{margin-bottom:var(--size-1)}.predicate-values:nth-child(odd){background-color:var(--background-color-odd)}.predicate-values:nth-child(even){background-color:var(--background-color-even)}.predicate-values{display:flex;flex-direction:column;border:var(--size-px) solid var(--border-color);padding:var(--size-2);gap:var(--size-1);.values{display:flex;flex-direction:column;gap:var(--size-3)}}pos-rich-link{--background-color:inherit}";const d=class{constructor(a){o(this,a),this.subscribeResource=r(this,"pod-os:resource",7),this.data=[],this.receiveResource=o=>{this.data=o.reverseRelations()}}componentWillLoad(){e(this)}render(){const o=this.data.map((o=>a("div",{class:"predicate-values"},a("dt",null,a("pos-predicate",{uri:o.predicate,label:`is ${o.label} of`})),a("div",{class:"values"},o.uris.map((o=>a("dd",null,a("pos-rich-link",{uri:o}))))))));return this.data.length>0?a("dl",null,o):null}};d.style=":host{--background-base-color:color-mix(in srgb, var(--pos-background-color), var(--color-grey-800) 10%);--background-color-even:hsl(from var(--background-base-color) h s calc(l + 7));--background-color-odd:hsl(from var(--background-base-color) h s calc(l + 10));--border-color:var(--background-base-color)}dd{padding:0;margin:0}dl{display:flex;flex-direction:column;gap:var(--size-1);padding:0;margin:0}dt{margin-bottom:var(--size-1)}.predicate-values:nth-child(odd){background-color:var(--background-color-odd)}.predicate-values:nth-child(even){background-color:var(--background-color-even)}.predicate-values{display:flex;flex-direction:column;border:var(--size-px) solid var(--border-color);padding:var(--size-2);gap:var(--size-1);.values{display:flex;flex-direction:column;gap:var(--size-3)}}pos-rich-link{--background-color:inherit}";export{s as pos_relations,d as pos_reverse_relations}
|