bromcom-ui 2.5.1 → 2.5.2-rc.2

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 (46) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/{p-78fa50e2.entry.js → p-027e2705.entry.js} +1 -1
  3. package/dist/bromcom-ui/{p-313728b5.entry.js → p-1dcab991.entry.js} +1 -1
  4. package/dist/bromcom-ui/p-31a2ff78.entry.js +1 -0
  5. package/dist/bromcom-ui/{p-7f28f038.js → p-66ba7ea5.js} +1 -1
  6. package/dist/bromcom-ui/{p-2f84d05c.entry.js → p-72fe0286.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-c6e58492.js → p-7e73190d.js} +1 -1
  8. package/dist/bromcom-ui/p-86aeef40.entry.js +1 -0
  9. package/dist/bromcom-ui/p-87a280db.js +1 -0
  10. package/dist/bromcom-ui/{p-65aad9e2.js → p-8d4017a2.js} +1 -1
  11. package/dist/bromcom-ui/p-95f779d6.entry.js +1 -0
  12. package/dist/bromcom-ui/{p-9105bca9.entry.js → p-a5bfd577.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-f0ba90d1.entry.js → p-aaa3dd17.entry.js} +1 -1
  14. package/dist/bromcom-ui/p-afc3eac4.entry.js +1 -0
  15. package/dist/bromcom-ui/{p-b45e3f70.entry.js → p-bd618d5a.entry.js} +1 -1
  16. package/dist/bromcom-ui/p-c34ad1b3.entry.js +1 -0
  17. package/dist/bromcom-ui/p-d24f379f.entry.js +1 -0
  18. package/dist/bromcom-ui/p-f422ec12.js +1 -0
  19. package/package.json +2 -2
  20. package/dist/bromcom-ui/p-12e7e8ec.entry.js +0 -1
  21. package/dist/bromcom-ui/p-14c63a9d.js +0 -1
  22. package/dist/bromcom-ui/p-150bea57.entry.js +0 -1
  23. package/dist/bromcom-ui/p-17c7c4d1.entry.js +0 -1
  24. package/dist/bromcom-ui/p-17e96453.js +0 -1
  25. package/dist/bromcom-ui/p-20d1fe2f.js +0 -1
  26. package/dist/bromcom-ui/p-2b39c8ef.js +0 -1
  27. package/dist/bromcom-ui/p-3b3667ad.entry.js +0 -1
  28. package/dist/bromcom-ui/p-56dbe576.entry.js +0 -1
  29. package/dist/bromcom-ui/p-5b45fc6a.entry.js +0 -1
  30. package/dist/bromcom-ui/p-7ab20b6d.entry.js +0 -1
  31. package/dist/bromcom-ui/p-821e061b.entry.js +0 -1
  32. package/dist/bromcom-ui/p-8ad406b3.js +0 -1
  33. package/dist/bromcom-ui/p-9d0a08a2.js +0 -1
  34. package/dist/bromcom-ui/p-a331ae2f.entry.js +0 -1
  35. package/dist/bromcom-ui/p-a5403cdb.js +0 -1
  36. package/dist/bromcom-ui/p-b9754409.entry.js +0 -1
  37. package/dist/bromcom-ui/p-c26faf31.entry.js +0 -1
  38. package/dist/bromcom-ui/p-c6e05daa.js +0 -1
  39. package/dist/bromcom-ui/p-d3311bc8.entry.js +0 -1
  40. package/dist/bromcom-ui/p-dbc636d2.entry.js +0 -1
  41. package/dist/bromcom-ui/p-dd148810.js +0 -1
  42. package/dist/bromcom-ui/p-e7ddd6a6.entry.js +0 -1
  43. package/dist/bromcom-ui/p-e7e88c89.entry.js +0 -1
  44. package/dist/bromcom-ui/p-e9baf97b.entry.js +0 -1
  45. package/dist/bromcom-ui/p-f868b573.entry.js +0 -1
  46. package/dist/bromcom-ui/p-fb577155.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{h as e,d as s,f as t}from"./p-74df82e2.js";import{S as r}from"./p-66ba7ea5.js";import{C as n}from"./p-312efff7.js";import{e as o}from"./p-a80ff3e5.js";const a=({value:s,className:t,name:n})=>r.isNullOrEmpty(s)?e("span",{class:t},e("slot",Object.assign({},n&&{name:n}))):e("span",{class:t},s);class c{}c.isHex=e=>/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e),c.isRgb=e=>/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.test(e),c.isRgba=e=>/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.test(e),c.isHsl=e=>/^hsl\((\d{1,3}),\s*(\d{1,3}%),\s*(\d{1,3}%)\)$/.test(e),c.isHsla=e=>/^hsla\((\d{1,3}),\s*(\d{1,3}%),\s*(\d{1,3}%),\s*(\d{1,3})\)$/.test(e),c.convertColorToHex=e=>{if(e){if(c.isHex(e))return e;if(c.isRgb(e)){const s=e.match(/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/);return"#"+(16777216+65536*parseInt(s[1])+256*parseInt(s[2])+parseInt(s[3])).toString(16).substring(1)}if(o(n,e))return o(n,e)}},c.reverseColor=e=>{const s=c.convertColorToHex(e);if(s)return(299*parseInt(s.substring(1,3),16)+587*parseInt(s.substring(3,5),16)+114*parseInt(s.substring(5,7),16))/1e3>=200?"#000000":"#FFFFFF"};const p=e=>!("isConnected"in e)||e.isConnected,d=(()=>{let e;return(...s)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let s of e.keys())e.set(s,e.get(s).filter(p))})(...s)}),2e3)}})(),f=(e,r)=>{const n=((e,s=((e,s)=>e!==s))=>{let t=new Map(Object.entries(null!=e?e:{}));const r={dispose:[],get:[],set:[],reset:[]},n=()=>{t=new Map(Object.entries(null!=e?e:{})),r.reset.forEach((e=>e()))},o=e=>(r.get.forEach((s=>s(e))),t.get(e)),a=(e,n)=>{const o=t.get(e);s(n,o,e)&&(t.set(e,n),r.set.forEach((s=>s(e,n,o))))},c="undefined"==typeof Proxy?{}:new Proxy(e,{get:(e,s)=>o(s),ownKeys:()=>Array.from(t.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,s)=>t.has(s),set:(e,s,t)=>(a(s,t),!0)}),p=(e,s)=>(r[e].push(s),()=>{((e,s)=>{const t=e.indexOf(s);t>=0&&(e[t]=e[e.length-1],e.length--)})(r[e],s)});return{state:c,get:o,set:a,on:p,onChange:(s,t)=>{const r=p("set",((e,r)=>{e===s&&t(r)})),n=p("reset",(()=>t(e[s])));return()=>{r(),n()}},use:(...e)=>{const s=e.reduce(((e,s)=>(s.set&&e.push(p("set",s.set)),s.get&&e.push(p("get",s.get)),s.reset&&e.push(p("reset",s.reset)),s.dispose&&e.push(p("dispose",s.dispose)),e)),[]);return()=>s.forEach((e=>e()))},dispose:()=>{r.dispose.forEach((e=>e())),n()},reset:n,forceUpdate:e=>{const s=t.get(e);r.set.forEach((t=>t(e,s,s)))}}})(e,r);return n.use((()=>{if("function"!=typeof s)return{};const e=new Map;return{dispose:()=>e.clear(),get:t=>{const r=s();r&&((e,s,t)=>{const r=e.get(s);r?r.includes(t)||r.push(t):e.set(s,[t])})(e,t,r)},set:s=>{const r=e.get(s);r&&e.set(s,r.filter(t)),d(e)},reset:()=>{e.forEach((e=>e.forEach(t))),d(e)}}})()),n};export{c as C,a as S,f as c}
