genesys-spark-chart-components 4.188.1 → 4.188.3
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-BAYEKNyY.js → color-palette-Dxjm8Ia-.js} +1 -1
- package/dist/cjs/genesys-chart-webcomponents.cjs.js +3 -3
- 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 +2303 -2230
- package/dist/cjs/{index-Db4-7Uyl.js → index-DEg9dZRu.js} +77 -22
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/beta/gux-chart-column/gux-chart-column.js +18 -21
- package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.js +32 -35
- package/dist/collection/components/beta/gux-chart-line/gux-chart-line.js +26 -28
- package/dist/collection/components/beta/gux-chart-pie/gux-chart-pie.js +14 -16
- package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +22 -24
- package/dist/collection/components/beta/gux-visualization/gux-visualization.js +4 -6
- package/dist/collection/test/mocks/vega-embed.js +13 -0
- package/dist/collection/test/mocks/vega.js +2 -0
- package/dist/esm/{color-palette-BeXqrzDD.js → color-palette-Bv8VxTtJ.js} +1 -1
- package/dist/esm/genesys-chart-webcomponents.js +4 -4
- 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 +2303 -2230
- package/dist/esm/{index-DohbbG4E.js → index-WPqt-wWR.js} +77 -22
- package/dist/esm/loader.js +3 -3
- package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
- package/dist/genesys-chart-webcomponents/{p-ad47e6b4.entry.js → p-146fc1d2.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-fbd6af28.entry.js → p-16d774c9.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-d88dbecf.entry.js → p-843f3804.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/p-92987951.entry.js +11 -0
- package/dist/genesys-chart-webcomponents/{p-BeXqrzDD.js → p-Bv8VxTtJ.js} +1 -1
- package/dist/genesys-chart-webcomponents/p-WPqt-wWR.js +2 -0
- package/dist/genesys-chart-webcomponents/{p-b5a16a43.entry.js → p-a4f366df.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-8e816dd9.entry.js → p-b661c7f5.entry.js} +1 -1
- package/dist/types/stencil-public-runtime.d.ts +49 -2
- package/package.json +8 -8
- package/dist/genesys-chart-webcomponents/p-66a082d9.entry.js +0 -11
- package/dist/genesys-chart-webcomponents/p-DohbbG4E.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
var t="4.188.
|
|
1
|
+
var t="4.188.3";const e=[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 n(){const t=window.newrelic;if(t){for(let o=0;o<20;o++){if(0==e.length)return void setTimeout(n,3e4);const o=e.shift();t.addPageAction(o.name,Object.assign(Object.assign({},o.metadata),{queueDepth:e.length}))}setTimeout(n,3e4)}}let o=!1;function a(a,r){window.newrelic&&(o||(o=!0,n()),document.contains(a)&&e.push({name:"spark-component",metadata:Object.assign(Object.assign({},r),{component:a.tagName.toLowerCase(),version:t})}))}const r=["#203B73","#1DA8B3","#75A8FF","#8452CF","#B5B5EB","#CC3EBE","#5E5782","#FF8FDD","#868C1E","#DDD933"],s="#596373",i="#596373";export{s as D,r as V,i as a,a as t}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=(e,t)=>{var n;Object.entries(null!=(n=t.o.t)?n:{}).map((([n,[o]])=>{if(31&o||32&o){const o=e[n],l=function(e,t){for(;e;){const n=Object.getOwnPropertyDescriptor(e,t);if(null==n?void 0:n.get)return n;e=Object.getPrototypeOf(e)}}(Object.getPrototypeOf(e),n)||Object.getOwnPropertyDescriptor(e,n);l&&Object.defineProperty(e,n,{get(){return l.get.call(this)},set(e){l.set.call(this,e)},configurable:!0,enumerable:!0}),e[n]=t.l.has(n)?t.l.get(n):o}}))},n=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},o=(e,n)=>{n&&(e.__stencil__getHostRef=()=>n,n.i=e,512&n.o.u&&t(e,n))},l=(e,t)=>(0,console.error)(e,t),i=new Map,s=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u={u:0,h:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},a=e=>Promise.resolve(e),f=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!!f&&(()=>!!c.document&&Object.getOwnPropertyDescriptor(c.document.adoptedStyleSheets,"length").writable)(),h=!1,p=[],m=[],v=(e,t)=>n=>{e.push(n),h||(h=!0,t&&4&u.u?$(y):u.raf(y))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},y=()=>{b(p),b(m),(h=p.length>0)&&u.raf(y)},$=e=>a().then(e),w=v(m,!0),g=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>k,ok:()=>S,unwrap:()=>M,unwrapErr:()=>C});var S=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function k(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>S(e))):S(n)}if(e.isErr)return O(e.value);throw"should never get here"}var E,M=e=>{if(e.isOk)return e.value;throw e.value},C=e=>{if(e.isErr)return e.value;throw e.value};function x(){const e=this.attachShadow({mode:"open"});void 0===E&&(E=null),E&&(d?e.adoptedStyleSheets.push(E):e.adoptedStyleSheets=[...e.adoptedStyleSheets,E])}var P=new WeakMap,N=e=>"sc-"+e.p,D=(e,t,...n)=>{let o=null,l=null,i=!1,s=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof e&&!g(o))&&(o+=""),i&&s?r[r.length-1].m+=o:r.push(i?R(null,o):o),s=i)};if(c(n),t){t.key&&(l=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.v=t,r.length>0&&(u.$=r),u.j=l,u},R=(e,t)=>({u:0,S:e,m:t,O:null,$:null,v:null,j:null}),U={},W=e=>{const t=(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(e);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};W("::slotted"),W(":host"),W(":host-context");var A,L=(e,t)=>null==e||g(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?"string"==typeof e?parseFloat(e):"number"==typeof e?e:NaN:1&t?e+"":e,T=e=>{var t;return null==(t=n(e))?void 0:t.$hostElement$},z=(e,t)=>{const n=T(e);return{emit:e=>F(n,t,{bubbles:!0,composed:!0,cancelable:!0,detail:e})}},F=(e,t,n)=>{const o=u.ce(t,n);return e.dispatchEvent(o),o},H=(e,t,n,o,l,i)=>{if(n===o)return;let s=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,l=q(n);let i=q(o);t.remove(...l.filter((e=>e&&!i.includes(e)))),t.add(...i.filter((e=>e&&!l.includes(e))))}else if("key"===t);else if("ref"===t)o&&o(e);else{const r=g(o);if(s||r&&null!==o)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const l=null==o?"":o;"list"===t?s=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!s||4&i||l)&&!r&&1===e.nodeType&&e.setAttribute(t,o=!0===o?"":o)}},V=/\s/,q=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(V):[]),G=(e,t,n)=>{const o=11===t.O.nodeType&&t.O.host?t.O.host:t.O,l=e&&e.v||{},i=t.v||{};for(const e of I(Object.keys(l)))e in i||H(o,e,l[e],void 0,n,t.u);for(const e of I(Object.keys(i)))H(o,e,l[e],i[e],n,t.u)};function I(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var Y=!1,_=(e,t,n)=>{const o=t.$[n];let l,i,s=0;if(!c.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.O=c.document.createElement(o.S),G(null,o,Y),o.$)for(s=0;s<o.$.length;++s)i=_(e,o,s),i&&l.appendChild(i);return l["s-hn"]=A,l},B=(e,t,n,o,l,i)=>{let s,r=e;for(r.shadowRoot&&r.tagName===A&&(r=r.shadowRoot);l<=i;++l)o[l]&&(s=_(null,n,l),s&&(o[l].O=s,Z(r,s,t)))},J=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.O;X(t),e&&e.remove()}}},K=(e,t,n=!1)=>e.S===t.S&&(n?(n&&!e.j&&t.j&&(e.j=t.j),!0):e.j===t.j),Q=(e,t,n=!1)=>{const o=t.O=e.O,l=e.$,i=t.$;G(e,t,Y),null!==l&&null!==i?((e,t,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,a=0,f=t.length-1,d=t[0],h=t[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==d)d=t[++r];else if(null==h)h=t[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(K(d,m,l))Q(d,m,l),d=t[++r],m=o[++c];else if(K(h,v,l))Q(h,v,l),h=t[--f],v=o[--p];else if(K(d,v,l))Q(d,v,l),Z(e,d.O,h.O.nextSibling),d=t[++r],v=o[--p];else if(K(h,m,l))Q(h,m,l),Z(e,h.O,d.O),h=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].j&&t[a].j===m.j){u=a;break}u>=0?(s=t[u],s.S!==m.S?i=_(t&&t[c],n,u):(Q(s,m,l),t[u]=void 0,i=s.O),m=o[++c]):(i=_(t&&t[c],n,c),m=o[++c]),i&&Z(d.O.parentNode,i,d.O)}r>f?B(e,null==o[p+1]?null:o[p+1].O,n,o,c,p):c>p&&J(t,r,f)})(o,l,t,i,n):null!==i?B(o,null,t,i,0,i.length-1):!n&&null!==l&&J(l,0,l.length-1)},X=e=>{e.v&&e.v.ref&&e.v.ref(null),e.$&&e.$.map(X)},Z=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ee=(e,t)=>{if(t&&!e.k&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.k=()=>{t["s-p"].splice(n-1,1),o()})))}},te=(e,t)=>{if(e.u|=16,4&e.u)return void(e.u|=512);ee(e,e.M);const n=()=>ne(e,t);if(!t)return w(n);queueMicrotask((()=>{n()}))},ne=(e,t)=>{const n=e.$hostElement$,o=e.i;if(!o)throw Error(`Can't render component <${n.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?(e.C.length&&e.C.forEach((e=>e(n))),l=ue(o,"componentWillLoad",void 0,n)):l=ue(o,"componentWillUpdate",void 0,n),l=oe(l,(()=>ue(o,"componentWillRender",void 0,n))),oe(l,(()=>ie(e,o,t)))},oe=(e,t)=>le(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),le=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ie=async(e,t,n)=>{var o;const l=e.$hostElement$,i=l["s-rc"];n&&(e=>{const t=e.o,n=e.$hostElement$,o=t.u,l=((e,t)=>{var n;const o=N(t),l=s.get(o);if(!c.document)return o;if(e=11===e.nodeType?e:c.document,l)if("string"==typeof l){let i,s=P.get(e=e.head||e);if(s||P.set(e,s=new Set),!s.has(o)){{i=c.document.createElement("style"),i.innerHTML=l;const o=null!=(n=u.P)?n:j(c.document);if(null!=o&&i.setAttribute("nonce",o),!(1&t.u))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(i,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(f){const t=new CSSStyleSheet;t.replaceSync(l),d?e.adoptedStyleSheets.unshift(t):e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(i)}else e.append(i);1&t.u&&e.insertBefore(i,null)}4&t.u&&(i.innerHTML+=r),s&&s.add(o)}}else e.adoptedStyleSheets.includes(l)||(d?e.adoptedStyleSheets.push(l):e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);se(e,t,l,n),i&&(i.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>re(e);0===t.length?n():(Promise.all(t).then(n),e.u|=4,t.length=0)}},se=(e,t,n,o)=>{try{t=t.render(),e.u&=-17,e.u|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.N||R(null,null),i=(e=>e&&e.S===U)(t)?t:D(null,null,t);if(A=o.tagName,n&&i.v)for(const e of Object.keys(i.v))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.v[e]=o[e]);i.S=null,i.u|=4,e.N=i,i.O=l.O=o.shadowRoot||o,Q(l,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},re=e=>{const t=e.$hostElement$,n=e.i,o=e.M;ue(n,"componentDidRender",void 0,t),64&e.u?ue(n,"componentDidUpdate",void 0,t):(e.u|=64,ae(t),ue(n,"componentDidLoad",void 0,t),e.D(t),o||ce()),e.k&&(e.k(),e.k=void 0),512&e.u&&$((()=>te(e,!1))),e.u&=-517},ce=()=>{$((()=>F(c,"appload",{detail:{namespace:"genesys-chart-webcomponents"}})))},ue=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e,o)}},ae=e=>e.setAttribute("hydrated",""),fe=(e,t,o,i)=>{const s=n(e);if(!s)return;if(!s)throw Error(`Couldn't find host element for "${i.p}" 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/stenciljs/core/issues/5457).`);const r=s.$hostElement$,c=s.l.get(t),u=s.u,a=s.i;if(o=L(o,i.t[t][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(s.l.set(t,o),a)){if(i.R&&128&u){const e=i.R[t];e&&e.map((e=>{try{a[e](o,c,t)}catch(e){l(e,r)}}))}if(2==(18&u)){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(o,c,t))return;te(s,!1)}}},de=(e,t,o)=>{var l,i;const s=e.prototype;{e.watchers&&!t.R&&(t.R=e.watchers),e.deserializers&&!t.U&&(t.U=e.deserializers),e.serializers&&!t.W&&(t.W=e.serializers);const r=Object.entries(null!=(l=t.t)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,e)||{};i&&(t.t[e][0]|=2048),r&&(t.t[e][0]|=4096),(1&o||!i)&&Object.defineProperty(s,e,{get(){{if(!(2048&t.t[e][0]))return((e,t)=>n(this).l.get(t))(0,e);const o=n(this),l=o?o.i:s;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,e,{set(i){const s=n(this);if(s){if(r)return void 0===(32&l?this[e]:s.$hostElement$[e])&&s.l.get(e)&&(i=s.l.get(e)),r.call(this,L(i,l)),void fe(this,e,i=32&l?this[e]:s.$hostElement$[e],t);{if(!(1&o&&4096&t.t[e][0]))return fe(this,e,i,t),void(1&o&&!s.i&&s.C.push((()=>{4096&t.t[e][0]&&s.i[e]!==s.l.get(e)&&(s.i[e]=i)})));const n=()=>{const n=s.i[e];!s.l.get(e)&&n&&s.l.set(e,n),s.i[e]=L(i,l),fe(this,e,s.i[e],t)};s.i?n():s.C.push((()=>{n()}))}}}})}})),1&o){const o=new Map;s.attributeChangedCallback=function(e,l,i){u.jmp((()=>{var c;const u=o.get(e),a=n(this);if(this.hasOwnProperty(u)&&(i=this[u],delete this[u]),s.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==i)return;if(null==u){const n=null==a?void 0:a.u;if(a&&n&&!(8&n)&&128&n&&i!==l){const n=a.i,o=null==(c=t.R)?void 0:c[e];null==o||o.forEach((t=>{null!=n[t]&&n[t].call(n,i,l,e)}))}return}const f=r.find((([e])=>e===u));f&&4&f[1][0]&&(i=null!==i&&"false"!==i);const d=Object.getOwnPropertyDescriptor(s,u);i==this[u]||d.get&&!d.set||(this[u]=i)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.R)?i:{}),...r.filter((([e,t])=>31&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},he=(e,t)=>{ue(e,"connectedCallback",void 0,t)},pe=(e,t)=>{ue(e,"disconnectedCallback",void 0,t||e)},me=(e,t={})=>{var o;if(!c.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const a=[],d=t.exclude||[],h=c.customElements,p=c.document.head,m=p.querySelector("meta[charset]"),v=c.document.createElement("style"),b=[];let y,$=!0;Object.assign(u,t),u.h=new URL(t.resourcesUrl||"./",c.document.baseURI).href;let w=!1;if(e.map((e=>{e[1].map((t=>{var o,r,c;const p={u:t[0],p:t[1],t:t[2],A:t[3]};4&p.u&&(w=!0),p.t=t[2],p.R=null!=(o=t[4])?o:{},p.W=null!=(r=t[5])?r:{},p.U=null!=(c=t[6])?c:{};const m=p.p,v=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const n={u:0,$hostElement$:e,o:t,l:new Map,L:new Map};n.T=new Promise((e=>n.D=e)),e["s-p"]=[],e["s-rc"]=[],n.C=[];const o=n;e.__stencil__getHostRef=()=>o})(e=this,p),1&p.u)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${p.p}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else x.call(e,p)}connectedCallback(){n(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),y&&(clearTimeout(y),y=null),$?b.push(this):u.jmp((()=>(e=>{if(!(1&u.u)){const t=n(e);if(!t)return;const o=t.o,r=()=>{};if(1&t.u)(null==t?void 0:t.i)?he(t.i,e):(null==t?void 0:t.T)&&t.T.then((()=>he(t.i,e)));else{t.u|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ee(t,t.M=n);break}}o.t&&Object.entries(o.t).map((([t,[n]])=>{if(31&n&&t in e&&e[t]!==Object.prototype[t]){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.u)){if(t.u|=32,n.F){const s=((e,t)=>{const n=e.p.replace(/-/g,"_"),o=e.F;if(!o)return;const s=i.get(o);return s?s[n]:import(`./${o}.entry.js`).then((e=>(i.set(o,e),e[n])),(e=>{l(e,t.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(s&&"then"in s){const e=()=>{};o=await s,e()}else o=s;if(!o)throw Error(`Constructor for "${n.p}#${t.H}" was not found`);o.isProxied||(n.R=o.watchers,n.W=o.serializers,n.U=o.deserializers,de(o,n,2),o.isProxied=!0);const r=()=>{};t.u|=8;try{new o(t)}catch(t){l(t,e)}t.u&=-9,t.u|=128,r(),he(t.i,e)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.u|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=N(n);if(!s.has(t)){const o=()=>{};((e,t,n)=>{let o=s.get(e);f&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,s.set(e,o)})(t,e,!!(1&n.u)),o()}}}const r=t.M,c=()=>te(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,t,o)}r()}})(this))))}disconnectedCallback(){u.jmp((()=>(async e=>{if(!(1&u.u)){const t=n(e);(null==t?void 0:t.i)?pe(t.i,e):(null==t?void 0:t.T)&&t.T.then((()=>pe(t.i,e)))}P.has(e)&&P.delete(e),e.shadowRoot&&P.has(e.shadowRoot)&&P.delete(e.shadowRoot)})(this))),u.raf((()=>{var e;const t=n(this);if(!t)return;const o=b.findIndex((e=>e===this));o>-1&&b.splice(o,1),(null==(e=null==t?void 0:t.N)?void 0:e.O)instanceof Node&&!t.N.O.isConnected&&delete t.N.O}))}componentOnReady(){var e;return null==(e=n(this))?void 0:e.T}};p.F=e[0],d.includes(m)||h.get(m)||(a.push(m),h.define(m,de(v,p,1)))}))})),a.length>0&&(w&&(v.textContent+=r),v.textContent+=a.sort()+"{visibility:hidden}[hydrated]{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=u.P)?o:j(c.document);null!=e&&v.setAttribute("nonce",e),p.insertBefore(v,m?m.nextSibling:p.firstChild)}$=!1,b.length?b.map((e=>e.connectedCallback())):u.jmp((()=>y=setTimeout(ce,30)))},ve=e=>u.P=e;export{me as b,z as c,T as g,D as h,a as p,o as r,ve 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-WPqt-wWR.js";import{D as a,a as e,V as h,t as n}from"./p-Bv8VxTtJ.js";import{l as o}from"./p-nsqlWzyl.js";const l="category",r=class{constructor(i){t(this,i),this.labelColor=a,this.domainColor=e,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.legendPosition="right"}parseData(){this.xFieldName&&this.yFieldName||o(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,n=this.colorFieldName||l,r=this.interpolation,c=this.strokeDash,g=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),this.baseChartSpec.encoding.color.field=n,h&&(this.baseChartSpec.encoding.color.title=h),c&&(this.baseChartSpec.encoding.strokeDash={field:n,type:"nominal"}),r&&(this.baseChartSpec.mark.interpolate=r),g&&(this.baseChartSpec.mark.point=g);const p=Object.assign(this.baseChartSpec,t);this.visualizationSpec=p}componentWillLoad(){n(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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,g as a}from"./p-
|
|
1
|
+
import{r as t,h as i,g as a}from"./p-WPqt-wWR.js";import{D as s,a as e,V as r,t as h}from"./p-Bv8VxTtJ.js";import{l as n}from"./p-nsqlWzyl.js";const o=class{constructor(i){t(this,i),this.labelColor=s,this.domainColor=e,this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",mark:{type:"bar"},config:{axis:{ticks:!1,titlePadding:8,labelColor:this.labelColor||s,domainColor:this.domainColor||e},axisX:{labelAngle:0},scale:{bandPaddingInner:.4,bandPaddingOuter:.4},legend:{symbolType:"circle"},bar:{color:r[0]}},encoding:{x:{type:"nominal"},y:{type:"quantitative"},tooltip:{aggregate:"count",type:"quantitative"}}},this.legendPosition="right"}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={field:"category"}),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.xFieldName,a=this.yFieldName,s=this.xAxisTitle,e=this.yAxisTitle,h=this.legendTitle;if(this.chartLayers){const t=this.chartLayers.map((t=>({mark:"bar",transform:[{filter:{field:"series",equal:t}}],encoding:{x:{field:i,type:"nominal"},y:{field:a,type:"quantitative"}}})));this.baseChartSpec.layer=t}else i&&(this.baseChartSpec.encoding.x.field=i),a&&(this.baseChartSpec.encoding.y.field=a),s&&(this.baseChartSpec.encoding.x.title=s),e&&(this.baseChartSpec.encoding.y.title=e),h&&(this.baseChartSpec.encoding.color.title=h);const o=i;this.baseChartSpec.config.range={[o]:r};const l=Object.assign(this.baseChartSpec,t);this.visualizationSpec=l}componentWillLoad(){h(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"5bcc2fcee3bfb4905b9fdbb572593402531f960d",visualizationSpec:this.visualizationSpec})}get root(){return a(this)}static get watchers(){return{chartData:["parseData"]}}};o.style="gux-visualization-beta{height:fit-content;color:#2e394c;}gux-visualization-beta .mark-rect.layer_0_marks path{fill:url(#diagonalHatch0)}gux-visualization-beta{}gux-visualization-beta .mark-rect.layer_1_marks path{fill:#1da8b3}";export{o as gux_chart_column_beta}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
type CustomMethodDecorator<T> = (target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
|
|
2
|
+
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
3
|
+
type MixinInstance<F> = F extends (base: MixedInCtor) => MixedInCtor<infer I> ? I : never;
|
|
2
4
|
export interface ComponentDecorator {
|
|
3
5
|
(opts?: ComponentOptions): ClassDecorator;
|
|
4
6
|
}
|
|
@@ -151,7 +153,13 @@ export interface StateDecorator {
|
|
|
151
153
|
(): PropertyDecorator;
|
|
152
154
|
}
|
|
153
155
|
export interface WatchDecorator {
|
|
154
|
-
(propName:
|
|
156
|
+
(propName: any): CustomMethodDecorator<(newValue?: any, oldValue?: any, propName?: any, ...args: any[]) => any | void>;
|
|
157
|
+
}
|
|
158
|
+
export interface PropSerializeDecorator {
|
|
159
|
+
(propName: any): CustomMethodDecorator<(newValue?: any, propName?: string, ...args: any[]) => string | null>;
|
|
160
|
+
}
|
|
161
|
+
export interface AttrDeserializeDecorator {
|
|
162
|
+
(propName: any): CustomMethodDecorator<(newValue?: any, propName?: string, ...args: any[]) => any>;
|
|
155
163
|
}
|
|
156
164
|
export interface UserBuildConditionals {
|
|
157
165
|
isDev: boolean;
|
|
@@ -233,6 +241,14 @@ export declare const State: StateDecorator;
|
|
|
233
241
|
* https://stenciljs.com/docs/reactive-data#watch-decorator
|
|
234
242
|
*/
|
|
235
243
|
export declare const Watch: WatchDecorator;
|
|
244
|
+
/**
|
|
245
|
+
* Decorator to serialize a property to an attribute string.
|
|
246
|
+
*/
|
|
247
|
+
export declare const PropSerialize: PropSerializeDecorator;
|
|
248
|
+
/**
|
|
249
|
+
* Decorator to deserialize an attribute string to a property.
|
|
250
|
+
*/
|
|
251
|
+
export declare const AttrDeserialize: AttrDeserializeDecorator;
|
|
236
252
|
export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
|
|
237
253
|
export type ErrorHandler = (err: any, element?: HTMLElement) => void;
|
|
238
254
|
/**
|
|
@@ -349,6 +365,37 @@ export declare function readTask(task: RafCallback): void;
|
|
|
349
365
|
* Unhandled exception raised while rendering, during event handling, or lifecycles will trigger the custom event handler.
|
|
350
366
|
*/
|
|
351
367
|
export declare const setErrorHandler: (handler: ErrorHandler) => void;
|
|
368
|
+
/**
|
|
369
|
+
* @deprecated - Use `MixedInCtor` instead:
|
|
370
|
+
* ```ts
|
|
371
|
+
* import { MixedInCtor } from '@stencil/core';
|
|
372
|
+
*
|
|
373
|
+
* const AFactoryFn = <B extends MixedInCtor>(Base: B) => {class A extends Base { propA = A }; return A;}
|
|
374
|
+
* ```
|
|
375
|
+
*/
|
|
376
|
+
export type MixinFactory = (base: MixedInCtor) => MixedInCtor;
|
|
377
|
+
export type MixedInCtor<T = {}> = new (...args: any[]) => T;
|
|
378
|
+
/**
|
|
379
|
+
* Compose multiple mixin classes into a single constructor.
|
|
380
|
+
* The resulting class has the combined instance types of all mixed-in classes.
|
|
381
|
+
*
|
|
382
|
+
* Example:
|
|
383
|
+
* ```ts
|
|
384
|
+
* import { Mixin, MixedInCtor } from '@stencil/core';
|
|
385
|
+
*
|
|
386
|
+
* const AWrap = <B extends MixedInCtor>(Base: B) => {class A extends Base { propA = A }; return A;}
|
|
387
|
+
* const BWrap = <B extends MixedInCtor>(Base: B) => {class B extends Base { propB = B }; return B;}
|
|
388
|
+
* const CWrap = <B extends MixedInCtor>(Base: B) => {class C extends Base { propC = C }; return C;}
|
|
389
|
+
*
|
|
390
|
+
* class X extends Mixin(AWrap, BWrap, CWrap) {
|
|
391
|
+
* render() { return <div>{this.propA} {this.propB} {this.propC}</div>; }
|
|
392
|
+
* }
|
|
393
|
+
* ```
|
|
394
|
+
*
|
|
395
|
+
* @param mixinFactories mixin factory functions that return a class which extends from the provided class.
|
|
396
|
+
* @returns a class that is composed from extending each of the provided classes in the order they were provided.
|
|
397
|
+
*/
|
|
398
|
+
export declare function Mixin<const TMixins extends readonly MixinFactory[]>(...mixinFactories: TMixins): abstract new (...args: any[]) => UnionToIntersection<MixinInstance<TMixins[number]>>;
|
|
352
399
|
/**
|
|
353
400
|
* This file gets copied to all distributions of stencil component collections.
|
|
354
401
|
* - no imports
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genesys-spark-chart-components",
|
|
3
|
-
"version": "4.188.
|
|
3
|
+
"version": "4.188.3",
|
|
4
4
|
"description": "Common chart webcomponents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/stencil-wrapper.js",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"types": "dist/types/index.d.ts",
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@redsift/d3-rs-intl": "^0.4.0",
|
|
49
|
-
"vega": "
|
|
50
|
-
"vega-embed": "
|
|
51
|
-
"vega-lite": "
|
|
49
|
+
"vega": "6.2.0",
|
|
50
|
+
"vega-embed": "7.1.0",
|
|
51
|
+
"vega-lite": "6.4.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@babel/core": "^7.28.5",
|
|
55
55
|
"@babel/preset-env": "^7.28.5",
|
|
56
|
-
"@stencil/core": "4.
|
|
56
|
+
"@stencil/core": "4.38.3",
|
|
57
57
|
"@stencil/react-output-target": "^0.5.3",
|
|
58
58
|
"@stencil/sass": "^3.2.3",
|
|
59
59
|
"@types/jest": "^30.0.0",
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
"file-loader": "^6.2.0",
|
|
65
65
|
"genesys-spark-tokens": "file:../genesys-spark-tokens",
|
|
66
66
|
"genesys-spark-utils": "file:../genesys-spark-utils",
|
|
67
|
-
"glob": "^
|
|
67
|
+
"glob": "^13.0.0",
|
|
68
68
|
"globals": "^16.5.0",
|
|
69
69
|
"handlebars": "^4.7.8",
|
|
70
|
-
"inquirer": "^
|
|
70
|
+
"inquirer": "^13.0.1",
|
|
71
71
|
"jest": "^30.2.0",
|
|
72
72
|
"jest-environment-jsdom": "^30.2.0",
|
|
73
73
|
"jest-junit": "^16.0.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
86
86
|
"semver-sort": "^1.0.0",
|
|
87
87
|
"smob": "^1.5.0",
|
|
88
|
-
"stylelint": "^16.
|
|
88
|
+
"stylelint": "^16.26.0",
|
|
89
89
|
"stylelint-config-genesys-spark-components": "file:../../shared-configs/stylelint-config-genesys-spark-components",
|
|
90
90
|
"stylelint-config-html": "^1.1.0",
|
|
91
91
|
"stylelint-config-recess-order": "^7.4.0",
|