bromcom-ui 2.5.3-rc.7 → 2.5.3-rc.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/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/{p-f85942b6.entry.js → p-15136124.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6044e810.entry.js → p-17f685ea.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8cab8a30.entry.js → p-1a2ab25a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b607117b.entry.js → p-2782fecb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-287dec0c.entry.js → p-3263f20b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-176de10a.entry.js → p-3d28cef2.entry.js} +1 -1
- package/dist/bromcom-ui/p-5632fdf3.entry.js +1 -0
- package/dist/bromcom-ui/{p-79f4bb16.entry.js → p-721d1cd6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8ac4d389.entry.js → p-77e897f5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-92e54288.entry.js → p-7c6bd833.entry.js} +1 -1
- package/dist/bromcom-ui/{p-928f96c8.entry.js → p-7fb6a598.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2432b495.entry.js → p-8de083dd.entry.js} +1 -1
- package/dist/bromcom-ui/p-92bdc903.entry.js +1 -0
- package/dist/bromcom-ui/{p-8f7c11ec.entry.js → p-a0cc0d7a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ad399c29.entry.js → p-afa245fc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-13645646.entry.js → p-afac41f4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c5cd31a0.js → p-b99834cd.js} +1 -1
- package/dist/bromcom-ui/{p-54f75813.entry.js → p-bd9ba462.entry.js} +1 -1
- package/dist/bromcom-ui/{p-af96a1b3.entry.js → p-bebcb291.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5c6f38e0.entry.js → p-c5687e29.entry.js} +1 -1
- package/dist/bromcom-ui/{p-505e1941.entry.js → p-c87e24cf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b8124adb.entry.js → p-cd935626.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ccb32cb9.entry.js → p-de0ef1a8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-79b2cd0c.entry.js → p-e3c75ba9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e586a712.entry.js → p-e70912b4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0014cccd.entry.js → p-e79d841d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1beb86f7.entry.js → p-ebe71480.entry.js} +1 -1
- package/dist/bromcom-ui/{p-274a1abf.entry.js → p-ed26b2be.entry.js} +1 -1
- package/dist/bromcom-ui/{p-118fb279.js → p-effc0c8f.js} +1 -1
- package/dist/bromcom-ui/{p-6b837324.entry.js → p-f0b35e4b.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-0c3edaab.entry.js +0 -1
- package/dist/bromcom-ui/p-8edb1b22.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as e}from"./p-9d960649.js";import"./p-112455b1.js";import{c as h}from"./p-7294ec8e.js";import{G as a}from"./p-
|
|
1
|
+
import{r as t,c as s,h as i,H as e}from"./p-9d960649.js";import"./p-112455b1.js";import{c as h}from"./p-7294ec8e.js";import{G as a}from"./p-effc0c8f.js";import{B as r}from"./p-7e73190d.js";import{d as n}from"./p-a80ff3e5.js";import"./p-6d018a8f.js";import{C as l}from"./p-b43213d3.js";import{I as c}from"./p-7d0feff7.js";var o;!function(t){t.none="none",t.both="both",t.horizontal="horizontal",t.vertical="vertical",t.initial="initial",t.inherit="inherit"}(o||(o={}));const d=class{constructor(i){t(this,i),this.focus=s(this,"bcm-focus",7),this.blur=s(this,"bcm-blur",7),this.clear=s(this,"bcm-clear",7),this.change=s(this,"bcm-change",7),this.input=s(this,"bcm-input",7),this._id=a.UID(),this._internal_id=a.UID(),this.hidden=!1,this.required=!1,this.noCaption=!1,this.captionType=r.Status.default,this.rows=3,this.size=r.Size.medium,this.readonly=!1,this.resize=o.vertical,this.fullWidth=!1,this.focused=!1}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType}async onBcmFocus(){this.textarea.focus()}async onBcmBlur(){this.textarea.blur()}async onBcmSelect(){this.textarea.select()}async set(t){await this.setValue(t)}async get(){return this.value||null}async setValue(t){return this.textarea.value=t,this.value=t,this.handleChange(),t}async setClear(){return this.textarea.value="",this.value="",await n(10),Promise.resolve()}async resetCaption(){this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null}async getValue(){return this.value}watchValue(){this.handleChange()}handleFocus(){this.focused=!0,this.focus.emit()}handleBlur(){this.focused=!1,this.blur.emit()}handleChange(){this.value=this.textarea.value,this.change.emit(this.value)}handleInput(){this.value=this.textarea.value,this.input.emit(this.value)}handleClear(t){this.textarea.value="",this.value="",this.clear.emit(),this.textarea.focus(),t.stopPropagation()}render(){const{_id:t,hidden:s,readonly:a,fullWidth:n,size:o,rows:d,disabled:p,clearable:u,label:m,focused:f,noCaption:b,caption:y,captionError:C,captionType:g,value:j,resize:w,maxLength:v,placeholder:B,required:x}=this,z=h("bcm-input",{hidden:s,"full-width":n});return i(e,{class:z},m&&i("bcm-label",{type:g,value:m,required:x,htmlFor:t}),i(c,{elementType:r.HtmlElementType.textarea,id:t,value:j,rows:d,disabled:p,maxLength:v,placeholder:B,clearable:u,resize:w,readonly:a,size:o,focused:f,handleFocus:()=>this.handleFocus(),handleBlur:()=>this.handleBlur(),handleChange:()=>this.handleChange(),handleInput:()=>this.handleInput(),handleClear:t=>this.handleClear(t),ref:t=>this.textarea=t}),i(l,{noCaption:b,captionType:g,captionError:C,caption:y,value:j,maxLength:v}))}static get watchers(){return{value:["watchValue"]}}};export{d as bcm_textarea}
|