@quillsql/react 1.5.3 → 1.5.5
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/lib/Chart.d.ts +2 -1
- package/lib/Chart.js +81 -34
- package/lib/Chart.js.map +1 -1
- package/lib/Context.d.ts +3 -1
- package/lib/Context.js +13 -2
- package/lib/Context.js.map +1 -1
- package/lib/Dashboard.js +1 -1
- package/lib/Dashboard.js.map +1 -1
- package/lib/QuillProvider.d.ts +3 -1
- package/lib/QuillProvider.js +2 -2
- package/lib/QuillProvider.js.map +1 -1
- package/lib/ReportBuilder.d.ts +21 -0
- package/lib/ReportBuilder.js +1534 -0
- package/lib/ReportBuilder.js.map +1 -0
- package/lib/SQLEditor.d.ts +11 -0
- package/lib/SQLEditor.js +597 -0
- package/lib/SQLEditor.js.map +1 -0
- package/lib/hooks/useQuill.js +42 -12
- package/lib/hooks/useQuill.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/package.json +4 -2
- package/src/Chart.tsx +127 -52
- package/src/Context.tsx +14 -1
- package/src/Dashboard.tsx +1 -0
- package/src/QuillProvider.tsx +4 -0
- package/src/ReportBuilder.tsx +2208 -0
- package/src/SQLEditor.tsx +841 -0
- package/src/hooks/useQuill.ts +49 -16
- package/src/index.ts +2 -0
package/lib/SQLEditor.js
ADDED
|
@@ -0,0 +1,597 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
+
function step(op) {
|
|
26
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
+
switch (op[0]) {
|
|
31
|
+
case 0: case 1: t = op; break;
|
|
32
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
+
default:
|
|
36
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
+
if (t[2]) _.ops.pop();
|
|
41
|
+
_.trys.pop(); continue;
|
|
42
|
+
}
|
|
43
|
+
op = body.call(thisArg, _);
|
|
44
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
49
|
+
import { useState, useContext, useMemo, useEffect } from 'react';
|
|
50
|
+
import MonacoEditor from '@monaco-editor/react';
|
|
51
|
+
// import './nightOwlLight.css';
|
|
52
|
+
import axios from 'axios';
|
|
53
|
+
import { TailSpin } from 'react-loader-spinner';
|
|
54
|
+
import { ClientContext, SchemaContext, ThemeContext } from './Context';
|
|
55
|
+
import { ChevronDownIcon, ChevronRightIcon, SparklesIcon, MagnifyingGlassIcon, } from '@heroicons/react/20/solid';
|
|
56
|
+
export function convertPostgresColumn(column) {
|
|
57
|
+
var format;
|
|
58
|
+
switch (column.dataTypeID) {
|
|
59
|
+
case 20: // int8
|
|
60
|
+
case 21: // int2
|
|
61
|
+
case 23: // int4
|
|
62
|
+
format = 'whole_number';
|
|
63
|
+
break;
|
|
64
|
+
case 700: // float4
|
|
65
|
+
case 701: // float8
|
|
66
|
+
case 1700: // numeric
|
|
67
|
+
format = 'two_decimal_places';
|
|
68
|
+
break;
|
|
69
|
+
case 1082: // date
|
|
70
|
+
case 1083: // time
|
|
71
|
+
case 1184: // timestamptz
|
|
72
|
+
case 1114: // timestamp
|
|
73
|
+
format = 'MMM_dd_yyyy';
|
|
74
|
+
break;
|
|
75
|
+
case 1043: // varchar
|
|
76
|
+
default:
|
|
77
|
+
format = 'string';
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
label: column.name,
|
|
81
|
+
field: column.name,
|
|
82
|
+
format: format,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function defineEditorTheme(monaco, theme) {
|
|
86
|
+
monaco.editor.defineTheme('onedark', {
|
|
87
|
+
base: theme.darkMode ? 'vs-dark' : 'vs',
|
|
88
|
+
inherit: true,
|
|
89
|
+
rules: [
|
|
90
|
+
{
|
|
91
|
+
token: 'comment',
|
|
92
|
+
foreground: '#5d7988',
|
|
93
|
+
fontStyle: 'italic',
|
|
94
|
+
},
|
|
95
|
+
{ token: 'constant', foreground: '#e06c75' },
|
|
96
|
+
],
|
|
97
|
+
colors: {
|
|
98
|
+
'editor.background': '#F9F9F9',
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function setEditorTheme(editor, monaco) {
|
|
103
|
+
try {
|
|
104
|
+
monaco.editor.setTheme('onedark');
|
|
105
|
+
}
|
|
106
|
+
catch (e) {
|
|
107
|
+
console.log('ERROR: ', e);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
export default function QueryEditor(_a) {
|
|
111
|
+
var _this = this;
|
|
112
|
+
var _b = _a.containerStyle, containerStyle = _b === void 0 ? { height: '100vh' } : _b;
|
|
113
|
+
var _c = useState(''), sqlPrompt = _c[0], setSqlPrompt = _c[1];
|
|
114
|
+
var _d = useState(false), isOpen = _d[0], setIsOpen = _d[1];
|
|
115
|
+
var client = useContext(ClientContext)[0];
|
|
116
|
+
var theme = useContext(ThemeContext)[0];
|
|
117
|
+
var _e = useState(''), query = _e[0], setQuery = _e[1];
|
|
118
|
+
var _f = useState([]), rows = _f[0], setRows = _f[1];
|
|
119
|
+
var _g = useState([]), columns = _g[0], setColumns = _g[1];
|
|
120
|
+
var _h = useState([]), fields = _h[0], setFields = _h[1];
|
|
121
|
+
var _j = useContext(SchemaContext), schema = _j[0], setSchema = _j[1];
|
|
122
|
+
var _k = useState(''), errorMessage = _k[0], setErrorMessage = _k[1];
|
|
123
|
+
var _l = useState(false), sqlResponseLoading = _l[0], setSqlResponseLoading = _l[1];
|
|
124
|
+
useEffect(function () {
|
|
125
|
+
var isSubscribed = true;
|
|
126
|
+
function getSchema() {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
128
|
+
var publicKey, environment, response3;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
switch (_a.label) {
|
|
131
|
+
case 0:
|
|
132
|
+
publicKey = client.publicKey, environment = client.environment;
|
|
133
|
+
return [4 /*yield*/, axios.get("https://quill-344421.uc.r.appspot.com/schema2/".concat(publicKey, "/"), {
|
|
134
|
+
headers: {
|
|
135
|
+
Authorization: "Bearer ",
|
|
136
|
+
environment: environment || undefined,
|
|
137
|
+
},
|
|
138
|
+
})];
|
|
139
|
+
case 1:
|
|
140
|
+
response3 = _a.sent();
|
|
141
|
+
if (isSubscribed) {
|
|
142
|
+
setSchema(response3.data.tables);
|
|
143
|
+
}
|
|
144
|
+
return [2 /*return*/];
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
if (isSubscribed) {
|
|
150
|
+
getSchema();
|
|
151
|
+
}
|
|
152
|
+
return function () {
|
|
153
|
+
isSubscribed = false;
|
|
154
|
+
};
|
|
155
|
+
}, []);
|
|
156
|
+
var handleRunSqlPrompt = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
157
|
+
var publicKey, environment, response;
|
|
158
|
+
return __generator(this, function (_a) {
|
|
159
|
+
switch (_a.label) {
|
|
160
|
+
case 0:
|
|
161
|
+
publicKey = client.publicKey, environment = client.environment;
|
|
162
|
+
setSqlResponseLoading(true);
|
|
163
|
+
return [4 /*yield*/, axios.post("https://quill-344421.uc.r.appspot.com/quillai", {
|
|
164
|
+
initialQuestion: sqlPrompt,
|
|
165
|
+
publicKey: publicKey,
|
|
166
|
+
}, {
|
|
167
|
+
headers: {
|
|
168
|
+
Authorization: "Bearer ",
|
|
169
|
+
environment: environment || undefined,
|
|
170
|
+
},
|
|
171
|
+
})];
|
|
172
|
+
case 1:
|
|
173
|
+
response = _a.sent();
|
|
174
|
+
setQuery(response.data.message);
|
|
175
|
+
setSqlResponseLoading(false);
|
|
176
|
+
return [2 /*return*/];
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}); };
|
|
180
|
+
var handleRunQuery = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
181
|
+
var publicKey, customerId, environment, response, e_1;
|
|
182
|
+
return __generator(this, function (_a) {
|
|
183
|
+
switch (_a.label) {
|
|
184
|
+
case 0:
|
|
185
|
+
publicKey = client.publicKey, customerId = client.customerId, environment = client.environment;
|
|
186
|
+
_a.label = 1;
|
|
187
|
+
case 1:
|
|
188
|
+
_a.trys.push([1, 3, , 4]);
|
|
189
|
+
return [4 /*yield*/, axios.post("https://quill-344421.uc.r.appspot.com/dashquery", {
|
|
190
|
+
query: query,
|
|
191
|
+
}, {
|
|
192
|
+
params: {
|
|
193
|
+
orgId: customerId,
|
|
194
|
+
publicKey: publicKey,
|
|
195
|
+
},
|
|
196
|
+
headers: {
|
|
197
|
+
Authorization: "Bearer ",
|
|
198
|
+
environment: environment || undefined,
|
|
199
|
+
},
|
|
200
|
+
})];
|
|
201
|
+
case 2:
|
|
202
|
+
response = _a.sent();
|
|
203
|
+
if (response && response.data && response.data.errorMessage) {
|
|
204
|
+
setErrorMessage('Failed to run SQL query: ' + response.data.errorMessage);
|
|
205
|
+
setRows([]);
|
|
206
|
+
setColumns([]);
|
|
207
|
+
setFields([]);
|
|
208
|
+
return [2 /*return*/];
|
|
209
|
+
}
|
|
210
|
+
setErrorMessage('');
|
|
211
|
+
setRows(response.data.rows);
|
|
212
|
+
setColumns(response.data.fields.map(function (elem) { return convertPostgresColumn(elem); }));
|
|
213
|
+
setFields(response.data.fields);
|
|
214
|
+
return [3 /*break*/, 4];
|
|
215
|
+
case 3:
|
|
216
|
+
e_1 = _a.sent();
|
|
217
|
+
console.log('ERROR: ', e_1);
|
|
218
|
+
return [2 /*return*/];
|
|
219
|
+
case 4: return [2 /*return*/];
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
}); };
|
|
223
|
+
var handleAddToDashboard = function () {
|
|
224
|
+
setIsOpen(true);
|
|
225
|
+
};
|
|
226
|
+
var newRows = useMemo(function () {
|
|
227
|
+
return JSON.parse(JSON.stringify(rows));
|
|
228
|
+
}, [rows]);
|
|
229
|
+
/* all your useState and useContext calls and your useEffect hooks */
|
|
230
|
+
var downloadCSV = function () {
|
|
231
|
+
// report.rows
|
|
232
|
+
if (!rows.length) {
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
var json = rows; // JSON data passed as a prop
|
|
236
|
+
var fields = Object.keys(json[0]); // Assumes all objects have same keys
|
|
237
|
+
var csvRows = [];
|
|
238
|
+
// Header row
|
|
239
|
+
csvRows.push(fields.join(','));
|
|
240
|
+
var _loop_1 = function (row) {
|
|
241
|
+
var values = fields.map(function (field) { return JSON.stringify(row[field] || ''); });
|
|
242
|
+
csvRows.push(values.join(','));
|
|
243
|
+
};
|
|
244
|
+
// Data rows
|
|
245
|
+
for (var _i = 0, json_1 = json; _i < json_1.length; _i++) {
|
|
246
|
+
var row = json_1[_i];
|
|
247
|
+
_loop_1(row);
|
|
248
|
+
}
|
|
249
|
+
// Create CSV string and create a 'blob' with it
|
|
250
|
+
var csvString = csvRows.join('\r\n');
|
|
251
|
+
var csvBlob = new Blob([csvString], { type: 'text/csv' });
|
|
252
|
+
// Create a download link and click it
|
|
253
|
+
var downloadLink = document.createElement('a');
|
|
254
|
+
downloadLink.download = "".concat(query, ".csv");
|
|
255
|
+
downloadLink.href = URL.createObjectURL(csvBlob);
|
|
256
|
+
downloadLink.style.display = 'none';
|
|
257
|
+
document.body.appendChild(downloadLink);
|
|
258
|
+
downloadLink.click();
|
|
259
|
+
document.body.removeChild(downloadLink);
|
|
260
|
+
};
|
|
261
|
+
/* rest of your methods */
|
|
262
|
+
return (_jsx("div", __assign({ style: containerStyle }, { children: _jsx("div", __assign({ style: {
|
|
263
|
+
height: 'calc(100%)',
|
|
264
|
+
display: 'flex',
|
|
265
|
+
flexDirection: 'column',
|
|
266
|
+
padding: 0,
|
|
267
|
+
} }, { children: _jsx("div", __assign({ style: { height: '100%', display: 'flex', flexDirection: 'column' } }, { children: _jsxs("div", __assign({ style: {
|
|
268
|
+
width: '100%',
|
|
269
|
+
display: 'flex',
|
|
270
|
+
height: '100%',
|
|
271
|
+
flexDirection: 'row',
|
|
272
|
+
} }, { children: [_jsx(SchemaListComponent, { schema: schema, theme: theme }), _jsxs("div", __assign({ style: {
|
|
273
|
+
display: 'flex',
|
|
274
|
+
flexDirection: 'column',
|
|
275
|
+
width: 'calc(100% - 250px)',
|
|
276
|
+
} }, { children: [_jsxs("div", __assign({ style: {
|
|
277
|
+
// TODO: change color
|
|
278
|
+
height: 80,
|
|
279
|
+
background: 'white',
|
|
280
|
+
display: 'flex',
|
|
281
|
+
flexDirection: 'row',
|
|
282
|
+
alignItems: 'center',
|
|
283
|
+
} }, { children: [_jsxs("div", __assign({ style: {
|
|
284
|
+
display: 'flex',
|
|
285
|
+
flexDirection: 'row',
|
|
286
|
+
alignItems: 'center',
|
|
287
|
+
paddingLeft: '12px',
|
|
288
|
+
paddingRight: '12px',
|
|
289
|
+
height: 38,
|
|
290
|
+
boxShadow: 'rgba(0, 0, 0, 0.1) 0px 1px 5px 0px',
|
|
291
|
+
width: '445px',
|
|
292
|
+
// TODO: change color
|
|
293
|
+
borderColor: theme.borderColor,
|
|
294
|
+
color: theme.primaryTextColor,
|
|
295
|
+
borderWidth: '1px',
|
|
296
|
+
// TODO: change color
|
|
297
|
+
backgroundColor: 'white',
|
|
298
|
+
borderRadius: 6,
|
|
299
|
+
borderStyle: 'solid',
|
|
300
|
+
outline: 'none',
|
|
301
|
+
} }, { children: [_jsx(MagnifyingGlassIcon, { style: {
|
|
302
|
+
height: 16,
|
|
303
|
+
width: 16,
|
|
304
|
+
color: theme.secondaryTextColor,
|
|
305
|
+
}, "aria-hidden": "true" }), _jsx("input", { value: sqlPrompt, onChange: function (e) { return setSqlPrompt(e.target.value); }, style: {
|
|
306
|
+
outline: 'none',
|
|
307
|
+
marginLeft: 8,
|
|
308
|
+
width: '100%',
|
|
309
|
+
border: 'none',
|
|
310
|
+
outline: 'none',
|
|
311
|
+
} })] })), _jsx("button", __assign({ onClick: handleRunSqlPrompt, style: {
|
|
312
|
+
// TODO: change color
|
|
313
|
+
background: theme.primaryButtonColor,
|
|
314
|
+
// TODO: change color
|
|
315
|
+
color: theme.backgroundColor,
|
|
316
|
+
height: 38,
|
|
317
|
+
paddingLeft: 10,
|
|
318
|
+
paddingRight: 12,
|
|
319
|
+
width: 87,
|
|
320
|
+
minWidth: 87,
|
|
321
|
+
maxWidth: 87,
|
|
322
|
+
marginLeft: 12,
|
|
323
|
+
fontWeight: '400',
|
|
324
|
+
borderRadius: '0.375rem',
|
|
325
|
+
border: 'none',
|
|
326
|
+
outline: 'none',
|
|
327
|
+
cursor: 'pointer',
|
|
328
|
+
} }, { children: sqlResponseLoading ? (_jsx("div", __assign({ style: {
|
|
329
|
+
display: 'flex',
|
|
330
|
+
flexDirection: 'row',
|
|
331
|
+
alignItems: 'center',
|
|
332
|
+
width: '100%',
|
|
333
|
+
height: '100%',
|
|
334
|
+
justifyContent: 'center',
|
|
335
|
+
} }, { children: _jsx(TailSpin, { height: "20", width: "20",
|
|
336
|
+
// TODO: change color
|
|
337
|
+
color: theme.backgroundColor, ariaLabel: "loading-indicator" }) }))) : (_jsxs("div", __assign({ style: {
|
|
338
|
+
display: 'flex',
|
|
339
|
+
flexDirection: 'row',
|
|
340
|
+
alignItems: 'center',
|
|
341
|
+
} }, { children: [_jsx(SparklesIcon, { style: {
|
|
342
|
+
height: 12,
|
|
343
|
+
width: 12,
|
|
344
|
+
marginRight: 4,
|
|
345
|
+
// TODO: change color
|
|
346
|
+
color: theme.backgroundColor,
|
|
347
|
+
}, "aria-hidden": "true" }), _jsx("div", __assign({ style: { fontSize: 14, fontWeight: 600 } }, { children: "Ask AI" }))] }))) }))] })), _jsx("div", __assign({ style: { height: 'calc(50% - 40px)' } }, { children: _jsx(SQLEditorComponent, { query: query, setQuery: setQuery, handleRunQuery: handleRunQuery, theme: theme, defineEditorTheme: defineEditorTheme, setEditorTheme: setEditorTheme }) })), _jsxs("div", __assign({ style: {
|
|
348
|
+
height: 'calc(50% - 40px)',
|
|
349
|
+
display: 'flex',
|
|
350
|
+
flexDirection: 'column',
|
|
351
|
+
padding: 0,
|
|
352
|
+
margin: 0,
|
|
353
|
+
border: 'none',
|
|
354
|
+
outline: 'none',
|
|
355
|
+
} }, { children: [errorMessage && (_jsx("div", __assign({ style: {
|
|
356
|
+
fontFamily: theme.fontFamily,
|
|
357
|
+
color: theme.primaryTextColor,
|
|
358
|
+
fontSize: 15,
|
|
359
|
+
fontWeight: '400',
|
|
360
|
+
} }, { children: _jsx("div", __assign({ style: {
|
|
361
|
+
padding: 30,
|
|
362
|
+
// TODO: change color
|
|
363
|
+
background: 'rgba(0,0,0,0.02)',
|
|
364
|
+
display: 'inline-block',
|
|
365
|
+
flex: 0,
|
|
366
|
+
borderRadius: 6,
|
|
367
|
+
} }, { children: errorMessage })) }))), _jsx("div", __assign({ style: {
|
|
368
|
+
height: 'calc(100% - 60px)',
|
|
369
|
+
overflow: 'scroll',
|
|
370
|
+
padding: 0,
|
|
371
|
+
margin: 0,
|
|
372
|
+
border: 'none',
|
|
373
|
+
outline: 'none',
|
|
374
|
+
} }, { children: _jsxs("table", __assign({ style: {
|
|
375
|
+
padding: 0,
|
|
376
|
+
margin: 0,
|
|
377
|
+
border: 'none',
|
|
378
|
+
outline: 'none',
|
|
379
|
+
borderSpacing: 0,
|
|
380
|
+
} }, { children: [_jsx("thead", __assign({ style: {
|
|
381
|
+
position: 'sticky',
|
|
382
|
+
// TODO: change color
|
|
383
|
+
background: theme.backgroundColor,
|
|
384
|
+
top: 0,
|
|
385
|
+
height: 37,
|
|
386
|
+
minHeight: 37,
|
|
387
|
+
maxHeight: 37,
|
|
388
|
+
} }, { children: _jsx("tr", __assign({ style: {
|
|
389
|
+
outline: 'none',
|
|
390
|
+
border: 'none',
|
|
391
|
+
padding: 0,
|
|
392
|
+
margin: 0,
|
|
393
|
+
} }, { children: columns.map(function (column, index) { return (_jsx("th", __assign({ scope: "col", style: {
|
|
394
|
+
textAlign: 'left',
|
|
395
|
+
fontSize: 13,
|
|
396
|
+
height: 37,
|
|
397
|
+
minHeight: 37,
|
|
398
|
+
maxHeight: 37,
|
|
399
|
+
paddingLeft: 12,
|
|
400
|
+
paddingRight: 12,
|
|
401
|
+
paddingTop: 0,
|
|
402
|
+
paddingBottom: 0,
|
|
403
|
+
margin: 0,
|
|
404
|
+
fontWeight: '500',
|
|
405
|
+
// TODO: change color
|
|
406
|
+
boxShadow: "inset 0 -1px 0 ".concat(theme.borderColor),
|
|
407
|
+
// TODO: change color
|
|
408
|
+
color: theme.primaryTextColor,
|
|
409
|
+
outline: 'none',
|
|
410
|
+
border: 'none',
|
|
411
|
+
} }, { children: column.label }), index)); }) })) })), _jsx("tbody", __assign({ style: {
|
|
412
|
+
// TODO: change color
|
|
413
|
+
backgroundColor: theme.backgroundColor,
|
|
414
|
+
} }, { children: newRows.map(function (row, rowIndex) { return (_jsx("tr", { children: columns.map(function (column, columnIndex) { return (_jsx("td", __assign({ style: {
|
|
415
|
+
padding: 12,
|
|
416
|
+
whiteSpace: 'nowrap',
|
|
417
|
+
fontSize: 13,
|
|
418
|
+
color: theme.secondaryTextColor,
|
|
419
|
+
// TODO: change color
|
|
420
|
+
borderBottom: "1px solid ".concat(theme.borderColor, " !important"),
|
|
421
|
+
outline: 'none',
|
|
422
|
+
} }, { children: typeof row[column.field] === 'object'
|
|
423
|
+
? JSON.stringify(row[column.field]).length > 55
|
|
424
|
+
? JSON.stringify(row[column.field]).substring(0, 52) + '...'
|
|
425
|
+
: JSON.stringify(row[column.field])
|
|
426
|
+
: row[column.field].length > 55
|
|
427
|
+
? row[column.field].substring(0, 52) + '...'
|
|
428
|
+
: row[column.field] }), columnIndex)); }) }, rowIndex)); }) }))] })) })), _jsx("div", __assign({ style: {
|
|
429
|
+
height: 60,
|
|
430
|
+
// TODO: change color
|
|
431
|
+
background: theme.backgroundColor,
|
|
432
|
+
} }, { children: rows.length ? (_jsxs("div", __assign({ style: {
|
|
433
|
+
display: 'flex',
|
|
434
|
+
flexDirection: 'column',
|
|
435
|
+
height: 60,
|
|
436
|
+
border: 'none',
|
|
437
|
+
} }, { children: [_jsx("div", { style: {
|
|
438
|
+
height: 1,
|
|
439
|
+
// TODO: change color
|
|
440
|
+
background: theme.borderColor,
|
|
441
|
+
} }), _jsxs("div", __assign({ style: { marginLeft: 0 } }, { children: [_jsx("button", __assign({ type: "button", onClick: downloadCSV, style: {
|
|
442
|
+
borderRadius: 6,
|
|
443
|
+
// TODO: change color
|
|
444
|
+
backgroundColor: theme.primaryButtonColor,
|
|
445
|
+
paddingLeft: '1rem',
|
|
446
|
+
paddingRight: '1rem',
|
|
447
|
+
paddingTop: '0.5rem',
|
|
448
|
+
paddingBottom: '0.5rem',
|
|
449
|
+
fontSize: '0.875rem',
|
|
450
|
+
fontWeight: '600',
|
|
451
|
+
// TODO: change color
|
|
452
|
+
color: theme.backgroundColor,
|
|
453
|
+
outline: 'none',
|
|
454
|
+
border: 'none',
|
|
455
|
+
cursor: 'pointer',
|
|
456
|
+
marginTop: 14,
|
|
457
|
+
} }, { children: "Download CSV" })), _jsx("div", {})] }))] }))) : null }))] }))] }))] })) })) })) })));
|
|
458
|
+
}
|
|
459
|
+
var SQLEditorComponent = function (_a) {
|
|
460
|
+
var query = _a.query, setQuery = _a.setQuery, handleRunQuery = _a.handleRunQuery, theme = _a.theme, defineEditorTheme = _a.defineEditorTheme, setEditorTheme = _a.setEditorTheme;
|
|
461
|
+
return (_jsxs("div", __assign({ style: {
|
|
462
|
+
background: theme.backgroundColor,
|
|
463
|
+
// maxHeight: 700,
|
|
464
|
+
width: '100%',
|
|
465
|
+
height: '100%',
|
|
466
|
+
// minWidth: 450,
|
|
467
|
+
// overflowY: "scroll",
|
|
468
|
+
// padding: "20px 30px 20px 20px",
|
|
469
|
+
// marginLeft: 20,
|
|
470
|
+
borderTopLeftRadius: 6,
|
|
471
|
+
borderBottomLeftRadius: 6,
|
|
472
|
+
borderTopRightRadius: 0,
|
|
473
|
+
borderBottomRightRadius: 0,
|
|
474
|
+
overflow: 'hidden',
|
|
475
|
+
} }, { children: [_jsx(MonacoEditor, { height: "calc(100% - 50px)", width: "100%", defaultLanguage: "pgsql", defaultValue: "", value: query, loading: _jsx("div", {}), options: {
|
|
476
|
+
wordWrap: 'on',
|
|
477
|
+
minimap: {
|
|
478
|
+
enabled: false,
|
|
479
|
+
},
|
|
480
|
+
padding: { top: 16 },
|
|
481
|
+
}, onChange: function (query) { return setQuery(query); }, beforeMount: function (monaco) { return defineEditorTheme(monaco, theme); }, onMount: setEditorTheme }), _jsx("div", __assign({ style: {
|
|
482
|
+
display: 'flex',
|
|
483
|
+
flexDirection: 'row',
|
|
484
|
+
alignItems: 'center',
|
|
485
|
+
height: 50,
|
|
486
|
+
} }, { children: _jsx("button", __assign({ type: "button", onClick: handleRunQuery, style: {
|
|
487
|
+
borderRadius: 6,
|
|
488
|
+
backgroundColor: theme.primaryButtonColor,
|
|
489
|
+
height: 32,
|
|
490
|
+
width: 100,
|
|
491
|
+
marginLeft: 0,
|
|
492
|
+
// paddingLeft: '1rem',
|
|
493
|
+
// paddingRight: '1rem',
|
|
494
|
+
// paddingTop: '0.5rem',
|
|
495
|
+
// paddingBottom: '0.5rem',
|
|
496
|
+
fontSize: '0.875rem',
|
|
497
|
+
fontWeight: '600',
|
|
498
|
+
color: theme.backgroundColor,
|
|
499
|
+
outline: 'none',
|
|
500
|
+
border: 'none',
|
|
501
|
+
cursor: 'pointer',
|
|
502
|
+
} }, { children: "Run query" })) }))] })));
|
|
503
|
+
};
|
|
504
|
+
var SchemaListComponent = function (_a) {
|
|
505
|
+
var schema = _a.schema, theme = _a.theme;
|
|
506
|
+
return (_jsx("div", __assign({ style: {
|
|
507
|
+
background: theme.backgroundColor,
|
|
508
|
+
// maxHeight: 700,
|
|
509
|
+
width: 250,
|
|
510
|
+
minWidth: 250,
|
|
511
|
+
overflowY: 'scroll',
|
|
512
|
+
height: '100%',
|
|
513
|
+
// maxHeight: "100%",
|
|
514
|
+
paddingLeft: 20,
|
|
515
|
+
paddingRight: 30,
|
|
516
|
+
} }, { children: schema.map(function (elem, index) { return (_jsx(SchemaItem, { elem: elem, theme: theme, index: index }, elem.displayName + index)); }) })));
|
|
517
|
+
};
|
|
518
|
+
function SchemaItem(_a) {
|
|
519
|
+
var elem = _a.elem, theme = _a.theme, index = _a.index;
|
|
520
|
+
var _b = useState(index === 0), isOpen = _b[0], setIsOpen = _b[1];
|
|
521
|
+
var schemaContainerStyle = {
|
|
522
|
+
display: 'flex',
|
|
523
|
+
flexDirection: 'column',
|
|
524
|
+
// WebkitTouchCallout: "none",
|
|
525
|
+
// WebkitUserSelect: "none",
|
|
526
|
+
// KhtmlUserSelect: "none",
|
|
527
|
+
// MozUserSelect: "none",
|
|
528
|
+
// msUserSelect: "none",
|
|
529
|
+
// userSelect: "none",
|
|
530
|
+
};
|
|
531
|
+
var schemaRowStyle = {
|
|
532
|
+
display: 'flex',
|
|
533
|
+
flexDirection: 'row',
|
|
534
|
+
alignItems: 'center',
|
|
535
|
+
width: '100%',
|
|
536
|
+
justifyContent: 'space-between',
|
|
537
|
+
cursor: 'pointer',
|
|
538
|
+
};
|
|
539
|
+
var schemaRowHoverStyle = {
|
|
540
|
+
background: theme.selectUnderlayColor,
|
|
541
|
+
};
|
|
542
|
+
return (_jsxs("div", __assign({ style: schemaContainerStyle }, { children: [_jsxs("div", __assign({ style: __assign(__assign({}, schemaRowStyle), (isOpen && schemaRowHoverStyle)), onClick: function () { return setIsOpen(!isOpen); } }, { children: [_jsx("p", __assign({ style: {
|
|
543
|
+
marginLeft: theme.padding,
|
|
544
|
+
fontSize: 13,
|
|
545
|
+
color: '#384151',
|
|
546
|
+
fontWeight: '500',
|
|
547
|
+
whiteSpace: 'nowrap',
|
|
548
|
+
padding: 0,
|
|
549
|
+
margin: 0,
|
|
550
|
+
textOverflow: 'ellipsis',
|
|
551
|
+
overflow: 'hidden',
|
|
552
|
+
}, title: elem.displayName }, { children: elem.displayName })), _jsx("div", __assign({ style: {
|
|
553
|
+
display: 'flex',
|
|
554
|
+
alignItems: 'center',
|
|
555
|
+
justifyContent: 'center',
|
|
556
|
+
// paddingRight: 25,
|
|
557
|
+
paddingTop: 12,
|
|
558
|
+
paddingBottom: 12,
|
|
559
|
+
paddingLeft: 0,
|
|
560
|
+
cursor: 'pointer',
|
|
561
|
+
} }, { children: isOpen ? (_jsx(ChevronDownIcon, { style: { height: 13, width: 13, color: theme.secondaryTextColor }, "aria-hidden": "true" })) : (_jsx(ChevronRightIcon, { style: { height: 13, width: 13, color: theme.secondaryTextColor }, "aria-hidden": "true" })) }))] })), isOpen ? (_jsx("div", __assign({ style: {
|
|
562
|
+
paddingBottom: theme.padding,
|
|
563
|
+
display: 'flex',
|
|
564
|
+
flexDirection: 'column',
|
|
565
|
+
paddingLeft: theme.padding,
|
|
566
|
+
paddingRight: theme.padding,
|
|
567
|
+
} }, { children: elem.columns.map(function (elem, index) { return (_jsxs("div", __assign({ style: {
|
|
568
|
+
paddingTop: theme.padding,
|
|
569
|
+
display: 'flex',
|
|
570
|
+
flexDirection: 'row',
|
|
571
|
+
alignItems: 'center',
|
|
572
|
+
justifyContent: 'space-between',
|
|
573
|
+
} }, { children: [_jsx("div", __assign({ title: elem.displayName,
|
|
574
|
+
// className="text-gray-500"
|
|
575
|
+
style: {
|
|
576
|
+
fontSize: 12,
|
|
577
|
+
// color: theme.secondaryFontColor,
|
|
578
|
+
whiteSpace: 'nowrap',
|
|
579
|
+
color: theme.secondaryTextColor,
|
|
580
|
+
// color: "#6C727F",
|
|
581
|
+
padding: 0,
|
|
582
|
+
margin: 0,
|
|
583
|
+
textOverflow: 'ellipsis',
|
|
584
|
+
overflow: 'hidden',
|
|
585
|
+
width: 200,
|
|
586
|
+
maxWidth: 200,
|
|
587
|
+
} }, { children: elem.displayName })), _jsx("div", __assign({
|
|
588
|
+
// className="text-gray-500"
|
|
589
|
+
title: elem.displayName, style: {
|
|
590
|
+
fontSize: 12,
|
|
591
|
+
// color: '#6C727F',
|
|
592
|
+
color: theme.secondaryTextColor,
|
|
593
|
+
padding: 0,
|
|
594
|
+
margin: 0,
|
|
595
|
+
} }, { children: elem.fieldType }))] }), elem.displayName + elem.index)); }) }))) : null] })));
|
|
596
|
+
}
|
|
597
|
+
//# sourceMappingURL=SQLEditor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SQLEditor.js","sourceRoot":"","sources":["../src/SQLEditor.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,YAAY,MAAM,sBAAsB,CAAC;AAChD,gCAAgC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACvE,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,UAAU,qBAAqB,CAAC,MAAM;IAC1C,IAAI,MAAM,CAAC;IAEX,QAAQ,MAAM,CAAC,UAAU,EAAE;QACzB,KAAK,EAAE,CAAC,CAAC,OAAO;QAChB,KAAK,EAAE,CAAC,CAAC,OAAO;QAChB,KAAK,EAAE,EAAE,OAAO;YACd,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