bromcom-ui 2.6.3-new-ds.3 → 2.6.3-new-ds.6
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-a1d32eca.entry.js → p-01f293ce.entry.js} +1 -1
- package/dist/bromcom-ui/{p-24e1c9b8.js → p-04e3c61c.js} +1 -1
- package/dist/bromcom-ui/{p-45bbab2f.entry.js → p-094838e0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ea6b869c.entry.js → p-094e55c8.entry.js} +1 -1
- package/dist/bromcom-ui/p-0e304371.entry.js +1 -0
- package/dist/bromcom-ui/p-22a5cf45.entry.js +1 -0
- package/dist/bromcom-ui/{p-bd03a436.entry.js → p-2d4ecbf0.entry.js} +1 -1
- package/dist/bromcom-ui/p-32b586bd.entry.js +1 -0
- package/dist/bromcom-ui/{p-1e7c4061.entry.js → p-336851de.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e60363c7.entry.js → p-349f7a06.entry.js} +1 -1
- package/dist/bromcom-ui/{p-05e00dd1.entry.js → p-3914ba60.entry.js} +1 -1
- package/dist/bromcom-ui/p-39d9f226.entry.js +1 -0
- package/dist/bromcom-ui/p-3a091bcb.entry.js +1 -0
- package/dist/bromcom-ui/{p-45a62a59.entry.js → p-3e1e07fc.entry.js} +1 -1
- package/dist/bromcom-ui/p-40e35d93.entry.js +1 -0
- package/dist/bromcom-ui/{p-4b3d8b4b.entry.js → p-44cf341c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-eefe8660.entry.js → p-498773fa.entry.js} +1 -1
- package/dist/bromcom-ui/p-4a61cf92.entry.js +1 -0
- package/dist/bromcom-ui/p-4f5d5e8c.entry.js +1 -0
- package/dist/bromcom-ui/{p-10d61c82.entry.js → p-579ccea6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e4258c2a.entry.js → p-59bc3473.entry.js} +1 -1
- package/dist/bromcom-ui/p-5d7657c4.entry.js +1 -0
- package/dist/bromcom-ui/{p-b1f9c4bd.entry.js → p-5e2c13b6.entry.js} +1 -1
- package/dist/bromcom-ui/p-62550b36.entry.js +1 -0
- package/dist/bromcom-ui/{p-7af7e2e0.entry.js → p-65660c16.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5f7aead2.js → p-6695efde.js} +1 -1
- package/dist/bromcom-ui/{p-3b37bf88.entry.js → p-6add756e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-811bb03a.entry.js → p-6adef7bc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b6660da9.entry.js → p-6e51f300.entry.js} +1 -1
- package/dist/bromcom-ui/{p-489ad4bc.entry.js → p-72d1e415.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3ab13b08.entry.js → p-7632628c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fa30e46d.entry.js → p-7f4b5acb.entry.js} +1 -1
- package/dist/bromcom-ui/p-80661d65.js +1 -0
- package/dist/bromcom-ui/p-80df2240.entry.js +1 -0
- package/dist/bromcom-ui/p-89ede8c2.entry.js +1 -0
- package/dist/bromcom-ui/{p-0fe4c7ad.entry.js → p-906cd1d8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e10fcf81.entry.js → p-9ba0c6fb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b63d2428.entry.js → p-9cf7682f.entry.js} +1 -1
- package/dist/bromcom-ui/p-a4433a78.js +1 -0
- package/dist/bromcom-ui/p-b144eb5e.js +1 -0
- package/dist/bromcom-ui/p-b2a54dac.js +1 -0
- package/dist/bromcom-ui/{p-e0a053fb.js → p-b486cae3.js} +1 -1
- package/dist/bromcom-ui/{p-689f1927.entry.js → p-b5192846.entry.js} +1 -1
- package/dist/bromcom-ui/{p-06ba3975.entry.js → p-bdcea326.entry.js} +1 -1
- package/dist/bromcom-ui/{p-12b42256.entry.js → p-dd93f3b1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a0b6c125.entry.js → p-dfc7ba99.entry.js} +1 -1
- package/dist/bromcom-ui/{p-613219a8.entry.js → p-e2de821d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-71072f92.entry.js → p-ebbef730.entry.js} +1 -1
- package/dist/bromcom-ui/p-ec06fb2f.entry.js +1 -0
- package/dist/bromcom-ui/p-ed38e5d2.js +1 -0
- package/dist/bromcom-ui/{p-e9ee2044.entry.js → p-ef1b42ba.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-169599f4.entry.js +0 -1
- package/dist/bromcom-ui/p-18d5d41f.entry.js +0 -1
- package/dist/bromcom-ui/p-37a801f3.entry.js +0 -1
- package/dist/bromcom-ui/p-522574c5.entry.js +0 -1
- package/dist/bromcom-ui/p-5745d083.entry.js +0 -1
- package/dist/bromcom-ui/p-5e42ff07.entry.js +0 -1
- package/dist/bromcom-ui/p-6595d6c0.js +0 -1
- package/dist/bromcom-ui/p-66fbf8c0.js +0 -1
- package/dist/bromcom-ui/p-6abcaeed.entry.js +0 -1
- package/dist/bromcom-ui/p-76fb1269.entry.js +0 -1
- package/dist/bromcom-ui/p-8861889b.entry.js +0 -1
- package/dist/bromcom-ui/p-8a44193c.entry.js +0 -1
- package/dist/bromcom-ui/p-8f81f6ad.entry.js +0 -1
- package/dist/bromcom-ui/p-9b2d9cae.entry.js +0 -1
- package/dist/bromcom-ui/p-9e7d3618.js +0 -1
- package/dist/bromcom-ui/p-bfe2448b.js +0 -1
- package/dist/bromcom-ui/p-ea6f25da.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as e}from"./p-9d960649.js";import{G as h}from"./p-
|
|
1
|
+
import{r as t,c as s,h as i,H as e}from"./p-9d960649.js";import{G as h}from"./p-b486cae3.js";import"./p-6d018a8f.js";import{B as a}from"./p-af3de684.js";import"./p-112455b1.js";import{c as r}from"./p-7294ec8e.js";import{d as n}from"./p-a80ff3e5.js";import{C as l}from"./p-fee1f12b.js";import{I as c}from"./p-ed38e5d2.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=h.UID(),this._internal_id=h.UID(),this.hidden=!1,this.required=!1,this.noCaption=!1,this.captionType=a.Status.default,this.rows=3,this.size=a.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(){return await n(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await n(10),Promise.resolve()}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:h,fullWidth:n,size:o,rows:d,disabled:p,clearable:u,label:m,focused:b,noCaption:f,caption:y,captionError:w,captionType:C,value:g,resize:j,maxLength:v,placeholder:B,required:x}=this,z=r("bcm-input",{hidden:s,"full-width":n});return i(e,{class:z},m&&i("bcm-label",{type:C,value:m,required:x,htmlFor:t}),i(c,{elementType:a.HtmlElementType.textarea,id:t,value:g,rows:d,disabled:p,maxLength:v,placeholder:B,clearable:u,resize:j,readonly:h,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:C,captionError:w,caption:y,value:g,maxLength:v}))}static get watchers(){return{value:["watchValue"]}}};export{d as bcm_textarea}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as s,r as e,c as t,g as i}from"./p-9d960649.js";import{G as c}from"./p-b486cae3.js";import"./p-6d018a8f.js";import{B as o}from"./p-af3de684.js";import"./p-112455b1.js";import{c as r}from"./p-7294ec8e.js";import{C as l}from"./p-312efff7.js";import{e as a}from"./p-a80ff3e5.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:c,checked:d,hidden:m,value:p,type:b,onDismiss:u,onSelect:f})=>{!c&&(c=o.FontSize["size-1"]);const g=(s,e=!1)=>(h.isNumber(s)&&(s=o.FontSize["size-"+s]||o.FontSize["size-4"]),e?+(o.FontSizeValue[s]||o.FontSizeValue["size-4"])+2:s),y=r("bcm-tag__content",b,g(c)),k=r("bcm-tag",{hidden:m}),j=g(c,!0);return s("div",{id:e,class:r(k,{checked:d})},s("span",{hidden:!0},s("slot",null)),s("span",{class:y,style:(s=>{if((b===o.TagType.basic||b==o.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=>f(s)},b===o.TagType.add&&s("span",{class:"left"},s("bcm-old-icon",{icon:"plus",type:"outlined",color:"grey-8",size:j})),b===o.TagType.checkable&&s("input",{type:"checkbox",checked:d}),s("span",{class:"value",style:i},p),b===o.TagType.dismissable&&s("span",{class:"right close-button",onClick:s=>u(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=c.UID(),this._internal_id=c.UID(),this.hidden=!1,this.value="",this.type=o.TagType.basic,this.checked=!1,this.size=o.FontSize["size-1"],this.closeFunc=s=>s,this.selectFunc=s=>s}handleClick(){this.type===o.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:r,hidden:l,checked:a}=this;return s(d,{size:r,hidden:l,color:t,customStyle:c,checked:a,value:i,type:o.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}
|