@fluid-topics/ft-switch 1.3.45 → 1.3.46

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.
@@ -33,7 +33,7 @@ export declare class FtSwitchOption extends FtLitElement implements FtSwitchOpti
33
33
  private onChange;
34
34
  private getLabel;
35
35
  private resolveIcon;
36
- get textContent(): string;
36
+ getTextContent(): string;
37
37
  private hasTextContent;
38
38
  private onSlotchange;
39
39
  }
@@ -85,7 +85,7 @@ class FtSwitchOption extends FtLitElement {
85
85
  super.disconnectedCallback();
86
86
  this.removeEventListener("focusout", this.onFocusout);
87
87
  }
88
- onFocusout(e) {
88
+ onFocusout() {
89
89
  this.isFocused = false;
90
90
  }
91
91
  onChange() {
@@ -93,19 +93,19 @@ class FtSwitchOption extends FtLitElement {
93
93
  this.dispatchEvent(new SwitchOptionChangeByUser(this.selected));
94
94
  }
95
95
  getLabel() {
96
- return this.label || this.textContent;
96
+ return this.label || this.getTextContent();
97
97
  }
98
98
  resolveIcon() {
99
99
  return this.icon ? html `
100
100
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
101
101
  ` : nothing;
102
102
  }
103
- get textContent() {
103
+ getTextContent() {
104
104
  var _a, _b;
105
105
  return (_b = (_a = this.slottedContent) === null || _a === void 0 ? void 0 : _a.assignedNodes().map((n) => n.textContent).join("").trim()) !== null && _b !== void 0 ? _b : "";
106
106
  }
107
107
  hasTextContent() {
108
- return this.textContent.length > 0;
108
+ return this.getTextContent().length > 0;
109
109
  }
110
110
  onSlotchange() {
111
111
  this.requestUpdate();