@quickbi/bi-types 3.0.41-beta.0 → 3.0.41-beta.2
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 +104 -106
- package/cjs/index.js +1046 -191
- package/esm/index.d.ts +104 -106
- package/esm/index.mjs +1046 -191
- package/package.json +4 -2
package/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Generated by dts-bundle v0.7.3
|
|
2
2
|
// Dependencies for this module:
|
|
3
|
+
// ../../../../../@quickbi/bi-types
|
|
3
4
|
// ../../../../../react
|
|
4
5
|
|
|
5
6
|
declare module '@quickbi/bi-types' {
|
|
@@ -24,13 +25,15 @@ declare module '@quickbi/bi-types' {
|
|
|
24
25
|
export * from '@quickbi/bi-types/open/components/style-schema';
|
|
25
26
|
export type { MenuMeta, MenuProps, MenuSchema, MenuSchemaBase, MenuSchemaItem } from '@quickbi/bi-types/open/menus/menu-schema';
|
|
26
27
|
export * from '@quickbi/bi-types/open/menus/menu-props';
|
|
27
|
-
export type {
|
|
28
|
+
export type { EmbedBaseSrc, EmbedBaseFeature, EmbedBaseAction, EmbedBaseEvents, EmbedBaseEventHandler, EmbedBaseEventMessageDTO, EmbedBaseEventMessageContent, } from '@quickbi/bi-types/open/embed/core';
|
|
28
29
|
export { EmbedEnv } from '@quickbi/bi-types/open/embed/core';
|
|
29
|
-
export type {
|
|
30
|
-
export
|
|
30
|
+
export type { OpenPageTypeEnum } from '@quickbi/bi-types/open/common/page-types';
|
|
31
|
+
export { OpenEventTypeEnum } from '@quickbi/bi-types/open/common/event-types';
|
|
31
32
|
export type { OpenDeviceTypeEnum } from '@quickbi/bi-types/open/common/misc';
|
|
32
33
|
export type { EnumAsUnion, Implements } from '@quickbi/bi-types/open/common/tools';
|
|
33
|
-
export {
|
|
34
|
+
export { RouteKey } from '@quickbi/bi-types/router/route-key';
|
|
35
|
+
export { ROUTE_TREE, ROUTE_PATH_MAP } from '@quickbi/bi-types/router/route-tree';
|
|
36
|
+
export type { RouteTreeNode } from '@quickbi/bi-types/router/route-tree';
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
declare module '@quickbi/bi-types/data-panel' {
|
|
@@ -2204,7 +2207,7 @@ declare module '@quickbi/bi-types/open/menus/menu-props' {
|
|
|
2204
2207
|
/** 页面标题 */
|
|
2205
2208
|
title: string;
|
|
2206
2209
|
/** 页面类型 */
|
|
2207
|
-
pageType: EnumAsUnion<
|
|
2210
|
+
pageType: EnumAsUnion<typeof OpenPageTypeEnum>;
|
|
2208
2211
|
}
|
|
2209
2212
|
/**
|
|
2210
2213
|
* 事件/菜单通用的工具方法
|
|
@@ -2357,28 +2360,26 @@ declare module '@quickbi/bi-types/open/embed/core' {
|
|
|
2357
2360
|
* @author 海狸
|
|
2358
2361
|
* @description 嵌入通用类型定义
|
|
2359
2362
|
*/
|
|
2360
|
-
import type {
|
|
2361
|
-
import type { OpenDeviceTypeEnum } from '@quickbi/bi-types/open/common/misc';
|
|
2362
|
-
import type { OpenPageTypeUnion } from '@quickbi/bi-types/open/common/page-types';
|
|
2363
|
-
import type { EnumAsUnion } from '@quickbi/bi-types/open/common/tools';
|
|
2363
|
+
import type { RouteKey } from '@quickbi/bi-types/router/route-key';
|
|
2364
2364
|
/** 通用页面来源信息 */
|
|
2365
2365
|
export type EmbedBaseSrc = {
|
|
2366
2366
|
/** 嵌入页面 */
|
|
2367
|
-
page:
|
|
2368
|
-
/** 嵌入 token */
|
|
2369
|
-
accessTicket?: string;
|
|
2370
|
-
/** 空间 id */
|
|
2371
|
-
workspaceId?: string;
|
|
2372
|
-
/** 作品 id */
|
|
2373
|
-
id?: string;
|
|
2367
|
+
page: RouteKey;
|
|
2374
2368
|
/** 域名信息 */
|
|
2375
2369
|
origin?: string;
|
|
2376
|
-
/** 页面模式 */
|
|
2377
|
-
mode?: 'edit' | 'view';
|
|
2378
|
-
/** 显示设备 */
|
|
2379
|
-
device?: EnumAsUnion<typeof OpenDeviceTypeEnum>;
|
|
2380
2370
|
/** 额外的 url 参数 */
|
|
2381
|
-
search?: Record<string, string
|
|
2371
|
+
search?: Record<string, string> & {
|
|
2372
|
+
/** 空间 id */
|
|
2373
|
+
workspaceId?: string;
|
|
2374
|
+
/** 作品 id */
|
|
2375
|
+
id?: string;
|
|
2376
|
+
/** 嵌入 token */
|
|
2377
|
+
accessTicket?: string;
|
|
2378
|
+
};
|
|
2379
|
+
/** 额外的路径参数 */
|
|
2380
|
+
pathParams?: Record<string, string>;
|
|
2381
|
+
/** 额外的哈希值 */
|
|
2382
|
+
hash?: string;
|
|
2382
2383
|
};
|
|
2383
2384
|
/** 嵌入特性项取值类型, 只能是基本类型 */
|
|
2384
2385
|
export type EmbedBaseFeatureValue = string | number | boolean | null | undefined;
|
|
@@ -2388,75 +2389,54 @@ declare module '@quickbi/bi-types/open/embed/core' {
|
|
|
2388
2389
|
show?: boolean;
|
|
2389
2390
|
}
|
|
2390
2391
|
/** 嵌入特性配置 */
|
|
2391
|
-
export type EmbedBaseFeature = Partial<Record<
|
|
2392
|
+
export type EmbedBaseFeature = Partial<Record<RouteKey, EmbedBaseFeatureItem>>;
|
|
2393
|
+
/** 页面事件 message 传参格式 */
|
|
2394
|
+
export type EmbedBaseEventMessageDTO<T extends EmbedBaseEventMessageContent> = {
|
|
2395
|
+
/** 事件会话 id */
|
|
2396
|
+
sessionId: string;
|
|
2397
|
+
/** 事件消息 id */
|
|
2398
|
+
messageId: string;
|
|
2399
|
+
/** 事件数据真实内容 */
|
|
2400
|
+
content: T;
|
|
2401
|
+
};
|
|
2392
2402
|
/** 页面事件接口校验 */
|
|
2393
|
-
export type EmbedBaseEventHandler<P = any, T = any> = (
|
|
2403
|
+
export type EmbedBaseEventHandler<P = any, T = any> = (data: EmbedBaseEventMessageContent<P>) => Promise<T>;
|
|
2394
2404
|
/** 页面事件接口 */
|
|
2395
|
-
export type
|
|
2396
|
-
/**
|
|
2397
|
-
export type
|
|
2405
|
+
export type EmbedBaseEvents<T extends string> = Partial<Record<T, EmbedBaseEventHandler<any>>>;
|
|
2406
|
+
/** 嵌入消息统一格式 */
|
|
2407
|
+
export type EmbedBaseEventMessageContent<T = any> = {
|
|
2398
2408
|
/** 行为类型 */
|
|
2399
2409
|
type: string;
|
|
2400
2410
|
/** 行为传参, 必须能序列化 */
|
|
2401
2411
|
payload: T;
|
|
2402
2412
|
};
|
|
2403
|
-
/**
|
|
2404
|
-
type
|
|
2405
|
-
|
|
2406
|
-
src: S;
|
|
2407
|
-
/** 特性配置 */
|
|
2408
|
-
feature?: F;
|
|
2409
|
-
/** 事件监听 */
|
|
2410
|
-
listener?: E;
|
|
2411
|
-
};
|
|
2412
|
-
/** 嵌入基本类型 */
|
|
2413
|
-
export type EmbedBase = CreateEmbed<EmbedBaseSrc, EmbedBaseFeature, EmbedBaseListener>;
|
|
2413
|
+
/** 嵌入客户端行为 */
|
|
2414
|
+
export type EmbedBaseAction<T = any> = EmbedBaseEventMessageContent<T>;
|
|
2415
|
+
/** 嵌入环境 */
|
|
2414
2416
|
export enum EmbedEnv {
|
|
2417
|
+
/** sdk 嵌入 */
|
|
2415
2418
|
sdk = "sdk",
|
|
2419
|
+
/** sdk iframe 嵌入 */
|
|
2416
2420
|
iframe = "iframe"
|
|
2417
2421
|
}
|
|
2418
|
-
export {};
|
|
2419
2422
|
}
|
|
2420
2423
|
|
|
2421
2424
|
declare module '@quickbi/bi-types/open/common/page-types' {
|
|
2422
2425
|
/**
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
*/
|
|
2426
|
-
import type { EnumAsUnion } from '@quickbi/bi-types/open/common/tools';
|
|
2427
|
-
/** 开放相关页面类型枚举 */
|
|
2426
|
+
* @deprecated 开放相关页面类型枚举, 注意要和 routerKkey 做区分, 这个 key 后续要废弃
|
|
2427
|
+
* */
|
|
2428
2428
|
export enum OpenPageTypeEnum {
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
/** 工作台首页 */
|
|
2440
|
-
workspace = "workspace",
|
|
2441
|
-
/** 空间成员与信息 */
|
|
2442
|
-
workspaceMember = "workspaceMember",
|
|
2443
|
-
/** 资源授权 */
|
|
2444
|
-
workspaceAuth = "workspaceAuth",
|
|
2445
|
-
/** 智能问数首页 */
|
|
2446
|
-
copilot = "copilot",
|
|
2447
|
-
/** 模板市场首页 */
|
|
2448
|
-
templateMarket = "templateMarket",
|
|
2449
|
-
/** 开放平台首页 */
|
|
2450
|
-
open = "open",
|
|
2451
|
-
/** 开放平台-控制台 */
|
|
2452
|
-
openHome = "openHome",
|
|
2453
|
-
/** 我的看板首页 */
|
|
2454
|
-
board = "board",
|
|
2455
|
-
/** 我的看板首页 */
|
|
2456
|
-
admin = "admin"
|
|
2429
|
+
/** 仪表板 */
|
|
2430
|
+
dashboard = "dashboard",
|
|
2431
|
+
/** 电子表格 */
|
|
2432
|
+
webExcel = "webExcel",
|
|
2433
|
+
/** 数据大屏 */
|
|
2434
|
+
screen = "screen",
|
|
2435
|
+
/** 自助取数 */
|
|
2436
|
+
offline = "offline",
|
|
2437
|
+
/** 即席分析 */
|
|
2438
|
+
analysis = "analysis"
|
|
2457
2439
|
}
|
|
2458
|
-
/** 开放相关页面类型值联合类型 */
|
|
2459
|
-
export type OpenPageTypeUnion = EnumAsUnion<typeof OpenPageTypeEnum>;
|
|
2460
2440
|
}
|
|
2461
2441
|
|
|
2462
2442
|
declare module '@quickbi/bi-types/open/common/event-types' {
|
|
@@ -2468,11 +2448,9 @@ declare module '@quickbi/bi-types/open/common/event-types' {
|
|
|
2468
2448
|
/** 开放相关事件枚举, 取值固定为 before-xxx-event, after-xxx-event */
|
|
2469
2449
|
export enum OpenEventTypeEnum {
|
|
2470
2450
|
/** 嵌入事件-路由跳转前 */
|
|
2471
|
-
'before-
|
|
2451
|
+
'before-page-change-event' = "before-page-change-event",
|
|
2472
2452
|
/** 嵌入事件-页面渲染后 */
|
|
2473
|
-
'after-
|
|
2474
|
-
/** 嵌入事件-页面卸载前 */
|
|
2475
|
-
'before-unmount-event' = "before-unmount-event",
|
|
2453
|
+
'after-page-loaded-event' = "after-page-loaded-event",
|
|
2476
2454
|
/** 自定义事件-下载前 */
|
|
2477
2455
|
'before-download-event' = "before-download-event",
|
|
2478
2456
|
/** 自定义事件-页面加载前 */
|
|
@@ -2520,16 +2498,13 @@ declare module '@quickbi/bi-types/open/common/tools' {
|
|
|
2520
2498
|
* 字符串中划线类型
|
|
2521
2499
|
* @usage Kebab<'aaa-bbb'>
|
|
2522
2500
|
*/
|
|
2523
|
-
export type
|
|
2501
|
+
export type KebabCase<T extends string, A extends string = ''> = T extends `${infer F}${infer R}` ? KebabCase<R, `${A}${F extends Lowercase<F> ? '' : '-'}${Lowercase<F>}`> : A;
|
|
2524
2502
|
export {};
|
|
2525
2503
|
}
|
|
2526
2504
|
|
|
2527
|
-
declare module '@quickbi/bi-types/router/
|
|
2528
|
-
/**
|
|
2529
|
-
|
|
2530
|
-
* @description QBI 全局路由key
|
|
2531
|
-
*/
|
|
2532
|
-
export enum RouterKey {
|
|
2505
|
+
declare module '@quickbi/bi-types/router/route-key' {
|
|
2506
|
+
/** 每个路由有一个单独的 key, 这个 key 会被客户的自定义组件/事件/嵌入使用, 因此不要随意更改!!! 起名的时候也要再三斟酌!!! */
|
|
2507
|
+
export enum RouteKey {
|
|
2533
2508
|
root = "root",
|
|
2534
2509
|
/** home页根 */
|
|
2535
2510
|
homeRoot = "homeRoot",
|
|
@@ -2543,20 +2518,20 @@ declare module '@quickbi/bi-types/router/router-key' {
|
|
|
2543
2518
|
orgAdminOrgInfo = "orgAdminOrgInfo",
|
|
2544
2519
|
/** 组织信息-超级管理员 */
|
|
2545
2520
|
orgAdminInfoSuper = "orgAdminInfoSuper",
|
|
2546
|
-
/** 组织管理-用户管理 */
|
|
2521
|
+
/** 组织管理-用户管理 已落库勿改 */
|
|
2547
2522
|
orgAdminUser = "orgAdminUser",
|
|
2548
|
-
/** 组织管理-用户管理-成员管理 */
|
|
2549
|
-
|
|
2550
|
-
/** 组织管理-用户管理-用户组管理 */
|
|
2551
|
-
|
|
2552
|
-
/** 组织管理-用户管理-用户标签管理 */
|
|
2523
|
+
/** 组织管理-用户管理-成员管理 已落库勿改 */
|
|
2524
|
+
userMemberManage = "userMemberManage",
|
|
2525
|
+
/** 组织管理-用户管理-用户组管理 已落库勿改 */
|
|
2526
|
+
userGroupManage = "userGroupManage",
|
|
2527
|
+
/** 组织管理-用户管理-用户标签管理 已落库勿改 */
|
|
2553
2528
|
userTagManage = "userTagManage",
|
|
2554
|
-
/** 组织管理-用户管理-用户标签管理-用户标签 */
|
|
2529
|
+
/** 组织管理-用户管理-用户标签管理-用户标签 已落库勿改 */
|
|
2555
2530
|
userTagDetailManage = "userTagDetailManage",
|
|
2556
|
-
/** 组织管理-用户管理-用户标签管理-标签管理 */
|
|
2531
|
+
/** 组织管理-用户管理-用户标签管理-标签管理 已落库勿改 */
|
|
2557
2532
|
tagManage = "tagManage",
|
|
2558
|
-
/** 组织管理-用户管理-角色管理 */
|
|
2559
|
-
|
|
2533
|
+
/** 组织管理-用户管理-角色管理 已落库勿改 */
|
|
2534
|
+
userRoleManage = "userRoleManage",
|
|
2560
2535
|
/** 组织管理-工作空间管理 */
|
|
2561
2536
|
orgAdminSpace = "orgAdminSpace",
|
|
2562
2537
|
/** 组织管理-工作空间管理-工作空间 */
|
|
@@ -2687,6 +2662,8 @@ declare module '@quickbi/bi-types/router/router-key' {
|
|
|
2687
2662
|
orgAdminResourceRecord = "orgAdminResourceRecord",
|
|
2688
2663
|
/** 功能介绍 */
|
|
2689
2664
|
orgAdminResourceDesc = "orgAdminResourceDesc",
|
|
2665
|
+
/** 企业应用 */
|
|
2666
|
+
companyApply = "companyApply",
|
|
2690
2667
|
/** 取数中心-下载任务 */
|
|
2691
2668
|
offlineDownload = "offlineDownload",
|
|
2692
2669
|
/** 创作区页面 */
|
|
@@ -2750,11 +2727,11 @@ declare module '@quickbi/bi-types/router/router-key' {
|
|
|
2750
2727
|
apiStatisticCount = "apiStatisticCount",
|
|
2751
2728
|
/** 标准版-账号管理页面 */
|
|
2752
2729
|
standandUser = "standandUser",
|
|
2753
|
-
/** 订阅管理 */
|
|
2730
|
+
/** 订阅管理 已落库勿改 */
|
|
2754
2731
|
subscriptionManage = "subscriptionManage",
|
|
2755
|
-
/** 订阅任务 */
|
|
2732
|
+
/** 订阅任务 已落库勿改 */
|
|
2756
2733
|
subscriptionTask = "subscriptionTask",
|
|
2757
|
-
/** 发送记录 */
|
|
2734
|
+
/** 发送记录 已落库勿改 */
|
|
2758
2735
|
sendRecord = "sendRecord",
|
|
2759
2736
|
/** 模版市场 */
|
|
2760
2737
|
templateMarket = "templateMarket",
|
|
@@ -2789,9 +2766,9 @@ declare module '@quickbi/bi-types/router/router-key' {
|
|
|
2789
2766
|
/** 仪表板 列表页 */
|
|
2790
2767
|
dashboardList = "dashboardList",
|
|
2791
2768
|
/** 电子表格 列表页 */
|
|
2792
|
-
|
|
2769
|
+
workbookList = "workbookList",
|
|
2793
2770
|
/** 电子表格试用 列表页 */
|
|
2794
|
-
|
|
2771
|
+
workbookListTrialList = "workbookTrialList",
|
|
2795
2772
|
/** 大屏 列表页 */
|
|
2796
2773
|
screenList = "screenList",
|
|
2797
2774
|
/** 即席分析 列表页 */
|
|
@@ -2841,6 +2818,7 @@ declare module '@quickbi/bi-types/router/router-key' {
|
|
|
2841
2818
|
/** --------------------------------------------------- 数据门户 --------------------------------------------------- */
|
|
2842
2819
|
productRoot = "productRoot",
|
|
2843
2820
|
productEdit = "productEdit",
|
|
2821
|
+
productView = "productView",
|
|
2844
2822
|
/** 表单填报系统 */
|
|
2845
2823
|
formSystemRoot = "formSystemRoot",
|
|
2846
2824
|
/** 表单填报系统 新建页 */
|
|
@@ -2856,15 +2834,15 @@ declare module '@quickbi/bi-types/router/router-key' {
|
|
|
2856
2834
|
/** 仪表板预览 */
|
|
2857
2835
|
dashboardView = "dashboardView",
|
|
2858
2836
|
/** 仪表板编辑 */
|
|
2859
|
-
|
|
2837
|
+
dashboardEdit = "dashboardEdit",
|
|
2860
2838
|
/** -------------------------------------------------- 电子表格 -------------------------------------------------- */
|
|
2861
|
-
|
|
2839
|
+
workbookRoot = "workbookRoot",
|
|
2862
2840
|
/** 电子表格预览 */
|
|
2863
|
-
|
|
2841
|
+
workbookView = "workbookView",
|
|
2864
2842
|
/** 电子表格入库审批列表页 */
|
|
2865
|
-
|
|
2866
|
-
/**
|
|
2867
|
-
|
|
2843
|
+
workbookFormTask = "workbookFormTask",
|
|
2844
|
+
/** 电子表格编辑 */
|
|
2845
|
+
workbookEdit = "workbookEdit",
|
|
2868
2846
|
/** -------------------------------------------------- etl -------------------------------------------------- */
|
|
2869
2847
|
etlRoot = "etlRoot",
|
|
2870
2848
|
/** etl编辑 */
|
|
@@ -2886,7 +2864,9 @@ declare module '@quickbi/bi-types/router/router-key' {
|
|
|
2886
2864
|
/** ---------------------------------------------------- 自助取数 -------------------------------------------------- */
|
|
2887
2865
|
offlineRoot = "offlineRoot",
|
|
2888
2866
|
/** 自助取数 */
|
|
2889
|
-
|
|
2867
|
+
offlineEdit = "offlineEdit",
|
|
2868
|
+
/** 自助取数预览 */
|
|
2869
|
+
offlineView = "offlineView",
|
|
2890
2870
|
/** --------------------------------------------------- 即席分析 -------------------------------------------------- */
|
|
2891
2871
|
analysisRoot = "analysisRoot",
|
|
2892
2872
|
/** 即席分析编辑 */
|
|
@@ -2896,6 +2876,24 @@ declare module '@quickbi/bi-types/router/router-key' {
|
|
|
2896
2876
|
}
|
|
2897
2877
|
}
|
|
2898
2878
|
|
|
2879
|
+
declare module '@quickbi/bi-types/router/route-tree' {
|
|
2880
|
+
/**
|
|
2881
|
+
* @author 非席 唯毅
|
|
2882
|
+
* @description qbi 全局路由树
|
|
2883
|
+
*/
|
|
2884
|
+
import { RouteKey } from '@quickbi/bi-types';
|
|
2885
|
+
/** 全局路由树节点 */
|
|
2886
|
+
export interface RouteTreeNode {
|
|
2887
|
+
key: RouteKey;
|
|
2888
|
+
path: string;
|
|
2889
|
+
children?: RouteTreeNode[];
|
|
2890
|
+
}
|
|
2891
|
+
/** 全局路由树 */
|
|
2892
|
+
export const ROUTE_TREE: RouteTreeNode;
|
|
2893
|
+
/** 将整颗路径树打平,根据key索引 */
|
|
2894
|
+
export const ROUTE_PATH_MAP: Record<RouteKey, string>;
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2899
2897
|
declare module '@quickbi/bi-types/data-panel/base' {
|
|
2900
2898
|
import type * as React from 'react';
|
|
2901
2899
|
export type CommonCompInputAreaType = 'area_type' | 'area_dim' | 'area_row' | 'area_column' | 'area_value' | 'area_measure' | 'filters' | string;
|