@fluid-topics/ft-chip 1.3.45 → 1.3.47

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.
@@ -29,7 +29,7 @@ export declare class FtChip extends FtLitElement implements FtChipProperties {
29
29
  private onIconKeyUp;
30
30
  private onIconClick;
31
31
  private getLabel;
32
- get textContent(): string;
32
+ getTextContent(): string;
33
33
  private hasTextContent;
34
34
  private onSlotchange;
35
35
  private get internalIcon();
package/build/ft-chip.js CHANGED
@@ -4,7 +4,7 @@ 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, } from "lit";
7
+ import { html } from "lit";
8
8
  import { property, query } from "lit/decorators.js";
9
9
  import { classMap } from "lit/directives/class-map.js";
10
10
  import { FtLitElement, isSafari, unslotText } from "@fluid-topics/ft-wc-utils";
@@ -82,7 +82,7 @@ class FtChip extends FtLitElement {
82
82
  `
83
83
  : html `
84
84
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
85
- <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
85
+ <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
86
86
  </div>
87
87
  `;
88
88
  }
@@ -104,13 +104,13 @@ class FtChip extends FtLitElement {
104
104
  }
105
105
  }
106
106
  getLabel() {
107
- return this.label || this.textContent;
107
+ return this.label || this.getTextContent();
108
108
  }
109
- get textContent() {
109
+ getTextContent() {
110
110
  return unslotText(this.slottedContent).trim();
111
111
  }
112
112
  hasTextContent() {
113
- return this.textContent.length > 0;
113
+ return this.getTextContent().length > 0;
114
114
  }
115
115
  onSlotchange() {
116
116
  this.requestUpdate();