@nocobase/plugin-data-visualization 0.17.0-alpha.2 → 0.17.0-alpha.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.
@@ -140,4 +140,4 @@ Error generating stack: `+a.message+`
140
140
 
141
141
  See the Apache Version 2.0 License for specific language governing permissions
142
142
  and limitations under the License.
143
- ***************************************************************************** */var ta=function(){return ta=Object.assign||function(r){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a])}return r},ta.apply(this,arguments)};function $U(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t}var GU=function(){return Math.random().toString(36).substring(6)},nT=function(e){var r=e.animate,t=e.backgroundColor,n=e.backgroundOpacity,i=e.baseUrl,a=e.children,o=e.foregroundColor,l=e.foregroundOpacity,s=e.gradientRatio,u=e.uniqueKey,c=e.interval,f=e.rtl,h=e.speed,v=e.style,d=e.title,p=$U(e,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","interval","rtl","speed","style","title"]),y=u||GU(),g=y+"-diff",m=y+"-animated-diff",x=y+"-aria",w=f?{transform:"scaleX(-1)"}:null,C="0; "+c+"; 1",M=h+"s";return B.createElement("svg",ta({"aria-labelledby":x,role:"img",style:ta(ta({},v),w)},p),d?B.createElement("title",{id:x},d):null,B.createElement("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+i+"#"+g+")",style:{fill:"url("+i+"#"+m+")"}}),B.createElement("defs",{role:"presentation"},B.createElement("clipPath",{id:g},a),B.createElement("linearGradient",{id:m},B.createElement("stop",{offset:"0%",stopColor:t,stopOpacity:n},r&&B.createElement("animate",{attributeName:"offset",values:-s+"; "+-s+"; 1",keyTimes:C,dur:M,repeatCount:"indefinite"})),B.createElement("stop",{offset:"50%",stopColor:o,stopOpacity:l},r&&B.createElement("animate",{attributeName:"offset",values:-s/2+"; "+-s/2+"; "+(1+s/2),keyTimes:C,dur:M,repeatCount:"indefinite"})),B.createElement("stop",{offset:"100%",stopColor:t,stopOpacity:n},r&&B.createElement("animate",{attributeName:"offset",values:"0; 0; "+(1+s),keyTimes:C,dur:M,repeatCount:"indefinite"})))))};nT.defaultProps={animate:!0,backgroundColor:"#f5f6f7",backgroundOpacity:1,baseUrl:"",foregroundColor:"#eee",foregroundOpacity:1,gradientRatio:2,id:null,interval:.25,rtl:!1,speed:1.2,style:{},title:"Loading..."};var iT=function(e){return e.children?B.createElement(nT,ta({},e)):B.createElement(HU,ta({},e))},HU=function(e){return B.createElement(iT,ta({viewBox:"0 0 476 124"},e),B.createElement("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),B.createElement("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),B.createElement("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),B.createElement("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),B.createElement("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),B.createElement("circle",{cx:"20",cy:"20",r:"20"}))};const WU=iT;var XU=function(e){var r=e.loadingTemplate,t=e.theme,n=t===void 0?"light":t,i=function(){return r||B.createElement(WU,{viewBox:"0 0 400 180",width:200,height:90,speed:1,backgroundColor:n==="dark"?"#262626":"#D9D9D9"},B.createElement("rect",{x:"20",y:"5",rx:"0",ry:"0",width:"1",height:"170"}),B.createElement("rect",{x:"20",y:"175",rx:"0",ry:"0",width:"360",height:"1"}),B.createElement("rect",{x:"40",y:"75",rx:"0",ry:"0",width:"35",height:"100"}),B.createElement("rect",{x:"80",y:"125",rx:"0",ry:"0",width:"35",height:"50"}),B.createElement("rect",{x:"120",y:"105",rx:"0",ry:"0",width:"35",height:"70"}),B.createElement("rect",{x:"160",y:"35",rx:"0",ry:"0",width:"35",height:"140"}),B.createElement("rect",{x:"200",y:"55",rx:"0",ry:"0",width:"35",height:"120"}),B.createElement("rect",{x:"240",y:"15",rx:"0",ry:"0",width:"35",height:"160"}),B.createElement("rect",{x:"280",y:"135",rx:"0",ry:"0",width:"35",height:"40"}),B.createElement("rect",{x:"320",y:"85",rx:"0",ry:"0",width:"35",height:"90"}))};return B.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:n==="dark"?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},i())};const eo=XU;var jU=globalThis&&globalThis.__rest||function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},UU=B.forwardRef(function(e,r){var t=e.chartRef,n=e.style,i=n===void 0?{height:"inherit"}:n,a=e.className,o=e.loading,l=e.loadingTemplate,s=e.errorTemplate,u=jU(e,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),c=Ja(fA,u),f=c.chart,h=c.container;return B.useEffect(function(){Ka(t,f.current)},[f.current]),B.useImperativeHandle(r,function(){return{getChart:function(){return f.current}}}),B.createElement(to,{errorTemplate:s},o&&B.createElement(eo,{loadingTemplate:l,theme:e.theme}),B.createElement("div",{className:a,style:i,ref:h}))});const qU=UU;var ZU=globalThis&&globalThis.__rest||function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},QU=B.forwardRef(function(e,r){var t=e.chartRef,n=e.style,i=n===void 0?{height:"inherit"}:n,a=e.className,o=e.loading,l=e.loadingTemplate,s=e.errorTemplate,u=ZU(e,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),c=Ja(gA,u),f=c.chart,h=c.container;return B.useEffect(function(){Ka(t,f.current)},[f.current]),B.useImperativeHandle(r,function(){return{getChart:function(){return f.current}}}),B.createElement(to,{errorTemplate:s},o&&B.createElement(eo,{loadingTemplate:l,theme:e.theme}),B.createElement("div",{className:a,style:i,ref:h}))});const KU=QU;var JU=globalThis&&globalThis.__rest||function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},t7=B.forwardRef(function(e,r){var t=e.chartRef,n=e.style,i=n===void 0?{height:"inherit"}:n,a=e.className,o=e.loading,l=e.loadingTemplate,s=e.errorTemplate,u=JU(e,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),c=Ja(yA,u),f=c.chart,h=c.container;return B.useEffect(function(){Ka(t,f.current)},[f.current]),B.useImperativeHandle(r,function(){return{getChart:function(){return f.current}}}),B.createElement(to,{errorTemplate:s},o&&B.createElement(eo,{loadingTemplate:l,theme:e.theme}),B.createElement("div",{className:a,style:i,ref:h}))});const e7=t7;var r7=globalThis&&globalThis.__rest||function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},n7=B.forwardRef(function(e,r){var t=e.chartRef,n=e.style,i=n===void 0?{height:"inherit"}:n,a=e.className,o=e.loading,l=e.loadingTemplate,s=e.errorTemplate,u=r7(e,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),c=Ja(BA,u),f=c.chart,h=c.container;return B.useEffect(function(){Ka(t,f.current)},[f.current]),B.useImperativeHandle(r,function(){return{getChart:function(){return f.current}}}),B.createElement(to,{errorTemplate:s},o&&B.createElement(eo,{loadingTemplate:l,theme:e.theme}),B.createElement("div",{className:a,style:i,ref:h}))});const i7=n7;var a7=globalThis&&globalThis.__rest||function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},o7=B.forwardRef(function(e,r){var t=e.chartRef,n=e.style,i=n===void 0?{height:"inherit"}:n,a=e.className,o=e.loading,l=e.loadingTemplate,s=e.errorTemplate,u=a7(e,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),c=Ja(_A,u),f=c.chart,h=c.container;return B.useEffect(function(){Ka(t,f.current)},[f.current]),B.useImperativeHandle(r,function(){return{getChart:function(){return f.current}}}),B.createElement(to,{errorTemplate:s},o&&B.createElement(eo,{loadingTemplate:l,theme:e.theme}),B.createElement("div",{className:a,style:i,ref:h}))});const l7=o7;var s7=globalThis&&globalThis.__rest||function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},u7=B.forwardRef(function(e,r){var t=e.chartRef,n=e.style,i=n===void 0?{height:"inherit"}:n,a=e.className,o=e.loading,l=e.loadingTemplate,s=e.errorTemplate,u=s7(e,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),c=Ja(tb,u),f=c.chart,h=c.container;return B.useEffect(function(){Ka(t,f.current)},[f.current]),B.useImperativeHandle(r,function(){return{getChart:function(){return f.current}}}),B.createElement(to,{errorTemplate:s},o&&B.createElement(eo,{loadingTemplate:l,theme:e.theme}),B.createElement("div",{className:a,style:i,ref:h}))});const c7=u7;var f7=globalThis&&globalThis.__rest||function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},h7=B.forwardRef(function(e,r){var t=e.chartRef,n=e.style,i=n===void 0?{height:"inherit"}:n,a=e.className,o=e.loading,l=e.loadingTemplate,s=e.errorTemplate,u=f7(e,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),c=Ja(EW,u),f=c.chart,h=c.container;return B.useEffect(function(){Ka(t,f.current)},[f.current]),B.useImperativeHandle(r,function(){return{getChart:function(){return f.current}}}),B.createElement(to,{errorTemplate:s},o&&B.createElement(eo,{loadingTemplate:l,theme:e.theme}),B.createElement("div",{className:a,style:i,ref:h}))});const v7=h7,{booleanField:Cv}=D0,d7={isStack:e=>Cv(J({name:"isStack",title:"isStack"},e)),smooth:e=>Cv(J({name:"smooth",title:"smooth"},e)),isPercent:e=>Cv(J({name:"isPercent",title:"isPercent"},e)),isGroup:e=>Cv(J({name:"isGroup",title:"isGroup"},e))};class ro extends Ov{constructor({name:t,title:n,component:i,config:a}){super({name:t,title:n,component:i,config:["xField","yField","seriesField",...a||[]]});br(this,"init",(t,{measures:n,dimensions:i})=>{const{xField:a,yField:o,seriesField:l}=this.infer(t,{measures:n,dimensions:i});return{general:{xField:a==null?void 0:a.value,yField:o==null?void 0:o.value,seriesField:l==null?void 0:l.value}}});this.addConfigs(d7)}getProps({data:t,general:n,advanced:i,fieldProps:a}){const o={},l=s=>s.replace(/\./g,"_");return Object.entries(a).forEach(([s,u])=>{s.includes(".")&&(s=l(s)),o[s]={formatter:u.transformer,alias:u.label}}),n=Object.entries(n).reduce((s,[u,c])=>(s[u]=c,u.includes("Field")&&(Array.isArray(c)?s[u]=c.map(f=>f!=null&&f.includes(".")?l(f):f):typeof c=="string"&&c.includes(".")&&(s[u]=l(c))),s),{}),J(J({data:t.map(s=>{const u={};return Object.entries(s).forEach(([c,f])=>{c.includes(".")&&(c=l(c)),u[c]=f}),u}),meta:o,animation:!1},n),i)}getReference(){return{title:this.title,link:`https://charts.ant.design/api/plots/${this.name}`}}}class p7 extends ro{constructor(){super({name:"bar",title:"Bar Chart",component:KU,config:["isGroup","isStack","isPercent"]});br(this,"init",(t,{measures:n,dimensions:i})=>{const{xField:a,yField:o,seriesField:l}=this.infer(t,{measures:n,dimensions:i});return{general:{xField:o==null?void 0:o.value,yField:a==null?void 0:a.value,seriesField:l==null?void 0:l.value}}})}}class g7 extends ro{constructor(){super({name:"pie",title:"Pie Chart",component:l7});br(this,"init",(t,{measures:n,dimensions:i})=>{const{xField:a,yField:o}=this.infer(t,{measures:n,dimensions:i});return{general:{colorField:a==null?void 0:a.value,angleField:o==null?void 0:o.value}}});this.config=[{property:"field",name:"angleField",title:"angleField",required:!0},{property:"field",name:"colorField",title:"colorField",required:!0}]}}class y7 extends ro{constructor(){super({name:"dualAxes",title:"Dual Axes Chart",component:v7});br(this,"init",(t,{measures:n,dimensions:i})=>{const{xField:a,yFields:o}=this.infer(t,{measures:n,dimensions:i});return{general:{xField:a==null?void 0:a.value,yField:(o==null?void 0:o.map(l=>l.value).slice(0,2))||[]}}});this.config=["xField",{yField:{title:'{{t("yField")}}',type:"array","x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space",properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"Select","x-reactions":"{{ useChartFields }}","x-component-props":{style:{minWidth:"200px"}},required:!0},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}},properties:{add:{type:"void",title:'{{t("Add")}}',"x-component":"ArrayItems.Addition"}}}}]}render({data:t,general:n,advanced:i,fieldProps:a}){const o=this.getProps({data:t,general:n,advanced:i,fieldProps:a}),{data:l}=o;return()=>B.createElement(this.component,gt(J({},o),{data:[l,l]}))}}const m7=[new ro({name:"line",title:"Line Chart",component:i7,config:["smooth","isStack"]}),new ro({name:"area",title:"Area Chart",component:qU,config:["smooth",{property:"isStack",defaultValue:!0},"isPercent"]}),new ro({name:"column",title:"Column Chart",component:e7,config:["isGroup","isStack","isPercent"]}),new p7,new g7,new y7,new ro({name:"scatter",title:"Scatter Chart",component:c7})];class Mv extends N.Plugin{constructor(){super(...arguments);br(this,"charts",new gT)}load(){return Fr(this,null,function*(){this.charts.setGroup("Built-in",[...m7,...NI]),this.app.addComponents({ChartV2BlockInitializer:DI,ChartV2BlockDesigner:PI,ChartV2Block:II}),this.app.schemaInitializerManager.add(OI),this.app.schemaInitializerManager.add(uI),this.app.schemaInitializerManager.add(mI);const t=this.app.schemaInitializerManager.get("BlockInitializers");t==null||t.add("dataBlocks.chartV2",{title:Et("Charts"),Component:"ChartV2BlockInitializer"})})}}dt.Chart=Ov,dt.ChartConfigContext=kn,dt.default=Mv,Object.defineProperties(dt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
143
+ ***************************************************************************** */var ta=function(){return ta=Object.assign||function(r){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a])}return r},ta.apply(this,arguments)};function $U(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t}var GU=function(){return Math.random().toString(36).substring(6)},nT=function(e){var r=e.animate,t=e.backgroundColor,n=e.backgroundOpacity,i=e.baseUrl,a=e.children,o=e.foregroundColor,l=e.foregroundOpacity,s=e.gradientRatio,u=e.uniqueKey,c=e.interval,f=e.rtl,h=e.speed,v=e.style,d=e.title,p=$U(e,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","interval","rtl","speed","style","title"]),y=u||GU(),g=y+"-diff",m=y+"-animated-diff",x=y+"-aria",w=f?{transform:"scaleX(-1)"}:null,C="0; "+c+"; 1",M=h+"s";return B.createElement("svg",ta({"aria-labelledby":x,role:"img",style:ta(ta({},v),w)},p),d?B.createElement("title",{id:x},d):null,B.createElement("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+i+"#"+g+")",style:{fill:"url("+i+"#"+m+")"}}),B.createElement("defs",{role:"presentation"},B.createElement("clipPath",{id:g},a),B.createElement("linearGradient",{id:m},B.createElement("stop",{offset:"0%",stopColor:t,stopOpacity:n},r&&B.createElement("animate",{attributeName:"offset",values:-s+"; "+-s+"; 1",keyTimes:C,dur:M,repeatCount:"indefinite"})),B.createElement("stop",{offset:"50%",stopColor:o,stopOpacity:l},r&&B.createElement("animate",{attributeName:"offset",values:-s/2+"; "+-s/2+"; "+(1+s/2),keyTimes:C,dur:M,repeatCount:"indefinite"})),B.createElement("stop",{offset:"100%",stopColor:t,stopOpacity:n},r&&B.createElement("animate",{attributeName:"offset",values:"0; 0; "+(1+s),keyTimes:C,dur:M,repeatCount:"indefinite"})))))};nT.defaultProps={animate:!0,backgroundColor:"#f5f6f7",backgroundOpacity:1,baseUrl:"",foregroundColor:"#eee",foregroundOpacity:1,gradientRatio:2,id:null,interval:.25,rtl:!1,speed:1.2,style:{},title:"Loading..."};var iT=function(e){return e.children?B.createElement(nT,ta({},e)):B.createElement(HU,ta({},e))},HU=function(e){return B.createElement(iT,ta({viewBox:"0 0 476 124"},e),B.createElement("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),B.createElement("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),B.createElement("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),B.createElement("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),B.createElement("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),B.createElement("circle",{cx:"20",cy:"20",r:"20"}))};const WU=iT;var XU=function(e){var r=e.loadingTemplate,t=e.theme,n=t===void 0?"light":t,i=function(){return r||B.createElement(WU,{viewBox:"0 0 400 180",width:200,height:90,speed:1,backgroundColor:n==="dark"?"#262626":"#D9D9D9"},B.createElement("rect",{x:"20",y:"5",rx:"0",ry:"0",width:"1",height:"170"}),B.createElement("rect",{x:"20",y:"175",rx:"0",ry:"0",width:"360",height:"1"}),B.createElement("rect",{x:"40",y:"75",rx:"0",ry:"0",width:"35",height:"100"}),B.createElement("rect",{x:"80",y:"125",rx:"0",ry:"0",width:"35",height:"50"}),B.createElement("rect",{x:"120",y:"105",rx:"0",ry:"0",width:"35",height:"70"}),B.createElement("rect",{x:"160",y:"35",rx:"0",ry:"0",width:"35",height:"140"}),B.createElement("rect",{x:"200",y:"55",rx:"0",ry:"0",width:"35",height:"120"}),B.createElement("rect",{x:"240",y:"15",rx:"0",ry:"0",width:"35",height:"160"}),B.createElement("rect",{x:"280",y:"135",rx:"0",ry:"0",width:"35",height:"40"}),B.createElement("rect",{x:"320",y:"85",rx:"0",ry:"0",width:"35",height:"90"}))};return B.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:n==="dark"?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},i())};const eo=XU;var jU=globalThis&&globalThis.__rest||function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},UU=B.forwardRef(function(e,r){var t=e.chartRef,n=e.style,i=n===void 0?{height:"inherit"}:n,a=e.className,o=e.loading,l=e.loadingTemplate,s=e.errorTemplate,u=jU(e,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),c=Ja(fA,u),f=c.chart,h=c.container;return B.useEffect(function(){Ka(t,f.current)},[f.current]),B.useImperativeHandle(r,function(){return{getChart:function(){return f.current}}}),B.createElement(to,{errorTemplate:s},o&&B.createElement(eo,{loadingTemplate:l,theme:e.theme}),B.createElement("div",{className:a,style:i,ref:h}))});const qU=UU;var ZU=globalThis&&globalThis.__rest||function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},QU=B.forwardRef(function(e,r){var t=e.chartRef,n=e.style,i=n===void 0?{height:"inherit"}:n,a=e.className,o=e.loading,l=e.loadingTemplate,s=e.errorTemplate,u=ZU(e,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),c=Ja(gA,u),f=c.chart,h=c.container;return B.useEffect(function(){Ka(t,f.current)},[f.current]),B.useImperativeHandle(r,function(){return{getChart:function(){return f.current}}}),B.createElement(to,{errorTemplate:s},o&&B.createElement(eo,{loadingTemplate:l,theme:e.theme}),B.createElement("div",{className:a,style:i,ref:h}))});const KU=QU;var JU=globalThis&&globalThis.__rest||function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},t7=B.forwardRef(function(e,r){var t=e.chartRef,n=e.style,i=n===void 0?{height:"inherit"}:n,a=e.className,o=e.loading,l=e.loadingTemplate,s=e.errorTemplate,u=JU(e,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),c=Ja(yA,u),f=c.chart,h=c.container;return B.useEffect(function(){Ka(t,f.current)},[f.current]),B.useImperativeHandle(r,function(){return{getChart:function(){return f.current}}}),B.createElement(to,{errorTemplate:s},o&&B.createElement(eo,{loadingTemplate:l,theme:e.theme}),B.createElement("div",{className:a,style:i,ref:h}))});const e7=t7;var r7=globalThis&&globalThis.__rest||function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},n7=B.forwardRef(function(e,r){var t=e.chartRef,n=e.style,i=n===void 0?{height:"inherit"}:n,a=e.className,o=e.loading,l=e.loadingTemplate,s=e.errorTemplate,u=r7(e,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),c=Ja(BA,u),f=c.chart,h=c.container;return B.useEffect(function(){Ka(t,f.current)},[f.current]),B.useImperativeHandle(r,function(){return{getChart:function(){return f.current}}}),B.createElement(to,{errorTemplate:s},o&&B.createElement(eo,{loadingTemplate:l,theme:e.theme}),B.createElement("div",{className:a,style:i,ref:h}))});const i7=n7;var a7=globalThis&&globalThis.__rest||function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},o7=B.forwardRef(function(e,r){var t=e.chartRef,n=e.style,i=n===void 0?{height:"inherit"}:n,a=e.className,o=e.loading,l=e.loadingTemplate,s=e.errorTemplate,u=a7(e,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),c=Ja(_A,u),f=c.chart,h=c.container;return B.useEffect(function(){Ka(t,f.current)},[f.current]),B.useImperativeHandle(r,function(){return{getChart:function(){return f.current}}}),B.createElement(to,{errorTemplate:s},o&&B.createElement(eo,{loadingTemplate:l,theme:e.theme}),B.createElement("div",{className:a,style:i,ref:h}))});const l7=o7;var s7=globalThis&&globalThis.__rest||function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},u7=B.forwardRef(function(e,r){var t=e.chartRef,n=e.style,i=n===void 0?{height:"inherit"}:n,a=e.className,o=e.loading,l=e.loadingTemplate,s=e.errorTemplate,u=s7(e,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),c=Ja(tb,u),f=c.chart,h=c.container;return B.useEffect(function(){Ka(t,f.current)},[f.current]),B.useImperativeHandle(r,function(){return{getChart:function(){return f.current}}}),B.createElement(to,{errorTemplate:s},o&&B.createElement(eo,{loadingTemplate:l,theme:e.theme}),B.createElement("div",{className:a,style:i,ref:h}))});const c7=u7;var f7=globalThis&&globalThis.__rest||function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},h7=B.forwardRef(function(e,r){var t=e.chartRef,n=e.style,i=n===void 0?{height:"inherit"}:n,a=e.className,o=e.loading,l=e.loadingTemplate,s=e.errorTemplate,u=f7(e,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),c=Ja(EW,u),f=c.chart,h=c.container;return B.useEffect(function(){Ka(t,f.current)},[f.current]),B.useImperativeHandle(r,function(){return{getChart:function(){return f.current}}}),B.createElement(to,{errorTemplate:s},o&&B.createElement(eo,{loadingTemplate:l,theme:e.theme}),B.createElement("div",{className:a,style:i,ref:h}))});const v7=h7,{booleanField:Cv}=D0,d7={isStack:e=>Cv(J({name:"isStack",title:"isStack"},e)),smooth:e=>Cv(J({name:"smooth",title:"smooth"},e)),isPercent:e=>Cv(J({name:"isPercent",title:"isPercent"},e)),isGroup:e=>Cv(J({name:"isGroup",title:"isGroup"},e))};class ro extends Ov{constructor({name:t,title:n,component:i,config:a}){super({name:t,title:n,component:i,config:["xField","yField","seriesField",...a||[]]});br(this,"init",(t,{measures:n,dimensions:i})=>{const{xField:a,yField:o,seriesField:l}=this.infer(t,{measures:n,dimensions:i});return{general:{xField:a==null?void 0:a.value,yField:o==null?void 0:o.value,seriesField:l==null?void 0:l.value}}});this.addConfigs(d7)}getProps({data:t,general:n,advanced:i,fieldProps:a}){const o={},l=s=>s.replace(/\./g,"_");return Object.entries(a).forEach(([s,u])=>{s.includes(".")&&(s=l(s)),o[s]={formatter:u.transformer,alias:u.label}}),n=Object.entries(n).reduce((s,[u,c])=>(s[u]=c,u.includes("Field")&&(Array.isArray(c)?s[u]=c.map(f=>f!=null&&f.includes(".")?l(f):f):typeof c=="string"&&c.includes(".")&&(s[u]=l(c))),s),{}),J(J({data:t.map(s=>{const u={};return Object.entries(s).forEach(([c,f])=>{c.includes(".")&&(c=l(c)),u[c]=f}),u}),meta:o,animation:!1},n),i)}getReference(){return{title:this.title,link:`https://ant-design-charts.antgroup.com/api/plots/${this.name}`}}}class p7 extends ro{constructor(){super({name:"bar",title:"Bar Chart",component:KU,config:["isGroup","isStack","isPercent"]});br(this,"init",(t,{measures:n,dimensions:i})=>{const{xField:a,yField:o,seriesField:l}=this.infer(t,{measures:n,dimensions:i});return{general:{xField:o==null?void 0:o.value,yField:a==null?void 0:a.value,seriesField:l==null?void 0:l.value}}})}}class g7 extends ro{constructor(){super({name:"pie",title:"Pie Chart",component:l7});br(this,"init",(t,{measures:n,dimensions:i})=>{const{xField:a,yField:o}=this.infer(t,{measures:n,dimensions:i});return{general:{colorField:a==null?void 0:a.value,angleField:o==null?void 0:o.value}}});this.config=[{property:"field",name:"angleField",title:"angleField",required:!0},{property:"field",name:"colorField",title:"colorField",required:!0}]}}class y7 extends ro{constructor(){super({name:"dualAxes",title:"Dual Axes Chart",component:v7});br(this,"init",(t,{measures:n,dimensions:i})=>{const{xField:a,yFields:o}=this.infer(t,{measures:n,dimensions:i});return{general:{xField:a==null?void 0:a.value,yField:(o==null?void 0:o.map(l=>l.value).slice(0,2))||[]}}});this.config=["xField",{yField:{title:'{{t("yField")}}',type:"array","x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space",properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"Select","x-reactions":"{{ useChartFields }}","x-component-props":{style:{minWidth:"200px"}},required:!0},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}},properties:{add:{type:"void",title:'{{t("Add")}}',"x-component":"ArrayItems.Addition"}}}}]}render({data:t,general:n,advanced:i,fieldProps:a}){const o=this.getProps({data:t,general:n,advanced:i,fieldProps:a}),{data:l}=o;return()=>B.createElement(this.component,gt(J({},o),{data:[l,l]}))}}const m7=[new ro({name:"line",title:"Line Chart",component:i7,config:["smooth","isStack"]}),new ro({name:"area",title:"Area Chart",component:qU,config:["smooth",{property:"isStack",defaultValue:!0},"isPercent"]}),new ro({name:"column",title:"Column Chart",component:e7,config:["isGroup","isStack","isPercent"]}),new p7,new g7,new y7,new ro({name:"scatter",title:"Scatter Chart",component:c7})];class Mv extends N.Plugin{constructor(){super(...arguments);br(this,"charts",new gT)}load(){return Fr(this,null,function*(){this.charts.setGroup("Built-in",[...m7,...NI]),this.app.addComponents({ChartV2BlockInitializer:DI,ChartV2BlockDesigner:PI,ChartV2Block:II}),this.app.schemaInitializerManager.add(OI),this.app.schemaInitializerManager.add(uI),this.app.schemaInitializerManager.add(mI);const t=this.app.schemaInitializerManager.get("BlockInitializers");t==null||t.add("dataBlocks.chartV2",{title:Et("Charts"),Component:"ChartV2BlockInitializer"})})}}dt.Chart=Ov,dt.ChartConfigContext=kn,dt.default=Mv,Object.defineProperties(dt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,10 +1,10 @@
1
1
  module.exports = {
2
- "@nocobase/client": "0.17.0-alpha.2",
2
+ "@nocobase/client": "0.17.0-alpha.3",
3
3
  "@formily/react": "2.2.27",
4
4
  "@formily/shared": "2.2.27",
5
5
  "lodash": "4.17.21",
6
- "@nocobase/cache": "0.17.0-alpha.2",
7
- "@nocobase/server": "0.17.0-alpha.2",
6
+ "@nocobase/cache": "0.17.0-alpha.3",
7
+ "@nocobase/server": "0.17.0-alpha.3",
8
8
  "react": "18.2.0",
9
9
  "@ant-design/icons": "5.1.4",
10
10
  "ahooks": "3.7.8",
@@ -13,8 +13,8 @@ module.exports = {
13
13
  "antd": "5.8.6",
14
14
  "@formily/antd-v5": "1.1.7",
15
15
  "@formily/core": "2.2.27",
16
- "@nocobase/utils": "0.17.0-alpha.2",
17
- "@nocobase/database": "0.17.0-alpha.2",
16
+ "@nocobase/utils": "0.17.0-alpha.3",
17
+ "@nocobase/database": "0.17.0-alpha.3",
18
18
  "react-i18next": "11.18.6",
19
- "@nocobase/actions": "0.17.0-alpha.2"
19
+ "@nocobase/actions": "0.17.0-alpha.3"
20
20
  };
@@ -0,0 +1,84 @@
1
+ {
2
+ "Edit": "Edit",
3
+ "Delete": "Delete",
4
+ "Cancel": "Cancel",
5
+ "Submit": "Submit",
6
+ "Actions": "Actions",
7
+ "Title": "Title",
8
+ "Enable": "Enable",
9
+ "Chart": "Chart",
10
+ "ChartV2": "ChartV2",
11
+ "Charts": "Charts",
12
+ "Configure": "Configure",
13
+ "Duplicate": "Duplicate",
14
+ "Configure chart": "Configure chart",
15
+ "Transform": "Transform",
16
+ "Chart type": "Chart type",
17
+ "JSON config": "JSON config",
18
+ "Query": "Query",
19
+ "Data": "Data",
20
+ "Run query": "Run query",
21
+ "Measures": "Measures",
22
+ "Dimensions": "Dimensions",
23
+ "Filter": "Filter",
24
+ "Sort": "Sort",
25
+ "Limit": "Limit",
26
+ "Enable cache": "Enable cache",
27
+ "TTL (second)": "TTL (second)",
28
+ "Field": "Field",
29
+ "Aggregation": "Aggregation",
30
+ "Alias": "Alias",
31
+ "Format": "Format",
32
+ "The first 10 records of the query result:": "The first 10 records of the query result:",
33
+ "Please run query to retrive data.": "Please run query to retrive data.",
34
+ "Type": "Type",
35
+ "Add field": "Add field",
36
+ "Add chart": "Add chart",
37
+ "xField": "xField",
38
+ "yField": "yField",
39
+ "seriesField": "seriesField",
40
+ "angleField": "angleField",
41
+ "colorField": "colorField",
42
+ "Line Chart": "Line Chart",
43
+ "Area Chart": "Area Chart",
44
+ "Column Chart": "Column Chart",
45
+ "Bar Chart": "Bar Chart",
46
+ "Pie Chart": "Pie Chart",
47
+ "Dual Axes Chart": "Dual Axes Chart",
48
+ "Scatter Chart": "Scatter Chart",
49
+ "Gauge Chart": "Gauge Chart",
50
+ "Statistic": "Statistic",
51
+ "Currency": "Currency",
52
+ "Percent": "Percent",
53
+ "Exponential": "Exponential",
54
+ "Abbreviation": "Abbreviation",
55
+ "Please configure and run query": "Please configure and run query",
56
+ "Please configure chart": "Please configure chart",
57
+ "Are you sure to cancel?": "Are you sure to cancel?",
58
+ "You changes are not saved. If you click OK, your changes will be lost.": "You changes are not saved. If you click OK, your changes will be lost.",
59
+ "Same properties set in the form above will be overwritten by this JSON config.": "Same properties set in the form above will be overwritten by this JSON config.",
60
+ "Built-in": "Built-in",
61
+ "Config reference: ": "Config reference: ",
62
+ "Table": "Table",
63
+ "Sum": "Sum",
64
+ "Avg": "Avg",
65
+ "Count": "Count",
66
+ "Min": "Min",
67
+ "Max": "Max",
68
+ "Please select a chart type.": "Please select a chart type.",
69
+ "Collection": "Collection",
70
+ "isStack": "isStack",
71
+ "isPercent": "isPercent",
72
+ "isGroup": "isGroup",
73
+ "smooth": "smooth",
74
+ "Expand": "Expand",
75
+ "Current filter": "Current filter",
76
+ "Add custom field": "Add custom field",
77
+ "To filter with custom fields, use \"Current filter\" variables in the chart configuration.": "To filter with custom fields, use \"Current filter\" variables in the chart configuration.",
78
+ "Input": "Input",
79
+ "Date range": "Date range",
80
+ "Time range": "Time range",
81
+ "Edit field properties": "Edit field properties",
82
+ "Select a source field to use metadata of the field": "Select a source field to use metadata of the field",
83
+ "Original field": "Original field"
84
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "Edit": "编辑",
3
+ "Delete": "删除",
4
+ "Cancel": "取消",
5
+ "Submit": "提交",
6
+ "Actions": "操作",
7
+ "Title": "名称",
8
+ "Enable": "启用",
9
+ "Chart": "图表",
10
+ "ChartV2": "图表V2",
11
+ "Charts": "图表",
12
+ "Configure": "配置",
13
+ "Duplicate": "复制",
14
+ "Configure chart": "配置图表",
15
+ "Transform": "数据转换",
16
+ "Chart type": "图表类型",
17
+ "JSON config": "JSON 配置",
18
+ "Query": "查询",
19
+ "Data": "数据",
20
+ "Run query": "执行查询",
21
+ "Measures": "度量",
22
+ "Dimensions": "维度",
23
+ "Filter": "过滤",
24
+ "Sort": "排序",
25
+ "Limit": "结果数量",
26
+ "Enable cache": "启用缓存",
27
+ "TTL (second)": "缓存时间 (秒)",
28
+ "Field": "字段",
29
+ "Aggregation": "聚合",
30
+ "Alias": "别名",
31
+ "Format": "格式",
32
+ "The first 10 records of the query result:": "查询结果的前 10 条记录:",
33
+ "Please run query to retrive data.": "请执行查询来获取数据。",
34
+ "Type": "类型",
35
+ "Add field": "添加字段",
36
+ "Add chart": "添加图表",
37
+ "xField": "x轴字段",
38
+ "yField": "y轴字段",
39
+ "seriesField": "分类字段",
40
+ "angleField": "角度字段",
41
+ "colorField": "颜色字段",
42
+ "Line Chart": "折线图",
43
+ "Area Chart": "面积图",
44
+ "Column Chart": "柱状图",
45
+ "Bar Chart": "条形图",
46
+ "Pie Chart": "饼图",
47
+ "Dual Axes Chart": "双轴图",
48
+ "Scatter Chart": "散点图",
49
+ "Gauge Chart": "仪表盘",
50
+ "Statistic": "统计",
51
+ "Currency": "货币",
52
+ "Percent": "百分比",
53
+ "Exponential": "科学记数法",
54
+ "Abbreviation": "缩写",
55
+ "Please configure and run query": "请配置并执行数据查询",
56
+ "Please configure chart": "请配置图表",
57
+ "Are you sure to cancel?": "确定要取消吗?",
58
+ "You changes are not saved. If you click OK, your changes will be lost.": "您的更改尚未保存。如果您点击“确定”,您的更改将丢失。",
59
+ "Same properties set in the form above will be overwritten by this JSON config.": "上面表单中设置的相同属性将被JSON配置覆盖。",
60
+ "Built-in": "内置图表",
61
+ "Config reference: ": "配置参考: ",
62
+ "Table": "表格",
63
+ "Sum": "求和",
64
+ "Avg": "平均值",
65
+ "Count": "计数",
66
+ "Min": "最小值",
67
+ "Max": "最大值",
68
+ "Please select a chart type.": "请选择图表类型",
69
+ "Collection": "数据表",
70
+ "isStack": "堆叠",
71
+ "isPercent": "显示为百分比",
72
+ "isGroup": "分组",
73
+ "smooth": "平滑曲线",
74
+ "Collapse": "折叠",
75
+ "Expand": "展开",
76
+ "Current filter": "当前筛选",
77
+ "Add custom field": "添加自定义字段",
78
+ "To filter with custom fields, use \"Current filter\" variables in the chart configuration.": "要通过自定义字段筛选,需要在图表配置中使用“当前筛选”变量。",
79
+ "Input": "输入框",
80
+ "Date range": "日期范围",
81
+ "Time range": "时间范围",
82
+ "Edit field properties": "编辑字段属性",
83
+ "Select a source field to use metadata of the field": "选择来源字段可以复用字段的元数据配置",
84
+ "Original field": "原始字段"
85
+ }
@@ -1 +1 @@
1
- {"name":"koa-compose","description":"compose Koa middleware","repository":"koajs/compose","version":"4.1.0","keywords":["koa","middleware","compose"],"files":["index.js"],"dependencies":{},"devDependencies":{"codecov":"^3.0.0","jest":"^21.0.0","matcha":"^0.7.0","standard":"^10.0.3"},"scripts":{"bench":"matcha bench/bench.js","lint":"standard --fix .","test":"jest --forceExit --coverage"},"jest":{"testEnvironment":"node"},"license":"MIT","_lastModified":"2023-12-06T05:27:25.216Z"}
1
+ {"name":"koa-compose","description":"compose Koa middleware","repository":"koajs/compose","version":"4.1.0","keywords":["koa","middleware","compose"],"files":["index.js"],"dependencies":{},"devDependencies":{"codecov":"^3.0.0","jest":"^21.0.0","matcha":"^0.7.0","standard":"^10.0.3"},"scripts":{"bench":"matcha bench/bench.js","lint":"standard --fix .","test":"jest --forceExit --coverage"},"jest":{"testEnvironment":"node"},"license":"MIT","_lastModified":"2023-12-06T09:26:00.698Z"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-data-visualization",
3
- "version": "0.17.0-alpha.2",
3
+ "version": "0.17.0-alpha.3",
4
4
  "displayName": "Data Visualization",
5
5
  "displayName.zh-CN": "数据可视化",
6
6
  "description": "Provides business intelligence and data visualization features",
@@ -33,5 +33,5 @@
33
33
  "@nocobase/test": "0.x",
34
34
  "@nocobase/utils": "0.x"
35
35
  },
36
- "gitHead": "c4d4383a1fde1058011e2f1fd1d9272812e6daeb"
36
+ "gitHead": "8fb3aace819722ceb845ea63ec3009f324a897a9"
37
37
  }
@@ -1,33 +0,0 @@
1
- declare const _default: {
2
- Edit: string;
3
- Delete: string;
4
- Cancel: string;
5
- Submit: string;
6
- Actions: string;
7
- Title: string;
8
- Enable: string;
9
- 'SAML manager': string;
10
- 'SAML Providers': string;
11
- 'Redirect url': string;
12
- 'SP entity id': string;
13
- 'Add provider': string;
14
- 'Edit provider': string;
15
- 'Client id': string;
16
- 'Entity id or issuer': string;
17
- 'Login Url': string;
18
- 'Public cert': string;
19
- 'Delete provider': string;
20
- 'Are you sure you want to delete it?': string;
21
- 'Sign in button name, which will be displayed on the sign in page': string;
22
- Expand: string;
23
- 'Current filter': string;
24
- 'Add custom field': string;
25
- 'To filter with custom fields, use "Current filter" variables in the chart configuration.': string;
26
- Input: string;
27
- 'Date range': string;
28
- 'Time range': string;
29
- 'Edit field properties': string;
30
- 'Select a source field to use metadata of the field': string;
31
- 'Original field': string;
32
- };
33
- export default _default;
@@ -1,54 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var en_US_exports = {};
19
- __export(en_US_exports, {
20
- default: () => en_US_default
21
- });
22
- module.exports = __toCommonJS(en_US_exports);
23
- var en_US_default = {
24
- Edit: "Edit",
25
- Delete: "Delete",
26
- Cancel: "Cancel",
27
- Submit: "Submit",
28
- Actions: "Actions",
29
- Title: "Title",
30
- Enable: "Enable",
31
- "SAML manager": "SAML manager",
32
- "SAML Providers": "SAML Providers",
33
- "Redirect url": "Redirect url",
34
- "SP entity id": "SP entity id",
35
- "Add provider": "Add",
36
- "Edit provider": "Edit",
37
- "Client id": "Client id",
38
- "Entity id or issuer": "Entity id or issuer",
39
- "Login Url": "Login Url",
40
- "Public cert": "Public cert",
41
- "Delete provider": "Delete",
42
- "Are you sure you want to delete it?": "Are you sure you want to delete it?",
43
- "Sign in button name, which will be displayed on the sign in page": "Sign in button name, which will be displayed on the sign in page",
44
- Expand: "Expand",
45
- "Current filter": "Current filter",
46
- "Add custom field": "Add custom field",
47
- 'To filter with custom fields, use "Current filter" variables in the chart configuration.': 'To filter with custom fields, use "Current filter" variables in the chart configuration.',
48
- Input: "Input",
49
- "Date range": "Date range",
50
- "Time range": "Time range",
51
- "Edit field properties": "Edit field properties",
52
- "Select a source field to use metadata of the field": "Select a source field to use metadata of the field",
53
- "Original field": "Original field"
54
- };
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,23 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var fr_FR_exports = {};
19
- __export(fr_FR_exports, {
20
- default: () => fr_FR_default
21
- });
22
- module.exports = __toCommonJS(fr_FR_exports);
23
- var fr_FR_default = {};
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,23 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var ja_JP_exports = {};
19
- __export(ja_JP_exports, {
20
- default: () => ja_JP_default
21
- });
22
- module.exports = __toCommonJS(ja_JP_exports);
23
- var ja_JP_default = {};
@@ -1,23 +0,0 @@
1
- declare const _default: {
2
- Edit: string;
3
- Delete: string;
4
- Cancel: string;
5
- Submit: string;
6
- Actions: string;
7
- Title: string;
8
- Enable: string;
9
- 'SAML manager': string;
10
- 'SAML Providers': string;
11
- 'Redirect url': string;
12
- 'SP entity id': string;
13
- 'Add provider': string;
14
- 'Edit provider': string;
15
- 'Client id': string;
16
- 'Entity id or issuer': string;
17
- 'Login Url': string;
18
- 'Public cert': string;
19
- 'Delete provider': string;
20
- 'Are you sure you want to delete it?': string;
21
- 'Sign in button name, which will be displayed on the sign in page': string;
22
- };
23
- export default _default;
@@ -1,44 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var pt_BR_exports = {};
19
- __export(pt_BR_exports, {
20
- default: () => pt_BR_default
21
- });
22
- module.exports = __toCommonJS(pt_BR_exports);
23
- var pt_BR_default = {
24
- Edit: "Editar",
25
- Delete: "Delete",
26
- Cancel: "Cancelar",
27
- Submit: "Enviar",
28
- Actions: "A\xE7\xF5es",
29
- Title: "Titulo",
30
- Enable: "Ativo",
31
- "SAML manager": "Gerenciador SAML",
32
- "SAML Providers": "Provedores SAML",
33
- "Redirect url": "URL de redirecionamento",
34
- "SP entity id": "ID de entidade do provedor de servi\xE7o (SP)",
35
- "Add provider": "Adicionar",
36
- "Edit provider": "Editar",
37
- "Client id": "ID do cliente",
38
- "Entity id or issuer": "ID de entidade ou emissor",
39
- "Login Url": "URL de login",
40
- "Public cert": "Certificado p\xFAblico",
41
- "Delete provider": "Excluir",
42
- "Are you sure you want to delete it?": "Tem certeza de que deseja exclu\xED-lo?",
43
- "Sign in button name, which will be displayed on the sign in page": "Nome do bot\xE3o de login, que ser\xE1 exibido na p\xE1gina de login"
44
- };
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,23 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var ru_RU_exports = {};
19
- __export(ru_RU_exports, {
20
- default: () => ru_RU_default
21
- });
22
- module.exports = __toCommonJS(ru_RU_exports);
23
- var ru_RU_default = {};
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,23 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var tr_TR_exports = {};
19
- __export(tr_TR_exports, {
20
- default: () => tr_TR_default
21
- });
22
- module.exports = __toCommonJS(tr_TR_exports);
23
- var tr_TR_default = {};
@@ -1,86 +0,0 @@
1
- declare const _default: {
2
- Edit: string;
3
- Delete: string;
4
- Cancel: string;
5
- Submit: string;
6
- Actions: string;
7
- Title: string;
8
- Enable: string;
9
- Chart: string;
10
- ChartV2: string;
11
- Charts: string;
12
- Configure: string;
13
- Duplicate: string;
14
- 'Configure chart': string;
15
- Transform: string;
16
- 'Chart type': string;
17
- 'JSON config': string;
18
- Query: string;
19
- Data: string;
20
- 'Run query': string;
21
- Measures: string;
22
- Dimensions: string;
23
- Filter: string;
24
- Sort: string;
25
- Limit: string;
26
- 'Enable cache': string;
27
- 'TTL (second)': string;
28
- Field: string;
29
- Aggregation: string;
30
- Alias: string;
31
- Format: string;
32
- 'The first 10 records of the query result:': string;
33
- 'Please run query to retrive data.': string;
34
- Type: string;
35
- 'Add field': string;
36
- 'Add chart': string;
37
- xField: string;
38
- yField: string;
39
- seriesField: string;
40
- angleField: string;
41
- colorField: string;
42
- 'Line Chart': string;
43
- 'Area Chart': string;
44
- 'Column Chart': string;
45
- 'Bar Chart': string;
46
- 'Pie Chart': string;
47
- 'Dual Axes Chart': string;
48
- 'Scatter Chart': string;
49
- 'Gauge Chart': string;
50
- Statistic: string;
51
- Currency: string;
52
- Percent: string;
53
- Exponential: string;
54
- Abbreviation: string;
55
- 'Please configure and run query': string;
56
- 'Please configure chart': string;
57
- 'Are you sure to cancel?': string;
58
- 'You changes are not saved. If you click OK, your changes will be lost.': string;
59
- 'Same properties set in the form above will be overwritten by this JSON config.': string;
60
- 'Built-in': string;
61
- 'Config reference: ': string;
62
- Table: string;
63
- Sum: string;
64
- Avg: string;
65
- Count: string;
66
- Min: string;
67
- Max: string;
68
- 'Please select a chart type.': string;
69
- Collection: string;
70
- isStack: string;
71
- isPercent: string;
72
- isGroup: string;
73
- smooth: string;
74
- Collapse: string;
75
- Expand: string;
76
- 'Current filter': string;
77
- 'Add custom field': string;
78
- 'To filter with custom fields, use "Current filter" variables in the chart configuration.': string;
79
- Input: string;
80
- 'Date range': string;
81
- 'Time range': string;
82
- 'Edit field properties': string;
83
- 'Select a source field to use metadata of the field': string;
84
- 'Original field': string;
85
- };
86
- export default _default;
@@ -1,107 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var zh_CN_exports = {};
19
- __export(zh_CN_exports, {
20
- default: () => zh_CN_default
21
- });
22
- module.exports = __toCommonJS(zh_CN_exports);
23
- var zh_CN_default = {
24
- Edit: "\u7F16\u8F91",
25
- Delete: "\u5220\u9664",
26
- Cancel: "\u53D6\u6D88",
27
- Submit: "\u63D0\u4EA4",
28
- Actions: "\u64CD\u4F5C",
29
- Title: "\u540D\u79F0",
30
- Enable: "\u542F\u7528",
31
- Chart: "\u56FE\u8868",
32
- ChartV2: "\u56FE\u8868V2",
33
- Charts: "\u56FE\u8868",
34
- Configure: "\u914D\u7F6E",
35
- Duplicate: "\u590D\u5236",
36
- "Configure chart": "\u914D\u7F6E\u56FE\u8868",
37
- Transform: "\u6570\u636E\u8F6C\u6362",
38
- "Chart type": "\u56FE\u8868\u7C7B\u578B",
39
- "JSON config": "JSON \u914D\u7F6E",
40
- Query: "\u67E5\u8BE2",
41
- Data: "\u6570\u636E",
42
- "Run query": "\u6267\u884C\u67E5\u8BE2",
43
- Measures: "\u5EA6\u91CF",
44
- Dimensions: "\u7EF4\u5EA6",
45
- Filter: "\u8FC7\u6EE4",
46
- Sort: "\u6392\u5E8F",
47
- Limit: "\u7ED3\u679C\u6570\u91CF",
48
- "Enable cache": "\u542F\u7528\u7F13\u5B58",
49
- "TTL (second)": "\u7F13\u5B58\u65F6\u95F4 (\u79D2)",
50
- Field: "\u5B57\u6BB5",
51
- Aggregation: "\u805A\u5408",
52
- Alias: "\u522B\u540D",
53
- Format: "\u683C\u5F0F",
54
- "The first 10 records of the query result:": "\u67E5\u8BE2\u7ED3\u679C\u7684\u524D 10 \u6761\u8BB0\u5F55\uFF1A",
55
- "Please run query to retrive data.": "\u8BF7\u6267\u884C\u67E5\u8BE2\u6765\u83B7\u53D6\u6570\u636E\u3002",
56
- Type: "\u7C7B\u578B",
57
- "Add field": "\u6DFB\u52A0\u5B57\u6BB5",
58
- "Add chart": "\u6DFB\u52A0\u56FE\u8868",
59
- xField: "x\u8F74\u5B57\u6BB5",
60
- yField: "y\u8F74\u5B57\u6BB5",
61
- seriesField: "\u5206\u7C7B\u5B57\u6BB5",
62
- angleField: "\u89D2\u5EA6\u5B57\u6BB5",
63
- colorField: "\u989C\u8272\u5B57\u6BB5",
64
- "Line Chart": "\u6298\u7EBF\u56FE",
65
- "Area Chart": "\u9762\u79EF\u56FE",
66
- "Column Chart": "\u67F1\u72B6\u56FE",
67
- "Bar Chart": "\u6761\u5F62\u56FE",
68
- "Pie Chart": "\u997C\u56FE",
69
- "Dual Axes Chart": "\u53CC\u8F74\u56FE",
70
- "Scatter Chart": "\u6563\u70B9\u56FE",
71
- "Gauge Chart": "\u4EEA\u8868\u76D8",
72
- Statistic: "\u7EDF\u8BA1",
73
- Currency: "\u8D27\u5E01",
74
- Percent: "\u767E\u5206\u6BD4",
75
- Exponential: "\u79D1\u5B66\u8BB0\u6570\u6CD5",
76
- Abbreviation: "\u7F29\u5199",
77
- "Please configure and run query": "\u8BF7\u914D\u7F6E\u5E76\u6267\u884C\u6570\u636E\u67E5\u8BE2",
78
- "Please configure chart": "\u8BF7\u914D\u7F6E\u56FE\u8868",
79
- "Are you sure to cancel?": "\u786E\u5B9A\u8981\u53D6\u6D88\u5417\uFF1F",
80
- "You changes are not saved. If you click OK, your changes will be lost.": "\u60A8\u7684\u66F4\u6539\u5C1A\u672A\u4FDD\u5B58\u3002\u5982\u679C\u60A8\u70B9\u51FB\u201C\u786E\u5B9A\u201D\uFF0C\u60A8\u7684\u66F4\u6539\u5C06\u4E22\u5931\u3002",
81
- "Same properties set in the form above will be overwritten by this JSON config.": "\u4E0A\u9762\u8868\u5355\u4E2D\u8BBE\u7F6E\u7684\u76F8\u540C\u5C5E\u6027\u5C06\u88ABJSON\u914D\u7F6E\u8986\u76D6\u3002",
82
- "Built-in": "\u5185\u7F6E\u56FE\u8868",
83
- "Config reference: ": "\u914D\u7F6E\u53C2\u8003: ",
84
- Table: "\u8868\u683C",
85
- Sum: "\u6C42\u548C",
86
- Avg: "\u5E73\u5747\u503C",
87
- Count: "\u8BA1\u6570",
88
- Min: "\u6700\u5C0F\u503C",
89
- Max: "\u6700\u5927\u503C",
90
- "Please select a chart type.": "\u8BF7\u9009\u62E9\u56FE\u8868\u7C7B\u578B",
91
- Collection: "\u6570\u636E\u8868",
92
- isStack: "\u5806\u53E0",
93
- isPercent: "\u663E\u793A\u4E3A\u767E\u5206\u6BD4",
94
- isGroup: "\u5206\u7EC4",
95
- smooth: "\u5E73\u6ED1\u66F2\u7EBF",
96
- Collapse: "\u6298\u53E0",
97
- Expand: "\u5C55\u5F00",
98
- "Current filter": "\u5F53\u524D\u7B5B\u9009",
99
- "Add custom field": "\u6DFB\u52A0\u81EA\u5B9A\u4E49\u5B57\u6BB5",
100
- 'To filter with custom fields, use "Current filter" variables in the chart configuration.': "\u8981\u901A\u8FC7\u81EA\u5B9A\u4E49\u5B57\u6BB5\u7B5B\u9009\uFF0C\u9700\u8981\u5728\u56FE\u8868\u914D\u7F6E\u4E2D\u4F7F\u7528\u201C\u5F53\u524D\u7B5B\u9009\u201D\u53D8\u91CF\u3002",
101
- Input: "\u8F93\u5165\u6846",
102
- "Date range": "\u65E5\u671F\u8303\u56F4",
103
- "Time range": "\u65F6\u95F4\u8303\u56F4",
104
- "Edit field properties": "\u7F16\u8F91\u5B57\u6BB5\u5C5E\u6027",
105
- "Select a source field to use metadata of the field": "\u9009\u62E9\u6765\u6E90\u5B57\u6BB5\u53EF\u4EE5\u590D\u7528\u5B57\u6BB5\u7684\u5143\u6570\u636E\u914D\u7F6E",
106
- "Original field": "\u539F\u59CB\u5B57\u6BB5"
107
- };