@fluid-topics/ft-reader-topic-metadata 1.1.87 → 1.1.89
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.
|
@@ -14,7 +14,7 @@ export declare class FtReaderTopicMetadata extends FtReaderTopicMetadata_base im
|
|
|
14
14
|
private flatMetadata?;
|
|
15
15
|
protected render(): import("lit").TemplateResult<1>;
|
|
16
16
|
private renderChip;
|
|
17
|
-
private
|
|
17
|
+
private get metadataValue();
|
|
18
18
|
private hideIfEmpty;
|
|
19
19
|
private get tooltipText();
|
|
20
20
|
protected update(props: PropertyValues): void;
|
|
@@ -34,7 +34,9 @@ class FtReaderTopicMetadata extends withDateFormat(FtReaderTopicComponent) {
|
|
|
34
34
|
${this.displayLabel ? html `
|
|
35
35
|
<span part="label">${(_a = this.flatMetadata) === null || _a === void 0 ? void 0 : _a.label}: </span>
|
|
36
36
|
` : nothing}
|
|
37
|
-
|
|
37
|
+
${this.metadataValue.length === 0 ? nothing : html `
|
|
38
|
+
<span part="values">${this.metadataValue}</span>
|
|
39
|
+
`}
|
|
38
40
|
</ft-chip>
|
|
39
41
|
`;
|
|
40
42
|
return this.displayLabel && ((_b = this.flatMetadata) === null || _b === void 0 ? void 0 : _b.value) == ((_c = this.flatMetadata) === null || _c === void 0 ? void 0 : _c.displayValue) ? chip : html `
|
|
@@ -43,16 +45,16 @@ class FtReaderTopicMetadata extends withDateFormat(FtReaderTopicComponent) {
|
|
|
43
45
|
</ft-tooltip>
|
|
44
46
|
`;
|
|
45
47
|
}
|
|
46
|
-
|
|
48
|
+
get metadataValue() {
|
|
47
49
|
var _a;
|
|
48
50
|
if (this.flatMetadata) {
|
|
49
|
-
return
|
|
51
|
+
return (_a = this.flatMetadata) === null || _a === void 0 ? void 0 : _a.displayValue;
|
|
50
52
|
}
|
|
51
53
|
if (this.key) {
|
|
52
|
-
return
|
|
54
|
+
return `no value for ${this.key}`;
|
|
53
55
|
}
|
|
54
56
|
else {
|
|
55
|
-
return
|
|
57
|
+
return `no metadata selected`;
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
hideIfEmpty() {
|