@quickbi/bi-types 3.0.41-beta.18 → 3.0.41-beta.19
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 +1 -1
- package/cjs/index.js +45 -16
- package/cjs/open/embed/core.d.ts +19 -10
- package/cjs/router/route-key.d.ts +24 -14
- package/esm/index.d.ts +1 -1
- package/esm/index.mjs +45 -16
- package/esm/open/embed/core.d.ts +19 -10
- package/esm/router/route-key.d.ts +24 -14
- package/package.json +1 -1
package/cjs/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export * from './cube';
|
|
|
19
19
|
export * from './open/components/style-schema';
|
|
20
20
|
export type { MenuMeta, MenuProps, MenuSchema, MenuSchemaBase, MenuSchemaItem } from './open/menus/menu-schema';
|
|
21
21
|
export * from './open/menus/menu-props';
|
|
22
|
-
export type { EmbedBaseSrc, EmbedBaseFeature,
|
|
22
|
+
export type { EmbedBaseSrc, EmbedBaseFeature, EmbedBaseEventMessageDTO, EmbedBaseEventMessageContent, EmbedBaseEventListener, EmbedBaseEventListenerReturn, } from './open/embed/core';
|
|
23
23
|
export type { OpenPageTypeEnum } from './open/common/page-types';
|
|
24
24
|
export { OpenEventTypeEnum } from './open/common/event-types';
|
|
25
25
|
export type { OpenDeviceTypeEnum } from './open/common/misc';
|
package/cjs/index.js
CHANGED
|
@@ -2021,37 +2021,42 @@ var RouteKey;
|
|
|
2021
2021
|
RouteKey2["workspacePreview"] = "workspacePreview";
|
|
2022
2022
|
RouteKey2["copilotHome"] = "copilotHome";
|
|
2023
2023
|
RouteKey2["copilotView"] = "copilotView";
|
|
2024
|
-
RouteKey2["
|
|
2025
|
-
RouteKey2["
|
|
2026
|
-
RouteKey2["
|
|
2027
|
-
RouteKey2["
|
|
2024
|
+
RouteKey2["copilotPublicView"] = "copilotPublicView";
|
|
2025
|
+
RouteKey2["portalRoot"] = "portalRoot";
|
|
2026
|
+
RouteKey2["portalEdit"] = "portalEdit";
|
|
2027
|
+
RouteKey2["portalView"] = "portalView";
|
|
2028
2028
|
RouteKey2["formRoot"] = "formRoot";
|
|
2029
2029
|
RouteKey2["formCreate"] = "formCreate";
|
|
2030
2030
|
RouteKey2["formEdit"] = "formEdit";
|
|
2031
2031
|
RouteKey2["formManage"] = "formManage";
|
|
2032
2032
|
RouteKey2["formView"] = "formView";
|
|
2033
|
+
RouteKey2["formPublicView"] = "formPublicView";
|
|
2033
2034
|
RouteKey2["dashboardRoot"] = "dashboardRoot";
|
|
2034
2035
|
RouteKey2["dashboardView"] = "dashboardView";
|
|
2036
|
+
RouteKey2["dashboardPublicView"] = "dashboardPublicView";
|
|
2035
2037
|
RouteKey2["dashboardEdit"] = "dashboardEdit";
|
|
2036
2038
|
RouteKey2["workbookRoot"] = "workbookRoot";
|
|
2037
2039
|
RouteKey2["workbookView"] = "workbookView";
|
|
2040
|
+
RouteKey2["workbookPublicView"] = "workbookPublicView";
|
|
2038
2041
|
RouteKey2["workbookFormTask"] = "workbookFormTask";
|
|
2039
2042
|
RouteKey2["workbookEdit"] = "workbookEdit";
|
|
2040
2043
|
RouteKey2["etlRoot"] = "etlRoot";
|
|
2041
2044
|
RouteKey2["etlEdit"] = "etlEdit";
|
|
2042
|
-
RouteKey2["etlView"] = "etlView";
|
|
2043
2045
|
RouteKey2["etlLog"] = "etlLog";
|
|
2044
|
-
RouteKey2["
|
|
2045
|
-
RouteKey2["
|
|
2046
|
+
RouteKey2["datasetRoot"] = "datasetRoot";
|
|
2047
|
+
RouteKey2["datasetEdit"] = "datasetEdit";
|
|
2046
2048
|
RouteKey2["screenRoot"] = "screenRoot";
|
|
2047
2049
|
RouteKey2["screenEdit"] = "screenEdit";
|
|
2048
2050
|
RouteKey2["screenView"] = "screenView";
|
|
2049
|
-
RouteKey2["
|
|
2050
|
-
RouteKey2["
|
|
2051
|
-
RouteKey2["
|
|
2051
|
+
RouteKey2["screenPublicView"] = "screenPublicView";
|
|
2052
|
+
RouteKey2["downloadRoot"] = "downloadRoot";
|
|
2053
|
+
RouteKey2["downloadEdit"] = "downloadEdit";
|
|
2054
|
+
RouteKey2["downloadView"] = "downloadView";
|
|
2055
|
+
RouteKey2["downloadPublicView"] = "downloadPublicView";
|
|
2052
2056
|
RouteKey2["analysisRoot"] = "analysisRoot";
|
|
2053
2057
|
RouteKey2["analysisEdit"] = "analysisEdit";
|
|
2054
2058
|
RouteKey2["analysisView"] = "analysisView";
|
|
2059
|
+
RouteKey2["analysisPublicView"] = "analysisPublicView";
|
|
2055
2060
|
})(RouteKey || (RouteKey = {}));
|
|
2056
2061
|
|
|
2057
2062
|
// src/basic/bi-types/src/router/route-tree.ts
|
|
@@ -2750,20 +2755,20 @@ var ROUTE_TREE = {
|
|
|
2750
2755
|
path: "/copilot"
|
|
2751
2756
|
},
|
|
2752
2757
|
{
|
|
2753
|
-
key: RouteKey.
|
|
2758
|
+
key: RouteKey.copilotPublicView,
|
|
2754
2759
|
path: "/token3rd/copilot"
|
|
2755
2760
|
},
|
|
2756
2761
|
/** 数据门户 */
|
|
2757
2762
|
{
|
|
2758
|
-
key: RouteKey.
|
|
2763
|
+
key: RouteKey.portalRoot,
|
|
2759
2764
|
path: "/product",
|
|
2760
2765
|
children: [
|
|
2761
2766
|
{
|
|
2762
|
-
key: RouteKey.
|
|
2767
|
+
key: RouteKey.portalEdit,
|
|
2763
2768
|
path: "/productedit.htm"
|
|
2764
2769
|
},
|
|
2765
2770
|
{
|
|
2766
|
-
key: RouteKey.
|
|
2771
|
+
key: RouteKey.portalView,
|
|
2767
2772
|
path: "/product/view.htm"
|
|
2768
2773
|
}
|
|
2769
2774
|
]
|
|
@@ -2788,6 +2793,10 @@ var ROUTE_TREE = {
|
|
|
2788
2793
|
{
|
|
2789
2794
|
key: RouteKey.formView,
|
|
2790
2795
|
path: "/form-system/publish/preview/:id"
|
|
2796
|
+
},
|
|
2797
|
+
{
|
|
2798
|
+
key: RouteKey.formPublicView,
|
|
2799
|
+
path: "/token3rd/dataform/view.htm"
|
|
2791
2800
|
}
|
|
2792
2801
|
]
|
|
2793
2802
|
},
|
|
@@ -2800,6 +2809,10 @@ var ROUTE_TREE = {
|
|
|
2800
2809
|
key: RouteKey.dashboardView,
|
|
2801
2810
|
path: "/dashboard/view/pc.htm"
|
|
2802
2811
|
},
|
|
2812
|
+
{
|
|
2813
|
+
key: RouteKey.dashboardPublicView,
|
|
2814
|
+
path: "/token3rd/dashboard/view/pc.htm"
|
|
2815
|
+
},
|
|
2803
2816
|
{
|
|
2804
2817
|
key: RouteKey.dashboardEdit,
|
|
2805
2818
|
path: "/dashboard/pc.htm"
|
|
@@ -2815,6 +2828,10 @@ var ROUTE_TREE = {
|
|
|
2815
2828
|
key: RouteKey.workbookView,
|
|
2816
2829
|
path: "/report/view.htm"
|
|
2817
2830
|
},
|
|
2831
|
+
{
|
|
2832
|
+
key: RouteKey.workbookPublicView,
|
|
2833
|
+
path: "/token3rd/report/view.htm"
|
|
2834
|
+
},
|
|
2818
2835
|
{
|
|
2819
2836
|
key: RouteKey.workbookFormTask,
|
|
2820
2837
|
path: "/report/formTask.htm"
|
|
@@ -2841,11 +2858,11 @@ var ROUTE_TREE = {
|
|
|
2841
2858
|
]
|
|
2842
2859
|
},
|
|
2843
2860
|
{
|
|
2844
|
-
key: RouteKey.
|
|
2861
|
+
key: RouteKey.datasetRoot,
|
|
2845
2862
|
path: "/cube",
|
|
2846
2863
|
children: [
|
|
2847
2864
|
{
|
|
2848
|
-
key: RouteKey.
|
|
2865
|
+
key: RouteKey.datasetEdit,
|
|
2849
2866
|
path: "/cube.htm"
|
|
2850
2867
|
}
|
|
2851
2868
|
]
|
|
@@ -2862,6 +2879,10 @@ var ROUTE_TREE = {
|
|
|
2862
2879
|
{
|
|
2863
2880
|
key: RouteKey.downloadView,
|
|
2864
2881
|
path: "/offline/view/pc.htm"
|
|
2882
|
+
},
|
|
2883
|
+
{
|
|
2884
|
+
key: RouteKey.downloadPublicView,
|
|
2885
|
+
path: "/token3rd/offline/view/pc.htm"
|
|
2865
2886
|
}
|
|
2866
2887
|
]
|
|
2867
2888
|
},
|
|
@@ -2877,6 +2898,10 @@ var ROUTE_TREE = {
|
|
|
2877
2898
|
{
|
|
2878
2899
|
key: RouteKey.analysisView,
|
|
2879
2900
|
path: "/analysis/view.htm"
|
|
2901
|
+
},
|
|
2902
|
+
{
|
|
2903
|
+
key: RouteKey.analysisPublicView,
|
|
2904
|
+
path: "/token3rd/analysis/view.htm"
|
|
2880
2905
|
}
|
|
2881
2906
|
]
|
|
2882
2907
|
},
|
|
@@ -2892,6 +2917,10 @@ var ROUTE_TREE = {
|
|
|
2892
2917
|
{
|
|
2893
2918
|
key: RouteKey.screenView,
|
|
2894
2919
|
path: "/screen/view.htm"
|
|
2920
|
+
},
|
|
2921
|
+
{
|
|
2922
|
+
key: RouteKey.screenPublicView,
|
|
2923
|
+
path: "/token3rd/screen/view.htm"
|
|
2895
2924
|
}
|
|
2896
2925
|
]
|
|
2897
2926
|
}
|
package/cjs/open/embed/core.d.ts
CHANGED
|
@@ -32,8 +32,8 @@ export interface EmbedBaseFeatureItem extends Record<string, EmbedBaseFeatureVal
|
|
|
32
32
|
}
|
|
33
33
|
/** 嵌入特性配置 */
|
|
34
34
|
export type EmbedBaseFeature = Partial<Record<RouteKey, EmbedBaseFeatureItem>>;
|
|
35
|
-
/**
|
|
36
|
-
export type EmbedBaseEventMessageDTO<T extends EmbedBaseEventMessageContent> = {
|
|
35
|
+
/** postMessage 事件 data 传参格式 */
|
|
36
|
+
export type EmbedBaseEventMessageDTO<T extends EmbedBaseEventMessageContent = EmbedBaseEventMessageContent> = {
|
|
37
37
|
/** 事件会话 id */
|
|
38
38
|
sessionId: string;
|
|
39
39
|
/** 事件消息 id */
|
|
@@ -41,16 +41,25 @@ export type EmbedBaseEventMessageDTO<T extends EmbedBaseEventMessageContent> = {
|
|
|
41
41
|
/** 事件数据真实内容 */
|
|
42
42
|
content: T;
|
|
43
43
|
};
|
|
44
|
-
/** 页面事件接口校验 */
|
|
45
|
-
export type EmbedBaseEventHandler<P = any, T = any> = (data: EmbedBaseEventMessageContent<P>) => Promise<T>;
|
|
46
|
-
/** 页面事件接口 */
|
|
47
|
-
export type EmbedBaseEvents<T extends string> = Partial<Record<T, EmbedBaseEventHandler<any>>>;
|
|
48
44
|
/** 嵌入消息统一格式 */
|
|
49
|
-
export type EmbedBaseEventMessageContent<T = any> = {
|
|
45
|
+
export type EmbedBaseEventMessageContent<T = any, K = string> = {
|
|
50
46
|
/** 行为类型 */
|
|
51
|
-
type:
|
|
47
|
+
type: K;
|
|
52
48
|
/** 行为传参, 必须能序列化 */
|
|
53
49
|
payload: T;
|
|
54
50
|
};
|
|
55
|
-
/**
|
|
56
|
-
export type
|
|
51
|
+
/** 页面事件对应的监听函数返回值 */
|
|
52
|
+
export type EmbedBaseEventListenerReturn<T extends EmbedBaseEventMessageContent, R = any> = {
|
|
53
|
+
content: T;
|
|
54
|
+
return: R;
|
|
55
|
+
};
|
|
56
|
+
/** 页面事件对应的监听函数 */
|
|
57
|
+
export type EmbedBaseEventListener<U extends EmbedBaseEventMessageContent, T extends EmbedBaseEventListenerReturn<U>> = {
|
|
58
|
+
[K in U['type']]: (payload: Extract<U, {
|
|
59
|
+
type: K;
|
|
60
|
+
}>) => Promise<T extends {
|
|
61
|
+
content: {
|
|
62
|
+
type: K;
|
|
63
|
+
};
|
|
64
|
+
} ? T['return'] : any>;
|
|
65
|
+
};
|
|
@@ -328,12 +328,12 @@ export declare enum RouteKey {
|
|
|
328
328
|
copilotHome = "copilotHome",
|
|
329
329
|
/** 智能小Q 单独预览页 & 微应用智能小Q */
|
|
330
330
|
copilotView = "copilotView",
|
|
331
|
-
/** 智能小Q
|
|
332
|
-
|
|
331
|
+
/** 智能小Q 单独预览-公开预览 */
|
|
332
|
+
copilotPublicView = "copilotPublicView",
|
|
333
333
|
/** --------------------------------------------------- 数据门户 --------------------------------------------------- */
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
334
|
+
portalRoot = "portalRoot",
|
|
335
|
+
portalEdit = "portalEdit",
|
|
336
|
+
portalView = "portalView",
|
|
337
337
|
/** --------------------------------------------------- 数据填报 --------------------------------------------------- */
|
|
338
338
|
/** 表单填报系统 */
|
|
339
339
|
formRoot = "formRoot",
|
|
@@ -343,19 +343,25 @@ export declare enum RouteKey {
|
|
|
343
343
|
formEdit = "formEdit",
|
|
344
344
|
/** 表单填报系统 管理页 */
|
|
345
345
|
formManage = "formManage",
|
|
346
|
-
/** 表单填报系统
|
|
346
|
+
/** 表单填报系统 预览页 */
|
|
347
347
|
formView = "formView",
|
|
348
|
+
/** 表单填报系统 公开预览页 */
|
|
349
|
+
formPublicView = "formPublicView",
|
|
348
350
|
/** -------------------------------------------------- 仪表板 -------------------------------------------------- */
|
|
349
351
|
/** 仪表板 */
|
|
350
352
|
dashboardRoot = "dashboardRoot",
|
|
351
353
|
/** 仪表板预览 */
|
|
352
354
|
dashboardView = "dashboardView",
|
|
355
|
+
/** 仪表板公开预览 */
|
|
356
|
+
dashboardPublicView = "dashboardPublicView",
|
|
353
357
|
/** 仪表板编辑 */
|
|
354
358
|
dashboardEdit = "dashboardEdit",
|
|
355
359
|
/** -------------------------------------------------- 电子表格 -------------------------------------------------- */
|
|
356
360
|
workbookRoot = "workbookRoot",
|
|
357
361
|
/** 电子表格预览 */
|
|
358
362
|
workbookView = "workbookView",
|
|
363
|
+
/** 电子表格公开预览 */
|
|
364
|
+
workbookPublicView = "workbookPublicView",
|
|
359
365
|
/** 电子表格入库审批列表页 */
|
|
360
366
|
workbookFormTask = "workbookFormTask",
|
|
361
367
|
/** 电子表格编辑 */
|
|
@@ -364,30 +370,34 @@ export declare enum RouteKey {
|
|
|
364
370
|
etlRoot = "etlRoot",
|
|
365
371
|
/** etl编辑 */
|
|
366
372
|
etlEdit = "etlEdit",
|
|
367
|
-
/** etl预览 */
|
|
368
|
-
etlView = "etlView",
|
|
369
373
|
/** 日志 */
|
|
370
374
|
etlLog = "etlLog",
|
|
371
375
|
/** ------------------------------------------------- 数据集 -------------------------------------------------- */
|
|
372
|
-
|
|
376
|
+
datasetRoot = "datasetRoot",
|
|
373
377
|
/** 数据集 */
|
|
374
|
-
|
|
378
|
+
datasetEdit = "datasetEdit",
|
|
375
379
|
/** ------------------------------------------------- 大屏 -------------------------------------------------- */
|
|
376
380
|
screenRoot = "screenRoot",
|
|
377
381
|
/** 大屏编辑 */
|
|
378
382
|
screenEdit = "screenEdit",
|
|
379
383
|
/** 大屏预览 */
|
|
380
384
|
screenView = "screenView",
|
|
385
|
+
/** 大屏公开预览 */
|
|
386
|
+
screenPublicView = "screenPublicView",
|
|
381
387
|
/** ---------------------------------------------------- 自助取数 -------------------------------------------------- */
|
|
382
|
-
downloadRoot = "
|
|
388
|
+
downloadRoot = "downloadRoot",
|
|
383
389
|
/** 自助取数 */
|
|
384
|
-
downloadEdit = "
|
|
390
|
+
downloadEdit = "downloadEdit",
|
|
385
391
|
/** 自助取数预览 */
|
|
386
|
-
downloadView = "
|
|
392
|
+
downloadView = "downloadView",
|
|
393
|
+
/** 自助取数公开预览 */
|
|
394
|
+
downloadPublicView = "downloadPublicView",
|
|
387
395
|
/** --------------------------------------------------- 即席分析 -------------------------------------------------- */
|
|
388
396
|
analysisRoot = "analysisRoot",
|
|
389
397
|
/** 即席分析编辑 */
|
|
390
398
|
analysisEdit = "analysisEdit",
|
|
391
399
|
/** 即席分析预览 */
|
|
392
|
-
analysisView = "analysisView"
|
|
400
|
+
analysisView = "analysisView",
|
|
401
|
+
/** 即席分析公开预览 */
|
|
402
|
+
analysisPublicView = "analysisPublicView"
|
|
393
403
|
}
|
package/esm/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export * from './cube';
|
|
|
19
19
|
export * from './open/components/style-schema';
|
|
20
20
|
export type { MenuMeta, MenuProps, MenuSchema, MenuSchemaBase, MenuSchemaItem } from './open/menus/menu-schema';
|
|
21
21
|
export * from './open/menus/menu-props';
|
|
22
|
-
export type { EmbedBaseSrc, EmbedBaseFeature,
|
|
22
|
+
export type { EmbedBaseSrc, EmbedBaseFeature, EmbedBaseEventMessageDTO, EmbedBaseEventMessageContent, EmbedBaseEventListener, EmbedBaseEventListenerReturn, } from './open/embed/core';
|
|
23
23
|
export type { OpenPageTypeEnum } from './open/common/page-types';
|
|
24
24
|
export { OpenEventTypeEnum } from './open/common/event-types';
|
|
25
25
|
export type { OpenDeviceTypeEnum } from './open/common/misc';
|
package/esm/index.mjs
CHANGED
|
@@ -1889,37 +1889,42 @@ var RouteKey;
|
|
|
1889
1889
|
RouteKey2["workspacePreview"] = "workspacePreview";
|
|
1890
1890
|
RouteKey2["copilotHome"] = "copilotHome";
|
|
1891
1891
|
RouteKey2["copilotView"] = "copilotView";
|
|
1892
|
-
RouteKey2["
|
|
1893
|
-
RouteKey2["
|
|
1894
|
-
RouteKey2["
|
|
1895
|
-
RouteKey2["
|
|
1892
|
+
RouteKey2["copilotPublicView"] = "copilotPublicView";
|
|
1893
|
+
RouteKey2["portalRoot"] = "portalRoot";
|
|
1894
|
+
RouteKey2["portalEdit"] = "portalEdit";
|
|
1895
|
+
RouteKey2["portalView"] = "portalView";
|
|
1896
1896
|
RouteKey2["formRoot"] = "formRoot";
|
|
1897
1897
|
RouteKey2["formCreate"] = "formCreate";
|
|
1898
1898
|
RouteKey2["formEdit"] = "formEdit";
|
|
1899
1899
|
RouteKey2["formManage"] = "formManage";
|
|
1900
1900
|
RouteKey2["formView"] = "formView";
|
|
1901
|
+
RouteKey2["formPublicView"] = "formPublicView";
|
|
1901
1902
|
RouteKey2["dashboardRoot"] = "dashboardRoot";
|
|
1902
1903
|
RouteKey2["dashboardView"] = "dashboardView";
|
|
1904
|
+
RouteKey2["dashboardPublicView"] = "dashboardPublicView";
|
|
1903
1905
|
RouteKey2["dashboardEdit"] = "dashboardEdit";
|
|
1904
1906
|
RouteKey2["workbookRoot"] = "workbookRoot";
|
|
1905
1907
|
RouteKey2["workbookView"] = "workbookView";
|
|
1908
|
+
RouteKey2["workbookPublicView"] = "workbookPublicView";
|
|
1906
1909
|
RouteKey2["workbookFormTask"] = "workbookFormTask";
|
|
1907
1910
|
RouteKey2["workbookEdit"] = "workbookEdit";
|
|
1908
1911
|
RouteKey2["etlRoot"] = "etlRoot";
|
|
1909
1912
|
RouteKey2["etlEdit"] = "etlEdit";
|
|
1910
|
-
RouteKey2["etlView"] = "etlView";
|
|
1911
1913
|
RouteKey2["etlLog"] = "etlLog";
|
|
1912
|
-
RouteKey2["
|
|
1913
|
-
RouteKey2["
|
|
1914
|
+
RouteKey2["datasetRoot"] = "datasetRoot";
|
|
1915
|
+
RouteKey2["datasetEdit"] = "datasetEdit";
|
|
1914
1916
|
RouteKey2["screenRoot"] = "screenRoot";
|
|
1915
1917
|
RouteKey2["screenEdit"] = "screenEdit";
|
|
1916
1918
|
RouteKey2["screenView"] = "screenView";
|
|
1917
|
-
RouteKey2["
|
|
1918
|
-
RouteKey2["
|
|
1919
|
-
RouteKey2["
|
|
1919
|
+
RouteKey2["screenPublicView"] = "screenPublicView";
|
|
1920
|
+
RouteKey2["downloadRoot"] = "downloadRoot";
|
|
1921
|
+
RouteKey2["downloadEdit"] = "downloadEdit";
|
|
1922
|
+
RouteKey2["downloadView"] = "downloadView";
|
|
1923
|
+
RouteKey2["downloadPublicView"] = "downloadPublicView";
|
|
1920
1924
|
RouteKey2["analysisRoot"] = "analysisRoot";
|
|
1921
1925
|
RouteKey2["analysisEdit"] = "analysisEdit";
|
|
1922
1926
|
RouteKey2["analysisView"] = "analysisView";
|
|
1927
|
+
RouteKey2["analysisPublicView"] = "analysisPublicView";
|
|
1923
1928
|
})(RouteKey || (RouteKey = {}));
|
|
1924
1929
|
|
|
1925
1930
|
// src/basic/bi-types/src/router/route-tree.ts
|
|
@@ -2618,20 +2623,20 @@ var ROUTE_TREE = {
|
|
|
2618
2623
|
path: "/copilot"
|
|
2619
2624
|
},
|
|
2620
2625
|
{
|
|
2621
|
-
key: RouteKey.
|
|
2626
|
+
key: RouteKey.copilotPublicView,
|
|
2622
2627
|
path: "/token3rd/copilot"
|
|
2623
2628
|
},
|
|
2624
2629
|
/** 数据门户 */
|
|
2625
2630
|
{
|
|
2626
|
-
key: RouteKey.
|
|
2631
|
+
key: RouteKey.portalRoot,
|
|
2627
2632
|
path: "/product",
|
|
2628
2633
|
children: [
|
|
2629
2634
|
{
|
|
2630
|
-
key: RouteKey.
|
|
2635
|
+
key: RouteKey.portalEdit,
|
|
2631
2636
|
path: "/productedit.htm"
|
|
2632
2637
|
},
|
|
2633
2638
|
{
|
|
2634
|
-
key: RouteKey.
|
|
2639
|
+
key: RouteKey.portalView,
|
|
2635
2640
|
path: "/product/view.htm"
|
|
2636
2641
|
}
|
|
2637
2642
|
]
|
|
@@ -2656,6 +2661,10 @@ var ROUTE_TREE = {
|
|
|
2656
2661
|
{
|
|
2657
2662
|
key: RouteKey.formView,
|
|
2658
2663
|
path: "/form-system/publish/preview/:id"
|
|
2664
|
+
},
|
|
2665
|
+
{
|
|
2666
|
+
key: RouteKey.formPublicView,
|
|
2667
|
+
path: "/token3rd/dataform/view.htm"
|
|
2659
2668
|
}
|
|
2660
2669
|
]
|
|
2661
2670
|
},
|
|
@@ -2668,6 +2677,10 @@ var ROUTE_TREE = {
|
|
|
2668
2677
|
key: RouteKey.dashboardView,
|
|
2669
2678
|
path: "/dashboard/view/pc.htm"
|
|
2670
2679
|
},
|
|
2680
|
+
{
|
|
2681
|
+
key: RouteKey.dashboardPublicView,
|
|
2682
|
+
path: "/token3rd/dashboard/view/pc.htm"
|
|
2683
|
+
},
|
|
2671
2684
|
{
|
|
2672
2685
|
key: RouteKey.dashboardEdit,
|
|
2673
2686
|
path: "/dashboard/pc.htm"
|
|
@@ -2683,6 +2696,10 @@ var ROUTE_TREE = {
|
|
|
2683
2696
|
key: RouteKey.workbookView,
|
|
2684
2697
|
path: "/report/view.htm"
|
|
2685
2698
|
},
|
|
2699
|
+
{
|
|
2700
|
+
key: RouteKey.workbookPublicView,
|
|
2701
|
+
path: "/token3rd/report/view.htm"
|
|
2702
|
+
},
|
|
2686
2703
|
{
|
|
2687
2704
|
key: RouteKey.workbookFormTask,
|
|
2688
2705
|
path: "/report/formTask.htm"
|
|
@@ -2709,11 +2726,11 @@ var ROUTE_TREE = {
|
|
|
2709
2726
|
]
|
|
2710
2727
|
},
|
|
2711
2728
|
{
|
|
2712
|
-
key: RouteKey.
|
|
2729
|
+
key: RouteKey.datasetRoot,
|
|
2713
2730
|
path: "/cube",
|
|
2714
2731
|
children: [
|
|
2715
2732
|
{
|
|
2716
|
-
key: RouteKey.
|
|
2733
|
+
key: RouteKey.datasetEdit,
|
|
2717
2734
|
path: "/cube.htm"
|
|
2718
2735
|
}
|
|
2719
2736
|
]
|
|
@@ -2730,6 +2747,10 @@ var ROUTE_TREE = {
|
|
|
2730
2747
|
{
|
|
2731
2748
|
key: RouteKey.downloadView,
|
|
2732
2749
|
path: "/offline/view/pc.htm"
|
|
2750
|
+
},
|
|
2751
|
+
{
|
|
2752
|
+
key: RouteKey.downloadPublicView,
|
|
2753
|
+
path: "/token3rd/offline/view/pc.htm"
|
|
2733
2754
|
}
|
|
2734
2755
|
]
|
|
2735
2756
|
},
|
|
@@ -2745,6 +2766,10 @@ var ROUTE_TREE = {
|
|
|
2745
2766
|
{
|
|
2746
2767
|
key: RouteKey.analysisView,
|
|
2747
2768
|
path: "/analysis/view.htm"
|
|
2769
|
+
},
|
|
2770
|
+
{
|
|
2771
|
+
key: RouteKey.analysisPublicView,
|
|
2772
|
+
path: "/token3rd/analysis/view.htm"
|
|
2748
2773
|
}
|
|
2749
2774
|
]
|
|
2750
2775
|
},
|
|
@@ -2760,6 +2785,10 @@ var ROUTE_TREE = {
|
|
|
2760
2785
|
{
|
|
2761
2786
|
key: RouteKey.screenView,
|
|
2762
2787
|
path: "/screen/view.htm"
|
|
2788
|
+
},
|
|
2789
|
+
{
|
|
2790
|
+
key: RouteKey.screenPublicView,
|
|
2791
|
+
path: "/token3rd/screen/view.htm"
|
|
2763
2792
|
}
|
|
2764
2793
|
]
|
|
2765
2794
|
}
|
package/esm/open/embed/core.d.ts
CHANGED
|
@@ -32,8 +32,8 @@ export interface EmbedBaseFeatureItem extends Record<string, EmbedBaseFeatureVal
|
|
|
32
32
|
}
|
|
33
33
|
/** 嵌入特性配置 */
|
|
34
34
|
export type EmbedBaseFeature = Partial<Record<RouteKey, EmbedBaseFeatureItem>>;
|
|
35
|
-
/**
|
|
36
|
-
export type EmbedBaseEventMessageDTO<T extends EmbedBaseEventMessageContent> = {
|
|
35
|
+
/** postMessage 事件 data 传参格式 */
|
|
36
|
+
export type EmbedBaseEventMessageDTO<T extends EmbedBaseEventMessageContent = EmbedBaseEventMessageContent> = {
|
|
37
37
|
/** 事件会话 id */
|
|
38
38
|
sessionId: string;
|
|
39
39
|
/** 事件消息 id */
|
|
@@ -41,16 +41,25 @@ export type EmbedBaseEventMessageDTO<T extends EmbedBaseEventMessageContent> = {
|
|
|
41
41
|
/** 事件数据真实内容 */
|
|
42
42
|
content: T;
|
|
43
43
|
};
|
|
44
|
-
/** 页面事件接口校验 */
|
|
45
|
-
export type EmbedBaseEventHandler<P = any, T = any> = (data: EmbedBaseEventMessageContent<P>) => Promise<T>;
|
|
46
|
-
/** 页面事件接口 */
|
|
47
|
-
export type EmbedBaseEvents<T extends string> = Partial<Record<T, EmbedBaseEventHandler<any>>>;
|
|
48
44
|
/** 嵌入消息统一格式 */
|
|
49
|
-
export type EmbedBaseEventMessageContent<T = any> = {
|
|
45
|
+
export type EmbedBaseEventMessageContent<T = any, K = string> = {
|
|
50
46
|
/** 行为类型 */
|
|
51
|
-
type:
|
|
47
|
+
type: K;
|
|
52
48
|
/** 行为传参, 必须能序列化 */
|
|
53
49
|
payload: T;
|
|
54
50
|
};
|
|
55
|
-
/**
|
|
56
|
-
export type
|
|
51
|
+
/** 页面事件对应的监听函数返回值 */
|
|
52
|
+
export type EmbedBaseEventListenerReturn<T extends EmbedBaseEventMessageContent, R = any> = {
|
|
53
|
+
content: T;
|
|
54
|
+
return: R;
|
|
55
|
+
};
|
|
56
|
+
/** 页面事件对应的监听函数 */
|
|
57
|
+
export type EmbedBaseEventListener<U extends EmbedBaseEventMessageContent, T extends EmbedBaseEventListenerReturn<U>> = {
|
|
58
|
+
[K in U['type']]: (payload: Extract<U, {
|
|
59
|
+
type: K;
|
|
60
|
+
}>) => Promise<T extends {
|
|
61
|
+
content: {
|
|
62
|
+
type: K;
|
|
63
|
+
};
|
|
64
|
+
} ? T['return'] : any>;
|
|
65
|
+
};
|
|
@@ -328,12 +328,12 @@ export declare enum RouteKey {
|
|
|
328
328
|
copilotHome = "copilotHome",
|
|
329
329
|
/** 智能小Q 单独预览页 & 微应用智能小Q */
|
|
330
330
|
copilotView = "copilotView",
|
|
331
|
-
/** 智能小Q
|
|
332
|
-
|
|
331
|
+
/** 智能小Q 单独预览-公开预览 */
|
|
332
|
+
copilotPublicView = "copilotPublicView",
|
|
333
333
|
/** --------------------------------------------------- 数据门户 --------------------------------------------------- */
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
334
|
+
portalRoot = "portalRoot",
|
|
335
|
+
portalEdit = "portalEdit",
|
|
336
|
+
portalView = "portalView",
|
|
337
337
|
/** --------------------------------------------------- 数据填报 --------------------------------------------------- */
|
|
338
338
|
/** 表单填报系统 */
|
|
339
339
|
formRoot = "formRoot",
|
|
@@ -343,19 +343,25 @@ export declare enum RouteKey {
|
|
|
343
343
|
formEdit = "formEdit",
|
|
344
344
|
/** 表单填报系统 管理页 */
|
|
345
345
|
formManage = "formManage",
|
|
346
|
-
/** 表单填报系统
|
|
346
|
+
/** 表单填报系统 预览页 */
|
|
347
347
|
formView = "formView",
|
|
348
|
+
/** 表单填报系统 公开预览页 */
|
|
349
|
+
formPublicView = "formPublicView",
|
|
348
350
|
/** -------------------------------------------------- 仪表板 -------------------------------------------------- */
|
|
349
351
|
/** 仪表板 */
|
|
350
352
|
dashboardRoot = "dashboardRoot",
|
|
351
353
|
/** 仪表板预览 */
|
|
352
354
|
dashboardView = "dashboardView",
|
|
355
|
+
/** 仪表板公开预览 */
|
|
356
|
+
dashboardPublicView = "dashboardPublicView",
|
|
353
357
|
/** 仪表板编辑 */
|
|
354
358
|
dashboardEdit = "dashboardEdit",
|
|
355
359
|
/** -------------------------------------------------- 电子表格 -------------------------------------------------- */
|
|
356
360
|
workbookRoot = "workbookRoot",
|
|
357
361
|
/** 电子表格预览 */
|
|
358
362
|
workbookView = "workbookView",
|
|
363
|
+
/** 电子表格公开预览 */
|
|
364
|
+
workbookPublicView = "workbookPublicView",
|
|
359
365
|
/** 电子表格入库审批列表页 */
|
|
360
366
|
workbookFormTask = "workbookFormTask",
|
|
361
367
|
/** 电子表格编辑 */
|
|
@@ -364,30 +370,34 @@ export declare enum RouteKey {
|
|
|
364
370
|
etlRoot = "etlRoot",
|
|
365
371
|
/** etl编辑 */
|
|
366
372
|
etlEdit = "etlEdit",
|
|
367
|
-
/** etl预览 */
|
|
368
|
-
etlView = "etlView",
|
|
369
373
|
/** 日志 */
|
|
370
374
|
etlLog = "etlLog",
|
|
371
375
|
/** ------------------------------------------------- 数据集 -------------------------------------------------- */
|
|
372
|
-
|
|
376
|
+
datasetRoot = "datasetRoot",
|
|
373
377
|
/** 数据集 */
|
|
374
|
-
|
|
378
|
+
datasetEdit = "datasetEdit",
|
|
375
379
|
/** ------------------------------------------------- 大屏 -------------------------------------------------- */
|
|
376
380
|
screenRoot = "screenRoot",
|
|
377
381
|
/** 大屏编辑 */
|
|
378
382
|
screenEdit = "screenEdit",
|
|
379
383
|
/** 大屏预览 */
|
|
380
384
|
screenView = "screenView",
|
|
385
|
+
/** 大屏公开预览 */
|
|
386
|
+
screenPublicView = "screenPublicView",
|
|
381
387
|
/** ---------------------------------------------------- 自助取数 -------------------------------------------------- */
|
|
382
|
-
downloadRoot = "
|
|
388
|
+
downloadRoot = "downloadRoot",
|
|
383
389
|
/** 自助取数 */
|
|
384
|
-
downloadEdit = "
|
|
390
|
+
downloadEdit = "downloadEdit",
|
|
385
391
|
/** 自助取数预览 */
|
|
386
|
-
downloadView = "
|
|
392
|
+
downloadView = "downloadView",
|
|
393
|
+
/** 自助取数公开预览 */
|
|
394
|
+
downloadPublicView = "downloadPublicView",
|
|
387
395
|
/** --------------------------------------------------- 即席分析 -------------------------------------------------- */
|
|
388
396
|
analysisRoot = "analysisRoot",
|
|
389
397
|
/** 即席分析编辑 */
|
|
390
398
|
analysisEdit = "analysisEdit",
|
|
391
399
|
/** 即席分析预览 */
|
|
392
|
-
analysisView = "analysisView"
|
|
400
|
+
analysisView = "analysisView",
|
|
401
|
+
/** 即席分析公开预览 */
|
|
402
|
+
analysisPublicView = "analysisPublicView"
|
|
393
403
|
}
|