Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nocobase/plugin-data-visualization

Package Overview
Dependencies
Maintainers
1
Versions
255
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nocobase/plugin-data-visualization - npm Package Compare versions

Comparing version 0.14.0-alpha.6 to 0.14.0-alpha.7

dist/client/chart/group.d.ts

32

dist/client/chart/chart.d.ts

@@ -5,3 +5,3 @@ import React from 'react';

import { ISchema } from '@formily/react';
import { AnySchemaProperties, ConfigProps } from './configs';
import { AnySchemaProperties, Config } from './configs';
export type RenderProps = {

@@ -22,11 +22,2 @@ data: any[];

schema: ISchema;
infer: (fields: FieldOption[], { measures, dimensions, }: {
measures?: QueryProps['measures'];
dimensions?: QueryProps['dimensions'];
}) => {
xField: FieldOption;
yField: FieldOption;
seriesField: FieldOption;
yFields: FieldOption[];
};
init?: (fields: FieldOption[], query: {

@@ -39,8 +30,3 @@ measures?: QueryProps['measures'];

};
/**
* getProps
* Accept the information that the chart component needs to render,
* process it and return the props of the chart component.
*/
getProps: (props: RenderProps) => any;
render: (props: RenderProps) => React.FC<any>;
getReference?: () => {

@@ -50,7 +36,3 @@ title: string;

};
render: (props: RenderProps) => React.FC<any>;
}
type Config = ((ConfigProps & {
property?: string;
}) | string)[];
export type ChartProps = {

@@ -60,3 +42,3 @@ name: string;

component: React.FC<any>;
config?: Config;
config?: Config[];
};

@@ -67,3 +49,3 @@ export declare class Chart implements ChartType {

component: React.FC<any>;
config: Config;
config: Config[];
configs: Map<string, Function>;

@@ -90,5 +72,9 @@ constructor({ name, title, component, config }: ChartProps);

};
/**
* getProps
* Accept the information that the chart component needs to render,
* process it and return the props of the chart component.
*/
getProps(props: RenderProps): RenderProps;
render({ data, general, advanced, fieldProps }: RenderProps): () => React.FunctionComponentElement<any>;
}
export {};

@@ -10,2 +10,5 @@ import { SchemaProperties } from '@formily/react';

export type ConfigProps = FieldConfigProps | AnySchemaProperties | (() => AnySchemaProperties);
export type Config = (ConfigProps & {
property?: string;
}) | string;
declare const _default: {

@@ -12,0 +15,0 @@ field: ({ name, title, required, defaultValue }: Partial<{

import { Plugin } from '@nocobase/client';
import { ChartLibraryProvider } from './chart/library';
import { ChartGroup } from './chart/group';
declare class DataVisualizationPlugin extends Plugin {
charts: ChartGroup;
load(): Promise<void>;
}
export default DataVisualizationPlugin;
export { ChartLibraryProvider };
export { Chart } from './chart/chart';
export type { ChartType } from './chart/chart';
module.exports = {
"@ant-design/icons": "5.1.4",
"@formily/antd-v5": "1.1.0",
"@nocobase/client": "0.14.0-alpha.6",
"antd": "5.8.6",
"@nocobase/client": "0.14.0-alpha.7",
"react": "18.2.0",
"@formily/react": "2.2.27",
"@formily/shared": "2.2.27",
"@nocobase/cache": "0.14.0-alpha.6",
"@nocobase/server": "0.14.0-alpha.6",
"@nocobase/cache": "0.14.0-alpha.7",
"@nocobase/server": "0.14.0-alpha.7",
"@ant-design/icons": "5.1.4",
"dayjs": "1.11.9",
"@formily/antd-v5": "1.1.0",
"@formily/core": "2.2.27",
"antd": "5.8.6",
"lodash": "4.17.21",

@@ -17,5 +17,5 @@ "react-i18next": "11.18.6",

"@emotion/css": "11.11.2",
"@nocobase/actions": "0.14.0-alpha.6",
"@nocobase/database": "0.14.0-alpha.6",
"@nocobase/utils": "0.14.0-alpha.6"
"@nocobase/actions": "0.14.0-alpha.7",
"@nocobase/database": "0.14.0-alpha.7",
"@nocobase/utils": "0.14.0-alpha.7"
};

@@ -1,1 +0,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-09-22T08:35:25.495Z"}
{"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-10-07T08:28:55.867Z"}

@@ -147,3 +147,3 @@ var __create = Object.create;

const fields = collection.fields;
const underscored = ctx.db.options.underscored;
const underscored = collection.options.underscored;
const models = {};

@@ -150,0 +150,0 @@ const parseField = (selected) => {

@@ -27,2 +27,3 @@ var __defProp = Object.defineProperty;

var import_query = require("./actions/query");
var import_path = require("path");
class DataVisualizationPlugin extends import_server.Plugin {

@@ -42,2 +43,9 @@ cache;

async load() {
this.db.addMigrations({
namespace: "data-visulization",
directory: (0, import_path.resolve)(__dirname, "migrations"),
context: {
plugin: this
}
});
this.cache = (0, import_cache.createCache)({

@@ -44,0 +52,0 @@ ttl: 30,

{
"name": "@nocobase/plugin-data-visualization",
"version": "0.14.0-alpha.6",
"version": "0.14.0-alpha.7",
"displayName": "Data Visualization",

@@ -36,3 +36,3 @@ "displayName.zh-CN": "数据可视化",

},
"gitHead": "7f2858222231c207030b57704a0bb6ebc98e4e45"
"gitHead": "dc958417d27ed0753439bcef192be91a03dfc30f"
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc