@milaboratories/graph-maker 1.1.80 → 1.1.82

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.
@@ -20,6 +20,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
20
20
  };
21
21
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
22
  "close-chip": (item: string) => void;
23
+ "update:modelValue": (item: Record<string, FixedAxisData>) => void;
23
24
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
24
25
  modelValue: import('vue').PropType<Record<string, FixedAxisData>>;
25
26
  error: {
@@ -39,5 +40,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
39
40
  };
40
41
  }>> & Readonly<{
41
42
  "onClose-chip"?: ((item: string) => any) | undefined;
43
+ "onUpdate:modelValue"?: ((item: Record<string, FixedAxisData>) => any) | undefined;
42
44
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
43
45
  export default _default;
@@ -24,6 +24,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
24
24
  };
25
25
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
26
  "close-chip": (id: string) => void;
27
+ "update:fixedAxes": (id: Record<string, FixedAxisData>) => void;
27
28
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
28
29
  filter: {
29
30
  required: true;
@@ -47,5 +48,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
47
48
  };
48
49
  }>> & Readonly<{
49
50
  "onClose-chip"?: ((id: string) => any) | undefined;
51
+ "onUpdate:fixedAxes"?: ((id: Record<string, FixedAxisData>) => any) | undefined;
50
52
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
51
53
  export default _default;
@@ -24,7 +24,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
24
24
  };
25
25
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
26
  "close-chip": (id: string) => void;
27
- "update:modelValue:filter": (id: unknown) => void;
27
+ "update:filter": (id: unknown) => void;
28
+ "update:fixedAxes": (id: Record<string, FixedAxisData>) => void;
28
29
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
29
30
  filter: {
30
31
  required: true;
@@ -48,6 +49,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
48
49
  };
49
50
  }>> & Readonly<{
50
51
  "onClose-chip"?: ((id: string) => any) | undefined;
51
- "onUpdate:modelValue:filter"?: ((id: unknown) => any) | undefined;
52
+ "onUpdate:filter"?: ((id: unknown) => any) | undefined;
53
+ "onUpdate:fixedAxes"?: ((id: Record<string, FixedAxisData>) => any) | undefined;
52
54
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
53
55
  export default _default;
@@ -31,6 +31,10 @@ export type GraphMakerState = {
31
31
  export type PredefinedGraphOption<T extends ChartType> = {
32
32
  inputName: InputNamesByChartType[T];
33
33
  selectedSource: AxisSpec | PColumnSpec;
34
+ fixedAxes?: {
35
+ axisIdx: number;
36
+ axisValue: number | string;
37
+ }[];
34
38
  filterType?: SelectorStateFilter['type'];
35
39
  selectedFilterRange?: NumberRange;
36
40
  selectedFilterValue?: string;
@@ -1,9 +1,10 @@
1
- import { ChartType, DemoDataStore, InputNamesByChartType, SelectorStateFilter } from '@milaboratories/pf-plots';
1
+ import { ChartType, DemoDataStore, InputNamesByChartType, SelectorStateFilter, SelectorStateSimple } from '@milaboratories/pf-plots';
2
2
  import { PredefinedGraphOption } from '../types.ts';
3
3
 
4
4
  type LoadedDefaultOptions<T extends ChartType> = {
5
5
  inputName: InputNamesByChartType[T];
6
6
  selectedSource: string;
7
+ fixedAxes: SelectorStateSimple['fixedAxes'];
7
8
  filterType?: SelectorStateFilter['type'];
8
9
  selectedFilterRange?: SelectorStateFilter['selectedFilterRange'];
9
10
  selectedFilterValue?: SelectorStateFilter['selectedFilterValue'];