@aliyun-sls/interface
Advanced tools
Comparing version 0.3.7-dev-1 to 0.3.7-dev-10
{ | ||
"name": "@aliyun-sls/interface", | ||
"version": "0.3.7-dev-1", | ||
"version": "0.3.7-dev-10", | ||
"description": "", | ||
@@ -9,4 +9,4 @@ "main": "dist/interface.cjs.js", | ||
"dependencies": { | ||
"@aliyun-sls/i18n": "0.3.7-dev-1" | ||
"@aliyun-sls/i18n": "0.3.7-dev-10" | ||
} | ||
} |
@@ -8,1 +8,2 @@ export * from './timeBtn' | ||
export * from './easyTable' | ||
export * from './svgIcon' |
@@ -57,2 +57,3 @@ import { TimeStateObj } from '../../../components' | ||
datasets: FieldDataSet[] | ||
dataResources: FieldDataSet[] | ||
showAll: boolean | ||
@@ -59,0 +60,0 @@ max?: number |
@@ -15,2 +15,3 @@ import { DashboardChart, DashboardChartState } from "../core/dashboardChart" | ||
color: string | ||
isNew?: boolean | ||
data?: any | ||
@@ -20,15 +21,2 @@ tags?: string[] | ||
export interface AnnotationConfigProps { | ||
show: boolean | ||
annotations: AnnotationProps[] | ||
updateAnnotations: ( | ||
annotation: AnnotationProps, | ||
opType: 'add' | 'update' | 'delete', | ||
originAnnotations?: AnnotationProps[] | ||
) => void | ||
tagsList?: string[] | Array<{ label: string; value: string }> | ||
canAddAnnotation?: boolean | ||
} | ||
export interface AnnotationOverlayButtonProps { | ||
@@ -41,11 +29,13 @@ dashboardChart: DashboardChart | ||
interface CommonMarksRenderProps { | ||
dashboardChart: DashboardChart | ||
annotations: AnnotationProps[] | ||
onChartStateUpdate: (state?: DashboardChartState) => void | ||
updateAnnotations: ( | ||
annotation: AnnotationProps, | ||
opType: 'add' | 'update' | 'delete', | ||
originAnnotations?: AnnotationProps[] | ||
shouldPutData?: boolean, | ||
originAnnotations?: AnnotationProps[], | ||
) => void | ||
tagsList?: string[] | Array<{ label: string; value: string }> | ||
disableMarkers?: boolean | ||
customRenderTooltip?: (mark: AnnotationMarkProps) => JSX.Element | ||
customRenderAnnotationsEditor?: (mark: AnnotationMarkProps) => JSX.Element | ||
} | ||
@@ -64,3 +54,4 @@ | ||
y: number // 相对画布位置 | ||
width: number | ||
width: number // 画布的宽度 用于定位 | ||
height: number // 整个画布的高度 用于定位 | ||
defultOpenFrom: boolean | ||
@@ -73,2 +64,3 @@ } | ||
canDetele: (id: string) => void | ||
customRenderTooltip?: (mark: AnnotationMarkProps) => JSX.Element | ||
} |
@@ -6,3 +6,3 @@ import { ChartNamespace } from './chartNamespace' | ||
import { PieChartType, PieLabelType, TypeOption, ConnectDirection } from '../charts' | ||
import { AnnotationProps } from '../components' | ||
import { AnnotationProps, AnnotationMarkProps } from '../components' | ||
@@ -195,4 +195,7 @@ // 渲染过程中的临时状态 | ||
workspace?: string | ||
project?: string | ||
// resource or dataset | ||
dataset?: string | ||
field?: string | ||
fieldMappings?: string[][] | ||
eventField?: string | ||
@@ -408,2 +411,6 @@ datasetType?: string | ||
hiddenSelectTime: boolean | ||
hiddenChartTime: boolean | ||
hiddenDashboardPadding: boolean | ||
// 隐藏图表右上角下拉菜单 | ||
hiddenChartMenus: boolean | ||
hiddenFilter: boolean | ||
@@ -452,2 +459,4 @@ hiddenToken: boolean | ||
viewChart?: string | ||
disableViewChart: boolean | ||
responsiveMinWidth: number | ||
} | ||
@@ -495,1 +504,47 @@ | ||
} | ||
export interface ToolsConfig { | ||
zoomRangerTool?: ZoomRangerToolConfig | ||
} | ||
// TODO: 目前在SLSChart一些plugin的隐藏和显示都是直接挂在 display 需要收敛到特定的地方 | ||
export interface PluginConfig { | ||
drilldownConfig?: DrilldownConfigProps | ||
annotationConfig?: AnnotationConfigProps | ||
tooltipConfig?: any | ||
zoomConfig?: ZoomnConfigProps | ||
} | ||
export interface ZoomRangerToolConfig { | ||
// type: 'filter' | 'none' | ||
show?: boolean | ||
interval?: number | ||
height?: number | ||
width?: number | ||
} | ||
export interface AnnotationConfigProps { | ||
show?: boolean | ||
annotations: AnnotationProps[] | ||
updateAnnotations: ( | ||
annotation: AnnotationProps, | ||
opType: 'add' | 'update' | 'delete', | ||
shouldPutData?: boolean, | ||
originAnnotations?: AnnotationProps[] | ||
) => void | ||
tagsList?: string[] | Array<{ label: string; value: string }> | ||
customRenderTooltip?: (mark: AnnotationMarkProps) => JSX.Element | ||
customRenderAnnotationsEditor?: (mark: AnnotationMarkProps) => JSX.Element | ||
} | ||
export interface DrilldownConfigProps { | ||
show?: boolean | ||
renderDrilldown?: (v:any) => JSX.Element | ||
} | ||
export interface ZoomnConfigProps { | ||
show?: boolean | ||
matchPoint?: boolean | ||
} | ||
export interface TooltipConfigProps { | ||
show?: boolean | ||
} |
@@ -1,7 +0,12 @@ | ||
import { UseObserverSizeRect } from "../../hooks" | ||
import { AddShapeHolderRef, PreviewHolderRef, HelpLineRef, DashboardOverylayRef } from "../layout" | ||
import { UseObserverSizeRect } from '../../hooks' | ||
import { AddShapeHolderRef, PreviewHolderRef, HelpLineRef, DashboardOverylayRef } from '../layout' | ||
import { LogRequestQueueBase } from '../utils' | ||
import { DashboardChart, ChartSearchToken, DashboardLayoutType } from "./dashboardChart" | ||
import { DashboardEventBase } from "../event" | ||
import { EditOptions } from "../topbar" | ||
import { | ||
DashboardChart, | ||
ChartSearchToken, | ||
DashboardLayoutType, | ||
DashboardConfig, | ||
} from './dashboardChart' | ||
import { DashboardEventBase } from '../event' | ||
import { EditOptions } from '../topbar' | ||
@@ -13,3 +18,3 @@ export interface DashboardStaticObj { | ||
dashboardRef: React.RefObject<HTMLElement> | ||
dashboardOverviewRef:React.RefObject<HTMLElement> | ||
dashboardOverviewRef: React.RefObject<HTMLElement> | ||
dashboardRectRef: React.RefObject<UseObserverSizeRect> | ||
@@ -42,2 +47,4 @@ tagAreaRef?: React.RefObject<HTMLElement> | ||
filterTagNot: string[] | ||
dashboardConfig: DashboardConfig | ||
normalLayoutChartsCache?: DashboardChart[] | null | undefined | ||
} |
@@ -6,9 +6,6 @@ import React from 'react' | ||
import { DataFieldGroup } from '../data' | ||
import { | ||
DashboardChart, | ||
DashboardChartState, | ||
} from './dashboardChart' | ||
import { DashboardChart, DashboardChartState, ToolsConfig, PluginConfig } from './dashboardChart' | ||
import { CustomHandleEventProps } from '../event' | ||
import { DashboardStaticObj } from './dashboardStaticObj' | ||
import { DrilldownVariable, AnnotationConfigProps } from '../components' | ||
import { DrilldownVariable } from '../components' | ||
@@ -42,3 +39,7 @@ export interface GetOptionBuilderProps { | ||
cref?: React.MutableRefObject<any> | ||
annotationConfig?: AnnotationConfigProps | ||
/** | ||
* 图表一些plugin和tools的配置 | ||
*/ | ||
toolsConfig?: ToolsConfig | ||
pluginConfig?: PluginConfig | ||
} | ||
@@ -48,5 +49,5 @@ | ||
dashboardChart: DashboardChart | ||
dataFieldGroups: DataFieldGroup[], | ||
timeObj: TimeStateObj, | ||
isChartEdit: boolean, | ||
dataFieldGroups: DataFieldGroup[] | ||
timeObj: TimeStateObj | ||
isChartEdit: boolean | ||
// width?: number | ||
@@ -103,6 +104,6 @@ // height?: number | ||
// 用于在对chart做保存动作之前的数据处理 | ||
preSaveHandle?: (chart: DashboardChart) => void, | ||
preSaveHandle?: (chart: DashboardChart) => void | ||
// 置灰查询框 | ||
hiddenQueryPanel?: boolean | ||
extraApplyHandle?: boolean, | ||
extraApplyHandle?: boolean | ||
// 自定义事件添加变量时,额外的常驻默认变量 | ||
@@ -109,0 +110,0 @@ extraDefaultFilterKey?: string[] |
@@ -12,2 +12,3 @@ import type { SelectProps, AutoCompleteProps } from '@alifd/next/types/select' | ||
DocumentLinkOption, | ||
FieldOption, | ||
InnerTokenOption, | ||
@@ -166,2 +167,3 @@ NullsConnectValue, | ||
project?: string | ||
fieldOption?: FieldOption, | ||
} | ||
@@ -168,0 +170,0 @@ |
@@ -14,4 +14,2 @@ export interface IBaseLogPreviewer { | ||
pageInfo: { page: number; size: number } | ||
// 正序反序 | ||
isReverse: boolean | ||
onItemClick: ( | ||
@@ -23,2 +21,6 @@ originLog: any, | ||
) => void | ||
// ml 标注映射数组 | ||
mlList: any[] | ||
onMlTagClick: (log: any, props: IMlClickProps) => void | ||
onSelection?: (log: any, props: IMlAddProps) => void | ||
} | ||
@@ -29,1 +31,46 @@ export interface ITableModeProps extends IBaseLogPreviewer { | ||
} | ||
export interface IMlClickProps { | ||
valueTagArr: Array<{ | ||
start: number | ||
end: number | ||
type: string[] // 类型 | ||
}> | ||
event: any | ||
triggerIndex: number // 触发的项 | ||
value: string // 点击的文案 | ||
str: string // 原文 | ||
key:string | ||
} | ||
export interface IMlClickArgs extends IMlClickProps { | ||
targetPosition: { | ||
x: number | ||
y: number | ||
} | ||
log: any | ||
todoMode:'add'|'edit' | ||
} | ||
export interface IMlSelectionArgs extends IMlSelectionProps{ | ||
targetPosition: { | ||
x: number | ||
y: number | ||
} | ||
log: any | ||
todoMode:'add'|'edit' | ||
} | ||
export type IMlTodoInfor = IMlSelectionArgs | IMlClickArgs | ||
export interface IMlSelectionProps extends IMlClickProps { | ||
isCover: boolean // 是否拖拽覆盖 | ||
key: string | ||
} | ||
export type IMlAddProps = | ||
| IMlSelectionProps | ||
| { | ||
event: any | ||
isCover: boolean | ||
key: string | ||
} |
Sorry, the diff of this file is too big to display
200050
102
6913
+ Added@aliyun-sls/i18n@0.3.7-dev-10(transitive)
- Removed@aliyun-sls/i18n@0.3.7-dev-1(transitive)