@wbg-mde/model
Version:
Metadata Editor Model Definitions
41 lines (40 loc) • 1.1 kB
TypeScript
export declare enum HotKey {
cut = 1,
copy = 2,
paste = 3,
selectAll = 4,
delete = 5
}
export declare enum HotKeyComponent {
variableCategory = 1,
projectManager = 2,
externalResource = 3,
resourceGroup = 4,
resourceItem = 5,
variableGrid = 6
}
export interface HotKeyEvent {
key: HotKey;
component: HotKeyComponent;
projectId?: string;
options?: any;
event?: any;
}
export interface HotKeyParams {
component: HotKeyComponent;
options?: any;
}
export declare const ActiveComponent: {
variableCategory: "variables-category";
variableGrid: "variables-grid";
tree: "tree-root";
treeNode: "tree-node";
};
export declare type ActiveComponent = (typeof ActiveComponent)[keyof typeof ActiveComponent];
export declare enum BootstrapHotKeyComponent {
repoCategory = 100
}
export declare const BootstrapActiveComponent: {
repoCategory: "repo-categories";
};
export declare type BootstrapActiveComponent = (typeof BootstrapActiveComponent)[keyof typeof BootstrapActiveComponent];