genesys-spark-chart-components 4.59.0 → 4.60.0
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/cjs/genesys-chart-webcomponents.cjs.js +1 -1
- package/dist/cjs/gux-chart-column-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-line-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +10 -5
- package/dist/cjs/{index-a4712860.js → index-95713c33.js} +27 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-89b73d28.js → usage-53b5aa2a.js} +2 -2
- package/dist/collection/components/beta/gux-visualization/gux-visualization.css +4 -0
- package/dist/collection/components/beta/gux-visualization/gux-visualization.js +7 -2
- package/dist/esm/genesys-chart-webcomponents.js +2 -2
- package/dist/esm/gux-chart-column-beta.entry.js +2 -2
- package/dist/esm/gux-chart-donut-beta.entry.js +2 -2
- package/dist/esm/gux-chart-line-beta.entry.js +2 -2
- package/dist/esm/gux-chart-pie-beta.entry.js +2 -2
- package/dist/esm/gux-chart-scatter-plot-beta.entry.js +2 -2
- package/dist/esm/gux-visualization-beta.entry.js +10 -5
- package/dist/esm/{index-82fd7406.js → index-e4944b0d.js} +27 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{usage-263ac3f7.js → usage-ee82ddfe.js} +2 -2
- package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
- package/dist/genesys-chart-webcomponents/{p-170af58a.entry.js → p-62bd478a.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-81c6cdbe.entry.js → p-6a5c4bfc.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-28fbe05f.entry.js → p-720f9f39.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-c889d551.entry.js → p-9b0f321a.entry.js} +2 -2
- package/dist/genesys-chart-webcomponents/{p-d2a265ea.js → p-bbd7ff25.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-eef88f74.entry.js → p-cc83981e.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/p-e068d41d.js +2 -0
- package/dist/genesys-chart-webcomponents/{p-5ef454b4.entry.js → p-e1770300.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +2 -2
- package/dist/genesys-chart-webcomponents/p-1bc0cc3a.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const t="4.
|
|
1
|
+
const t="4.60.0",e=20,n=3e4,o=[function(t){const[e,n,...o]=t.split(".");return{name:"spark-library",metadata:{fullVersion:`${e}.${n}.${o.join(".")}`,majorVersion:e,minorVersion:`${e}.${n}`}}}(t)];function i(){const t=window.newrelic;if(t){for(let r=0;r<e;r++){if(0==o.length)return void setTimeout(i,n);const e=o.shift();t.addPageAction(e.name,Object.assign(Object.assign({},e.metadata),{queueDepth:o.length}))}setTimeout(i,n)}}let r=!1;function c(e,n){window.newrelic&&(r||(r=!0,i()),document.contains(e)&&o.push({name:"spark-component",metadata:Object.assign(Object.assign({},n),{component:e.tagName.toLowerCase(),version:t})}))}export{c as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,g as e}from"./p-
|
|
1
|
+
import{r as t,h as i,g as e}from"./p-e068d41d.js";import{t as s}from"./p-bbd7ff25.js";import{V as a,l as o}from"./p-f50e3789.js";const r="category",h="value",n=class{constructor(i){t(this,i),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",config:{legend:{symbolType:"circle"}},encoding:{theta:{field:"value",type:"quantitative",stack:!0},color:{field:r,type:"nominal",scale:{range:a},legend:null},tooltip:{aggregate:"count",type:"quantitative"}},layer:[{mark:{type:"arc",outerRadius:80}},{mark:{type:"text",radius:90},encoding:{text:{field:h,type:"quantitative"}}}],view:{stroke:null}},this.chartData=void 0,this.includeLegend=void 0,this.legendPosition="right",this.legendTitle=void 0,this.colorFieldName=void 0,this.outerRadius=void 0,this.labelRadius=void 0,this.labelField=void 0,this.embedOptions=void 0}parseData(){this.outerRadius||o(this.root,"requires outer-radius");let t={};this.chartData&&(t={data:this.chartData}),this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.colorFieldName||r;i&&(this.baseChartSpec.encoding.color.field=i);const e=this.legendTitle;e&&(this.baseChartSpec.encoding.color.title=e),this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:this.outerRadius}}];const s=this.labelRadius;s&&this.baseChartSpec.layer.push({mark:{type:"text",radius:s},encoding:{text:{field:this.labelField||h,type:"quantitative"}}});const a=Object.assign(this.baseChartSpec,t);this.visualizationSpec=a}componentWillLoad(){s(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"b3049772a9d436bf4d6aa1b0e9ebe21a9d9e84e9",visualizationSpec:this.visualizationSpec})}get root(){return e(this)}static get watchers(){return{chartData:["parseData"]}}};n.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{n as gux_chart_pie_beta}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e,n,t=!1;const l="slot-fb{display:contents}slot-fb[hidden]{display:none}",o={},s=e=>"object"==(e=typeof e)||"function"===e;function i(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const c=(e,n,...t)=>{let l=null,o=null,i=!1,c=!1;const u=[],a=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?a(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!s(l))&&(l+=""),i&&c?u[u.length-1].t+=l:u.push(i?r(null,l):l),c=i)};if(a(t),n){n.key&&(o=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}const f=r(e,null);return f.l=n,u.length>0&&(f.o=u),f.i=o,f},r=(e,n)=>({u:0,m:e,t:n,p:null,o:null,l:null,i:null}),u={},a=e=>H(e).$hostElement$,f=(e,n,t)=>{const l=a(e);return{emit:e=>d(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},d=(e,n,t)=>{const l=X.ce(n,t);return e.dispatchEvent(l),l},y=new WeakMap,m=e=>"sc-"+e.h,p=(e,n,t,l,o,i)=>{if(t!==l){let c=z(e,n);if(n.toLowerCase(),"class"===n){const n=e.classList,o=$(t),s=$(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===n);else if("ref"===n)l&&l(e);else{const r=s(l);if((c||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?c=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!c||4&i||o)&&!r&&e.setAttribute(n,l=!0===l?"":l)}}},h=/\s/,$=e=>e?e.split(h):[],v=(e,n,t,l)=>{const s=11===n.p.nodeType&&n.p.host?n.p.host:n.p,i=e&&e.l||o,c=n.l||o;for(l in i)l in c||p(s,l,i[l],void 0,t,n.u);for(l in c)p(s,l,i[l],c[l],t,n.u)},b=(t,l,o)=>{const s=l.o[o];let i,c,r=0;if(i=s.p=Q.createElement(s.m),v(null,s,!1),null!=e&&i["s-si"]!==e&&i.classList.add(i["s-si"]=e),s.o)for(r=0;r<s.o.length;++r)c=b(t,s,r),c&&i.appendChild(c);return i["s-hn"]=n,i},w=(e,t,l,o,s,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=b(null,l,s),c&&(o[s].p=c,r.insertBefore(c,t)))},S=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.p;k(n),e&&e.remove()}}},g=(e,n,t=!1)=>e.m===n.m&&(!!t||e.i===n.i),j=(e,n,t=!1)=>{const l=n.p=e.p,o=e.o,s=n.o;v(e,n,!1),null!==o&&null!==s?((e,n,t,l,o=!1)=>{let s,i,c=0,r=0,u=0,a=0,f=n.length-1,d=n[0],y=n[f],m=l.length-1,p=l[0],h=l[m];for(;c<=f&&r<=m;)if(null==d)d=n[++c];else if(null==y)y=n[--f];else if(null==p)p=l[++r];else if(null==h)h=l[--m];else if(g(d,p,o))j(d,p,o),d=n[++c],p=l[++r];else if(g(y,h,o))j(y,h,o),y=n[--f],h=l[--m];else if(g(d,h,o))j(d,h,o),e.insertBefore(d.p,y.p.nextSibling),d=n[++c],h=l[--m];else if(g(y,p,o))j(y,p,o),e.insertBefore(y.p,d.p),y=n[--f],p=l[++r];else{for(u=-1,a=c;a<=f;++a)if(n[a]&&null!==n[a].i&&n[a].i===p.i){u=a;break}u>=0?(i=n[u],i.m!==p.m?s=b(n&&n[r],t,u):(j(i,p,o),n[u]=void 0,s=i.p),p=l[++r]):(s=b(n&&n[r],t,r),p=l[++r]),s&&d.p.parentNode.insertBefore(s,d.p)}c>f?w(e,null==l[m+1]?null:l[m+1].p,t,l,r,m):r>m&&S(n,c,f)})(l,o,n,s,t):null!==s?w(l,null,n,s,0,s.length-1):null!==o&&S(o,0,o.length-1)},k=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(k)},M=(e,n)=>{n&&!e.$&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.$=n)))},O=(e,n)=>{if(e.u|=16,!(4&e.u))return M(e,e.v),ie((()=>C(e,n)));e.u|=512},C=(e,n)=>{const t=e.S;let l;return n&&(l=R(t,"componentWillLoad")),P(l,(()=>L(e,t,n)))},P=(e,n)=>E(e)?e.then(n):n(),E=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,L=async(e,n,t)=>{var o;const s=e.$hostElement$,c=s["s-rc"];t&&(e=>{const n=e.j,t=e.$hostElement$,o=n.u,s=((e,n)=>{var t;const o=m(n),s=J.get(o);if(e=11===e.nodeType?e:Q,s)if("string"==typeof s){let c,r=y.get(e=e.head||e);if(r||y.set(e,r=new Set),!r.has(o)){{c=Q.createElement("style"),c.innerHTML=s;const n=null!==(t=X.k)&&void 0!==t?t:i(Q);null!=n&&c.setAttribute("nonce",n),e.insertBefore(c,e.querySelector("link"))}4&n.u&&(c.innerHTML+=l),r&&r.add(o)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return o})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&o&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(e);x(e,n,s,t),c&&(c.map((e=>e())),s["s-rc"]=void 0);{const n=null!==(o=s["s-p"])&&void 0!==o?o:[],t=()=>A(e);0===n.length?t():(Promise.all(n).then(t),e.u|=4,n.length=0)}},x=(t,l,o,s)=>{try{l=l.render(),t.u&=-17,t.u|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.M||r(null,null),a=(e=>e&&e.m===u)(l)?l:c(null,null,l);if(n=s.tagName,o&&a.l)for(const e of Object.keys(a.l))s.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(a.l[e]=s[e]);a.m=null,a.u|=4,t.M=a,a.p=i.p=s.shadowRoot||s,e=s["s-sc"],j(i,a,o)})(t,l,s)}catch(e){B(e,t.$hostElement$)}return null},A=e=>{const n=e.$hostElement$,t=e.S,l=e.v;R(t,"componentDidRender"),64&e.u||(e.u|=64,T(n),R(t,"componentDidLoad"),e.O(n),l||N()),e.$&&(e.$(),e.$=void 0),512&e.u&&se((()=>O(e,!1))),e.u&=-517},N=()=>{T(Q.documentElement),se((()=>d(K,"appload",{detail:{namespace:"genesys-chart-webcomponents"}})))},R=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){B(e)}},T=e=>e.setAttribute("hydrated",""),W=(e,n,t)=>{var l;const o=e.prototype;if(n.C){e.watchers&&(n.P=e.watchers);const i=Object.entries(n.C);if(i.map((([e,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(o,e,{get(){return((e,n)=>H(this).L.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=H(e),i=o.$hostElement$,c=o.L.get(n),r=o.u,u=o.S;if(t=((e,n)=>null==e||s(e)?e:4&n?"false"!==e&&(""===e||!!e):2&n?parseFloat(e):1&n?e+"":e)(t,l.C[n][0]),(!(8&r)||void 0===c)&&t!==c&&(!Number.isNaN(c)||!Number.isNaN(t))&&(o.L.set(n,t),u)){if(l.P&&128&r){const e=l.P[n];e&&e.map((e=>{try{u[e](t,c,n)}catch(e){B(e,i)}}))}2==(18&r)&&O(o,!1)}})(this,e,t,n)},configurable:!0,enumerable:!0})})),1&t){const t=new Map;o.attributeChangedCallback=function(e,l,s){X.jmp((()=>{var i;const c=t.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const t=H(this),o=null==t?void 0:t.u;if(o&&!(8&o)&&128&o&&s!==l){const o=t.S,c=null===(i=n.P)||void 0===i?void 0:i[e];null==c||c.forEach((n=>{null!=o[n]&&o[n].call(o,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=n.P)&&void 0!==l?l:{}),...i.filter((([e,n])=>15&n[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},D=async(e,n,t)=>{let l;if(!(32&n.u)){if(n.u|=32,t.A){if(l=I(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(t.P=l.watchers,W(l,t,2),l.isProxied=!0);const e=()=>{};n.u|=8;try{new l(n)}catch(e){B(e)}n.u&=-9,n.u|=128,e()}else l=e.constructor,customElements.whenDefined(t.h).then((()=>n.u|=128));if(l.style){let e=l.style;const n=m(t);if(!J.has(n)){const l=()=>{};((e,n,t)=>{let l=J.get(e);Z&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,J.set(e,l)})(n,e,!!(1&t.u)),l()}}}const o=n.v,s=()=>O(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()},F=(e,n={})=>{var t;const o=[],s=n.exclude||[],c=K.customElements,r=Q.head,u=r.querySelector("meta[charset]"),a=Q.createElement("style"),f=[];let d,y=!0;Object.assign(X,n),X.N=new URL(n.resourcesUrl||"./",Q.baseURI).href;let m=!1;if(e.map((e=>{e[1].map((n=>{var t;const l={u:n[0],h:n[1],C:n[2],R:n[3]};4&l.u&&(m=!0),l.C=n[2],l.P=null!==(t=n[4])&&void 0!==t?t:{};const i=l.h,r=class extends HTMLElement{constructor(e){super(e),_(e=this,l),1&l.u&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?f.push(this):X.jmp((()=>(e=>{if(!(1&X.u)){const n=H(e),t=n.j,l=()=>{};if(1&n.u)(null==n?void 0:n.S)||(null==n?void 0:n.T)&&n.T.then((()=>{}));else{n.u|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){M(n,n.v=t);break}}t.C&&Object.entries(t.C).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),D(e,n,t)}l()}})(this)))}disconnectedCallback(){X.jmp((()=>(async()=>{if(!(1&X.u)){const e=H(this);(null==e?void 0:e.S)||(null==e?void 0:e.T)&&e.T.then((()=>{}))}})()))}componentOnReady(){return H(this).T}};l.A=e[0],s.includes(i)||c.get(i)||(o.push(i),c.define(i,W(r,l,1)))}))})),o.length>0&&(m&&(a.textContent+=l),a.textContent+=o+"{visibility:hidden}[hydrated]{visibility:inherit}",a.innerHTML.length)){a.setAttribute("data-styles","");const e=null!==(t=X.k)&&void 0!==t?t:i(Q);null!=e&&a.setAttribute("nonce",e),r.insertBefore(a,u?u.nextSibling:r.firstChild)}y=!1,f.length?f.map((e=>e.connectedCallback())):X.jmp((()=>d=setTimeout(N,30)))},U=e=>X.k=e,q=new WeakMap,H=e=>q.get(e),V=(e,n)=>q.set(n.S=e,n),_=(e,n)=>{const t={u:0,$hostElement$:e,j:n,L:new Map};return t.T=new Promise((e=>t.O=e)),e["s-p"]=[],e["s-rc"]=[],q.set(e,t)},z=(e,n)=>n in e,B=(e,n)=>(0,console.error)(e,n),G=new Map,I=e=>{const n=e.h.replace(/-/g,"_"),t=e.A,l=G.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(G.set(t,e),e[n])),B)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},J=new Map,K="undefined"!=typeof window?window:{},Q=K.document||{head:{}},X={u:0,N:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},Y=e=>Promise.resolve(e),Z=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ee=[],ne=[],te=(e,n)=>l=>{e.push(l),t||(t=!0,n&&4&X.u?se(oe):X.raf(oe))},le=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){B(e)}e.length=0},oe=()=>{le(ee),le(ne),(t=ee.length>0)&&X.raf(oe)},se=e=>Y().then(e),ie=te(ne,!0);export{F as b,f as c,a as g,c as h,Y as p,V as r,U as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,g as s}from"./p-
|
|
1
|
+
import{r as t,h as i,g as s}from"./p-e068d41d.js";import{t as e}from"./p-bbd7ff25.js";import{V as a,l as h}from"./p-f50e3789.js";const o="category",n=class{constructor(i){t(this,i),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",params:[{name:"onHover",select:{type:"point",on:"mouseover"}}],config:{axis:{ticks:!1,titlePadding:8,gridColor:"#F6F7F9"},axisX:{labelAngle:0,grid:!0},legend:{symbolType:"circle"}},width:{step:40},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:o,type:"nominal",scale:{range:a},legend:null},size:{condition:[{param:"onHover",empty:!1,value:100}],value:40}}},this.chartData=void 0,this.xTickLabelSlant=void 0,this.includeLegend=void 0,this.legendPosition="right",this.xFieldName=void 0,this.xAxisTitle=void 0,this.yFieldName=void 0,this.yAxisTitle=void 0,this.legendTitle=void 0,this.colorFieldName=void 0,this.useShape=void 0,this.embedOptions=void 0}parseData(){this.xFieldName&&this.yFieldName||h(this.root,"requires x-field-name and y-field-name");let t={};this.chartData&&(t={data:this.chartData}),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=-45),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.xFieldName,s=this.xAxisTitle,e=this.yFieldName,a=this.yAxisTitle,n=this.legendTitle,l=this.useShape||"circle",r=this.colorFieldName||o;this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),i&&(this.baseChartSpec.encoding.x.field=i),s&&(this.baseChartSpec.encoding.x.title=s),e&&(this.baseChartSpec.encoding.y.field=e),a&&(this.baseChartSpec.encoding.y.title=a),r&&(this.baseChartSpec.encoding.color.field=r),n&&(this.baseChartSpec.encoding.color.title=n),this.baseChartSpec.mark={type:l,filled:!0},this.baseChartSpec.config.legend.symbolType=l,this.baseChartSpec.encoding.shape={field:r,type:"nominal"},this.baseChartSpec.encoding.tooltip=[{field:i,type:"nominal",title:s},{field:e,type:"quantitative",title:a},{field:r,type:"nominal",title:n}];const d=Object.assign(this.baseChartSpec,t);this.visualizationSpec=d}componentWillLoad(){e(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"94b4f927328d22a8764207acdd36cb8bef342ea0",visualizationSpec:this.visualizationSpec})}get root(){return s(this)}static get watchers(){return{chartData:["parseData"]}}};n.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{n as gux_chart_scatter_plot_beta}
|
package/dist/stencil-wrapper.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { defineCustomElements } from '../dist/loader';
|
|
9
9
|
// Value templated out during build process (see scripts/wrap-stencil.js)
|
|
10
|
-
export const CHART_COMPONENT_ASSETS_PATH = '/spark-components/build-assets/4.
|
|
10
|
+
export const CHART_COMPONENT_ASSETS_PATH = '/spark-components/build-assets/4.60.0-240/chart/genesys-chart-webcomponents/';
|
|
11
11
|
// Default domain to load assets from
|
|
12
12
|
const DEFAULT_DOMAIN = 'app.mypurecloud.com';
|
|
13
13
|
// List of Genesys UI domains
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const CHART_COMPONENT_ASSETS_PATH = "/spark-components/build-assets/4.
|
|
1
|
+
export declare const CHART_COMPONENT_ASSETS_PATH = "/spark-components/build-assets/4.60.0-240/chart/genesys-chart-webcomponents/";
|
|
2
2
|
export declare function registerElements(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genesys-spark-chart-components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.60.0",
|
|
4
4
|
"description": "Common chart webcomponents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/stencil-wrapper.js",
|
|
@@ -112,6 +112,6 @@
|
|
|
112
112
|
"collection": "dist/collection/collection-manifest.json",
|
|
113
113
|
"prettier": "prettier-config-genesys-spark-components",
|
|
114
114
|
"volta": {
|
|
115
|
-
"node": "18.
|
|
115
|
+
"node": "18.20.3"
|
|
116
116
|
}
|
|
117
117
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let e,n,t=!1;const l="slot-fb{display:contents}slot-fb[hidden]{display:none}",o={},s=e=>"object"==(e=typeof e)||"function"===e;function i(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const c=(e,n,...t)=>{let l=null,o=null,i=!1,c=!1;const u=[],a=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?a(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!s(l))&&(l+=""),i&&c?u[u.length-1].t+=l:u.push(i?r(null,l):l),c=i)};a(t),n&&n.key&&(o=n.key);const f=r(e,null);return f.l=n,u.length>0&&(f.o=u),f.i=o,f},r=(e,n)=>({u:0,m:e,t:n,p:null,o:null,l:null,i:null}),u={},a=e=>U(e).$hostElement$,f=(e,n,t)=>{const l=a(e);return{emit:e=>d(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},d=(e,n,t)=>{const l=K.ce(n,t);return e.dispatchEvent(l),l},y=new WeakMap,m=e=>"sc-"+e.h,p=(e,n,t,l,o,i)=>{if(t!==l){let c=V(e,n);if(n.toLowerCase(),"key"===n);else if("ref"===n)l&&l(e);else{const r=s(l);if((c||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?c=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!c||4&i||o)&&!r&&e.setAttribute(n,l=!0===l?"":l)}}},h=(e,n,t,l)=>{const s=11===n.p.nodeType&&n.p.host?n.p.host:n.p,i=e&&e.l||o,c=n.l||o;for(l in i)l in c||p(s,l,i[l],void 0,t,n.u);for(l in c)p(s,l,i[l],c[l],t,n.u)},$=(t,l,o)=>{const s=l.o[o];let i,c,r=0;if(i=s.p=J.createElement(s.m),h(null,s,!1),null!=e&&i["s-si"]!==e&&i.classList.add(i["s-si"]=e),s.o)for(r=0;r<s.o.length;++r)c=$(t,s,r),c&&i.appendChild(c);return i["s-hn"]=n,i},v=(e,t,l,o,s,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=$(null,l,s),c&&(o[s].p=c,r.insertBefore(c,t)))},b=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.p;g(n),e&&e.remove()}}},w=(e,n,t=!1)=>e.m===n.m&&(!!t||e.i===n.i),S=(e,n,t=!1)=>{const l=n.p=e.p,o=e.o,s=n.o;h(e,n,!1),null!==o&&null!==s?((e,n,t,l,o=!1)=>{let s,i,c=0,r=0,u=0,a=0,f=n.length-1,d=n[0],y=n[f],m=l.length-1,p=l[0],h=l[m];for(;c<=f&&r<=m;)if(null==d)d=n[++c];else if(null==y)y=n[--f];else if(null==p)p=l[++r];else if(null==h)h=l[--m];else if(w(d,p,o))S(d,p,o),d=n[++c],p=l[++r];else if(w(y,h,o))S(y,h,o),y=n[--f],h=l[--m];else if(w(d,h,o))S(d,h,o),e.insertBefore(d.p,y.p.nextSibling),d=n[++c],h=l[--m];else if(w(y,p,o))S(y,p,o),e.insertBefore(y.p,d.p),y=n[--f],p=l[++r];else{for(u=-1,a=c;a<=f;++a)if(n[a]&&null!==n[a].i&&n[a].i===p.i){u=a;break}u>=0?(i=n[u],i.m!==p.m?s=$(n&&n[r],t,u):(S(i,p,o),n[u]=void 0,s=i.p),p=l[++r]):(s=$(n&&n[r],t,r),p=l[++r]),s&&d.p.parentNode.insertBefore(s,d.p)}c>f?v(e,null==l[m+1]?null:l[m+1].p,t,l,r,m):r>m&&b(n,c,f)})(l,o,n,s,t):null!==s?v(l,null,n,s,0,s.length-1):null!==o&&b(o,0,o.length-1)},g=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(g)},k=(e,n)=>{n&&!e.$&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.$=n)))},j=(e,n)=>{if(e.u|=16,!(4&e.u))return k(e,e.v),oe((()=>M(e,n)));e.u|=512},M=(e,n)=>{const t=e.S;let l;return n&&(l=A(t,"componentWillLoad")),O(l,(()=>P(e,t,n)))},O=(e,n)=>C(e)?e.then(n):n(),C=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,P=async(e,n,t)=>{var o;const s=e.$hostElement$,c=s["s-rc"];t&&(e=>{const n=e.k,t=e.$hostElement$,o=n.u,s=((e,n)=>{var t;const o=m(n),s=G.get(o);if(e=11===e.nodeType?e:J,s)if("string"==typeof s){let c,r=y.get(e=e.head||e);if(r||y.set(e,r=new Set),!r.has(o)){{c=J.createElement("style"),c.innerHTML=s;const n=null!==(t=K.j)&&void 0!==t?t:i(J);null!=n&&c.setAttribute("nonce",n),e.insertBefore(c,e.querySelector("link"))}4&n.u&&(c.innerHTML+=l),r&&r.add(o)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return o})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&o&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(e);E(e,n,s,t),c&&(c.map((e=>e())),s["s-rc"]=void 0);{const n=null!==(o=s["s-p"])&&void 0!==o?o:[],t=()=>L(e);0===n.length?t():(Promise.all(n).then(t),e.u|=4,n.length=0)}},E=(t,l,o,s)=>{try{l=l.render(),t.u&=-17,t.u|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.M||r(null,null),a=(e=>e&&e.m===u)(l)?l:c(null,null,l);if(n=s.tagName,o&&a.l)for(const e of Object.keys(a.l))s.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(a.l[e]=s[e]);a.m=null,a.u|=4,t.M=a,a.p=i.p=s.shadowRoot||s,e=s["s-sc"],S(i,a,o)})(t,l,s)}catch(e){_(e,t.$hostElement$)}return null},L=e=>{const n=e.$hostElement$,t=e.S,l=e.v;A(t,"componentDidRender"),64&e.u||(e.u|=64,N(n),A(t,"componentDidLoad"),e.O(n),l||x()),e.$&&(e.$(),e.$=void 0),512&e.u&&le((()=>j(e,!1))),e.u&=-517},x=()=>{N(J.documentElement),le((()=>d(I,"appload",{detail:{namespace:"genesys-chart-webcomponents"}})))},A=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){_(e)}},N=e=>e.setAttribute("hydrated",""),R=(e,n,t)=>{var l;const o=e.prototype;if(n.C){e.watchers&&(n.P=e.watchers);const i=Object.entries(n.C);if(i.map((([e,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(o,e,{get(){return((e,n)=>U(this).L.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=U(e),i=o.$hostElement$,c=o.L.get(n),r=o.u,u=o.S;if(t=((e,n)=>null==e||s(e)?e:4&n?"false"!==e&&(""===e||!!e):2&n?parseFloat(e):1&n?e+"":e)(t,l.C[n][0]),(!(8&r)||void 0===c)&&t!==c&&(!Number.isNaN(c)||!Number.isNaN(t))&&(o.L.set(n,t),u)){if(l.P&&128&r){const e=l.P[n];e&&e.map((e=>{try{u[e](t,c,n)}catch(e){_(e,i)}}))}2==(18&r)&&j(o,!1)}})(this,e,t,n)},configurable:!0,enumerable:!0})})),1&t){const t=new Map;o.attributeChangedCallback=function(e,l,s){K.jmp((()=>{var i;const c=t.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const t=U(this),o=null==t?void 0:t.u;if(o&&!(8&o)&&128&o&&s!==l){const o=t.S,c=null===(i=n.P)||void 0===i?void 0:i[e];null==c||c.forEach((n=>{null!=o[n]&&o[n].call(o,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=n.P)&&void 0!==l?l:{}),...i.filter((([e,n])=>15&n[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},T=async(e,n,t)=>{let l;if(!(32&n.u)){if(n.u|=32,t.A){if(l=B(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(t.P=l.watchers,R(l,t,2),l.isProxied=!0);const e=()=>{};n.u|=8;try{new l(n)}catch(e){_(e)}n.u&=-9,n.u|=128,e()}else l=e.constructor,customElements.whenDefined(t.h).then((()=>n.u|=128));if(l.style){let e=l.style;const n=m(t);if(!G.has(n)){const l=()=>{};((e,n,t)=>{let l=G.get(e);X&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,G.set(e,l)})(n,e,!!(1&t.u)),l()}}}const o=n.v,s=()=>j(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()},W=(e,n={})=>{var t;const o=[],s=n.exclude||[],c=I.customElements,r=J.head,u=r.querySelector("meta[charset]"),a=J.createElement("style"),f=[];let d,y=!0;Object.assign(K,n),K.N=new URL(n.resourcesUrl||"./",J.baseURI).href;let m=!1;if(e.map((e=>{e[1].map((n=>{var t;const l={u:n[0],h:n[1],C:n[2],R:n[3]};4&l.u&&(m=!0),l.C=n[2],l.P=null!==(t=n[4])&&void 0!==t?t:{};const i=l.h,r=class extends HTMLElement{constructor(e){super(e),H(e=this,l),1&l.u&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?f.push(this):K.jmp((()=>(e=>{if(!(1&K.u)){const n=U(e),t=n.k,l=()=>{};if(1&n.u)(null==n?void 0:n.S)||(null==n?void 0:n.T)&&n.T.then((()=>{}));else{n.u|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){k(n,n.v=t);break}}t.C&&Object.entries(t.C).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),T(e,n,t)}l()}})(this)))}disconnectedCallback(){K.jmp((()=>(async()=>{if(!(1&K.u)){const e=U(this);(null==e?void 0:e.S)||(null==e?void 0:e.T)&&e.T.then((()=>{}))}})()))}componentOnReady(){return U(this).T}};l.A=e[0],s.includes(i)||c.get(i)||(o.push(i),c.define(i,R(r,l,1)))}))})),o.length>0&&(m&&(a.textContent+=l),a.textContent+=o+"{visibility:hidden}[hydrated]{visibility:inherit}",a.innerHTML.length)){a.setAttribute("data-styles","");const e=null!==(t=K.j)&&void 0!==t?t:i(J);null!=e&&a.setAttribute("nonce",e),r.insertBefore(a,u?u.nextSibling:r.firstChild)}y=!1,f.length?f.map((e=>e.connectedCallback())):K.jmp((()=>d=setTimeout(x,30)))},D=e=>K.j=e,F=new WeakMap,U=e=>F.get(e),q=(e,n)=>F.set(n.S=e,n),H=(e,n)=>{const t={u:0,$hostElement$:e,k:n,L:new Map};return t.T=new Promise((e=>t.O=e)),e["s-p"]=[],e["s-rc"]=[],F.set(e,t)},V=(e,n)=>n in e,_=(e,n)=>(0,console.error)(e,n),z=new Map,B=e=>{const n=e.h.replace(/-/g,"_"),t=e.A,l=z.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(z.set(t,e),e[n])),_)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},G=new Map,I="undefined"!=typeof window?window:{},J=I.document||{head:{}},K={u:0,N:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},Q=e=>Promise.resolve(e),X=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),Y=[],Z=[],ee=(e,n)=>l=>{e.push(l),t||(t=!0,n&&4&K.u?le(te):K.raf(te))},ne=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){_(e)}e.length=0},te=()=>{ne(Y),ne(Z),(t=Y.length>0)&&K.raf(te)},le=e=>Q().then(e),oe=ee(Z,!0);export{W as b,f as c,a as g,c as h,Q as p,q as r,D as s}
|