@devtable/dashboard 7.13.0 → 7.14.0

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,5 @@
1
+ /// <reference types="react" />
2
+ import { AnyObject } from '~/types';
3
+ export declare function DataTable({ data }: {
4
+ data: AnyObject[];
5
+ }): JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const DataPreview: import("react").FunctionComponent<{
3
+ id: string;
4
+ }>;
@@ -0,0 +1,2 @@
1
+ import { Sx } from '@mantine/core';
2
+ export declare const TableStyle: Sx;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface IQueryStateMessage {
3
+ queryID: string;
4
+ }
5
+ export declare const QueryStateMessage: ({ queryID }: IQueryStateMessage) => JSX.Element | null;
6
+ export {};
@@ -210,130 +210,7 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
210
210
  remove(index: number): void;
211
211
  replaceByIndex(index: number, replacement: QueryModelInstance): void;
212
212
  downloadAllData(): void;
213
- downloadDataByQueryID(query?: ({
214
- id: string;
215
- name: string;
216
- type: import("./types").DataSourceType;
217
- key: string;
218
- sql: string;
219
- pre_process: string;
220
- post_process: string;
221
- run_by: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
222
- state: "idle" | "loading" | "error";
223
- data: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>>;
224
- error: any;
225
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
226
- readonly valid: boolean;
227
- readonly json: {
228
- id: string;
229
- name: string;
230
- type: import("./types").DataSourceType;
231
- key: string;
232
- sql: string;
233
- run_by: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
234
- pre_process: string;
235
- post_process: string;
236
- };
237
- readonly conditionOptions: {
238
- label: string;
239
- value: string;
240
- group: string;
241
- }[];
242
- readonly unmetRunByConditions: string[];
243
- } & {
244
- readonly runByConditionsMet: boolean;
245
- readonly conditionNames: {
246
- context: string[];
247
- filters: any[];
248
- };
249
- } & {
250
- setName(name: string): void;
251
- setKey(key: string): void;
252
- setType(type: import("./types").DataSourceType): void;
253
- setSQL(sql: string): void;
254
- setRunBy(v: string[]): void;
255
- setPreProcess(v: string): void;
256
- setPostProcess(v: string): void;
257
- } & {
258
- readonly formattedSQL: any;
259
- readonly typedAsSQL: boolean;
260
- readonly typedAsHTTP: boolean;
261
- readonly datasource: any;
262
- } & {
263
- readonly stateMessage: string;
264
- } & {
265
- controller: AbortController;
266
- } & {
267
- runSQL: () => Promise<void>;
268
- runHTTP: () => Promise<void>;
269
- } & {
270
- fetchData: () => Promise<void>;
271
- beforeDestroy(): void;
272
- } & {
273
- afterCreate(): void;
274
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
275
- id: import("mobx-state-tree").ISimpleType<string>;
276
- name: import("mobx-state-tree").ISimpleType<string>;
277
- type: import("mobx-state-tree").ISimpleType<import("./types").DataSourceType>;
278
- key: import("mobx-state-tree").ISimpleType<string>;
279
- sql: import("mobx-state-tree").ISimpleType<string>;
280
- pre_process: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
281
- post_process: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
282
- run_by: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
283
- } & {
284
- state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"idle" | "loading" | "error">, [undefined]>;
285
- data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>;
286
- error: import("mobx-state-tree").IType<any, any, any>;
287
- }, {
288
- readonly valid: boolean;
289
- readonly json: {
290
- id: string;
291
- name: string;
292
- type: import("./types").DataSourceType;
293
- key: string;
294
- sql: string;
295
- run_by: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
296
- pre_process: string;
297
- post_process: string;
298
- };
299
- readonly conditionOptions: {
300
- label: string;
301
- value: string;
302
- group: string;
303
- }[];
304
- readonly unmetRunByConditions: string[];
305
- } & {
306
- readonly runByConditionsMet: boolean;
307
- readonly conditionNames: {
308
- context: string[];
309
- filters: any[];
310
- };
311
- } & {
312
- setName(name: string): void;
313
- setKey(key: string): void;
314
- setType(type: import("./types").DataSourceType): void;
315
- setSQL(sql: string): void;
316
- setRunBy(v: string[]): void;
317
- setPreProcess(v: string): void;
318
- setPostProcess(v: string): void;
319
- } & {
320
- readonly formattedSQL: any;
321
- readonly typedAsSQL: boolean;
322
- readonly typedAsHTTP: boolean;
323
- readonly datasource: any;
324
- } & {
325
- readonly stateMessage: string;
326
- } & {
327
- controller: AbortController;
328
- } & {
329
- runSQL: () => Promise<void>;
330
- runHTTP: () => Promise<void>;
331
- } & {
332
- fetchData: () => Promise<void>;
333
- beforeDestroy(): void;
334
- } & {
335
- afterCreate(): void;
336
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined): void;
213
+ downloadDataByQueryID(id: string): void;
337
214
  refetchDataByQueryID(queryID: string): Promise<void> | undefined;
338
215
  removeQuery(queryID: string): void;
339
216
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "7.13.0",
3
+ "version": "7.14.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const DataPreview: React.FunctionComponent<{
3
- id: string;
4
- }>;