@fluid-topics/ft-reader-metadata 1.2.59 → 1.2.61
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.
|
@@ -68,15 +68,17 @@ class FtReaderMetadata extends withDateFormat(withI18n(FtReaderComponent)) {
|
|
|
68
68
|
renderChip(inFloatingMenu = false) {
|
|
69
69
|
var _a, _b, _c, _d, _e, _f;
|
|
70
70
|
let noTooltip = !this.forceTooltip && this.displayLabel && ((_a = this.flatMetadata) === null || _a === void 0 ? void 0 : _a.displayTooltipValue) == ((_b = this.flatMetadata) === null || _b === void 0 ? void 0 : _b.displayValue);
|
|
71
|
+
let tooltipLabel = `${this.metadataLabel}: ${(_d = (_c = this.flatMetadata) === null || _c === void 0 ? void 0 : _c.displayTooltipValue) !== null && _d !== void 0 ? _d : this.noValueMessage}`;
|
|
71
72
|
let chip = html `
|
|
72
73
|
<ft-chip part="chip"
|
|
73
74
|
exportpartsPrefix="chip"
|
|
75
|
+
label="${tooltipLabel}"
|
|
74
76
|
slot="${noTooltip && inFloatingMenu ? "toggle" : ""}"
|
|
75
77
|
trailingIcon icon="${inFloatingMenu ? "thin_arrow" : ""}"
|
|
76
78
|
?clickable=${inFloatingMenu}
|
|
77
79
|
?multiLine=${this.multiLine}>
|
|
78
80
|
${this.displayLabel ? html `
|
|
79
|
-
<span part="label">${(
|
|
81
|
+
<span part="label">${(_f = (_e = this.metadata) === null || _e === void 0 ? void 0 : _e.label) !== null && _f !== void 0 ? _f : this.key}: </span>
|
|
80
82
|
` : nothing}
|
|
81
83
|
${this.metadataValue.length === 0 ? nothing : html `
|
|
82
84
|
<span part="values">${this.metadataValue}</span>
|
|
@@ -86,7 +88,7 @@ class FtReaderMetadata extends withDateFormat(withI18n(FtReaderComponent)) {
|
|
|
86
88
|
<ft-tooltip part="tooltip"
|
|
87
89
|
slot="${inFloatingMenu ? "toggle" : ""}"
|
|
88
90
|
class="${this.multiLine ? "ft-reader-metadata-multi-line" : ""}"
|
|
89
|
-
text="${
|
|
91
|
+
text="${tooltipLabel}">
|
|
90
92
|
${chip}
|
|
91
93
|
</ft-tooltip>
|
|
92
94
|
`;
|