@quickbi/bi-types 3.1.1 → 3.1.2-beta.0
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/index.d.ts +55 -2
- package/cjs/index.js +15 -0
- package/esm/index.d.ts +55 -2
- package/esm/index.mjs +15 -0
- package/package.json +1 -1
package/cjs/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare module '@quickbi/bi-types' {
|
|
|
15
15
|
export { CustomEventType } from '@quickbi/bi-types/open/events/event-props';
|
|
16
16
|
export type { CustomEventModalPayload, CustomEventPageConfig, CustomEventPropsDispatch, CustomEventProps, } from '@quickbi/bi-types/open/events/event-props';
|
|
17
17
|
export type { CustomEventMeta } from '@quickbi/bi-types/open/events/event-schema';
|
|
18
|
-
export type { ComponentProps, ComponentPropsColorSeries, ComponentPropsCubeConfig, ComponentPropsDispatch, ComponentPropsGlobalConfig, ComponentPropsSkin, ComponentPropsViewConfig, DimGranularity, } from '@quickbi/bi-types/open/components/component-props';
|
|
18
|
+
export type { ErrorType, ComponentProps, ComponentPropsColorSeries, ComponentPropsCubeConfig, ComponentPropsDispatch, ComponentPropsGlobalConfig, ComponentPropsSkin, ComponentPropsViewConfig, DimGranularity, } from '@quickbi/bi-types/open/components/component-props';
|
|
19
19
|
export type { ComponentMeta, ComponentMetaPropsSchema } from '@quickbi/bi-types/open/components/component-meta';
|
|
20
20
|
export type { Lifecycle, LifecycleBootstrap, LifecycleMount, LifecycleProps, LifecycleUnmount, LifecycleUpdate, } from '@quickbi/bi-types/open/components/component-lifecycle';
|
|
21
21
|
export * from '@quickbi/bi-types/open/components/style-schema';
|
|
@@ -415,7 +415,21 @@ declare module '@quickbi/bi-types/component-type' {
|
|
|
415
415
|
/** 旭日图 */
|
|
416
416
|
SUNBURST = 121,
|
|
417
417
|
/** 小Q报告 */
|
|
418
|
-
QREPORT = 122
|
|
418
|
+
QREPORT = 122,
|
|
419
|
+
/** 非结构化图表-并列(并列卡片) */
|
|
420
|
+
UNSTRUCTURED_PARALLEL = 123,
|
|
421
|
+
/** 非结构化图表-对比(对比图) */
|
|
422
|
+
UNSTRUCTURED_CONTRAST = 124,
|
|
423
|
+
/** 非结构化图表-时间轴(已合并到进程中) */
|
|
424
|
+
UNSTRUCTURED_TIMELINE = 125,
|
|
425
|
+
/** 非结构化图表-进程(时间轴图) */
|
|
426
|
+
UNSTRUCTURED_PROCESS = 126,
|
|
427
|
+
/** 非结构化图表-总分(雷达图) */
|
|
428
|
+
UNSTRUCTURED_GENERAL_TO_SPECIFIC = 127,
|
|
429
|
+
/** 非结构化图表-层级(漏斗图) */
|
|
430
|
+
UNSTRUCTURED_HIERARCHICAL = 128,
|
|
431
|
+
/** 非结构化图表-词频(词云图,已下线) */
|
|
432
|
+
UNSTRUCTURED_FREQUENCY = 129
|
|
419
433
|
}
|
|
420
434
|
export const ScreenComponentCode: Record<ScreenComponentType, number>;
|
|
421
435
|
export enum ChartType {
|
|
@@ -511,6 +525,14 @@ declare module '@quickbi/bi-types/component-type' {
|
|
|
511
525
|
MULTIPLE_DIM_TABLE = "multiple-dim-table",
|
|
512
526
|
CONCAT_CONTAINER = "concat-container",
|
|
513
527
|
INDICATOR_RELATION = "indicator-relation",
|
|
528
|
+
/** ------------非结构化图表 ------------ */
|
|
529
|
+
UNSTRUCTURED_PARALLEL = "parallel",
|
|
530
|
+
UNSTRUCTURED_CONTRAST = "contrast",
|
|
531
|
+
UNSTRUCTURED_TIMELINE = "timeline",
|
|
532
|
+
UNSTRUCTURED_PROCESS = "process",
|
|
533
|
+
UNSTRUCTURED_GENERAL_TO_SPECIFIC = "general-to-specific",
|
|
534
|
+
UNSTRUCTURED_HIERARCHICAL = "hierarchical",
|
|
535
|
+
UNSTRUCTURED_FREQUENCY = "frequency",
|
|
514
536
|
/** --------------电子表格-------------- */
|
|
515
537
|
QUICK_REPORT_CROSS_TABLE = "quick-report-cross-table",
|
|
516
538
|
QUICK_REPORT_CELL_TABLE = "quick-report-cell-table",
|
|
@@ -989,10 +1011,39 @@ declare module '@quickbi/bi-types/open/components/component-props' {
|
|
|
989
1011
|
*/
|
|
990
1012
|
export type DimGranularity = 'year' | 'fiscal-year' | 'fiscal-year-quarter' | 'year-quarter' | 'year-month' | 'year-week' | 'year-month-day' | 'hour' | 'hour-minute' | 'hour-minute-second' | 'datetime';
|
|
991
1013
|
export type ComponentPageConfig = CommonPageConfig;
|
|
1014
|
+
/** 错误类型 */
|
|
1015
|
+
export type ErrorType =
|
|
1016
|
+
/** 图表配置出错 */
|
|
1017
|
+
'Config'
|
|
1018
|
+
/** 没有行级权限 */
|
|
1019
|
+
| 'Permit'
|
|
1020
|
+
/** 其他错误 */
|
|
1021
|
+
| 'Default'
|
|
1022
|
+
/** 脱敏出错 */
|
|
1023
|
+
| 'DataMask'
|
|
1024
|
+
/** 第三方插件查询出错 */
|
|
1025
|
+
| 'ThirdPlugin'
|
|
1026
|
+
/** 图表校验出错 */
|
|
1027
|
+
| 'Validate'
|
|
1028
|
+
/** 数据为空 */
|
|
1029
|
+
| 'DataEmpty'
|
|
1030
|
+
/** 取数出错 */
|
|
1031
|
+
| 'Fetch'
|
|
1032
|
+
/** 渲染出错 */
|
|
1033
|
+
| 'Render';
|
|
992
1034
|
/**
|
|
993
1035
|
* bi 组件通用属性模型
|
|
994
1036
|
*/
|
|
995
1037
|
export interface ComponentProps {
|
|
1038
|
+
/** 组件状态(是否正常渲染) */
|
|
1039
|
+
status?: 'success' | 'error';
|
|
1040
|
+
/** 错误信息 */
|
|
1041
|
+
errorInfo?: {
|
|
1042
|
+
/** 错误类型 */
|
|
1043
|
+
type: ErrorType;
|
|
1044
|
+
/** 错误信息 */
|
|
1045
|
+
error?: Error;
|
|
1046
|
+
};
|
|
996
1047
|
/** 组件类型 */
|
|
997
1048
|
componentType: ComponentType;
|
|
998
1049
|
/** 自定义组件实例 id */
|
|
@@ -2544,6 +2595,8 @@ declare module '@quickbi/bi-types/open/common/event-types' {
|
|
|
2544
2595
|
export enum OpenEventTypeEnum {
|
|
2545
2596
|
/** 嵌入事件-页面跳转前 */
|
|
2546
2597
|
'before-page-change-event' = "before-page-change-event",
|
|
2598
|
+
/** 图表加载后事件 */
|
|
2599
|
+
'after-component-rendered-event' = "after-component-rendered-event",
|
|
2547
2600
|
/** 导出前事件 */
|
|
2548
2601
|
'before-download-event' = "before-download-event",
|
|
2549
2602
|
/** 页面加载前事件 */
|
package/cjs/index.js
CHANGED
|
@@ -957,6 +957,13 @@ var ComponentType;
|
|
|
957
957
|
ComponentType2[ComponentType2["HISTOGRAM"] = 120] = "HISTOGRAM";
|
|
958
958
|
ComponentType2[ComponentType2["SUNBURST"] = 121] = "SUNBURST";
|
|
959
959
|
ComponentType2[ComponentType2["QREPORT"] = 122] = "QREPORT";
|
|
960
|
+
ComponentType2[ComponentType2["UNSTRUCTURED_PARALLEL"] = 123] = "UNSTRUCTURED_PARALLEL";
|
|
961
|
+
ComponentType2[ComponentType2["UNSTRUCTURED_CONTRAST"] = 124] = "UNSTRUCTURED_CONTRAST";
|
|
962
|
+
ComponentType2[ComponentType2["UNSTRUCTURED_TIMELINE"] = 125] = "UNSTRUCTURED_TIMELINE";
|
|
963
|
+
ComponentType2[ComponentType2["UNSTRUCTURED_PROCESS"] = 126] = "UNSTRUCTURED_PROCESS";
|
|
964
|
+
ComponentType2[ComponentType2["UNSTRUCTURED_GENERAL_TO_SPECIFIC"] = 127] = "UNSTRUCTURED_GENERAL_TO_SPECIFIC";
|
|
965
|
+
ComponentType2[ComponentType2["UNSTRUCTURED_HIERARCHICAL"] = 128] = "UNSTRUCTURED_HIERARCHICAL";
|
|
966
|
+
ComponentType2[ComponentType2["UNSTRUCTURED_FREQUENCY"] = 129] = "UNSTRUCTURED_FREQUENCY";
|
|
960
967
|
})(ComponentType || (ComponentType = {}));
|
|
961
968
|
var _obj;
|
|
962
969
|
var ScreenComponentCode = (_obj = {}, _define_property5(_obj, "custom_component", 0), /** 图层组 */
|
|
@@ -1115,6 +1122,13 @@ var ChartType;
|
|
|
1115
1122
|
ChartType2["MULTIPLE_DIM_TABLE"] = "multiple-dim-table";
|
|
1116
1123
|
ChartType2["CONCAT_CONTAINER"] = "concat-container";
|
|
1117
1124
|
ChartType2["INDICATOR_RELATION"] = "indicator-relation";
|
|
1125
|
+
ChartType2["UNSTRUCTURED_PARALLEL"] = "parallel";
|
|
1126
|
+
ChartType2["UNSTRUCTURED_CONTRAST"] = "contrast";
|
|
1127
|
+
ChartType2["UNSTRUCTURED_TIMELINE"] = "timeline";
|
|
1128
|
+
ChartType2["UNSTRUCTURED_PROCESS"] = "process";
|
|
1129
|
+
ChartType2["UNSTRUCTURED_GENERAL_TO_SPECIFIC"] = "general-to-specific";
|
|
1130
|
+
ChartType2["UNSTRUCTURED_HIERARCHICAL"] = "hierarchical";
|
|
1131
|
+
ChartType2["UNSTRUCTURED_FREQUENCY"] = "frequency";
|
|
1118
1132
|
ChartType2["QUICK_REPORT_CROSS_TABLE"] = "quick-report-cross-table";
|
|
1119
1133
|
ChartType2["QUICK_REPORT_CELL_TABLE"] = "quick-report-cell-table";
|
|
1120
1134
|
ChartType2["QUICK_REPORT_CARD_VIEW"] = "quick-report-card-view";
|
|
@@ -1363,6 +1377,7 @@ var OrgThemeMode;
|
|
|
1363
1377
|
var OpenEventTypeEnum;
|
|
1364
1378
|
(function(OpenEventTypeEnum2) {
|
|
1365
1379
|
OpenEventTypeEnum2["before-page-change-event"] = "before-page-change-event";
|
|
1380
|
+
OpenEventTypeEnum2["after-component-rendered-event"] = "after-component-rendered-event";
|
|
1366
1381
|
OpenEventTypeEnum2["before-download-event"] = "before-download-event";
|
|
1367
1382
|
OpenEventTypeEnum2["before-page-loaded-event"] = "before-page-loaded-event";
|
|
1368
1383
|
OpenEventTypeEnum2["before-publish-event"] = "before-publish-event";
|
package/esm/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare module '@quickbi/bi-types' {
|
|
|
15
15
|
export { CustomEventType } from '@quickbi/bi-types/open/events/event-props';
|
|
16
16
|
export type { CustomEventModalPayload, CustomEventPageConfig, CustomEventPropsDispatch, CustomEventProps, } from '@quickbi/bi-types/open/events/event-props';
|
|
17
17
|
export type { CustomEventMeta } from '@quickbi/bi-types/open/events/event-schema';
|
|
18
|
-
export type { ComponentProps, ComponentPropsColorSeries, ComponentPropsCubeConfig, ComponentPropsDispatch, ComponentPropsGlobalConfig, ComponentPropsSkin, ComponentPropsViewConfig, DimGranularity, } from '@quickbi/bi-types/open/components/component-props';
|
|
18
|
+
export type { ErrorType, ComponentProps, ComponentPropsColorSeries, ComponentPropsCubeConfig, ComponentPropsDispatch, ComponentPropsGlobalConfig, ComponentPropsSkin, ComponentPropsViewConfig, DimGranularity, } from '@quickbi/bi-types/open/components/component-props';
|
|
19
19
|
export type { ComponentMeta, ComponentMetaPropsSchema } from '@quickbi/bi-types/open/components/component-meta';
|
|
20
20
|
export type { Lifecycle, LifecycleBootstrap, LifecycleMount, LifecycleProps, LifecycleUnmount, LifecycleUpdate, } from '@quickbi/bi-types/open/components/component-lifecycle';
|
|
21
21
|
export * from '@quickbi/bi-types/open/components/style-schema';
|
|
@@ -415,7 +415,21 @@ declare module '@quickbi/bi-types/component-type' {
|
|
|
415
415
|
/** 旭日图 */
|
|
416
416
|
SUNBURST = 121,
|
|
417
417
|
/** 小Q报告 */
|
|
418
|
-
QREPORT = 122
|
|
418
|
+
QREPORT = 122,
|
|
419
|
+
/** 非结构化图表-并列(并列卡片) */
|
|
420
|
+
UNSTRUCTURED_PARALLEL = 123,
|
|
421
|
+
/** 非结构化图表-对比(对比图) */
|
|
422
|
+
UNSTRUCTURED_CONTRAST = 124,
|
|
423
|
+
/** 非结构化图表-时间轴(已合并到进程中) */
|
|
424
|
+
UNSTRUCTURED_TIMELINE = 125,
|
|
425
|
+
/** 非结构化图表-进程(时间轴图) */
|
|
426
|
+
UNSTRUCTURED_PROCESS = 126,
|
|
427
|
+
/** 非结构化图表-总分(雷达图) */
|
|
428
|
+
UNSTRUCTURED_GENERAL_TO_SPECIFIC = 127,
|
|
429
|
+
/** 非结构化图表-层级(漏斗图) */
|
|
430
|
+
UNSTRUCTURED_HIERARCHICAL = 128,
|
|
431
|
+
/** 非结构化图表-词频(词云图,已下线) */
|
|
432
|
+
UNSTRUCTURED_FREQUENCY = 129
|
|
419
433
|
}
|
|
420
434
|
export const ScreenComponentCode: Record<ScreenComponentType, number>;
|
|
421
435
|
export enum ChartType {
|
|
@@ -511,6 +525,14 @@ declare module '@quickbi/bi-types/component-type' {
|
|
|
511
525
|
MULTIPLE_DIM_TABLE = "multiple-dim-table",
|
|
512
526
|
CONCAT_CONTAINER = "concat-container",
|
|
513
527
|
INDICATOR_RELATION = "indicator-relation",
|
|
528
|
+
/** ------------非结构化图表 ------------ */
|
|
529
|
+
UNSTRUCTURED_PARALLEL = "parallel",
|
|
530
|
+
UNSTRUCTURED_CONTRAST = "contrast",
|
|
531
|
+
UNSTRUCTURED_TIMELINE = "timeline",
|
|
532
|
+
UNSTRUCTURED_PROCESS = "process",
|
|
533
|
+
UNSTRUCTURED_GENERAL_TO_SPECIFIC = "general-to-specific",
|
|
534
|
+
UNSTRUCTURED_HIERARCHICAL = "hierarchical",
|
|
535
|
+
UNSTRUCTURED_FREQUENCY = "frequency",
|
|
514
536
|
/** --------------电子表格-------------- */
|
|
515
537
|
QUICK_REPORT_CROSS_TABLE = "quick-report-cross-table",
|
|
516
538
|
QUICK_REPORT_CELL_TABLE = "quick-report-cell-table",
|
|
@@ -989,10 +1011,39 @@ declare module '@quickbi/bi-types/open/components/component-props' {
|
|
|
989
1011
|
*/
|
|
990
1012
|
export type DimGranularity = 'year' | 'fiscal-year' | 'fiscal-year-quarter' | 'year-quarter' | 'year-month' | 'year-week' | 'year-month-day' | 'hour' | 'hour-minute' | 'hour-minute-second' | 'datetime';
|
|
991
1013
|
export type ComponentPageConfig = CommonPageConfig;
|
|
1014
|
+
/** 错误类型 */
|
|
1015
|
+
export type ErrorType =
|
|
1016
|
+
/** 图表配置出错 */
|
|
1017
|
+
'Config'
|
|
1018
|
+
/** 没有行级权限 */
|
|
1019
|
+
| 'Permit'
|
|
1020
|
+
/** 其他错误 */
|
|
1021
|
+
| 'Default'
|
|
1022
|
+
/** 脱敏出错 */
|
|
1023
|
+
| 'DataMask'
|
|
1024
|
+
/** 第三方插件查询出错 */
|
|
1025
|
+
| 'ThirdPlugin'
|
|
1026
|
+
/** 图表校验出错 */
|
|
1027
|
+
| 'Validate'
|
|
1028
|
+
/** 数据为空 */
|
|
1029
|
+
| 'DataEmpty'
|
|
1030
|
+
/** 取数出错 */
|
|
1031
|
+
| 'Fetch'
|
|
1032
|
+
/** 渲染出错 */
|
|
1033
|
+
| 'Render';
|
|
992
1034
|
/**
|
|
993
1035
|
* bi 组件通用属性模型
|
|
994
1036
|
*/
|
|
995
1037
|
export interface ComponentProps {
|
|
1038
|
+
/** 组件状态(是否正常渲染) */
|
|
1039
|
+
status?: 'success' | 'error';
|
|
1040
|
+
/** 错误信息 */
|
|
1041
|
+
errorInfo?: {
|
|
1042
|
+
/** 错误类型 */
|
|
1043
|
+
type: ErrorType;
|
|
1044
|
+
/** 错误信息 */
|
|
1045
|
+
error?: Error;
|
|
1046
|
+
};
|
|
996
1047
|
/** 组件类型 */
|
|
997
1048
|
componentType: ComponentType;
|
|
998
1049
|
/** 自定义组件实例 id */
|
|
@@ -2544,6 +2595,8 @@ declare module '@quickbi/bi-types/open/common/event-types' {
|
|
|
2544
2595
|
export enum OpenEventTypeEnum {
|
|
2545
2596
|
/** 嵌入事件-页面跳转前 */
|
|
2546
2597
|
'before-page-change-event' = "before-page-change-event",
|
|
2598
|
+
/** 图表加载后事件 */
|
|
2599
|
+
'after-component-rendered-event' = "after-component-rendered-event",
|
|
2547
2600
|
/** 导出前事件 */
|
|
2548
2601
|
'before-download-event' = "before-download-event",
|
|
2549
2602
|
/** 页面加载前事件 */
|
package/esm/index.mjs
CHANGED
|
@@ -801,6 +801,13 @@ var ComponentType;
|
|
|
801
801
|
ComponentType2[ComponentType2["HISTOGRAM"] = 120] = "HISTOGRAM";
|
|
802
802
|
ComponentType2[ComponentType2["SUNBURST"] = 121] = "SUNBURST";
|
|
803
803
|
ComponentType2[ComponentType2["QREPORT"] = 122] = "QREPORT";
|
|
804
|
+
ComponentType2[ComponentType2["UNSTRUCTURED_PARALLEL"] = 123] = "UNSTRUCTURED_PARALLEL";
|
|
805
|
+
ComponentType2[ComponentType2["UNSTRUCTURED_CONTRAST"] = 124] = "UNSTRUCTURED_CONTRAST";
|
|
806
|
+
ComponentType2[ComponentType2["UNSTRUCTURED_TIMELINE"] = 125] = "UNSTRUCTURED_TIMELINE";
|
|
807
|
+
ComponentType2[ComponentType2["UNSTRUCTURED_PROCESS"] = 126] = "UNSTRUCTURED_PROCESS";
|
|
808
|
+
ComponentType2[ComponentType2["UNSTRUCTURED_GENERAL_TO_SPECIFIC"] = 127] = "UNSTRUCTURED_GENERAL_TO_SPECIFIC";
|
|
809
|
+
ComponentType2[ComponentType2["UNSTRUCTURED_HIERARCHICAL"] = 128] = "UNSTRUCTURED_HIERARCHICAL";
|
|
810
|
+
ComponentType2[ComponentType2["UNSTRUCTURED_FREQUENCY"] = 129] = "UNSTRUCTURED_FREQUENCY";
|
|
804
811
|
})(ComponentType || (ComponentType = {}));
|
|
805
812
|
var _obj;
|
|
806
813
|
var ScreenComponentCode = (_obj = {}, _define_property5(_obj, "custom_component", 0), /** 图层组 */
|
|
@@ -959,6 +966,13 @@ var ChartType;
|
|
|
959
966
|
ChartType2["MULTIPLE_DIM_TABLE"] = "multiple-dim-table";
|
|
960
967
|
ChartType2["CONCAT_CONTAINER"] = "concat-container";
|
|
961
968
|
ChartType2["INDICATOR_RELATION"] = "indicator-relation";
|
|
969
|
+
ChartType2["UNSTRUCTURED_PARALLEL"] = "parallel";
|
|
970
|
+
ChartType2["UNSTRUCTURED_CONTRAST"] = "contrast";
|
|
971
|
+
ChartType2["UNSTRUCTURED_TIMELINE"] = "timeline";
|
|
972
|
+
ChartType2["UNSTRUCTURED_PROCESS"] = "process";
|
|
973
|
+
ChartType2["UNSTRUCTURED_GENERAL_TO_SPECIFIC"] = "general-to-specific";
|
|
974
|
+
ChartType2["UNSTRUCTURED_HIERARCHICAL"] = "hierarchical";
|
|
975
|
+
ChartType2["UNSTRUCTURED_FREQUENCY"] = "frequency";
|
|
962
976
|
ChartType2["QUICK_REPORT_CROSS_TABLE"] = "quick-report-cross-table";
|
|
963
977
|
ChartType2["QUICK_REPORT_CELL_TABLE"] = "quick-report-cell-table";
|
|
964
978
|
ChartType2["QUICK_REPORT_CARD_VIEW"] = "quick-report-card-view";
|
|
@@ -1207,6 +1221,7 @@ var OrgThemeMode;
|
|
|
1207
1221
|
var OpenEventTypeEnum;
|
|
1208
1222
|
(function(OpenEventTypeEnum2) {
|
|
1209
1223
|
OpenEventTypeEnum2["before-page-change-event"] = "before-page-change-event";
|
|
1224
|
+
OpenEventTypeEnum2["after-component-rendered-event"] = "after-component-rendered-event";
|
|
1210
1225
|
OpenEventTypeEnum2["before-download-event"] = "before-download-event";
|
|
1211
1226
|
OpenEventTypeEnum2["before-page-loaded-event"] = "before-page-loaded-event";
|
|
1212
1227
|
OpenEventTypeEnum2["before-publish-event"] = "before-publish-event";
|