@fluid-topics/ft-reader-topic-metadata 2.1.18 → 2.1.20

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.
@@ -4,11 +4,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { html, nothing } from "lit";
8
- import { property, state } from "lit/decorators.js";
7
+ import { html, nothing, } from "lit";
8
+ import { property, state, } from "lit/decorators.js";
9
9
  import { styles } from "./ft-reader-topic-metadata.styles";
10
10
  import { FtReaderTopicComponent } from "@fluid-topics/ft-reader-topic-context/build/registration";
11
- import { ClusteringHelper } from "@fluid-topics/ft-wc-utils";
11
+ import { ClusteringHelper, } from "@fluid-topics/ft-wc-utils";
12
12
  import { FtTooltip } from "@fluid-topics/ft-tooltip";
13
13
  import { FtChip } from "@fluid-topics/ft-chip";
14
14
  import { withDateFormat } from "@fluid-topics/ft-app-context/build/mixins/withDateFormat";
@@ -29,8 +29,8 @@ export class FtReaderTopicMetadata extends withDateFormat(FtReaderTopicComponent
29
29
  }
30
30
  renderChip() {
31
31
  var _a, _b, _c, _d;
32
- 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);
33
- let chip = html `
32
+ const 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);
33
+ const chip = html `
34
34
  <ft-chip part="chip"
35
35
  exportpartsPrefix="chip"
36
36
  label="${this.tooltipText}"
@@ -78,7 +78,7 @@ export class FtReaderTopicMetadata extends withDateFormat(FtReaderTopicComponent
78
78
  }
79
79
  update(props) {
80
80
  super.update(props);
81
- if (["key", "tocNode"].some(p => props.has(p))) {
81
+ if (["key", "tocNode"].some((p) => props.has(p))) {
82
82
  this.updateContent();
83
83
  }
84
84
  if (props.has("metadata") || props.has("hierarchicalValueTruncatingLevel") || this.dateFormatOptionsChanged(props)) {
@@ -95,7 +95,7 @@ export class FtReaderTopicMetadata extends withDateFormat(FtReaderTopicComponent
95
95
  var _a;
96
96
  this.metadata = undefined;
97
97
  if (this.tocNode && this.key) {
98
- (_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);
98
+ (_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);
99
99
  }
100
100
  }
101
101
  }