@advt-gpt-chart/package 2.1.3 → 2.1.4
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/index.es.js +2 -2
- package/dist/index.es.js.gz +0 -0
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.gz +0 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -158051,7 +158051,7 @@ const h2i = (i) => {
|
|
|
158051
158051
|
content: {
|
|
158052
158052
|
visible: !0,
|
|
158053
158053
|
style: {
|
|
158054
|
-
text: t(
|
|
158054
|
+
text: t(h, f),
|
|
158055
158055
|
fontSize: 20,
|
|
158056
158056
|
lineHeight: 32,
|
|
158057
158057
|
fontWeight: 700,
|
|
@@ -187310,7 +187310,7 @@ function ott() {
|
|
|
187310
187310
|
throw new Error("useGPTVisContext must be used within a GPTVisContext.Provider");
|
|
187311
187311
|
return i;
|
|
187312
187312
|
}
|
|
187313
|
-
const aAi = "2.1.
|
|
187313
|
+
const aAi = "2.1.4", lAi = (i) => /* @__PURE__ */ M.createElement("svg", U({ width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i), /* @__PURE__ */ M.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.00028 11.8082V1.66675H3.33354V11.8092C2.34223 12.1619 1.66699 13.1013 1.66699 14.1658C1.66699 15.2257 2.34399 16.1735 3.33354 16.5233V18.3336H5.00028V16.5235C5.99061 16.1731 6.66721 15.2267 6.66721 14.1658C6.66721 13.1042 5.99648 12.1607 5.00028 11.8082ZM16.6671 7.64242V1.66675H15.0003V7.64339C14.0088 7.99609 13.3338 8.9355 13.3338 10.0001C13.3338 11.0599 14.0108 12.0079 15.0003 12.3575V18.3336H16.6671V12.3577C17.6574 12.0074 18.3338 11.0609 18.3338 10.0001C18.3338 8.93844 17.6633 7.99492 16.6671 7.64242ZM4.1672 13.3326C3.70464 13.3326 3.33393 13.7029 3.33393 14.1658C3.33393 14.639 3.69896 14.9991 4.1672 14.9991C4.62996 14.9991 5.00028 14.6282 5.00028 14.1658C5.00028 13.7054 4.6276 13.3326 4.1672 13.3326ZM12.5007 5.83272C12.5007 4.7713 11.83 3.82777 10.8338 3.47527V1.66675H9.16703V3.47625C8.17572 3.82895 7.50048 4.76836 7.50048 5.83272C7.50048 6.89276 8.17748 7.8406 9.16703 8.19036V18.3336H10.8338V8.19055C11.8241 7.84021 12.5007 6.89374 12.5007 5.83272ZM10.0007 4.99964C9.53813 4.99964 9.16723 5.36996 9.16723 5.83272C9.16723 6.29528 9.53794 6.66618 10.0007 6.66618C10.4634 6.66618 10.8338 6.29528 10.8338 5.83272C10.8338 5.37231 10.4611 4.99964 10.0007 4.99964ZM15.0005 10.0001C15.0005 9.5373 15.3714 9.16678 15.834 9.16678C16.2944 9.16678 16.6671 9.53965 16.6671 10.0001C16.6671 10.4624 16.2967 10.8333 15.834 10.8333C15.3712 10.8333 15.0005 10.4624 15.0005 10.0001Z", fill: "#89898A" })), uAi = (i) => /* @__PURE__ */ M.createElement("svg", U({ width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i), /* @__PURE__ */ M.createElement("path", { d: "M11.667 10.9998V18.3337H8.33398V10.9998L1.66699 1.66675H18.334L11.667 10.9998ZM10 10.4656L15.0947 3.33374H4.90527L10 10.4656Z", fill: "#89898A" })), Dd = (i) => (i == null ? void 0 : i.map((e) => Ae(U({}, e), {
|
|
187314
187314
|
label: /* @__PURE__ */ Te.jsx(oo, { id: e.key })
|
|
187315
187315
|
}))) || [], cAi = {
|
|
187316
187316
|
components: {
|
package/dist/index.es.js.gz
CHANGED
|
Binary file
|
package/dist/index.umd.js
CHANGED
|
@@ -10157,7 +10157,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
10157
10157
|
*
|
|
10158
10158
|
* This source code is licensed under the MIT license found in the
|
|
10159
10159
|
* LICENSE file in the root directory of this source tree.
|
|
10160
|
-
*/return i.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function C(be){return typeof be=="string"||typeof be=="function"||be===n||be===c||be===s||be===o||be===d||be===f||typeof be=="object"&&be!==null&&(be.$$typeof===g||be.$$typeof===p||be.$$typeof===a||be.$$typeof===l||be.$$typeof===h||be.$$typeof===v||be.$$typeof===b||be.$$typeof===y||be.$$typeof===m)}function S(be){if(typeof be=="object"&&be!==null){var we=be.$$typeof;switch(we){case t:var Re=be.type;switch(Re){case u:case c:case n:case s:case o:case d:return Re;default:var Me=Re&&Re.$$typeof;switch(Me){case l:case h:case g:case p:case a:return Me;default:return we}}case r:return we}}}var x=u,w=c,A=l,E=a,T=t,R=h,k=n,I=g,D=p,B=r,F=s,W=o,V=d,q=!1;function z(be){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ee(be)||S(be)===u}function ee(be){return S(be)===c}function j(be){return S(be)===l}function H(be){return S(be)===a}function re(be){return typeof be=="object"&&be!==null&&be.$$typeof===t}function se(be){return S(be)===h}function le(be){return S(be)===n}function Z(be){return S(be)===g}function ue(be){return S(be)===p}function de(be){return S(be)===r}function pe(be){return S(be)===s}function ge(be){return S(be)===o}function ve(be){return S(be)===d}ns.AsyncMode=x,ns.ConcurrentMode=w,ns.ContextConsumer=A,ns.ContextProvider=E,ns.Element=T,ns.ForwardRef=R,ns.Fragment=k,ns.Lazy=I,ns.Memo=D,ns.Portal=B,ns.Profiler=F,ns.StrictMode=W,ns.Suspense=V,ns.isAsyncMode=z,ns.isConcurrentMode=ee,ns.isContextConsumer=j,ns.isContextProvider=H,ns.isElement=re,ns.isForwardRef=se,ns.isFragment=le,ns.isLazy=Z,ns.isMemo=ue,ns.isPortal=de,ns.isProfiler=pe,ns.isStrictMode=ge,ns.isSuspense=ve,ns.isValidElementType=C,ns.typeOf=S})(),ns}var $Ve;function fvi(){if($Ve)return rL.exports;$Ve=1;var i={};return i.NODE_ENV==="production"?rL.exports=hvi():rL.exports=dvi(),rL.exports}var bse,HVe;function pvi(){if(HVe)return bse;HVe=1;var i=fvi(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[i.ForwardRef]=r,o[i.Memo]=n;function s(p){return i.isMemo(p)?n:o[p.$$typeof]||e}var a=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;function f(p,g,m){if(typeof g!="string"){if(d){var v=h(g);v&&v!==d&&f(p,v,m)}var b=l(g);u&&(b=b.concat(u(g)));for(var y=s(p),C=s(g),S=0;S<b.length;++S){var x=b[S];if(!t[x]&&!(m&&m[x])&&!(C&&C[x])&&!(y&&y[x])){var w=c(g,x);try{a(p,x,w)}catch(A){}}}}return p}return bse=f,bse}pvi();var yse=typeof window!="undefined"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=M.createContext(null)):M.createContext(null);yse.Consumer;var gvi=yse.Provider,mvi=gvi,vvi=yse;function Bd(){var i=M.useContext(vvi);return DVe(i),i}var _se;(function(i){i.formatDate="FormattedDate",i.formatTime="FormattedTime",i.formatNumber="FormattedNumber",i.formatList="FormattedList",i.formatDisplayName="FormattedDisplayName"})(_se||(_se={}));var Cse;(function(i){i.formatDate="FormattedDateParts",i.formatTime="FormattedTimeParts",i.formatNumber="FormattedNumberParts",i.formatList="FormattedListParts"})(Cse||(Cse={}));function zVe(i){var e=function(t){var r=Bd(),n=t.value,o=t.children,s=nS(t,["value","children"]),a=typeof n=="string"?new Date(n||0):n,l=i==="formatDate"?r.formatDateToParts(a,s):r.formatTimeToParts(a,s);return o(l)};return e.displayName=Cse[i],e}function ZT(i){var e=function(t){var r=Bd(),n=t.value,o=t.children,s=nS(t,["value","children"]),a=r[i](n,s);if(typeof o=="function")return o(a);var l=r.textComponent||M.Fragment;return M.createElement(l,null,a)};return e.displayName=_se[i],e}function WVe(i){return i&&Object.keys(i).reduce(function(e,t){var r=i[t];return e[t]=SVe(r)?cvi(r):r,e},{})}var VVe=function(i,e,t,r){for(var n=[],o=4;o<arguments.length;o++)n[o-4]=arguments[o];var s=WVe(r),a=mse.apply(void 0,gg([i,e,t,s],n,!1));return Array.isArray(a)?BVe(a):a},UVe=function(i,e){var t=i.defaultRichTextElements,r=nS(i,["defaultRichTextElements"]),n=WVe(t),o=avi(Kr(Kr(Kr({},LVe),r),{defaultRichTextElements:n}),e),s={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:n};return Kr(Kr({},o),{formatMessage:VVe.bind(null,s,o.formatters),$t:VVe.bind(null,s,o.formatters)})};function bvi(i,e){var t=i.values,r=nS(i,["values"]),n=e.values,o=nS(e,["values"]);return vse(n,t)&&vse(r,o)}function jVe(i){var e=Bd(),t=e.formatMessage,r=e.textComponent,n=r===void 0?M.Fragment:r,o=i.id,s=i.description,a=i.defaultMessage,l=i.values,u=i.children,c=i.tagName,h=c===void 0?n:c,d=i.ignoreTag,f={id:o,description:s,defaultMessage:a},p=t(f,l,{ignoreTag:d});return typeof u=="function"?u(Array.isArray(p)?p:[p]):h?M.createElement(h,null,p):M.createElement(M.Fragment,null,p)}jVe.displayName="FormattedMessage";var ao=M.memo(jVe,bvi);ao.displayName="MemoizedFormattedMessage";function xse(i){return{locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,textComponent:i.textComponent,messages:i.messages,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,onError:i.onError,onWarn:i.onWarn,wrapRichTextChunksInFragment:i.wrapRichTextChunksInFragment,defaultRichTextElements:i.defaultRichTextElements}}var yvi=(function(i){Kf(e,i);function e(){var t=i!==null&&i.apply(this,arguments)||this;return t.cache=RVe(),t.state={cache:t.cache,intl:UVe(xse(t.props),t.cache),prevConfig:xse(t.props)},t}return e.getDerivedStateFromProps=function(t,r){var n=r.prevConfig,o=r.cache,s=xse(t);return vse(n,s)?null:{intl:UVe(s,o),prevConfig:s}},e.prototype.render=function(){return DVe(this.state.intl),M.createElement(mvi,{value:this.state.intl},this.props.children)},e.displayName="IntlProvider",e.defaultProps=LVe,e})(M.PureComponent);ZT("formatDate"),ZT("formatTime"),ZT("formatNumber"),ZT("formatList"),ZT("formatDisplayName"),zVe("formatDate"),zVe("formatTime");const _vi=i=>{var g;const{formatMessage:e}=Bd(),{formatValue:t}=k1(),r="donutData",{data:n=[],dataset:o,nameField:s="name",valField:a="value",chartTheme:l}=i,u=aE(o,{nameField:s,valField:a}),{nameField:c,valField:h}=u,d=((g=o==null?void 0:o.transfromData)==null?void 0:g.data)||n,f=Z5t(d,m=>{const v=m[h];return typeof v=="number"?v:typeof v=="string"&&parseFloat(v)||0}),p=[...d].sort((m,v)=>Number(v[h])-Number(m[h]));return{type:"pie",data:[{id:r,values:p}],categoryField:c,valueField:h,tooltip:rE({categoryField:c,valueField:h,showPercent:!0}),outerRadius:.8,innerRadius:.5,legends:TO(!0,c),indicator:{visible:!0,limitRatio:.6,title:{visible:!0,style:{text:e({id:"total"}),fontSize:12,lineHeight:16,fontWeight:700,fill:l==="dark"?"#FFFFFF":"#323233"}},content:{visible:!0,style:{text:t(s,f),fontSize:20,lineHeight:32,fontWeight:700,fill:l==="dark"?"#FFFFFF":"#323233"}}}}},GVe=i=>{const{options:e}=lp("Donut",_vi,i);return Te.jsx(K0,{VChart:D3e,spec:e})},Cvi=i=>{var h;const e="funnelData",{data:t,dataset:r,nameField:n="name",valField:o="value"}=i,s=aE(r,{nameField:n,valField:o}),{nameField:a,valField:l}=s,c=[...((h=r==null?void 0:r.transfromData)==null?void 0:h.data)||t].sort((d,f)=>Number(f[l])-Number(d[l]));return{type:"funnel",data:[{id:e,values:c}],categoryField:a,valueField:l,tooltip:rE({categoryField:a,valueField:l}),legends:Ee(U({},TO(!0,a)),{visible:!0,padding:{top:40}}),shape:"rect",isTransform:!0,heightRatio:.5,transform:{style:{fill:"#EDEDED",stroke:"#EEEEEE",lineWidth:2}}}},qVe=i=>{const{options:e}=lp("Funnel",Cvi,i);return Te.jsx(K0,{VChart:gwt,spec:e})},xvi=i=>{var g;const e="gaugeData",{formatValue:t}=k1(),{data:r,dataset:n,nameField:o="name",valField:s="value",chartTheme:a}=i,l=aE(n,{nameField:o,valField:s}),{nameField:u,valField:c}=l,h=((g=n==null?void 0:n.transfromData)==null?void 0:g.data)||r,d=[...h].sort((m,v)=>Number(m[c])-Number(v[c])),f=Number(d[0][c]||0),p=(d==null?void 0:d.length)===1?Math.round(f*2):Number(d[d.length-1][c]||0);return{type:"gauge",data:[{id:e,values:[h[0]]},{id:"gaugeData",values:d}],scales:[{id:"gaugeColorScale",type:"ordinal",domain:u,range:["#00CC66","#FFA400","#F55D3E"]}],series:[{id:"outerGauge",type:"gauge",dataId:"gaugeData",radiusField:u,angleField:c,seriesField:u,roundCap:!0,innerRadius:.82,outerRadius:.86,segment:{style:{innerPadding:2,fill:{field:u,scale:"gaugeColorScale"}}},tooltip:{visible:!1}},{type:"gauge",dataId:"indicator",categoryField:u,valueField:c,innerRadius:.62,outerRadius:.82,segment:{style:{fill:{field:u,scale:"gaugeColorScale"}}},track:{style:{fill:a==="dark"?"#323232":"#EDEDED"}},tooltip:rE({categoryField:u,valueField:c})}],startAngle:-180,endAngle:0,axes:[{id:"gaugeData",visible:!0,type:"linear",orient:"angle",max:Math.max(p,0),min:Math.min(f,0),grid:{visible:!1},label:{visible:!1}}],legends:[{visible:!0,orient:"bottom",position:"middle",field:u,seriesId:"outerGauge",item:{label:{formatMethod:m=>t(u,m)}}}],indicator:[{visible:!0,offsetY:-24,title:{style:{text:t(u,h[0][u]),fontSize:12,lineHeight:16,fontWeight:700,fill:a==="dark"?"#FFFFFF":"#323233"}},content:[{style:{text:t(c,h[0][c]),fontSize:20,lineHeight:32,fontWeight:700,fill:a==="dark"?"#FFFFFF":"#323233"}}]},{visible:!0,offsetX:"-82%",offsetY:15,title:{style:{text:Math.min(f,0),fontSize:12,lineHeight:16,fontWeight:700,fill:"#89898A",textAlign:"left"}}},{visible:!0,offsetX:"82%",offsetY:15,title:{style:{text:Math.max(p,0),fontSize:12,lineHeight:16,fontWeight:700,fill:"#89898A",textAlign:"right"}}}]}},YVe=i=>{const{options:e}=lp("Gauge",xvi,i);return Te.jsx(K0,{VChart:mwt,spec:e})},Svi=i=>{const{formatValue:e}=k1(),{data:t,xField:r="name",yField:n="category",valField:o="value"}=i;return{type:"heatmap",data:[{id:"heatmapData",values:D8t(t,[r,n])}],xField:r,yField:n,valueField:o,cell:{style:{fill:{field:o,scale:"color"}}},scales:[{id:"color",type:"linear",domain:[{dataId:"heatmapData",fields:[o]}],range:["#008CD6","#62C7EE","#B4E3F6","#F55D3E"]}],axes:[{orient:"bottom",type:"band",bandPadding:0,visible:!0,title:{visible:!0,text:r}},{orient:"left",type:"band",bandPadding:0,visible:!0,title:{visible:!0,text:n},domainLine:{visible:!1},tick:{visible:!1}}],legends:{type:"color",field:o,visible:!0,orient:"bottom",layoutType:"region-relative",rail:{style:{fill:"#E1E1E1"}}},tooltip:{visible:!0,mark:{content:{key:()=>o,value:s=>e(o,s[o])}}}}},XVe=i=>{const{options:e}=lp("Heatmap",Svi,i);return Te.jsx(K0,{VChart:vwt,spec:e})},KVe=[12,12];[1,2,3,4,6,8,12].reduce((i,e)=>(i[e]=e.toString(),i),{});const nL={light:{base:"#008CD6",warpBg:"#FAFAFA",borderColor:"#89898a",textColor:"#323233"},dark:{base:"#62C7EE",warpBg:"#424243",borderColor:"#CCCCCC",textColor:"#FFFFFF"}},wvi=Ma.div`
|
|
10160
|
+
*/return i.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function C(be){return typeof be=="string"||typeof be=="function"||be===n||be===c||be===s||be===o||be===d||be===f||typeof be=="object"&&be!==null&&(be.$$typeof===g||be.$$typeof===p||be.$$typeof===a||be.$$typeof===l||be.$$typeof===h||be.$$typeof===v||be.$$typeof===b||be.$$typeof===y||be.$$typeof===m)}function S(be){if(typeof be=="object"&&be!==null){var we=be.$$typeof;switch(we){case t:var Re=be.type;switch(Re){case u:case c:case n:case s:case o:case d:return Re;default:var Me=Re&&Re.$$typeof;switch(Me){case l:case h:case g:case p:case a:return Me;default:return we}}case r:return we}}}var x=u,w=c,A=l,E=a,T=t,R=h,k=n,I=g,D=p,B=r,F=s,W=o,V=d,q=!1;function z(be){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ee(be)||S(be)===u}function ee(be){return S(be)===c}function j(be){return S(be)===l}function H(be){return S(be)===a}function re(be){return typeof be=="object"&&be!==null&&be.$$typeof===t}function se(be){return S(be)===h}function le(be){return S(be)===n}function Z(be){return S(be)===g}function ue(be){return S(be)===p}function de(be){return S(be)===r}function pe(be){return S(be)===s}function ge(be){return S(be)===o}function ve(be){return S(be)===d}ns.AsyncMode=x,ns.ConcurrentMode=w,ns.ContextConsumer=A,ns.ContextProvider=E,ns.Element=T,ns.ForwardRef=R,ns.Fragment=k,ns.Lazy=I,ns.Memo=D,ns.Portal=B,ns.Profiler=F,ns.StrictMode=W,ns.Suspense=V,ns.isAsyncMode=z,ns.isConcurrentMode=ee,ns.isContextConsumer=j,ns.isContextProvider=H,ns.isElement=re,ns.isForwardRef=se,ns.isFragment=le,ns.isLazy=Z,ns.isMemo=ue,ns.isPortal=de,ns.isProfiler=pe,ns.isStrictMode=ge,ns.isSuspense=ve,ns.isValidElementType=C,ns.typeOf=S})(),ns}var $Ve;function fvi(){if($Ve)return rL.exports;$Ve=1;var i={};return i.NODE_ENV==="production"?rL.exports=hvi():rL.exports=dvi(),rL.exports}var bse,HVe;function pvi(){if(HVe)return bse;HVe=1;var i=fvi(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[i.ForwardRef]=r,o[i.Memo]=n;function s(p){return i.isMemo(p)?n:o[p.$$typeof]||e}var a=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;function f(p,g,m){if(typeof g!="string"){if(d){var v=h(g);v&&v!==d&&f(p,v,m)}var b=l(g);u&&(b=b.concat(u(g)));for(var y=s(p),C=s(g),S=0;S<b.length;++S){var x=b[S];if(!t[x]&&!(m&&m[x])&&!(C&&C[x])&&!(y&&y[x])){var w=c(g,x);try{a(p,x,w)}catch(A){}}}}return p}return bse=f,bse}pvi();var yse=typeof window!="undefined"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=M.createContext(null)):M.createContext(null);yse.Consumer;var gvi=yse.Provider,mvi=gvi,vvi=yse;function Bd(){var i=M.useContext(vvi);return DVe(i),i}var _se;(function(i){i.formatDate="FormattedDate",i.formatTime="FormattedTime",i.formatNumber="FormattedNumber",i.formatList="FormattedList",i.formatDisplayName="FormattedDisplayName"})(_se||(_se={}));var Cse;(function(i){i.formatDate="FormattedDateParts",i.formatTime="FormattedTimeParts",i.formatNumber="FormattedNumberParts",i.formatList="FormattedListParts"})(Cse||(Cse={}));function zVe(i){var e=function(t){var r=Bd(),n=t.value,o=t.children,s=nS(t,["value","children"]),a=typeof n=="string"?new Date(n||0):n,l=i==="formatDate"?r.formatDateToParts(a,s):r.formatTimeToParts(a,s);return o(l)};return e.displayName=Cse[i],e}function ZT(i){var e=function(t){var r=Bd(),n=t.value,o=t.children,s=nS(t,["value","children"]),a=r[i](n,s);if(typeof o=="function")return o(a);var l=r.textComponent||M.Fragment;return M.createElement(l,null,a)};return e.displayName=_se[i],e}function WVe(i){return i&&Object.keys(i).reduce(function(e,t){var r=i[t];return e[t]=SVe(r)?cvi(r):r,e},{})}var VVe=function(i,e,t,r){for(var n=[],o=4;o<arguments.length;o++)n[o-4]=arguments[o];var s=WVe(r),a=mse.apply(void 0,gg([i,e,t,s],n,!1));return Array.isArray(a)?BVe(a):a},UVe=function(i,e){var t=i.defaultRichTextElements,r=nS(i,["defaultRichTextElements"]),n=WVe(t),o=avi(Kr(Kr(Kr({},LVe),r),{defaultRichTextElements:n}),e),s={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:n};return Kr(Kr({},o),{formatMessage:VVe.bind(null,s,o.formatters),$t:VVe.bind(null,s,o.formatters)})};function bvi(i,e){var t=i.values,r=nS(i,["values"]),n=e.values,o=nS(e,["values"]);return vse(n,t)&&vse(r,o)}function jVe(i){var e=Bd(),t=e.formatMessage,r=e.textComponent,n=r===void 0?M.Fragment:r,o=i.id,s=i.description,a=i.defaultMessage,l=i.values,u=i.children,c=i.tagName,h=c===void 0?n:c,d=i.ignoreTag,f={id:o,description:s,defaultMessage:a},p=t(f,l,{ignoreTag:d});return typeof u=="function"?u(Array.isArray(p)?p:[p]):h?M.createElement(h,null,p):M.createElement(M.Fragment,null,p)}jVe.displayName="FormattedMessage";var ao=M.memo(jVe,bvi);ao.displayName="MemoizedFormattedMessage";function xse(i){return{locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,textComponent:i.textComponent,messages:i.messages,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,onError:i.onError,onWarn:i.onWarn,wrapRichTextChunksInFragment:i.wrapRichTextChunksInFragment,defaultRichTextElements:i.defaultRichTextElements}}var yvi=(function(i){Kf(e,i);function e(){var t=i!==null&&i.apply(this,arguments)||this;return t.cache=RVe(),t.state={cache:t.cache,intl:UVe(xse(t.props),t.cache),prevConfig:xse(t.props)},t}return e.getDerivedStateFromProps=function(t,r){var n=r.prevConfig,o=r.cache,s=xse(t);return vse(n,s)?null:{intl:UVe(s,o),prevConfig:s}},e.prototype.render=function(){return DVe(this.state.intl),M.createElement(mvi,{value:this.state.intl},this.props.children)},e.displayName="IntlProvider",e.defaultProps=LVe,e})(M.PureComponent);ZT("formatDate"),ZT("formatTime"),ZT("formatNumber"),ZT("formatList"),ZT("formatDisplayName"),zVe("formatDate"),zVe("formatTime");const _vi=i=>{var g;const{formatMessage:e}=Bd(),{formatValue:t}=k1(),r="donutData",{data:n=[],dataset:o,nameField:s="name",valField:a="value",chartTheme:l}=i,u=aE(o,{nameField:s,valField:a}),{nameField:c,valField:h}=u,d=((g=o==null?void 0:o.transfromData)==null?void 0:g.data)||n,f=Z5t(d,m=>{const v=m[h];return typeof v=="number"?v:typeof v=="string"&&parseFloat(v)||0}),p=[...d].sort((m,v)=>Number(v[h])-Number(m[h]));return{type:"pie",data:[{id:r,values:p}],categoryField:c,valueField:h,tooltip:rE({categoryField:c,valueField:h,showPercent:!0}),outerRadius:.8,innerRadius:.5,legends:TO(!0,c),indicator:{visible:!0,limitRatio:.6,title:{visible:!0,style:{text:e({id:"total"}),fontSize:12,lineHeight:16,fontWeight:700,fill:l==="dark"?"#FFFFFF":"#323233"}},content:{visible:!0,style:{text:t(h,f),fontSize:20,lineHeight:32,fontWeight:700,fill:l==="dark"?"#FFFFFF":"#323233"}}}}},GVe=i=>{const{options:e}=lp("Donut",_vi,i);return Te.jsx(K0,{VChart:D3e,spec:e})},Cvi=i=>{var h;const e="funnelData",{data:t,dataset:r,nameField:n="name",valField:o="value"}=i,s=aE(r,{nameField:n,valField:o}),{nameField:a,valField:l}=s,c=[...((h=r==null?void 0:r.transfromData)==null?void 0:h.data)||t].sort((d,f)=>Number(f[l])-Number(d[l]));return{type:"funnel",data:[{id:e,values:c}],categoryField:a,valueField:l,tooltip:rE({categoryField:a,valueField:l}),legends:Ee(U({},TO(!0,a)),{visible:!0,padding:{top:40}}),shape:"rect",isTransform:!0,heightRatio:.5,transform:{style:{fill:"#EDEDED",stroke:"#EEEEEE",lineWidth:2}}}},qVe=i=>{const{options:e}=lp("Funnel",Cvi,i);return Te.jsx(K0,{VChart:gwt,spec:e})},xvi=i=>{var g;const e="gaugeData",{formatValue:t}=k1(),{data:r,dataset:n,nameField:o="name",valField:s="value",chartTheme:a}=i,l=aE(n,{nameField:o,valField:s}),{nameField:u,valField:c}=l,h=((g=n==null?void 0:n.transfromData)==null?void 0:g.data)||r,d=[...h].sort((m,v)=>Number(m[c])-Number(v[c])),f=Number(d[0][c]||0),p=(d==null?void 0:d.length)===1?Math.round(f*2):Number(d[d.length-1][c]||0);return{type:"gauge",data:[{id:e,values:[h[0]]},{id:"gaugeData",values:d}],scales:[{id:"gaugeColorScale",type:"ordinal",domain:u,range:["#00CC66","#FFA400","#F55D3E"]}],series:[{id:"outerGauge",type:"gauge",dataId:"gaugeData",radiusField:u,angleField:c,seriesField:u,roundCap:!0,innerRadius:.82,outerRadius:.86,segment:{style:{innerPadding:2,fill:{field:u,scale:"gaugeColorScale"}}},tooltip:{visible:!1}},{type:"gauge",dataId:"indicator",categoryField:u,valueField:c,innerRadius:.62,outerRadius:.82,segment:{style:{fill:{field:u,scale:"gaugeColorScale"}}},track:{style:{fill:a==="dark"?"#323232":"#EDEDED"}},tooltip:rE({categoryField:u,valueField:c})}],startAngle:-180,endAngle:0,axes:[{id:"gaugeData",visible:!0,type:"linear",orient:"angle",max:Math.max(p,0),min:Math.min(f,0),grid:{visible:!1},label:{visible:!1}}],legends:[{visible:!0,orient:"bottom",position:"middle",field:u,seriesId:"outerGauge",item:{label:{formatMethod:m=>t(u,m)}}}],indicator:[{visible:!0,offsetY:-24,title:{style:{text:t(u,h[0][u]),fontSize:12,lineHeight:16,fontWeight:700,fill:a==="dark"?"#FFFFFF":"#323233"}},content:[{style:{text:t(c,h[0][c]),fontSize:20,lineHeight:32,fontWeight:700,fill:a==="dark"?"#FFFFFF":"#323233"}}]},{visible:!0,offsetX:"-82%",offsetY:15,title:{style:{text:Math.min(f,0),fontSize:12,lineHeight:16,fontWeight:700,fill:"#89898A",textAlign:"left"}}},{visible:!0,offsetX:"82%",offsetY:15,title:{style:{text:Math.max(p,0),fontSize:12,lineHeight:16,fontWeight:700,fill:"#89898A",textAlign:"right"}}}]}},YVe=i=>{const{options:e}=lp("Gauge",xvi,i);return Te.jsx(K0,{VChart:mwt,spec:e})},Svi=i=>{const{formatValue:e}=k1(),{data:t,xField:r="name",yField:n="category",valField:o="value"}=i;return{type:"heatmap",data:[{id:"heatmapData",values:D8t(t,[r,n])}],xField:r,yField:n,valueField:o,cell:{style:{fill:{field:o,scale:"color"}}},scales:[{id:"color",type:"linear",domain:[{dataId:"heatmapData",fields:[o]}],range:["#008CD6","#62C7EE","#B4E3F6","#F55D3E"]}],axes:[{orient:"bottom",type:"band",bandPadding:0,visible:!0,title:{visible:!0,text:r}},{orient:"left",type:"band",bandPadding:0,visible:!0,title:{visible:!0,text:n},domainLine:{visible:!1},tick:{visible:!1}}],legends:{type:"color",field:o,visible:!0,orient:"bottom",layoutType:"region-relative",rail:{style:{fill:"#E1E1E1"}}},tooltip:{visible:!0,mark:{content:{key:()=>o,value:s=>e(o,s[o])}}}}},XVe=i=>{const{options:e}=lp("Heatmap",Svi,i);return Te.jsx(K0,{VChart:vwt,spec:e})},KVe=[12,12];[1,2,3,4,6,8,12].reduce((i,e)=>(i[e]=e.toString(),i),{});const nL={light:{base:"#008CD6",warpBg:"#FAFAFA",borderColor:"#89898a",textColor:"#323233"},dark:{base:"#62C7EE",warpBg:"#424243",borderColor:"#CCCCCC",textColor:"#FFFFFF"}},wvi=Ma.div`
|
|
10161
10161
|
${({ctheme:i})=>ul`
|
|
10162
10162
|
height: 100%;
|
|
10163
10163
|
width: 100%;
|
|
@@ -10598,7 +10598,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
10598
10598
|
*/var aXe;function e6i(){return aXe||(aXe=1,(function(i){(function(){var e={}.hasOwnProperty;function t(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=n(o,r(a)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)e.call(o,a)&&o[a]&&(s=n(s,a));return s}function n(o,s){return s?o?o+" "+s:o+s:o}i.exports?(t.default=t,i.exports=t):window.classNames=t})()})(eue)),eue.exports}var t6i=e6i();const lXe=Bn(t6i),i6i=Ma.div`
|
|
10599
10599
|
height: 100%;
|
|
10600
10600
|
width: 100%;
|
|
10601
|
-
`,uXe=({visible:i,title:e,message:t})=>i?Te.jsx(i6i,{className:"error-container",children:Te.jsx(GT,{status:"error",title:e,subTitle:t})}):null,cXe=he.createContext(null);function hXe(){const i=he.useContext(cXe);if(i===void 0||Object.keys(i).length===0)throw new Error("useGPTVisContext must be used within a GPTVisContext.Provider");return i}const dXe="2.1.
|
|
10601
|
+
`,uXe=({visible:i,title:e,message:t})=>i?Te.jsx(i6i,{className:"error-container",children:Te.jsx(GT,{status:"error",title:e,subTitle:t})}):null,cXe=he.createContext(null);function hXe(){const i=he.useContext(cXe);if(i===void 0||Object.keys(i).length===0)throw new Error("useGPTVisContext must be used within a GPTVisContext.Provider");return i}const dXe="2.1.4",r6i=i=>M.createElement("svg",U({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.00028 11.8082V1.66675H3.33354V11.8092C2.34223 12.1619 1.66699 13.1013 1.66699 14.1658C1.66699 15.2257 2.34399 16.1735 3.33354 16.5233V18.3336H5.00028V16.5235C5.99061 16.1731 6.66721 15.2267 6.66721 14.1658C6.66721 13.1042 5.99648 12.1607 5.00028 11.8082ZM16.6671 7.64242V1.66675H15.0003V7.64339C14.0088 7.99609 13.3338 8.9355 13.3338 10.0001C13.3338 11.0599 14.0108 12.0079 15.0003 12.3575V18.3336H16.6671V12.3577C17.6574 12.0074 18.3338 11.0609 18.3338 10.0001C18.3338 8.93844 17.6633 7.99492 16.6671 7.64242ZM4.1672 13.3326C3.70464 13.3326 3.33393 13.7029 3.33393 14.1658C3.33393 14.639 3.69896 14.9991 4.1672 14.9991C4.62996 14.9991 5.00028 14.6282 5.00028 14.1658C5.00028 13.7054 4.6276 13.3326 4.1672 13.3326ZM12.5007 5.83272C12.5007 4.7713 11.83 3.82777 10.8338 3.47527V1.66675H9.16703V3.47625C8.17572 3.82895 7.50048 4.76836 7.50048 5.83272C7.50048 6.89276 8.17748 7.8406 9.16703 8.19036V18.3336H10.8338V8.19055C11.8241 7.84021 12.5007 6.89374 12.5007 5.83272ZM10.0007 4.99964C9.53813 4.99964 9.16723 5.36996 9.16723 5.83272C9.16723 6.29528 9.53794 6.66618 10.0007 6.66618C10.4634 6.66618 10.8338 6.29528 10.8338 5.83272C10.8338 5.37231 10.4611 4.99964 10.0007 4.99964ZM15.0005 10.0001C15.0005 9.5373 15.3714 9.16678 15.834 9.16678C16.2944 9.16678 16.6671 9.53965 16.6671 10.0001C16.6671 10.4624 16.2967 10.8333 15.834 10.8333C15.3712 10.8333 15.0005 10.4624 15.0005 10.0001Z",fill:"#89898A"})),n6i=i=>M.createElement("svg",U({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{d:"M11.667 10.9998V18.3337H8.33398V10.9998L1.66699 1.66675H18.334L11.667 10.9998ZM10 10.4656L15.0947 3.33374H4.90527L10 10.4656Z",fill:"#89898A"})),Ud=i=>(i==null?void 0:i.map(e=>Ee(U({},e),{label:Te.jsx(ao,{id:e.key})})))||[],o6i={components:{Select:{activeBorderColor:"#008CD6",hoverBorderColor:"#008CD6",optionHeight:32,optionLineHeight:"32px",optionPadding:"8px 12px 8px 8px"}}},s6i=Ma.div`
|
|
10602
10602
|
${()=>ul`
|
|
10603
10603
|
height: 36px;
|
|
10604
10604
|
|
package/dist/index.umd.js.gz
CHANGED
|
Binary file
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const version = "2.1.
|
|
1
|
+
declare const version = "2.1.4";
|
|
2
2
|
export default version;
|