bromcom-ui 2.5.3-rc.10 → 2.5.3-rc.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.
Files changed (27) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/p-08df42c6.entry.js +1 -0
  3. package/dist/bromcom-ui/{p-262479f7.entry.js → p-110ed243.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-25b01762.entry.js → p-1b6234aa.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-da29e6b4.entry.js → p-1f273c6c.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-45b30f49.entry.js → p-253136d5.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-c31e7a7f.entry.js → p-2669c596.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-d36b6c20.entry.js → p-2a5e8020.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-120c3c0c.entry.js → p-31599730.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-2a69c4c6.entry.js → p-4f020549.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-e59bf8d4.entry.js → p-5a9c4b8f.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-cc18e0de.entry.js → p-64cfe28b.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-4b28cc49.entry.js → p-7aacbf79.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-a255bd03.entry.js → p-908d98e6.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-52efbbb2.entry.js → p-942ad3ff.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-fa4f24ac.entry.js → p-991d21db.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-4d7fa3e2.entry.js → p-aaf7a388.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-ab0aef52.entry.js → p-b06eeb69.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-13955591.js → p-b4ad46b8.js} +1 -1
  20. package/dist/bromcom-ui/{p-f59710cf.entry.js → p-be305f42.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-773cb9fb.entry.js → p-d06437c7.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-c05692f3.entry.js → p-d4e06990.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-14febdda.js → p-df87fb66.js} +1 -1
  24. package/dist/bromcom-ui/{p-c5f967d3.entry.js → p-e24044d9.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-900868bc.entry.js → p-f4ef03cf.entry.js} +1 -1
  26. package/package.json +1 -1
  27. package/dist/bromcom-ui/p-0acc89c3.entry.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-13955591.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-515e99e1.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 p=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:p,disabled:d,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:p,disabled:d,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{p as bcm_textarea}
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-b4ad46b8.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-515e99e1.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}