bromcom-ui 2.6.2-rc.2 → 2.6.2-rc.3
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.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/{p-8aa72ee7.entry.js → p-0220611b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a23b2b20.entry.js → p-0312ba23.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e1048959.entry.js → p-14c30877.entry.js} +1 -1
- package/dist/bromcom-ui/{p-175be4f6.entry.js → p-15350dd6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b873746a.entry.js → p-1ddba813.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4d60a245.entry.js → p-212eeb7e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-988ea49a.entry.js → p-29df787b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e4a29f1d.js → p-2d7b82f4.js} +1 -1
- package/dist/bromcom-ui/{p-56eb12fb.entry.js → p-4e961948.entry.js} +1 -1
- package/dist/bromcom-ui/{p-21d3d5f8.entry.js → p-58dda925.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d0094756.entry.js → p-5aa7028e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bdd7ab5c.entry.js → p-640b5b0a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-90541ece.entry.js → p-73ab1590.entry.js} +1 -1
- package/dist/bromcom-ui/p-7aaf6b3c.entry.js +1 -0
- package/dist/bromcom-ui/{p-c89bac13.entry.js → p-81b43acb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-90299e83.entry.js → p-88473044.entry.js} +1 -1
- package/dist/bromcom-ui/{p-53e90cc7.entry.js → p-9ce31b1b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-88947288.entry.js → p-a87a2060.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ef678571.entry.js → p-ab0abbe7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b193b79b.entry.js → p-b5cecd46.entry.js} +1 -1
- package/dist/bromcom-ui/{p-976f5b05.entry.js → p-be1965d1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6f668896.entry.js → p-c628f0fa.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bd08f7d5.js → p-c64621d0.js} +1 -1
- package/dist/bromcom-ui/{p-cf55e6f6.entry.js → p-cc306139.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c2434e91.entry.js → p-ce8f7600.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4d50937f.entry.js → p-cfb6de84.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1ac0a418.entry.js → p-d20a38dc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-60c93508.entry.js → p-d94e6ea5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-93755d42.entry.js → p-f5446a3d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-76f8a564.entry.js → p-f6a319ea.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-d66fe737.entry.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
|
|
1
|
+
import{h as s,r as e,c as t,g as i}from"./p-9d960649.js";import{G as c}from"./p-c64621d0.js";import{B as o}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:c,checked:d,hidden:m,value:p,type:u,onDismiss:b,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",u,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((u===o.TagType.basic||u==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)},u===o.TagType.add&&s("span",{class:"left"},s("bcm-old-icon",{icon:"plus",type:"outlined",color:"grey-8",size:j})),u===o.TagType.checkable&&s("input",{type:"checkbox",checked:d}),s("span",{class:"value",style:i},p),u===o.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=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}
|