@quickbi/bi-types 3.0.41-beta.9 → 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 +2 -4
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author 忘悠
|
|
3
|
+
* @description 数据面板图表接入模型
|
|
4
|
+
*/
|
|
5
|
+
import type { AreaMap, DataSchemaAreaItem, ValidateResult, OnFreshComponentType } from './data-schema-item';
|
|
6
|
+
import type { Platform } from '../open/components/data-schema';
|
|
7
|
+
import type { FieldConfigRow } from './base';
|
|
8
|
+
export declare class ResultDisplay {
|
|
9
|
+
/** 上下限 */
|
|
10
|
+
upLimit?: number;
|
|
11
|
+
downLimit?: number;
|
|
12
|
+
/** 是否展示全量选择按钮 */
|
|
13
|
+
isShowAll?: boolean;
|
|
14
|
+
/** 是否隐藏展示结果设置 */
|
|
15
|
+
hide?: boolean;
|
|
16
|
+
/** hover在数值输入框的tooltip */
|
|
17
|
+
inputTooltip?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare class DataPanelDataSchema {
|
|
20
|
+
/** 禁用调整面板大小以及收起展开功能 */
|
|
21
|
+
disableResize?: boolean;
|
|
22
|
+
/** 禁用收起展开功能 */
|
|
23
|
+
disableCollapse?: boolean;
|
|
24
|
+
/** 隐藏数据面板更新按钮 */
|
|
25
|
+
disableUpdate?: boolean;
|
|
26
|
+
/** 高级查询控件采用之前面板的模式,比较特殊 */
|
|
27
|
+
advanceQueryMode?: boolean;
|
|
28
|
+
areas?: DataSchemaAreaItem[];
|
|
29
|
+
/** 结果展示 */
|
|
30
|
+
resultDisplay?: ResultDisplay;
|
|
31
|
+
/** 是否需要 */
|
|
32
|
+
alwaysFresh?: boolean;
|
|
33
|
+
hooks?: {
|
|
34
|
+
/** 点击更新按钮之前的钩子 */
|
|
35
|
+
beforeUpdateComponent?: (component: any, platform?: Platform) => {
|
|
36
|
+
component: any;
|
|
37
|
+
};
|
|
38
|
+
/** 替换点击更新按钮的逻辑,返回点击更新成功与失败状态,成功的时候必须返回最新的component */
|
|
39
|
+
handleClickUpdate?: (p: {
|
|
40
|
+
component: any;
|
|
41
|
+
onFreshComponent: OnFreshComponentType;
|
|
42
|
+
}) => {
|
|
43
|
+
/** success true意味着更新成功,触发取数 */
|
|
44
|
+
success: boolean;
|
|
45
|
+
component?: any;
|
|
46
|
+
};
|
|
47
|
+
/** 点击聚合明细按钮的钩子,点击之后会更新component */
|
|
48
|
+
onClickQueryDetailBtns?: (component: any) => {
|
|
49
|
+
component: any;
|
|
50
|
+
};
|
|
51
|
+
/** 点击更新按钮时的自定义校验 */
|
|
52
|
+
beforeUpdateComponentValidate?: (areaMap: AreaMap, component: any) => ValidateResult;
|
|
53
|
+
/** 转换为component inputquery模型时调用 */
|
|
54
|
+
reviseWhenConvertToQueryInput?: (input: any) => any;
|
|
55
|
+
/** 动态更新dataSchema */
|
|
56
|
+
reviseDataSchemaByComponent?: (dataSchema: DataPanelDataSchema, options?: {
|
|
57
|
+
/** 是否是组件创建初始化,若为true,此时 attribute等参数不起作用,可以省略 */
|
|
58
|
+
isInit?: boolean;
|
|
59
|
+
/** 根据组件attribute动态更新dataSchema */
|
|
60
|
+
attribute?: any;
|
|
61
|
+
/** component信息,for 大屏 */
|
|
62
|
+
component?: any;
|
|
63
|
+
}) => DataPanelDataSchema;
|
|
64
|
+
/** 其他图表切换到当前图表订正input */
|
|
65
|
+
reviseInputWhenSwitchComponent?: {
|
|
66
|
+
/** 来源图表类型,如果没命中,则走默认订正逻辑 */
|
|
67
|
+
fromList: any[];
|
|
68
|
+
reviser: (fromInput: any, dftToInput: any, from: any, to: any) => any;
|
|
69
|
+
};
|
|
70
|
+
/** 指标树管理,趋势分析表用到 */
|
|
71
|
+
indicatorTreeManager?: {
|
|
72
|
+
setter: (component: any, newHierarchicalData?: any[]) => any;
|
|
73
|
+
getter: (component: any) => any[];
|
|
74
|
+
};
|
|
75
|
+
/** 自定义是否支持自动刷新的hook */
|
|
76
|
+
getSupportAutoRefresh?: (component: any) => boolean;
|
|
77
|
+
};
|
|
78
|
+
/** 批量字段配置相关 */
|
|
79
|
+
batchFieldSettingConfig?: {
|
|
80
|
+
/** 自定义批量字段设置表头 */
|
|
81
|
+
customFiledConfigRow?: (headerRow: FieldConfigRow) => FieldConfigRow;
|
|
82
|
+
};
|
|
83
|
+
/** 开启聚合明细按钮组 */
|
|
84
|
+
showQueryDetailBtns?: boolean;
|
|
85
|
+
/** 关闭度量重复校验 */
|
|
86
|
+
allowMeasureRepeat?: boolean;
|
|
87
|
+
/** 是否支持数据混合 */
|
|
88
|
+
supportCubeBlend?: boolean | ((component: any) => boolean);
|
|
89
|
+
/** 是否允许在同个area中,出现相同的维度字段 */
|
|
90
|
+
allowDimRepeatInOneArea?: boolean;
|
|
91
|
+
isShowCube?: (component: any) => boolean;
|
|
92
|
+
/** 面板插槽,主要用来自定义一些图表的特殊配置组件
|
|
93
|
+
*/
|
|
94
|
+
slot?: Partial<{
|
|
95
|
+
/** area配置区域包裹层插槽 */
|
|
96
|
+
areasWrapper: (props: {
|
|
97
|
+
component: any;
|
|
98
|
+
onFreshComponent: OnFreshComponentType;
|
|
99
|
+
}) => React.ReactElement;
|
|
100
|
+
}>;
|
|
101
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CommonCompInputAreaType, ConfigCellOption, FieldConfigRow } from './base';
|
|
2
|
+
import { CommonCompInputAreaTypeEnum, QueryAxisType, FieldType, CUSTOM_FIELD_TYPES, SecondFieldType, ChartStatus, StackedSortType, ResultMode, RetainAreaId, ConfigCellType, ConfigColumnType, CheckBoxState, FieldGroupType, FieldCollectionType, LnglatGroupChildFlags } from './base';
|
|
3
|
+
import type { CommonCompInputComplexFilter, TimeTypeFilter, CommonCompInputComplexFilterItem, TableCalculateParam, CalcOrder, TopNParams } from './data-config';
|
|
4
|
+
import { DataConfig, DataConfigAreaItemColumn, TableType, TableDirection, ProportionType, AccumulateCalcType } from './data-config';
|
|
5
|
+
import type { FieldConfigs, FieldInfo, ChildFieldInfo, DropDownMenuFieldConfig, AlignConfig, AggregationConfig, AdvancedCalculationConfig, ContrastConfig, NumberFormatConfig, FieldRuntime, CompFieldConfig, LabelConfig, AreaMapItem, AreaMap, VirtualFieldInfo, ResetFieldConfigType, ResetMenuType, SortConfig, Message, OnFreshComponentType, OnFreshComponentOptions, OnChangeCubeOptions, FieldMenuConfig, ChangeFieldMenuConfigs, ColumnFieldInfo, FieldCollectionInfo, ValidateResult, AuxiliaryFieldConfig, EmptyValueDisplayFieldConfig } from './data-schema-item';
|
|
6
|
+
import { DataSchemaAreaItem, OperationMenuItem, DropdownMenuItem, OperationTypes, Aggregators, FieldConfigTypes, ContrastTypes, AdvanceCalTypes, AdvanceCalcDateTypes, NumberFormats, AlignTypes, VerticalAlignTypes, AlignmentCategory, SortTypes, FieldChartTypes, ImageSizes, DropDownMenuType, DataSchemaRule, FieldGroupSelectorType } from './data-schema-item';
|
|
7
|
+
import { DataPanelDataSchema, ResultDisplay } from './data-schema';
|
|
8
|
+
export { DataSchemaRule, CommonCompInputAreaTypeEnum, DataConfig, DataConfigAreaItemColumn, TableType, TableDirection, DataPanelDataSchema, DataSchemaAreaItem, OperationMenuItem, DropdownMenuItem, OperationTypes, Aggregators, FieldConfigTypes, ContrastTypes, AdvanceCalTypes, AdvanceCalcDateTypes, NumberFormats, AlignTypes, VerticalAlignTypes, AlignmentCategory, SortTypes, FieldGroupSelectorType, FieldChartTypes, ImageSizes, CUSTOM_FIELD_TYPES, FieldType, QueryAxisType, DropDownMenuType, SecondFieldType, ChartStatus, StackedSortType, ResultMode, RetainAreaId, ConfigCellType, ConfigColumnType, CheckBoxState, ResultDisplay, FieldGroupType, ProportionType, AccumulateCalcType, FieldCollectionType, LnglatGroupChildFlags, };
|
|
9
|
+
export type { CommonCompInputAreaType, FieldInfo, ChildFieldInfo, FieldConfigs, DropDownMenuFieldConfig, AlignConfig, AggregationConfig, AdvancedCalculationConfig, ContrastConfig, NumberFormatConfig, FieldRuntime, CompFieldConfig, LabelConfig, TimeTypeFilter, CommonCompInputComplexFilter, ResetFieldConfigType, CommonCompInputComplexFilterItem, AreaMapItem, AreaMap, VirtualFieldInfo, ResetMenuType, SortConfig, Message, OnFreshComponentType, OnFreshComponentOptions, OnChangeCubeOptions, ConfigCellOption, FieldConfigRow, FieldMenuConfig, ChangeFieldMenuConfigs, ColumnFieldInfo, FieldCollectionInfo, AuxiliaryFieldConfig, ValidateResult, TableCalculateParam, CalcOrder, TopNParams, EmptyValueDisplayFieldConfig, };
|
package/cjs/etl.d.ts
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/** etl发布状态 */
|
|
2
|
+
export declare enum EtlPublishStatus {
|
|
3
|
+
/** 未发布 */
|
|
4
|
+
unPublisHed = 0,
|
|
5
|
+
/** 已发布 */
|
|
6
|
+
published = 1,
|
|
7
|
+
/** 已发布并且编辑保存正确 */
|
|
8
|
+
publishedEditOK = 2,
|
|
9
|
+
/** 下线 */
|
|
10
|
+
offline = 3,
|
|
11
|
+
/** 已发布但编辑有错误 */
|
|
12
|
+
publishedEditError = 4
|
|
13
|
+
}
|
|
14
|
+
/** etl 调度状态 */
|
|
15
|
+
/**
|
|
16
|
+
* NOT_RUN(-1, "未运行"),
|
|
17
|
+
READY_TO_RUN(1, "调度中待运行"),
|
|
18
|
+
RUNNING(2, "运行中"),
|
|
19
|
+
RUN_SUCCESS(3, "执行成功"),
|
|
20
|
+
RUN_FAILED(4, "执行失败"),
|
|
21
|
+
MANUAL_TERMINATED(5, "手动终止"),
|
|
22
|
+
*/
|
|
23
|
+
export declare enum EtlScheduleStatus {
|
|
24
|
+
/** 未运行 */
|
|
25
|
+
NotRun = -1,
|
|
26
|
+
/** 调度中待运行 */
|
|
27
|
+
ReadyToRun = 1,
|
|
28
|
+
/** 运行中 */
|
|
29
|
+
Running = 2,
|
|
30
|
+
/** 执行成功 */
|
|
31
|
+
RunSuccess = 3,
|
|
32
|
+
/** 执行失败 */
|
|
33
|
+
RunFailed = 4,
|
|
34
|
+
/** 手动终止 */
|
|
35
|
+
ManualTerminated = 5
|
|
36
|
+
}
|
|
37
|
+
/** elt 产物状态 */
|
|
38
|
+
export declare enum EtlProductStatus {
|
|
39
|
+
/**
|
|
40
|
+
* 正常输出中
|
|
41
|
+
*/
|
|
42
|
+
Running = 1,
|
|
43
|
+
/** 已解绑 */
|
|
44
|
+
UnBind = 2,
|
|
45
|
+
/** 已删除 */
|
|
46
|
+
Deleted = 3
|
|
47
|
+
}
|
|
48
|
+
/** etl 产物信息 */
|
|
49
|
+
export interface IEtlMeta {
|
|
50
|
+
/** etl 信息 */
|
|
51
|
+
etlId: string;
|
|
52
|
+
/** etl name */
|
|
53
|
+
etlName: string;
|
|
54
|
+
/** elt 发布状态 */
|
|
55
|
+
etlPublishStatus: EtlPublishStatus;
|
|
56
|
+
/** 是否停止调度了 */
|
|
57
|
+
etlSchedulePaused: boolean;
|
|
58
|
+
/** 创建时间 */
|
|
59
|
+
gmtCreate: string;
|
|
60
|
+
/** 修改时间 */
|
|
61
|
+
gmtModified: string;
|
|
62
|
+
/** 作品id */
|
|
63
|
+
productId: string;
|
|
64
|
+
/** 产物名称 */
|
|
65
|
+
productName: string;
|
|
66
|
+
/** 作品地址,数据源id或者文件夹id */
|
|
67
|
+
productAimDirId: string;
|
|
68
|
+
/** 文件夹名称或者数据源名称 */
|
|
69
|
+
productAimDirName: string;
|
|
70
|
+
/** 产物状态 已删除等 */
|
|
71
|
+
productStatus: EtlProductStatus;
|
|
72
|
+
/** 产物类型,数据表或数据集 */
|
|
73
|
+
productType: string;
|
|
74
|
+
/** 最后一次调度状态 */
|
|
75
|
+
lastScheduleStatus: EtlScheduleStatus;
|
|
76
|
+
}
|
package/cjs/index.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
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, } from './data-panel';
|
|
2
|
+
export type { CommonCompInputAreaType, FieldConfigs, FieldInfo, ChildFieldInfo, DropDownMenuFieldConfig, AlignConfig, AggregationConfig, AdvancedCalculationConfig, ContrastConfig, NumberFormatConfig, FieldRuntime, CompFieldConfig, LabelConfig, TimeTypeFilter, CommonCompInputComplexFilter, CommonCompInputComplexFilterItem, AreaMapItem, AreaMap, VirtualFieldInfo, ResetFieldConfigType, ResetMenuType, SortConfig, Message, OnFreshComponentType, OnFreshComponentOptions, OnChangeCubeOptions, ConfigCellOption, FieldConfigRow, FieldMenuConfig, ChangeFieldMenuConfigs, ColumnFieldInfo, FieldCollectionInfo, ValidateResult, TableCalculateParam, CalcOrder, TopNParams, AuxiliaryFieldConfig, EmptyValueDisplayFieldConfig, } from './data-panel';
|
|
3
|
+
export { ComponentType, ChartType, ScreenComponentType, ScreenComponentCode } from './component-type';
|
|
4
|
+
export { OlapResponseBase, CellMeta, RowColumnMeta, CrossTableColumnType, CrossTableColumnModel, CrossTableFieldSetting, CrossTableRowModel, CrossTableRowType, CrossTableTotalConfig, } from './cross-table';
|
|
5
|
+
export type { CrossTableHeaderMeta } from './cross-table';
|
|
6
|
+
export type { IEtlMeta } from './etl';
|
|
7
|
+
export { EtlPublishStatus, EtlScheduleStatus, EtlProductStatus } from './etl';
|
|
8
|
+
export { CustomEventType } from './open/events/event-props';
|
|
9
|
+
export type { CustomEventModalPayload, CustomEventPageConfig, CustomEventPropsDispatch, CustomEventProps, } from './open/events/event-props';
|
|
10
|
+
export type { CustomEventMeta } from './open/events/event-schema';
|
|
11
|
+
export type { ComponentProps, ComponentPropsColorSeries, ComponentPropsCubeConfig, ComponentPropsDispatch, ComponentPropsGlobalConfig, ComponentPropsSkin, ComponentPropsViewConfig, DimGranularity, } from './open/components/component-props';
|
|
12
|
+
export type { ComponentMeta, ComponentMetaPropsSchema } from './open/components/component-meta';
|
|
13
|
+
export type { Lifecycle, LifecycleBootstrap, LifecycleMount, LifecycleProps, LifecycleUnmount, LifecycleUpdate, } from './open/components/component-lifecycle';
|
|
14
|
+
export * from './open/components/style-schema';
|
|
15
|
+
export * from './open/components/data-schema';
|
|
16
|
+
export * from './chart-config';
|
|
17
|
+
export * from './standard-model';
|
|
18
|
+
export * from './cube';
|
|
19
|
+
export * from './open/components/style-schema';
|
|
20
|
+
export type { MenuMeta, MenuProps, MenuSchema, MenuSchemaBase, MenuSchemaItem } from './open/menus/menu-schema';
|
|
21
|
+
export * from './open/menus/menu-props';
|
|
22
|
+
export type { EmbedBaseSrc, EmbedBaseFeature, EmbedBaseEventMessageDTO, EmbedBaseEventMessageContent, EmbedBaseEventListener, EmbedBaseEventListenerReturn, } from './open/embed/core';
|
|
23
|
+
export type { OpenPageTypeEnum } from './open/common/page-types';
|
|
24
|
+
export { OpenEventTypeEnum } from './open/common/event-types';
|
|
25
|
+
export type { OpenDeviceTypeEnum } from './open/common/misc';
|
|
26
|
+
export type { EnumAsUnion, Implements } from './open/common/tools';
|
|
27
|
+
export { RouteKey } from './router/route-key';
|
|
28
|
+
export { ROUTE_TREE, ROUTE_PATH_MAP } from './router/route-tree';
|
|
29
|
+
export type { RouteTreeNode } from './router/route-tree';
|
package/cjs/index.js
CHANGED
|
@@ -66,7 +66,6 @@ __export(src_exports, {
|
|
|
66
66
|
DropdownMenuItem: () => DropdownMenuItem,
|
|
67
67
|
DsCreateOriginEnum: () => DsCreateOriginEnum,
|
|
68
68
|
DsType: () => DsType,
|
|
69
|
-
EmbedEnv: () => EmbedEnv,
|
|
70
69
|
EmptyStringOrNullDisplayConfig: () => EmptyStringOrNullDisplayConfig,
|
|
71
70
|
EmptyValueDisplayConfig: () => EmptyValueDisplayConfig,
|
|
72
71
|
EmptyValueDisplayType: () => EmptyValueDisplayType,
|
|
@@ -1266,7 +1265,6 @@ var EtlProductStatus;
|
|
|
1266
1265
|
var OpenEventTypeEnum;
|
|
1267
1266
|
(function(OpenEventTypeEnum2) {
|
|
1268
1267
|
OpenEventTypeEnum2["before-page-change-event"] = "before-page-change-event";
|
|
1269
|
-
OpenEventTypeEnum2["after-page-loaded-event"] = "after-page-loaded-event";
|
|
1270
1268
|
OpenEventTypeEnum2["before-download-event"] = "before-download-event";
|
|
1271
1269
|
OpenEventTypeEnum2["before-page-loaded-event"] = "before-page-loaded-event";
|
|
1272
1270
|
OpenEventTypeEnum2["before-publish-event"] = "before-publish-event";
|
|
@@ -1864,13 +1862,6 @@ var CustomMenuMode;
|
|
|
1864
1862
|
CustomMenuMode2[CustomMenuMode2["pack"] = 2] = "pack";
|
|
1865
1863
|
})(CustomMenuMode || (CustomMenuMode = {}));
|
|
1866
1864
|
|
|
1867
|
-
// src/basic/bi-types/src/open/embed/core.ts
|
|
1868
|
-
var EmbedEnv;
|
|
1869
|
-
(function(EmbedEnv2) {
|
|
1870
|
-
EmbedEnv2["sdk"] = "sdk";
|
|
1871
|
-
EmbedEnv2["iframe"] = "iframe";
|
|
1872
|
-
})(EmbedEnv || (EmbedEnv = {}));
|
|
1873
|
-
|
|
1874
1865
|
// src/basic/bi-types/src/router/route-key.ts
|
|
1875
1866
|
var RouteKey;
|
|
1876
1867
|
(function(RouteKey2) {
|
|
@@ -1946,7 +1937,7 @@ var RouteKey;
|
|
|
1946
1937
|
RouteKey2["orgAdminPvUsage"] = "orgAdminPvUsage";
|
|
1947
1938
|
RouteKey2["orgAdminPvView"] = "orgAdminPvView";
|
|
1948
1939
|
RouteKey2["orgPerformance"] = "orgPerformance";
|
|
1949
|
-
RouteKey2["
|
|
1940
|
+
RouteKey2["orgDatasetPerformance"] = "orgDatasetPerformance";
|
|
1950
1941
|
RouteKey2["orgDashboardPerformance"] = "orgDashboardPerformance";
|
|
1951
1942
|
RouteKey2["orgAdminAnalysis"] = "orgAdminAnalysis";
|
|
1952
1943
|
RouteKey2["orgAdminResource"] = "orgAdminResource";
|
|
@@ -1954,7 +1945,7 @@ var RouteKey;
|
|
|
1954
1945
|
RouteKey2["orgAdminResourceRecord"] = "orgAdminResourceRecord";
|
|
1955
1946
|
RouteKey2["orgAdminResourceDesc"] = "orgAdminResourceDesc";
|
|
1956
1947
|
RouteKey2["companyApply"] = "companyApply";
|
|
1957
|
-
RouteKey2["
|
|
1948
|
+
RouteKey2["downloadTask"] = "downloadTask";
|
|
1958
1949
|
RouteKey2["create"] = "create";
|
|
1959
1950
|
RouteKey2["approvalCenter"] = "approvalCenter";
|
|
1960
1951
|
RouteKey2["messageCenterApproval"] = "messageCenterApproval";
|
|
@@ -1963,7 +1954,7 @@ var RouteKey;
|
|
|
1963
1954
|
RouteKey2["monitorManage"] = "monitorManage";
|
|
1964
1955
|
RouteKey2["websiteMonitorDetail"] = "websiteMonitorDetail";
|
|
1965
1956
|
RouteKey2["monitorDesc"] = "monitorDesc";
|
|
1966
|
-
RouteKey2["
|
|
1957
|
+
RouteKey2["openRoot"] = "openRoot";
|
|
1967
1958
|
RouteKey2["openHome"] = "openHome";
|
|
1968
1959
|
RouteKey2["openNoPermission"] = "openNoPermission";
|
|
1969
1960
|
RouteKey2["loginConfig"] = "loginConfig";
|
|
@@ -1985,11 +1976,12 @@ var RouteKey;
|
|
|
1985
1976
|
RouteKey2["embedStatistic"] = "embedStatistic";
|
|
1986
1977
|
RouteKey2["apiStatistic"] = "apiStatistic";
|
|
1987
1978
|
RouteKey2["apiStatisticCount"] = "apiStatisticCount";
|
|
1988
|
-
RouteKey2["
|
|
1979
|
+
RouteKey2["standardUser"] = "standardUser";
|
|
1989
1980
|
RouteKey2["subscriptionManage"] = "subscriptionManage";
|
|
1990
1981
|
RouteKey2["subscriptionTask"] = "subscriptionTask";
|
|
1991
1982
|
RouteKey2["sendRecord"] = "sendRecord";
|
|
1992
|
-
RouteKey2["
|
|
1983
|
+
RouteKey2["templateRoot"] = "templateRoot";
|
|
1984
|
+
RouteKey2["templateView"] = "templateView";
|
|
1993
1985
|
RouteKey2["view"] = "view";
|
|
1994
1986
|
RouteKey2["viewHome"] = "viewHome";
|
|
1995
1987
|
RouteKey2["viewBoard"] = "viewBoard";
|
|
@@ -2009,57 +2001,62 @@ var RouteKey;
|
|
|
2009
2001
|
RouteKey2["workbookListTrialList"] = "workbookTrialList";
|
|
2010
2002
|
RouteKey2["screenList"] = "screenList";
|
|
2011
2003
|
RouteKey2["analysisList"] = "analysisList";
|
|
2012
|
-
RouteKey2["
|
|
2013
|
-
RouteKey2["
|
|
2004
|
+
RouteKey2["downloadList"] = "downloadList";
|
|
2005
|
+
RouteKey2["formList"] = "formList";
|
|
2014
2006
|
RouteKey2["etlList"] = "etlList";
|
|
2015
|
-
RouteKey2["
|
|
2007
|
+
RouteKey2["datasetList"] = "datasetList";
|
|
2016
2008
|
RouteKey2["datasourceList"] = "datasourceList";
|
|
2017
2009
|
RouteKey2["workspaceInfo"] = "workspaceInfo";
|
|
2018
2010
|
RouteKey2["workspaceUser"] = "workspaceUser";
|
|
2019
2011
|
RouteKey2["workspaceCode"] = "workspaceCode";
|
|
2020
2012
|
RouteKey2["resourceAuth"] = "resourceAuth";
|
|
2021
2013
|
RouteKey2["accessAnalysis"] = "accessAnalysis";
|
|
2022
|
-
RouteKey2["
|
|
2014
|
+
RouteKey2["auditLog"] = "auditLog";
|
|
2023
2015
|
RouteKey2["performanceAnalysis"] = "performanceAnalysis";
|
|
2024
|
-
RouteKey2["
|
|
2016
|
+
RouteKey2["performanceAnalysisDataset"] = "performanceAnalysisDataset";
|
|
2025
2017
|
RouteKey2["performanceAnalysisDashboard"] = "performanceAnalysisDashboard";
|
|
2026
2018
|
RouteKey2["quickEngine"] = "quickEngine";
|
|
2027
|
-
RouteKey2["
|
|
2019
|
+
RouteKey2["resourceLineage"] = "resourceLineage";
|
|
2028
2020
|
RouteKey2["advanceVersion"] = "advanceVersion";
|
|
2029
2021
|
RouteKey2["workspacePreview"] = "workspacePreview";
|
|
2030
2022
|
RouteKey2["copilotHome"] = "copilotHome";
|
|
2031
2023
|
RouteKey2["copilotView"] = "copilotView";
|
|
2032
|
-
RouteKey2["
|
|
2033
|
-
RouteKey2["
|
|
2034
|
-
RouteKey2["
|
|
2035
|
-
RouteKey2["
|
|
2036
|
-
RouteKey2["
|
|
2037
|
-
RouteKey2["
|
|
2038
|
-
RouteKey2["
|
|
2039
|
-
RouteKey2["
|
|
2040
|
-
RouteKey2["
|
|
2024
|
+
RouteKey2["copilotPublicView"] = "copilotPublicView";
|
|
2025
|
+
RouteKey2["portalRoot"] = "portalRoot";
|
|
2026
|
+
RouteKey2["portalEdit"] = "portalEdit";
|
|
2027
|
+
RouteKey2["portalView"] = "portalView";
|
|
2028
|
+
RouteKey2["formRoot"] = "formRoot";
|
|
2029
|
+
RouteKey2["formCreate"] = "formCreate";
|
|
2030
|
+
RouteKey2["formEdit"] = "formEdit";
|
|
2031
|
+
RouteKey2["formManage"] = "formManage";
|
|
2032
|
+
RouteKey2["formView"] = "formView";
|
|
2033
|
+
RouteKey2["formPublicView"] = "formPublicView";
|
|
2041
2034
|
RouteKey2["dashboardRoot"] = "dashboardRoot";
|
|
2042
2035
|
RouteKey2["dashboardView"] = "dashboardView";
|
|
2036
|
+
RouteKey2["dashboardPublicView"] = "dashboardPublicView";
|
|
2043
2037
|
RouteKey2["dashboardEdit"] = "dashboardEdit";
|
|
2044
2038
|
RouteKey2["workbookRoot"] = "workbookRoot";
|
|
2045
2039
|
RouteKey2["workbookView"] = "workbookView";
|
|
2040
|
+
RouteKey2["workbookPublicView"] = "workbookPublicView";
|
|
2046
2041
|
RouteKey2["workbookFormTask"] = "workbookFormTask";
|
|
2047
2042
|
RouteKey2["workbookEdit"] = "workbookEdit";
|
|
2048
2043
|
RouteKey2["etlRoot"] = "etlRoot";
|
|
2049
2044
|
RouteKey2["etlEdit"] = "etlEdit";
|
|
2050
|
-
RouteKey2["etlView"] = "etlView";
|
|
2051
2045
|
RouteKey2["etlLog"] = "etlLog";
|
|
2052
|
-
RouteKey2["
|
|
2053
|
-
RouteKey2["
|
|
2046
|
+
RouteKey2["datasetRoot"] = "datasetRoot";
|
|
2047
|
+
RouteKey2["datasetEdit"] = "datasetEdit";
|
|
2054
2048
|
RouteKey2["screenRoot"] = "screenRoot";
|
|
2055
2049
|
RouteKey2["screenEdit"] = "screenEdit";
|
|
2056
2050
|
RouteKey2["screenView"] = "screenView";
|
|
2057
|
-
RouteKey2["
|
|
2058
|
-
RouteKey2["
|
|
2059
|
-
RouteKey2["
|
|
2051
|
+
RouteKey2["screenPublicView"] = "screenPublicView";
|
|
2052
|
+
RouteKey2["downloadRoot"] = "downloadRoot";
|
|
2053
|
+
RouteKey2["downloadEdit"] = "downloadEdit";
|
|
2054
|
+
RouteKey2["downloadView"] = "downloadView";
|
|
2055
|
+
RouteKey2["downloadPublicView"] = "downloadPublicView";
|
|
2060
2056
|
RouteKey2["analysisRoot"] = "analysisRoot";
|
|
2061
2057
|
RouteKey2["analysisEdit"] = "analysisEdit";
|
|
2062
2058
|
RouteKey2["analysisView"] = "analysisView";
|
|
2059
|
+
RouteKey2["analysisPublicView"] = "analysisPublicView";
|
|
2063
2060
|
})(RouteKey || (RouteKey = {}));
|
|
2064
2061
|
|
|
2065
2062
|
// src/basic/bi-types/src/router/route-tree.ts
|
|
@@ -2380,7 +2377,7 @@ var ROUTE_TREE = {
|
|
|
2380
2377
|
path: "/org/admin/performance",
|
|
2381
2378
|
children: [
|
|
2382
2379
|
{
|
|
2383
|
-
key: RouteKey.
|
|
2380
|
+
key: RouteKey.orgDatasetPerformance,
|
|
2384
2381
|
path: "/org/admin/performance/cube"
|
|
2385
2382
|
},
|
|
2386
2383
|
{
|
|
@@ -2415,7 +2412,7 @@ var ROUTE_TREE = {
|
|
|
2415
2412
|
},
|
|
2416
2413
|
/** 取数中心 */
|
|
2417
2414
|
{
|
|
2418
|
-
key: RouteKey.
|
|
2415
|
+
key: RouteKey.downloadTask,
|
|
2419
2416
|
path: "/offlineDownload"
|
|
2420
2417
|
},
|
|
2421
2418
|
/** 创作区 */
|
|
@@ -2459,7 +2456,7 @@ var ROUTE_TREE = {
|
|
|
2459
2456
|
},
|
|
2460
2457
|
/** 开放平台 */
|
|
2461
2458
|
{
|
|
2462
|
-
key: RouteKey.
|
|
2459
|
+
key: RouteKey.openRoot,
|
|
2463
2460
|
path: "/openservice",
|
|
2464
2461
|
children: [
|
|
2465
2462
|
{
|
|
@@ -2556,7 +2553,7 @@ var ROUTE_TREE = {
|
|
|
2556
2553
|
},
|
|
2557
2554
|
/** 标准版-组织管理 */
|
|
2558
2555
|
{
|
|
2559
|
-
key: RouteKey.
|
|
2556
|
+
key: RouteKey.standardUser,
|
|
2560
2557
|
path: "/instance/standand/user"
|
|
2561
2558
|
},
|
|
2562
2559
|
/** 订阅管理 */
|
|
@@ -2576,8 +2573,14 @@ var ROUTE_TREE = {
|
|
|
2576
2573
|
},
|
|
2577
2574
|
/** 模板市场 */
|
|
2578
2575
|
{
|
|
2579
|
-
key: RouteKey.
|
|
2580
|
-
path: "/templateMarket"
|
|
2576
|
+
key: RouteKey.templateRoot,
|
|
2577
|
+
path: "/templateMarket",
|
|
2578
|
+
children: [
|
|
2579
|
+
{
|
|
2580
|
+
key: RouteKey.templateView,
|
|
2581
|
+
path: "/template/view"
|
|
2582
|
+
}
|
|
2583
|
+
]
|
|
2581
2584
|
},
|
|
2582
2585
|
/** 我的看板 */
|
|
2583
2586
|
{
|
|
@@ -2665,11 +2668,11 @@ var ROUTE_TREE = {
|
|
|
2665
2668
|
path: "/workspace/analysis"
|
|
2666
2669
|
},
|
|
2667
2670
|
{
|
|
2668
|
-
key: RouteKey.
|
|
2671
|
+
key: RouteKey.downloadList,
|
|
2669
2672
|
path: "/workspace/download"
|
|
2670
2673
|
},
|
|
2671
2674
|
{
|
|
2672
|
-
key: RouteKey.
|
|
2675
|
+
key: RouteKey.formList,
|
|
2673
2676
|
path: "/workspace/dataForm"
|
|
2674
2677
|
},
|
|
2675
2678
|
{
|
|
@@ -2677,7 +2680,7 @@ var ROUTE_TREE = {
|
|
|
2677
2680
|
path: "/workspace/etl"
|
|
2678
2681
|
},
|
|
2679
2682
|
{
|
|
2680
|
-
key: RouteKey.
|
|
2683
|
+
key: RouteKey.datasetList,
|
|
2681
2684
|
path: "/workspace/schema"
|
|
2682
2685
|
},
|
|
2683
2686
|
{
|
|
@@ -2705,7 +2708,7 @@ var ROUTE_TREE = {
|
|
|
2705
2708
|
path: "/workspace/resourceanalysis"
|
|
2706
2709
|
},
|
|
2707
2710
|
{
|
|
2708
|
-
key: RouteKey.
|
|
2711
|
+
key: RouteKey.auditLog,
|
|
2709
2712
|
path: "/workspace/auditLog"
|
|
2710
2713
|
},
|
|
2711
2714
|
{
|
|
@@ -2713,7 +2716,7 @@ var ROUTE_TREE = {
|
|
|
2713
2716
|
path: "/workspace/performance",
|
|
2714
2717
|
children: [
|
|
2715
2718
|
{
|
|
2716
|
-
key: RouteKey.
|
|
2719
|
+
key: RouteKey.performanceAnalysisDataset,
|
|
2717
2720
|
path: "/workspace/performance/cube"
|
|
2718
2721
|
},
|
|
2719
2722
|
{
|
|
@@ -2727,7 +2730,7 @@ var ROUTE_TREE = {
|
|
|
2727
2730
|
path: "/workspace/quickEngine"
|
|
2728
2731
|
},
|
|
2729
2732
|
{
|
|
2730
|
-
key: RouteKey.
|
|
2733
|
+
key: RouteKey.resourceLineage,
|
|
2731
2734
|
path: "/workspace/lineage"
|
|
2732
2735
|
},
|
|
2733
2736
|
{
|
|
@@ -2752,44 +2755,48 @@ var ROUTE_TREE = {
|
|
|
2752
2755
|
path: "/copilot"
|
|
2753
2756
|
},
|
|
2754
2757
|
{
|
|
2755
|
-
key: RouteKey.
|
|
2758
|
+
key: RouteKey.copilotPublicView,
|
|
2756
2759
|
path: "/token3rd/copilot"
|
|
2757
2760
|
},
|
|
2758
2761
|
/** 数据门户 */
|
|
2759
2762
|
{
|
|
2760
|
-
key: RouteKey.
|
|
2763
|
+
key: RouteKey.portalRoot,
|
|
2761
2764
|
path: "/product",
|
|
2762
2765
|
children: [
|
|
2763
2766
|
{
|
|
2764
|
-
key: RouteKey.
|
|
2767
|
+
key: RouteKey.portalEdit,
|
|
2765
2768
|
path: "/productedit.htm"
|
|
2766
2769
|
},
|
|
2767
2770
|
{
|
|
2768
|
-
key: RouteKey.
|
|
2771
|
+
key: RouteKey.portalView,
|
|
2769
2772
|
path: "/product/view.htm"
|
|
2770
2773
|
}
|
|
2771
2774
|
]
|
|
2772
2775
|
},
|
|
2773
2776
|
/** 数据填报 */
|
|
2774
2777
|
{
|
|
2775
|
-
key: RouteKey.
|
|
2778
|
+
key: RouteKey.formRoot,
|
|
2776
2779
|
path: "/form-system",
|
|
2777
2780
|
children: [
|
|
2778
2781
|
{
|
|
2779
|
-
key: RouteKey.
|
|
2782
|
+
key: RouteKey.formCreate,
|
|
2780
2783
|
path: "/form-system/editor/create"
|
|
2781
2784
|
},
|
|
2782
2785
|
{
|
|
2783
|
-
key: RouteKey.
|
|
2786
|
+
key: RouteKey.formEdit,
|
|
2784
2787
|
path: "/form-system/editor/edit/:id"
|
|
2785
2788
|
},
|
|
2786
2789
|
{
|
|
2787
|
-
key: RouteKey.
|
|
2790
|
+
key: RouteKey.formManage,
|
|
2788
2791
|
path: "/form-system/publish/manage/:id"
|
|
2789
2792
|
},
|
|
2790
2793
|
{
|
|
2791
|
-
key: RouteKey.
|
|
2794
|
+
key: RouteKey.formView,
|
|
2792
2795
|
path: "/form-system/publish/preview/:id"
|
|
2796
|
+
},
|
|
2797
|
+
{
|
|
2798
|
+
key: RouteKey.formPublicView,
|
|
2799
|
+
path: "/token3rd/dataform/view.htm"
|
|
2793
2800
|
}
|
|
2794
2801
|
]
|
|
2795
2802
|
},
|
|
@@ -2802,6 +2809,10 @@ var ROUTE_TREE = {
|
|
|
2802
2809
|
key: RouteKey.dashboardView,
|
|
2803
2810
|
path: "/dashboard/view/pc.htm"
|
|
2804
2811
|
},
|
|
2812
|
+
{
|
|
2813
|
+
key: RouteKey.dashboardPublicView,
|
|
2814
|
+
path: "/token3rd/dashboard/view/pc.htm"
|
|
2815
|
+
},
|
|
2805
2816
|
{
|
|
2806
2817
|
key: RouteKey.dashboardEdit,
|
|
2807
2818
|
path: "/dashboard/pc.htm"
|
|
@@ -2817,6 +2828,10 @@ var ROUTE_TREE = {
|
|
|
2817
2828
|
key: RouteKey.workbookView,
|
|
2818
2829
|
path: "/report/view.htm"
|
|
2819
2830
|
},
|
|
2831
|
+
{
|
|
2832
|
+
key: RouteKey.workbookPublicView,
|
|
2833
|
+
path: "/token3rd/report/view.htm"
|
|
2834
|
+
},
|
|
2820
2835
|
{
|
|
2821
2836
|
key: RouteKey.workbookFormTask,
|
|
2822
2837
|
path: "/report/formTask.htm"
|
|
@@ -2843,27 +2858,31 @@ var ROUTE_TREE = {
|
|
|
2843
2858
|
]
|
|
2844
2859
|
},
|
|
2845
2860
|
{
|
|
2846
|
-
key: RouteKey.
|
|
2861
|
+
key: RouteKey.datasetRoot,
|
|
2847
2862
|
path: "/cube",
|
|
2848
2863
|
children: [
|
|
2849
2864
|
{
|
|
2850
|
-
key: RouteKey.
|
|
2865
|
+
key: RouteKey.datasetEdit,
|
|
2851
2866
|
path: "/cube.htm"
|
|
2852
2867
|
}
|
|
2853
2868
|
]
|
|
2854
2869
|
},
|
|
2855
2870
|
/** 自助取数 */
|
|
2856
2871
|
{
|
|
2857
|
-
key: RouteKey.
|
|
2872
|
+
key: RouteKey.downloadRoot,
|
|
2858
2873
|
path: "/offline",
|
|
2859
2874
|
children: [
|
|
2860
2875
|
{
|
|
2861
|
-
key: RouteKey.
|
|
2876
|
+
key: RouteKey.downloadEdit,
|
|
2862
2877
|
path: "/offline/pc.htm"
|
|
2863
2878
|
},
|
|
2864
2879
|
{
|
|
2865
|
-
key: RouteKey.
|
|
2880
|
+
key: RouteKey.downloadView,
|
|
2866
2881
|
path: "/offline/view/pc.htm"
|
|
2882
|
+
},
|
|
2883
|
+
{
|
|
2884
|
+
key: RouteKey.downloadPublicView,
|
|
2885
|
+
path: "/token3rd/offline/view/pc.htm"
|
|
2867
2886
|
}
|
|
2868
2887
|
]
|
|
2869
2888
|
},
|
|
@@ -2879,6 +2898,10 @@ var ROUTE_TREE = {
|
|
|
2879
2898
|
{
|
|
2880
2899
|
key: RouteKey.analysisView,
|
|
2881
2900
|
path: "/analysis/view.htm"
|
|
2901
|
+
},
|
|
2902
|
+
{
|
|
2903
|
+
key: RouteKey.analysisPublicView,
|
|
2904
|
+
path: "/token3rd/analysis/view.htm"
|
|
2882
2905
|
}
|
|
2883
2906
|
]
|
|
2884
2907
|
},
|
|
@@ -2894,6 +2917,10 @@ var ROUTE_TREE = {
|
|
|
2894
2917
|
{
|
|
2895
2918
|
key: RouteKey.screenView,
|
|
2896
2919
|
path: "/screen/view.htm"
|
|
2920
|
+
},
|
|
2921
|
+
{
|
|
2922
|
+
key: RouteKey.screenPublicView,
|
|
2923
|
+
path: "/token3rd/screen/view.htm"
|
|
2897
2924
|
}
|
|
2898
2925
|
]
|
|
2899
2926
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author 海狸
|
|
3
|
+
* @description 开放事件类型定义
|
|
4
|
+
*/
|
|
5
|
+
import type { EnumAsUnion } from './tools';
|
|
6
|
+
/** 开放相关事件枚举, 取值固定为 before-xxx-event, after-xxx-event */
|
|
7
|
+
export declare enum OpenEventTypeEnum {
|
|
8
|
+
/** 嵌入事件-页面跳转前 */
|
|
9
|
+
'before-page-change-event' = "before-page-change-event",
|
|
10
|
+
/** 自定义事件-下载前 */
|
|
11
|
+
'before-download-event' = "before-download-event",
|
|
12
|
+
/** 自定义事件-页面加载前 */
|
|
13
|
+
'before-page-loaded-event' = "before-page-loaded-event",
|
|
14
|
+
/** 自定义事件-发布前 */
|
|
15
|
+
'before-publish-event' = "before-publish-event"
|
|
16
|
+
}
|
|
17
|
+
/** 开放相关事件取值固定为 before-xxx-event, after-xxx-event */
|
|
18
|
+
export type OpenEventTypeValue = `before-${string}-event` | `after-${string}-event`;
|
|
19
|
+
/** 开放事件名类型校验器 */
|
|
20
|
+
export type CreateOpenEventTypeUnion<T extends OpenEventTypeValue> = T extends OpenEventTypeValue ? T : never;
|
|
21
|
+
/** 开放相关页面类型值联合类型 */
|
|
22
|
+
export type OpenEventTypeUnion = CreateOpenEventTypeUnion<EnumAsUnion<typeof OpenEventTypeEnum>>;
|