/** @jsx jsx */ import { IconName } from '@blueprintjs/core'; import React from 'react'; import { EditorModel } from '../../model/editormodel'; import { MMELTable } from '../../serialize/interface/supportinterface'; export interface IAdditionalListButton { text: string; icon?: IconName; requireSelected?: boolean; onClick: (id: string) => void; } export interface IField { text?: string; value: string; onChange?: (x: string) => void; extend?: JSX.Element; rows?: number; } export interface INumField { text?: string; value: number; onChange?: (x: number) => void; extend?: JSX.Element; } export interface IComboField { text?: string; options: readonly string[]; value: string; onChange: (x: string) => void; extend?: JSX.Element; noContainer?: boolean; fill?: boolean; } export interface IMultiRefSelectField { filterName: string; text: string; options: string[]; values: Set; add: (x: Set) => void; remove: (x: Set) => void; } export interface IRefSelectField { filterName: string; text: string; options: string[]; value: string; editable?: boolean; onChange?: (x: string) => void; update: (x: number) => void; } export interface IManageHandler { filterName: string; itemName: string; Content: React.FC<{ object: T; model?: EditorModel; setObject: (obj: T) => void; oldid: string; }>; initObj: T; model?: EditorModel; getItems: (filter: string) => IListItem[]; removeItems: (ids: string[]) => void; moveUp?: (id: string) => void; moveDown?: (id: string) => void; addItem: (obj: T) => boolean; updateItem: (oldid: string, obj: T) => boolean; getObjById: (id: string) => T; buttons?: IAdditionalListButton[]; } export interface IViewListInterface { isVisible: boolean; filterName: string; itemName: string; getItems: (filter: string) => IListItem[]; removeItems?: (ids: string[]) => void; moveUp?: (x: string) => void; moveDown?: (x: string) => void; addClicked?: () => void; updateClicked?: (selected: string) => void; size: number; requireDefaultButtons?: boolean; buttons?: IAdditionalListButton[]; } export interface IListItem { id: string; text: string; } export interface IUpdateInterface { isVisible: boolean; Content: React.FC<{ object: T; setObject: (obj: T) => void; model?: EditorModel; table?: MMELTable; oldid: string; }>; object: T; setObject: (obj: T) => void; model?: EditorModel; table?: MMELTable; oldid: string; updateButtonLabel: string; updateButtonIcon: IconName; updateClicked: () => void; cancelClicked: () => void; } export declare const NumberTextField: React.FC; export declare const NormalTextField: React.FC; export declare const NumericComboBox: React.FC<{ options: number[]; value: number; onChange: (x: number) => void; }>; export declare const NormalComboBox: React.FC; export declare const DataTimeTextField: React.FC; export declare const MultiReferenceSelector: React.FC; export declare const ReferenceSelector: React.FC; //# sourceMappingURL=fields.d.ts.map