@fluid-topics/ft-reader-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.
@@ -11,6 +11,7 @@ export declare class FtReaderMetadata extends FtReaderMetadata_base implements F
11
11
  useForSwitchingToRelatives: boolean;
12
12
  displayLabel: boolean;
13
13
  hierarchicalValueTruncatingLevel?: number;
14
+ forceTooltip: boolean;
14
15
  editorMode: boolean;
15
16
  private metadata?;
16
17
  private flatMetadata?;
@@ -26,6 +26,7 @@ class FtReaderMetadata extends withDateFormat(withI18n(FtReaderComponent)) {
26
26
  this.useForSwitchingToRelatives = false;
27
27
  this.displayLabel = false;
28
28
  this.hierarchicalValueTruncatingLevel = 3;
29
+ this.forceTooltip = false;
29
30
  this.editorMode = false;
30
31
  this.relatives = [];
31
32
  this.noValueMessage = "No value";
@@ -65,7 +66,7 @@ class FtReaderMetadata extends withDateFormat(withI18n(FtReaderComponent)) {
65
66
  }
66
67
  renderChip(inFloatingMenu = false) {
67
68
  var _a, _b, _c, _d, _e, _f;
68
- 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);
69
+ 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);
69
70
  let chip = html `
70
71
  <ft-chip part="chip"
71
72
  exportpartsPrefix="chip"
@@ -209,6 +210,9 @@ __decorate([
209
210
  __decorate([
210
211
  property({ type: Number })
211
212
  ], FtReaderMetadata.prototype, "hierarchicalValueTruncatingLevel", void 0);
213
+ __decorate([
214
+ property({ type: Boolean })
215
+ ], FtReaderMetadata.prototype, "forceTooltip", void 0);
212
216
  __decorate([
213
217
  property({ attribute: false })
214
218
  ], FtReaderMetadata.prototype, "editorMode", void 0);