bromcom-ui 2.5.3-rc.20 → 2.5.3-rc.21

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-005aafea.entry.js +1 -0
  3. package/dist/bromcom-ui/{p-6a59ea7e.entry.js → p-0ff4f498.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-74916b30.entry.js → p-2cf97b10.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-fe029bb5.entry.js → p-3351f4ac.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-a7323c46.entry.js → p-41965ea2.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-d55981b2.entry.js → p-527dc5a0.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-114f55ed.entry.js → p-57c6511a.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-4081368d.js → p-695564fc.js} +1 -1
  10. package/dist/bromcom-ui/{p-74b43db3.entry.js → p-6e4edfef.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-80751c6b.entry.js → p-71bfac55.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-09096580.entry.js → p-7572365c.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-d5ba8190.entry.js → p-88e56fb6.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-3053634d.entry.js → p-9144dc53.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-393e78f3.entry.js → p-97879d39.entry.js} +1 -1
  16. package/dist/bromcom-ui/p-993f0e94.entry.js +1 -0
  17. package/dist/bromcom-ui/{p-90ead831.entry.js → p-afda8593.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-ea8fdf87.entry.js → p-b7fb5df4.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-eb26d4a5.entry.js → p-ba38362c.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-e37e1c63.entry.js → p-bd66ecc9.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-c9baa282.entry.js → p-c7bf7f38.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-7d6dc63e.entry.js → p-d7bb7528.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-bc282041.entry.js → p-e0c18821.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-aaba924c.entry.js → p-f093f680.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-fa7f5509.js → p-f40664cf.js} +1 -1
  26. package/package.json +1 -1
  27. package/dist/bromcom-ui/p-096470e7.entry.js +0 -1
  28. package/dist/bromcom-ui/p-5be203c3.entry.js +0 -1
@@ -0,0 +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-f40664cf.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:f})=>{!o&&(o=r.FontSize["size-1"]);const g=(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,g(o)),k=c("bcm-tag",{hidden:m}),j=g(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=>f(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}