@pod-os/elements 0.41.0-rc.fcadbb6.0 → 0.41.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/{chunk.URTPIBTY-CyUQzrtC.js → chunk.URTPIBTY-C9cOc4B-.js} +2 -2
- package/dist/cjs/{chunk.XQ2OKYYA-Dfzydh50.js → chunk.XQ2OKYYA-CTZvRtz3.js} +3 -3
- package/dist/cjs/{chunk.ZGGPD2XJ-BhNheC5q.js → chunk.ZGGPD2XJ-BvGHEYp6.js} +1 -1
- package/dist/cjs/{class-map-DFvbJjpM.js → class-map-C9P5WsLw.js} +1 -1
- package/dist/cjs/elements.cjs.js +2 -2
- package/dist/cjs/{index-BP03J2RA.js → index-BPvAwpRj.js} +137 -33
- package/dist/cjs/{index-CFcC3IGM.js → index-CjKppELa.js} +2 -2
- package/dist/cjs/{jsonld-V2RB47OZ-B6QDxKa1.js → jsonld-V2RB47OZ-C8WVLsWC.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/pos-add-literal-value_3.cjs.entry.js +5 -5
- package/dist/cjs/pos-add-new-thing_32.cjs.entry.js +27 -10
- package/dist/cjs/pos-add-relation.cjs.entry.js +3 -3
- package/dist/cjs/pos-app-document-viewer.cjs.entry.js +1 -1
- package/dist/cjs/pos-app-generic.cjs.entry.js +1 -1
- package/dist/cjs/pos-app-image-viewer.cjs.entry.js +1 -1
- package/dist/cjs/pos-app-ldp-container.cjs.entry.js +1 -1
- package/dist/cjs/pos-app-rdf-document.cjs.entry.js +1 -1
- package/dist/cjs/pos-attachments.cjs.entry.js +1 -1
- package/dist/cjs/pos-case.cjs.entry.js +1 -1
- package/dist/cjs/pos-container-contents.cjs.entry.js +2 -2
- package/dist/cjs/pos-container-item_3.cjs.entry.js +4 -4
- package/dist/cjs/pos-document.cjs.entry.js +4 -4
- package/dist/cjs/pos-list.cjs.entry.js +1 -1
- package/dist/cjs/pos-markdown-document.cjs.entry.js +412 -122
- package/dist/cjs/pos-relations_2.cjs.entry.js +1 -1
- package/dist/cjs/pos-subjects.cjs.entry.js +2 -2
- package/dist/cjs/pos-switch.cjs.entry.js +1 -1
- package/dist/cjs/pos-tool-attachments.cjs.entry.js +1 -1
- package/dist/cjs/pos-value.cjs.entry.js +22 -2
- package/dist/collection/components/pos-description/pos-description.js +18 -3
- package/dist/collection/components/pos-label/pos-label.js +15 -4
- package/dist/collection/components/pos-value/pos-value.js +27 -4
- package/dist/components/index2.js +2 -2
- package/dist/components/pos-description2.js +1 -1
- package/dist/components/pos-label2.js +1 -1
- package/dist/components/pos-markdown-document2.js +1 -1
- package/dist/components/pos-value.js +1 -1
- package/dist/custom-elements.json +5 -3
- package/dist/elements/elements.esm.js +1 -1
- package/dist/elements/{p-33783890.entry.js → p-1b8c9b61.entry.js} +1 -1
- package/dist/elements/p-1bcdde10.entry.js +1 -0
- package/dist/elements/{p-2f122da6.entry.js → p-1e98efdc.entry.js} +1 -1
- package/dist/elements/{p-3ef3a9a9.entry.js → p-380d72c2.entry.js} +1 -1
- package/dist/elements/{p-31370224.entry.js → p-440a8508.entry.js} +1 -1
- package/dist/elements/{p-aca646a4.entry.js → p-4d349a89.entry.js} +1 -1
- package/dist/elements/{p-a234b3fe.entry.js → p-52443feb.entry.js} +1 -1
- package/dist/elements/{p-513f7548.entry.js → p-641e64fd.entry.js} +1 -1
- package/dist/elements/{p-DqO-cIHe.js → p-7TsXf0Xj.js} +1 -1
- package/dist/elements/{p-a78df72b.entry.js → p-941b9b51.entry.js} +1 -1
- package/dist/elements/{p-5506bf9a.entry.js → p-9b5c45b6.entry.js} +1 -1
- package/dist/elements/{p-DPNKR_cm.js → p-BKLehMby.js} +5 -5
- package/dist/elements/p-BzjgviTt.js +67 -0
- package/dist/elements/{p-DO6v4X9H.js → p-C-Ke6Sdx.js} +3 -3
- package/dist/elements/{p-spEUIGXI.js → p-CsdCh9hf.js} +1 -1
- package/dist/elements/{p-Bz2zblgU.js → p-KLP10Ef6.js} +7 -7
- package/dist/elements/{p-d31c55b9.entry.js → p-a62af5eb.entry.js} +1 -1
- package/dist/elements/{p-1e0bd264.entry.js → p-b30e9b9c.entry.js} +9 -9
- package/dist/elements/{p-5f8df3c2.entry.js → p-c1cb97ef.entry.js} +1 -1
- package/dist/elements/p-c60dc303.entry.js +1 -0
- package/dist/elements/{p-c4034954.entry.js → p-c697bb3c.entry.js} +1 -1
- package/dist/elements/{p-0febf76e.entry.js → p-c83d76f9.entry.js} +1 -1
- package/dist/elements/{p-4fa32d10.entry.js → p-ccfbad21.entry.js} +1 -1
- package/dist/elements/{p-e4eae182.entry.js → p-eadbef6c.entry.js} +1 -1
- package/dist/elements/p-f26842e5.entry.js +1 -0
- package/dist/elements/{p-17d63fec.entry.js → p-f57e26b7.entry.js} +1 -1
- package/dist/elements/{p-DpbuT47x.js → p-jSCnU8fW.js} +1 -1
- package/dist/esm/{chunk.URTPIBTY-DGDKVdvN.js → chunk.URTPIBTY-CndE5cVS.js} +2 -2
- package/dist/esm/{chunk.XQ2OKYYA-DY8d9BRU.js → chunk.XQ2OKYYA-BBXcL00i.js} +3 -3
- package/dist/esm/{chunk.ZGGPD2XJ-CLV8PNGL.js → chunk.ZGGPD2XJ-DGIJXk11.js} +1 -1
- package/dist/esm/{class-map-CtuZET5H.js → class-map-BaV3g1im.js} +1 -1
- package/dist/esm/elements.js +3 -3
- package/dist/esm/{index-CMbRpNym.js → index-CmKOSDim.js} +137 -33
- package/dist/esm/{index-spEUIGXI.js → index-CsdCh9hf.js} +1 -1
- package/dist/esm/{jsonld-V2RB47OZ-zn531VHn.js → jsonld-V2RB47OZ-CIDz9zb9.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/pos-add-literal-value_3.entry.js +5 -5
- package/dist/esm/pos-add-new-thing_32.entry.js +27 -10
- package/dist/esm/pos-add-relation.entry.js +3 -3
- package/dist/esm/pos-app-document-viewer.entry.js +1 -1
- package/dist/esm/pos-app-generic.entry.js +1 -1
- package/dist/esm/pos-app-image-viewer.entry.js +1 -1
- package/dist/esm/pos-app-ldp-container.entry.js +1 -1
- package/dist/esm/pos-app-rdf-document.entry.js +1 -1
- package/dist/esm/pos-attachments.entry.js +1 -1
- package/dist/esm/pos-case.entry.js +1 -1
- package/dist/esm/pos-container-contents.entry.js +2 -2
- package/dist/esm/pos-container-item_3.entry.js +4 -4
- package/dist/esm/pos-document.entry.js +4 -4
- package/dist/esm/pos-list.entry.js +1 -1
- package/dist/esm/pos-markdown-document.entry.js +412 -122
- package/dist/esm/pos-relations_2.entry.js +1 -1
- package/dist/esm/pos-subjects.entry.js +2 -2
- package/dist/esm/pos-switch.entry.js +1 -1
- package/dist/esm/pos-tool-attachments.entry.js +1 -1
- package/dist/esm/pos-value.entry.js +22 -2
- package/dist/types/components/pos-description/pos-description.d.ts +9 -2
- package/dist/types/components/pos-label/pos-label.d.ts +6 -2
- package/dist/types/components/pos-value/pos-value.d.ts +7 -2
- package/dist/types/components.d.ts +32 -8
- package/package.json +7 -7
- package/dist/elements/p-624503dd.entry.js +0 -1
- package/dist/elements/p-d6e9d178.entry.js +0 -1
- package/dist/elements/p-f9c10964.entry.js +0 -1
- package/dist/elements/p-sVi8GCz5.js +0 -67
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CsdCh9hf.js';
|
|
2
2
|
import { s as subscribeResource } from './ResourceAware-BW_CkW1K.js';
|
|
3
3
|
|
|
4
4
|
const posRelationsCss = () => `: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}`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
2
|
-
import { R as RdfDocument } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-CsdCh9hf.js';
|
|
2
|
+
import { R as RdfDocument } from './index-CmKOSDim.js';
|
|
3
3
|
import { s as subscribeResource } from './ResourceAware-BW_CkW1K.js';
|
|
4
4
|
|
|
5
5
|
const posSubjectsCss = () => `: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)}ul{display:flex;flex-direction:column;gap:var(--size-2);margin:0;padding:0;li{border:var(--size-px) solid var(--border-color);padding:var(--size-4);list-style-type:none;&:nth-child(even){background-color:var(--background-color-even)}&:nth-child(odd){background-color:var(--background-color-odd)}}}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CsdCh9hf.js';
|
|
2
2
|
import { s as subscribeResource } from './ResourceAware-BW_CkW1K.js';
|
|
3
3
|
import { c as cjsExports } from './index-vFMstSdt.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CsdCh9hf.js';
|
|
2
2
|
import { u as usePodOS } from './usePodOS-D0uCfr1-.js';
|
|
3
3
|
import { u as useResource } from './useResource-yVO4JQ9P.js';
|
|
4
4
|
|
|
@@ -1,20 +1,40 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent } from './index-CsdCh9hf.js';
|
|
2
2
|
import { s as subscribeResource } from './ResourceAware-BW_CkW1K.js';
|
|
3
|
+
import { c as cjsExports } from './index-vFMstSdt.js';
|
|
3
4
|
|
|
4
5
|
const PosValue = class {
|
|
5
6
|
constructor(hostRef) {
|
|
6
7
|
registerInstance(this, hostRef);
|
|
7
8
|
this.subscribeResource = createEvent(this, "pod-os:resource", 7);
|
|
9
|
+
this.disconnected$ = new cjsExports.Subject();
|
|
8
10
|
this.receiveResource = (resource) => {
|
|
9
11
|
this.resource = resource;
|
|
12
|
+
this.observeAnyValue();
|
|
10
13
|
};
|
|
11
14
|
}
|
|
12
15
|
componentWillLoad() {
|
|
13
16
|
subscribeResource(this);
|
|
14
17
|
}
|
|
18
|
+
observeAnyValue() {
|
|
19
|
+
this.disconnected$.next();
|
|
20
|
+
this.resource
|
|
21
|
+
.observeAnyValue(this.predicate)
|
|
22
|
+
.pipe(cjsExports.takeUntil(this.disconnected$))
|
|
23
|
+
.subscribe(value => (this.value = value));
|
|
24
|
+
}
|
|
15
25
|
render() {
|
|
16
|
-
|
|
26
|
+
var _a;
|
|
27
|
+
return (_a = this.value) !== null && _a !== void 0 ? _a : null;
|
|
28
|
+
}
|
|
29
|
+
disconnectedCallback() {
|
|
30
|
+
this.disconnected$.next();
|
|
31
|
+
this.disconnected$.complete();
|
|
17
32
|
}
|
|
33
|
+
static get watchers() { return {
|
|
34
|
+
"predicate": [{
|
|
35
|
+
"observeAnyValue": 0
|
|
36
|
+
}]
|
|
37
|
+
}; }
|
|
18
38
|
};
|
|
19
39
|
|
|
20
40
|
export { PosValue as pos_value };
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { Thing } from '@pod-os/core';
|
|
2
2
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
3
3
|
import { ResourceAware } from '../events/ResourceAware';
|
|
4
|
+
/**
|
|
5
|
+
* Displays a description of the resource, as provided by [Thing.description()](https://pod-os.org/reference/core/classes/thing/#description).
|
|
6
|
+
*
|
|
7
|
+
* Re-renders when data in the store changes using [Thing.observeDescription()](https://pod-os.org/reference/core/classes/thing/#observeDescription).
|
|
8
|
+
*/
|
|
4
9
|
export declare class PosDescription implements ResourceAware {
|
|
5
|
-
|
|
10
|
+
description: string;
|
|
6
11
|
subscribeResource: EventEmitter;
|
|
12
|
+
private readonly disconnected$;
|
|
7
13
|
componentWillLoad(): void;
|
|
8
14
|
receiveResource: (resource: Thing) => void;
|
|
9
|
-
render():
|
|
15
|
+
render(): string;
|
|
16
|
+
disconnectedCallback(): void;
|
|
10
17
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { Thing } from '@pod-os/core';
|
|
2
2
|
import { ResourceAware, ResourceEventEmitter } from '../events/ResourceAware';
|
|
3
3
|
/**
|
|
4
|
-
* Displays a human-readable label of the resource, provided by [Thing.label()](https://pod-os.org/reference/core/classes/thing/#label)
|
|
4
|
+
* Displays a human-readable label of the resource, as provided by [Thing.label()](https://pod-os.org/reference/core/classes/thing/#label).
|
|
5
|
+
*
|
|
6
|
+
* Re-renders when data in the store changes using [Thing.observeLabel()](https://pod-os.org/reference/core/classes/thing/#observeLabel).
|
|
5
7
|
*/
|
|
6
8
|
export declare class PosLabel implements ResourceAware {
|
|
7
|
-
|
|
9
|
+
label: string;
|
|
8
10
|
subscribeResource: ResourceEventEmitter;
|
|
11
|
+
private readonly disconnected$;
|
|
9
12
|
componentWillLoad(): void;
|
|
10
13
|
receiveResource: (resource: Thing) => void;
|
|
11
14
|
render(): string;
|
|
15
|
+
disconnectedCallback(): void;
|
|
12
16
|
}
|
|
@@ -2,7 +2,8 @@ import { Thing } from '@pod-os/core';
|
|
|
2
2
|
import { ResourceAware, ResourceEventEmitter } from '../events/ResourceAware';
|
|
3
3
|
/**
|
|
4
4
|
* Shows a single value linked to the resource using the given predicate.
|
|
5
|
-
* The value is determined by [Thing.
|
|
5
|
+
* The value is determined by [Thing.observeAnyValue()](https://pod-os.org/reference/core/classes/thing/#observeanyvalue)
|
|
6
|
+
* and re-renders when data in the store changes
|
|
6
7
|
*/
|
|
7
8
|
export declare class PosValue implements ResourceAware {
|
|
8
9
|
/**
|
|
@@ -10,8 +11,12 @@ export declare class PosValue implements ResourceAware {
|
|
|
10
11
|
*/
|
|
11
12
|
predicate: string;
|
|
12
13
|
resource: Thing;
|
|
14
|
+
value: string;
|
|
13
15
|
subscribeResource: ResourceEventEmitter;
|
|
16
|
+
private readonly disconnected$;
|
|
14
17
|
componentWillLoad(): void;
|
|
15
18
|
receiveResource: (resource: Thing) => void;
|
|
16
|
-
|
|
19
|
+
observeAnyValue(): void;
|
|
20
|
+
render(): string;
|
|
21
|
+
disconnectedCallback(): void;
|
|
17
22
|
}
|
|
@@ -99,6 +99,10 @@ export namespace Components {
|
|
|
99
99
|
"container": LdpContainer;
|
|
100
100
|
"type": 'file' | 'folder';
|
|
101
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* Displays a description of the resource, as provided by [Thing.description()](https://pod-os.org/reference/core/classes/thing/#description).
|
|
104
|
+
* Re-renders when data in the store changes using [Thing.observeDescription()](https://pod-os.org/reference/core/classes/thing/#observeDescription).
|
|
105
|
+
*/
|
|
102
106
|
interface PosDescription {
|
|
103
107
|
}
|
|
104
108
|
/**
|
|
@@ -139,7 +143,8 @@ export namespace Components {
|
|
|
139
143
|
"uri": string;
|
|
140
144
|
}
|
|
141
145
|
/**
|
|
142
|
-
* Displays a human-readable label of the resource, provided by [Thing.label()](https://pod-os.org/reference/core/classes/thing/#label)
|
|
146
|
+
* Displays a human-readable label of the resource, as provided by [Thing.label()](https://pod-os.org/reference/core/classes/thing/#label).
|
|
147
|
+
* Re-renders when data in the store changes using [Thing.observeLabel()](https://pod-os.org/reference/core/classes/thing/#observeLabel).
|
|
143
148
|
*/
|
|
144
149
|
interface PosLabel {
|
|
145
150
|
}
|
|
@@ -360,7 +365,8 @@ export namespace Components {
|
|
|
360
365
|
}
|
|
361
366
|
/**
|
|
362
367
|
* Shows a single value linked to the resource using the given predicate.
|
|
363
|
-
* The value is determined by [Thing.
|
|
368
|
+
* The value is determined by [Thing.observeAnyValue()](https://pod-os.org/reference/core/classes/thing/#observeanyvalue)
|
|
369
|
+
* and re-renders when data in the store changes
|
|
364
370
|
*/
|
|
365
371
|
interface PosValue {
|
|
366
372
|
/**
|
|
@@ -749,6 +755,10 @@ declare global {
|
|
|
749
755
|
interface HTMLPosDescriptionElementEventMap {
|
|
750
756
|
"pod-os:resource": any;
|
|
751
757
|
}
|
|
758
|
+
/**
|
|
759
|
+
* Displays a description of the resource, as provided by [Thing.description()](https://pod-os.org/reference/core/classes/thing/#description).
|
|
760
|
+
* Re-renders when data in the store changes using [Thing.observeDescription()](https://pod-os.org/reference/core/classes/thing/#observeDescription).
|
|
761
|
+
*/
|
|
752
762
|
interface HTMLPosDescriptionElement extends Components.PosDescription, HTMLStencilElement {
|
|
753
763
|
addEventListener<K extends keyof HTMLPosDescriptionElementEventMap>(type: K, listener: (this: HTMLPosDescriptionElement, ev: PosDescriptionCustomEvent<HTMLPosDescriptionElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
754
764
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -853,7 +863,8 @@ declare global {
|
|
|
853
863
|
"pod-os:resource": any;
|
|
854
864
|
}
|
|
855
865
|
/**
|
|
856
|
-
* Displays a human-readable label of the resource, provided by [Thing.label()](https://pod-os.org/reference/core/classes/thing/#label)
|
|
866
|
+
* Displays a human-readable label of the resource, as provided by [Thing.label()](https://pod-os.org/reference/core/classes/thing/#label).
|
|
867
|
+
* Re-renders when data in the store changes using [Thing.observeLabel()](https://pod-os.org/reference/core/classes/thing/#observeLabel).
|
|
857
868
|
*/
|
|
858
869
|
interface HTMLPosLabelElement extends Components.PosLabel, HTMLStencilElement {
|
|
859
870
|
addEventListener<K extends keyof HTMLPosLabelElementEventMap>(type: K, listener: (this: HTMLPosLabelElement, ev: PosLabelCustomEvent<HTMLPosLabelElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1341,7 +1352,8 @@ declare global {
|
|
|
1341
1352
|
}
|
|
1342
1353
|
/**
|
|
1343
1354
|
* Shows a single value linked to the resource using the given predicate.
|
|
1344
|
-
* The value is determined by [Thing.
|
|
1355
|
+
* The value is determined by [Thing.observeAnyValue()](https://pod-os.org/reference/core/classes/thing/#observeanyvalue)
|
|
1356
|
+
* and re-renders when data in the store changes
|
|
1345
1357
|
*/
|
|
1346
1358
|
interface HTMLPosValueElement extends Components.PosValue, HTMLStencilElement {
|
|
1347
1359
|
addEventListener<K extends keyof HTMLPosValueElementEventMap>(type: K, listener: (this: HTMLPosValueElement, ev: PosValueCustomEvent<HTMLPosValueElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1539,6 +1551,10 @@ declare namespace LocalJSX {
|
|
|
1539
1551
|
"onPod-os:link"?: (event: PosCreateNewContainerItemCustomEvent<string>) => void;
|
|
1540
1552
|
"type": 'file' | 'folder';
|
|
1541
1553
|
}
|
|
1554
|
+
/**
|
|
1555
|
+
* Displays a description of the resource, as provided by [Thing.description()](https://pod-os.org/reference/core/classes/thing/#description).
|
|
1556
|
+
* Re-renders when data in the store changes using [Thing.observeDescription()](https://pod-os.org/reference/core/classes/thing/#observeDescription).
|
|
1557
|
+
*/
|
|
1542
1558
|
interface PosDescription {
|
|
1543
1559
|
"onPod-os:resource"?: (event: PosDescriptionCustomEvent<any>) => void;
|
|
1544
1560
|
}
|
|
@@ -1593,7 +1609,8 @@ declare namespace LocalJSX {
|
|
|
1593
1609
|
"uri"?: string;
|
|
1594
1610
|
}
|
|
1595
1611
|
/**
|
|
1596
|
-
* Displays a human-readable label of the resource, provided by [Thing.label()](https://pod-os.org/reference/core/classes/thing/#label)
|
|
1612
|
+
* Displays a human-readable label of the resource, as provided by [Thing.label()](https://pod-os.org/reference/core/classes/thing/#label).
|
|
1613
|
+
* Re-renders when data in the store changes using [Thing.observeLabel()](https://pod-os.org/reference/core/classes/thing/#observeLabel).
|
|
1597
1614
|
*/
|
|
1598
1615
|
interface PosLabel {
|
|
1599
1616
|
"onPod-os:resource"?: (event: PosLabelCustomEvent<any>) => void;
|
|
@@ -1855,7 +1872,8 @@ declare namespace LocalJSX {
|
|
|
1855
1872
|
}
|
|
1856
1873
|
/**
|
|
1857
1874
|
* Shows a single value linked to the resource using the given predicate.
|
|
1858
|
-
* The value is determined by [Thing.
|
|
1875
|
+
* The value is determined by [Thing.observeAnyValue()](https://pod-os.org/reference/core/classes/thing/#observeanyvalue)
|
|
1876
|
+
* and re-renders when data in the store changes
|
|
1859
1877
|
*/
|
|
1860
1878
|
interface PosValue {
|
|
1861
1879
|
"onPod-os:resource"?: (event: PosValueCustomEvent<any>) => void;
|
|
@@ -2046,6 +2064,10 @@ declare module "@stencil/core" {
|
|
|
2046
2064
|
"pos-container-item": LocalJSX.IntrinsicElements["pos-container-item"] & JSXBase.HTMLAttributes<HTMLPosContainerItemElement>;
|
|
2047
2065
|
"pos-container-toolbar": LocalJSX.IntrinsicElements["pos-container-toolbar"] & JSXBase.HTMLAttributes<HTMLPosContainerToolbarElement>;
|
|
2048
2066
|
"pos-create-new-container-item": LocalJSX.IntrinsicElements["pos-create-new-container-item"] & JSXBase.HTMLAttributes<HTMLPosCreateNewContainerItemElement>;
|
|
2067
|
+
/**
|
|
2068
|
+
* Displays a description of the resource, as provided by [Thing.description()](https://pod-os.org/reference/core/classes/thing/#description).
|
|
2069
|
+
* Re-renders when data in the store changes using [Thing.observeDescription()](https://pod-os.org/reference/core/classes/thing/#observeDescription).
|
|
2070
|
+
*/
|
|
2049
2071
|
"pos-description": LocalJSX.IntrinsicElements["pos-description"] & JSXBase.HTMLAttributes<HTMLPosDescriptionElement>;
|
|
2050
2072
|
/**
|
|
2051
2073
|
* Styled wrapper around native dialog element, with slots `title` and `content`
|
|
@@ -2063,7 +2085,8 @@ declare module "@stencil/core" {
|
|
|
2063
2085
|
"pos-image": LocalJSX.IntrinsicElements["pos-image"] & JSXBase.HTMLAttributes<HTMLPosImageElement>;
|
|
2064
2086
|
"pos-internal-router": LocalJSX.IntrinsicElements["pos-internal-router"] & JSXBase.HTMLAttributes<HTMLPosInternalRouterElement>;
|
|
2065
2087
|
/**
|
|
2066
|
-
* Displays a human-readable label of the resource, provided by [Thing.label()](https://pod-os.org/reference/core/classes/thing/#label)
|
|
2088
|
+
* Displays a human-readable label of the resource, as provided by [Thing.label()](https://pod-os.org/reference/core/classes/thing/#label).
|
|
2089
|
+
* Re-renders when data in the store changes using [Thing.observeLabel()](https://pod-os.org/reference/core/classes/thing/#observeLabel).
|
|
2067
2090
|
*/
|
|
2068
2091
|
"pos-label": LocalJSX.IntrinsicElements["pos-label"] & JSXBase.HTMLAttributes<HTMLPosLabelElement>;
|
|
2069
2092
|
/**
|
|
@@ -2141,7 +2164,8 @@ declare module "@stencil/core" {
|
|
|
2141
2164
|
"pos-user-menu": LocalJSX.IntrinsicElements["pos-user-menu"] & JSXBase.HTMLAttributes<HTMLPosUserMenuElement>;
|
|
2142
2165
|
/**
|
|
2143
2166
|
* Shows a single value linked to the resource using the given predicate.
|
|
2144
|
-
* The value is determined by [Thing.
|
|
2167
|
+
* The value is determined by [Thing.observeAnyValue()](https://pod-os.org/reference/core/classes/thing/#observeanyvalue)
|
|
2168
|
+
* and re-renders when data in the store changes
|
|
2145
2169
|
*/
|
|
2146
2170
|
"pos-value": LocalJSX.IntrinsicElements["pos-value"] & JSXBase.HTMLAttributes<HTMLPosValueElement>;
|
|
2147
2171
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pod-os/elements",
|
|
3
|
-
"version": "0.41.0
|
|
3
|
+
"version": "0.41.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,16 +22,16 @@
|
|
|
22
22
|
"generate": "stencil generate"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@pod-os/core": "
|
|
25
|
+
"@pod-os/core": "^0.30.0",
|
|
26
26
|
"@shoelace-style/shoelace": "^2.20.1",
|
|
27
27
|
"@stencil/core": "^4.43.2",
|
|
28
28
|
"@stencil/store": "^2.2.2",
|
|
29
29
|
"@testing-library/user-event": "^14.6.1",
|
|
30
|
-
"@tiptap/core": "^3.
|
|
31
|
-
"@tiptap/extension-image": "^3.
|
|
32
|
-
"@tiptap/markdown": "^3.
|
|
33
|
-
"@tiptap/pm": "^3.
|
|
34
|
-
"@tiptap/starter-kit": "^3.
|
|
30
|
+
"@tiptap/core": "^3.22.0",
|
|
31
|
+
"@tiptap/extension-image": "^3.22.5",
|
|
32
|
+
"@tiptap/markdown": "^3.22.5",
|
|
33
|
+
"@tiptap/pm": "^3.22.5",
|
|
34
|
+
"@tiptap/starter-kit": "^3.22.5",
|
|
35
35
|
"@uppy/core": "^5.2.0",
|
|
36
36
|
"@uppy/dashboard": "^5.1.1",
|
|
37
37
|
"@uppy/image-editor": "^4.2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as t}from"./p-spEUIGXI.js";import{s as o}from"./p-BW_CkW1K.js";const r=class{constructor(o){s(this,o),this.subscribeResource=t(this,"pod-os:resource",7),this.receiveResource=s=>{this.resource=s}}componentWillLoad(){o(this)}render(){return this.resource?this.resource.anyValue(this.predicate):null}};export{r as pos_value}
|