UNPKG

@finos/legend-application-studio

Version:
44 lines 1.77 kB
/** * Copyright (c) 2020-present, Goldman Sachs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { type TreeNodeData } from '@finos/legend-art'; import { type Type, type Table, type Join, type View, Column } from '@finos/legend-graph'; export declare const TABLE_ELEMENT_DND_TYPE = "TABLE_ELEMENT_DND_TYPE"; export declare abstract class TableOrViewTreeNodeData implements TreeNodeData { id: string; label: string; isSelected?: boolean; isOpen?: boolean; childrenIds?: string[]; relation: Table | View; constructor(id: string, label: string, relation: Table | View); } export declare class ColumnNodeData extends TableOrViewTreeNodeData { column: Column; constructor(id: string, label: string, relation: Table | View, column: Column); } export declare class JoinNodeData extends TableOrViewTreeNodeData { join: Join; constructor(id: string, label: string, relation: Table | View, join: Join); } export declare class TableOrViewTreeNodeDragSource { data: TableOrViewTreeNodeData; constructor(data: TableOrViewTreeNodeData); } export declare const TableOrViewSourceTree: React.FC<{ relation: Table | View; selectedType?: Type | undefined; }>; //# sourceMappingURL=TableOrViewSourceTree.d.ts.map