@quickbi/bi-types 3.0.41-beta.8 → 3.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/chart-config.d.ts +378 -0
- package/cjs/component-type.d.ts +488 -0
- package/cjs/cross-table.d.ts +151 -0
- package/cjs/cube/cube-blend.d.ts +22 -0
- package/cjs/cube/cube-links.d.ts +35 -0
- package/cjs/cube/cube-model.d.ts +611 -0
- package/cjs/cube/data-source.d.ts +179 -0
- package/cjs/cube/index.d.ts +9 -0
- package/cjs/cube/table-schema.d.ts +43 -0
- package/cjs/data-panel/base.d.ts +159 -0
- package/cjs/data-panel/data-config.d.ts +236 -0
- package/cjs/data-panel/data-schema-item.d.ts +734 -0
- package/cjs/data-panel/data-schema.d.ts +101 -0
- package/cjs/data-panel/index.d.ts +9 -0
- package/cjs/etl.d.ts +76 -0
- package/cjs/index.d.ts +29 -0
- package/cjs/index.js +88 -61
- package/cjs/open/common/event-types.d.ts +22 -0
- package/cjs/open/common/misc.d.ts +11 -0
- package/cjs/open/common/page-types.d.ts +19 -0
- package/cjs/open/common/tools.d.ts +23 -0
- package/cjs/open/components/component-lifecycle.d.ts +36 -0
- package/cjs/open/components/component-meta.d.ts +27 -0
- package/cjs/open/components/component-props.d.ts +148 -0
- package/cjs/open/components/data-schema.d.ts +53 -0
- package/cjs/open/components/style-schema.d.ts +161 -0
- package/cjs/open/embed/core.d.ts +65 -0
- package/cjs/open/events/event-props.d.ts +33 -0
- package/cjs/open/events/event-schema.d.ts +12 -0
- package/cjs/open/menus/menu-props.d.ts +178 -0
- package/cjs/open/menus/menu-schema.d.ts +35 -0
- package/cjs/router/route-key.d.ts +406 -0
- package/cjs/router/route-tree.d.ts +15 -0
- package/cjs/standard-model.d.ts +497 -0
- package/esm/chart-config.d.ts +378 -0
- package/esm/component-type.d.ts +488 -0
- package/esm/cross-table.d.ts +151 -0
- package/esm/cube/cube-blend.d.ts +22 -0
- package/esm/cube/cube-links.d.ts +35 -0
- package/esm/cube/cube-model.d.ts +611 -0
- package/esm/cube/data-source.d.ts +179 -0
- package/esm/cube/index.d.ts +9 -0
- package/esm/cube/table-schema.d.ts +43 -0
- package/esm/data-panel/base.d.ts +159 -0
- package/esm/data-panel/data-config.d.ts +236 -0
- package/esm/data-panel/data-schema-item.d.ts +734 -0
- package/esm/data-panel/data-schema.d.ts +101 -0
- package/esm/data-panel/index.d.ts +9 -0
- package/esm/etl.d.ts +76 -0
- package/esm/index.d.ts +29 -0
- package/esm/index.mjs +88 -61
- package/esm/open/common/event-types.d.ts +22 -0
- package/esm/open/common/misc.d.ts +11 -0
- package/esm/open/common/page-types.d.ts +19 -0
- package/esm/open/common/tools.d.ts +23 -0
- package/esm/open/components/component-lifecycle.d.ts +36 -0
- package/esm/open/components/component-meta.d.ts +27 -0
- package/esm/open/components/component-props.d.ts +148 -0
- package/esm/open/components/data-schema.d.ts +53 -0
- package/esm/open/components/style-schema.d.ts +161 -0
- package/esm/open/embed/core.d.ts +65 -0
- package/esm/open/events/event-props.d.ts +33 -0
- package/esm/open/events/event-schema.d.ts +12 -0
- package/esm/open/menus/menu-props.d.ts +178 -0
- package/esm/open/menus/menu-schema.d.ts +35 -0
- package/esm/router/route-key.d.ts +406 -0
- package/esm/router/route-tree.d.ts +15 -0
- package/esm/standard-model.d.ts +497 -0
- package/package.json +4 -7
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 图表配置相关的类型定义
|
|
3
|
+
*
|
|
4
|
+
* @author 海狸
|
|
5
|
+
*/
|
|
6
|
+
import type { FieldType } from './data-panel';
|
|
7
|
+
import type { FieldModel } from './standard-model';
|
|
8
|
+
export declare enum NegativeMode {
|
|
9
|
+
negative = "0",
|
|
10
|
+
bracket = "1"
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 数值格式化配置
|
|
14
|
+
*/
|
|
15
|
+
export interface NumberFormat {
|
|
16
|
+
/** 模式:默认为自动适配。0 自动适配;1 自定义模式;2 手工输入 */
|
|
17
|
+
formatModal: '0' | '1' | '2';
|
|
18
|
+
/**
|
|
19
|
+
* 对应 原来为 serie.fmtType
|
|
20
|
+
* formatModal = 0 (自动适配)下, 对应可取值为: CN 中文(默认) KMG 英文 CNT 繁体
|
|
21
|
+
* formatModal = 1 (自定义模式)下, 对应可取值为: None
|
|
22
|
+
* formatModal = 2 (手工输入)下, 对应可取值为: Custom
|
|
23
|
+
*/
|
|
24
|
+
fmtType: 'CN' | 'KMG' | 'CNT' | 'Custom' | 'None';
|
|
25
|
+
/** 值类型,默认为数值。0 数值;1 百分比 */
|
|
26
|
+
valueModal: '0' | '1';
|
|
27
|
+
/** 小数位,默认不选择。原来为 serie.decimalPlaces */
|
|
28
|
+
decimalPlaces: '' | '0' | '1' | '2' | '3' | '4' | '5';
|
|
29
|
+
/** 是否使用千分位分隔符,默认不使用。原来为 serie.thousandth */
|
|
30
|
+
thousandth?: boolean;
|
|
31
|
+
/** 手工输入格式,原来为 serie.fmt */
|
|
32
|
+
fmt: string;
|
|
33
|
+
/** 数据单位 */
|
|
34
|
+
magnitudeFormat?: number;
|
|
35
|
+
/** 数据格式 */
|
|
36
|
+
dataMagnitude?: string;
|
|
37
|
+
/** 负数格式 */
|
|
38
|
+
negativeMode?: NegativeMode;
|
|
39
|
+
}
|
|
40
|
+
export declare enum SelectType {
|
|
41
|
+
/** 自动 */
|
|
42
|
+
'auto' = "auto",
|
|
43
|
+
/** 整数 */
|
|
44
|
+
'int' = "int",
|
|
45
|
+
/** 保留1位小数 */
|
|
46
|
+
'oneDecimal' = "oneDecimal",
|
|
47
|
+
/** 保留2位小数 */
|
|
48
|
+
'twoDecimal' = "twoDecimal",
|
|
49
|
+
/** 百分比 */
|
|
50
|
+
'percent' = "percent",
|
|
51
|
+
/** 百分比1位小数 */
|
|
52
|
+
'oneDecimalPercent' = "oneDecimalPercent",
|
|
53
|
+
/** 百分比2位小数 */
|
|
54
|
+
'twoDecimalPercent' = "twoDecimalPercent",
|
|
55
|
+
/** 自定义 */
|
|
56
|
+
'custom' = "custom"
|
|
57
|
+
}
|
|
58
|
+
export interface FieldNumberFormat extends NumberFormat {
|
|
59
|
+
selectType?: SelectType;
|
|
60
|
+
unit?: string;
|
|
61
|
+
}
|
|
62
|
+
export declare enum ImageDisplayMode {
|
|
63
|
+
LEFT = 0,
|
|
64
|
+
CENTER = 1,
|
|
65
|
+
RIGHT = 2,
|
|
66
|
+
CLIP = 3,
|
|
67
|
+
STRETCH = 4,
|
|
68
|
+
FILL_TOP = 5,
|
|
69
|
+
FILL_BOTTOM = 6,
|
|
70
|
+
FILL_LEFT = 7,
|
|
71
|
+
FILL_RIGHT = 8
|
|
72
|
+
}
|
|
73
|
+
export declare enum LegendPositionType {
|
|
74
|
+
/**
|
|
75
|
+
* 不显示图例
|
|
76
|
+
*/
|
|
77
|
+
None = "none",
|
|
78
|
+
/**
|
|
79
|
+
* 图例位于上部
|
|
80
|
+
*/
|
|
81
|
+
Top = "top",
|
|
82
|
+
/**
|
|
83
|
+
* 图例位于上部,居左
|
|
84
|
+
*/
|
|
85
|
+
TopLeft = "top-left",
|
|
86
|
+
/**
|
|
87
|
+
* 图例位于上部,居右
|
|
88
|
+
*/
|
|
89
|
+
TopRight = "top-right",
|
|
90
|
+
/**
|
|
91
|
+
* 图例位于底部
|
|
92
|
+
*/
|
|
93
|
+
Bottom = "bottom",
|
|
94
|
+
/**
|
|
95
|
+
* 图例位于底部,居左
|
|
96
|
+
*/
|
|
97
|
+
BottomLeft = "bottom-left",
|
|
98
|
+
/**
|
|
99
|
+
* 图例位于底部,居右
|
|
100
|
+
*/
|
|
101
|
+
BottomRight = "bottom-right",
|
|
102
|
+
/**
|
|
103
|
+
* 图例位于左侧
|
|
104
|
+
*/
|
|
105
|
+
Left = "left",
|
|
106
|
+
/**
|
|
107
|
+
* 图例位于左侧,居上
|
|
108
|
+
*/
|
|
109
|
+
LeftTop = "left-top",
|
|
110
|
+
/**
|
|
111
|
+
* 图例位于左侧,居下
|
|
112
|
+
*/
|
|
113
|
+
LeftBottom = "left-bottom",
|
|
114
|
+
/**
|
|
115
|
+
* 图例位于右侧
|
|
116
|
+
*/
|
|
117
|
+
Right = "right",
|
|
118
|
+
/**
|
|
119
|
+
* 图例位于右侧,居上
|
|
120
|
+
*/
|
|
121
|
+
RightTop = "right-top",
|
|
122
|
+
/**
|
|
123
|
+
* 图例位于右侧,居下
|
|
124
|
+
*/
|
|
125
|
+
RightBottom = "right-bottom"
|
|
126
|
+
}
|
|
127
|
+
/** legend 对齐方向枚举 */
|
|
128
|
+
export declare enum LegendAlignType {
|
|
129
|
+
/**
|
|
130
|
+
* g2 、Echarts 图例水平方向居左
|
|
131
|
+
*/
|
|
132
|
+
Left = "left",
|
|
133
|
+
/**
|
|
134
|
+
* g2 图例水平方向、垂直方向居中;Echarts 图例水平方向居中
|
|
135
|
+
*/
|
|
136
|
+
Center = "center",
|
|
137
|
+
/**
|
|
138
|
+
* Echarts 图例垂直方向居中,legend.top 可选值
|
|
139
|
+
*/
|
|
140
|
+
Middle = "middle",
|
|
141
|
+
/**
|
|
142
|
+
* g2 、Echarts 图例水平方向居右
|
|
143
|
+
*/
|
|
144
|
+
Right = "right",
|
|
145
|
+
/**
|
|
146
|
+
* g2 、Echarts 图例垂直方向居上
|
|
147
|
+
*/
|
|
148
|
+
Top = "top",
|
|
149
|
+
/**
|
|
150
|
+
* g2 、Echarts 图例垂直方向居下
|
|
151
|
+
*/
|
|
152
|
+
Bottom = "bottom"
|
|
153
|
+
}
|
|
154
|
+
export interface LegendAlign {
|
|
155
|
+
horizontal: LegendAlignType.Left | LegendAlignType.Center | LegendAlignType.Right;
|
|
156
|
+
vertical: LegendAlignType.Top | LegendAlignType.Center | LegendAlignType.Middle | LegendAlignType.Bottom;
|
|
157
|
+
}
|
|
158
|
+
/** 图例在图形元素非高亮态时的默认值 */
|
|
159
|
+
export declare enum LegendUnHighLightedValue {
|
|
160
|
+
/** 默认值为'-' */
|
|
161
|
+
default = "-",
|
|
162
|
+
/** 空 */
|
|
163
|
+
empty = ""
|
|
164
|
+
}
|
|
165
|
+
/** 钻取 面包屑的文字样式 */
|
|
166
|
+
export interface DrillBreadcrumbTextStyle {
|
|
167
|
+
fontSize: number;
|
|
168
|
+
bold: boolean;
|
|
169
|
+
italic: boolean;
|
|
170
|
+
curFontColor: string;
|
|
171
|
+
prevFontColor: string;
|
|
172
|
+
}
|
|
173
|
+
/** 时间维度对应的环比同比字段
|
|
174
|
+
* 日:昨日环比、上周同比、上月同比、去年同比,默认昨日环比,上周同比
|
|
175
|
+
* 周: 上周环比、年同比,默认选择『上周环比』
|
|
176
|
+
* 月:上月环比、年同比,默认选择『上月环比』
|
|
177
|
+
* 季度:上季环比、年同比,默认选择『上季环比』
|
|
178
|
+
* 年:年环比
|
|
179
|
+
*/
|
|
180
|
+
export declare const ConstastTypeMap: {
|
|
181
|
+
dateRegion: string[];
|
|
182
|
+
weekRegion: string[];
|
|
183
|
+
monthRegion: string[];
|
|
184
|
+
quarterRegion: string[];
|
|
185
|
+
fiscalQuarterRegion: string[];
|
|
186
|
+
yearRegion: string[];
|
|
187
|
+
fiscalYearRegion: string[];
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* 主题颜色配置
|
|
191
|
+
*/
|
|
192
|
+
export interface ThemeSeriesConfig {
|
|
193
|
+
/** 自定义配色 */
|
|
194
|
+
customColor: boolean;
|
|
195
|
+
/** 颜色翻转 */
|
|
196
|
+
flipColor: boolean;
|
|
197
|
+
/** 颜色序列 */
|
|
198
|
+
colors: string[];
|
|
199
|
+
/** 自定义颜色类型 */
|
|
200
|
+
customType: 'line' | 'range' | 'type';
|
|
201
|
+
/** 配色模板的当前颜色主题 */
|
|
202
|
+
theme: string;
|
|
203
|
+
/** 配色的保存数据 */
|
|
204
|
+
typeColors: {
|
|
205
|
+
[key: string]: string;
|
|
206
|
+
};
|
|
207
|
+
/** 当前全局色系的颜色序列 */
|
|
208
|
+
themeColors?: string[];
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* 图表字段类型
|
|
212
|
+
*/
|
|
213
|
+
export declare enum ChartAreaType {
|
|
214
|
+
/**
|
|
215
|
+
* 度量轴
|
|
216
|
+
*/
|
|
217
|
+
XAxis = "xAxis",
|
|
218
|
+
/**
|
|
219
|
+
* 通用y维度轴
|
|
220
|
+
*/
|
|
221
|
+
YAxis = "yAxis",
|
|
222
|
+
/**
|
|
223
|
+
* 主值轴
|
|
224
|
+
*/
|
|
225
|
+
YMainAxis = "yMainAxis",
|
|
226
|
+
/**
|
|
227
|
+
* 副值轴
|
|
228
|
+
*/
|
|
229
|
+
YSecondaryAxis = "ySecondaryAxis",
|
|
230
|
+
/**
|
|
231
|
+
* 图例
|
|
232
|
+
*/
|
|
233
|
+
Legend = "legend",
|
|
234
|
+
/**
|
|
235
|
+
* 行
|
|
236
|
+
*/
|
|
237
|
+
Row = "row",
|
|
238
|
+
/**
|
|
239
|
+
* 列
|
|
240
|
+
*/
|
|
241
|
+
Column = "column",
|
|
242
|
+
/**
|
|
243
|
+
* 图片
|
|
244
|
+
*/
|
|
245
|
+
IMAGE = "image",
|
|
246
|
+
/**
|
|
247
|
+
* 辅助列
|
|
248
|
+
*/
|
|
249
|
+
SecondaryColumn = "secondaryColumn",
|
|
250
|
+
/**
|
|
251
|
+
* 工具提示
|
|
252
|
+
*/
|
|
253
|
+
Tooltip = "tooltip"
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* 图表系列设置,系列的类型
|
|
257
|
+
*/
|
|
258
|
+
export declare enum ChartSeriesType {
|
|
259
|
+
/**
|
|
260
|
+
* 度量
|
|
261
|
+
*/
|
|
262
|
+
Measure = "measure",
|
|
263
|
+
/**
|
|
264
|
+
* 维度值
|
|
265
|
+
*/
|
|
266
|
+
DimensionValue = "dimensionValue",
|
|
267
|
+
/**
|
|
268
|
+
* 组合类型,度量uuid + 维度值拼接
|
|
269
|
+
*/
|
|
270
|
+
Combination = "combination"
|
|
271
|
+
}
|
|
272
|
+
/** 图表系列配置选项数据 */
|
|
273
|
+
export interface ChartSeriesOption {
|
|
274
|
+
/** 作为字段时,对应的类型 */
|
|
275
|
+
fieldType: FieldType;
|
|
276
|
+
/** 系列类型 */
|
|
277
|
+
seriesType: ChartSeriesType;
|
|
278
|
+
/** 唯一id */
|
|
279
|
+
uuid: string;
|
|
280
|
+
/** 展示文案 */
|
|
281
|
+
text: string;
|
|
282
|
+
/** 对应的图例字段的唯一id */
|
|
283
|
+
originalDimensionField?: FieldModel;
|
|
284
|
+
/** 对应度量的唯一id */
|
|
285
|
+
originalMeasureField?: FieldModel;
|
|
286
|
+
/** 图例字段对应的维度值 */
|
|
287
|
+
originalDimValue?: string;
|
|
288
|
+
}
|
|
289
|
+
/** 大屏中统一的文本样式配置 */
|
|
290
|
+
export interface ScreenTextStyle {
|
|
291
|
+
/** 文字大小 */
|
|
292
|
+
fontSize?: number;
|
|
293
|
+
/** 文字颜色,可能为空 */
|
|
294
|
+
fontColor?: string;
|
|
295
|
+
/** 是否粗体 */
|
|
296
|
+
bold?: boolean;
|
|
297
|
+
/** 是否斜体 */
|
|
298
|
+
italic?: boolean;
|
|
299
|
+
/** 字体 */
|
|
300
|
+
fontFamily?: string;
|
|
301
|
+
/** 行高 */
|
|
302
|
+
lineHeight?: number;
|
|
303
|
+
/** 字间距 */
|
|
304
|
+
letterSpacing?: number;
|
|
305
|
+
/** 下划线 */
|
|
306
|
+
underline?: boolean;
|
|
307
|
+
/** 删除线 */
|
|
308
|
+
strikethrough?: boolean;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* 大屏边框类型
|
|
312
|
+
*/
|
|
313
|
+
export declare enum ScreenBorderType {
|
|
314
|
+
/** 上 */
|
|
315
|
+
Top = "Top",
|
|
316
|
+
/** 右 */
|
|
317
|
+
Right = "Right",
|
|
318
|
+
/** 下 */
|
|
319
|
+
Bottom = "Bottom",
|
|
320
|
+
/** 左 */
|
|
321
|
+
Left = "Left",
|
|
322
|
+
/** 全部 */
|
|
323
|
+
All = "All"
|
|
324
|
+
}
|
|
325
|
+
/** 大屏中统一的背景样式配置 */
|
|
326
|
+
export interface ScreenBackgroundStyle {
|
|
327
|
+
/** 背景颜色 */
|
|
328
|
+
fillColor?: string;
|
|
329
|
+
/** 开启背景填充 */
|
|
330
|
+
enableFill?: boolean;
|
|
331
|
+
/** 开启边框 */
|
|
332
|
+
enableBorder?: boolean;
|
|
333
|
+
/** 边框线的宽度 */
|
|
334
|
+
borderWidth?: number;
|
|
335
|
+
/** 边框线的类型 */
|
|
336
|
+
borderType?: ScreenBorderType;
|
|
337
|
+
/** 边框半径 */
|
|
338
|
+
borderRadius?: number;
|
|
339
|
+
/** 边框颜色 */
|
|
340
|
+
borderColor?: string;
|
|
341
|
+
/** 背景模糊大小 */
|
|
342
|
+
blur?: number;
|
|
343
|
+
}
|
|
344
|
+
export interface ScreenLegendOption {
|
|
345
|
+
/**
|
|
346
|
+
* 是否开启
|
|
347
|
+
*/
|
|
348
|
+
enable?: boolean;
|
|
349
|
+
/**
|
|
350
|
+
* 图例位置
|
|
351
|
+
*/
|
|
352
|
+
position?: LegendPositionType;
|
|
353
|
+
/**
|
|
354
|
+
* 图例对齐方式
|
|
355
|
+
*/
|
|
356
|
+
align?: LegendAlign;
|
|
357
|
+
/**
|
|
358
|
+
* 文本样式配置
|
|
359
|
+
*/
|
|
360
|
+
textStyle?: ScreenTextStyle;
|
|
361
|
+
/**
|
|
362
|
+
* 选项间隙
|
|
363
|
+
*/
|
|
364
|
+
itemGap?: number;
|
|
365
|
+
/**
|
|
366
|
+
* icon类型
|
|
367
|
+
*/
|
|
368
|
+
itemSymbol?: string;
|
|
369
|
+
}
|
|
370
|
+
/** 语义色 */
|
|
371
|
+
export declare enum SemanticColor {
|
|
372
|
+
/** 上涨 */
|
|
373
|
+
Increase = "increase",
|
|
374
|
+
/** 持平 */
|
|
375
|
+
Stable = "stable",
|
|
376
|
+
/** 下降 */
|
|
377
|
+
Decrease = "decrease"
|
|
378
|
+
}
|