@milaboratories/graph-maker 1.1.82 → 1.1.84

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.
@@ -1,5 +1,7 @@
1
1
  declare function __VLS_template(): {
2
- dataVar?(_: {}): any;
2
+ dataInputs?(_: {}): any;
3
+ mandatoryOptions?(_: {}): any;
4
+ metadataOptions?(_: {}): any;
3
5
  chartVar?(_: {}): any;
4
6
  };
5
7
  declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,46 @@
1
+ import { ChipInfo } from '../../../components/DragAndDrop/types';
2
+ import { AxisData, ColumnData } from '@milaboratories/pf-plots';
3
+
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
+ options: {
6
+ id: string;
7
+ info: AxisData | ColumnData;
8
+ }[];
9
+ chipInfo: Record<string, ChipInfo>;
10
+ title?: string;
11
+ }>, {
12
+ title: string;
13
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ "dragged-id-update": (...args: any[]) => void;
15
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
16
+ options: {
17
+ id: string;
18
+ info: AxisData | ColumnData;
19
+ }[];
20
+ chipInfo: Record<string, ChipInfo>;
21
+ title?: string;
22
+ }>, {
23
+ title: string;
24
+ }>>> & Readonly<{
25
+ "onDragged-id-update"?: ((...args: any[]) => any) | undefined;
26
+ }>, {
27
+ title: string;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
29
+ export default _default;
30
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
+ type __VLS_TypePropsToRuntimeProps<T> = {
32
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
33
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
34
+ } : {
35
+ type: import('vue').PropType<T[K]>;
36
+ required: true;
37
+ };
38
+ };
39
+ type __VLS_WithDefaults<P, D> = {
40
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
41
+ default: D[K];
42
+ }> : P[K];
43
+ };
44
+ type __VLS_Prettify<T> = {
45
+ [K in keyof T]: T[K];
46
+ } & {};
@@ -0,0 +1,46 @@
1
+ import { ChipInfo } from '../../../components/DragAndDrop/types';
2
+ import { AxisData, ColumnData } from '@milaboratories/pf-plots';
3
+
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
+ options: {
6
+ id: string;
7
+ info: AxisData | ColumnData;
8
+ }[];
9
+ chipInfo: Record<string, ChipInfo>;
10
+ title?: string;
11
+ }>, {
12
+ title: string;
13
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ "dragged-id-update": (...args: any[]) => void;
15
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
16
+ options: {
17
+ id: string;
18
+ info: AxisData | ColumnData;
19
+ }[];
20
+ chipInfo: Record<string, ChipInfo>;
21
+ title?: string;
22
+ }>, {
23
+ title: string;
24
+ }>>> & Readonly<{
25
+ "onDragged-id-update"?: ((...args: any[]) => any) | undefined;
26
+ }>, {
27
+ title: string;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
29
+ export default _default;
30
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
+ type __VLS_TypePropsToRuntimeProps<T> = {
32
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
33
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
34
+ } : {
35
+ type: import('vue').PropType<T[K]>;
36
+ required: true;
37
+ };
38
+ };
39
+ type __VLS_WithDefaults<P, D> = {
40
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
41
+ default: D[K];
42
+ }> : P[K];
43
+ };
44
+ type __VLS_Prettify<T> = {
45
+ [K in keyof T]: T[K];
46
+ } & {};
@@ -0,0 +1,21 @@
1
+ import { Ref } from 'vue';
2
+ import { InputState, ChartType, InputNamesByChartType } from '@milaboratories/pf-plots';
3
+ import { BasketProps, ChipInfo } from '../../components/DragAndDrop/types.ts';
4
+ import { Store } from '../../store';
5
+
6
+ export declare function useBaskets<T extends InputState, BasketIds extends keyof T['components'] & InputNamesByChartType[ChartType], DataIds extends keyof T['components'] & InputNamesByChartType[ChartType]>(store: Store, dataKeys: DataIds[], filterBasketKeys: BasketIds[], simpleBasketKeys: BasketIds[], BASKETS: BasketIds[], BASKET_LABELS: Record<BasketIds, string>): {
7
+ draggedId: Ref<string | null, string | null>;
8
+ cleanDraggedId: () => void;
9
+ basketsData: import('vue').ComputedRef<BasketProps[]>;
10
+ freeMetaOptions: import('vue').ComputedRef<{
11
+ id: string;
12
+ info: import('@milaboratories/pf-plots').ColumnData | import('@milaboratories/pf-plots').AxisData;
13
+ }[]>;
14
+ freeMandatoryOptions: import('vue').ComputedRef<{
15
+ id: string;
16
+ info: import('@milaboratories/pf-plots').ColumnData | import('@milaboratories/pf-plots').AxisData;
17
+ }[]>;
18
+ chipInfo: import('vue').ComputedRef<Record<string, ChipInfo>>;
19
+ dataStateValues: [Record<DataIds, Ref<string | undefined, string | undefined>>] extends [Ref<any, any>] ? import('@vue/shared').IfAny<Ref<any, any> & Record<DataIds, Ref<string | undefined, string | undefined>>, Ref<Ref<any, any> & Record<DataIds, Ref<string | undefined, string | undefined>>, Ref<any, any> & Record<DataIds, Ref<string | undefined, string | undefined>>>, Ref<any, any> & Record<DataIds, Ref<string | undefined, string | undefined>>> : Ref<import('vue').UnwrapRef<Record<DataIds, Ref<string | undefined, string | undefined>>>, Record<DataIds, Ref<string | undefined, string | undefined>> | import('vue').UnwrapRef<Record<DataIds, Ref<string | undefined, string | undefined>>>>;
20
+ dataOptions: import('vue').ComputedRef<import('./utils.ts').AllStateOptions<InputState>>;
21
+ };
@@ -320,6 +320,7 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
320
320
  };
