bromcom-ui 2.5.3-rc.15 → 2.5.3-rc.18
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-52455882.js → p-05d2a648.js} +1 -1
- package/dist/bromcom-ui/{p-6d2684e5.entry.js → p-05e103f7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-18c578c3.entry.js → p-1796c087.entry.js} +1 -1
- package/dist/bromcom-ui/p-243736fd.entry.js +1 -0
- package/dist/bromcom-ui/{p-24747caa.entry.js → p-2eb57504.entry.js} +1 -1
- package/dist/bromcom-ui/{p-590ade37.entry.js → p-44b9d2db.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3d631014.js → p-54694837.js} +1 -1
- package/dist/bromcom-ui/{p-eee74d8a.entry.js → p-6de27fac.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5f3c0fe2.js → p-7ed3562c.js} +1 -1
- package/dist/bromcom-ui/{p-b1db1597.entry.js → p-915cf7ab.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d6704059.entry.js → p-94f2aa5f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3a351dcf.entry.js → p-97dfd027.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b81d626f.entry.js → p-9abfae2b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2f22d606.entry.js → p-9f7de753.entry.js} +1 -1
- package/dist/bromcom-ui/p-a86584a2.entry.js +1 -0
- package/dist/bromcom-ui/{p-0ed023fd.entry.js → p-ae69d418.entry.js} +1 -1
- package/dist/bromcom-ui/{p-68dceb0c.entry.js → p-b9bec852.entry.js} +1 -1
- package/dist/bromcom-ui/p-bfb9ca66.entry.js +1 -0
- package/dist/bromcom-ui/{p-05852696.entry.js → p-c052e03e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8dbcf336.entry.js → p-cbf9c9bb.entry.js} +1 -1
- package/dist/bromcom-ui/p-d2c1fddf.entry.js +1 -0
- package/dist/bromcom-ui/p-d6985186.entry.js +1 -0
- package/dist/bromcom-ui/p-d6a61c5c.js +1 -0
- package/dist/bromcom-ui/{p-2b2ac5e4.entry.js → p-dc22f1fa.entry.js} +1 -1
- package/dist/bromcom-ui/{p-54f3f4e6.entry.js → p-e3f787bb.entry.js} +1 -1
- package/dist/bromcom-ui/p-e6762230.js +1 -0
- package/dist/bromcom-ui/{p-f6ac3812.js → p-eba5a5bd.js} +1 -1
- package/dist/bromcom-ui/{p-061e6ed9.entry.js → p-fd59f281.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-03dc0201.entry.js +0 -1
- package/dist/bromcom-ui/p-60b856e4.entry.js +0 -1
- package/dist/bromcom-ui/p-621c8833.entry.js +0 -1
- package/dist/bromcom-ui/p-8222f957.entry.js +0 -1
- package/dist/bromcom-ui/p-d57b41e9.entry.js +0 -1
- package/dist/bromcom-ui/p-d5c1d800.js +0 -1
- package/dist/bromcom-ui/p-eb9cfe95.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as e}from"./p-74df82e2.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-74df82e2.js";import"./p-112455b1.js";import{c as h}from"./p-7294ec8e.js";import{G as a}from"./p-eba5a5bd.js";import{a as r}from"./p-7e73190d.js";import"./p-6d018a8f.js";import{d as n}from"./p-84313244.js";import{C as l}from"./p-6d80e6e8.js";import{I as c}from"./p-960bf518.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:b,noCaption:f,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:b,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:f,captionType:g,captionError:C,caption:y,value:j,maxLength:v}))}static get watchers(){return{value:["watchValue"]}}};export{d as bcm_textarea}
|