@milaboratories/graph-maker 1.0.6 → 1.0.8

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.
@@ -42,7 +42,7 @@ export type StatisticsState = {
42
42
  };
43
43
  };
44
44
  };
45
- export declare function getInitialStatisticsState(initialData: StatisticsState | null): StatisticsState;
45
+ export declare function getInitialStatisticsState(initialData?: StatisticsState): StatisticsState;
46
46
  export type MappingLink = {
47
47
  type: string;
48
48
  value?: string;
@@ -144,7 +144,7 @@ export type LayersSettings = {
144
144
  };
145
145
  export declare const DEFAULT_LAYERS_SETTINGS: () => LayersSettings;
146
146
  export declare function getDefaultLayersSettings(): LayersSettings;
147
- export declare function getInitialLayersSettings(initialSettings: LayersSettings | null): LayersSettings;
147
+ export declare function getInitialLayersSettings(initialSettings?: LayersSettings): LayersSettings;
148
148
  export type AxesState = {
149
149
  title: {
150
150
  value: string;
@@ -178,7 +178,7 @@ export type AxesState = {
178
178
  facetColumns: number;
179
179
  };
180
180
  };
181
- export declare function getInitialAxesSettings(restoredAxesSettings: AxesState | null, chartType: ChartType): AxesState;
181
+ export declare function getInitialAxesSettings(chartType: ChartType, restoredAxesSettings?: AxesState): AxesState;
182
182
  export declare const LAYER_ICONS: Record<LayersTemplate, Component>;
183
183
  type Option = {
184
184
  value: string;
@@ -1,30 +1,37 @@
1
1
  import { GraphMakerSettings } from './types.ts';
2
2
  import { PFrameDriver, PFrameHandle } from '@platforma-sdk/model';
3
3
 
4
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
- pFrameHandle: PFrameHandle;
6
- pFrameDriver: PFrameDriver;
7
- settings: GraphMakerSettings;
8
- graphTitle: string;
9
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
- "graph-title-update": (...args: any[]) => void;
11
- "settings-update": (...args: any[]) => void;
12
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
- pFrameHandle: PFrameHandle;
14
- pFrameDriver: PFrameDriver;
15
- settings: GraphMakerSettings;
16
- graphTitle: string;
17
- }>>> & Readonly<{
18
- "onGraph-title-update"?: ((...args: any[]) => any) | undefined;
19
- "onSettings-update"?: ((...args: any[]) => any) | undefined;
20
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
21
- export default _default;
22
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
- type __VLS_TypePropsToRuntimeProps<T> = {
24
- [K in keyof T]-?: {} extends Pick<T, K> ? {
25
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
- } : {
27
- type: import('vue').PropType<T[K]>;
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ modelValue: {
6
+ required: true;
7
+ type: import('vue').PropType<GraphMakerSettings>;
8
+ };
9
+ pFrameHandle: {
10
+ type: import('vue').PropType<PFrameHandle>;
11
+ required: true;
12
+ };
13
+ pFrameDriver: {
14
+ type: import('vue').PropType<PFrameDriver>;
15
+ required: true;
16
+ };
17
+ labelsModifier: {
18
+ type: import('vue').PropType<(id: string, label: string) => string>;
19
+ };
20
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
+ modelValue: {
22
+ required: true;
23
+ type: import('vue').PropType<GraphMakerSettings>;
24
+ };
25
+ pFrameHandle: {
26
+ type: import('vue').PropType<PFrameHandle>;
28
27
  required: true;
29
28
  };
30
- };
29
+ pFrameDriver: {
30
+ type: import('vue').PropType<PFrameDriver>;
31
+ required: true;
32
+ };
33
+ labelsModifier: {
34
+ type: import('vue').PropType<(id: string, label: string) => string>;
35
+ };
36
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
37
+ export default _default;
@@ -4,14 +4,14 @@ import { AestheticMappingCategorical } from './dataBindAes.ts';
4
4
  import { PTableRecordSingleValueFilter } from '@platforma-sdk/model';
5
5
 
6
6
  export type GraphMakerSettings = {
7
+ title: string;
7
8
  chartType: ChartType;
8
- optionsState: InputState | null;
9
- statisticsSettings: StatisticsState | null;
10
- axesSettings: AxesState | null;
11
- layersSettings: ReturnType<typeof getDefaultLayersSettings> | null;
12
- template: LayersTemplate | null;
13
- dataBindAes: Record<string, AestheticMappingCategorical> | null;
14
- labelsModifier?: (id: string, label: string) => string;
9
+ template: LayersTemplate;
10
+ optionsState?: InputState;
11
+ statisticsSettings?: StatisticsState;
12
+ axesSettings?: AxesState;
13
+ layersSettings?: ReturnType<typeof getDefaultLayersSettings>;
14
+ dataBindAes?: Record<string, AestheticMappingCategorical>;
15
15
  fixedOptions?: {
16
16
  inputName: string;
17
17
  selectedSource: PTableRecordSingleValueFilter['column'];