@regenbio/regenbio-components-react 1.3.32 → 1.3.34
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/build/components/{DataTable → DataDisplay/DataTable}/type.d.ts +0 -4
- package/build/components/{FileTag → DataDisplay/FileTag}/type.d.ts +0 -4
- package/build/components/{UserCard → DataDisplay/UserCard}/type.d.ts +0 -8
- package/build/components/{AttachmentText → DataEntry/AttachmentText}/type.d.ts +0 -4
- package/build/components/{MarkdownEditor → DataEntry/MarkdownEditor}/type.d.ts +0 -4
- package/build/components/{Uploader → DataEntry/Uploader}/SingleImageUploader/type.d.ts +0 -4
- package/build/components/{UserSelector → DataEntry/UserSelector}/type.d.ts +0 -4
- package/build/components/{ActionBar → Other/ActionBar}/type.d.ts +1 -5
- package/build/components/Other/GlobalContext/index.d.ts +10 -0
- package/build/components/{LoginLoad → Other/LoginLoad}/AuthFrame/type.d.ts +1 -9
- package/build/components/{LoginLoad → Other/LoginLoad}/BindFrame/type.d.ts +0 -4
- package/build/components/{AppLayout → PageLayout/AppLayout}/index.d.ts +2 -1
- package/build/components/PageLayout/AppLayout/type.d.ts +41 -0
- package/build/index.d.ts +52 -49
- package/build/index.js +3 -3
- package/build/services/types/commonType.d.ts +87 -0
- package/package.json +1 -1
- package/build/components/AppLayout/type.d.ts +0 -118
- /package/build/components/{DataChart → DataDisplay/DataChart}/index.d.ts +0 -0
- /package/build/components/{DataChart → DataDisplay/DataChart}/type.d.ts +0 -0
- /package/build/components/{DataTable → DataDisplay/DataTable}/index.d.ts +0 -0
- /package/build/components/{DataTable → DataDisplay/DataTable}/locales/en-US.d.ts +0 -0
- /package/build/components/{DataTable → DataDisplay/DataTable}/locales/zh-CN.d.ts +0 -0
- /package/build/components/{DragTable → DataDisplay/DragTable}/index.d.ts +0 -0
- /package/build/components/{DragTable → DataDisplay/DragTable}/type.d.ts +0 -0
- /package/build/components/{FileTag → DataDisplay/FileTag}/index.d.ts +0 -0
- /package/build/components/{FileTag → DataDisplay/FileTag}/locales/en-US.d.ts +0 -0
- /package/build/components/{FileTag → DataDisplay/FileTag}/locales/zh-CN.d.ts +0 -0
- /package/build/components/{HtmlRender → DataDisplay/HtmlRender}/index.d.ts +0 -0
- /package/build/components/{HtmlRender → DataDisplay/HtmlRender}/type.d.ts +0 -0
- /package/build/components/{IconRender → DataDisplay/IconRender}/index.d.ts +0 -0
- /package/build/components/{IconRender → DataDisplay/IconRender}/type.d.ts +0 -0
- /package/build/components/{UserCard → DataDisplay/UserCard}/index.d.ts +0 -0
- /package/build/components/{UserCard → DataDisplay/UserCard}/locales/en-US.d.ts +0 -0
- /package/build/components/{UserCard → DataDisplay/UserCard}/locales/zh-CN.d.ts +0 -0
- /package/build/components/{AttachmentText → DataEntry/AttachmentText}/index.d.ts +0 -0
- /package/build/components/{AttachmentText → DataEntry/AttachmentText}/locales/en-US.d.ts +0 -0
- /package/build/components/{AttachmentText → DataEntry/AttachmentText}/locales/zh-CN.d.ts +0 -0
- /package/build/components/{MarkdownEditor → DataEntry/MarkdownEditor}/index.d.ts +0 -0
- /package/build/components/{MarkdownEditor → DataEntry/MarkdownEditor}/locales/en-US.d.ts +0 -0
- /package/build/components/{MarkdownEditor → DataEntry/MarkdownEditor}/locales/zh-CN.d.ts +0 -0
- /package/build/components/{Uploader → DataEntry/Uploader}/SingleImageUploader/index.d.ts +0 -0
- /package/build/components/{Uploader → DataEntry/Uploader}/SingleImageUploader/locales/en-US.d.ts +0 -0
- /package/build/components/{Uploader → DataEntry/Uploader}/SingleImageUploader/locales/zh-CN.d.ts +0 -0
- /package/build/components/{UserSelector → DataEntry/UserSelector}/index.d.ts +0 -0
- /package/build/components/{UserSelector → DataEntry/UserSelector}/locales/en-US.d.ts +0 -0
- /package/build/components/{UserSelector → DataEntry/UserSelector}/locales/zh-CN.d.ts +0 -0
- /package/build/components/{ActionBar → Other/ActionBar}/index.d.ts +0 -0
- /package/build/components/{LoginLoad → Other/LoginLoad}/AuthFrame/index.d.ts +0 -0
- /package/build/components/{LoginLoad → Other/LoginLoad}/AuthFrame/locales/en-US.d.ts +0 -0
- /package/build/components/{LoginLoad → Other/LoginLoad}/AuthFrame/locales/zh-CN.d.ts +0 -0
- /package/build/components/{LoginLoad → Other/LoginLoad}/BindFrame/index.d.ts +0 -0
- /package/build/components/{LoginLoad → Other/LoginLoad}/BindFrame/locales/en-US.d.ts +0 -0
- /package/build/components/{LoginLoad → Other/LoginLoad}/BindFrame/locales/zh-CN.d.ts +0 -0
- /package/build/components/{ThemeSetter → Other/ThemeSetter}/index.d.ts +0 -0
- /package/build/components/{ThemeSetter → Other/ThemeSetter}/type.d.ts +0 -0
- /package/build/components/{HomePage → PageLayout/HomePage}/index.d.ts +0 -0
- /package/build/components/{HomePage → PageLayout/HomePage}/type.d.ts +0 -0
- /package/build/components/{PageContainer → PageLayout/PageContainer}/index.d.ts +0 -0
- /package/build/components/{PageContainer → PageLayout/PageContainer}/type.d.ts +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { Settings as LayoutSettings } from "@ant-design/pro-layout";
|
|
2
|
+
import { RbCurrentTheme, RbCurrentUser } from "../../components/PageLayout/AppLayout/interface";
|
|
1
3
|
/**
|
|
2
4
|
* 响应结果传输类
|
|
3
5
|
*/
|
|
@@ -64,3 +66,88 @@ export type PageParams = {
|
|
|
64
66
|
current?: number;
|
|
65
67
|
pageSize?: number;
|
|
66
68
|
};
|
|
69
|
+
/**
|
|
70
|
+
* 全局初始化状态相响应参数
|
|
71
|
+
*/
|
|
72
|
+
export type RbInitialStateRespProps = {
|
|
73
|
+
/**
|
|
74
|
+
* 配置信息
|
|
75
|
+
*/
|
|
76
|
+
settings?: Partial<LayoutSettings>;
|
|
77
|
+
/**
|
|
78
|
+
* 当前用户信息
|
|
79
|
+
*/
|
|
80
|
+
currentUser?: RbCurrentUser;
|
|
81
|
+
/**
|
|
82
|
+
* 当前主题信息
|
|
83
|
+
*/
|
|
84
|
+
currentTheme?: RbCurrentTheme;
|
|
85
|
+
/**
|
|
86
|
+
* 加载状态
|
|
87
|
+
*/
|
|
88
|
+
loading?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* 触发远程用户信息的方法
|
|
91
|
+
*/
|
|
92
|
+
fetchUserInfo: () => Promise<RbCurrentUser>;
|
|
93
|
+
/**
|
|
94
|
+
* 触发远程主题信息的方法
|
|
95
|
+
*/
|
|
96
|
+
fetchThemeInfo: () => Promise<RbCurrentTheme>;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* 全局初始化状态相请求参数
|
|
100
|
+
*/
|
|
101
|
+
export type RbInitialStateReqProps = {
|
|
102
|
+
/**
|
|
103
|
+
* 当前国际化语言
|
|
104
|
+
*/
|
|
105
|
+
locale: string;
|
|
106
|
+
/**
|
|
107
|
+
* 路由
|
|
108
|
+
*/
|
|
109
|
+
history: any;
|
|
110
|
+
/**
|
|
111
|
+
* 默认配置
|
|
112
|
+
*/
|
|
113
|
+
defaultSettings: Partial<LayoutSettings>;
|
|
114
|
+
/**
|
|
115
|
+
* 登录加载路径
|
|
116
|
+
*/
|
|
117
|
+
loginLoadPath: string;
|
|
118
|
+
/**
|
|
119
|
+
* 获取用户初始化详情
|
|
120
|
+
*
|
|
121
|
+
* @param options 参数
|
|
122
|
+
*/
|
|
123
|
+
getUserInitDetail: (options?: {
|
|
124
|
+
[p: string]: any;
|
|
125
|
+
}) => Promise<any>;
|
|
126
|
+
/**
|
|
127
|
+
* 获取当前主题详情
|
|
128
|
+
*
|
|
129
|
+
* @param options 参数
|
|
130
|
+
*/
|
|
131
|
+
getCurrentThemeDetail: (options?: {
|
|
132
|
+
[p: string]: any;
|
|
133
|
+
}) => Promise<any>;
|
|
134
|
+
/**
|
|
135
|
+
* 获取头像预览URL方法
|
|
136
|
+
*
|
|
137
|
+
* @param guid 头像文件主键ID
|
|
138
|
+
*/
|
|
139
|
+
getPreviewUrl: (guid: any) => null | string;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* 全局参数
|
|
143
|
+
*/
|
|
144
|
+
export type RbGlobalStateType = {
|
|
145
|
+
/**
|
|
146
|
+
* 国际化语言
|
|
147
|
+
*/
|
|
148
|
+
intl: any;
|
|
149
|
+
/**
|
|
150
|
+
* 全局状态
|
|
151
|
+
*/
|
|
152
|
+
initialState: RbInitialStateRespProps;
|
|
153
|
+
};
|
package/package.json
CHANGED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import type { Settings as LayoutSettings } from '@ant-design/pro-components';
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { RbCurrentTheme, RbCurrentUser } from "./interface";
|
|
4
|
-
/**
|
|
5
|
-
* 全局初始化状态相请求参数
|
|
6
|
-
*/
|
|
7
|
-
export type RbInitialStateReqProps = {
|
|
8
|
-
/**
|
|
9
|
-
* 当前国际化语言
|
|
10
|
-
*/
|
|
11
|
-
locale: string;
|
|
12
|
-
/**
|
|
13
|
-
* 路由
|
|
14
|
-
*/
|
|
15
|
-
history: any;
|
|
16
|
-
/**
|
|
17
|
-
* 默认配置
|
|
18
|
-
*/
|
|
19
|
-
defaultSettings: Partial<LayoutSettings>;
|
|
20
|
-
/**
|
|
21
|
-
* 登录加载路径
|
|
22
|
-
*/
|
|
23
|
-
loginLoadPath: string;
|
|
24
|
-
/**
|
|
25
|
-
* 获取用户初始化详情
|
|
26
|
-
*
|
|
27
|
-
* @param options 参数
|
|
28
|
-
*/
|
|
29
|
-
getUserInitDetail: (options?: {
|
|
30
|
-
[p: string]: any;
|
|
31
|
-
}) => Promise<any>;
|
|
32
|
-
/**
|
|
33
|
-
* 获取当前主题详情
|
|
34
|
-
*
|
|
35
|
-
* @param options 参数
|
|
36
|
-
*/
|
|
37
|
-
getCurrentThemeDetail: (options?: {
|
|
38
|
-
[p: string]: any;
|
|
39
|
-
}) => Promise<any>;
|
|
40
|
-
/**
|
|
41
|
-
* 获取头像预览URL方法
|
|
42
|
-
*
|
|
43
|
-
* @param guid 头像文件主键ID
|
|
44
|
-
*/
|
|
45
|
-
getPreviewUrl: (guid: any) => null | string;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* 全局初始化状态相响应参数
|
|
49
|
-
*/
|
|
50
|
-
export type RbInitialStateRespProps = {
|
|
51
|
-
/**
|
|
52
|
-
* 配置信息
|
|
53
|
-
*/
|
|
54
|
-
settings?: Partial<LayoutSettings>;
|
|
55
|
-
/**
|
|
56
|
-
* 当前用户信息
|
|
57
|
-
*/
|
|
58
|
-
currentUser?: RbCurrentUser;
|
|
59
|
-
/**
|
|
60
|
-
* 当前主题信息
|
|
61
|
-
*/
|
|
62
|
-
currentTheme?: RbCurrentTheme;
|
|
63
|
-
/**
|
|
64
|
-
* 加载状态
|
|
65
|
-
*/
|
|
66
|
-
loading?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* 触发远程用户信息的方法
|
|
69
|
-
*/
|
|
70
|
-
fetchUserInfo: () => Promise<RbCurrentUser>;
|
|
71
|
-
/**
|
|
72
|
-
* 触发远程主题信息的方法
|
|
73
|
-
*/
|
|
74
|
-
fetchThemeInfo: () => Promise<RbCurrentTheme>;
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* 应用布局属性
|
|
78
|
-
*/
|
|
79
|
-
export type RbAppLayoutProps = {
|
|
80
|
-
/**
|
|
81
|
-
* 路由
|
|
82
|
-
*/
|
|
83
|
-
history: any;
|
|
84
|
-
/**
|
|
85
|
-
* 登录加载路径
|
|
86
|
-
*/
|
|
87
|
-
loginLoadPath: string;
|
|
88
|
-
/**
|
|
89
|
-
* 客户端ID
|
|
90
|
-
*/
|
|
91
|
-
clientId: string;
|
|
92
|
-
/**
|
|
93
|
-
* 全局初始化状态
|
|
94
|
-
*/
|
|
95
|
-
initialState: RbInitialStateRespProps;
|
|
96
|
-
/**
|
|
97
|
-
* 设置全局初始化状态
|
|
98
|
-
*/
|
|
99
|
-
setInitialState: (initialState: RbInitialStateRespProps) => void;
|
|
100
|
-
/**
|
|
101
|
-
* 获取头像预览URL方法
|
|
102
|
-
*
|
|
103
|
-
* @param guid 头像文件主键ID
|
|
104
|
-
*/
|
|
105
|
-
getPreviewUrl: (guid: any) => null | string;
|
|
106
|
-
/**
|
|
107
|
-
* 语言组件
|
|
108
|
-
*/
|
|
109
|
-
selectLang: React.ReactNode;
|
|
110
|
-
/**
|
|
111
|
-
* 头像名称
|
|
112
|
-
*/
|
|
113
|
-
avatarName: React.ReactNode;
|
|
114
|
-
/**
|
|
115
|
-
* 头像下拉
|
|
116
|
-
*/
|
|
117
|
-
avatarDropdown: React.ReactNode;
|
|
118
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/components/{Uploader → DataEntry/Uploader}/SingleImageUploader/locales/en-US.d.ts
RENAMED
|
File without changes
|
/package/build/components/{Uploader → DataEntry/Uploader}/SingleImageUploader/locales/zh-CN.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|