import { FormFieldLabelPosition } from '../form'; export declare enum FieldType { String = 0, Float = 1, Int = 2, Text = 3, Boolean = 4, Date = 5, Time = 6, DateTime = 7, File = 8, Password = 9 } export declare enum SortType { Asc = 0, Desc = 1 } export declare enum FormStatus { View = 0, Edit = 1, Insert = 2, Copy = 3 } export declare enum SearchType { Equal = 0, NotEqual = 1, In = 2, NotIn = 3, Contains = 4, StartWith = 5, EndWith = 6, NotContains = 7, IsNull = 8, IsNotNull = 9 } export declare enum ServiceCode { Success = 200, ValidateError = 300, SystemError = 500 } export interface FieldDefine { name: string; type: FieldType; caption: string; decimal: number; editable: boolean; selectedEditable: boolean; update: boolean; insert: boolean; sortable: boolean; searchable: boolean; key: boolean; show: boolean; excel: boolean; required: boolean; requiredGroup: string; listValues: any[][]; listColors: { [key: string]: string; }; listKendoValues: { [key: string]: any; }[]; listParam: any; listFixParam: any; listName: string; listLong: boolean; listStringValue: boolean; choices: boolean; simpleChoices: boolean; autocompleteChoices: boolean; tree: boolean; locked: boolean; editMode: boolean; autocomplete: boolean; width: any; defaultWidth: number; height: number; dropdownWidth: any; summary: boolean; defaultValue: any; hidden: boolean; image: boolean; imageParams: string; groupName: string; groupFirstItem: boolean; groupFirstEditItem: boolean; colSpan: number; groupCols: number; lineBreak: boolean; searchOnly: boolean; min: number; max: number; lengthMin: number; lengthMax: number; searchRequireMark: string; multiSelectShowAll: boolean; multiSelectMaxShownItems: number; multiSelectRadioMode: boolean; multiSelectCheckMode: boolean; multiSelectCols: number; multiSelectMaxHeight: number; multiSelectLabelPosition: 'top' | 'right'; multiSelectMaxShownItemLength: number; showWeekDay: boolean; } export interface FieldDefineGroup { groupName: string; field: FieldDefine; fields: FieldDefine[]; } export interface SearchDefine { name: string; type: SearchType; value1: string; value2: string; values: any; searchNull: boolean; } export interface FormDefine { backward: boolean; fields: FieldDefine[]; fieldGroups: FieldDefineGroup[]; fieldByNames: { [key: string]: FieldDefine; }; name: string; action: string; pageIndex: number; pageSize: number; sortInfo: { [key: string]: SortType; }; searchInfo: { [key: string]: SearchDefine; }; summaries: { [key: string]: number; }; invalidInfo: { [key: number]: any; }; total: number; optionInsert: boolean; optionCopy: boolean; optionDelete: boolean; optionUpdate: boolean; optionImport: boolean; optionExcel: boolean; optionWord: boolean; optionPDF: boolean; gridHeaderFilterable: boolean; gridHeaderResizable: boolean; gridAutosize: boolean; gridSelection: boolean; gridView: boolean; gridWrapHeader: boolean; gridInCellEditable: boolean; gridExcelColumnSelectable: boolean; inCellEditField: string; optionsMap: { [key: string]: Array; }; singleCols: number; singleLabelPosition: FormFieldLabelPosition; singleHeaderWidth: number; singleOutline: boolean; uploadMaxFilesize: number; maxInputVars: number; formSetting: { [key: string]: any; }; formTemplate: { [key: string]: any; }; searchRequireGroup: { [key: string]: string[]; }; } export interface FormServerData { total: number; data: any[]; summary: { [key: string]: number; }; list: { [key: string]: any; }; extra: any; } export interface BackItem { formName: string; sortInfo: { [key: string]: SortType; }; searchInfo: { [key: string]: SearchDefine; }; pageIndex: number; pageSize: number; path: string; params: { [key: string]: any; }; } export interface User { token: string; name: string; login_id: string; id: number; email: string; roles: string[]; module_permission: { [key: string]: string[]; }; api_path: { [key: string]: string; }; module_path: { [key: string]: string; }; api_module: { [key: string]: string[]; }; } export declare const Locale: { Vietnam: string; England: string; Japan: string; Usa: string; }; export declare const actionDelete = "delete"; export declare const actionUpdate = "update"; export declare const actionBulkUpdate = "bulk_update"; export declare const actionInsert = "insert"; export declare const actionCopy = "copy"; export declare const actionBulkCopy = "bulk_copy"; export declare const actionSetting = "setting"; export declare const actionResetSetting = "reset_setting"; export declare const actionDefine = "define"; export declare const actionDefineWithData = "define_with_data"; export declare const actionData = "data"; export declare const actionExcel = "excel"; export declare const actionExport = "export"; export declare const actionDownload = "download"; export declare const actionImport = "import"; export declare const actionSample = "sample"; export declare const actionParamName = "__action__"; export declare const serialParamName = "__serial__"; export declare const downloadFieldParamName = "__download_field__"; export declare const downloadIdParamName = "__download_id__"; export declare const downloadThumbnailParamName = "__download_thumbnail__"; export declare const requestParamNameSuffix = "[]";