bromcom-ui 2.6.2-rc.5 → 2.6.2-rc.8
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-651d6741.entry.js → p-0a850eb3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-522994e9.entry.js → p-15dc8dd2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3dd8a22e.entry.js → p-16e853ca.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5562f3b4.entry.js → p-1e454926.entry.js} +1 -1
- package/dist/bromcom-ui/{p-61692f02.entry.js → p-20a8983b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b4b089b5.entry.js → p-25b6fe6b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bc9603ef.entry.js → p-2abae21a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8817b2de.entry.js → p-31a74bbe.entry.js} +1 -1
- package/dist/bromcom-ui/{p-110d0b3c.entry.js → p-33548b3d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dd5b678d.entry.js → p-36837b75.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d77bba9b.entry.js → p-39eb62bb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8778b94d.entry.js → p-55ec2a6d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-814daad2.js → p-65de31b7.js} +1 -1
- package/dist/bromcom-ui/p-7290d7d0.entry.js +1 -0
- package/dist/bromcom-ui/{p-6ef9fe57.entry.js → p-8491673e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f294e57b.entry.js → p-905edcd5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-59332333.entry.js → p-942b48e9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e0ee87b1.entry.js → p-98e625b8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-61479e44.entry.js → p-9cfc0b4a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fed284ae.entry.js → p-a0825d01.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d002ff02.entry.js → p-a1478c49.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2e79b5d3.entry.js → p-b92a27fd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2262c963.entry.js → p-d3a5998a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f49d6ed7.entry.js → p-d3e37512.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d1e5903a.entry.js → p-d81f1aca.entry.js} +1 -1
- package/dist/bromcom-ui/{p-613e2e52.entry.js → p-db15fadc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-edf5560b.entry.js → p-dbb79939.entry.js} +1 -1
- package/dist/bromcom-ui/p-deaadca4.js +1 -0
- package/dist/bromcom-ui/{p-188f8767.entry.js → p-e8cf6eb5.entry.js} +1 -1
- package/dist/bromcom-ui/p-fdf03c65.entry.js +1 -0
- package/dist/bromcom-ui/p-fee1f12b.js +1 -0
- package/package.json +1 -1
- package/dist/bromcom-ui/p-0c3a753e.entry.js +0 -1
- package/dist/bromcom-ui/p-b0a06a20.entry.js +0 -1
- package/dist/bromcom-ui/p-b43213d3.js +0 -1
- package/dist/bromcom-ui/p-e169f368.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s,r as e,c as t,g as i}from"./p-9d960649.js";import{G as o}from"./p-
|
|
1
|
+
import{h as s,r as e,c as t,g as i}from"./p-9d960649.js";import{G as o}from"./p-65de31b7.js";import{B as c}from"./p-60271ed7.js";import"./p-112455b1.js";import{c as r}from"./p-7294ec8e.js";import"./p-6d018a8f.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:o,checked:d,hidden:m,value:p,type:b,onDismiss:u,onSelect:f})=>{!o&&(o=c.FontSize["size-1"]);const g=(s,e=!1)=>(h.isNumber(s)&&(s=c.FontSize["size-"+s]||c.FontSize["size-4"]),e?+(c.FontSizeValue[s]||c.FontSizeValue["size-4"])+2:s),y=r("bcm-tag__content",b,g(o)),k=r("bcm-tag",{hidden:m}),j=g(o,!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===c.TagType.basic||b==c.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===c.TagType.add&&s("span",{class:"left"},s("bcm-old-icon",{icon:"plus",type:"outlined",color:"grey-8",size:j})),b===c.TagType.checkable&&s("input",{type:"checkbox",checked:d}),s("span",{class:"value",style:i},p),b===c.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=o.UID(),this._internal_id=o.UID(),this.hidden=!1,this.value="",this.type=c.TagType.basic,this.checked=!1,this.size=c.FontSize["size-1"],this.closeFunc=s=>s,this.selectFunc=s=>s}handleClick(){this.type===c.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:o,size:r,hidden:l,checked:a}=this;return s(d,{size:r,hidden:l,color:t,customStyle:o,checked:a,value:i,type:c.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}
|