@devtable/dashboard 10.10.0 → 10.11.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/components/plugins/viz-components/merico-stats/editors/metrics/index.d.ts +2 -2
- package/dist/components/plugins/viz-components/merico-stats/editors/metrics/metric.d.ts +3 -2
- package/dist/components/plugins/viz-components/merico-stats/editors/metrics/postfix-field.d.ts +8 -0
- package/dist/components/plugins/viz-components/merico-stats/migrators/index.d.ts +1 -0
- package/dist/components/plugins/viz-components/merico-stats/migrators/v2.d.ts +2 -0
- package/dist/components/plugins/viz-components/merico-stats/render/index.d.ts +4 -0
- package/dist/components/plugins/viz-components/merico-stats/render/metric.d.ts +9 -0
- package/dist/components/plugins/viz-components/merico-stats/type.d.ts +5 -0
- package/dist/dashboard-editor/model/filters/index.d.ts +28 -23
- package/dist/dashboard.es.js +3353 -3249
- package/dist/dashboard.umd.js +60 -60
- package/dist/model/meta-model/dashboard/content/filter/widgets/multi-select.d.ts +6 -6
- package/dist/model/meta-model/dashboard/content/filter/widgets/select-base.d.ts +6 -1
- package/dist/model/meta-model/dashboard/content/filter/widgets/select.d.ts +6 -3
- package/dist/model/meta-model/dashboard/content/filter/widgets/tree-select.d.ts +3 -3
- package/dist/model/render-model/dashboard/content/filters/filters.d.ts +25 -24
- package/dist/stats.html +1 -1
- package/package.json +1 -1
- package/dist/components/plugins/viz-components/merico-stats/viz-merico-stats.d.ts +0 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Control, UseFormWatch } from 'react-hook-form';
|
|
2
|
-
import { TMericoStatsConf } from '../../type';
|
|
3
2
|
import { ITemplateVariable } from '~/utils/template';
|
|
3
|
+
import { TMericoStatsConf } from '../../type';
|
|
4
4
|
interface IProps {
|
|
5
5
|
control: Control<TMericoStatsConf, $TSFixMe>;
|
|
6
6
|
watch: UseFormWatch<TMericoStatsConf>;
|
|
7
7
|
variables: ITemplateVariable[];
|
|
8
8
|
}
|
|
9
|
-
export declare
|
|
9
|
+
export declare const MetricsField: ({ control, watch, variables }: IProps) => import('./react/jsx-runtime').JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { SelectItem } from '@mantine/core';
|
|
2
|
-
import { Control, UseFieldArrayRemove } from 'react-hook-form';
|
|
2
|
+
import { Control, UseFieldArrayRemove, UseFormWatch } from 'react-hook-form';
|
|
3
3
|
import { TMericoStatsConf } from '../../type';
|
|
4
4
|
interface IProps {
|
|
5
5
|
control: Control<TMericoStatsConf, $TSFixMe>;
|
|
6
6
|
index: number;
|
|
7
7
|
remove: UseFieldArrayRemove;
|
|
8
8
|
variableOptions: SelectItem[];
|
|
9
|
+
watch: UseFormWatch<TMericoStatsConf>;
|
|
9
10
|
}
|
|
10
|
-
export declare function MetricField({ control, index, remove, variableOptions }: IProps): import('./react/jsx-runtime').JSX.Element;
|
|
11
|
+
export declare function MetricField({ control, index, remove, watch, variableOptions }: IProps): import('./react/jsx-runtime').JSX.Element;
|
|
11
12
|
export {};
|
package/dist/components/plugins/viz-components/merico-stats/editors/metrics/postfix-field.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TMetricPostfix } from '../../type';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
value: TMetricPostfix;
|
|
5
|
+
onChange: (v: TMetricPostfix) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const PostfixField: import('./react').MemoExoticComponent<import('./react').ForwardRefExoticComponent<Omit<Props & import('./react').RefAttributes<unknown>, "ref"> & import('./react').RefAttributes<unknown>>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './v2';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TMericoStatsMetric } from '../type';
|
|
2
|
+
declare type Props = {
|
|
3
|
+
metric: TMericoStatsMetric;
|
|
4
|
+
variableValueMap: Record<string, string | number>;
|
|
5
|
+
};
|
|
6
|
+
export declare const VizMericoStatsMetric: (({ metric, variableValueMap }: Props) => import('./react/jsx-runtime').JSX.Element) & {
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { TAlignItems, TJustifyContent } from '~/components/panel/settings/common/css-types';
|
|
2
2
|
import { TNumbroFormat } from '~/components/panel/settings/common/numbro-format-selector';
|
|
3
|
+
export declare type TMetricPostfix = {
|
|
4
|
+
type: 'filter-option-label' | 'text';
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
3
7
|
export declare type TMericoStatsMetric = {
|
|
4
8
|
id: string;
|
|
5
9
|
names: {
|
|
@@ -11,6 +15,7 @@ export declare type TMericoStatsMetric = {
|
|
|
11
15
|
basis: TDataKey;
|
|
12
16
|
};
|
|
13
17
|
formatter: TNumbroFormat;
|
|
18
|
+
postfix: TMetricPostfix;
|
|
14
19
|
};
|
|
15
20
|
export declare type TMericoStatsStyle = {
|
|
16
21
|
justify: TJustifyContent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
2
|
import { FilterMetaInstance } from '~/model';
|
|
3
|
-
import { AnyObject } from '~/types';
|
|
3
|
+
import { AnyObject, DashboardFilterType } from '~/types';
|
|
4
4
|
export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
5
5
|
current: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
6
6
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -9,7 +9,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
9
9
|
order: import("mobx-state-tree").ISimpleType<number>;
|
|
10
10
|
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
11
11
|
auto_submit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
12
|
-
type: import("mobx-state-tree").ISimpleType<
|
|
12
|
+
type: import("mobx-state-tree").ISimpleType<DashboardFilterType>;
|
|
13
13
|
config: import("mobx-state-tree").ITypeUnion<any, import("mobx-state-tree").ModelSnapshotType<{
|
|
14
14
|
_name: import("mobx-state-tree").ISimpleType<"select">;
|
|
15
15
|
default_value: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -78,7 +78,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
78
78
|
readonly json: {
|
|
79
79
|
id: string;
|
|
80
80
|
key: string;
|
|
81
|
-
type:
|
|
81
|
+
type: DashboardFilterType;
|
|
82
82
|
label: string;
|
|
83
83
|
order: number;
|
|
84
84
|
config: any;
|
|
@@ -91,7 +91,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
91
91
|
setKey(key: string): void;
|
|
92
92
|
setLabel(label: string): void;
|
|
93
93
|
setOrder(order: number): void;
|
|
94
|
-
setType(type:
|
|
94
|
+
setType(type: DashboardFilterType): void;
|
|
95
95
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
96
96
|
setAutoSubmit(v: boolean): void;
|
|
97
97
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
@@ -102,7 +102,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
102
102
|
readonly json: {
|
|
103
103
|
id: string;
|
|
104
104
|
key: string;
|
|
105
|
-
type:
|
|
105
|
+
type: DashboardFilterType;
|
|
106
106
|
label: string;
|
|
107
107
|
order: number;
|
|
108
108
|
config: any;
|
|
@@ -117,7 +117,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
117
117
|
order: number;
|
|
118
118
|
visibleInViewsIDs: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>>;
|
|
119
119
|
auto_submit: boolean;
|
|
120
|
-
type:
|
|
120
|
+
type: DashboardFilterType;
|
|
121
121
|
config: any;
|
|
122
122
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
123
123
|
readonly plainDefaultValue: any;
|
|
@@ -127,7 +127,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
127
127
|
readonly json: {
|
|
128
128
|
id: string;
|
|
129
129
|
key: string;
|
|
130
|
-
type:
|
|
130
|
+
type: DashboardFilterType;
|
|
131
131
|
label: string;
|
|
132
132
|
order: number;
|
|
133
133
|
config: any;
|
|
@@ -140,7 +140,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
140
140
|
setKey(key: string): void;
|
|
141
141
|
setLabel(label: string): void;
|
|
142
142
|
setOrder(order: number): void;
|
|
143
|
-
setType(type:
|
|
143
|
+
setType(type: DashboardFilterType): void;
|
|
144
144
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
145
145
|
setAutoSubmit(v: boolean): void;
|
|
146
146
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -150,7 +150,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
150
150
|
order: import("mobx-state-tree").ISimpleType<number>;
|
|
151
151
|
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
152
152
|
auto_submit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
153
|
-
type: import("mobx-state-tree").ISimpleType<
|
|
153
|
+
type: import("mobx-state-tree").ISimpleType<DashboardFilterType>;
|
|
154
154
|
config: import("mobx-state-tree").ITypeUnion<any, import("mobx-state-tree").ModelSnapshotType<{
|
|
155
155
|
_name: import("mobx-state-tree").ISimpleType<"select">;
|
|
156
156
|
default_value: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -219,7 +219,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
219
219
|
readonly json: {
|
|
220
220
|
id: string;
|
|
221
221
|
key: string;
|
|
222
|
-
type:
|
|
222
|
+
type: DashboardFilterType;
|
|
223
223
|
label: string;
|
|
224
224
|
order: number;
|
|
225
225
|
config: any;
|
|
@@ -232,7 +232,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
232
232
|
setKey(key: string): void;
|
|
233
233
|
setLabel(label: string): void;
|
|
234
234
|
setOrder(order: number): void;
|
|
235
|
-
setType(type:
|
|
235
|
+
setType(type: DashboardFilterType): void;
|
|
236
236
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
237
237
|
setAutoSubmit(v: boolean): void;
|
|
238
238
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
@@ -243,7 +243,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
243
243
|
order: number;
|
|
244
244
|
visibleInViewsIDs: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>>;
|
|
245
245
|
auto_submit: boolean;
|
|
246
|
-
type:
|
|
246
|
+
type: DashboardFilterType;
|
|
247
247
|
config: any;
|
|
248
248
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
249
249
|
readonly plainDefaultValue: any;
|
|
@@ -253,7 +253,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
253
253
|
readonly json: {
|
|
254
254
|
id: string;
|
|
255
255
|
key: string;
|
|
256
|
-
type:
|
|
256
|
+
type: DashboardFilterType;
|
|
257
257
|
label: string;
|
|
258
258
|
order: number;
|
|
259
259
|
config: any;
|
|
@@ -266,7 +266,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
266
266
|
setKey(key: string): void;
|
|
267
267
|
setLabel(label: string): void;
|
|
268
268
|
setOrder(order: number): void;
|
|
269
|
-
setType(type:
|
|
269
|
+
setType(type: DashboardFilterType): void;
|
|
270
270
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
271
271
|
setAutoSubmit(v: boolean): void;
|
|
272
272
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -276,7 +276,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
276
276
|
order: import("mobx-state-tree").ISimpleType<number>;
|
|
277
277
|
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
278
278
|
auto_submit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
279
|
-
type: import("mobx-state-tree").ISimpleType<
|
|
279
|
+
type: import("mobx-state-tree").ISimpleType<DashboardFilterType>;
|
|
280
280
|
config: import("mobx-state-tree").ITypeUnion<any, import("mobx-state-tree").ModelSnapshotType<{
|
|
281
281
|
_name: import("mobx-state-tree").ISimpleType<"select">;
|
|
282
282
|
default_value: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -345,7 +345,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
345
345
|
readonly json: {
|
|
346
346
|
id: string;
|
|
347
347
|
key: string;
|
|
348
|
-
type:
|
|
348
|
+
type: DashboardFilterType;
|
|
349
349
|
label: string;
|
|
350
350
|
order: number;
|
|
351
351
|
config: any;
|
|
@@ -358,7 +358,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
358
358
|
setKey(key: string): void;
|
|
359
359
|
setLabel(label: string): void;
|
|
360
360
|
setOrder(order: number): void;
|
|
361
|
-
setType(type:
|
|
361
|
+
setType(type: DashboardFilterType): void;
|
|
362
362
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
363
363
|
setAutoSubmit(v: boolean): void;
|
|
364
364
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
@@ -370,7 +370,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
370
370
|
order: number;
|
|
371
371
|
visibleInViewsIDs: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>>;
|
|
372
372
|
auto_submit: boolean;
|
|
373
|
-
type:
|
|
373
|
+
type: DashboardFilterType;
|
|
374
374
|
config: any;
|
|
375
375
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
376
376
|
readonly plainDefaultValue: any;
|
|
@@ -380,7 +380,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
380
380
|
readonly json: {
|
|
381
381
|
id: string;
|
|
382
382
|
key: string;
|
|
383
|
-
type:
|
|
383
|
+
type: DashboardFilterType;
|
|
384
384
|
label: string;
|
|
385
385
|
order: number;
|
|
386
386
|
config: any;
|
|
@@ -393,7 +393,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
393
393
|
setKey(key: string): void;
|
|
394
394
|
setLabel(label: string): void;
|
|
395
395
|
setOrder(order: number): void;
|
|
396
|
-
setType(type:
|
|
396
|
+
setType(type: DashboardFilterType): void;
|
|
397
397
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
398
398
|
setAutoSubmit(v: boolean): void;
|
|
399
399
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -403,7 +403,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
403
403
|
order: import("mobx-state-tree").ISimpleType<number>;
|
|
404
404
|
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
405
405
|
auto_submit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
406
|
-
type: import("mobx-state-tree").ISimpleType<
|
|
406
|
+
type: import("mobx-state-tree").ISimpleType<DashboardFilterType>;
|
|
407
407
|
config: import("mobx-state-tree").ITypeUnion<any, import("mobx-state-tree").ModelSnapshotType<{
|
|
408
408
|
_name: import("mobx-state-tree").ISimpleType<"select">;
|
|
409
409
|
default_value: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -472,7 +472,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
472
472
|
readonly json: {
|
|
473
473
|
id: string;
|
|
474
474
|
key: string;
|
|
475
|
-
type:
|
|
475
|
+
type: DashboardFilterType;
|
|
476
476
|
label: string;
|
|
477
477
|
order: number;
|
|
478
478
|
config: any;
|
|
@@ -485,12 +485,13 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
485
485
|
setKey(key: string): void;
|
|
486
486
|
setLabel(label: string): void;
|
|
487
487
|
setOrder(order: number): void;
|
|
488
|
-
setType(type:
|
|
488
|
+
setType(type: DashboardFilterType): void;
|
|
489
489
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
490
490
|
setAutoSubmit(v: boolean): void;
|
|
491
491
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
492
492
|
readonly firstFilterValueKey: string;
|
|
493
493
|
readonly keyLabelMap: Record<string, string>;
|
|
494
|
+
getSelectOption(id: string): any;
|
|
494
495
|
} & {
|
|
495
496
|
setValues(values: Record<string, any>): void;
|
|
496
497
|
setValueByKey(key: string, value: any): void;
|
|
@@ -501,6 +502,10 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
501
502
|
readonly value: string;
|
|
502
503
|
readonly _type: "filter";
|
|
503
504
|
}[];
|
|
505
|
+
readonly selects: {
|
|
506
|
+
readonly label: string;
|
|
507
|
+
readonly value: string;
|
|
508
|
+
}[];
|
|
504
509
|
readonly keyLabelOptions: {
|
|
505
510
|
label: string;
|
|
506
511
|
value: string;
|