@fluid-topics/ft-reader-topic-metadata 1.0.54 → 1.0.55
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.
|
@@ -70,7 +70,7 @@ class FtReaderTopicMetadata extends FtReaderTopicComponent {
|
|
|
70
70
|
var _a;
|
|
71
71
|
this.metadata = undefined;
|
|
72
72
|
if (this.tocNode && this.key) {
|
|
73
|
-
(_a = this.service) === null || _a === void 0 ? void 0 : _a.getTopicInfo(this.tocNode
|
|
73
|
+
(_a = this.service) === null || _a === void 0 ? void 0 : _a.getTopicInfo(this.tocNode).then(topic => this.metadata = topic.metadata.find(m => m.key === this.key)).catch(() => null);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -731,4 +731,4 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
731
731
|
display: none !important;
|
|
732
732
|
}
|
|
733
733
|
</style>
|
|
734
|
-
`}get valueText(){var t,i;return null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==i?i:""}get tooltipText(){var t,i;return this.metadata?`${null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==i?i:this.metadata.key}: ${this.valueText}`:""}updated(t){super.updated(t),["key","tocNode"].some((i=>t.has(i)))&&this.updateContent()}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}updateContent(){var t;this.metadata=void 0,this.tocNode&&this.key&&(null===(t=this.service)||void 0===t||t.getTopicInfo(this.tocNode
|
|
734
|
+
`}get valueText(){var t,i;return null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==i?i:""}get tooltipText(){var t,i;return this.metadata?`${null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==i?i:this.metadata.key}: ${this.valueText}`:""}updated(t){super.updated(t),["key","tocNode"].some((i=>t.has(i)))&&this.updateContent()}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}updateContent(){var t;this.metadata=void 0,this.tocNode&&this.key&&(null===(t=this.service)||void 0===t||t.getTopicInfo(this.tocNode).then((t=>this.metadata=t.metadata.find((t=>t.key===this.key)))).catch((()=>null)))}}ue.elementDefinitions={"ft-tooltip":zi,"ft-chip":ce},ue.styles=r,de([o.property()],ue.prototype,"key",void 0),de([o.state()],ue.prototype,"editorMode",void 0),de([o.state()],ue.prototype,"metadata",void 0),i.customElement("ft-reader-topic-metadata")(ue),t.FtReaderTopicMetadata=ue,t.FtReaderTopicMetadataCssVariables={},t.styles=r}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|
|
@@ -844,4 +844,4 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
|
|
|
844
844
|
display: none !important;
|
|
845
845
|
}
|
|
846
846
|
</style>
|
|
847
|
-
`}get valueText(){var t,i;return null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==i?i:""}get tooltipText(){var t,i;return this.metadata?`${null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==i?i:this.metadata.key}: ${this.valueText}`:""}updated(t){super.updated(t),["key","tocNode"].some((i=>t.has(i)))&&this.updateContent()}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}updateContent(){var t;this.metadata=void 0,this.tocNode&&this.key&&(null===(t=this.service)||void 0===t||t.getTopicInfo(this.tocNode
|
|
847
|
+
`}get valueText(){var t,i;return null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==i?i:""}get tooltipText(){var t,i;return this.metadata?`${null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==i?i:this.metadata.key}: ${this.valueText}`:""}updated(t){super.updated(t),["key","tocNode"].some((i=>t.has(i)))&&this.updateContent()}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}updateContent(){var t;this.metadata=void 0,this.tocNode&&this.key&&(null===(t=this.service)||void 0===t||t.getTopicInfo(this.tocNode).then((t=>this.metadata=t.metadata.find((t=>t.key===this.key)))).catch((()=>null)))}}go.elementDefinitions={"ft-tooltip":we,"ft-chip":xo},go.styles=Pt,yo([o()],go.prototype,"key",void 0),yo([n()],go.prototype,"editorMode",void 0),yo([n()],go.prototype,"metadata",void 0),c("ft-reader-topic-metadata")(go),t.FtReaderTopicMetadata=go,t.FtReaderTopicMetadataCssVariables={},t.styles=Pt}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-topic-metadata",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.55",
|
|
4
4
|
"description": "Metadata of a topic in integrated reader.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "1.0.55",
|
|
23
23
|
"lit": "2.7.2"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "4eca32ed1fec3fd25b6d76b26895a6318cfa8ca2"
|
|
26
26
|
}
|