@fluid-topics/ft-text-area 2.0.6 → 2.0.8
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.
- package/build/ft-text-area.d.ts +1 -0
- package/build/ft-text-area.js +4 -1
- package/build/ft-text-area.light.js +74 -74
- package/build/ft-text-area.min.js +43 -43
- package/package.json +5 -5
package/build/ft-text-area.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare class FtTextArea extends FtTextArea_base implements FtTextAreaPro
|
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
error: boolean;
|
|
13
13
|
private height;
|
|
14
|
+
private maxHeight?;
|
|
14
15
|
private textarea?;
|
|
15
16
|
private focused;
|
|
16
17
|
protected render(): import("lit-html").TemplateResult<1>;
|
package/build/ft-text-area.js
CHANGED
|
@@ -108,7 +108,7 @@ class FtTextArea extends toFtFormComponent(FtLitElement) {
|
|
|
108
108
|
this.dispatchEvent(new CustomEvent("live-change", { detail: this.value }));
|
|
109
109
|
}
|
|
110
110
|
onResize(event) {
|
|
111
|
-
if (event.detail.height >= 50) {
|
|
111
|
+
if (event.detail.height >= 50 && (!this.maxHeight || (this.maxHeight > 0 && event.detail.height < this.maxHeight))) {
|
|
112
112
|
this.height = event.detail.height;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -145,6 +145,9 @@ __decorate([
|
|
|
145
145
|
__decorate([
|
|
146
146
|
numberProperty({ reflect: true })
|
|
147
147
|
], FtTextArea.prototype, "height", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
numberProperty()
|
|
150
|
+
], FtTextArea.prototype, "maxHeight", void 0);
|
|
148
151
|
__decorate([
|
|
149
152
|
query("textarea")
|
|
150
153
|
], FtTextArea.prototype, "textarea", void 0);
|