@devtable/dashboard 10.7.0 → 10.9.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/dashboard.es.js +5701 -5428
- package/dist/dashboard.umd.js +77 -77
- package/dist/panel/settings/common/css-types.d.ts +10 -0
- package/dist/plugins/viz-components/merico-stats/editors/metrics/index.d.ts +10 -0
- package/dist/plugins/viz-components/merico-stats/editors/metrics/metric.d.ts +11 -0
- package/dist/plugins/viz-components/merico-stats/editors/styles/index.d.ts +8 -0
- package/dist/plugins/viz-components/merico-stats/index.d.ts +2 -0
- package/dist/plugins/viz-components/merico-stats/type.d.ts +24 -0
- package/dist/plugins/viz-components/merico-stats/viz-merico-stats-editor.d.ts +2 -0
- package/dist/plugins/viz-components/merico-stats/viz-merico-stats.d.ts +2 -0
- package/dist/stats.html +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare type TJustifyContent = 'center' | 'left' | 'right' | 'space-between' | 'space-around' | 'space-evenly';
|
|
2
|
+
export declare const JustifyContentOptions: {
|
|
3
|
+
label: string;
|
|
4
|
+
value: TJustifyContent;
|
|
5
|
+
}[];
|
|
6
|
+
export declare type TAlignItems = 'start' | 'center' | 'end' | 'stretch';
|
|
7
|
+
export declare const AlignItemsOptions: {
|
|
8
|
+
label: string;
|
|
9
|
+
value: TAlignItems;
|
|
10
|
+
}[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
2
|
+
import { TMericoStatsConf } from '../../type';
|
|
3
|
+
import { ITemplateVariable } from '~/utils/template';
|
|
4
|
+
interface IProps {
|
|
5
|
+
control: Control<TMericoStatsConf, $TSFixMe>;
|
|
6
|
+
watch: UseFormWatch<TMericoStatsConf>;
|
|
7
|
+
variables: ITemplateVariable[];
|
|
8
|
+
}
|
|
9
|
+
export declare function MetricsField({ control, watch, variables }: IProps): import('./react/jsx-runtime').JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SelectItem } from '@mantine/core';
|
|
2
|
+
import { Control, UseFieldArrayRemove } from 'react-hook-form';
|
|
3
|
+
import { TMericoStatsConf } from '../../type';
|
|
4
|
+
interface IProps {
|
|
5
|
+
control: Control<TMericoStatsConf, $TSFixMe>;
|
|
6
|
+
index: number;
|
|
7
|
+
remove: UseFieldArrayRemove;
|
|
8
|
+
variableOptions: SelectItem[];
|
|
9
|
+
}
|
|
10
|
+
export declare function MetricField({ control, index, remove, variableOptions }: IProps): import('./react/jsx-runtime').JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
2
|
+
import { TMericoStatsConf } from '../../type';
|
|
3
|
+
interface IProps {
|
|
4
|
+
control: Control<TMericoStatsConf, $TSFixMe>;
|
|
5
|
+
watch: UseFormWatch<TMericoStatsConf>;
|
|
6
|
+
}
|
|
7
|
+
export declare function StylesField({ control, watch }: IProps): import('./react/jsx-runtime').JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TAlignItems, TJustifyContent } from '~/panel/settings/common/css-types';
|
|
2
|
+
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
3
|
+
export declare type TMericoStatsMetric = {
|
|
4
|
+
id: string;
|
|
5
|
+
names: {
|
|
6
|
+
value: string;
|
|
7
|
+
basis: string;
|
|
8
|
+
};
|
|
9
|
+
data_keys: {
|
|
10
|
+
value: TDataKey;
|
|
11
|
+
basis: TDataKey;
|
|
12
|
+
};
|
|
13
|
+
formatter: TNumbroFormat;
|
|
14
|
+
};
|
|
15
|
+
export declare type TMericoStatsStyle = {
|
|
16
|
+
justify: TJustifyContent;
|
|
17
|
+
align: TAlignItems;
|
|
18
|
+
};
|
|
19
|
+
export declare type TMericoStatsConf = {
|
|
20
|
+
styles: TMericoStatsStyle;
|
|
21
|
+
metrics: TMericoStatsMetric[];
|
|
22
|
+
};
|
|
23
|
+
export declare const DEFAULT_CONFIG: TMericoStatsConf;
|
|
24
|
+
export declare function getNewMetric(): TMericoStatsMetric;
|