import { FormRequestDefine } from '../../shared/hooks'; import { AnyObject } from '../../shared/types/index'; import { DependKeyType } from '../../components/form-render'; export type IFlexibleType = { el: HTMLBaseElement; mode: string; onMove: (result: any) => void; onEnd: (result: any) => void; onStart?: (result: any) => void; style?: AnyObject; }; export declare namespace LowCodeTypes { type VALUE_RELATION = 'EQ' | 'NEQ' | 'CL' | 'NC' | 'NULL' | 'NOT_NULL' | 'BIG' | 'BIGEQ' | 'LESS' | 'LESSEQ'; type EVENT_TYPE = 'SET_VALUE' | 'REPEAT_VALIDATE' | 'IS_SHOW_FIELD' | 'SQLSAVE' | 'API'; type BindEventSettingItem = { event_type: EVENT_TYPE; event_field?: string; params?: { p_value?: string; p_name: string; p_select: VALUE_RELATION; }[]; results?: { p_value: string; p_name: string; }[]; compareMap?: Partial boolean>>; [K: string]: unknown; }; type wordbook = Partial<{ level_num: number; id: string; name: string; render_key: string[]; search_key: string[]; value_key: string; queryParams: string[]; primary_key: string; type: string; level_key: string; link_key: string; link_key_split: string; show_key: string[] | string; conObj: AnyObject[]; conObjFirstLevel: AnyObject[]; setting: Partial<{ cascading: { 'form.name': string; value: string; }[]; }>; }>; type operationalConfig = { operationFormParam: string[]; operationalRule: string; operationalPrecision: string; operationalResult: string; }; type dateOperationalConfig = { scene: 'DIFF' | 'CALC'; precision: string; diffValUnit: 'DAY' | 'MIN' | 'HOUR' | 'DHM'; diffValField: string; startDateField: string; endDateField: string; }; type reactionsConObj = { con: VALUE_RELATION; field_key: string; value: unknown; }; type reactionConfig = { conObj: reactionsConObj[]; } & Partial<{ compareMap: BindEventSettingItem['compareMap']; isRestoreDefault: boolean; sqlExpression: string; showField: string[]; hideField: string[]; requiredField: string[]; notRequiredField: string[]; enabledField: string[]; disabledField: string[]; setValueField: { field?: string; value?: unknown; }[]; __oppositeBindField: reactionConfig; __oppositeTargetField: reactionConfig; }>; type reactionActionType = 'show' | 'hide' | 'required' | 'notRequired' | 'enabled' | 'disabled' | 'setValue'; type reactionAction = { action: reactionActionType; fields: string[]; actionConfig?: Partial<{ restoreDefault: boolean; restoreEmpty: boolean; value: unknown; }>; }; type LowCodeConditions = { field: string; type: VALUE_RELATION; valueType?: 'const' | 'field' | 'range'; value?: any; }; type newReactionConfig = { conditions: LowCodeConditions[]; compareMap?: BindEventSettingItem['compareMap']; sqlExpression?: string; actions: reactionAction[]; }; type selectedSettingConfig = { selectedField: string; children: { value: string; sqlExpression?: string; conditions: LowCodeConditions[]; }[]; }; type switchProperty = { value?: any; describe?: string; }; type showModeType = 'DROPDOWN' | 'H_TILE' | 'V_TILE' | 'TILE' | 'SWITCH' | 'CHECKBOX'; type UrlConfig = { url: string; } & Partial<{ method: FormRequestDefine.RequestType; nameKey: string; valueKey: string; showKey: string; searchKey: string[]; params: AnyObject; dependKey: DependKeyType; [key: string]: any; }>; }