@fluid-topics/ft-text-area 1.3.61 → 1.3.62

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.
@@ -5,14 +5,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import { html } from "lit";
8
- import { property, query, state } from "lit/decorators.js";
8
+ import { property, query, state, } from "lit/decorators.js";
9
9
  import { classMap } from "lit/directives/class-map.js";
10
- import { FtLitElement, toFtFormComponent } from "@fluid-topics/ft-wc-utils";
11
- import { FtTypography, FtTypographyBody1 } from "@fluid-topics/ft-typography";
12
- import { FtResizer } from "@fluid-topics/ft-resizer";
10
+ import { FtLitElement, numberProperty, toFtFormComponent, } from "@fluid-topics/ft-wc-utils";
11
+ import { FtTypography, FtTypographyBody1, FtTypographyVariants, } from "@fluid-topics/ft-typography";
12
+ import { FtResizer, } from "@fluid-topics/ft-resizer";
13
13
  import { FtInputLabel } from "@fluid-topics/ft-input-label";
14
14
  import { FtRipple } from "@fluid-topics/ft-ripple";
15
- import { FtTextAreaCssVariables, styles } from "./ft-text-area.styles";
15
+ import { FtTextAreaCssVariables, styles, } from "./ft-text-area.styles";
16
16
  class FtTextArea extends toFtFormComponent(FtLitElement) {
17
17
  constructor() {
18
18
  super(...arguments);
@@ -76,7 +76,7 @@ class FtTextArea extends toFtFormComponent(FtLitElement) {
76
76
  ariaLabel="Resize text area"></ft-resizer>
77
77
  </div>
78
78
  ${this.helper ? html `
79
- <ft-typography class="ft-text-area--helper-text" variant="caption">
79
+ <ft-typography class="ft-text-area--helper-text" variant="${FtTypographyVariants.caption}">
80
80
  ${this.helper}
81
81
  </ft-typography>` : undefined}
82
82
  </div>
@@ -96,6 +96,9 @@ class FtTextArea extends toFtFormComponent(FtLitElement) {
96
96
  }
97
97
  }
98
98
  updateValueFromInputField() {
99
+ var _a;
100
+ this.value = ((_a = this.textarea) === null || _a === void 0 ? void 0 : _a.value) || "";
101
+ this.setFormValue(this.value);
99
102
  this.dispatchEvent(new CustomEvent("change", { detail: this.value }));
100
103
  }
101
104
  liveUpdateValueFromInputField() {
@@ -119,7 +122,7 @@ FtTextArea.elementDefinitions = {
119
122
  // language=CSS
120
123
  FtTextArea.styles = [
121
124
  FtTypographyBody1,
122
- styles
125
+ styles,
123
126
  ];
124
127
  __decorate([
125
128
  property({ type: String })
@@ -140,7 +143,7 @@ __decorate([
140
143
  property({ type: Boolean })
141
144
  ], FtTextArea.prototype, "error", void 0);
142
145
  __decorate([
143
- property({ type: Number, reflect: true })
146
+ numberProperty({ reflect: true })
144
147
  ], FtTextArea.prototype, "height", void 0);
145
148
  __decorate([
146
149
  query("textarea")