@fluid-topics/ft-reader-topic-metadata 1.2.46 → 1.2.48
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.
|
@@ -80,8 +80,10 @@ class FtReaderTopicMetadata extends withDateFormat(FtReaderTopicComponent) {
|
|
|
80
80
|
if (["key", "tocNode"].some(p => props.has(p))) {
|
|
81
81
|
this.updateContent();
|
|
82
82
|
}
|
|
83
|
-
if (
|
|
84
|
-
this.flatMetadata =
|
|
83
|
+
if (props.has("metadata") || props.has("hierarchicalValueTruncatingLevel") || this.dateFormatOptionsChanged(props)) {
|
|
84
|
+
this.flatMetadata = this.metadata
|
|
85
|
+
? ClusteringHelper.flattenMetadata(this.metadata, this.hierarchicalValueTruncatingLevel, this.getDateFormatter(this.metadata.key))
|
|
86
|
+
: undefined;
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
onStoreAvailable() {
|
|
@@ -1376,7 +1376,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1376
1376
|
display: none !important;
|
|
1377
1377
|
}
|
|
1378
1378
|
</style>
|
|
1379
|
-
`:Nt.nothing}get tooltipText(){return this.flatMetadata?this.flatMetadata.label+": "+this.flatMetadata.displayTooltipValue:""}update(o){super.update(o),["key","tocNode"].some(r=>o.has(r))&&this.updateContent(),(o.has("metadata")||o.has("hierarchicalValueTruncatingLevel")||this.dateFormatOptionsChanged(o))&&
|
|
1379
|
+
`:Nt.nothing}get tooltipText(){return this.flatMetadata?this.flatMetadata.label+": "+this.flatMetadata.displayTooltipValue:""}update(o){super.update(o),["key","tocNode"].some(r=>o.has(r))&&this.updateContent(),(o.has("metadata")||o.has("hierarchicalValueTruncatingLevel")||this.dateFormatOptionsChanged(o))&&(this.flatMetadata=this.metadata?xc.ClusteringHelper.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0)}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}updateContent(){var o;this.metadata=void 0,this.tocNode&&this.key&&((o=this.service)===null||o===void 0||o.getTopicInfo(this.tocNode).then(r=>this.metadata=r.metadata.find(n=>n.key===this.key)).catch(()=>null))}};it.elementDefinitions={"ft-tooltip":W,"ft-chip":G};it.styles=nn;Qt([(0,It.property)()],it.prototype,"key",void 0);Qt([(0,It.property)({type:Boolean})],it.prototype,"multiLine",void 0);Qt([(0,It.property)({type:Boolean})],it.prototype,"displayLabel",void 0);Qt([(0,It.property)({type:Number})],it.prototype,"hierarchicalValueTruncatingLevel",void 0);Qt([(0,It.property)({type:Boolean})],it.prototype,"forceTooltip",void 0);Qt([(0,It.state)()],it.prototype,"editorMode",void 0);Qt([(0,It.state)()],it.prototype,"metadata",void 0);Qt([(0,It.state)()],it.prototype,"flatMetadata",void 0);(0,vc.customElement)("ft-reader-topic-metadata")(it);})();
|
|
1380
1380
|
/*! Bundled license information:
|
|
1381
1381
|
|
|
1382
1382
|
lit-html/lit-html.js:
|