@pod-os/elements 0.37.0 → 0.38.0-rc.4b2b787.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/{index-OR1wNkjG.js → index-CmQJab4P.js} +70 -19
- package/dist/cjs/{jsonld-V2RB47OZ-B82QNsYZ.js → jsonld-V2RB47OZ-BpANcb5R.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pos-add-literal-value_3.cjs.entry.js +1 -1
- package/dist/cjs/pos-add-new-thing_32.cjs.entry.js +2 -2
- package/dist/cjs/pos-container-contents.cjs.entry.js +3 -3
- package/dist/cjs/pos-list.cjs.entry.js +1 -1
- package/dist/cjs/pos-markdown-document.cjs.entry.js +2 -2
- package/dist/cjs/pos-subjects.cjs.entry.js +1 -1
- package/dist/cjs/pos-switch.cjs.entry.js +41 -7
- package/dist/collection/components/pos-app/pos-app.js +1 -1
- package/dist/collection/components/pos-container-contents/pos-container-contents.js +2 -2
- package/dist/collection/components/pos-list/pos-list.js +1 -1
- package/dist/collection/components/pos-markdown-document/pos-markdown-document.js +2 -2
- package/dist/collection/components/pos-switch/pos-case/pos-case.js +38 -0
- package/dist/collection/components/pos-switch/pos-switch.js +44 -8
- package/dist/components/index2.js +2 -2
- package/dist/components/pos-app2.js +1 -1
- package/dist/components/pos-case.js +1 -1
- package/dist/components/pos-container-contents2.js +1 -1
- package/dist/components/pos-list.js +1 -1
- package/dist/components/pos-markdown-document2.js +1 -1
- package/dist/components/pos-switch.js +1 -1
- package/dist/elements/elements.esm.js +1 -1
- package/dist/elements/p-07f69d8c.entry.js +1 -0
- package/dist/elements/{p-dc4c38c8.entry.js → p-59e18120.entry.js} +1 -1
- package/dist/elements/{p-c7032012.entry.js → p-935e8df7.entry.js} +1 -1
- package/dist/elements/{p-ab4eba43.entry.js → p-9899cefb.entry.js} +2 -2
- package/dist/elements/{p-8e76e9dc.entry.js → p-9ac2654c.entry.js} +1 -1
- package/dist/elements/{p-a1dd6b42.entry.js → p-9dbe8f72.entry.js} +1 -1
- package/dist/elements/{p-BLUiM5OK.js → p-DUt7ij35.js} +1 -1
- package/dist/elements/p-Dzr3lPEW.js +67 -0
- package/dist/elements/p-cfa86eeb.entry.js +1 -0
- package/dist/esm/elements.js +1 -1
- package/dist/esm/{index-CXK32bJz.js → index-DymdXook.js} +70 -19
- package/dist/esm/{jsonld-V2RB47OZ-BbN7F0s8.js → jsonld-V2RB47OZ-CtbtC7fM.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pos-add-literal-value_3.entry.js +1 -1
- package/dist/esm/pos-add-new-thing_32.entry.js +2 -2
- package/dist/esm/pos-container-contents.entry.js +3 -3
- package/dist/esm/pos-list.entry.js +1 -1
- package/dist/esm/pos-markdown-document.entry.js +2 -2
- package/dist/esm/pos-subjects.entry.js +1 -1
- package/dist/esm/pos-switch.entry.js +41 -7
- package/dist/types/components/pos-switch/pos-case/pos-case.d.ts +8 -0
- package/dist/types/components/pos-switch/pos-switch.d.ts +7 -3
- package/dist/types/components.d.ts +18 -0
- package/package.json +2 -2
- package/dist/elements/p-3a890f5f.entry.js +0 -1
- package/dist/elements/p-53610ccd.entry.js +0 -1
- package/dist/elements/p-DHl0QGLf.js +0 -67
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as t,h as i,a as h}from"./p-DzbCx-pP.js";import{s as o}from"./p-BW_CkW1K.js";import{s as r}from"./p-jlzl8vRd.js";import{c as e}from"./p-vFMstSdt.js";const n=class{constructor(i){s(this,i),this.subscribeResource=t(this,"pod-os:resource",7),this.subscribePodOs=t(this,"pod-os:init",7),this.fetch=!1,this.error=null,this.items=[],this.disconnected$=new e.Subject,this.receiveResource=s=>{this.items=[],this.rel&&(this.items=s.relations(this.rel).flatMap((s=>s.uris)))},this.receivePodOs=async s=>{s.store.observeFindMembers(this.ifTypeof).pipe(e.takeUntil(this.disconnected$)).subscribe((s=>this.items=s))}}componentWillLoad(){this.rel&&o(this),this.ifTypeof&&r(this);const s=this.host.querySelector("template");null==s?this.error="No template element found":this.templateString=s.innerHTML}render(){if(this.error)return this.error;const s=this.items.map((s=>i("pos-resource",{uri:s,lazy:!this.fetch,innerHTML:this.templateString,about:s})));return this.items.length>0?s:null}disconnectedCallback(){this.disconnected$.next(),this.disconnected$.
|
|
1
|
+
import{r as s,c as t,h as i,a as h}from"./p-DzbCx-pP.js";import{s as o}from"./p-BW_CkW1K.js";import{s as r}from"./p-jlzl8vRd.js";import{c as e}from"./p-vFMstSdt.js";const n=class{constructor(i){s(this,i),this.subscribeResource=t(this,"pod-os:resource",7),this.subscribePodOs=t(this,"pod-os:init",7),this.fetch=!1,this.error=null,this.items=[],this.disconnected$=new e.Subject,this.receiveResource=s=>{this.items=[],this.rel&&(this.items=s.relations(this.rel).flatMap((s=>s.uris)))},this.receivePodOs=async s=>{s.store.observeFindMembers(this.ifTypeof).pipe(e.takeUntil(this.disconnected$)).subscribe((s=>this.items=s))}}componentWillLoad(){this.rel&&o(this),this.ifTypeof&&r(this);const s=this.host.querySelector("template");null==s?this.error="No template element found":this.templateString=s.innerHTML}render(){if(this.error)return this.error;const s=this.items.map((s=>i("pos-resource",{uri:s,lazy:!this.fetch,innerHTML:this.templateString,about:s})));return this.items.length>0?s:null}disconnectedCallback(){this.disconnected$.next(),this.disconnected$.complete()}get host(){return h(this)}};export{n as pos_list}
|