bromcom-ui 2.5.2-rc.0 → 2.5.2-rc.1

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.
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e,H as r,g as i}from"./p-74df82e2.js";import"./p-112455b1.js";import"./p-1429a2b4.js";import{G as a}from"./p-6a419a2a.js";import"./p-c6e58492.js";import{S as o}from"./p-7f28f038.js";import{s as l}from"./p-6d018a8f.js";const d=class{constructor(e){t(this,e),this.bcmItems=s(this,"bcm-items",7),this._id=a.UID()}connectedCallback(){if(this.el.children&&this.el.children.length>0){let t=l((()=>{var t;return Array.from(null===(t=this.el)||void 0===t?void 0:t.children).map((t=>({id:t.getAttribute("id")||a.UID(),text:t.getAttribute("text")||t.textContent.trim(),isHtmlContent:t.innerHTML.trim(),disabled:o.elementBooleanCheck(t.getAttribute("disabled")),selected:o.elementBooleanCheck(t.getAttribute("selected")),checked:o.elementBooleanCheck(t.getAttribute("checked")),readonly:o.elementBooleanCheck(t.getAttribute("readonly"))})))}),[]);this.bcmItems.emit(t),this.el.remove()}}render(){return e(r,null,e("slot",null))}get el(){return i(this)}};export{d as bcm_items}
@@ -1 +1 @@
1
- import{S as e}from"./p-1429a2b4.js";const r=["localhost","beta-regression.bromcomcloud.com","beta-scrum.bromcomcloud.com","beta-kanban.bromcomcloud.com"];(()=>{const e=window.location.hostname;return r.includes(e)})()&&console.log("%cbromcom ui%c version: 2.5.2-rc.0-p ","color: white; background:#1890FF; font-weight: 300; font-size:10px; padding:2px 6px; border-radius: 5px","font-size:10px;");class o{}o.UID=()=>Math.random().toString(36).substr(2,9),o.getIconAttrWithStatusType=(r,o=!1)=>{if(o)return{icon:"loading",color:"blue-6"};switch(r){case e.info:return{color:"blue-6",icon:"info-circle"};case e.error:return{color:"red-6",icon:"close-circle"};case e.warning:return{color:"warmyellow-6",icon:"exclamation-circle"};case e.success:return{color:"green-6",icon:"check-circle"}}},o.createComponent=(e,r)=>{let o=document.getElementById("append-area");o||(o=document.createElement("div"),o.id="append-area",document.body.appendChild(o)),o.style.visibility="hidden",o.style.opacity="0";let c=document.getElementById(r.id);return c||(c=document.createElement(e)),Object.keys(r).forEach((e=>{c[e]=r[e]})),o.appendChild(c),c},o.debounceInput=(e,r,o,c)=>{let t;return function(){let n=this,l=arguments;c&&c.apply(n,l);let i=function(){t=null,o||e.apply(n,l)},a=o&&!t;clearTimeout(t),t=setTimeout(i,r),a&&e.apply(n,l)}},o.flatArray=e=>e.reduce(((e,r)=>e.concat(Array.isArray(r)?o.flatArray(r):r)),[]),o.reverseNodeList=e=>{let r=[];for(let o=e.length-1;o>=0;o--)r.push(e[o]);return r},o.findEventPathWithKey=(e,r,o)=>{o=Array.isArray(o)?o:[o];let c=e.path||e.composedPath();if(c)return void 0!==c.filter((e=>o.includes(e[r])))[0]},o.findEventTarget=(e,r)=>{r=Array.isArray(r)?r:[r];let o=e.target||e.srcElement;if(console.log(o),o)return r.includes(o)},o.findEventPath=(e,r)=>{r=Array.isArray(r)?r:[r];let o=e.path||e.composedPath();if(o)return void 0!==o.filter((e=>r.includes(e)))[0]},o.objectIsEmpty=e=>0===Object.keys(e).length&&e.constructor===Object,o.convertIdsToNestedData=(e,r)=>{let c=[],t=[];return r.forEach((r=>{e.indexOf(r.id)>-1?c.push(r):r.items&&(t=o.convertIdsToNestedData(e,r.items),t.length>0&&(r.items=t,c.push(r)))})),c},o.nodeListToArray=e=>Array.prototype.slice.call(e),o.setAttributes=(e,r)=>{Object.keys(r).forEach((o=>{e.setAttribute(o,r[o])}))};export{o as G}
1
+ import{S as e}from"./p-1429a2b4.js";const r=["localhost","beta-regression.bromcomcloud.com","beta-scrum.bromcomcloud.com","beta-kanban.bromcomcloud.com"];(()=>{const e=window.location.hostname;return r.includes(e)})()&&console.log("%cbromcom ui%c version: 2.5.2-rc.1-p ","color: white; background:#1890FF; font-weight: 300; font-size:10px; padding:2px 6px; border-radius: 5px","font-size:10px;");class o{}o.UID=()=>Math.random().toString(36).substr(2,9),o.getIconAttrWithStatusType=(r,o=!1)=>{if(o)return{icon:"loading",color:"blue-6"};switch(r){case e.info:return{color:"blue-6",icon:"info-circle"};case e.error:return{color:"red-6",icon:"close-circle"};case e.warning:return{color:"warmyellow-6",icon:"exclamation-circle"};case e.success:return{color:"green-6",icon:"check-circle"}}},o.createComponent=(e,r)=>{let o=document.getElementById("append-area");o||(o=document.createElement("div"),o.id="append-area",document.body.appendChild(o)),o.style.visibility="hidden",o.style.opacity="0";let c=document.getElementById(r.id);return c||(c=document.createElement(e)),Object.keys(r).forEach((e=>{c[e]=r[e]})),o.appendChild(c),c},o.debounceInput=(e,r,o,c)=>{let t;return function(){let n=this,l=arguments;c&&c.apply(n,l);let i=function(){t=null,o||e.apply(n,l)},a=o&&!t;clearTimeout(t),t=setTimeout(i,r),a&&e.apply(n,l)}},o.flatArray=e=>e.reduce(((e,r)=>e.concat(Array.isArray(r)?o.flatArray(r):r)),[]),o.reverseNodeList=e=>{let r=[];for(let o=e.length-1;o>=0;o--)r.push(e[o]);return r},o.findEventPathWithKey=(e,r,o)=>{o=Array.isArray(o)?o:[o];let c=e.path||e.composedPath();if(c)return void 0!==c.filter((e=>o.includes(e[r])))[0]},o.findEventTarget=(e,r)=>{r=Array.isArray(r)?r:[r];let o=e.target||e.srcElement;if(console.log(o),o)return r.includes(o)},o.findEventPath=(e,r)=>{r=Array.isArray(r)?r:[r];let o=e.path||e.composedPath();if(o)return void 0!==o.filter((e=>r.includes(e)))[0]},o.objectIsEmpty=e=>0===Object.keys(e).length&&e.constructor===Object,o.convertIdsToNestedData=(e,r)=>{let c=[],t=[];return r.forEach((r=>{e&&e.indexOf(r.id)>-1?c.push(r):r.items&&(t=o.convertIdsToNestedData(e,r.items),t.length>0&&(r.items=t,c.push(r)))})),c},o.nodeListToArray=e=>Array.prototype.slice.call(e),o.setAttributes=(e,r)=>{Object.keys(r).forEach((o=>{e.setAttribute(o,r[o])}))};export{o as G}