@gingkoo/pandora-metabase 1.0.0-alpha.2 → 1.0.0-alpha.3
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/es/store/enum.d.ts
CHANGED
package/lib/es/store/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DatasourceType } from '../types';
|
|
2
2
|
import { TypeEnum, SpecialType, JoinEnum, SQL_COLUMN_TYPE, SortEnum } from './enum';
|
|
3
|
-
export type ToolbarType = TypeEnum | 'filter' | 'summarize' | 'joinData' | 'permissionTable' | 'customColumn' | 'sort' | 'rowLimit' | '
|
|
3
|
+
export type ToolbarType = TypeEnum | 'filter' | 'summarize' | 'joinData' | 'permissionTable' | 'customColumn' | 'sort' | 'rowLimit' | 'union';
|
|
4
4
|
export type MetaListType = MetaData | MetaJoin | MetaCustom | MetaFilter | MetaSummarize | MetaSort | MetaLimit | MetaPermissionTable;
|
|
5
5
|
export type initColumnsType = MetaData_ColumnsType;
|
|
6
6
|
interface ExpressionsType {
|
package/lib/es/types.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ import type { MetaListType, ToolbarType } from './store/types';
|
|
|
2
2
|
import { UnionEnum } from './store/enum';
|
|
3
3
|
export interface MetaListProps {
|
|
4
4
|
name: string;
|
|
5
|
-
type: 'group' | '
|
|
6
|
-
|
|
5
|
+
type: 'group' | 'union';
|
|
6
|
+
union?: UnionEnum;
|
|
7
|
+
subquery?: MetaListType[];
|
|
7
8
|
list: MetaListType[];
|
|
8
9
|
}
|
|
9
10
|
export interface MetabaseProps {
|
package/lib/es/utils.d.ts
CHANGED
|
@@ -16,4 +16,6 @@ export declare const getHelper: (list: MetaListType[], item: MetaListType) => He
|
|
|
16
16
|
export declare const getSubColumns: (metaList: any) => DataType[];
|
|
17
17
|
export declare const changeTableAlias: (list: MetaListType[], curObj: MetaData_TableType) => MetaListType[];
|
|
18
18
|
export declare const changeFieldAlias: (list: MetaListType[], curObj: MetaData_ColumnsType) => MetaListType[];
|
|
19
|
+
export declare function splitByUnion(data: any): any[];
|
|
20
|
+
export declare function reassembleByUnion(target: any[]): any[];
|
|
19
21
|
export {};
|