import { AuditedEntityDto } from '@/proxy/abp' import { PermissionCrudDto } from '@/proxy/form/models' export interface BreakDto { endValue: number startValue: number } export interface BreakStyleDto { color?: string line?: string width: number } export interface ChartAdaptivelayoutDto { height: number width: number keepLabels: boolean } export interface ChartAnimationDto { duration: number easing?: string enabled: boolean maxPointCountSupported: number } export interface ChartAnnotationDto { argument?: string border: ChartBorderDto color?: string description?: string font: ChartFontDto height: number image?: string name?: string offsetX: number offsetY: number paddingLeftRight: number paddingTopBottom: number series?: string text?: string tooltipEnabled: boolean type?: string value?: string width: number wordWrap?: string x: number y: number } export interface ChartArgumentAxisDto { argumentType?: string aggregationInterval?: string grid: ChartAxisGrid hoverMode?: string label: ChartArgumentAxisDto_ChartArgumentAxisLabelDto position?: string title?: string visible: boolean width: number workdaysOnly: boolean } export interface ChartArgumentAxisDto_ChartArgumentAxisLabelDto { displayMode?: string rotationAngle: number overlappingBehavior?: string } export interface ChartAxisGrid { color?: string visible: boolean width: number } export interface ChartBorderDto { color?: string cornerRadius: number dashStyle?: string visible: boolean width: number } export interface ChartCommonAnnotationDto { argument?: string border: ChartBorderDto color?: string description?: string font: ChartFontDto height: number image?: string offsetX: number offsetY: number paddingLeftRight: number paddingTopBottom: number series?: string text?: string tooltipEnabled: boolean type?: string value?: string width: number wordWrap?: string x: number y: number } export interface ChartCommonAxisDto { grid: ChartAxisGrid title?: string visible: boolean width: number } export interface ChartCommonDto { adjustOnZoom: boolean containerBackgroundColor?: string palette?: string paletteExtensionMode?: string defaultPane?: string disabled: boolean theme?: string } export interface ChartCommonPaneDto { backgroundColor?: string } export interface ChartCommonSeriesSettingsDto { argumentField?: string axis?: string barOverlapGroup?: string barPadding: number barWidth: number color?: string cornerRadius: number dashStyle?: string ignoreEmptyPoints: boolean pane?: string rangeValue1Field?: string rangeValue2Field?: string selectionMode?: string showInLegend: boolean type?: string valueField?: string visible: boolean width: number label: ChartLabelDto } export interface ChartCrosshairDto { color?: string dashStyle?: string enabled: boolean width: number horizontalLine: ChartCrosshairLineDto label: ChartLabelDto verticalLine: ChartCrosshairLineDto } export interface ChartCrosshairLineDto { color?: string dashStyle?: string label: ChartLabelDto visible: boolean width: number } export interface ChartDataRequestDto { listFormCode: string } export interface ChartDataSourceDto { query?: string } export interface ChartDragBoxStyle { color?: string opacity: number } // export interface ChartDto extends AuditedEntityDto { // listFormCode?: string // userId?: string // roleId?: string // cultureName?: string // commonJson?: string // commonDto: ChartCommonDto // adaptiveLayoutJson?: string // adaptivelayoutDto: ChartAdaptivelayoutDto // animationJson?: string // animationDto: ChartAnimationDto // annotationsJson?: string // annotationsDto: ChartAnnotationDto[] // argumentAxisJson?: string // argumentAxisDto: ChartArgumentAxisDto // commonAnnotationsSettingsJson?: string // commonAnnotationSettingsDto: ChartCommonAnnotationDto // commonAxisSettingsJson?: string // commonAxisSettingsDto: ChartCommonAxisDto // commonPaneSettingsJson?: string // commonPaneSettingsDto: ChartCommonPaneDto // commonSeriesSettingsJson?: string // commonSeriesSettingsDto: ChartCommonSeriesSettingsDto // crosshairJson?: string // crosshairDto: ChartCrosshairDto // exportJson?: string // exportDto: ChartExportDto // legendJson?: string // legendDto: ChartLegendDto // marginJson?: string // marginDto: ChartMarginDto // panesJson?: string // panesDto: ChartPanesDto[] // scrollBarJson?: string // scrollBarDto: ChartScrollBarDto // seriesJson?: string // seriesDto: ChartSeriesDto[] // sizeJson?: string // sizeDto: ChartSizeDto // titleJson?: string // titleDto: ChartTitleDto // tooltipJson?: string // tooltipDto: ChartTooltipDto // valueAxisJson?: string // valueAxisDto: ChartValueAxisDto[] // zoomAndPanJson?: string // zoomAndPanDto: ChartZoomAndPanDto // permissionJson?: string // permissionDto: PermissionCrudDto // isTenant: boolean // isBranch: boolean // isOrganizationUnit: boolean // } // export interface ChartEditDto extends ChartDto { // editType: string // dataSourceJson?: string // dataSourceDto: ChartDataSourceDto // dataSourceCode?: string // } export interface ChartExportDto { backgroundColor?: string enabled: boolean margin: number printingEnabled: boolean } export interface ChartFontDto { color?: string family?: string size: number weight: number } export interface ChartLabelDto { backgroundColor?: string customizeText?: string font?: ChartFontDto | null visible: boolean format?: string } export interface ChartLegendDto { backgroundColor?: string border: ChartBorderDto columnCount: number orientation?: string position?: string rowCount: number title?: string visible: boolean } export interface ChartMarginDto { bottom: number left: number right: number top: number } export interface ChartOptionsRequestDto { listFormCode?: string } export interface ChartPanesDto { name: string backgroundColor?: string height: number } export interface ChartScrollBarDto { color?: string offset: number position?: string visible: boolean width: number } export interface ChartSeriesDto { argumentField?: string axis?: string barOverlapGroup?: string barPadding: number barWidth: number color?: string cornerRadius: number dashStyle?: string ignoreEmptyPoints: boolean name?: string pane?: string rangeValue1Field?: string rangeValue2Field?: string selectionMode?: string showInLegend: boolean type?: string valueField?: string summaryType?: string visible: boolean width: number label: ChartLabelDto } export interface ChartSizeDto { useSize: boolean width: number height: number } export interface ChartTitleDto { text?: string verticalAlignment?: string horizontalAlignment?: string subtitle?: string textOverflow?: string wordWrap?: string } export interface ChartTooltipDto { argumentFormat?: string arrowLength: number border: ChartBorderDto color?: string enabled: boolean font: ChartFontDto format?: string location?: string paddingLeftRight: number paddingTopBottom: number shared: boolean } export interface ChartValueAxisDto { grid: ChartAxisGrid name?: string position?: string title?: string valueType?: string visible: boolean width: number breaks: BreakDto[] breakStyle: BreakStyleDto type?: string autoBreaksEnabled: boolean maxAutoBreakCount: number } export interface ChartZoomAndPanDto { allowMouseWheel: boolean allowTouchGestures: boolean argumentAxis?: string dragToZoom: boolean panKey?: string valueAxis?: string dragBoxStyle: ChartDragBoxStyle }