bromcom-ui 2.5.3-rc.14 → 2.5.3-rc.17

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 (28) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/{p-bdb679ce.entry.js → p-09bb4b6a.entry.js} +1 -1
  3. package/dist/bromcom-ui/p-13f77058.entry.js +1 -0
  4. package/dist/bromcom-ui/{p-917e48f2.entry.js → p-27d0dd43.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-01fe6d8a.entry.js → p-2de9ce80.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-dc792128.js → p-337b57dc.js} +1 -1
  7. package/dist/bromcom-ui/p-3ecde9fb.js +1 -0
  8. package/dist/bromcom-ui/{p-49933b9c.entry.js → p-57706ae5.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-ce76d7d4.entry.js → p-64befb09.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-512ff533.js → p-790c8441.js} +1 -1
  11. package/dist/bromcom-ui/{p-9edc5dfc.entry.js → p-80464c3c.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-15545203.entry.js → p-8c131e4e.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-65519beb.entry.js → p-b6ef7c28.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-8cfbe8c4.entry.js → p-bd24a3c7.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-676cbe78.entry.js → p-c171a88e.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-06c0ec02.entry.js → p-ca099175.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-ad174e90.entry.js → p-ca3cf7fc.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-0dde0c88.entry.js → p-cf6e9e38.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-ab0101f2.entry.js → p-cfb6787c.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-1d4213c1.entry.js → p-d433d2c0.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-a8e3cc3e.entry.js → p-db997c0f.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-6573082c.entry.js → p-f03bd7e3.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-c2212669.entry.js → p-f37c893f.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-2c363308.entry.js → p-fb1d3490.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-bd74a2ab.entry.js → p-fc434782.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-3814b41c.entry.js → p-fe2b51c8.entry.js} +1 -1
  27. package/package.json +1 -1
  28. package/dist/bromcom-ui/p-b839bb82.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-dc792128.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}
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-337b57dc.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}