@quillsql/react 2.8.8 → 2.8.9
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/AddToDashboardModal.js +146 -181
- package/dist/BarList.js +36 -44
- package/dist/Chart.d.ts +0 -5
- package/dist/Chart.d.ts.map +1 -1
- package/dist/Chart.js +94 -276
- package/dist/ChartBuilder.d.ts +1 -0
- package/dist/ChartBuilder.d.ts.map +1 -1
- package/dist/ChartBuilder.js +96 -93
- package/dist/ChartEditor.d.ts +2 -1
- package/dist/ChartEditor.d.ts.map +1 -1
- package/dist/ChartEditor.js +14 -21
- package/dist/Context.js +52 -57
- package/dist/Dashboard.d.ts.map +1 -1
- package/dist/Dashboard.js +181 -213
- package/dist/DateRangePicker/Calendar.js +41 -46
- package/dist/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/DateRangePicker/DateRangePicker.js +33 -62
- package/dist/DateRangePicker/DateRangePickerButton.js +14 -17
- package/dist/DateRangePicker/dateRangePickerUtils.js +76 -90
- package/dist/DateRangePicker/index.js +1 -9
- package/dist/PieChart.js +35 -70
- package/dist/QuillProvider.js +4 -7
- package/dist/ReportBuilder.js +120 -129
- package/dist/SQLEditor.d.ts +5 -1
- package/dist/SQLEditor.d.ts.map +1 -1
- package/dist/SQLEditor.js +82 -89
- package/dist/Table.d.ts.map +1 -1
- package/dist/Table.js +64 -66
- package/dist/TableChart.js +17 -45
- package/dist/assets/ArrowDownHeadIcon.js +3 -6
- package/dist/assets/ArrowDownIcon.js +3 -6
- package/dist/assets/ArrowDownRightIcon.js +3 -6
- package/dist/assets/ArrowLeftHeadIcon.js +3 -6
- package/dist/assets/ArrowRightHeadIcon.js +3 -6
- package/dist/assets/ArrowRightIcon.js +3 -6
- package/dist/assets/ArrowUpHeadIcon.js +3 -6
- package/dist/assets/ArrowUpIcon.js +3 -6
- package/dist/assets/ArrowUpRightIcon.js +3 -6
- package/dist/assets/CalendarIcon.js +3 -6
- package/dist/assets/CalendarNormalIcon.js +3 -6
- package/dist/assets/DoubleArrowLeftHeadIcon.js +3 -6
- package/dist/assets/DoubleArrowRightHeadIcon.js +3 -6
- package/dist/assets/ExclamationFilledIcon.js +3 -6
- package/dist/assets/FilterIcon.js +3 -6
- package/dist/assets/LoadingSpinner.js +3 -6
- package/dist/assets/RefreshIcon.js +3 -6
- package/dist/assets/SearchIcon.js +3 -6
- package/dist/assets/UpLeftArrowsIcon.js +3 -6
- package/dist/assets/XCircleIcon.js +3 -6
- package/dist/assets/XIcon.js +3 -6
- package/dist/assets/index.js +21 -49
- package/dist/components/Banner/index.d.ts +3 -0
- package/dist/components/Banner/index.d.ts.map +1 -0
- package/dist/components/Banner/index.js +24 -0
- package/dist/components/BigModal/BigModal.js +13 -39
- package/dist/components/Dropdown/Dropdown.js +24 -53
- package/dist/components/Dropdown/DropdownItem.js +9 -35
- package/dist/components/Dropdown/index.js +2 -11
- package/dist/components/Modal/Modal.js +13 -39
- package/dist/components/Modal/index.js +1 -9
- package/dist/components/QuillCard.js +8 -13
- package/dist/components/ReportBuilder/ColumnSelector.d.ts +19 -0
- package/dist/components/ReportBuilder/ColumnSelector.d.ts.map +1 -0
- package/dist/components/ReportBuilder/ColumnSelector.js +87 -0
- package/dist/components/SqlTextEditor.d.ts.map +1 -1
- package/dist/components/SqlTextEditor.js +30 -13
- package/dist/components/UiComponents.d.ts.map +1 -1
- package/dist/components/UiComponents.js +40 -53
- package/dist/components/selectUtils.js +6 -17
- package/dist/contexts/BaseColorContext.js +3 -6
- package/dist/contexts/HoveredValueContext.js +3 -6
- package/dist/contexts/RootStylesContext.js +3 -6
- package/dist/contexts/SelectedValueContext.js +3 -6
- package/dist/contexts/index.js +4 -15
- package/dist/hooks/index.js +4 -15
- package/dist/hooks/useDashboard.js +10 -15
- package/dist/hooks/useInternalState.js +3 -6
- package/dist/hooks/useOnClickOutside.js +3 -6
- package/dist/hooks/useOnWindowResize.js +4 -7
- package/dist/hooks/useQuill.js +11 -16
- package/dist/hooks/useSelectOnKeyDown.js +4 -7
- package/dist/index.js +13 -33
- package/dist/internals/ReportBuilder/PivotList.js +14 -20
- package/dist/internals/ReportBuilder/PivotModal.d.ts +2 -2
- package/dist/internals/ReportBuilder/PivotModal.d.ts.map +1 -1
- package/dist/internals/ReportBuilder/PivotModal.js +116 -119
- package/dist/internals/ReportBuilder/PivotModal.spec.js +70 -73
- package/dist/lib/font.js +2 -6
- package/dist/lib/index.js +3 -20
- package/dist/lib/inputTypes.js +1 -3
- package/dist/lib/utils.js +8 -19
- package/dist/test-data/tables.d.ts +2 -0
- package/dist/test-data/tables.d.ts.map +1 -0
- package/dist/test-data/tables.js +621 -0
- package/dist/utils/aggregate.js +28 -35
- package/dist/utils/axisFormatter.d.ts +20 -0
- package/dist/utils/axisFormatter.d.ts.map +1 -0
- package/dist/utils/axisFormatter.js +185 -0
- package/dist/utils/colorToHex.js +1 -5
- package/dist/utils/dataFetcher.js +2 -8
- package/dist/utils/downloadCSV.js +1 -6
- package/dist/utils/schema.d.ts +22 -0
- package/dist/utils/schema.d.ts.map +1 -0
- package/dist/utils/schema.js +134 -0
- package/dist/utils/textFormatting.d.ts +4 -0
- package/dist/utils/textFormatting.d.ts.map +1 -0
- package/dist/utils/textFormatting.js +38 -0
- package/dist/utils/valueFormatter.d.ts +17 -0
- package/dist/utils/valueFormatter.d.ts.map +1 -0
- package/dist/utils/valueFormatter.js +166 -0
- package/dist/utils/valueFormatterCSV.d.ts +17 -0
- package/dist/utils/valueFormatterCSV.d.ts.map +1 -0
- package/dist/utils/valueFormatterCSV.js +90 -0
- package/package.json +1 -2
package/dist/SQLEditor.d.ts
CHANGED
|
@@ -27,8 +27,12 @@ interface SQLEditorProps {
|
|
|
27
27
|
showAccessControlOptions?: boolean;
|
|
28
28
|
destinationDashboard?: string;
|
|
29
29
|
newQueryEnabled?: boolean;
|
|
30
|
+
isEditMode?: boolean;
|
|
31
|
+
dashboardItem?: any;
|
|
30
32
|
chartBuilderTitle?: string;
|
|
31
33
|
chartBuilderButtonLabel?: string;
|
|
34
|
+
addToDashboardButtonLabel?: string;
|
|
35
|
+
onAddToDashboardComplete?: () => void;
|
|
32
36
|
}
|
|
33
37
|
interface TableComponentProps {
|
|
34
38
|
rows: any[];
|
|
@@ -41,6 +45,6 @@ interface TextInputComponentProps {
|
|
|
41
45
|
id: string;
|
|
42
46
|
placeholder?: string;
|
|
43
47
|
}
|
|
44
|
-
export default function QueryEditor({ containerStyle, ButtonComponent, SecondaryButtonComponent, TextInputComponent, TableComponent,
|
|
48
|
+
export default function QueryEditor({ containerStyle, ButtonComponent, SecondaryButtonComponent, TextInputComponent, TableComponent, newQueryEnabled, LoadingComponent, defaultQuery, onChangeQuery, onChangeData, onChangeColumns, onChangeFields, isEditMode, chartBuilderEnabled, showTableFormatOptions, showDateFieldOptions, showAccessControlOptions, destinationDashboard, chartBuilderTitle, chartBuilderButtonLabel, onAddToDashboardComplete, addToDashboardButtonLabel, dashboardItem, }: SQLEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
45
49
|
export {};
|
|
46
50
|
//# sourceMappingURL=SQLEditor.d.ts.map
|
package/dist/SQLEditor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SQLEditor.d.ts","sourceRoot":"","sources":["../src/SQLEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SQLEditor.d.ts","sourceRoot":"","sources":["../src/SQLEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAUxE,wBAAgB,qBAAqB,CAAC,MAAM,KAAA;;;;;EAoE3C;AA2BD,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,cAAc;IACtB,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC;IAEpC,eAAe,CAAC,EAAE,CAA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G,EAAE,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA+ED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,cAAoC,EACpC,eAAe,EACf,wBAAwB,EACxB,kBAAkB,EAClB,cAAc,EACd,eAAuB,EACvB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,eAAe,EACf,cAAc,EACd,UAAkB,EAClB,mBAA2B,EAC3B,sBAA8B,EAC9B,oBAA4B,EAC5B,wBAAgC,EAChC,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,wBAAwB,EACxB,yBAA8C,EAC9C,aAAyB,GAC1B,EAAE,cAAc,2CA2YhB"}
|
package/dist/SQLEditor.js
CHANGED
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.convertPostgresColumn = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
2
|
// @ts-nocheck
|
|
9
3
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
import { useState, useContext, useEffect } from 'react';
|
|
5
|
+
import MonacoEditor from '@monaco-editor/react';
|
|
12
6
|
// import './nightOwlLight.css';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
function convertPostgresColumn(column) {
|
|
7
|
+
import { ClientContext, SchemaContext, ThemeContext } from './Context';
|
|
8
|
+
import { SpecialTable } from './Table';
|
|
9
|
+
import { getData, getDataFromCloud } from './utils/dataFetcher';
|
|
10
|
+
import ChartBuilder from './ChartBuilder';
|
|
11
|
+
export function convertPostgresColumn(column) {
|
|
18
12
|
let format;
|
|
19
13
|
let fieldType;
|
|
20
14
|
switch (column.dataTypeID) {
|
|
@@ -80,7 +74,6 @@ function convertPostgresColumn(column) {
|
|
|
80
74
|
fieldType,
|
|
81
75
|
};
|
|
82
76
|
}
|
|
83
|
-
exports.convertPostgresColumn = convertPostgresColumn;
|
|
84
77
|
function defineEditorTheme(monaco, theme) {
|
|
85
78
|
monaco.editor.defineTheme('onedark', {
|
|
86
79
|
base: theme.darkMode ? 'vs-dark' : 'vs',
|
|
@@ -106,7 +99,7 @@ function setEditorTheme(editor, monaco) {
|
|
|
106
99
|
console.log('ERROR: ', e);
|
|
107
100
|
}
|
|
108
101
|
}
|
|
109
|
-
const QuillButton = ({ onClick, label, theme, secondary, }) => ((
|
|
102
|
+
const QuillButton = ({ onClick, label, theme, secondary, }) => (_jsx("button", { style: {
|
|
110
103
|
borderRadius: '6px',
|
|
111
104
|
backgroundColor: secondary
|
|
112
105
|
? theme?.secondaryButtonColor || '#F5F5F5'
|
|
@@ -126,7 +119,7 @@ const QuillButton = ({ onClick, label, theme, secondary, }) => ((0, jsx_runtime_
|
|
|
126
119
|
height: 38,
|
|
127
120
|
}, onClick: onClick, children: label }));
|
|
128
121
|
const QuillTextInput = ({ onChange, value, id, placeholder, theme, }) => {
|
|
129
|
-
return ((
|
|
122
|
+
return (_jsx("input", { style: {
|
|
130
123
|
display: 'flex',
|
|
131
124
|
flexDirection: 'row',
|
|
132
125
|
alignItems: 'center',
|
|
@@ -144,26 +137,26 @@ const QuillTextInput = ({ onChange, value, id, placeholder, theme, }) => {
|
|
|
144
137
|
borderRadius: '6px',
|
|
145
138
|
}, id: id, onChange: onChange, value: value, placeholder: placeholder }));
|
|
146
139
|
};
|
|
147
|
-
function QueryEditor({ containerStyle = { height: '100vh' }, ButtonComponent, SecondaryButtonComponent, TextInputComponent, TableComponent,
|
|
148
|
-
const [sqlPrompt, setSqlPrompt] =
|
|
149
|
-
const [isOpen, setIsOpen] =
|
|
150
|
-
const [client] =
|
|
151
|
-
const [theme] =
|
|
152
|
-
const [query, setQuery] =
|
|
153
|
-
const [rows, setRows] =
|
|
154
|
-
const [columns, setColumns] =
|
|
155
|
-
const [fields, setFields] =
|
|
156
|
-
const [schema, setSchema] =
|
|
157
|
-
const [errorMessage, setErrorMessage] =
|
|
158
|
-
const [sqlResponseLoading, setSqlResponseLoading] =
|
|
159
|
-
const [sqlQueryLoading, setSqlQueryLoading] =
|
|
160
|
-
const [schemaLoading, setSchemaLoading] =
|
|
161
|
-
const [isChartBuilderOpen, setIsChartBuilderOpen] =
|
|
162
|
-
|
|
140
|
+
export default function QueryEditor({ containerStyle = { height: '100vh' }, ButtonComponent, SecondaryButtonComponent, TextInputComponent, TableComponent, newQueryEnabled = false, LoadingComponent, defaultQuery, onChangeQuery, onChangeData, onChangeColumns, onChangeFields, isEditMode = false, chartBuilderEnabled = false, showTableFormatOptions = false, showDateFieldOptions = false, showAccessControlOptions = false, destinationDashboard, chartBuilderTitle, chartBuilderButtonLabel, onAddToDashboardComplete, addToDashboardButtonLabel = 'Add to dashboard', dashboardItem = undefined, }) {
|
|
141
|
+
const [sqlPrompt, setSqlPrompt] = useState('');
|
|
142
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
143
|
+
const [client] = useContext(ClientContext);
|
|
144
|
+
const [theme] = useContext(ThemeContext);
|
|
145
|
+
const [query, setQuery] = useState(defaultQuery);
|
|
146
|
+
const [rows, setRows] = useState([]);
|
|
147
|
+
const [columns, setColumns] = useState([]);
|
|
148
|
+
const [fields, setFields] = useState([]);
|
|
149
|
+
const [schema, setSchema] = useContext(SchemaContext);
|
|
150
|
+
const [errorMessage, setErrorMessage] = useState('');
|
|
151
|
+
const [sqlResponseLoading, setSqlResponseLoading] = useState(false);
|
|
152
|
+
const [sqlQueryLoading, setSqlQueryLoading] = useState(false);
|
|
153
|
+
const [schemaLoading, setSchemaLoading] = useState(false);
|
|
154
|
+
const [isChartBuilderOpen, setIsChartBuilderOpen] = useState(false);
|
|
155
|
+
useEffect(() => {
|
|
163
156
|
let isSubscribed = true;
|
|
164
157
|
async function getSchema() {
|
|
165
158
|
setSchemaLoading(true);
|
|
166
|
-
const resp = await
|
|
159
|
+
const resp = await getDataFromCloud(client, `schema2/${client.publicKey}/`, null, 'GET');
|
|
167
160
|
if (isSubscribed) {
|
|
168
161
|
setSchema(resp.tables);
|
|
169
162
|
setSchemaLoading(false);
|
|
@@ -178,7 +171,7 @@ function QueryEditor({ containerStyle = { height: '100vh' }, ButtonComponent, Se
|
|
|
178
171
|
}, []);
|
|
179
172
|
const handleRunSqlPrompt = async () => {
|
|
180
173
|
setSqlResponseLoading(true);
|
|
181
|
-
const resp = await
|
|
174
|
+
const resp = await getDataFromCloud(client, `quillai`, {
|
|
182
175
|
initialQuestion: sqlPrompt,
|
|
183
176
|
});
|
|
184
177
|
setQuery(resp.message);
|
|
@@ -192,11 +185,16 @@ function QueryEditor({ containerStyle = { height: '100vh' }, ButtonComponent, Se
|
|
|
192
185
|
setSqlQueryLoading(true);
|
|
193
186
|
const hostedBody = {
|
|
194
187
|
metadata: client.customerId
|
|
195
|
-
? {
|
|
188
|
+
? {
|
|
189
|
+
query,
|
|
190
|
+
task: 'query',
|
|
191
|
+
orgId: client.customerId,
|
|
192
|
+
clientId: client.publicKey,
|
|
193
|
+
}
|
|
196
194
|
: { query, task: 'query', clientId: client.publicKey },
|
|
197
195
|
};
|
|
198
196
|
const cloudBody = { query };
|
|
199
|
-
const resp = await
|
|
197
|
+
const resp = await getData(client, 'dashquery', 'same-origin', hostedBody, cloudBody);
|
|
200
198
|
if (resp && resp.errorMessage) {
|
|
201
199
|
setSqlQueryLoading(false);
|
|
202
200
|
setErrorMessage('Failed to run SQL query: ' + resp.errorMessage);
|
|
@@ -211,9 +209,9 @@ function QueryEditor({ containerStyle = { height: '100vh' }, ButtonComponent, Se
|
|
|
211
209
|
if (onChangeData) {
|
|
212
210
|
onChangeData(resp.rows && resp.rows.length ? resp.rows : []);
|
|
213
211
|
}
|
|
214
|
-
setColumns(resp.fields.map(elem => convertPostgresColumn(elem)));
|
|
212
|
+
setColumns(resp.fields.map((elem) => convertPostgresColumn(elem)));
|
|
215
213
|
if (onChangeColumns) {
|
|
216
|
-
onChangeColumns(resp.fields.map(elem => convertPostgresColumn(elem)));
|
|
214
|
+
onChangeColumns(resp.fields.map((elem) => convertPostgresColumn(elem)));
|
|
217
215
|
}
|
|
218
216
|
setFields(resp.fields);
|
|
219
217
|
if (onChangeFields) {
|
|
@@ -241,7 +239,7 @@ function QueryEditor({ containerStyle = { height: '100vh' }, ButtonComponent, Se
|
|
|
241
239
|
csvRows.push(fields.join(','));
|
|
242
240
|
// Data rows
|
|
243
241
|
for (const row of json) {
|
|
244
|
-
const values = fields.map(field => JSON.stringify(row[field] || ''));
|
|
242
|
+
const values = fields.map((field) => JSON.stringify(row[field] || ''));
|
|
245
243
|
csvRows.push(values.join(','));
|
|
246
244
|
}
|
|
247
245
|
// Create CSV string and create a 'blob' with it
|
|
@@ -256,48 +254,49 @@ function QueryEditor({ containerStyle = { height: '100vh' }, ButtonComponent, Se
|
|
|
256
254
|
downloadLink.click();
|
|
257
255
|
document.body.removeChild(downloadLink);
|
|
258
256
|
};
|
|
259
|
-
|
|
257
|
+
useEffect(() => {
|
|
260
258
|
if (onChangeQuery) {
|
|
261
259
|
onChangeQuery(query);
|
|
262
260
|
}
|
|
263
261
|
}, [query]);
|
|
264
262
|
/* rest of your methods */
|
|
265
|
-
return ((
|
|
266
|
-
height: '
|
|
263
|
+
return (_jsxs("div", { style: containerStyle, children: [_jsx("div", { style: {
|
|
264
|
+
height: '100%',
|
|
267
265
|
display: 'flex',
|
|
268
266
|
flexDirection: 'column',
|
|
269
267
|
padding: 0,
|
|
270
|
-
}, children: (
|
|
268
|
+
}, children: _jsx("div", { style: { height: '100%', display: 'flex', flexDirection: 'column' }, children: _jsxs("div", { style: {
|
|
271
269
|
width: '100%',
|
|
272
270
|
display: 'flex',
|
|
273
271
|
height: '100%',
|
|
274
272
|
flexDirection: 'row',
|
|
275
|
-
}, children: [(
|
|
273
|
+
}, children: [_jsx(SchemaListComponent, { schema: schema, theme: theme, LoadingComponent: LoadingComponent, loading: schemaLoading }), _jsxs("div", { style: {
|
|
276
274
|
display: 'flex',
|
|
275
|
+
gap: 12,
|
|
277
276
|
flexDirection: 'column',
|
|
278
277
|
width: 'calc(100% - 250px)',
|
|
278
|
+
height: '100%',
|
|
279
279
|
overflowX: 'hidden',
|
|
280
|
-
}, children: [(
|
|
280
|
+
}, children: [_jsxs("div", { style: {
|
|
281
281
|
// TODO: change color
|
|
282
|
-
height: 80,
|
|
283
282
|
background: 'white',
|
|
284
283
|
display: 'flex',
|
|
285
284
|
flexDirection: 'row',
|
|
286
285
|
alignItems: 'center',
|
|
287
|
-
}, children: [(
|
|
288
|
-
height: 'calc(50% - 40px)',
|
|
286
|
+
}, children: [_jsx("div", { style: { minWidth: 440, marginRight: 10 }, children: (TextInputComponent && (_jsx(TextInputComponent, { id: "ai-search", value: sqlPrompt, onChange: (e) => setSqlPrompt(e.target.value), placeholder: "Ask a question..." }))) || (_jsx(QuillTextInput, { id: "ai-search", value: sqlPrompt, onChange: (e) => setSqlPrompt(e.target.value), placeholder: "Ask a question...", theme: theme })) }), (ButtonComponent && (_jsx(ButtonComponent, { onClick: handleRunSqlPrompt, label: "Ask AI" }))) || (_jsx(QuillButton, { theme: theme, onClick: handleRunSqlPrompt, label: "Ask AI" }))] }), _jsx("div", { style: { height: 'calc(50% - 40px)' }, children: _jsx(SQLEditorComponent, { query: query, setQuery: setQuery, handleRunQuery: handleRunQuery, newQueryEnabled: newQueryEnabled, handleClearQuery: handleClearQuery, theme: theme, defineEditorTheme: defineEditorTheme, setEditorTheme: setEditorTheme, ButtonComponent: ButtonComponent, SecondaryButtonComponent: SecondaryButtonComponent, loading: sqlResponseLoading, LoadingComponent: LoadingComponent }) }), _jsxs("div", { style: {
|
|
289
287
|
display: 'flex',
|
|
290
288
|
flexDirection: 'column',
|
|
289
|
+
height: 'calc(50% - 80px)',
|
|
291
290
|
padding: 0,
|
|
292
291
|
margin: 0,
|
|
293
292
|
border: 'none',
|
|
294
293
|
outline: 'none',
|
|
295
|
-
}, children: [errorMessage && ((
|
|
294
|
+
}, children: [errorMessage && (_jsx("div", { style: {
|
|
296
295
|
fontFamily: theme?.fontFamily,
|
|
297
296
|
color: theme?.primaryTextColor,
|
|
298
297
|
fontSize: 15,
|
|
299
298
|
fontWeight: '400',
|
|
300
|
-
}, children: (
|
|
299
|
+
}, children: _jsx("div", { style: {
|
|
301
300
|
padding: 30,
|
|
302
301
|
// TODO: change color
|
|
303
302
|
background: 'rgba(0,0,0,0.02)',
|
|
@@ -308,19 +307,20 @@ function QueryEditor({ containerStyle = { height: '100vh' }, ButtonComponent, Se
|
|
|
308
307
|
fontFamily: theme?.fontFamily,
|
|
309
308
|
}, children: errorMessage }) })), errorMessage
|
|
310
309
|
? null
|
|
311
|
-
: (TableComponent && ((
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
310
|
+
: (TableComponent && (_jsx(TableComponent, { rows: rows, columns: columns, height: "calc(100%)" }))) || (_jsx(SpecialTable, { rows: rows, columns: columns, height: "calc(100%)", LoadingComponent: LoadingComponent, loading: sqlQueryLoading,
|
|
311
|
+
// loading={true}
|
|
312
|
+
theme: theme }))] }), chartBuilderEnabled && rows.length > 0 && (_jsx("div", { style: {
|
|
313
|
+
display: 'flex',
|
|
314
|
+
flexDirection: 'row',
|
|
315
|
+
alignItems: 'center',
|
|
316
|
+
justifyContent: 'flex-end',
|
|
317
|
+
width: '100%',
|
|
318
|
+
height: '70px',
|
|
319
|
+
gap: '8px',
|
|
320
|
+
}, children: (ButtonComponent && (_jsx(ButtonComponent, { onClick: handleRunQuery, label: "Run query" }))) || (_jsx(QuillButton, { onClick: () => setIsChartBuilderOpen(true), label: addToDashboardButtonLabel, theme: theme })) }))] })] }) }) }), _jsx(ChartBuilder, { rows: rows, columns: columns, fields: fields, query: query, isEditMode: isEditMode, isOpen: isChartBuilderOpen, setIsOpen: setIsChartBuilderOpen, onAddToDashboardComplete: onAddToDashboardComplete, showTableFormatOptions: showTableFormatOptions, showDateFieldOptions: showDateFieldOptions, showAccessControlOptions: showAccessControlOptions, destinationDashboard: destinationDashboard, title: chartBuilderTitle, button: chartBuilderButtonLabel, buttonLabel: addToDashboardButtonLabel, dashboardItem: dashboardItem })] }));
|
|
320
321
|
}
|
|
321
|
-
exports.default = QueryEditor;
|
|
322
322
|
const SQLEditorComponent = ({ query, setQuery, handleRunQuery, handleClearQuery, defineEditorTheme, setEditorTheme, ButtonComponent, SecondaryButtonComponent, newQueryEnabled, theme, loading, LoadingComponent, }) => {
|
|
323
|
-
return ((
|
|
323
|
+
return (_jsxs("div", { style: {
|
|
324
324
|
background: theme.backgroundColor,
|
|
325
325
|
// maxHeight: 700,
|
|
326
326
|
width: '100%',
|
|
@@ -329,30 +329,32 @@ const SQLEditorComponent = ({ query, setQuery, handleRunQuery, handleClearQuery,
|
|
|
329
329
|
// overflowY: "scroll",
|
|
330
330
|
// padding: "20px 30px 20px 20px",
|
|
331
331
|
// marginLeft: 20,
|
|
332
|
+
display: 'flex',
|
|
333
|
+
flexDirection: 'column',
|
|
334
|
+
gap: 12,
|
|
332
335
|
borderTopLeftRadius: 6,
|
|
333
336
|
borderBottomLeftRadius: 6,
|
|
334
337
|
borderTopRightRadius: 0,
|
|
335
338
|
borderBottomRightRadius: 0,
|
|
336
339
|
overflow: 'hidden',
|
|
337
|
-
}, children: [loading ? ((
|
|
340
|
+
}, children: [loading ? (_jsxs("div", { style: {
|
|
338
341
|
height: 'calc(100% - 70px)',
|
|
339
342
|
width: '100%',
|
|
340
343
|
display: 'flex',
|
|
341
344
|
alignItems: 'center',
|
|
342
345
|
justifyContent: 'center',
|
|
343
346
|
background: '#F9F9F9',
|
|
344
|
-
}, children: [LoadingComponent && (
|
|
347
|
+
}, children: [LoadingComponent && _jsx(LoadingComponent, {}), !LoadingComponent && (_jsxs("svg", { width: "24", height: "24", children: [_jsx("circle", { cx: "12", cy: "12", r: "9.375", strokeWidth: "3.75", strokeDasharray: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 2 / 3)", strokeDashoffset: "calc(2 * 3.14 * 9.375 / 6)", stroke: theme?.primaryTextColor || '#364153', fill: "none", transform: "rotate(-90 12 12)", children: _jsx("animateTransform", { attributeName: "transform", attributeType: "XML", type: "rotate", from: "-180 12 12", to: "180 12 12", dur: "0.8s", repeatCount: "indefinite" }) }), _jsx("circle", { cx: "12", cy: "12", r: "9.375", strokeWidth: "3.75", strokeDasharray: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 1 / 3)", strokeDashoffset: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 2 / 3)", stroke: '#ADB1B9', fill: "none", transform: "rotate(90 12 12)", children: _jsx("animateTransform", { attributeName: "transform", attributeType: "XML", type: "rotate", from: "0 12 12", to: "360 12 12", dur: "0.8s", repeatCount: "indefinite" }) })] }))] })) : (_jsx(MonacoEditor, { height: "calc(100% - 70px)", width: "100%", defaultLanguage: "pgsql", defaultValue: "", value: query, loading: _jsx("div", {}), options: {
|
|
345
348
|
wordWrap: 'on',
|
|
346
349
|
minimap: {
|
|
347
350
|
enabled: false,
|
|
348
351
|
},
|
|
349
352
|
padding: { top: 16 },
|
|
350
|
-
}, onChange: query => setQuery(query), beforeMount: monaco => defineEditorTheme(monaco, theme), onMount: setEditorTheme })), (
|
|
353
|
+
}, onChange: (query) => setQuery(query), beforeMount: (monaco) => defineEditorTheme(monaco, theme), onMount: setEditorTheme })), _jsx("div", { style: {
|
|
351
354
|
display: 'flex',
|
|
352
355
|
flexDirection: 'row',
|
|
353
356
|
alignItems: 'center',
|
|
354
|
-
|
|
355
|
-
}, children: (0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex', gap: 10 }, children: [(ButtonComponent && ((0, jsx_runtime_1.jsx)(ButtonComponent, { onClick: handleRunQuery, label: "Run query" }))) || ((0, jsx_runtime_1.jsx)(QuillButton, { onClick: handleRunQuery, label: "Run query", theme: theme })), newQueryEnabled && ((0, jsx_runtime_1.jsx)("div", { children: (SecondaryButtonComponent && ((0, jsx_runtime_1.jsx)(SecondaryButtonComponent, { onClick: handleClearQuery, label: "Clear query" }))) || ((0, jsx_runtime_1.jsx)(QuillButton, { secondary: true, onClick: handleClearQuery, label: "Clear query", theme: theme })) }))] }) })] }));
|
|
357
|
+
}, children: _jsxs("div", { style: { display: 'flex', gap: 10 }, children: [(ButtonComponent && (_jsx(ButtonComponent, { onClick: handleRunQuery, label: "Run query" }))) || (_jsx(QuillButton, { onClick: handleRunQuery, label: "Run query", theme: theme })), newQueryEnabled && (_jsx("div", { children: (SecondaryButtonComponent && (_jsx(SecondaryButtonComponent, { onClick: handleClearQuery, label: "Clear query" }))) || (_jsx(QuillButton, { secondary: true, onClick: handleClearQuery, label: "Clear query", theme: theme })) }))] }) })] }));
|
|
356
358
|
};
|
|
357
359
|
const styles = {
|
|
358
360
|
columnHeader: {
|
|
@@ -388,7 +390,7 @@ const styles = {
|
|
|
388
390
|
};
|
|
389
391
|
const SchemaListComponent = ({ schema, theme, loading, LoadingComponent }) => {
|
|
390
392
|
if (loading) {
|
|
391
|
-
return ((
|
|
393
|
+
return (_jsxs("div", { style: {
|
|
392
394
|
background: theme.backgroundColor,
|
|
393
395
|
// maxHeight: 700,
|
|
394
396
|
width: 250,
|
|
@@ -402,9 +404,9 @@ const SchemaListComponent = ({ schema, theme, loading, LoadingComponent }) => {
|
|
|
402
404
|
display: 'flex',
|
|
403
405
|
// alignItems: 'center',
|
|
404
406
|
justifyContent: 'center',
|
|
405
|
-
}, children: [(
|
|
407
|
+
}, children: [_jsx("div", { style: { height: 100 } }), LoadingComponent && _jsx(LoadingComponent, {}), !LoadingComponent && (_jsxs("svg", { width: "24", height: "24", children: [_jsx("circle", { cx: "12", cy: "12", r: "9.375", strokeWidth: "3.75", strokeDasharray: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 2 / 3)", strokeDashoffset: "calc(2 * 3.14 * 9.375 / 6)", stroke: theme?.primaryTextColor || '#364153', fill: "none", transform: "rotate(-90 12 12)", children: _jsx("animateTransform", { attributeName: "transform", attributeType: "XML", type: "rotate", from: "-180 12 12", to: "180 12 12", dur: "0.8s", repeatCount: "indefinite" }) }), _jsx("circle", { cx: "12", cy: "12", r: "9.375", strokeWidth: "3.75", strokeDasharray: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 1 / 3)", strokeDashoffset: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 2 / 3)", stroke: '#ADB1B9', fill: "none", transform: "rotate(90 12 12)", children: _jsx("animateTransform", { attributeName: "transform", attributeType: "XML", type: "rotate", from: "0 12 12", to: "360 12 12", dur: "0.8s", repeatCount: "indefinite" }) })] }))] }));
|
|
406
408
|
}
|
|
407
|
-
return ((
|
|
409
|
+
return (_jsx("div", { style: {
|
|
408
410
|
background: theme.backgroundColor,
|
|
409
411
|
// maxHeight: 700,
|
|
410
412
|
width: 250,
|
|
@@ -414,10 +416,10 @@ const SchemaListComponent = ({ schema, theme, loading, LoadingComponent }) => {
|
|
|
414
416
|
// maxHeight: "100%",
|
|
415
417
|
paddingLeft: 20,
|
|
416
418
|
paddingRight: 30,
|
|
417
|
-
}, children: schema.map((elem, index) => ((
|
|
419
|
+
}, children: schema.map((elem, index) => (_jsx(SchemaItem, { elem: elem, theme: theme, index: index }, elem.displayName + index))) }));
|
|
418
420
|
};
|
|
419
421
|
function SchemaItem({ elem, theme, index }) {
|
|
420
|
-
const [isOpen, setIsOpen] =
|
|
422
|
+
const [isOpen, setIsOpen] = useState(index === 0);
|
|
421
423
|
const schemaContainerStyle = {
|
|
422
424
|
display: 'flex',
|
|
423
425
|
flexDirection: 'column',
|
|
@@ -439,7 +441,7 @@ function SchemaItem({ elem, theme, index }) {
|
|
|
439
441
|
const schemaRowHoverStyle = {
|
|
440
442
|
background: theme.selectUnderlayColor,
|
|
441
443
|
};
|
|
442
|
-
return ((
|
|
444
|
+
return (_jsxs("div", { style: schemaContainerStyle, children: [_jsxs("div", { style: { ...schemaRowStyle, ...(isOpen && schemaRowHoverStyle) }, onClick: () => setIsOpen(!isOpen), children: [_jsx("p", { style: {
|
|
443
445
|
marginLeft: theme.padding,
|
|
444
446
|
fontSize: 13,
|
|
445
447
|
color: '#384151',
|
|
@@ -449,8 +451,9 @@ function SchemaItem({ elem, theme, index }) {
|
|
|
449
451
|
margin: 0,
|
|
450
452
|
textOverflow: 'ellipsis',
|
|
451
453
|
overflow: 'hidden',
|
|
454
|
+
userSelect: 'none',
|
|
452
455
|
fontFamily: theme?.fontFamily,
|
|
453
|
-
}, title: elem.displayName, children: elem.displayName }), (
|
|
456
|
+
}, title: elem.displayName, children: elem.displayName }), _jsx("div", { style: {
|
|
454
457
|
display: 'flex',
|
|
455
458
|
alignItems: 'center',
|
|
456
459
|
justifyContent: 'center',
|
|
@@ -459,29 +462,20 @@ function SchemaItem({ elem, theme, index }) {
|
|
|
459
462
|
paddingBottom: 12,
|
|
460
463
|
paddingLeft: 0,
|
|
461
464
|
cursor: 'pointer',
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
// style={{ height: 13, width: 13, color: theme.secondaryTextColor }}
|
|
465
|
-
// aria-hidden="true"
|
|
466
|
-
// />
|
|
467
|
-
(0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: theme.secondaryTextColor, children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M12.53 16.28a.75.75 0 01-1.06 0l-7.5-7.5a.75.75 0 011.06-1.06L12 14.69l6.97-6.97a.75.75 0 111.06 1.06l-7.5 7.5z", clipRule: "evenodd" }) })) : (
|
|
468
|
-
// <ChevronRightIcon
|
|
469
|
-
// style={{ height: 13, width: 13, color: theme.secondaryTextColor }}
|
|
470
|
-
// aria-hidden="true"
|
|
471
|
-
// />
|
|
472
|
-
(0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: theme.secondaryTextColor, children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z", clipRule: "evenodd" }) })) })] }), isOpen ? ((0, jsx_runtime_1.jsx)("div", { style: {
|
|
465
|
+
userSelect: 'none'
|
|
466
|
+
}, children: isOpen ? (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "12", height: "12", fill: theme.secondaryTextColor, children: _jsx("path", { fillRule: "evenodd", d: "M12.53 16.28a.75.75 0 01-1.06 0l-7.5-7.5a.75.75 0 011.06-1.06L12 14.69l6.97-6.97a.75.75 0 111.06 1.06l-7.5 7.5z", clipRule: "evenodd" }) })) : (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "12", height: "12", fill: theme.secondaryTextColor, children: _jsx("path", { fillRule: "evenodd", d: "M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z", clipRule: "evenodd" }) })) })] }), isOpen ? (_jsx("div", { style: {
|
|
473
467
|
paddingBottom: theme.padding,
|
|
474
468
|
display: 'flex',
|
|
475
469
|
flexDirection: 'column',
|
|
476
470
|
paddingLeft: theme.padding,
|
|
477
471
|
paddingRight: theme.padding,
|
|
478
|
-
}, children: elem.columns.map((elem, index) => ((
|
|
472
|
+
}, children: elem.columns.map((elem, index) => (_jsxs("div", { style: {
|
|
479
473
|
paddingTop: theme.padding,
|
|
480
474
|
display: 'flex',
|
|
481
475
|
flexDirection: 'row',
|
|
482
476
|
alignItems: 'center',
|
|
483
477
|
justifyContent: 'space-between',
|
|
484
|
-
}, children: [(
|
|
478
|
+
}, children: [_jsx("div", { title: elem.displayName,
|
|
485
479
|
// className="text-gray-500"
|
|
486
480
|
style: {
|
|
487
481
|
fontSize: 12,
|
|
@@ -496,7 +490,7 @@ function SchemaItem({ elem, theme, index }) {
|
|
|
496
490
|
width: 200,
|
|
497
491
|
maxWidth: 200,
|
|
498
492
|
fontFamily: theme?.fontFamily,
|
|
499
|
-
}, children: elem.displayName }), (
|
|
493
|
+
}, children: elem.displayName }), _jsx("div", {
|
|
500
494
|
// className="text-gray-500"
|
|
501
495
|
title: elem.displayName, style: {
|
|
502
496
|
fontSize: 12,
|
|
@@ -507,4 +501,3 @@ function SchemaItem({ elem, theme, index }) {
|
|
|
507
501
|
fontFamily: theme?.fontFamily,
|
|
508
502
|
}, children: elem.fieldType })] }, elem.displayName + elem.index))) })) : null] }));
|
|
509
503
|
}
|
|
510
|
-
//# sourceMappingURL=SQLEditor.js.map
|
package/dist/Table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../src/Table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../src/Table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAaxE,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,iBAAiB;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,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