@nocobase/plugin-data-visualization 2.0.0-alpha.4 → 2.0.0-alpha.41

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.
Files changed (29) hide show
  1. package/dist/client/00eaa3cac6c22cd9.js +47 -0
  2. package/dist/client/2ba6e739852f8f86.js +10 -0
  3. package/dist/client/8795975cb8946be4.js +10 -0
  4. package/dist/client/924c5f5607998e1c.js +10 -0
  5. package/dist/client/flow/components/AntdFilterSelector.d.ts +34 -0
  6. package/dist/client/flow/{models/ChartPreviewer.d.ts → components/DaraButton.d.ts} +5 -1
  7. package/dist/client/flow/models/ChartBlockModel.d.ts +18 -19
  8. package/dist/client/flow/models/ChartOptionsBuilder.d.ts +3 -5
  9. package/dist/client/flow/models/ChartOptionsBuilder.service.d.ts +45 -3
  10. package/dist/client/flow/models/ChartOptionsPanel.d.ts +1 -0
  11. package/dist/client/flow/models/{ChartEventsEditor.d.ts → EventsEditor.d.ts} +2 -1
  12. package/dist/client/flow/models/QueryBuilder.d.ts +7 -1
  13. package/dist/client/flow/models/QueryBuilder.service.d.ts +19 -0
  14. package/dist/client/flow/resources/ChartResource.d.ts +1 -4
  15. package/dist/client/flow/utils.d.ts +4 -0
  16. package/dist/client/index.js +1 -1
  17. package/dist/client/utils.d.ts +11 -11
  18. package/dist/externalVersion.js +9 -9
  19. package/dist/locale/en-US.json +45 -9
  20. package/dist/locale/zh-CN.json +42 -6
  21. package/dist/node_modules/koa-compose/package.json +1 -1
  22. package/dist/node_modules/moment-timezone/package.json +1 -1
  23. package/package.json +2 -2
  24. package/dist/client/33f0f13fb9c8b63c.js +0 -10
  25. package/dist/client/3d11505334674d35.js +0 -47
  26. package/dist/client/d5982ab2df5b1822.js +0 -10
  27. package/dist/client/e5eee84a69b5014e.js +0 -10
  28. package/dist/client/flow/models/FormItemLite.d.ts +0 -13
  29. package/dist/client/flow/models/queryBuilder.logic.d.ts +0 -25
@@ -7,4 +7,5 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  /// <reference types="react" />
10
- export declare const ChartEventsEditor: import("react").ForwardRefExoticComponent<Omit<Partial<import("../components/CodeEditor").CodeEditorProps & import("react").RefAttributes<import("../components/CodeEditor").CodeEditorHandle>>, "ref"> & import("react").RefAttributes<unknown>>;
10
+ declare const EventsEditor: import("react").ForwardRefExoticComponent<Omit<Partial<import("../components/CodeEditor").CodeEditorProps & import("react").RefAttributes<import("../components/CodeEditor").CodeEditorHandle>>, "ref"> & import("react").RefAttributes<unknown>>;
11
+ export default EventsEditor;
@@ -7,4 +7,10 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import React from 'react';
10
- export declare const QueryBuilder: React.FC;
10
+ export type QueryBuilderRef = {
11
+ validate: () => Promise<any>;
12
+ };
13
+ export declare const QueryBuilder: React.ForwardRefExoticComponent<{
14
+ initialValues?: any;
15
+ onChange?: (v: any) => void;
16
+ } & React.RefAttributes<QueryBuilderRef>>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare function getFieldOptions(dm: any, compile: (v: any) => string, collectionPath?: string[]): any;
10
+ export declare function aliasOf(val: any): string;
11
+ export declare function getFormatterOptionsByField(dm: any, collectionPath: string[] | undefined, dimField: any): {
12
+ label: string;
13
+ value: string;
14
+ }[];
15
+ export declare function getCollectionOptions(dm: any, compile: (v: any) => string): any;
16
+ export declare function validateQuery(query: Record<string, any>): {
17
+ success: boolean;
18
+ message: string;
19
+ };
@@ -19,10 +19,6 @@ export declare class ChartResource<TData = any> extends BaseRecordResource<TData
19
19
  };
20
20
  setQueryParams(query: Record<string, any>, mark?: string): this;
21
21
  setFilter(filter: Record<string, any>): this;
22
- validateQuery(query: Record<string, any>): {
23
- success: boolean;
24
- message: string;
25
- };
26
22
  parseQuery(query: Record<string, any>): {
27
23
  mode: any;
28
24
  sql: any;
@@ -31,6 +27,7 @@ export declare class ChartResource<TData = any> extends BaseRecordResource<TData
31
27
  measures: any;
32
28
  dimensions: any;
33
29
  filter: any;
30
+ orders: any;
34
31
  limit: any;
35
32
  offset: any;
36
33
  };
@@ -31,3 +31,7 @@ export declare const formatters: {
31
31
  value: string;
32
32
  }[];
33
33
  };
34
+ export declare function sleep(ms: number): Promise<void>;
35
+ export declare function appendColon(label: string, lang?: string): string;
36
+ export declare const isDebugEnabled: () => boolean;
37
+ export declare const debugLog: (...args: any[]) => void;