galaxy-charts 0.0.79 → 0.0.80

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.
@@ -38,18 +38,9 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
38
38
  };
39
39
 
40
40
  export declare function GalaxyApi(): {
41
- GET: (path: string) => Promise<{
42
- data: any;
43
- response: Response;
44
- }>;
45
- POST: (path: string, options: any) => Promise<{
46
- data: any;
47
- response: Response;
48
- }>;
49
- PUT: (path: string, options: any) => Promise<{
50
- data: any;
51
- response: Response;
52
- }>;
41
+ GET: (path: string) => ResponseType_2;
42
+ POST: (path: string, options: RequestOptionsType) => ResponseType_2;
43
+ PUT: (path: string, options: RequestOptionsType) => ResponseType_2;
53
44
  };
54
45
 
55
46
  export declare const GalaxyCharts: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -92,20 +83,17 @@ export declare interface InputElementType {
92
83
  value?: string;
93
84
  }
94
85
 
95
- export declare type InputSelectOptionType = {
86
+ export declare type InputOptionType = {
96
87
  disabled?: boolean;
97
88
  label: string;
98
- value: InputSelectValueType | null;
89
+ value: InputValuesType | null;
99
90
  type?: string;
100
91
  };
101
92
 
102
- export declare type InputSelectValueType = {
103
- id: string;
104
- [key: string]: string | number | boolean | Array<string> | Record<string, InputSelectValueType>;
93
+ export declare type InputValuesType = {
94
+ [key: string]: any;
105
95
  };
106
96
 
107
- export declare type InputValuesType = Record<string, any>;
108
-
109
97
  export declare type MessageType = "info" | "default" | "warning" | "error" | "success" | undefined;
110
98
 
111
99
  export declare interface PluginConfigType {
@@ -134,13 +122,21 @@ export declare interface PluginType {
134
122
  tracks?: Array<InputElementType>;
135
123
  }
136
124
 
137
- declare function save(settings: InputValuesType): Promise<void>;
125
+ export declare type RequestOptionsType = Record<string, any>;
126
+
127
+ declare type ResponseType_2 = Promise<{
128
+ data: any;
129
+ response: Response;
130
+ }>;
131
+ export { ResponseType_2 as ResponseType }
132
+
133
+ declare function save(settings: InputValuesType, tracks?: Array<InputValuesType>): Promise<void>;
138
134
 
139
135
  declare interface Track {
140
136
  [key: string]: string | undefined;
141
137
  }
142
138
 
143
- declare function update(settings: InputValuesType): void;
139
+ declare function update(settings: InputValuesType, tracks?: Array<InputValuesType>): void;
144
140
 
145
141
  export declare function useColumnsStore(): {
146
142
  checkColumns: (tracks: Track[], keys: string[]) => boolean;
@@ -148,4 +144,13 @@ export declare function useColumnsStore(): {
148
144
  getColumns: (tracks: Track[], keys: string[]) => string[];
149
145
  };
150
146
 
147
+ export declare function useDataJsonStore(): {
148
+ getDataJson: (url: string) => Promise<Array<InputOptionType>>;
149
+ resetDataJson: () => void;
150
+ };
151
+
152
+ export declare function useDataTableStore(): {
153
+ getDataTable: (name: string) => Promise<Array<InputOptionType>>;
154
+ };
155
+
151
156
  export { }