2026-05-27 19:09:05 +00:00
|
|
|
import {
|
|
|
|
|
ListFormWorkflowCriteriaDto,
|
|
|
|
|
SubFormDto,
|
|
|
|
|
WidgetEditDto,
|
2026-07-16 14:01:18 +00:00
|
|
|
SelectCommandTypeEnum,
|
2026-05-27 19:09:05 +00:00
|
|
|
} from '@/proxy/form/models'
|
|
|
|
|
import { ListViewLayoutType } from '@/views/admin/listForm/edit/types'
|
2026-05-03 09:52:22 +00:00
|
|
|
|
|
|
|
|
export interface ListFormWizardColumnItemDto {
|
|
|
|
|
dataField: string
|
|
|
|
|
editorType: string
|
|
|
|
|
editorOptions: string
|
|
|
|
|
editorScript: string
|
|
|
|
|
colSpan: number
|
|
|
|
|
isRequired: boolean
|
2026-06-06 19:52:56 +00:00
|
|
|
includeInEditingForm: boolean
|
2026-05-03 09:52:22 +00:00
|
|
|
dbSourceType: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ListFormWizardColumnGroupDto {
|
|
|
|
|
caption: string
|
|
|
|
|
colCount: number
|
|
|
|
|
items: ListFormWizardColumnItemDto[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ListFormWizardDto {
|
|
|
|
|
wizardName: string
|
|
|
|
|
listFormCode: string
|
|
|
|
|
menuCode: string
|
|
|
|
|
isTenant: boolean
|
|
|
|
|
isBranch: boolean
|
|
|
|
|
isOrganizationUnit: boolean
|
|
|
|
|
allowAdding: boolean
|
|
|
|
|
allowUpdating: boolean
|
|
|
|
|
allowDeleting: boolean
|
|
|
|
|
confirmDelete: boolean
|
|
|
|
|
allowDetail: boolean
|
|
|
|
|
|
|
|
|
|
defaultLayout: ListViewLayoutType
|
|
|
|
|
grid: boolean
|
2026-07-16 08:19:17 +00:00
|
|
|
card: boolean
|
2026-05-03 09:52:22 +00:00
|
|
|
pivot: boolean
|
|
|
|
|
tree: boolean
|
|
|
|
|
chart: boolean
|
|
|
|
|
gantt: boolean
|
|
|
|
|
scheduler: boolean
|
2026-07-16 14:01:18 +00:00
|
|
|
todo: boolean
|
2026-05-03 09:52:22 +00:00
|
|
|
|
|
|
|
|
languageTextMenuEn: string
|
|
|
|
|
languageTextMenuTr: string
|
|
|
|
|
languageTextTitleEn: string
|
|
|
|
|
languageTextTitleTr: string
|
|
|
|
|
languageTextDescEn: string
|
|
|
|
|
languageTextDescTr: string
|
|
|
|
|
languageTextMenuParentEn: string
|
|
|
|
|
languageTextMenuParentTr: string
|
|
|
|
|
permissionGroupName: string
|
|
|
|
|
menuParentCode: string
|
2026-06-06 15:22:14 +00:00
|
|
|
menuParentIcon?: string
|
2026-05-03 09:52:22 +00:00
|
|
|
menuIcon: string
|
|
|
|
|
dataSourceCode: string
|
|
|
|
|
dataSourceConnectionString: string
|
|
|
|
|
selectCommandType: SelectCommandTypeEnum
|
|
|
|
|
selectCommand: string
|
|
|
|
|
keyFieldName: string
|
|
|
|
|
keyFieldDbSourceType: number
|
2026-05-03 11:35:52 +00:00
|
|
|
|
|
|
|
|
// Tree options (required when defaultLayout = 'tree')
|
|
|
|
|
treeKeyExpr?: string
|
|
|
|
|
treeParentIdExpr?: string
|
|
|
|
|
treeAutoExpandAll?: boolean
|
|
|
|
|
|
|
|
|
|
// Gantt options (required when defaultLayout = 'gantt')
|
|
|
|
|
ganttKeyExpr?: string
|
|
|
|
|
ganttParentIdExpr?: string
|
|
|
|
|
ganttAutoExpandAll?: boolean
|
|
|
|
|
ganttTitleExpr?: string
|
|
|
|
|
ganttStartExpr?: string
|
|
|
|
|
ganttEndExpr?: string
|
|
|
|
|
ganttProgressExpr?: string
|
|
|
|
|
|
|
|
|
|
// Scheduler options (required when defaultLayout = 'scheduler')
|
|
|
|
|
schedulerTextExpr?: string
|
|
|
|
|
schedulerStartDateExpr?: string
|
|
|
|
|
schedulerEndDateExpr?: string
|
|
|
|
|
|
2026-07-16 14:01:18 +00:00
|
|
|
// Todo options (required when defaultLayout = 'todo')
|
|
|
|
|
todoTitleExpr: string
|
|
|
|
|
todoStatusExpr: string
|
|
|
|
|
todoDescriptionExpr: string
|
|
|
|
|
todoDueDateExpr: string
|
|
|
|
|
todoTagExpr: string
|
|
|
|
|
todoAssigneeExpr: string
|
|
|
|
|
todoPriorityExpr: string
|
|
|
|
|
todoCompletedExpr: string
|
|
|
|
|
todoOrderExpr: string
|
|
|
|
|
todoStatusOrder: string
|
|
|
|
|
todoAllowDragging: boolean
|
|
|
|
|
|
|
|
|
|
// Workflow options (required when defaultLayout = 'workflow')
|
|
|
|
|
approvalUserFieldName: string
|
|
|
|
|
approvalDateFieldName: string
|
|
|
|
|
approvalStatusFieldName: string
|
|
|
|
|
approvalDescriptionFieldName: string
|
|
|
|
|
approvalIsFilterUserName: boolean
|
|
|
|
|
criteria: ListFormWorkflowCriteriaDto[]
|
|
|
|
|
|
2026-05-03 09:52:22 +00:00
|
|
|
groups?: ListFormWizardColumnGroupDto[]
|
2026-05-27 19:09:05 +00:00
|
|
|
subForms?: SubFormDto[]
|
|
|
|
|
widgets?: WidgetEditDto[]
|
2026-05-03 09:52:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface WizardFileInfoDto {
|
|
|
|
|
fileName: string
|
|
|
|
|
wizardName: string
|
|
|
|
|
listFormCode: string
|
2026-05-03 12:24:46 +00:00
|
|
|
defaultLayout: string
|
|
|
|
|
menuIcon: string
|
2026-05-03 09:52:22 +00:00
|
|
|
createdAt: string
|
|
|
|
|
hasInsertedRecords: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface WizardInsertedRecordsDto {
|
|
|
|
|
languageKeys: string[]
|
|
|
|
|
permissionGroupNames: string[]
|
|
|
|
|
permissionNames: string[]
|
|
|
|
|
menuCodes: string[]
|
|
|
|
|
dataSourceCodes: string[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface WizardSeedFileItemDto {
|
|
|
|
|
dataField: string
|
|
|
|
|
editorType: string
|
|
|
|
|
editorOptions: string
|
|
|
|
|
editorScript: string
|
|
|
|
|
colSpan: number
|
|
|
|
|
isRequired: boolean
|
2026-06-06 19:52:56 +00:00
|
|
|
includeInEditingForm?: boolean
|
2026-05-03 09:52:22 +00:00
|
|
|
dbSourceType: number
|
|
|
|
|
turkishCaption?: string
|
|
|
|
|
englishCaption?: string
|
|
|
|
|
captionName?: string
|
|
|
|
|
lookupDataSourceType?: number
|
|
|
|
|
valueExpr?: string
|
|
|
|
|
displayExpr?: string
|
|
|
|
|
lookupQuery?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface WizardSeedFileGroupDto {
|
|
|
|
|
caption: string
|
|
|
|
|
colCount: number
|
|
|
|
|
items: WizardSeedFileItemDto[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface WizardSeedFileWizardDto extends Omit<ListFormWizardDto, 'groups'> {
|
|
|
|
|
groups?: WizardSeedFileGroupDto[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface WizardSeedFileDto {
|
|
|
|
|
wizard: WizardSeedFileWizardDto
|
|
|
|
|
isDeletedField: boolean
|
|
|
|
|
isCreatedField: boolean
|
|
|
|
|
insertedRecords: WizardInsertedRecordsDto
|
2026-05-27 19:09:05 +00:00
|
|
|
}
|