bromcom-ui 2.5.2-rc.0 → 2.5.2-rc.1
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-40e819f3.entry.js → p-1d5833ab.entry.js} +1 -1
- package/dist/bromcom-ui/{p-eb04342e.entry.js → p-2a3bb329.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e610c375.js → p-41db9f49.js} +1 -1
- package/dist/bromcom-ui/{p-8b4e9fe6.entry.js → p-48d10005.entry.js} +1 -1
- package/dist/bromcom-ui/p-499b3e58.entry.js +1 -0
- package/dist/bromcom-ui/{p-c61fa5eb.js → p-6a419a2a.js} +1 -1
- package/dist/bromcom-ui/{p-176b1c3a.entry.js → p-72e53d98.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4bccb0aa.entry.js → p-754991c2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7db170be.entry.js → p-7655f9ab.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1b0c2a94.entry.js → p-95508ec6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7681ee96.entry.js → p-97661e7c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cf13f881.entry.js → p-9772a340.entry.js} +1 -1
- package/dist/bromcom-ui/{p-42137d0a.entry.js → p-a441c04c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ea74d463.entry.js → p-f2b3a8f7.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-ec1e392e.entry.js +0 -1
|
@@ -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{C as o}from"./p-312efff7.js";import{e as r}from"./p-a80ff3e5.js";import"./p-1429a2b4.js";import{G as
|
|
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{C as o}from"./p-312efff7.js";import{e as r}from"./p-a80ff3e5.js";import"./p-1429a2b4.js";import{G as a}from"./p-6a419a2a.js";import{B as l}from"./p-c6e58492.js";import"./p-6d018a8f.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 m=({_id:e,color:t,customStyle:i,size:a,checked:m,hidden:p,value:d,type:b,onDismiss:u,onSelect:f})=>{!a&&(a=l.FontSize["size-1"]);const g=(s,e=!1)=>(h.isNumber(s)&&(s=l.FontSize["size-"+s]||l.FontSize["size-4"]),e?+(l.FontSizeValue[s]||l.FontSizeValue["size-4"])+2:s),y=c("bcm-tag-2__content",b,g(a)),k=c("bcm-tag-2",{hidden:p}),j=g(a,!0);return s("div",{id:e,class:c(k,{checked:m})},s("span",{hidden:!0},s("slot",null)),s("span",{class:y,style:(s=>{if((b===l.TagType.basic||b==l.TagType.dismissable)&&n[s])return{color:r(o,n[s]+"-6"),borderColor:r(o,n[s]+"-3"),backgroundColor:r(o,n[s]+"-1")}})(t),onClick:s=>f(s)},b===l.TagType.add&&s("span",{class:"left"},s("bcm-icon",{icon:"plus",type:"outlined",color:"grey-8",size:j})),b===l.TagType.checkable&&s("input",{type:"checkbox",checked:m}),s("span",{class:"value",style:i},d),b===l.TagType.dismissable&&s("span",{class:"right close-button",onClick:s=>u(s)},s("i",{class:"bcm-fal bcm-fa-times"}))))},p=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=a.UID(),this._internal_id=a.UID(),this.hidden=!1,this.value="",this.type=l.TagType.basic,this.checked=!1,this.size=l.FontSize["size-1"],this.closeFunc=s=>s,this.selectFunc=s=>s}handleClick(){this.type===l.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:r,checked:a}=this;return s(m,{size:o,hidden:r,color:t,customStyle:c,checked:a,value:i,type:l.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)}};p.style="";export{p as bcm_tag_2}
|