galaxy-charts 0.0.76 → 0.0.78
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.
- package/dist/galaxy-charts.d.ts +154 -0
- package/package.json +5 -5
- package/dist/types/galaxy-charts.d.ts +0 -2
|
@@ -0,0 +1,154 @@
|
|
|
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
|
+
export declare type InputAtomicType = boolean | string | number | null | undefined;
|
|
58
|
+
|
|
59
|
+
export declare interface InputElementType {
|
|
60
|
+
cases?: Array<{
|
|
61
|
+
value: string;
|
|
62
|
+
inputs: Array<InputElementType>;
|
|
63
|
+
}>;
|
|
64
|
+
data?: Array<{
|
|
65
|
+
label: string;
|
|
66
|
+
value: string;
|
|
67
|
+
}>;
|
|
68
|
+
extension?: string;
|
|
69
|
+
filterable?: boolean;
|
|
70
|
+
help?: string;
|
|
71
|
+
is_auto?: string;
|
|
72
|
+
is_text?: string;
|
|
73
|
+
is_number?: string;
|
|
74
|
+
label?: string;
|
|
75
|
+
max?: string;
|
|
76
|
+
min?: string;
|
|
77
|
+
name: string;
|
|
78
|
+
optional?: string;
|
|
79
|
+
rows?: string;
|
|
80
|
+
tables?: Array<string>;
|
|
81
|
+
test_param?: {
|
|
82
|
+
name: string;
|
|
83
|
+
type: string;
|
|
84
|
+
data?: Array<{
|
|
85
|
+
label: string;
|
|
86
|
+
value: string;
|
|
87
|
+
}>;
|
|
88
|
+
value?: string;
|
|
89
|
+
};
|
|
90
|
+
type: string;
|
|
91
|
+
value?: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export declare type InputSelectOptionType = {
|
|
95
|
+
disabled?: boolean;
|
|
96
|
+
label: string;
|
|
97
|
+
value: InputSelectValueType | null;
|
|
98
|
+
type?: string;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export declare type InputSelectValueType = {
|
|
102
|
+
id: string;
|
|
103
|
+
[key: string]: string | number | boolean | Array<string>;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export declare type InputValuesType = Record<string, any>;
|
|
107
|
+
|
|
108
|
+
export declare type MessageType = "info" | "default" | "warning" | "error" | "success" | undefined;
|
|
109
|
+
|
|
110
|
+
export declare interface PluginConfigType {
|
|
111
|
+
credentials?: RequestCredentials;
|
|
112
|
+
dataset_id?: string;
|
|
113
|
+
dataset_url?: string;
|
|
114
|
+
settings?: InputValuesType;
|
|
115
|
+
tracks?: Array<InputValuesType>;
|
|
116
|
+
chart_dict?: {
|
|
117
|
+
groups?: any;
|
|
118
|
+
settings?: any;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export declare interface PluginIncomingType {
|
|
123
|
+
root?: string;
|
|
124
|
+
visualization_config?: PluginConfigType;
|
|
125
|
+
visualization_id?: string;
|
|
126
|
+
visualization_plugin?: PluginType;
|
|
127
|
+
visualization_title?: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export declare interface PluginType {
|
|
131
|
+
name?: string;
|
|
132
|
+
html?: string | null;
|
|
133
|
+
logo?: string | null;
|
|
134
|
+
description?: string | null;
|
|
135
|
+
specs?: Record<string, string>;
|
|
136
|
+
settings?: Array<InputElementType>;
|
|
137
|
+
tracks?: Array<InputElementType>;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
declare function save(settings: InputValuesType): Promise<void>;
|
|
141
|
+
|
|
142
|
+
declare interface Track {
|
|
143
|
+
[key: string]: string | undefined;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
declare function update(settings: InputValuesType): void;
|
|
147
|
+
|
|
148
|
+
export declare function useColumnsStore(): {
|
|
149
|
+
checkColumns: (tracks: Track[], keys: string[]) => boolean;
|
|
150
|
+
fetchColumns: (datasetId: string, tracks: Track[], keys: string[]) => Promise<Record<string, any>[]>;
|
|
151
|
+
getColumns: (tracks: Track[], keys: string[]) => string[];
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
export { }
|
package/package.json
CHANGED
|
@@ -6,29 +6,29 @@
|
|
|
6
6
|
"charts"
|
|
7
7
|
],
|
|
8
8
|
"license": "MIT",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.78",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"main": "./dist/galaxy-charts.umd.cjs",
|
|
12
12
|
"module": "./dist/galaxy-charts.js",
|
|
13
|
-
"types": "./dist/
|
|
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/
|
|
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/
|
|
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 '
|
|
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": {
|