@fluid-topics/ft-search-result-metadata 1.2.26 → 1.2.28

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.
@@ -13,6 +13,7 @@ export declare class FtSearchResultMetadata extends FtSearchResultMetadata_base
13
13
  goToDocumentOnSwitch: boolean;
14
14
  displayLabel: boolean;
15
15
  hierarchicalValueTruncatingLevel?: number;
16
+ forceTooltip: boolean;
16
17
  /**
17
18
  * @deprecated Use CSS
18
19
  */
@@ -27,6 +27,7 @@ class FtSearchResultMetadata extends withDateFormat(withI18n(FtSearchResultCompo
27
27
  this.goToDocumentOnSwitch = false;
28
28
  this.displayLabel = false;
29
29
  this.hierarchicalValueTruncatingLevel = 3;
30
+ this.forceTooltip = false;
30
31
  this.editorMode = false;
31
32
  this.metadataDescriptors = [];
32
33
  this.clustersByValue = {};
@@ -109,7 +110,7 @@ class FtSearchResultMetadata extends withDateFormat(withI18n(FtSearchResultCompo
109
110
  renderChip(slot) {
110
111
  var _a, _b;
111
112
  if (this.useChip) {
112
- let noTooltip = this.displayLabel && ((_a = this.flatMetadata) === null || _a === void 0 ? void 0 : _a.value) == ((_b = this.flatMetadata) === null || _b === void 0 ? void 0 : _b.displayValue);
113
+ 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);
113
114
  const chip = html `
114
115
  <ft-chip icon="${this.displayCluster ? "THIN_ARROW" : ""}"
115
116
  ?clickable=${this.displayCluster}
@@ -242,6 +243,9 @@ __decorate([
242
243
  __decorate([
243
244
  property({ type: Number })
244
245
  ], FtSearchResultMetadata.prototype, "hierarchicalValueTruncatingLevel", void 0);
246
+ __decorate([
247
+ property({ type: Boolean })
248
+ ], FtSearchResultMetadata.prototype, "forceTooltip", void 0);
245
249
  __decorate([
246
250
  property({ type: Number, attribute: "max-length" })
247
251
  ], FtSearchResultMetadata.prototype, "maxLength", void 0);