genesys-spark-chart-components 4.81.3 → 4.83.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/{color-palette-313d94f7.js → color-palette-7ff76714.js} +6 -7
- package/dist/cjs/genesys-chart-webcomponents.cjs.js +9 -9
- 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 +4 -4
- package/dist/cjs/index-817704d9.js +1198 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/beta/gux-visualization/gux-visualization.js +2 -2
- package/dist/collection/test/setupAxeTests.js +3 -11
- package/dist/esm/{color-palette-686ee197.js → color-palette-883bdc64.js} +6 -7
- package/dist/esm/genesys-chart-webcomponents.js +10 -10
- 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 +4 -4
- package/dist/esm/index-e1e997ee.js +1170 -0
- package/dist/esm/loader.js +2 -2
- package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
- package/dist/genesys-chart-webcomponents/{p-e8cc490f.entry.js → p-2ec9eae2.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-32c90b8d.entry.js → p-3e724248.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-13e52c23.entry.js → p-58f41069.entry.js} +2 -2
- package/dist/genesys-chart-webcomponents/{p-4cf542a9.entry.js → p-776540fb.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/p-7f2ebcdb.js +2 -0
- package/dist/genesys-chart-webcomponents/{p-dafef2fd.js → p-b836a7d3.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-984c750e.entry.js → p-c690f202.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-028de4aa.entry.js → p-ff2fd38a.entry.js} +1 -1
- package/dist/loader/cdn.js +1 -3
- package/dist/loader/index.cjs.js +1 -3
- package/dist/loader/index.d.ts +3 -0
- package/dist/loader/index.es2017.js +1 -3
- package/dist/loader/index.js +1 -3
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +6 -7
- package/dist/cjs/index-95713c33.js +0 -1795
- package/dist/collection/components/beta/gux-chart-column/tests/gux-column-chart.spec.js +0 -22
- package/dist/collection/components/beta/gux-chart-donut/tests/gux-chart-donut.spec.js +0 -11
- package/dist/collection/components/beta/gux-chart-line/tests/gux-chart-line.e2e.js +0 -17
- package/dist/collection/components/beta/gux-chart-line/tests/gux-chart-line.spec.js +0 -22
- package/dist/collection/components/beta/gux-chart-pie/tests/gux-chart-pie.spec.js +0 -11
- package/dist/collection/components/beta/gux-chart-scatter-plot/tests/gux-chart-scatter-plot.spec.js +0 -33
- package/dist/collection/components/beta/gux-visualization/tests/gux-visualization.e2e.js +0 -31
- package/dist/collection/components/beta/gux-visualization/tests/gux-visualization.spec.js +0 -35
- package/dist/collection/utils/tracking/usage.spec.js +0 -121
- package/dist/esm/index-e4944b0d.js +0 -1767
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/genesys-chart-webcomponents/p-e068d41d.js +0 -2
|
@@ -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-7f2ebcdb.js";import{V as s,t as a}from"./p-b836a7d3.js";import{l as h}from"./p-23610106.js";const o="category",n="value",r=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:o,type:"nominal",scale:{range:s},legend:null}},layer:[{mark:{type:"arc",outerRadius:80}},{mark:{type:"text",radius:90},encoding:{text:{field:n,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.innerRadius=void 0,this.labelRadius=void 0,this.labelField=void 0,this.gauge=void 0,this.centerText=void 0,this.centerSubText=void 0,this.showTooltip=!0,this.tooltipOptions=void 0,this.legendX=void 0,this.legendY=void 0,this.legendFontSize=void 0,this.legendSymbolSize=void 0,this.embedOptions=void 0}parseData(){this.outerRadius||this.innerRadius||h(this.root,"requires at least one of outer-radius or inner-radius");let t={};this.chartData&&(t={data:this.chartData}),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition),this.includeLegend?(this.baseChartSpec.encoding.color.legend={},(this.legendX||this.legendY)&&(this.baseChartSpec.config.legend.orient="none",this.legendX&&(this.baseChartSpec.encoding.color.legend.legendX=this.legendX),this.legendY&&(this.baseChartSpec.encoding.color.legend.legendY=this.legendY)),this.legendFontSize&&(this.baseChartSpec.encoding.color.legend.labelFontSize=this.legendFontSize),this.legendSymbolSize&&(this.baseChartSpec.encoding.color.legend.symbolSize=this.legendSymbolSize)):this.baseChartSpec.encoding.color.legend=null;const i=this.colorFieldName||o;i&&(this.baseChartSpec.encoding.color.field=i);this.baseChartSpec.encoding.color.title=this.legendTitle||"";let e=this.outerRadius,s=this.innerRadius;e||(e=s+32),s||(s=e-32);let a=1;this.gauge?(this.baseChartSpec.layer=[{data:{values:[{progress:"default",value:100}]},mark:{type:"arc",innerRadius:s},encoding:{theta:{field:"value",type:"quantitative"},color:{value:"#E4E9F0"},tooltip:null}},{mark:{type:"arc",outerRadius:e,innerRadius:s,padAngle:.01}},{mark:{type:"arc",innerRadius:s,padAngle:.01}}],a=2):this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:e,innerRadius:s}},{mark:{type:"arc",innerRadius:s,stroke:"#fff"}}];const r=this.centerText;r&&this.baseChartSpec.layer.push({data:{values:[{centerText:r,value:0}]},mark:{align:"center",type:"text",baseline:"middle"},encoding:{color:{value:"#4C5054"},text:{field:"centerText"},size:{value:{expr:"height * 0.09"}},tooltip:null}});const l=this.centerSubText;l&&this.baseChartSpec.layer.push({data:{values:[{centerSubText:l,value:0}]},mark:{align:"center",type:"text",baseline:"middle",y:{expr:"height/2 + 20"}},encoding:{color:{value:"#6A6D70"},text:{field:"centerSubText"},size:{value:{expr:"height * 0.06"}},tooltip:null}});const d=this.labelRadius,u=this.labelField||n;d&&this.baseChartSpec.layer.push({mark:{type:"text",radius:d},encoding:{text:{field:u,type:"quantitative"}}}),this.showTooltip&&(this.tooltipOptions?(this.baseChartSpec.layer[a].mark.tooltip={content:"data"},this.tooltipSpec={actions:!1,tooltip:this.tooltipOptions}):this.baseChartSpec.encoding.tooltip={field:u,aggregate:"count",type:"quantitative"});const c=Object.assign(this.baseChartSpec,t);this.visualizationSpec=c}componentWillLoad(){a(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"1841c32ed4312b87b8bdeca52a007a6905effce9",visualizationSpec:this.visualizationSpec,embedOptions:this.tooltipSpec})}get root(){return e(this)}static get watchers(){return{chartData:["parseData"]}}};r.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{r as gux_chart_donut_beta}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>(0,console.error)(e,t),s=new Map,r=new Map,i="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,d=[],p=[],y=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&a.l?w(b):a.raf(b))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){o(e)}e.length=0},b=()=>{$(d),$(p),(m=d.length>0)&&a.raf(b)},w=e=>f().then(e),v=y(p,!0),g={},S=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>E,ok:()=>k,unwrap:()=>P,unwrapErr:()=>x});var k=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return O(e.value);throw"should never get here"}var M,C,P=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},L=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!S(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?R(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=R(e,null);return u.u=t,i.length>0&&(u.h=i),u.m=o,u},R=(e,t)=>({l:0,p:e,i:t,$:null,h:null,u:null,m:null}),T={},A=e=>n(e).$hostElement$,D=(e,t,n)=>{const l=A(e);return{emit:e=>F(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},F=(e,t,n)=>{const l=a.ce(t,n);return e.dispatchEvent(l),l},N=new WeakMap,U=e=>"sc-"+e.v,W=(e,t,n,l,o,s)=>{if(n!==l){let r=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,o=q(n),s=q(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else{const i=S(l);if((r||i&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||o)&&!i&&e.setAttribute(t,l=!0===l?"":l)}}},H=/\s/,q=e=>e?e.split(H):[],G=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||g,s=t.u||g;for(const e of V(Object.keys(o)))e in s||W(l,e,o[e],void 0,n,t.l);for(const e of V(Object.keys(s)))W(l,e,o[e],s[e],n,t.l)};function V(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var _=!1,z=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(o=l.$=u.createElement(l.p),G(null,l,_),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=z(e,l,r),s&&o.appendChild(s);return o["s-hn"]=C,o},B=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===C&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=z(null,n,o),r&&(l[o].$=r,X(i,r,t)))},I=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;Q(t),e&&e.remove()}}},J=(e,t,n=!1)=>e.p===t.p&&(!!n||e.m===t.m),K=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h;G(e,t,_),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],m=t[f],d=l.length-1,p=l[0],y=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==m)m=t[--f];else if(null==p)p=l[++c];else if(null==y)y=l[--d];else if(J(h,p,o))K(h,p,o),h=t[++i],p=l[++c];else if(J(m,y,o))K(m,y,o),m=t[--f],y=l[--d];else if(J(h,y,o))K(h,y,o),X(e,h.$,m.$.nextSibling),h=t[++i],y=l[--d];else if(J(m,p,o))K(m,p,o),X(e,m.$,h.$),m=t[--f],p=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].m&&t[a].m===p.m){u=a;break}u>=0?(r=t[u],r.p!==p.p?s=z(t&&t[c],n,u):(K(r,p,o),t[u]=void 0,s=r.$),p=l[++c]):(s=z(t&&t[c],n,c),p=l[++c]),s&&X(h.$.parentNode,s,h.$)}i>f?B(e,null==l[d+1]?null:l[d+1].$,n,l,c,d):c>d&&I(t,i,f)})(l,o,t,s,n):null!==s?B(l,null,t,s,0,s.length-1):null!==o&&I(o,0,o.length-1)},Q=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Q)},X=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Y=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Z=(e,t)=>{if(e.l|=16,!(4&e.l))return Y(e,e.j),v((()=>ee(e,t)));e.l|=512},ee=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=ie(n,"componentWillLoad")),te(l,(()=>le(e,n,t)))},te=(e,t)=>ne(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ne=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,le=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=U(t),o=r.get(l);if(e=11===e.nodeType?e:u,o)if("string"==typeof o){let s,r=N.get(e=e.head||e);if(r||N.set(e,r=new Set),!r.has(l)){{s=u.createElement("style"),s.innerHTML=o;const t=null!=(n=a.O)?n:j(u);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=i),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);oe(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>se(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},oe=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.M||R(null,null),r=(e=>e&&e.p===T)(t)?t:L(null,null,t);if(C=l.tagName,n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.p=null,r.l|=4,e.M=r,r.$=s.$=l.shadowRoot||l,M=l["s-sc"],K(s,r,n)})(e,t,l)}catch(t){o(t,e.$hostElement$)}return null},se=e=>{const t=e.$hostElement$,n=e.t,l=e.j;ie(n,"componentDidRender"),64&e.l||(e.l|=64,ce(t),ie(n,"componentDidLoad"),e.C(t),l||re()),e.S&&(e.S(),e.S=void 0),512&e.l&&w((()=>Z(e,!1))),e.l&=-517},re=()=>{ce(u.documentElement),w((()=>F(c,"appload",{detail:{namespace:"genesys-chart-webcomponents"}})))},ie=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){o(e)}},ce=e=>e.setAttribute("hydrated",""),ue=(e,t,l)=>{var s,r;const i=e.prototype;if(t.P||t.L||e.watchers){e.watchers&&!t.L&&(t.L=e.watchers);const c=Object.entries(null!=(s=t.P)?s:{});if(c.map((([e,[s]])=>{(31&s||2&l&&32&s)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).R.get(t))(0,e)},set(l){((e,t,l,s)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${s.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.R.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||S(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,s.P[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.R.set(t,l),a)){if(s.L&&128&u){const e=s.L[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){o(e,i)}}))}2==(18&u)&&Z(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){a.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.L)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.L)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return l.set(n,e),n}))]))}}return e},ae=(e,l={})=>{var f;const m=[],d=l.exclude||[],p=c.customElements,y=u.head,$=y.querySelector("meta[charset]"),b=u.createElement("style"),w=[];let v,g=!0;Object.assign(a,l),a.o=new URL(l.resourcesUrl||"./",u.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var i;const c={l:l[0],v:l[1],P:l[2],T:l[3]};4&c.l&&(S=!0),c.P=l[2],c.L=null!=(i=l[4])?i:{};const u=c.v,f=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,R:new Map};l.A=new Promise((e=>l.C=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),g?w.push(this):a.jmp((()=>(e=>{if(!(1&a.l)){const t=n(e),l=t.k,i=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.A)&&t.A.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(t,t.j=n);break}}l.P&&Object.entries(l.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.D){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.D;if(!n)return;const l=s.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),o)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.F}" was not found`);l.isProxied||(n.L=l.watchers,ue(l,n,2),l.isProxied=!0);const r=()=>{};t.l|=8;try{new l(t)}catch(e){o(e)}t.l&=-9,t.l|=128,r()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=U(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);h&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const i=t.j,c=()=>Z(t,!0);i&&i["s-rc"]?i["s-rc"].push(c):c()})(e,t,l)}i()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.l)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.A)&&e.A.then((()=>{}))}})()))}componentOnReady(){return n(this).A}};c.D=e[0],d.includes(u)||p.get(u)||(m.push(u),p.define(u,ue(f,c,1)))}))})),m.length>0&&(S&&(b.textContent+=i),b.textContent+=m.sort()+"{visibility:hidden}[hydrated]{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(f=a.O)?f:j(u);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,$?$.nextSibling:y.firstChild)}g=!1,w.length?w.map((e=>e.connectedCallback())):a.jmp((()=>v=setTimeout(re,30)))},fe=e=>a.O=e;export{ae as b,D as c,A as g,L as h,f as p,l as r,fe as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t="4.
|
|
1
|
+
const t="4.83.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 a(){const t=window.newrelic;if(t){for(let s=0;s<e;s++){if(0==o.length)return void setTimeout(a,n);const e=o.shift();t.addPageAction(e.name,Object.assign(Object.assign({},e.metadata),{queueDepth:o.length}))}setTimeout(a,n)}}let s=!1;function i(e,n){window.newrelic&&(s||(s=!0,a()),document.contains(e)&&o.push({name:"spark-component",metadata:Object.assign(Object.assign({},n),{component:e.tagName.toLowerCase(),version:t})}))}const r=["#203B73","#1DA8B3","#75A8FF","#8452CF","#B5B5EB","#CC3EBE","#5E5782","#FF8FDD","#868C1E","#DDD933"],c="#596373",m="#596373";export{c as D,r as V,m as a,i 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-7f2ebcdb.js";import{V as s,t as a}from"./p-b836a7d3.js";import{l as o}from"./p-23610106.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:s},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(){a(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}
|
|
@@ -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-7f2ebcdb.js";import{D as a,a as e,V as h,t as o}from"./p-b836a7d3.js";import{l as n}from"./p-23610106.js";const l="category",r=class{constructor(i){t(this,i),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",mark:{type:"line",interpolate:"linear",point:!1},config:{axis:{ticks:!1,titlePadding:8,labelColor:this.labelColor||a,domainColor:this.domainColor||e},axisX:{labelAngle:0},legend:{symbolType:"circle"}},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:l,type:"nominal",scale:{range:h},legend:null},tooltip:{aggregate:"count",type:"quantitative"}}},this.labelColor=a,this.domainColor=e,this.chartData=void 0,this.xTickLabelSlant=void 0,this.includeLegend=void 0,this.legendPosition="right",this.includeDataPointMarkers=void 0,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.strokeDash=void 0,this.interpolation=void 0,this.embedOptions=void 0}parseData(){this.xFieldName&&this.yFieldName||n(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.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.xFieldName,s=this.xAxisTitle,a=this.yFieldName,e=this.yAxisTitle,h=this.legendTitle,o=this.colorFieldName||l,r=this.interpolation,d=this.strokeDash,c=this.includeDataPointMarkers;i&&(this.baseChartSpec.encoding.x.field=i),s&&(this.baseChartSpec.encoding.x.title=s),a&&(this.baseChartSpec.encoding.y.field=a),e&&(this.baseChartSpec.encoding.y.title=e),o&&(this.baseChartSpec.encoding.color.field=o),h&&(this.baseChartSpec.encoding.color.title=h),d&&(this.baseChartSpec.encoding.strokeDash={field:o,type:"nominal"}),r&&(this.baseChartSpec.mark.interpolate=r),c&&(this.baseChartSpec.mark.point=c);const g=Object.assign(this.baseChartSpec,t);this.visualizationSpec=g}componentWillLoad(){o(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"9a0bbdde50dc38102cff841ca0b2aa9aa47b47ff",visualizationSpec:this.visualizationSpec})}get root(){return s(this)}static get watchers(){return{chartData:["parseData"]}}};r.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{r as gux_chart_line_beta}
|
package/dist/loader/cdn.js
CHANGED
package/dist/loader/index.cjs.js
CHANGED
package/dist/loader/index.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ export interface CustomElementsDefineOptions {
|
|
|
9
9
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
10
|
}
|
|
11
11
|
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
12
15
|
export declare function applyPolyfills(): Promise<void>;
|
|
13
16
|
|
|
14
17
|
/**
|
package/dist/loader/index.js
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
1
|
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
3
|
-
export * from '../esm/
|
|
4
|
-
export * from '../esm/loader.js';
|
|
2
|
+
export * from '../esm/loader.js';
|
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.83.0-348/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
|
|
@@ -768,6 +768,7 @@ export declare namespace JSXBase {
|
|
|
768
768
|
hrefLang?: string;
|
|
769
769
|
hreflang?: string;
|
|
770
770
|
media?: string;
|
|
771
|
+
ping?: string;
|
|
771
772
|
rel?: string;
|
|
772
773
|
target?: string;
|
|
773
774
|
referrerPolicy?: ReferrerPolicy;
|
|
@@ -794,7 +795,6 @@ export declare namespace JSXBase {
|
|
|
794
795
|
cite?: string;
|
|
795
796
|
}
|
|
796
797
|
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
797
|
-
autoFocus?: boolean;
|
|
798
798
|
disabled?: boolean;
|
|
799
799
|
form?: string;
|
|
800
800
|
formAction?: string;
|
|
@@ -921,8 +921,6 @@ export declare namespace JSXBase {
|
|
|
921
921
|
autocapitalize?: string;
|
|
922
922
|
autoComplete?: string;
|
|
923
923
|
autocomplete?: string;
|
|
924
|
-
autoFocus?: boolean;
|
|
925
|
-
autofocus?: boolean | string;
|
|
926
924
|
capture?: string;
|
|
927
925
|
checked?: boolean;
|
|
928
926
|
crossOrigin?: string;
|
|
@@ -979,8 +977,6 @@ export declare namespace JSXBase {
|
|
|
979
977
|
popoverTarget?: string;
|
|
980
978
|
}
|
|
981
979
|
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
982
|
-
autoFocus?: boolean;
|
|
983
|
-
autofocus?: boolean | string;
|
|
984
980
|
challenge?: string;
|
|
985
981
|
disabled?: boolean;
|
|
986
982
|
form?: string;
|
|
@@ -993,7 +989,6 @@ export declare namespace JSXBase {
|
|
|
993
989
|
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
994
990
|
form?: string;
|
|
995
991
|
htmlFor?: string;
|
|
996
|
-
htmlfor?: string;
|
|
997
992
|
}
|
|
998
993
|
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
999
994
|
value?: string | string[] | number;
|
|
@@ -1104,7 +1099,6 @@ export declare namespace JSXBase {
|
|
|
1104
1099
|
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1105
1100
|
form?: string;
|
|
1106
1101
|
htmlFor?: string;
|
|
1107
|
-
htmlfor?: string;
|
|
1108
1102
|
name?: string;
|
|
1109
1103
|
}
|
|
1110
1104
|
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
@@ -1129,7 +1123,6 @@ export declare namespace JSXBase {
|
|
|
1129
1123
|
type?: string;
|
|
1130
1124
|
}
|
|
1131
1125
|
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1132
|
-
autoFocus?: boolean;
|
|
1133
1126
|
disabled?: boolean;
|
|
1134
1127
|
form?: string;
|
|
1135
1128
|
multiple?: boolean;
|
|
@@ -1164,8 +1157,6 @@ export declare namespace JSXBase {
|
|
|
1164
1157
|
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1165
1158
|
autoComplete?: string;
|
|
1166
1159
|
autocomplete?: string;
|
|
1167
|
-
autoFocus?: boolean;
|
|
1168
|
-
autofocus?: boolean | string;
|
|
1169
1160
|
cols?: number;
|
|
1170
1161
|
disabled?: boolean;
|
|
1171
1162
|
form?: string;
|
|
@@ -1218,6 +1209,8 @@ export declare namespace JSXBase {
|
|
|
1218
1209
|
interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
1219
1210
|
innerHTML?: string;
|
|
1220
1211
|
accessKey?: string;
|
|
1212
|
+
autoFocus?: boolean;
|
|
1213
|
+
autofocus?: boolean | string;
|
|
1221
1214
|
class?: string | {
|
|
1222
1215
|
[className: string]: boolean;
|
|
1223
1216
|
};
|
|
@@ -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.83.0-348/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.83.0",
|
|
4
4
|
"description": "Common chart webcomponents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/stencil-wrapper.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"clean": "rm -r ./dist ./build || true",
|
|
17
17
|
"predev": "npm run i18n",
|
|
18
18
|
"dev": "npm run stencil.dev",
|
|
19
|
-
"eslint": "eslint --fix
|
|
19
|
+
"eslint": "eslint . --fix",
|
|
20
20
|
"i18n": "npm run update-en-i18n && npm run build-i18n",
|
|
21
21
|
"lint-all": "npm-run-all \"stylelint\" \"eslint\" \"prettier\" \"prettier-package-json\"",
|
|
22
22
|
"lint-staged": "lint-staged --concurrent false",
|
|
@@ -58,22 +58,20 @@
|
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@babel/core": "^7.25.2",
|
|
60
60
|
"@babel/preset-env": "^7.25.4",
|
|
61
|
-
"@stencil/core": "4.
|
|
61
|
+
"@stencil/core": "4.19.2",
|
|
62
62
|
"@stencil/react-output-target": "^0.5.3",
|
|
63
63
|
"@stencil/sass": "^3.0.12",
|
|
64
64
|
"@types/jest": "^29.5.12",
|
|
65
65
|
"@types/new-relic-browser": "^0.1118.2",
|
|
66
66
|
"@types/puppeteer": "^5.4.7",
|
|
67
|
-
"@typescript-eslint/eslint-plugin": "^8.5.0",
|
|
68
|
-
"@typescript-eslint/parser": "^8.5.0",
|
|
69
67
|
"axe-core": "^4.10.0",
|
|
70
68
|
"axe-live": "^1.0.1",
|
|
71
|
-
"eslint": "^
|
|
69
|
+
"eslint": "^9.10.0",
|
|
72
70
|
"eslint-config-genesys-spark-components": "file:../../shared-configs/eslint-config-genesys-spark-components",
|
|
73
|
-
"eslint-config-prettier": "^9.1.0",
|
|
74
71
|
"file-loader": "^6.2.0",
|
|
75
72
|
"genesys-spark-tokens": "file:../genesys-spark-tokens",
|
|
76
73
|
"glob": "^11.0.0",
|
|
74
|
+
"globals": "^15.9.0",
|
|
77
75
|
"handlebars": "^4.7.8",
|
|
78
76
|
"inquirer": "^10.2.2",
|
|
79
77
|
"jest": "^29.7.0",
|
|
@@ -96,6 +94,7 @@
|
|
|
96
94
|
"puppeteer": "^14.4.1",
|
|
97
95
|
"rollup-plugin-copy": "^3.5.0",
|
|
98
96
|
"semver-sort": "^1.0.0",
|
|
97
|
+
"smob": "^1.5.0",
|
|
99
98
|
"stylelint": "^16.9.0",
|
|
100
99
|
"stylelint-config-genesys-spark-components": "file:../../shared-configs/stylelint-config-genesys-spark-components",
|
|
101
100
|
"stylelint-config-html": "^1.1.0",
|