@gingkoo/pandora-metabase 0.0.1-alpha.17 → 0.0.1-alpha.18

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.
@@ -5,5 +5,5 @@ interface PropsType {
5
5
  expression: string;
6
6
  onChange: (formula: string) => void;
7
7
  }
8
- declare const _default: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
9
- export default _default;
8
+ declare const ExpressionEditor: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
9
+ export default ExpressionEditor;
@@ -42,5 +42,5 @@ interface PropsType {
42
42
  }) => void;
43
43
  didUpdate?: Function;
44
44
  }
45
- declare const _default: ({ data, value, theme, onSelect, isGroup, onGroup, didUpdate, }: PropsType) => import("react/jsx-runtime").JSX.Element;
46
- export default _default;
45
+ declare const SelectJoinColumn: ({ data, value, theme, onSelect, isGroup, onGroup, didUpdate, }: PropsType) => import("react/jsx-runtime").JSX.Element;
46
+ export default SelectJoinColumn;
@@ -11,5 +11,5 @@ interface PropsType {
11
11
  onChange: (reocrd: MetaData_TableType) => void;
12
12
  didUpdate?: Function;
13
13
  }
14
- declare const _default: ({ data, value, onChange, didUpdate }: PropsType) => import("react/jsx-runtime").JSX.Element;
15
- export default _default;
14
+ declare const SelectPermissionTable: ({ data, value, onChange, didUpdate }: PropsType) => import("react/jsx-runtime").JSX.Element;
15
+ export default SelectPermissionTable;
@@ -13,5 +13,5 @@ interface PropsType {
13
13
  onChange: (reocrd: MetaData_TableType) => void;
14
14
  didUpdate?: Function;
15
15
  }
16
- declare const _default: ({ data, value, onChange, didUpdate }: PropsType) => import("react/jsx-runtime").JSX.Element;
17
- export default _default;
16
+ declare const SelectTable: ({ data, value, onChange, didUpdate }: PropsType) => import("react/jsx-runtime").JSX.Element;
17
+ export default SelectTable;
@@ -2,5 +2,5 @@ import { MetaListType } from '../../../store/types';
2
2
  interface PropsType {
3
3
  meta: MetaListType;
4
4
  }
5
- declare const _default: (props: PropsType) => import("react/jsx-runtime").JSX.Element | null;
6
- export default _default;
5
+ declare const NextDom: (props: PropsType) => import("react/jsx-runtime").JSX.Element | null;
6
+ export default NextDom;
@@ -3,5 +3,5 @@ interface PropsType {
3
3
  store?: any;
4
4
  meta: MetaCustom;
5
5
  }
6
- declare const _default: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
7
- export default _default;
6
+ declare const CustomColumn: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
7
+ export default CustomColumn;
@@ -2,5 +2,5 @@ import { MetaFilter } from '../../store/types';
2
2
  interface PropsType {
3
3
  meta: MetaFilter;
4
4
  }
5
- declare const _default: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
6
- export default _default;
5
+ declare const Filter: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
6
+ export default Filter;
@@ -2,5 +2,5 @@ import { MetaJoin } from '../../store/types';
2
2
  interface PropsType {
3
3
  meta: MetaJoin;
4
4
  }
5
- declare const _default: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
6
- export default _default;
5
+ declare const JoinData: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
6
+ export default JoinData;
@@ -2,5 +2,5 @@ import { MetaData } from '../../store/types';
2
2
  interface PropsType {
3
3
  meta: MetaData;
4
4
  }
5
- declare const _default: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
6
- export default _default;
5
+ declare const PermissionTable: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
6
+ export default PermissionTable;
@@ -2,5 +2,5 @@ import { MetaSort } from '../../store/types';
2
2
  interface PropsType {
3
3
  meta: MetaSort;
4
4
  }
5
- declare const _default: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
6
- export default _default;
5
+ declare const Sort: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
6
+ export default Sort;
@@ -7,5 +7,5 @@ export type ValueType = ColumnType & {
7
7
  interface PropsType {
8
8
  meta: MetaSummarize;
9
9
  }
10
- declare const _default: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
11
- export default _default;
10
+ declare const GroupBy: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
11
+ export default GroupBy;
@@ -3,5 +3,5 @@ interface PropsType {
3
3
  store?: any;
4
4
  meta: MetaSummarize;
5
5
  }
6
- declare const _default: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
7
- export default _default;
6
+ declare const Summarize: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
7
+ export default Summarize;
@@ -3,5 +3,5 @@ interface PropsType {
3
3
  store?: any;
4
4
  meta: MetaSummarize;
5
5
  }
6
- declare const _default: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
7
- export default _default;
6
+ declare const SelectIndex: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
7
+ export default SelectIndex;
@@ -2,5 +2,5 @@ import { MetaData } from '../../store/types';
2
2
  interface PropsType {
3
3
  meta: MetaData;
4
4
  }
5
- declare const _default: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
6
- export default _default;
5
+ declare const TableData: (props: PropsType) => import("react/jsx-runtime").JSX.Element;
6
+ export default TableData;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface ContextProps {
3
+ store?: any;
4
+ }
5
+ interface ProviderProps {
6
+ value: ContextProps;
7
+ children: React.ReactNode;
8
+ }
9
+ export declare const Provider: ({ value, children }: ProviderProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const useStore: any;
11
+ export {};
@@ -0,0 +1,7 @@
1
+ export interface TableFieldsType {
2
+ dataId: string;
3
+ [name: string]: any;
4
+ }
5
+ export declare const SummarizeAlias = "source";
6
+ declare const useStore: () => any;
7
+ export default useStore;
package/lib/es/index.d.ts CHANGED
@@ -1,4 +1,13 @@
1
- export { default as Metabase } from './metabase';
2
- export * from './types';
3
- export * from './store/types';
4
- export * from './store/helper';
1
+ import React from 'react';
2
+ export { restoreStructure, handleSqlStruct, compressionStructure } from './store/helper';
3
+ import './locale/en';
4
+ import './locale/zh';
5
+ import type { MetabaseProps, SqlVisionBuilderRef } from './types';
6
+ /**
7
+ * 规则
8
+ * 1、主表一换 下面全部删除
9
+ * 2、关联如果动了表或者删除了 下面的关联都删除
10
+ * 3、关联如果动了表或者删除了 下面对应排序用到的对应的字段也删除 todo. 未完成 因为有可能关联里面选一样的表 还不知道怎么搞
11
+ */
12
+ declare const SqlVisionBuilder: React.ForwardRefExoticComponent<MetabaseProps & React.RefAttributes<SqlVisionBuilderRef>>;
13
+ export default SqlVisionBuilder;