321
321
  dataBindAes: import('./dataBindAes').AestheticMappingState;
322
322
  chartScale: number;
323
+ lassoMode: boolean;
323
324
  currentTab: import('./forms').FormKey | null;
324
325
  dendroInfoByClick: {
325
326
  x: number;
@@ -645,6 +646,7 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
645
646
  };
646
647
  dataBindAes: import('./dataBindAes').AestheticMappingState;
647
648
  chartScale: number;
649
+ lassoMode: boolean;
648
650
  currentTab: import('./forms').FormKey | null;
649
651
  dendroInfoByClick: {
650
652
  x: number;
@@ -1000,6 +1002,7 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
1000
1002
  };
1001
1003
  dataBindAes: import('./dataBindAes').AestheticMappingState;
1002
1004
  chartScale: number;
1005
+ lassoMode: boolean;
1003
1006
  currentTab: import('./forms').FormKey | null;
1004
1007
  dendroInfoByClick: {
1005
1008
  x: number;
@@ -71,6 +71,7 @@ export type ReactiveState = {
71
71
  statisticsSettings: StatisticsState;
72
72
  dataBindAes: AestheticMappingState;
73
73
  chartScale: number;
74
+ lassoMode: boolean;
74
75
  currentTab: FormKey | null;
75
76
  dendroInfoByClick: null | DendroNodeInfo;
76
77
  dendroSelectedNodeId: null | number;
@@ -1,9 +1,9 @@
1
- import { ScatterplotSettings } from '@milaboratories/miplots4';
1
+ import { ScatterplotUmapSettings } from '@milaboratories/miplots4';
2
2
  import { InputGuide, InputState, PlotDataAndSettings } from '@milaboratories/pf-plots';
3
3
  import { ReactiveState, UniqueValuesData } from '../../types.ts';
4
4
 
5
- export declare function composeScatterplotUmapSettings(settings: ScatterplotSettings, dataByColumns: PlotDataAndSettings['dataByColumns'], reactiveState: ReactiveState, inputGuide: InputGuide<InputState>, uniqueValuesData: Record<string, UniqueValuesData>): {
6
- type: "scatterplot";
5
+ export declare function composeScatterplotUmapSettings(settings: ScatterplotUmapSettings, dataByColumns: PlotDataAndSettings['dataByColumns'], reactiveState: ReactiveState, inputGuide: InputGuide<InputState>, uniqueValuesData: Record<string, UniqueValuesData>): {
6
+ type: "scatterplot-umap";
7
7
  title: {
8
8
  name: string;
9
9
  show?: boolean | undefined;
@@ -27,13 +27,10 @@ export declare function composeScatterplotUmapSettings(settings: ScatterplotSett
27
27
  label?: string | undefined;
28
28
  valueLabels?: string | undefined;
29
29
  };
30
- layers: ({
30
+ layers: {
31
31
  type: "dots";
32
32
  aes?: {
33
33
  dotFill?: string | {
34
- type: "grouping";
35
- value: string;
36
- } | {
37
34
  columnName: {
38
35
  type: "column";
39
36
  value: string;
@@ -43,46 +40,20 @@ export declare function composeScatterplotUmapSettings(settings: ScatterplotSett
43
40
  domain: number[];
44
41
  range: string[];
45
42
  type?: "linear" | "log" | undefined;
43
+ } | {
44
+ type: "grouping";
45
+ value: string;
46
46
  } | undefined;
47
- dotShape?: "0" | {
47
+ dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | {
48
48
  type: "grouping";
49
49
  value: string;
50
- } | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | undefined;
51
- dotSize?: number | {
52
- columnName: {
53
- type: "column";
54
- value: string;
55
- label?: string | undefined;
56
- valueLabels?: string | undefined;
57
- };
58
- domain: number[];
59
- range: number[];
60
- type?: "linear" | "log" | undefined;
61
50
  } | undefined;
62
- } | undefined;
63
- } | {
64
- type: "curve";
65
- aes?: {
66
- lineWidth?: number | undefined;
67
- lineShape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
68
- lineColor?: string | {
51
+ dotSize?: number | {
69
52
  type: "grouping";
70
53
  value: string;
71
- } | {
72
- columnName: {
73
- type: "column";
74
- value: string;
75
- label?: string | undefined;
76
- valueLabels?: string | undefined;
77
- };
78
- domain: number[];
79
- range: string[];
80
- type?: "linear" | "log" | undefined;
81
54
  } | undefined;
82
- opacity?: number | undefined;
83
55
  } | undefined;
84
- smoothing?: boolean | undefined;
85
- })[];
56
+ }[];
86
57
  label?: {
87
58
  type: "column";
88
59
  value: string;
@@ -95,45 +66,6 @@ export declare function composeScatterplotUmapSettings(settings: ScatterplotSett
95
66
  label?: string | undefined;
96
67
  valueLabels?: string | undefined;
97
68
  }[] | undefined;
98
- aes?: {
99
- size?: number | {
100
- columnName: {
101
- type: "column";
102
- value: string;
103
- label?: string | undefined;
104
- valueLabels?: string | undefined;
105
- };
106
- domain: number[];
107
- range: number[];
108
- type?: "linear" | "log" | undefined;
109
- } | {
110
- columnName: {
111
- type: "column";
112
- value: string;
113
- label?: string | undefined;
114
- valueLabels?: string | undefined;
115
- };
116
- valuesMap: Record<string, number>;
117
- } | undefined;
118
- color?: string | {
119
- columnName: {
120
- type: "column";
121
- value: string;
122
- label?: string | undefined;
123
- valueLabels?: string | undefined;
124
- };
125
- valuesMap: Record<string, string>;
126
- } | undefined;
127
- shape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | {
128
- columnName: {
129
- type: "column";
130
- value: string;
131
- label?: string | undefined;
132
- valueLabels?: string | undefined;
133
- };
134
- valuesMap: Record<string, "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25">;
135
- } | undefined;
136
- } | undefined;
137
69
  size?: {
138
70
  width?: number | undefined;
139
71
  height?: number | undefined;
@@ -154,12 +86,6 @@ export declare function composeScatterplotUmapSettings(settings: ScatterplotSett
154
86
  frame?: {
155
87
  type?: "left" | "bottom" | "left-bottom" | "full" | "empty" | undefined;
156
88
  } | undefined;
157
- facetSettings?: {
158
- sharedX?: boolean | undefined;
159
- sharedY?: boolean | undefined;
160
- nRows?: number | undefined;
161
- nCols?: number | undefined;
162
- } | undefined;
163
89
  xAxis?: {
164
90
  title?: string | {
165
91
  type: "column";
@@ -196,12 +122,6 @@ export declare function composeScatterplotUmapSettings(settings: ScatterplotSett
196
122
  upperValue?: number | undefined;
197
123
  lowerValue?: number | undefined;
198
124
  } | undefined;
199
- facetBy?: {
200
- type: "column";
201
- value: string;
202
- label?: string | undefined;
203
- valueLabels?: string | undefined;
204
- }[] | undefined;
205
125
  inheritedAes?: Record<string, Record<string, {
206
126
  dotFill?: string | undefined;
207
127
  dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | undefined;
@@ -211,21 +131,5 @@ export declare function composeScatterplotUmapSettings(settings: ScatterplotSett
211
131
  lineColor?: string | undefined;
212
132
  fillColor?: string | undefined;
213
133
  }>> | undefined;
214
- trend?: {
215
- color?: string | {
216
- type: "grouping";
217
- value: string;
218
- } | {
219
- columnName: {
220
- type: "column";
221
- value: string;
222
- label?: string | undefined;
223
- valueLabels?: string | undefined;
224
- };
225
- domain: number[];
226
- range: string[];
227
- type?: "linear" | "log" | undefined;
228
- } | undefined;
229
- bounded?: boolean | undefined;
230
- } | undefined;
134
+ lassoMode?: boolean | undefined;
231
135
  };