@fluid-topics/ft-text-area 1.1.10 → 1.1.11
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
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { PropertyValues } from "lit";
|
|
2
1
|
import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
3
2
|
import { FtTextAreaProperties } from "./ft-text-area.properties";
|
|
4
3
|
declare const FtTextArea_base: import("@fluid-topics/ft-wc-utils").FtFormComponentType<typeof FtLitElement>;
|
|
@@ -16,7 +15,6 @@ export declare class FtTextArea extends FtTextArea_base implements FtTextAreaPro
|
|
|
16
15
|
private focused;
|
|
17
16
|
protected render(): import("lit").TemplateResult<1>;
|
|
18
17
|
setValue(value: string, sendEvents?: boolean): void;
|
|
19
|
-
protected contentAvailableCallback(props: PropertyValues): void;
|
|
20
18
|
private onKeyDown;
|
|
21
19
|
private updateValueFromInputField;
|
|
22
20
|
private liveUpdateValueFromInputField;
|
package/build/ft-text-area.js
CHANGED
|
@@ -87,10 +87,6 @@ class FtTextArea extends toFtFormComponent(FtLitElement, "textbox") {
|
|
|
87
87
|
this.dispatchEvent(new CustomEvent("change", { detail: this.value }));
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
contentAvailableCallback(props) {
|
|
91
|
-
super.contentAvailableCallback(props);
|
|
92
|
-
this.requestUpdate();
|
|
93
|
-
}
|
|
94
90
|
onKeyDown(e) {
|
|
95
91
|
if (e.key === "Enter" || e.key === " ") {
|
|
96
92
|
e.stopPropagation();
|
|
@@ -599,4 +599,4 @@ const G=Symbol.for(""),j=t=>{if(t?.r===G)return t?._$litStatic$},M=t=>({_$litSta
|
|
|
599
599
|
${this.helper}
|
|
600
600
|
</ft-typography>`:void 0}
|
|
601
601
|
</div>
|
|
602
|
-
`}setValue(t,o=!1){this.value=t,this.setFormValue(t),o&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}
|
|
602
|
+
`}setValue(t,o=!1){this.value=t,this.setFormValue(t),o&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}To.elementDefinitions={"ft-input-label":ko,"ft-resizer":Ro,"ft-ripple":Mo,"ft-typography":go},To.styles=[eo,_o],Yo([r.property({type:String})],To.prototype,"label",void 0),Yo([r.property({reflect:!0})],To.prototype,"value",void 0),Yo([r.property({type:String})],To.prototype,"helper",void 0),Yo([r.property({type:Boolean})],To.prototype,"outlined",void 0),Yo([r.property({type:Boolean})],To.prototype,"disabled",void 0),Yo([r.property({type:Boolean})],To.prototype,"error",void 0),Yo([r.property({type:Number,reflect:!0})],To.prototype,"height",void 0),Yo([r.query("textarea")],To.prototype,"textarea",void 0),Yo([r.state()],To.prototype,"focused",void 0),o.customElement("ft-text-area")(To),t.FtTextArea=To,t.FtTextAreaCssVariables=Po,t.styles=_o}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|
|
@@ -729,4 +729,4 @@ class mr extends Je{constructor(t){if(super(t),this.et=Q,t.type!==Ye)throw Error
|
|
|
729
729
|
${this.helper}
|
|
730
730
|
</ft-typography>`:void 0}
|
|
731
731
|
</div>
|
|
732
|
-
`}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}
|
|
732
|
+
`}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}ei.elementDefinitions={"ft-input-label":Ar,"ft-resizer":Zr,"ft-ripple":qr,"ft-typography":br},ei.styles=[lr,Qr],ti([w({type:String})],ei.prototype,"label",void 0),ti([w({reflect:!0})],ei.prototype,"value",void 0),ti([w({type:String})],ei.prototype,"helper",void 0),ti([w({type:Boolean})],ei.prototype,"outlined",void 0),ti([w({type:Boolean})],ei.prototype,"disabled",void 0),ti([w({type:Boolean})],ei.prototype,"error",void 0),ti([w({type:Number,reflect:!0})],ei.prototype,"height",void 0),ti([R("textarea")],ei.prototype,"textarea",void 0),ti([C()],ei.prototype,"focused",void 0),W("ft-text-area")(ei),t.FtTextArea=ei,t.FtTextAreaCssVariables=Xr,t.styles=Qr}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-text-area",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "A fluidtopics text field",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-resizer": "1.1.
|
|
23
|
-
"@fluid-topics/ft-ripple": "1.1.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-resizer": "1.1.11",
|
|
23
|
+
"@fluid-topics/ft-ripple": "1.1.11",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "1.1.11",
|
|
25
25
|
"lit": "3.1.0"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "077ec0dd3948ed41aa130d5a4cdc3d77f0dd2e6c"
|
|
28
28
|
}
|