@pod-os/elements 0.42.0-rc.b1cb24c.0 → 0.42.0-rc.c70a767.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/pos-app-document-viewer.cjs.entry.js +1 -0
- package/dist/cjs/pos-app-document-viewer.cjs.entry.js.map +1 -1
- package/dist/collection/apps/pos-app-document-viewer/pos-app-document-viewer.js +1 -0
- package/dist/collection/apps/pos-app-document-viewer/pos-app-document-viewer.js.map +1 -1
- package/dist/collection/test/mockResource.js +6 -0
- package/dist/collection/test/mockResource.js.map +1 -0
- package/dist/collection/test/withinShadow.js +8 -0
- package/dist/collection/test/withinShadow.js.map +1 -0
- package/dist/components/pos-app-document-viewer.js +1 -1
- package/dist/components/pos-app-document-viewer.js.map +1 -1
- package/dist/elements/elements.esm.js +1 -1
- package/dist/elements/{p-e0fbe568.entry.js → p-e1a0d3e0.entry.js} +2 -2
- package/dist/elements/{p-e0fbe568.entry.js.map → p-e1a0d3e0.entry.js.map} +1 -1
- package/dist/esm/pos-app-document-viewer.entry.js +1 -0
- package/dist/esm/pos-app-document-viewer.entry.js.map +1 -1
- package/dist/types/apps/pos-app-document-viewer/pos-app-document-viewer.d.ts +1 -1
- package/dist/types/test/mockResource.d.ts +2 -0
- package/dist/types/test/withinShadow.d.ts +100 -0
- package/package.json +2 -2
|
@@ -11,6 +11,7 @@ const PosAppDocumentViewer = class {
|
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
this.subscribeResource = index.createEvent(this, "pod-os:resource", 7);
|
|
14
|
+
this.resource = null;
|
|
14
15
|
this.receiveResource = (resource) => {
|
|
15
16
|
this.resource = resource;
|
|
16
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pos-app-document-viewer.cjs.entry.js","mappings":";;;;;AAAA,MAAM,mBAAmB,GAAG,MAAM,CAAC,kVAAkV,CAAC;;ACAtX,MAAM,cAAc,GAAG,MAAM,CAAC,oSAAoS,CAAC;;MCStT,oBAAoB,GAAA,MAAA;AALjC,IAAA,WAAA,CAAA,OAAA,EAAA;;;
|
|
1
|
+
{"file":"pos-app-document-viewer.cjs.entry.js","mappings":";;;;;AAAA,MAAM,mBAAmB,GAAG,MAAM,CAAC,kVAAkV,CAAC;;ACAtX,MAAM,cAAc,GAAG,MAAM,CAAC,oSAAoS,CAAC;;MCStT,oBAAoB,GAAA,MAAA;AALjC,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAMW,QAAA,IAAA,CAAA,QAAQ,GAAiB,IAAI;AAQtC,QAAA,IAAA,CAAA,eAAe,GAAG,CAAC,QAAe,KAAI;AACpC,YAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ;AAC1B,SAAC;AAeF;IArBC,iBAAiB,GAAA;QACfA,+BAAiB,CAAC,IAAI,CAAC;;IAOzB,MAAM,GAAA;AACJ,QAAA,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;AAClB,YAAA,OAAO,IAAI;;AAGb,QAAA,QACEC,QAACC,UAAI,EAAA,IAAA,EACHD,OAAA,CAAA,SAAA,EAAA,IAAA,EACEA,OAAA,CAAA,cAAA,EAAA,EAAc,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAA,CAAI,CAChC,CACL;;;;;;;","names":["subscribeResource","h","Host"],"sources":["src/apps/styles/default-app-layout.css?tag=pos-app-document-viewer&encapsulation=shadow","src/apps/styles/article-card.css?tag=pos-app-document-viewer&encapsulation=shadow","src/apps/pos-app-document-viewer/pos-app-document-viewer.tsx"],"sourcesContent":[":host {\n --gap-size: var(--size-1);\n display: flex;\n flex-direction: column;\n gap: var(--gap-size);\n margin: var(--gap-size);\n}\n\nsection {\n display: flex;\n flex-direction: column;\n gap: var(--gap-size);\n}\n\n@media (min-width: 640px) {\n :host {\n --gap-size: var(--size-4);\n flex-direction: row;\n flex-wrap: wrap;\n\n section {\n &:first-of-type {\n flex: 1;\n }\n }\n\n section:not(:first-of-type) {\n flex: 0 0 30%;\n }\n }\n}\n","article {\n padding: var(--size-2);\n display: flex;\n flex-direction: column;\n gap: var(--size-2);\n outline: var(--pos-border-solid);\n border-radius: var(--radius-sm);\n box-shadow: var(--shadow-md);\n background-color: var(--pos-card-background);\n\n header {\n display: flex;\n flex-direction: column;\n gap: var(--size-2);\n h1 {\n margin: 0;\n }\n }\n}\n","import { Thing } from '@pod-os/core';\nimport { Component, Event, EventEmitter, h, Host, State } from '@stencil/core';\nimport { ResourceAware, subscribeResource } from '../../components/events/ResourceAware';\n\n@Component({\n tag: 'pos-app-document-viewer',\n shadow: true,\n styleUrls: ['../styles/default-app-layout.css', '../styles/article-card.css'],\n})\nexport class PosAppDocumentViewer implements ResourceAware {\n @State() resource: Thing | null = null;\n\n @Event({ eventName: 'pod-os:resource' }) subscribeResource!: EventEmitter;\n\n componentWillLoad() {\n subscribeResource(this);\n }\n\n receiveResource = (resource: Thing) => {\n this.resource = resource;\n };\n\n render() {\n if (!this.resource) {\n return null;\n }\n\n return (\n <Host>\n <section>\n <pos-document src={this.resource.uri} />\n </section>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -2,6 +2,7 @@ import { h, Host } from "@stencil/core";
|
|
|
2
2
|
import { subscribeResource } from "../../components/events/ResourceAware";
|
|
3
3
|
export class PosAppDocumentViewer {
|
|
4
4
|
constructor() {
|
|
5
|
+
this.resource = null;
|
|
5
6
|
this.receiveResource = (resource) => {
|
|
6
7
|
this.resource = resource;
|
|
7
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pos-app-document-viewer.js","sourceRoot":"","sources":["../../../../src/apps/pos-app-document-viewer/pos-app-document-viewer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAiB,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAOzF,MAAM,OAAO,oBAAoB;IALjC;
|
|
1
|
+
{"version":3,"file":"pos-app-document-viewer.js","sourceRoot":"","sources":["../../../../src/apps/pos-app-document-viewer/pos-app-document-viewer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAiB,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAOzF,MAAM,OAAO,oBAAoB;IALjC;QAMW,aAAQ,GAAiB,IAAI,CAAC;QAQvC,oBAAe,GAAG,CAAC,QAAe,EAAE,EAAE;YACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC3B,CAAC,CAAC;KAeH;IArBC,iBAAiB;QACf,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAMD,MAAM;QACJ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,CACL,EAAC,IAAI;YACH;gBACE,oBAAc,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,GAAI,CAChC,CACL,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Thing } from '@pod-os/core';\nimport { Component, Event, EventEmitter, h, Host, State } from '@stencil/core';\nimport { ResourceAware, subscribeResource } from '../../components/events/ResourceAware';\n\n@Component({\n tag: 'pos-app-document-viewer',\n shadow: true,\n styleUrls: ['../styles/default-app-layout.css', '../styles/article-card.css'],\n})\nexport class PosAppDocumentViewer implements ResourceAware {\n @State() resource: Thing | null = null;\n\n @Event({ eventName: 'pod-os:resource' }) subscribeResource!: EventEmitter;\n\n componentWillLoad() {\n subscribeResource(this);\n }\n\n receiveResource = (resource: Thing) => {\n this.resource = resource;\n };\n\n render() {\n if (!this.resource) {\n return null;\n }\n\n return (\n <Host>\n <section>\n <pos-document src={this.resource.uri} />\n </section>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mockResource.js","sourceRoot":"","sources":["../../../src/test/mockResource.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,YAAY,CAAC,QAAe;IAC1C,QAAQ,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,CAAC,KAAU,EAAE,EAAE;QAC1D,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { Thing } from '@pod-os/core';\n\nexport function mockResource(resource: Thing) {\n document.addEventListener('pod-os:resource', (event: any) => {\n event.detail(resource);\n });\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { expect } from "@stencil/vitest";
|
|
2
|
+
import { within } from "@testing-library/dom";
|
|
3
|
+
export function withinShadow(page) {
|
|
4
|
+
expect(page.root.shadowRoot).toBeDefined();
|
|
5
|
+
const shadowRoot = page.root.shadowRoot;
|
|
6
|
+
return within(shadowRoot);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=withinShadow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withinShadow.js","sourceRoot":"","sources":["../../../src/test/withinShadow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAgB,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,UAAU,YAAY,CAAC,IAAkB;IAC7C,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,CAAC;IAC3C,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,UAAoC,CAAC;IAClE,OAAO,MAAM,CAAC,UAAU,CAAC,CAAC;AAC5B,CAAC","sourcesContent":["import { expect, RenderResult } from '@stencil/vitest';\nimport { within } from '@testing-library/dom';\n\nexport function withinShadow(page: RenderResult) {\n expect(page.root.shadowRoot).toBeDefined();\n const shadowRoot = page.root.shadowRoot as unknown as HTMLElement;\n return within(shadowRoot);\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{proxyCustomElement as e,HTMLElement as s,createEvent as o,h as t,Host as r,transformTag as i}from"@stencil/core/internal/client";import{s as n}from"./ResourceAware.js";import{d as a}from"./pos-document2.js";import{d as c}from"./pos-markdown-document2.js";const d=()=>`: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%}}}`;const p=()=>`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}}}`;const l=e(class e extends s{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.subscribeResource=o(this,"pod-os:resource",7);this.receiveResource=e=>{this.resource=e}}componentWillLoad(){n(this)}render(){if(!this.resource){return null}return t(r,null,t("section",null,t("pos-document",{src:this.resource.uri})))}static get style(){return d()+p()}},[1,"pos-app-document-viewer",{resource:[32]}]);function m(){if(typeof customElements==="undefined"){return}const e=["pos-app-document-viewer","pos-document","pos-markdown-document"];e.forEach((e=>{switch(e){case"pos-app-document-viewer":if(!customElements.get(i(e))){customElements.define(i(e),l)}break;case"pos-document":if(!customElements.get(i(e))){a()}break;case"pos-markdown-document":if(!customElements.get(i(e))){c()}break}}))}const u=l;const f=m;export{u as PosAppDocumentViewer,f as defineCustomElement};
|
|
1
|
+
import{proxyCustomElement as e,HTMLElement as s,createEvent as o,h as t,Host as r,transformTag as i}from"@stencil/core/internal/client";import{s as n}from"./ResourceAware.js";import{d as a}from"./pos-document2.js";import{d as c}from"./pos-markdown-document2.js";const d=()=>`: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%}}}`;const p=()=>`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}}}`;const l=e(class e extends s{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.subscribeResource=o(this,"pod-os:resource",7);this.resource=null;this.receiveResource=e=>{this.resource=e}}componentWillLoad(){n(this)}render(){if(!this.resource){return null}return t(r,null,t("section",null,t("pos-document",{src:this.resource.uri})))}static get style(){return d()+p()}},[1,"pos-app-document-viewer",{resource:[32]}]);function m(){if(typeof customElements==="undefined"){return}const e=["pos-app-document-viewer","pos-document","pos-markdown-document"];e.forEach((e=>{switch(e){case"pos-app-document-viewer":if(!customElements.get(i(e))){customElements.define(i(e),l)}break;case"pos-document":if(!customElements.get(i(e))){a()}break;case"pos-markdown-document":if(!customElements.get(i(e))){c()}break}}))}const u=l;const f=m;export{u as PosAppDocumentViewer,f as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=pos-app-document-viewer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["defaultAppLayoutCss","articleCardCss","PosAppDocumentViewer","__stencil_proxyCustomElement","HTMLElement","constructor","registerHost","this","
|
|
1
|
+
{"version":3,"names":["defaultAppLayoutCss","articleCardCss","PosAppDocumentViewer","__stencil_proxyCustomElement","HTMLElement","constructor","registerHost","this","resource","receiveResource","componentWillLoad","subscribeResource","render","h","Host","src","uri"],"sources":["src/apps/styles/default-app-layout.css?tag=pos-app-document-viewer&encapsulation=shadow","src/apps/styles/article-card.css?tag=pos-app-document-viewer&encapsulation=shadow","src/apps/pos-app-document-viewer/pos-app-document-viewer.tsx"],"sourcesContent":[":host {\n --gap-size: var(--size-1);\n display: flex;\n flex-direction: column;\n gap: var(--gap-size);\n margin: var(--gap-size);\n}\n\nsection {\n display: flex;\n flex-direction: column;\n gap: var(--gap-size);\n}\n\n@media (min-width: 640px) {\n :host {\n --gap-size: var(--size-4);\n flex-direction: row;\n flex-wrap: wrap;\n\n section {\n &:first-of-type {\n flex: 1;\n }\n }\n\n section:not(:first-of-type) {\n flex: 0 0 30%;\n }\n }\n}\n","article {\n padding: var(--size-2);\n display: flex;\n flex-direction: column;\n gap: var(--size-2);\n outline: var(--pos-border-solid);\n border-radius: var(--radius-sm);\n box-shadow: var(--shadow-md);\n background-color: var(--pos-card-background);\n\n header {\n display: flex;\n flex-direction: column;\n gap: var(--size-2);\n h1 {\n margin: 0;\n }\n }\n}\n","import { Thing } from '@pod-os/core';\nimport { Component, Event, EventEmitter, h, Host, State } from '@stencil/core';\nimport { ResourceAware, subscribeResource } from '../../components/events/ResourceAware';\n\n@Component({\n tag: 'pos-app-document-viewer',\n shadow: true,\n styleUrls: ['../styles/default-app-layout.css', '../styles/article-card.css'],\n})\nexport class PosAppDocumentViewer implements ResourceAware {\n @State() resource: Thing | null = null;\n\n @Event({ eventName: 'pod-os:resource' }) subscribeResource!: EventEmitter;\n\n componentWillLoad() {\n subscribeResource(this);\n }\n\n receiveResource = (resource: Thing) => {\n this.resource = resource;\n };\n\n render() {\n if (!this.resource) {\n return null;\n }\n\n return (\n <Host>\n <section>\n <pos-document src={this.resource.uri} />\n </section>\n </Host>\n );\n }\n}\n"],"mappings":"sQAAA,MAAMA,EAAsB,IAAM,qVCAlC,MAAMC,EAAiB,IAAM,uS,MCShBC,EAAoBC,EAAA,MAAAD,UAAAE,EALjC,WAAAC,CAAAC,G,qHAMWC,KAAAC,SAAyB,KAQlCD,KAAAE,gBAAmBD,IACjBD,KAAKC,SAAWA,CAAQ,CAgB3B,CArBC,iBAAAE,GACEC,EAAkBJ,K,CAOpB,MAAAK,GACE,IAAKL,KAAKC,SAAU,CAClB,OAAO,I,CAGT,OACEK,EAACC,EAAI,KACHD,EAAA,eACEA,EAAA,gBAAcE,IAAKR,KAAKC,SAASQ,O","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
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-CsdCh9hf.js";export{s as setNonce}from"./p-CsdCh9hf.js";var d=()=>{if(o.isDev&&!o.isTesting){r("Running in development mode.")}if(o.cloneNodeFix){l(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;const n=import.meta.url;const p=o.scriptDataOpts?(s||{})["data-opts"]||{}:{};if(n!==""){p.resourcesUrl=new URL(".",n).href}return e(p)};var l=e=>{const o=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return o.call(this,e)}const s=o.call(this,false);const r=this.childNodes;if(e){for(let e=0;e<r.length;e++){if(r[e].nodeType!==2){s.appendChild(r[e].cloneNode(true))}}}return s}};d().then((async e=>{await n();return p([["p-212b5494",[[1,"pos-app-generic"]]],["p-e815f18b",[[1,"pos-app-ldp-container"]]],["p-6b4b4f4e",[[1,"pos-app-rdf-document"]]],["p-151d1873",[[1,"pos-app-image-viewer",{resource:[32]}]]],["p-159f06a1",[[1,"pos-tool-attachments",{os:[32],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-CsdCh9hf.js";export{s as setNonce}from"./p-CsdCh9hf.js";var d=()=>{if(o.isDev&&!o.isTesting){r("Running in development mode.")}if(o.cloneNodeFix){l(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;const n=import.meta.url;const p=o.scriptDataOpts?(s||{})["data-opts"]||{}:{};if(n!==""){p.resourcesUrl=new URL(".",n).href}return e(p)};var l=e=>{const o=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return o.call(this,e)}const s=o.call(this,false);const r=this.childNodes;if(e){for(let e=0;e<r.length;e++){if(r[e].nodeType!==2){s.appendChild(r[e].cloneNode(true))}}}return s}};d().then((async e=>{await n();return p([["p-212b5494",[[1,"pos-app-generic"]]],["p-e815f18b",[[1,"pos-app-ldp-container"]]],["p-6b4b4f4e",[[1,"pos-app-rdf-document"]]],["p-151d1873",[[1,"pos-app-image-viewer",{resource:[32]}]]],["p-159f06a1",[[1,"pos-tool-attachments",{os:[32],resource:[32]}]]],["p-e1a0d3e0",[[1,"pos-app-document-viewer",{resource:[32]}]]],["p-88d1bb98",[[0,"pos-list",{rel:[1],ifTypeof:[1,"if-typeof"],fetch:[4],error:[32],os:[32],resource:[32],items:[32],templateString:[32]}]]],["p-55b12d41",[[0,"pos-case",{ifTypeof:[1,"if-typeof"],ifProperty:[1,"if-property"],ifRev:[1,"if-rev"],not:[4],else:[4],error:[32]}]]],["p-de5aaf47",[[0,"pos-switch",{error:[32],resource:[32],caseElements:[32],types:[32],relations:[32],reverseRelations:[32]}]]],["p-da97fbed",[[1,"pos-value",{predicate:[513],resource:[32],value:[32]},null,{predicate:[{observeAnyValue:0}]}]]],["p-9124700c",[[1,"pos-attachments",{resource:[32],attachments:[32],addToList:[64]}]]],["p-9c0db679",[[1,"pos-container-contents",{container:[32],contents:[32],loading:[32],createNewItem:[32]},[[0,"keydown","handleKeyDown"]]]]],["p-1ec1b502",[[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-17778c77",[[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",{description:[32]}],[1,"pos-label",{label:[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-1076a33c",[[1,"pos-relations",{data:[32]}],[1,"pos-reverse-relations",{data:[32]}]]],["p-49a8051d",[[1,"pos-subjects",{data:[32]}]]],["p-a405d5af",[[1,"pos-add-relation",{os:[32],resource:[32],selectedTermUri:[32],currentValue:[32]}]]],["p-3ecb2ad4",[[1,"pos-markdown-document",{file:[16],saveStatus:[1,"save-status"],editable:[4],markdown:[32],isModified:[32],isEditing:[32],startEditing:[64],stopEditing:[64]}]]],["p-1aada32f",[[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-24bfee13",[[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)}));
|
|
2
2
|
//# sourceMappingURL=elements.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as s,c as i,h as r,H as e}from"./p-CsdCh9hf.js";import{s as o}from"./p-BW_CkW1K.js";const a=()=>`: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%}}}`;const t=()=>`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}}}`;const n=class{constructor(r){s(this,r);this.subscribeResource=i(this,"pod-os:resource",7);this.receiveResource=s=>{this.resource=s}}componentWillLoad(){o(this)}render(){if(!this.resource){return null}return r(e,null,r("section",null,r("pos-document",{src:this.resource.uri})))}};n.style=a()+t();export{n as pos_app_document_viewer};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as s,c as i,h as r,H as e}from"./p-CsdCh9hf.js";import{s as o}from"./p-BW_CkW1K.js";const a=()=>`: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%}}}`;const t=()=>`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}}}`;const n=class{constructor(r){s(this,r);this.subscribeResource=i(this,"pod-os:resource",7);this.resource=null;this.receiveResource=s=>{this.resource=s}}componentWillLoad(){o(this)}render(){if(!this.resource){return null}return r(e,null,r("section",null,r("pos-document",{src:this.resource.uri})))}};n.style=a()+t();export{n as pos_app_document_viewer};
|
|
2
|
+
//# sourceMappingURL=p-e1a0d3e0.entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["defaultAppLayoutCss","articleCardCss","PosAppDocumentViewer","constructor","hostRef","this","
|
|
1
|
+
{"version":3,"names":["defaultAppLayoutCss","articleCardCss","PosAppDocumentViewer","constructor","hostRef","this","resource","receiveResource","componentWillLoad","subscribeResource","render","h","Host","src","uri"],"sources":["src/apps/styles/default-app-layout.css?tag=pos-app-document-viewer&encapsulation=shadow","src/apps/styles/article-card.css?tag=pos-app-document-viewer&encapsulation=shadow","src/apps/pos-app-document-viewer/pos-app-document-viewer.tsx"],"sourcesContent":[":host {\n --gap-size: var(--size-1);\n display: flex;\n flex-direction: column;\n gap: var(--gap-size);\n margin: var(--gap-size);\n}\n\nsection {\n display: flex;\n flex-direction: column;\n gap: var(--gap-size);\n}\n\n@media (min-width: 640px) {\n :host {\n --gap-size: var(--size-4);\n flex-direction: row;\n flex-wrap: wrap;\n\n section {\n &:first-of-type {\n flex: 1;\n }\n }\n\n section:not(:first-of-type) {\n flex: 0 0 30%;\n }\n }\n}\n","article {\n padding: var(--size-2);\n display: flex;\n flex-direction: column;\n gap: var(--size-2);\n outline: var(--pos-border-solid);\n border-radius: var(--radius-sm);\n box-shadow: var(--shadow-md);\n background-color: var(--pos-card-background);\n\n header {\n display: flex;\n flex-direction: column;\n gap: var(--size-2);\n h1 {\n margin: 0;\n }\n }\n}\n","import { Thing } from '@pod-os/core';\nimport { Component, Event, EventEmitter, h, Host, State } from '@stencil/core';\nimport { ResourceAware, subscribeResource } from '../../components/events/ResourceAware';\n\n@Component({\n tag: 'pos-app-document-viewer',\n shadow: true,\n styleUrls: ['../styles/default-app-layout.css', '../styles/article-card.css'],\n})\nexport class PosAppDocumentViewer implements ResourceAware {\n @State() resource: Thing | null = null;\n\n @Event({ eventName: 'pod-os:resource' }) subscribeResource!: EventEmitter;\n\n componentWillLoad() {\n subscribeResource(this);\n }\n\n receiveResource = (resource: Thing) => {\n this.resource = resource;\n };\n\n render() {\n if (!this.resource) {\n return null;\n }\n\n return (\n <Host>\n <section>\n <pos-document src={this.resource.uri} />\n </section>\n </Host>\n );\n }\n}\n"],"mappings":"6FAAA,MAAMA,EAAsB,IAAM,qVCAlC,MAAMC,EAAiB,IAAM,uS,MCShBC,EAAoB,MALjC,WAAAC,CAAAC,G,6DAMWC,KAAAC,SAAyB,KAQlCD,KAAAE,gBAAmBD,IACjBD,KAAKC,SAAWA,CAAQ,CAgB3B,CArBC,iBAAAE,GACEC,EAAkBJ,K,CAOpB,MAAAK,GACE,IAAKL,KAAKC,SAAU,CAClB,OAAO,I,CAGT,OACEK,EAACC,EAAI,KACHD,EAAA,eACEA,EAAA,gBAAcE,IAAKR,KAAKC,SAASQ,O","ignoreList":[]}
|
|
@@ -9,6 +9,7 @@ const PosAppDocumentViewer = class {
|
|
|
9
9
|
constructor(hostRef) {
|
|
10
10
|
registerInstance(this, hostRef);
|
|
11
11
|
this.subscribeResource = createEvent(this, "pod-os:resource", 7);
|
|
12
|
+
this.resource = null;
|
|
12
13
|
this.receiveResource = (resource) => {
|
|
13
14
|
this.resource = resource;
|
|
14
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pos-app-document-viewer.entry.js","sources":["src/apps/styles/default-app-layout.css?tag=pos-app-document-viewer&encapsulation=shadow","src/apps/styles/article-card.css?tag=pos-app-document-viewer&encapsulation=shadow","src/apps/pos-app-document-viewer/pos-app-document-viewer.tsx"],"sourcesContent":[":host {\n --gap-size: var(--size-1);\n display: flex;\n flex-direction: column;\n gap: var(--gap-size);\n margin: var(--gap-size);\n}\n\nsection {\n display: flex;\n flex-direction: column;\n gap: var(--gap-size);\n}\n\n@media (min-width: 640px) {\n :host {\n --gap-size: var(--size-4);\n flex-direction: row;\n flex-wrap: wrap;\n\n section {\n &:first-of-type {\n flex: 1;\n }\n }\n\n section:not(:first-of-type) {\n flex: 0 0 30%;\n }\n }\n}\n","article {\n padding: var(--size-2);\n display: flex;\n flex-direction: column;\n gap: var(--size-2);\n outline: var(--pos-border-solid);\n border-radius: var(--radius-sm);\n box-shadow: var(--shadow-md);\n background-color: var(--pos-card-background);\n\n header {\n display: flex;\n flex-direction: column;\n gap: var(--size-2);\n h1 {\n margin: 0;\n }\n }\n}\n","import { Thing } from '@pod-os/core';\nimport { Component, Event, EventEmitter, h, Host, State } from '@stencil/core';\nimport { ResourceAware, subscribeResource } from '../../components/events/ResourceAware';\n\n@Component({\n tag: 'pos-app-document-viewer',\n shadow: true,\n styleUrls: ['../styles/default-app-layout.css', '../styles/article-card.css'],\n})\nexport class PosAppDocumentViewer implements ResourceAware {\n @State() resource: Thing;\n\n @Event({ eventName: 'pod-os:resource' }) subscribeResource
|
|
1
|
+
{"version":3,"file":"pos-app-document-viewer.entry.js","sources":["src/apps/styles/default-app-layout.css?tag=pos-app-document-viewer&encapsulation=shadow","src/apps/styles/article-card.css?tag=pos-app-document-viewer&encapsulation=shadow","src/apps/pos-app-document-viewer/pos-app-document-viewer.tsx"],"sourcesContent":[":host {\n --gap-size: var(--size-1);\n display: flex;\n flex-direction: column;\n gap: var(--gap-size);\n margin: var(--gap-size);\n}\n\nsection {\n display: flex;\n flex-direction: column;\n gap: var(--gap-size);\n}\n\n@media (min-width: 640px) {\n :host {\n --gap-size: var(--size-4);\n flex-direction: row;\n flex-wrap: wrap;\n\n section {\n &:first-of-type {\n flex: 1;\n }\n }\n\n section:not(:first-of-type) {\n flex: 0 0 30%;\n }\n }\n}\n","article {\n padding: var(--size-2);\n display: flex;\n flex-direction: column;\n gap: var(--size-2);\n outline: var(--pos-border-solid);\n border-radius: var(--radius-sm);\n box-shadow: var(--shadow-md);\n background-color: var(--pos-card-background);\n\n header {\n display: flex;\n flex-direction: column;\n gap: var(--size-2);\n h1 {\n margin: 0;\n }\n }\n}\n","import { Thing } from '@pod-os/core';\nimport { Component, Event, EventEmitter, h, Host, State } from '@stencil/core';\nimport { ResourceAware, subscribeResource } from '../../components/events/ResourceAware';\n\n@Component({\n tag: 'pos-app-document-viewer',\n shadow: true,\n styleUrls: ['../styles/default-app-layout.css', '../styles/article-card.css'],\n})\nexport class PosAppDocumentViewer implements ResourceAware {\n @State() resource: Thing | null = null;\n\n @Event({ eventName: 'pod-os:resource' }) subscribeResource!: EventEmitter;\n\n componentWillLoad() {\n subscribeResource(this);\n }\n\n receiveResource = (resource: Thing) => {\n this.resource = resource;\n };\n\n render() {\n if (!this.resource) {\n return null;\n }\n\n return (\n <Host>\n <section>\n <pos-document src={this.resource.uri} />\n </section>\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;;AAAA,MAAM,mBAAmB,GAAG,MAAM,CAAC,kVAAkV,CAAC;;ACAtX,MAAM,cAAc,GAAG,MAAM,CAAC,oSAAoS,CAAC;;MCStT,oBAAoB,GAAA,MAAA;AALjC,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAMW,QAAA,IAAA,CAAA,QAAQ,GAAiB,IAAI;AAQtC,QAAA,IAAA,CAAA,eAAe,GAAG,CAAC,QAAe,KAAI;AACpC,YAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ;AAC1B,SAAC;AAeF;IArBC,iBAAiB,GAAA;QACf,iBAAiB,CAAC,IAAI,CAAC;;IAOzB,MAAM,GAAA;AACJ,QAAA,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;AAClB,YAAA,OAAO,IAAI;;AAGb,QAAA,QACE,EAAC,IAAI,EAAA,IAAA,EACH,CAAA,CAAA,SAAA,EAAA,IAAA,EACE,CAAA,CAAA,cAAA,EAAA,EAAc,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAA,CAAI,CAChC,CACL;;;;;;;"}
|
|
@@ -2,7 +2,7 @@ import { Thing } from '@pod-os/core';
|
|
|
2
2
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
3
3
|
import { ResourceAware } from '../../components/events/ResourceAware';
|
|
4
4
|
export declare class PosAppDocumentViewer implements ResourceAware {
|
|
5
|
-
resource: Thing;
|
|
5
|
+
resource: Thing | null;
|
|
6
6
|
subscribeResource: EventEmitter;
|
|
7
7
|
componentWillLoad(): void;
|
|
8
8
|
receiveResource: (resource: Thing) => void;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { RenderResult } from '@stencil/vitest';
|
|
2
|
+
export declare function withinShadow(page: RenderResult): {
|
|
3
|
+
getByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions): ReturnType<import("@testing-library/dom").GetByText<T>>;
|
|
4
|
+
getAllByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions): ReturnType<import("@testing-library/dom").AllByText<T>>;
|
|
5
|
+
queryByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions): ReturnType<import("@testing-library/dom").QueryByText<T>>;
|
|
6
|
+
queryAllByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions): ReturnType<import("@testing-library/dom").AllByText<T>>;
|
|
7
|
+
findByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions): ReturnType<import("@testing-library/dom").FindByText<T>>;
|
|
8
|
+
findAllByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions): ReturnType<import("@testing-library/dom").FindAllByText<T>>;
|
|
9
|
+
getByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").GetByBoundAttribute<T>>;
|
|
10
|
+
getAllByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>;
|
|
11
|
+
queryByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").QueryByBoundAttribute<T>>;
|
|
12
|
+
queryAllByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>;
|
|
13
|
+
findByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions): ReturnType<import("@testing-library/dom").FindByBoundAttribute<T>>;
|
|
14
|
+
findAllByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions): ReturnType<import("@testing-library/dom").FindAllByBoundAttribute<T>>;
|
|
15
|
+
getByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions): ReturnType<import("@testing-library/dom").GetByText<T>>;
|
|
16
|
+
getAllByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions): ReturnType<import("@testing-library/dom").AllByText<T>>;
|
|
17
|
+
queryByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions): ReturnType<import("@testing-library/dom").QueryByText<T>>;
|
|
18
|
+
queryAllByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions): ReturnType<import("@testing-library/dom").AllByText<T>>;
|
|
19
|
+
findByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions): ReturnType<import("@testing-library/dom").FindByText<T>>;
|
|
20
|
+
findAllByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions): ReturnType<import("@testing-library/dom").FindAllByText<T>>;
|
|
21
|
+
getByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").GetByBoundAttribute<T>>;
|
|
22
|
+
getAllByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>;
|
|
23
|
+
queryByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").QueryByBoundAttribute<T>>;
|
|
24
|
+
queryAllByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>;
|
|
25
|
+
findByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions): ReturnType<import("@testing-library/dom").FindByBoundAttribute<T>>;
|
|
26
|
+
findAllByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions): ReturnType<import("@testing-library/dom").FindAllByBoundAttribute<T>>;
|
|
27
|
+
getByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").GetByBoundAttribute<T>>;
|
|
28
|
+
getAllByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>;
|
|
29
|
+
queryByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").QueryByBoundAttribute<T>>;
|
|
30
|
+
queryAllByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>;
|
|
31
|
+
findByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions): ReturnType<import("@testing-library/dom").FindByBoundAttribute<T>>;
|
|
32
|
+
findAllByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions): ReturnType<import("@testing-library/dom").FindAllByBoundAttribute<T>>;
|
|
33
|
+
getByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").GetByBoundAttribute<T>>;
|
|
34
|
+
getAllByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>;
|
|
35
|
+
queryByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").QueryByBoundAttribute<T>>;
|
|
36
|
+
queryAllByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>;
|
|
37
|
+
findByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions): ReturnType<import("@testing-library/dom").FindByBoundAttribute<T>>;
|
|
38
|
+
findAllByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions): ReturnType<import("@testing-library/dom").FindAllByBoundAttribute<T>>;
|
|
39
|
+
getByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions): ReturnType<import("@testing-library/dom").GetByRole<T>>;
|
|
40
|
+
getAllByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions): ReturnType<import("@testing-library/dom").AllByRole<T>>;
|
|
41
|
+
queryByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions): ReturnType<import("@testing-library/dom").QueryByRole<T>>;
|
|
42
|
+
queryAllByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions): ReturnType<import("@testing-library/dom").AllByRole<T>>;
|
|
43
|
+
findByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions): ReturnType<import("@testing-library/dom").FindByRole<T>>;
|
|
44
|
+
findAllByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions): ReturnType<import("@testing-library/dom").FindAllByRole<T>>;
|
|
45
|
+
getByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").GetByBoundAttribute<T>>;
|
|
46
|
+
getAllByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>;
|
|
47
|
+
queryByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").QueryByBoundAttribute<T>>;
|
|
48
|
+
queryAllByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions): ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>;
|
|
49
|
+
findByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions): ReturnType<import("@testing-library/dom").FindByBoundAttribute<T>>;
|
|
50
|
+
findAllByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions): ReturnType<import("@testing-library/dom").FindAllByBoundAttribute<T>>;
|
|
51
|
+
} & {
|
|
52
|
+
getByLabelText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions) => HTMLElement;
|
|
53
|
+
getAllByLabelText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions) => HTMLElement[];
|
|
54
|
+
queryByLabelText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions) => HTMLElement;
|
|
55
|
+
queryAllByLabelText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions) => HTMLElement[];
|
|
56
|
+
findByLabelText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions) => Promise<HTMLElement>;
|
|
57
|
+
findAllByLabelText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions) => Promise<HTMLElement[]>;
|
|
58
|
+
getByPlaceholderText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement;
|
|
59
|
+
getAllByPlaceholderText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement[];
|
|
60
|
+
queryByPlaceholderText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement;
|
|
61
|
+
queryAllByPlaceholderText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement[];
|
|
62
|
+
findByPlaceholderText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions) => Promise<HTMLElement>;
|
|
63
|
+
findAllByPlaceholderText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions) => Promise<HTMLElement[]>;
|
|
64
|
+
getByText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions) => HTMLElement;
|
|
65
|
+
getAllByText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions) => HTMLElement[];
|
|
66
|
+
queryByText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions) => HTMLElement;
|
|
67
|
+
queryAllByText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions) => HTMLElement[];
|
|
68
|
+
findByText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions) => Promise<HTMLElement>;
|
|
69
|
+
findAllByText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions) => Promise<HTMLElement[]>;
|
|
70
|
+
getByAltText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement;
|
|
71
|
+
getAllByAltText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement[];
|
|
72
|
+
queryByAltText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement;
|
|
73
|
+
queryAllByAltText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement[];
|
|
74
|
+
findByAltText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions) => Promise<HTMLElement>;
|
|
75
|
+
findAllByAltText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions) => Promise<HTMLElement[]>;
|
|
76
|
+
getByTitle: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement;
|
|
77
|
+
getAllByTitle: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement[];
|
|
78
|
+
queryByTitle: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement;
|
|
79
|
+
queryAllByTitle: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement[];
|
|
80
|
+
findByTitle: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions) => Promise<HTMLElement>;
|
|
81
|
+
findAllByTitle: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions) => Promise<HTMLElement[]>;
|
|
82
|
+
getByDisplayValue: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement;
|
|
83
|
+
getAllByDisplayValue: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement[];
|
|
84
|
+
queryByDisplayValue: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement;
|
|
85
|
+
queryAllByDisplayValue: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement[];
|
|
86
|
+
findByDisplayValue: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions) => Promise<HTMLElement>;
|
|
87
|
+
findAllByDisplayValue: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions) => Promise<HTMLElement[]>;
|
|
88
|
+
getByRole: (role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions) => HTMLElement;
|
|
89
|
+
getAllByRole: (role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions) => HTMLElement[];
|
|
90
|
+
queryByRole: (role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions) => HTMLElement;
|
|
91
|
+
queryAllByRole: (role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions) => HTMLElement[];
|
|
92
|
+
findByRole: (role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions) => Promise<HTMLElement>;
|
|
93
|
+
findAllByRole: (role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions) => Promise<HTMLElement[]>;
|
|
94
|
+
getByTestId: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement;
|
|
95
|
+
getAllByTestId: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement[];
|
|
96
|
+
queryByTestId: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement;
|
|
97
|
+
queryAllByTestId: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions) => HTMLElement[];
|
|
98
|
+
findByTestId: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions) => Promise<HTMLElement>;
|
|
99
|
+
findAllByTestId: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions, waitForElementOptions?: import("@testing-library/dom").waitForOptions) => Promise<HTMLElement[]>;
|
|
100
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pod-os/elements",
|
|
3
|
-
"version": "0.42.0-rc.
|
|
3
|
+
"version": "0.42.0-rc.c70a767.0",
|
|
4
4
|
"description": "Custom elements for usage with Solid Pods",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"generate": "stencil generate"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@pod-os/core": "v0.31.0-rc.
|
|
29
|
+
"@pod-os/core": "v0.31.0-rc.c70a767.0",
|
|
30
30
|
"@shoelace-style/shoelace": "^2.20.1",
|
|
31
31
|
"@stencil/core": "^4.43.2",
|
|
32
32
|
"@stencil/store": "^2.2.2",
|