@quickbi/bi-types 3.1.3-beta.12 → 3.1.3-beta.13
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 +52 -25
- package/cjs/index.js +3740 -4791
- package/esm/index.d.ts +52 -25
- package/esm/index.mjs +10 -11
- package/package.json +1 -1
package/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by dts-bundle v0.7.3
|
|
2
2
|
// Dependencies for this module:
|
|
3
|
-
//
|
|
3
|
+
// ../../../../../../../../../../react
|
|
4
4
|
|
|
5
5
|
declare module '@quickbi/bi-types' {
|
|
6
6
|
export { CommonCompInputAreaTypeEnum, DataConfig, DataConfigAreaItemColumn, DataPanelDataSchema, DataSchemaAreaItem, OperationMenuItem, DropdownMenuItem, OperationTypes, Aggregators, FieldConfigTypes, ContrastTypes, AdvanceCalTypes, AdvanceCalcDateTypes, NumberFormats, AlignTypes, VerticalAlignTypes, AlignmentCategory, SortTypes, FieldChartTypes, ImageSizes, CUSTOM_FIELD_TYPES, FieldType, QueryAxisType, DropDownMenuType, SecondFieldType, ChartStatus, StackedSortType, ResultMode, RetainAreaId, ConfigCellType, ConfigColumnType, CheckBoxState, FieldGroupType, DataSchemaRule, TableType, TableDirection, ProportionType, AccumulateCalcType, FieldCollectionType, LnglatGroupChildFlags, FieldGroupSelectorType, VirtualFieldOperation, NumberValueType, ContrastType, } from '@quickbi/bi-types/data-panel';
|
|
@@ -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 {
|
|
18
|
+
export type { ComponentError, ComponentConfigError, ComponentNoPermissionError, ComponentDataMaskError, ComponentNoDataError, ComponentRenderError, 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';
|
|
@@ -26,6 +26,7 @@ declare module '@quickbi/bi-types' {
|
|
|
26
26
|
export * from '@quickbi/bi-types/open/components/style-schema';
|
|
27
27
|
export type { MenuMeta, MenuProps, MenuSchema, MenuSchemaBase, MenuSchemaItem } from '@quickbi/bi-types/open/menus/menu-schema';
|
|
28
28
|
export * from '@quickbi/bi-types/open/menus/menu-props';
|
|
29
|
+
export type { CustomPageConfig, CustomPageProps } from '@quickbi/bi-types/open/custom-page/pages-props';
|
|
29
30
|
export type { EmbedBaseSrc, EmbedBaseFeature, EmbedBaseEventMessageDTO, EmbedBaseEventMessageContent, EmbedBaseEventListener, EmbedBaseEventListenerReturn, } from '@quickbi/bi-types/open/embed/core';
|
|
30
31
|
export { OpenPageTypeEnum } from '@quickbi/bi-types/open/common/page-types';
|
|
31
32
|
export { OpenEventTypeEnum } from '@quickbi/bi-types/open/common/event-types';
|
|
@@ -1014,20 +1015,26 @@ declare module '@quickbi/bi-types/open/components/component-props' {
|
|
|
1014
1015
|
*/
|
|
1015
1016
|
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';
|
|
1016
1017
|
export type ComponentPageConfig = CommonPageConfig;
|
|
1017
|
-
/**
|
|
1018
|
-
|
|
1018
|
+
/**
|
|
1019
|
+
* 组件错误类型(泛型)
|
|
1020
|
+
* @template T - 错误名称,默认为 'ComponentError' 表示未知错误
|
|
1021
|
+
*/
|
|
1022
|
+
export interface ComponentError<T extends string = 'ComponentError'> {
|
|
1023
|
+
/** 错误名称,用于类型判断 */
|
|
1024
|
+
name: T;
|
|
1025
|
+
/** 错误信息 */
|
|
1026
|
+
message?: string;
|
|
1027
|
+
}
|
|
1019
1028
|
/** 图表配置错误 */
|
|
1020
|
-
'
|
|
1029
|
+
export type ComponentConfigError = ComponentError<'ComponentConfigError'>;
|
|
1021
1030
|
/** 权限错误 */
|
|
1022
|
-
|
|
1031
|
+
export type ComponentNoPermissionError = ComponentError<'ComponentNoPermissionError'>;
|
|
1023
1032
|
/** 数据脱敏错误 */
|
|
1024
|
-
|
|
1025
|
-
/**
|
|
1026
|
-
|
|
1033
|
+
export type ComponentDataMaskError = ComponentError<'ComponentDataMaskError'>;
|
|
1034
|
+
/** 数据为空错误 */
|
|
1035
|
+
export type ComponentNoDataError = ComponentError<'ComponentNoDataError'>;
|
|
1027
1036
|
/** 渲染错误 */
|
|
1028
|
-
|
|
1029
|
-
/** 未知错误 */
|
|
1030
|
-
| 'Unknown';
|
|
1037
|
+
export type ComponentRenderError = ComponentError<'ComponentRenderError'>;
|
|
1031
1038
|
/**
|
|
1032
1039
|
* bi 组件通用属性模型
|
|
1033
1040
|
*/
|
|
@@ -1035,12 +1042,7 @@ declare module '@quickbi/bi-types/open/components/component-props' {
|
|
|
1035
1042
|
/** 组件状态(是否正常渲染) */
|
|
1036
1043
|
status?: 'success' | 'error';
|
|
1037
1044
|
/** 错误信息 */
|
|
1038
|
-
error?:
|
|
1039
|
-
/** 错误类型 */
|
|
1040
|
-
type: ComponentErrorType;
|
|
1041
|
-
/** 错误信息 */
|
|
1042
|
-
message?: string;
|
|
1043
|
-
};
|
|
1045
|
+
error?: ComponentError | ComponentConfigError | ComponentNoPermissionError | ComponentDataMaskError | ComponentNoDataError | ComponentRenderError;
|
|
1044
1046
|
/** 组件类型 */
|
|
1045
1047
|
componentType: ComponentType;
|
|
1046
1048
|
/** 自定义组件实例 id */
|
|
@@ -1526,6 +1528,13 @@ declare module '@quickbi/bi-types/chart-config' {
|
|
|
1526
1528
|
/** 空 */
|
|
1527
1529
|
empty = ""
|
|
1528
1530
|
}
|
|
1531
|
+
/** 图例显示百分比位置 */
|
|
1532
|
+
export enum LegendDisplayPercentPositionValue {
|
|
1533
|
+
/** 默认值为'-' */
|
|
1534
|
+
Bottom = "bottom",
|
|
1535
|
+
/** 空 */
|
|
1536
|
+
Right = "right"
|
|
1537
|
+
}
|
|
1529
1538
|
/** 钻取 面包屑的文字样式 */
|
|
1530
1539
|
export interface DrillBreadcrumbTextStyle {
|
|
1531
1540
|
fontSize: number;
|
|
@@ -2323,6 +2332,7 @@ declare module '@quickbi/bi-types/open/menus/menu-props' {
|
|
|
2323
2332
|
import type { EnumAsUnion } from '@quickbi/bi-types/open/common/tools';
|
|
2324
2333
|
import type { OpenPageTypeEnum } from '@quickbi/bi-types/open/common/page-types';
|
|
2325
2334
|
import type { OpenDeviceTypeEnum } from '@quickbi/bi-types/open/common/misc';
|
|
2335
|
+
import type { RouteKey } from '@quickbi/bi-types/router/route-key';
|
|
2326
2336
|
/**
|
|
2327
2337
|
* 事件/菜单通用的页面信息
|
|
2328
2338
|
*/
|
|
@@ -2347,8 +2357,10 @@ declare module '@quickbi/bi-types/open/menus/menu-props' {
|
|
|
2347
2357
|
ownerUserName: string;
|
|
2348
2358
|
/** 页面标题 */
|
|
2349
2359
|
title: string;
|
|
2350
|
-
/**
|
|
2351
|
-
pageType
|
|
2360
|
+
/** @deprecated 页面类型, 已废弃, 后续请用routeKey判断页面类型 */
|
|
2361
|
+
pageType?: EnumAsUnion<typeof OpenPageTypeEnum>;
|
|
2362
|
+
/** 页面路由 key */
|
|
2363
|
+
routeKey?: RouteKey;
|
|
2352
2364
|
}
|
|
2353
2365
|
/**
|
|
2354
2366
|
* 事件/菜单通用的工具方法
|
|
@@ -2496,6 +2508,19 @@ declare module '@quickbi/bi-types/open/menus/menu-props' {
|
|
|
2496
2508
|
}
|
|
2497
2509
|
}
|
|
2498
2510
|
|
|
2511
|
+
declare module '@quickbi/bi-types/open/custom-page/pages-props' {
|
|
2512
|
+
import type { CommonPageConfig } from '@quickbi/bi-types/open/menus/menu-props';
|
|
2513
|
+
/** 自定义页面的页面信息 */
|
|
2514
|
+
export type CustomPageConfig = Pick<CommonPageConfig, 'userId' | 'userName' | 'routeKey'>;
|
|
2515
|
+
/**
|
|
2516
|
+
* 自定义页面 props 接口
|
|
2517
|
+
*/
|
|
2518
|
+
export interface CustomPageProps {
|
|
2519
|
+
/** 页面信息 */
|
|
2520
|
+
pageConfig: CustomPageConfig;
|
|
2521
|
+
}
|
|
2522
|
+
}
|
|
2523
|
+
|
|
2499
2524
|
declare module '@quickbi/bi-types/open/embed/core' {
|
|
2500
2525
|
/**
|
|
2501
2526
|
* @author 海狸
|
|
@@ -2566,7 +2591,7 @@ declare module '@quickbi/bi-types/open/embed/core' {
|
|
|
2566
2591
|
|
|
2567
2592
|
declare module '@quickbi/bi-types/open/common/page-types' {
|
|
2568
2593
|
/**
|
|
2569
|
-
* @deprecated 开放相关页面类型枚举, 注意要和
|
|
2594
|
+
* @deprecated 开放相关页面类型枚举, 注意要和 routerKey 做区分, 这个 key 后续要废弃
|
|
2570
2595
|
* */
|
|
2571
2596
|
export enum OpenPageTypeEnum {
|
|
2572
2597
|
/** 仪表板 */
|
|
@@ -6832,7 +6857,9 @@ declare module '@quickbi/bi-types/cube/data-source' {
|
|
|
6832
6857
|
/** 达梦 */
|
|
6833
6858
|
dm = "dm",
|
|
6834
6859
|
/** 日志服务SLS */
|
|
6835
|
-
sls = "sls"
|
|
6860
|
+
sls = "sls",
|
|
6861
|
+
/** RDS MySQL DuckDB */
|
|
6862
|
+
mysql_duckdb = "mysql_duckdb"
|
|
6836
6863
|
}
|
|
6837
6864
|
export enum AcrossDsType {
|
|
6838
6865
|
UN_SET,
|
|
@@ -6855,7 +6882,9 @@ declare module '@quickbi/bi-types/cube/data-source' {
|
|
|
6855
6882
|
/** 端口号为8242 此后所有注释 皆为表明 变量代表的端口号码 */
|
|
6856
6883
|
eight_two_four_two = "8242",
|
|
6857
6884
|
three_three_zero_six_zero = "33060",
|
|
6858
|
-
three_zero_zero_six_zero = "30060"
|
|
6885
|
+
three_zero_zero_six_zero = "30060",
|
|
6886
|
+
three_three_zero_six = "33306",
|
|
6887
|
+
one_zero_zero_zero_zero = "10000"
|
|
6859
6888
|
}
|
|
6860
6889
|
/** 数据源 - 根据类型 - 排序 */
|
|
6861
6890
|
export enum DataSourceSort {
|
|
@@ -6891,8 +6920,6 @@ declare module '@quickbi/bi-types/cube/data-source' {
|
|
|
6891
6920
|
google = "google",
|
|
6892
6921
|
customDs = "customDs"
|
|
6893
6922
|
}
|
|
6894
|
-
/** 数据库数据源类型 */
|
|
6895
|
-
export const dataBaseType: DataSourcesConfigId[];
|
|
6896
6923
|
/** 文档数据源 */
|
|
6897
6924
|
export const SHEET_TABLE: DsType[];
|
|
6898
6925
|
}
|