@@ -1 +1 @@
1
- import{S as t}from"./p-7f28f038.js";const e={left:"right",right:"left",top:"bottom",bottom:"top"},r=t=>1===t.length?e[t[0]]:[e[t[0]],t[1]].join("-"),s=(e,s,a,c)=>{const{width:o,height:n}=e.getBoundingClientRect(),{left:u,right:i,top:h,bottom:d}=s.getBoundingClientRect(),f=t.textContains(a,"-")?a.split("-"):a.split(" "),w=document.documentElement.clientWidth,l=document.documentElement.clientHeight;switch(f[0]){case"left":u<o+8&&c(r(f));break;case"right":w<i+o+8&&c(r(f));break;case"top":h<n+8&&c(r(f));break;case"bottom":l<d+n+8&&c(r(f))}},a=(e,r)=>{const s=r.getBoundingClientRect(),a=s.top+window.pageYOffset,c=s.left+window.pageXOffset,o=s.height,n=s.width,u=t.textContains(e,"-")?e.split("-"):e.split(" ");switch(u[0]){case"left":switch(u[1]){case"start":return[a,c];case"end":return[a+o,c];default:return[a+o/2,c]}case"right":switch(u[1]){case"start":return[a,c+n];case"end":return[a+o,c+n];default:return[a+o/2,c+n]}case"top":switch(u[1]){case"start":return[a,c];case"end":return[a,c+n];default:return[a,c+n/2]}case"bottom":switch(u[1]){case"start":return[a+o,c];case"end":return[a+o,c+n];default:return[a+o,c+n/2]}}};export{s as g,a as s}
1
+ import{S as t}from"./p-66ba7ea5.js";const e={left:"right",right:"left",top:"bottom",bottom:"top"},r=t=>1===t.length?e[t[0]]:[e[t[0]],t[1]].join("-"),s=(e,s,a,c)=>{const{width:o,height:n}=e.getBoundingClientRect(),{left:u,right:i,top:h,bottom:d}=s.getBoundingClientRect(),w=t.textContains(a,"-")?a.split("-"):a.split(" "),f=document.documentElement.clientWidth,b=document.documentElement.clientHeight;switch(w[0]){case"left":u<o+8&&c(r(w));break;case"right":f<i+o+8&&c(r(w));break;case"top":h<n+8&&c(r(w));break;case"bottom":b<d+n+8&&c(r(w))}},a=(e,r)=>{const s=r.getBoundingClientRect(),a=s.top+window.pageYOffset,c=s.left+window.pageXOffset,o=s.height,n=s.width,u=t.textContains(e,"-")?e.split("-"):e.split(" ");switch(u[0]){case"left":switch(u[1]){case"start":return[a,c];case"end":return[a+o,c];default:return[a+o/2,c]}case"right":switch(u[1]){case"start":return[a,c+n];case"end":return[a+o,c+n];default:return[a+o/2,c+n]}case"top":switch(u[1]){case"start":return[a,c];case"end":return[a,c+n];default:return[a,c+n/2]}case"bottom":switch(u[1]){case"start":return[a+o,c];case"end":return[a+o,c+n];default:return[a+o,c+n/2]}}};export{s as g,a as s}