@databrainhq/plugin 0.9.15 → 0.9.17
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/components/ChartModal/ChartModalOptions.d.ts +2 -1
- package/dist/components/Charts/TimeSeriesChart.d.ts +4 -0
- package/dist/components/MetricChart/MetricChart.d.ts +6 -2
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +1 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartConfigure/index.d.ts +5 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartSettings/index.d.ts +4 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +4 -2
- package/dist/components/TimeSeriesSettings/index.d.ts +4 -0
- package/dist/consts/app.d.ts +1 -0
- package/dist/helpers/timeseries.d.ts +62 -0
- package/dist/hooks/useExternalMetric.d.ts +2 -0
- package/dist/index.es.js +1090 -541
- package/dist/index.umd.js +127 -127
- package/dist/style.css +1 -1
- package/dist/types/metricCreate.d.ts +34 -0
- package/package.json +1 -1
|
@@ -6,6 +6,24 @@ declare type ColumnData = {
|
|
|
6
6
|
datatype: string;
|
|
7
7
|
as: string;
|
|
8
8
|
};
|
|
9
|
+
export declare type TimeSeriesGroupType = 'yearly' | 'monthly' | 'weekly' | 'daily';
|
|
10
|
+
export declare type TimeSeriesType = 'bar' | 'line' | 'area';
|
|
11
|
+
export declare type TimeSeriesSettingsType = {
|
|
12
|
+
seriesType: {
|
|
13
|
+
type: TimeSeriesType;
|
|
14
|
+
column: string;
|
|
15
|
+
}[];
|
|
16
|
+
groupBySettings: {
|
|
17
|
+
isDynamic: boolean;
|
|
18
|
+
options: string[];
|
|
19
|
+
value: TimeSeriesGroupType;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare type TimeSeriesSettingsProps = {
|
|
23
|
+
settings: TimeSeriesSettingsType;
|
|
24
|
+
onChange: React.Dispatch<React.SetStateAction<TimeSeriesSettingsType>>;
|
|
25
|
+
yAxisList: string[];
|
|
26
|
+
};
|
|
9
27
|
export declare type EmbeddedMetricCreationProps = {
|
|
10
28
|
clientId: string;
|
|
11
29
|
companyId: string;
|
|
@@ -117,6 +135,8 @@ export declare type MetricOutputProps = {
|
|
|
117
135
|
tabContent: JSX.Element;
|
|
118
136
|
}[];
|
|
119
137
|
chartColors?: string[];
|
|
138
|
+
timeSeriesSettings: TimeSeriesSettingsType;
|
|
139
|
+
setTimeSeriesSettings: React.Dispatch<React.SetStateAction<TimeSeriesSettingsType>>;
|
|
120
140
|
};
|
|
121
141
|
export declare type CompanyIntegration = {
|
|
122
142
|
id: string;
|
|
@@ -143,4 +163,18 @@ export declare type DrillDownSetting = {
|
|
|
143
163
|
selectedDimensions: string[];
|
|
144
164
|
isEnableGroupBy: boolean;
|
|
145
165
|
};
|
|
166
|
+
export declare type TimeSeriesChartProps = {
|
|
167
|
+
dataArray: Record<string, any>[];
|
|
168
|
+
timeStampKey: string;
|
|
169
|
+
valuekeys: string[];
|
|
170
|
+
type: TimeSeriesType;
|
|
171
|
+
groupBy: TimeSeriesGroupType;
|
|
172
|
+
margins: Record<string, number>;
|
|
173
|
+
legendSettings: LegendSettings;
|
|
174
|
+
labelSettings: LabelSettings;
|
|
175
|
+
axisSettings: AxisSettings;
|
|
176
|
+
colors?: string[];
|
|
177
|
+
customSettings: CustomSettings;
|
|
178
|
+
backGroundColor: BackgroundSettings;
|
|
179
|
+
};
|
|
146
180
|
export {};
|