@milaboratories/graph-maker 1.1.36 → 1.1.38
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/GraphMaker/components/DragAndDrop/DnDRangeChip.vue.d.ts +2 -7
- package/dist/GraphMaker/components/DragAndDrop/DndDoubleChip.vue.d.ts +2 -7
- package/dist/GraphMaker/components/SettingsTabs/index.vue.d.ts +3 -2
- package/dist/GraphMaker/constant.d.ts +10 -2
- package/dist/GraphMaker/forms/StatisticsForm/ScatterplotStatisticsForm.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/StatisticsForm/index.vue.d.ts +2 -0
- package/dist/GraphMaker/store.d.ts +18 -0
- package/dist/GraphMaker/utils/getLayersDataFromForms.d.ts +2 -2
- package/dist/graph-maker.js +17674 -17611
- package/dist/graph-maker.umd.cjs +964 -973
- package/dist/style.css +1 -1
- package/package.json +4 -4
- /package/dist/GraphMaker/forms/{StatisticsForm.vue.d.ts → StatisticsForm/DiscreteStatisticsForm.vue.d.ts} +0 -0
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import { ChipInfo } from './types.ts';
|
|
2
|
-
import { ValueType } from '@platforma-sdk/model';
|
|
3
2
|
|
|
4
3
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
-
|
|
6
|
-
title: string;
|
|
7
|
-
type: ValueType;
|
|
4
|
+
info: ChipInfo;
|
|
8
5
|
modelValue: unknown;
|
|
9
6
|
error: boolean;
|
|
10
7
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
8
|
"close-chip": (id: string) => void;
|
|
12
9
|
"update:modelValue": (id: unknown) => void;
|
|
13
10
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
-
|
|
15
|
-
title: string;
|
|
16
|
-
type: ValueType;
|
|
11
|
+
info: ChipInfo;
|
|
17
12
|
modelValue: unknown;
|
|
18
13
|
error: boolean;
|
|
19
14
|
}>>> & Readonly<{
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { ChipInfo } from './types.ts';
|
|
2
|
-
import { ValueType } from '@platforma-sdk/model';
|
|
3
2
|
|
|
4
3
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
-
|
|
6
|
-
title: string;
|
|
7
|
-
type: ValueType;
|
|
4
|
+
info: ChipInfo;
|
|
8
5
|
modelValue: unknown;
|
|
9
6
|
error: boolean;
|
|
10
7
|
sortable?: boolean;
|
|
@@ -12,9 +9,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
12
9
|
"close-chip": (id: string) => void;
|
|
13
10
|
"update:modelValue": (id: unknown) => void;
|
|
14
11
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
15
|
-
|
|
16
|
-
title: string;
|
|
17
|
-
type: ValueType;
|
|
12
|
+
info: ChipInfo;
|
|
18
13
|
modelValue: unknown;
|
|
19
14
|
error: boolean;
|
|
20
15
|
sortable?: boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FormKey } from '../../forms';
|
|
2
|
+
import { ChartType } from '@milaboratories/pf-plots';
|
|
2
3
|
|
|
3
4
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
-
chartType:
|
|
5
|
+
chartType: ChartType;
|
|
5
6
|
chartEmpty: boolean;
|
|
6
7
|
allowDeleting?: boolean;
|
|
7
8
|
modelValue: FormKey | null;
|
|
@@ -10,7 +11,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
10
11
|
export: (...args: any[]) => void;
|
|
11
12
|
"update:modelValue": (...args: any[]) => void;
|
|
12
13
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
-
chartType:
|
|
14
|
+
chartType: ChartType;
|
|
14
15
|
chartEmpty: boolean;
|
|
15
16
|
allowDeleting?: boolean;
|
|
16
17
|
modelValue: FormKey | null;
|
|
@@ -19,7 +19,7 @@ export declare const DISCRETE_TEMPLATES_MAP: Record<DiscreteLayersTemplate, Disc
|
|
|
19
19
|
export declare const SCATTERPLOT_TEMPLATES_MAP: Record<ScatterplotLayersTemplate, ScatterplotLayer[]>;
|
|
20
20
|
export declare const HEATMAP_TEMPLATES_MAP: Record<HeatmapLayerTemplate, HeatmapLayer[]>;
|
|
21
21
|
export declare const LAYER_TITLES: Record<Layer, string>;
|
|
22
|
-
export type
|
|
22
|
+
export type DiscreteStatisticsState = {
|
|
23
23
|
overall: {
|
|
24
24
|
data: {
|
|
25
25
|
testMethod: null | string;
|
|
@@ -53,7 +53,15 @@ export type StatisticsState = {
|
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
export
|
|
56
|
+
export type ScatterplotStatisticsState = {
|
|
57
|
+
trend: {
|
|
58
|
+
on: boolean;
|
|
59
|
+
trim: boolean;
|
|
60
|
+
showLegend: boolean;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export type StatisticsState = DiscreteStatisticsState | ScatterplotStatisticsState;
|
|
64
|
+
export declare function getInitialStatisticsState(chartType: ChartType, initialData?: DeepPartial<StatisticsState>): StatisticsState;
|
|
57
65
|
export type NumberRange = {
|
|
58
66
|
min: number;
|
|
59
67
|
max: number;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -280,6 +280,12 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
|
|
|
280
280
|
testMethod: boolean;
|
|
281
281
|
};
|
|
282
282
|
};
|
|
283
|
+
} | {
|
|
284
|
+
trend: {
|
|
285
|
+
on: boolean;
|
|
286
|
+
trim: boolean;
|
|
287
|
+
showLegend: boolean;
|
|
288
|
+
};
|
|
283
289
|
};
|
|
284
290
|
dataBindAes: Record<string, import('./dataBindAes').AestheticMappingCategorical>;
|
|
285
291
|
chartScale: number;
|
|
@@ -568,6 +574,12 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
|
|
|
568
574
|
testMethod: boolean;
|
|
569
575
|
};
|
|
570
576
|
};
|
|
577
|
+
} | {
|
|
578
|
+
trend: {
|
|
579
|
+
on: boolean;
|
|
580
|
+
trim: boolean;
|
|
581
|
+
showLegend: boolean;
|
|
582
|
+
};
|
|
571
583
|
};
|
|
572
584
|
dataBindAes: Record<string, import('./dataBindAes').AestheticMappingCategorical>;
|
|
573
585
|
chartScale: number;
|
|
@@ -884,6 +896,12 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
|
|
|
884
896
|
testMethod: boolean;
|
|
885
897
|
};
|
|
886
898
|
};
|
|
899
|
+
} | {
|
|
900
|
+
trend: {
|
|
901
|
+
on: boolean;
|
|
902
|
+
trim: boolean;
|
|
903
|
+
showLegend: boolean;
|
|
904
|
+
};
|
|
887
905
|
};
|
|
888
906
|
dataBindAes: Record<string, import('./dataBindAes').AestheticMappingCategorical>;
|
|
889
907
|
chartScale: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { getDefaultLayersSettings, NumberRange, LayersSettings, MappingLink,
|
|
1
|
+
import { getDefaultLayersSettings, NumberRange, LayersSettings, MappingLink, DiscreteStatisticsState, ColumnNameSchema, StatisticsState } from '../constant.ts';
|
|
2
2
|
import { Layer, LayersTemplate } from '../types.ts';
|
|
3
3
|
import { ChartType, InputState, PlotDataAndSettings } from '@milaboratories/pf-plots';
|
|
4
4
|
import { DotShape, LineType } from '../components/AesSettings/types.ts';
|
|
5
5
|
import { ScatterplotSettings } from '@milaboratories/miplots4';
|
|
6
6
|
|
|
7
|
-
export declare function getStatLayers(statisticsSettings:
|
|
7
|
+
export declare function getStatLayers(statisticsSettings: DiscreteStatisticsState): ChartLayerSettings[];
|
|
8
8
|
export declare function getScatterplotLayersSettings(layers: Layer[], layerSettings: ReturnType<typeof getDefaultLayersSettings>, dataByColumns: PlotDataAndSettings['dataByColumns'], grouping: ColumnNameSchema[]): ScatterplotSettings['layers'];
|
|
9
9
|
export type ChartLayerSettings = {
|
|
10
10
|
[key: string]: string | boolean | null | Record<string, string | DotShape | NumberRange | {
|