galaxy-charts 0.0.76 → 0.0.77

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.
@@ -0,0 +1,138 @@
1
+ import { ComponentOptionsMixin } from 'vue';
2
+ import { ComponentProvideOptions } from 'vue';
3
+ import { DefineComponent } from 'vue';
4
+ import { PublicProps } from 'vue';
5
+
6
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
7
+
8
+ declare type __VLS_Props = {
9
+ container?: string;
10
+ credentials?: RequestCredentials;
11
+ incoming?: PluginIncomingType;
12
+ };
13
+
14
+ declare function __VLS_template(): {
15
+ attrs: Partial<{}>;
16
+ slots: {
17
+ default?(_: {
18
+ datasetId: string;
19
+ datasetUrl: string;
20
+ root: string;
21
+ settings: InputValuesType;
22
+ specs: InputValuesType;
23
+ tracks: InputValuesType[];
24
+ save: typeof save;
25
+ update: typeof update;
26
+ }): any;
27
+ };
28
+ refs: {};
29
+ rootEl: any;
30
+ };
31
+
32
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
33
+
34
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
39
+
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
+ }>;
53
+ };
54
+
55
+ export declare const GalaxyCharts: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
56
+
57
+ declare interface InputElementType {
58
+ cases?: Array<{
59
+ value: string;
60
+ inputs: Array<InputElementType>;
61
+ }>;
62
+ data?: Array<{
63
+ label: string;
64
+ value: string;
65
+ }>;
66
+ extension?: string;
67
+ filterable?: boolean;
68
+ help?: string;
69
+ is_auto?: string;
70
+ is_text?: string;
71
+ is_number?: string;
72
+ label?: string;
73
+ max?: string;
74
+ min?: string;
75
+ name: string;
76
+ optional?: string;
77
+ rows?: string;
78
+ tables?: Array<string>;
79
+ test_param?: {
80
+ name: string;
81
+ type: string;
82
+ data?: Array<{
83
+ label: string;
84
+ value: string;
85
+ }>;
86
+ value?: string;
87
+ };
88
+ type: string;
89
+ value?: string;
90
+ }
91
+
92
+ declare type InputValuesType = Record<string, any>;
93
+
94
+ declare interface PluginConfigType {
95
+ credentials?: RequestCredentials;
96
+ dataset_id?: string;
97
+ dataset_url?: string;
98
+ settings?: InputValuesType;
99
+ tracks?: Array<InputValuesType>;
100
+ chart_dict?: {
101
+ groups?: any;
102
+ settings?: any;
103
+ };
104
+ }
105
+
106
+ declare interface PluginIncomingType {
107
+ root?: string;
108
+ visualization_config?: PluginConfigType;
109
+ visualization_id?: string;
110
+ visualization_plugin?: PluginType;
111
+ visualization_title?: string;
112
+ }
113
+
114
+ declare interface PluginType {
115
+ name?: string;
116
+ html?: string | null;
117
+ logo?: string | null;
118
+ description?: string | null;
119
+ specs?: Record<string, string>;
120
+ settings?: Array<InputElementType>;
121
+ tracks?: Array<InputElementType>;
122
+ }
123
+
124
+ declare function save(settings: InputValuesType): Promise<void>;
125
+
126
+ declare interface Track {
127
+ [key: string]: string | undefined;
128
+ }
129
+
130
+ declare function update(settings: InputValuesType): void;
131
+
132
+ export declare function useColumnsStore(): {
133
+ checkColumns: (tracks: Track[], keys: string[]) => boolean;
134
+ fetchColumns: (datasetId: string, tracks: Track[], keys: string[]) => Promise<Record<string, any>[]>;
135
+ getColumns: (tracks: Track[], keys: string[]) => string[];
136
+ };
137
+
138
+ export { }
package/package.json CHANGED
@@ -6,29 +6,29 @@
6
6
  "charts"
7
7
  ],
8
8
  "license": "MIT",
9
- "version": "0.0.76",
9
+ "version": "0.0.77",
10
10
  "type": "module",
11
11
  "main": "./dist/galaxy-charts.umd.cjs",
12
12
  "module": "./dist/galaxy-charts.js",
13
- "types": "./dist/types/galaxy-charts.d.ts",
13
+ "types": "./dist/galaxy-charts.d.ts",
14
14
  "exports": {
15
15
  ".": {
16
16
  "import": "./dist/galaxy-charts.js",
17
17
  "require": "./dist/galaxy-charts.umd.cjs",
18
- "types": "./dist/types/galaxy-charts.d.ts"
18
+ "types": "./dist/galaxy-charts.d.ts"
19
19
  }
20
20
  },
21
21
  "files": [
22
22
  "dist/galaxy-charts.css",
23
23
  "dist/galaxy-charts.js",
24
24
  "dist/galaxy-charts.umd.cjs",
25
- "./dist/types/galaxy-charts.d.ts"
25
+ "./dist/galaxy-charts.d.ts"
26
26
  ],
27
27
  "scripts": {
28
28
  "dev": "npm run build && vite",
29
29
  "build": "vite build",
30
30
  "preview": "vite preview",
31
- "prettier": "prettier --config ./prettier.config.js --write 'package.json' '**/*.{css,js,ts,vue}'",
31
+ "prettier": "prettier --config ./prettier.config.js --write '*.json' '**/*.{css,js,ts,vue}'",
32
32
  "test": "vitest --coverage.enabled --no-cache"
33
33
  },
34
34
  "devDependencies": {
@@ -1,2 +0,0 @@
1
- export * from '../galaxy-charts'
2
- export {}