@advt-gpt-chart/package 3.0.18 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Chart/ChartBase/constants.d.ts +19 -4
- package/dist/Chart/ChartBase/index.d.ts +1 -1
- package/dist/Chart/ChartBase/transformed.d.ts +5 -0
- package/dist/Chart/ChartBase/types.d.ts +7 -1
- package/dist/Chart/ChartBase/utils.d.ts +1 -1
- package/dist/Chart/ChartCodeRender/type.d.ts +23 -0
- package/dist/Chart/ChartCodeRender/visChart/ChartStoreContext.d.ts +2 -2
- package/dist/Chart/ChartControllers/Orders/OrdersController.d.ts +1 -1
- package/dist/Chart/ChartControllers/index.d.ts +1 -1
- package/dist/Chart/ChartWrapper/style.d.ts +2 -1
- package/dist/Chart/ChartWrapper/utils.d.ts +7 -0
- package/dist/Chart/DataSource/metricInsight.d.ts +14 -1
- package/dist/Chart/DataSource/types.d.ts +1 -1
- package/dist/Chart/DataSource/useChartDataQuery.d.ts +1 -1
- package/dist/Charts/AgentCharts/AgentChartHeader.d.ts +7 -0
- package/dist/Charts/AgentCharts/AgentChartHeaderStyle.d.ts +9 -0
- package/dist/Charts/AgentCharts/DimensionAttribution/index.d.ts +3 -0
- package/dist/Charts/AgentCharts/DimensionAttribution/types.d.ts +8 -0
- package/dist/Charts/AgentCharts/FactorAttribution/index.d.ts +3 -0
- package/dist/Charts/AgentCharts/FactorAttribution/types.d.ts +8 -0
- package/dist/Charts/AgentCharts/index.d.ts +3 -0
- package/dist/Charts/AgentCharts/types.d.ts +70 -0
- package/dist/Charts/Area/types.d.ts +2 -2
- package/dist/Charts/Bar/types.d.ts +2 -2
- package/dist/Charts/Composite/config.d.ts +22 -0
- package/dist/Charts/Composite/index.d.ts +3 -0
- package/dist/Charts/Composite/types.d.ts +11 -0
- package/dist/Charts/Composite/util.d.ts +18 -0
- package/dist/Charts/Donut/types.d.ts +2 -2
- package/dist/Charts/Funnel/types.d.ts +2 -2
- package/dist/Charts/Gauge/types.d.ts +2 -2
- package/dist/Charts/Heatmap/types.d.ts +3 -3
- package/dist/Charts/Indicator/contants.d.ts +2 -2
- package/dist/Charts/Indicator/styles.d.ts +2 -0
- package/dist/Charts/Indicator/types.d.ts +4 -2
- package/dist/Charts/Line/types.d.ts +2 -2
- package/dist/Charts/Pie/types.d.ts +2 -2
- package/dist/Charts/PivotTable/index.d.ts +3 -0
- package/dist/Charts/PivotTable/theme.d.ts +3 -0
- package/dist/Charts/PivotTable/types.d.ts +22 -0
- package/dist/Charts/Radar/types.d.ts +1 -1
- package/dist/Charts/Rank/types.d.ts +2 -2
- package/dist/Charts/Scatter/types.d.ts +2 -2
- package/dist/Charts/Tabs/index.d.ts +3 -0
- package/dist/Charts/Tabs/styles.d.ts +3 -0
- package/dist/Charts/Tabs/types.d.ts +18 -0
- package/dist/ConfigProvider/hooks/useConfig.d.ts +3 -7
- package/dist/{Chart/ChartControllers/TimeRange → components/CustomTimeRange}/index.d.ts +1 -1
- package/dist/{Chart/ChartControllers/TimeRange → components/CustomTimeRange}/types.d.ts +4 -4
- package/dist/{Chart/ChartControllers/TimeRange → components/CustomTimeRange}/utils.d.ts +2 -2
- package/dist/components/VTabs.d.ts +5 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/export.d.ts +14 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +178499 -182253
- package/dist/index.es.js.gz +0 -0
- package/dist/index.umd.js +2430 -2215
- package/dist/index.umd.js.gz +0 -0
- package/dist/locale/en-US.d.ts +14 -0
- package/dist/locale/zh-CN.d.ts +14 -0
- package/dist/locale/zh-TW.d.ts +14 -0
- package/dist/services/constants.d.ts +5 -1
- package/dist/services/index.d.ts +104 -2
- package/dist/services/types.d.ts +15 -0
- package/dist/types/chart.d.ts +16 -3
- package/dist/types/config.d.ts +1 -0
- package/dist/utils/useTools.d.ts +3 -1
- package/dist/version.d.ts +1 -1
- package/package.json +32 -101
- /package/dist/{Text → Charts/Text}/VisText.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/config.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/custom-icons/index.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/index.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/mini-charts/hooks/getElementFontSize.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/mini-charts/hooks/index.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/mini-charts/hooks/useSvgWrapper.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/mini-charts/index.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/mini-charts/line/SingleLineChart.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/mini-charts/line/index.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/mini-charts/line/scaleLinear.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/mini-charts/line/useLineCompute.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/mini-charts/proportion/getArcPath.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/mini-charts/proportion/index.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/theme.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/types.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/utils/getThemeColor.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/utils/index.d.ts +0 -0
- /package/dist/{Text → Charts/Text}/utils/useAntdDarkAlgorithm.d.ts +0 -0
- /package/dist/{Chart/ChartControllers/TimeRange → components/CustomTimeRange}/AdvancedContent.d.ts +0 -0
- /package/dist/{Chart/ChartControllers/TimeRange → components/CustomTimeRange}/CustomContent.d.ts +0 -0
- /package/dist/{Chart/ChartControllers/TimeRange → components/CustomTimeRange}/TimeRangePopover.d.ts +0 -0
- /package/dist/{Chart/ChartControllers/TimeRange → components/CustomTimeRange}/styles.d.ts +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { BaseChartProps, ChartType, DataItem } from '../../types';
|
|
2
|
+
export type TabLayout = 'tab-content' | 'tab-chart';
|
|
3
|
+
export interface SeriesItem {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
data?: DataItem[];
|
|
7
|
+
chartType?: ChartType;
|
|
8
|
+
chartConfig?: any;
|
|
9
|
+
}
|
|
10
|
+
export interface TabsConfig {
|
|
11
|
+
layout?: TabLayout;
|
|
12
|
+
series?: SeriesItem[];
|
|
13
|
+
theme?: 'light' | 'dark';
|
|
14
|
+
activeTab?: string;
|
|
15
|
+
onTabChange?: (tabKey: string) => void;
|
|
16
|
+
}
|
|
17
|
+
export interface TabsProps extends BaseChartProps, Partial<TabsConfig> {
|
|
18
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AreaConfig } from '../../Charts/Area/types';
|
|
2
2
|
import { BarConfig } from '../../Charts/Bar/types';
|
|
3
|
+
import { CompositeConfig } from '../../Charts/Composite/types';
|
|
3
4
|
import { FunnelConfig } from '../../Charts/Funnel/types';
|
|
4
5
|
import { GaugeConfig } from '../../Charts/Gauge/types';
|
|
5
6
|
import { HeatmapConfig } from '../../Charts/Heatmap/types';
|
|
@@ -16,14 +17,9 @@ export declare function useCommonGlobalConfig(name: Charts): {
|
|
|
16
17
|
theme?: string;
|
|
17
18
|
lang?: string;
|
|
18
19
|
};
|
|
19
|
-
export type ChartConfig = AreaConfig | BarConfig | FunnelConfig | GaugeConfig | HeatmapConfig | LineConfig | PieConfig | RadarConfig | ScatterConfig | TableConfig | IndicatorConfig;
|
|
20
|
+
export type ChartConfig = AreaConfig | BarConfig | FunnelConfig | GaugeConfig | HeatmapConfig | LineConfig | PieConfig | RadarConfig | ScatterConfig | TableConfig | IndicatorConfig | CompositeConfig;
|
|
20
21
|
export declare function useVChartConfig<T1 extends ChartConfig>(name: Charts, defaultConfig: Partial<T1> | ((props: T1) => any), props: Partial<T1>): {
|
|
21
|
-
mergedProps:
|
|
22
|
-
[x: string]: any;
|
|
23
|
-
color?: string[];
|
|
24
|
-
theme?: string;
|
|
25
|
-
lang?: string;
|
|
26
|
-
} & Partial<T1>;
|
|
22
|
+
mergedProps: any;
|
|
27
23
|
options: any;
|
|
28
24
|
};
|
|
29
25
|
export declare function useCommonConfig<T>(name: Charts, props: Partial<T>): {
|
|
@@ -3,5 +3,5 @@ interface Props {
|
|
|
3
3
|
timeRange?: TimeRange;
|
|
4
4
|
onChange: (val: TimeRange) => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const CustomTimeRangeSelect: ({ timeRange, onChange }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { FilterItemType } from '../../Chart/ChartControllers/Filter/types';
|
|
3
|
+
import { OrderItemType } from '../../Chart/ChartControllers/Orders/types';
|
|
4
|
+
import { DataFormat } from '../../Chart/Dataset/types';
|
|
5
|
+
import { TimeGrainType } from '../../utils';
|
|
6
6
|
export type CustomTimeRange = {
|
|
7
7
|
from?: Dayjs;
|
|
8
8
|
to?: Dayjs;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DataSource } from '../../Chart/DataSource/types';
|
|
2
|
+
import { TimeGrainType } from '../../utils';
|
|
3
3
|
import { AdvancedTimeRange, TimeRange } from './types';
|
|
4
4
|
export declare const timeRangeOptions: {
|
|
5
5
|
key: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { CustomTimeRangeSelect } from './CustomTimeRange';
|
|
2
|
+
export { default as ErrorMessage } from './ErrorMessage';
|
|
3
|
+
export { formatOptions } from './FormatOptions';
|
|
4
|
+
export { default as Loading } from './Loading';
|
|
5
|
+
export { VButton } from './VButton';
|
|
6
|
+
export { VCalendar } from './VCalendar';
|
|
7
|
+
export { VSelect } from './VSelect';
|
|
8
|
+
export { VTabs } from './VTabs';
|
|
9
|
+
export { VTimePicker } from './VTimePicker';
|
package/dist/export.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/********** AgentCharts **********/
|
|
3
|
+
import { default as AgentCharts } from './Charts/AgentCharts';
|
|
4
|
+
import type { AgentChartsProps } from './Charts/AgentCharts/types';
|
|
2
5
|
/********** Vcharts chart **********/
|
|
3
6
|
import { default as Area } from './Charts/Area';
|
|
4
7
|
import { AreaProps } from './Charts/Area/types';
|
|
5
8
|
import { default as Bar } from './Charts/Bar';
|
|
6
9
|
import type { BarProps } from './Charts/Bar/types';
|
|
10
|
+
import { default as Composite } from './Charts/Composite';
|
|
11
|
+
import type { CompositeProps } from './Charts/Composite/types';
|
|
7
12
|
import { default as Donut } from './Charts/Donut';
|
|
8
13
|
import type { DonutProps } from './Charts/Donut/types';
|
|
9
14
|
import { default as Funnel } from './Charts/Funnel';
|
|
@@ -19,6 +24,9 @@ import { default as Line } from './Charts/Line';
|
|
|
19
24
|
import type { LineProps } from './Charts/Line/types';
|
|
20
25
|
import { default as Pie } from './Charts/Pie';
|
|
21
26
|
import type { PieProps } from './Charts/Pie/types';
|
|
27
|
+
/********** PivotTable **********/
|
|
28
|
+
import { default as PivotTable } from './Charts/PivotTable';
|
|
29
|
+
import type { PivotTableProps } from './Charts/PivotTable/types';
|
|
22
30
|
import { default as Radar } from './Charts/Radar';
|
|
23
31
|
import type { RadarProps } from './Charts/Radar/types';
|
|
24
32
|
import { default as Rank } from './Charts/Rank';
|
|
@@ -28,8 +36,12 @@ import type { ScatterProps } from './Charts/Scatter/types';
|
|
|
28
36
|
/********** Table **********/
|
|
29
37
|
import { default as Table } from './Charts/Table';
|
|
30
38
|
import type { TableProps } from './Charts/Table/types';
|
|
39
|
+
/********** Tabs **********/
|
|
40
|
+
import { default as Tabs } from './Charts/Tabs';
|
|
41
|
+
import type { TabsProps } from './Charts/Tabs/types';
|
|
31
42
|
/********** NTV **********/
|
|
32
|
-
|
|
33
|
-
export { Area, type AreaProps, Bar, type BarProps, Donut, type DonutProps, Funnel, type FunnelProps, Gauge, type GaugeProps, Heatmap, type HeatmapProps, Indicator, type IndicatorProps, Line, type LineProps, Pie, type PieProps, Radar, type RadarProps, Rank, type RankProps, Scatter, type ScatterProps, Table, type TableProps, };
|
|
43
|
+
import { VisText, type VisTextProps } from './Charts/Text';
|
|
44
|
+
export { AgentCharts, type AgentChartsProps, Area, type AreaProps, Bar, type BarProps, Composite, type CompositeProps, Donut, type DonutProps, Funnel, type FunnelProps, Gauge, type GaugeProps, Heatmap, type HeatmapProps, Indicator, type IndicatorProps, Line, type LineProps, Pie, type PieProps, PivotTable, type PivotTableProps, Radar, type RadarProps, Rank, type RankProps, Scatter, type ScatterProps, Table, type TableProps, Tabs, type TabsProps, VisText, type VisTextProps, };
|
|
34
45
|
export declare const DEFAULT_CHART_COMPONENTS: Record<string, React.FC<any>>;
|
|
35
46
|
export declare const COMMON_CHART_COMPONENTS: Record<string, any>;
|
|
47
|
+
export declare const NTV_CHART_COMPONENTS: Record<string, any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,3 +9,5 @@ export { default as ConfigProvider, type ConfigProviderProps } from './ConfigPro
|
|
|
9
9
|
export { default as GPTVis, type GPTVisProps } from './GPTVis';
|
|
10
10
|
export { default as GPTVisLite, type GPTVisLiteProps, useEventPublish } from './GPTVis/Lite';
|
|
11
11
|
export { default as version } from './version';
|
|
12
|
+
export * from './components/index';
|
|
13
|
+
export { default as service } from './services';
|