custom join dialog

This commit is contained in:
Jan Prochazka
2022-07-31 20:09:48 +02:00
parent 2b4120435b
commit 091e91556d
8 changed files with 422 additions and 1 deletions

View File

@@ -4,6 +4,19 @@ export interface PerspectiveConfigColumns {
uncheckedColumns: string[];
}
export interface PerspectiveCustomJoinConfig {
joinid: string;
joinName: string;
baseUniqueName: string;
conid?: string;
database?: string;
refSchemaName?: string;
refTableName: string;
columns: {
baseColumnName: string;
refColumnName: string;
}[];
}
export interface PerspectiveConfig extends PerspectiveConfigColumns {
filters: { [uniqueName: string]: string };
sort: {
@@ -12,6 +25,7 @@ export interface PerspectiveConfig extends PerspectiveConfigColumns {
order: 'ASC' | 'DESC';
}[];
};
customJoins: PerspectiveCustomJoinConfig[];
}
export function createPerspectiveConfig(): PerspectiveConfig {
@@ -19,6 +33,7 @@ export function createPerspectiveConfig(): PerspectiveConfig {
expandedColumns: [],
checkedColumns: [],
uncheckedColumns: [],
customJoins: [],
filters: {},
sort: {},
};