@finos/legend-studio
Version:
47 lines • 1.89 kB
TypeScript
/**
* 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 { DataElement, type EmbeddedData, type PackageableElement } from '@finos/legend-graph';
import type { EditorStore } from '../../../EditorStore.js';
import { ElementEditorState } from '../ElementEditorState.js';
import { type EmbeddedDataState } from './EmbeddedDataState.js';
export declare enum DATA_TAB_TYPE {
GENERAL = "GENERAL",
STEREOTYPES = "STEREOTYPES",
TAGGED_VALUES = "TAGGED_VALUES"
}
export declare type EmbeddedDataTypeOption = {
value: string;
label: string;
};
export declare class EmbeddedDataEditorState {
/**
* NOTE: used to force component remount on state change
*/
readonly uuid: string;
editorStore: EditorStore;
embeddedData: EmbeddedData;
embeddedDataState: EmbeddedDataState;
constructor(editorStore: EditorStore, embeddedData: EmbeddedData);
}
export declare class PackageableDataEditorState extends ElementEditorState {
embeddedDataState: EmbeddedDataEditorState;
selectedTab: DATA_TAB_TYPE;
constructor(editorStore: EditorStore, element: PackageableElement);
setSelectedTab(val: DATA_TAB_TYPE): void;
get data(): DataElement;
reprocess(newElement: PackageableElement, editorStore: EditorStore): ElementEditorState;
}
//# sourceMappingURL=DataEditorState.d.ts.map