bromcom-ui 2.5.3-rc.21 → 2.5.3-rc.22
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-7572365c.entry.js → p-18b250f4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2cf97b10.entry.js → p-1cf52e59.entry.js} +1 -1
- package/dist/bromcom-ui/{p-71bfac55.entry.js → p-263b0d45.entry.js} +1 -1
- package/dist/bromcom-ui/{p-88e56fb6.entry.js → p-29b49eb7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-41965ea2.entry.js → p-2a24f83a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-695564fc.js → p-369594db.js} +1 -1
- package/dist/bromcom-ui/{p-57c6511a.entry.js → p-4aa4e5de.entry.js} +1 -1
- package/dist/bromcom-ui/p-4f3ca2ea.entry.js +1 -0
- package/dist/bromcom-ui/{p-6e4edfef.entry.js → p-546131cb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-993f0e94.entry.js → p-594926a7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c7bf7f38.entry.js → p-59d8879a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b7fb5df4.entry.js → p-60afd7aa.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f093f680.entry.js → p-7579c3ab.entry.js} +1 -1
- package/dist/bromcom-ui/{p-527dc5a0.entry.js → p-817840a9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3351f4ac.entry.js → p-84698f9f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ba38362c.entry.js → p-87c8fc51.entry.js} +1 -1
- package/dist/bromcom-ui/{p-97879d39.entry.js → p-911b5bfd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f40664cf.js → p-a3474cc1.js} +1 -1
- package/dist/bromcom-ui/{p-afda8593.entry.js → p-cb410368.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d7bb7528.entry.js → p-d31611f1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0ff4f498.entry.js → p-d8946d11.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e0c18821.entry.js → p-eab1bac4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9144dc53.entry.js → p-f268fd93.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bd66ecc9.entry.js → p-fd2fcfd4.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-005aafea.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-
|
|
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-a3474cc1.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 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 +1 @@
|
|
|
1
|
-
import{h as s,r as e,c as t,g as i}from"./p-74df82e2.js";import"./p-112455b1.js";import{c}from"./p-7294ec8e.js";import{G as o}from"./p-
|
|
1
|
+
import{h as s,r as e,c as t,g as i}from"./p-74df82e2.js";import"./p-112455b1.js";import{c}from"./p-7294ec8e.js";import{G as o}from"./p-a3474cc1.js";import{a as r}from"./p-7e73190d.js";import"./p-6d018a8f.js";import{C as l}from"./p-312efff7.js";import{e as a}from"./p-84313244.js";import{N as h}from"./p-44d6172f.js";var n;!function(s){s.black="black",s.white="white",s["prime-blue"]="prime-blue",s.grey="grey",s.blue="blue",s.warmyellow="warmyellow",s.yellow="yellow",s.limegreen="limegreen",s.red="red",s.darkorange="darkorange",s.orange="orange",s.green="green",s.turquosie="turquosie",s.cobaltblue="cobaltblue",s.magenta="magenta",s.purple="purple",s["bc-red"]="bc-red",s["bc-blue"]="bc-blue",s["bc-green"]="bc-green",s["bc-orange"]="bc-orange"}(n||(n={}));const d=({_id:e,color:t,customStyle:i,size:o,checked:d,hidden:m,value:p,type:u,onDismiss:b,onSelect:g})=>{!o&&(o=r.FontSize["size-1"]);const f=(s,e=!1)=>(h.isNumber(s)&&(s=r.FontSize["size-"+s]||r.FontSize["size-4"]),e?+(r.FontSizeValue[s]||r.FontSizeValue["size-4"])+2:s),y=c("bcm-tag__content",u,f(o)),k=c("bcm-tag",{hidden:m}),j=f(o,!0);return s("div",{id:e,class:c(k,{checked:d})},s("span",{hidden:!0},s("slot",null)),s("span",{class:y,style:(s=>{if((u===r.TagType.basic||u==r.TagType.dismissable)&&n[s])return{color:a(l,n[s]+"-6"),borderColor:a(l,n[s]+"-3"),backgroundColor:a(l,n[s]+"-1")}})(t),onClick:s=>g(s)},u===r.TagType.add&&s("span",{class:"left"},s("bcm-old-icon",{icon:"plus",type:"outlined",color:"grey-8",size:j})),u===r.TagType.checkable&&s("input",{type:"checkbox",checked:d}),s("span",{class:"value",style:i},p),u===r.TagType.dismissable&&s("span",{class:"right close-button",onClick:s=>b(s)},s("i",{class:"bcm-fal bcm-fa-times"}))))},m=class{constructor(s){e(this,s),this.change=t(this,"bcm-change",7),this.tagDismissable=t(this,"bcm-tag-dismissable",7),this.bcmTagSelect=t(this,"bcm-tag-select",7),this._id=o.UID(),this._internal_id=o.UID(),this.hidden=!1,this.value="",this.type=r.TagType.basic,this.checked=!1,this.size=r.FontSize["size-1"],this.closeFunc=s=>s,this.selectFunc=s=>s}handleClick(){this.type===r.TagType.checkable&&this.handleChecked()}handleClose(){this.tagDismissable.emit(this.el)}handleChecked(){this.checked=!this.checked,this.change.emit(this.checked)}render(){const{type:e,color:t,value:i,customStyle:c,size:o,hidden:l,checked:a}=this;return s(d,{size:o,hidden:l,color:t,customStyle:c,checked:a,value:i,type:r.TagType[e],onSelect:s=>{this.bcmTagSelect.emit(s),this.selectFunc({event:s,id:this._id})},onDismiss:s=>{this.handleClose(),this.closeFunc(s)}})}get el(){return i(this)}};export{m as bcm_tag}
|