bromcom-ui 2.6.2-rc.4 → 2.6.2-rc.7
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-bca6ad80.entry.js → p-01adb7b7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-14a01c99.entry.js → p-0d95fb7f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b1f64013.entry.js → p-1fdae6b4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-599d3d84.entry.js → p-268ac3f3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9d1fb4ad.entry.js → p-4021073f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5421ac6c.entry.js → p-4037c37e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4308e76a.entry.js → p-46e61ea1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d15e29c8.entry.js → p-4b701f60.entry.js} +1 -1
- package/dist/bromcom-ui/{p-69bccbbc.js → p-52aa51ce.js} +1 -1
- package/dist/bromcom-ui/{p-cc15d4c3.entry.js → p-57d75242.entry.js} +1 -1
- package/dist/bromcom-ui/{p-050a804f.entry.js → p-59a05aaa.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ba062e32.entry.js → p-5d4fe0a9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4e1cc302.entry.js → p-68159e46.entry.js} +1 -1
- package/dist/bromcom-ui/{p-60ad80b9.entry.js → p-6b14a761.entry.js} +1 -1
- package/dist/bromcom-ui/{p-559a8618.entry.js → p-71d066fb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4c4c041a.entry.js → p-7227b23c.entry.js} +1 -1
- package/dist/bromcom-ui/p-73eecb56.entry.js +1 -0
- package/dist/bromcom-ui/{p-419460c7.entry.js → p-9be362b8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f6c14afb.entry.js → p-9fc576cc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-eff1e78e.entry.js → p-aa2e4ead.entry.js} +1 -1
- package/dist/bromcom-ui/p-abb13d19.js +1 -0
- package/dist/bromcom-ui/{p-5f329991.entry.js → p-cf9cdcdb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9e837d41.entry.js → p-d9fb5e82.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f06fe023.entry.js → p-dce28227.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3d40f551.entry.js → p-ea1b3d1b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0e2a6011.entry.js → p-ed6cb78d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a2c8f6a9.entry.js → p-f0a83e99.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c8c705d8.entry.js → p-f5387ae1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9d1353f5.entry.js → p-f5e3f6f2.entry.js} +1 -1
- package/dist/bromcom-ui/p-f97bb531.entry.js +1 -0
- package/package.json +1 -1
- package/dist/bromcom-ui/p-016b55b6.entry.js +0 -1
- package/dist/bromcom-ui/p-80d10b1b.entry.js +0 -1
- package/dist/bromcom-ui/p-e3137520.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 c}from"./p-
|
|
1
|
+
import{h as s,r as e,c as t,g as i}from"./p-9d960649.js";import{G as c}from"./p-52aa51ce.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}
|