@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,6 +1,6 @@
|
|
|
1
1
|
import React, { MutableRefObject } from "react";
|
|
2
2
|
import { RbActionBarItem } from "./index";
|
|
3
|
-
import { RbActionType } from "
|
|
3
|
+
import { RbActionType } from "../../DataDisplay/DataTable/type";
|
|
4
4
|
/**
|
|
5
5
|
* 操作栏属性
|
|
6
6
|
*/
|
|
@@ -13,10 +13,6 @@ export type RbActionBarProps = {
|
|
|
13
13
|
* 操作栏子项
|
|
14
14
|
*/
|
|
15
15
|
children: React.ReactElement<typeof RbActionBarItem> | React.ReactElement<typeof RbActionBarItem>[];
|
|
16
|
-
/**
|
|
17
|
-
* 全局变量,用来判断当前用户是否携带对应的权限标识
|
|
18
|
-
*/
|
|
19
|
-
initialState?: any;
|
|
20
16
|
/**
|
|
21
17
|
* 表格的扩展操作 Ref,传入后可以联动数据表格的 Loading 状态
|
|
22
18
|
*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Context } from 'react';
|
|
2
|
+
import { RbGlobalStateType } from "../../../services/types/commonType";
|
|
3
|
+
/**
|
|
4
|
+
* 全局状态上下文
|
|
5
|
+
*/
|
|
6
|
+
export declare const RbGlobalContext: Context<RbGlobalStateType>;
|
|
7
|
+
/**
|
|
8
|
+
* 全局状态Hook
|
|
9
|
+
*/
|
|
10
|
+
export declare const useGlobalState: () => any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RbInitialStateRespProps } from "
|
|
1
|
+
import { RbInitialStateRespProps } from "../../../../services/types/commonType";
|
|
2
2
|
/**
|
|
3
3
|
* Rb 授权组件属性
|
|
4
4
|
*/
|
|
@@ -10,18 +10,10 @@ export type RbAuthFrameProps = {
|
|
|
10
10
|
* @param state 路由参数
|
|
11
11
|
*/
|
|
12
12
|
onFinish: (to: string, state: any) => void;
|
|
13
|
-
/**
|
|
14
|
-
* 全局初始化状态
|
|
15
|
-
*/
|
|
16
|
-
initialState: RbInitialStateRespProps;
|
|
17
13
|
/**
|
|
18
14
|
* 设置全局初始化状态
|
|
19
15
|
*/
|
|
20
16
|
setInitialState: (initialState: RbInitialStateRespProps) => void;
|
|
21
|
-
/**
|
|
22
|
-
* 国际化
|
|
23
|
-
*/
|
|
24
|
-
intl: any;
|
|
25
17
|
/**
|
|
26
18
|
* 查询路由参数
|
|
27
19
|
*/
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { RbGlobalStateType, RbInitialStateRespProps } from "../../../services/types/commonType";
|
|
3
|
+
/**
|
|
4
|
+
* 应用布局属性
|
|
5
|
+
*/
|
|
6
|
+
export type RbAppLayoutProps = {
|
|
7
|
+
/**
|
|
8
|
+
* 路由
|
|
9
|
+
*/
|
|
10
|
+
history: any;
|
|
11
|
+
/**
|
|
12
|
+
* 登录加载路径
|
|
13
|
+
*/
|
|
14
|
+
loginLoadPath: string;
|
|
15
|
+
/**
|
|
16
|
+
* 客户端ID
|
|
17
|
+
*/
|
|
18
|
+
clientId: string;
|
|
19
|
+
/**
|
|
20
|
+
* 设置全局初始化状态
|
|
21
|
+
*/
|
|
22
|
+
setInitialState: (initialState: RbInitialStateRespProps) => void;
|
|
23
|
+
/**
|
|
24
|
+
* 获取头像预览URL方法
|
|
25
|
+
*
|
|
26
|
+
* @param guid 头像文件主键ID
|
|
27
|
+
*/
|
|
28
|
+
getPreviewUrl: (guid: any) => null | string;
|
|
29
|
+
/**
|
|
30
|
+
* 语言组件
|
|
31
|
+
*/
|
|
32
|
+
selectLang: React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* 头像名称
|
|
35
|
+
*/
|
|
36
|
+
avatarName: React.ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* 头像下拉
|
|
39
|
+
*/
|
|
40
|
+
avatarDropdown: React.ReactNode;
|
|
41
|
+
} & RbGlobalStateType;
|
package/build/index.d.ts
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import RbDataTable from "./components/DataTable/index";
|
|
2
|
-
import { RbDataTableProps, RbActionType } from "./components/DataTable/type";
|
|
3
|
-
import { RbActionBarItem, RbActionBar } from "./components/ActionBar";
|
|
4
|
-
import { RbActionBarItemProps, RbActionBarProps } from "./components/ActionBar/type";
|
|
5
|
-
import RbThemeSetter from "./components/ThemeSetter";
|
|
6
|
-
import RbDataChart from "./components/DataChart";
|
|
7
|
-
import { RbDataChartProps, RbChartActionType } from "./components/DataChart/type";
|
|
8
|
-
import RbFileTag from "./components/FileTag";
|
|
9
|
-
import { RbFileTagProps } from "./components/FileTag/type";
|
|
10
|
-
import RbUserCard from "./components/UserCard";
|
|
11
|
-
import { RbUserCardProps } from "./components/UserCard/type";
|
|
12
|
-
import RbIconRender from "./components/IconRender";
|
|
13
|
-
import { RbIconRenderProps } from "./components/IconRender/type";
|
|
14
|
-
import RbHtmlRender from "./components/HtmlRender";
|
|
15
|
-
import { RbHtmlRenderProps } from "./components/HtmlRender/type";
|
|
16
|
-
import RbDragTable from "./components/DragTable";
|
|
17
|
-
import { RbDragTableProps } from "./components/DragTable/type";
|
|
18
|
-
import RbUserSelector from "./components/UserSelector";
|
|
19
|
-
import { RbUserSelectorProps } from "./components/UserSelector/type";
|
|
20
|
-
import RbAttachmentText from "./components/AttachmentText";
|
|
21
|
-
import { RbAttachmentTextProps } from "./components/AttachmentText/type";
|
|
22
|
-
import RbPageContainer from "./components/PageContainer";
|
|
23
|
-
import { RbPageContainerProps } from "./components/PageContainer/type";
|
|
24
|
-
import RbHomePage from "./components/HomePage";
|
|
25
|
-
import { RbHomePageProps } from "./components/HomePage/type";
|
|
26
|
-
import { RbMarkdownEditor, RbMarkdownConverter } from "./components/MarkdownEditor";
|
|
27
|
-
import { RbMarkdownEditorProps } from "./components/MarkdownEditor/type";
|
|
28
|
-
import RbSingleImageUploader from "./components/Uploader/SingleImageUploader";
|
|
29
|
-
import { RbSingleImageUploaderProps } from "./components/Uploader/SingleImageUploader/type";
|
|
30
|
-
import { getRbInitialState, getRbAppLayout } from "./components/AppLayout";
|
|
31
|
-
import {
|
|
32
|
-
import { RbCurrentUser, RbCurrentTheme } from "./components/AppLayout/interface";
|
|
33
|
-
import RbAuthFrame from "./components/LoginLoad/AuthFrame";
|
|
34
|
-
import { RbAuthFrameProps } from "./components/LoginLoad/AuthFrame/type";
|
|
35
|
-
import RbBindFrame from "./components/LoginLoad/BindFrame";
|
|
36
|
-
import { RbBindFrameProps } from "./components/LoginLoad/BindFrame/type";
|
|
1
|
+
import RbDataTable from "./components/DataDisplay/DataTable/index";
|
|
2
|
+
import { RbDataTableProps, RbActionType } from "./components/DataDisplay/DataTable/type";
|
|
3
|
+
import { RbActionBarItem, RbActionBar } from "./components/Other/ActionBar";
|
|
4
|
+
import { RbActionBarItemProps, RbActionBarProps } from "./components/Other/ActionBar/type";
|
|
5
|
+
import RbThemeSetter from "./components/Other/ThemeSetter";
|
|
6
|
+
import RbDataChart from "./components/DataDisplay/DataChart";
|
|
7
|
+
import { RbDataChartProps, RbChartActionType } from "./components/DataDisplay/DataChart/type";
|
|
8
|
+
import RbFileTag from "./components/DataDisplay/FileTag";
|
|
9
|
+
import { RbFileTagProps } from "./components/DataDisplay/FileTag/type";
|
|
10
|
+
import RbUserCard from "./components/DataDisplay/UserCard";
|
|
11
|
+
import { RbUserCardProps } from "./components/DataDisplay/UserCard/type";
|
|
12
|
+
import RbIconRender from "./components/DataDisplay/IconRender";
|
|
13
|
+
import { RbIconRenderProps } from "./components/DataDisplay/IconRender/type";
|
|
14
|
+
import RbHtmlRender from "./components/DataDisplay/HtmlRender";
|
|
15
|
+
import { RbHtmlRenderProps } from "./components/DataDisplay/HtmlRender/type";
|
|
16
|
+
import RbDragTable from "./components/DataDisplay/DragTable";
|
|
17
|
+
import { RbDragTableProps } from "./components/DataDisplay/DragTable/type";
|
|
18
|
+
import RbUserSelector from "./components/DataEntry/UserSelector";
|
|
19
|
+
import { RbUserSelectorProps } from "./components/DataEntry/UserSelector/type";
|
|
20
|
+
import RbAttachmentText from "./components/DataEntry/AttachmentText";
|
|
21
|
+
import { RbAttachmentTextProps } from "./components/DataEntry/AttachmentText/type";
|
|
22
|
+
import RbPageContainer from "./components/PageLayout/PageContainer";
|
|
23
|
+
import { RbPageContainerProps } from "./components/PageLayout/PageContainer/type";
|
|
24
|
+
import RbHomePage from "./components/PageLayout/HomePage";
|
|
25
|
+
import { RbHomePageProps } from "./components/PageLayout/HomePage/type";
|
|
26
|
+
import { RbMarkdownEditor, RbMarkdownConverter } from "./components/DataEntry/MarkdownEditor";
|
|
27
|
+
import { RbMarkdownEditorProps } from "./components/DataEntry/MarkdownEditor/type";
|
|
28
|
+
import RbSingleImageUploader from "./components/DataEntry/Uploader/SingleImageUploader";
|
|
29
|
+
import { RbSingleImageUploaderProps } from "./components/DataEntry/Uploader/SingleImageUploader/type";
|
|
30
|
+
import { getRbInitialState, getRbAppLayout } from "./components/PageLayout/AppLayout";
|
|
31
|
+
import { RbAppLayoutProps } from "./components/PageLayout/AppLayout/type";
|
|
32
|
+
import { RbCurrentUser, RbCurrentTheme } from "./components/PageLayout/AppLayout/interface";
|
|
33
|
+
import RbAuthFrame from "./components/Other/LoginLoad/AuthFrame";
|
|
34
|
+
import { RbAuthFrameProps } from "./components/Other/LoginLoad/AuthFrame/type";
|
|
35
|
+
import RbBindFrame from "./components/Other/LoginLoad/BindFrame";
|
|
36
|
+
import { RbBindFrameProps } from "./components/Other/LoginLoad/BindFrame/type";
|
|
37
|
+
import { RbGlobalContext } from "./components/Other/GlobalContext";
|
|
37
38
|
import DbUtil from "./services/utils/dbUtil";
|
|
38
39
|
import ObjectUtil from "./services/utils/objectUtil";
|
|
39
40
|
import EventUtil from "./services/utils/eventUtil";
|
|
@@ -52,20 +53,17 @@ import StorageEnum from "./services/enums/storageEnum";
|
|
|
52
53
|
import CommonConstant from "./services/constants/commonConstant";
|
|
53
54
|
import IconConstant from "./services/constants/iconConstant";
|
|
54
55
|
import DbConstant from "./services/constants/dbConstant";
|
|
55
|
-
import { RespDTO, ConstantListItem, DictListItem, PageParams } from "./services/types/commonType";
|
|
56
|
+
import { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateRespProps, RbInitialStateReqProps, RbGlobalStateType } from "./services/types/commonType";
|
|
56
57
|
import { BaseDO, BaseRelativeDO } from "./services/interfaces/commonInterface";
|
|
57
58
|
import { TokenDO } from "./services/interfaces/oauth2Interface";
|
|
58
59
|
import zhCN from "./locales/zh-CN";
|
|
59
60
|
import enUS from "./locales/en-US";
|
|
60
61
|
export { RbDataTable };
|
|
61
62
|
export type { RbDataTableProps, RbActionType };
|
|
62
|
-
export { RbActionBarItem, RbActionBar };
|
|
63
|
-
export type { RbActionBarItemProps, RbActionBarProps };
|
|
64
|
-
export { RbThemeSetter };
|
|
65
|
-
export { RbDataChart };
|
|
66
|
-
export type { RbDataChartProps, RbChartActionType };
|
|
67
63
|
export { RbFileTag };
|
|
68
64
|
export type { RbFileTagProps };
|
|
65
|
+
export { RbDataChart };
|
|
66
|
+
export type { RbDataChartProps, RbChartActionType };
|
|
69
67
|
export { RbUserCard };
|
|
70
68
|
export type { RbUserCardProps };
|
|
71
69
|
export { RbIconRender };
|
|
@@ -78,30 +76,34 @@ export { RbUserSelector };
|
|
|
78
76
|
export type { RbUserSelectorProps };
|
|
79
77
|
export { RbAttachmentText };
|
|
80
78
|
export type { RbAttachmentTextProps };
|
|
81
|
-
export { RbPageContainer };
|
|
82
|
-
export type { RbPageContainerProps };
|
|
83
|
-
export { RbHomePage };
|
|
84
|
-
export type { RbHomePageProps };
|
|
85
79
|
export { RbMarkdownConverter, RbMarkdownEditor };
|
|
86
80
|
export type { RbMarkdownEditorProps };
|
|
87
81
|
export { RbSingleImageUploader };
|
|
88
82
|
export type { RbSingleImageUploaderProps };
|
|
83
|
+
export { RbPageContainer };
|
|
84
|
+
export type { RbPageContainerProps };
|
|
85
|
+
export { RbHomePage };
|
|
86
|
+
export type { RbHomePageProps };
|
|
89
87
|
export { getRbInitialState, getRbAppLayout };
|
|
90
|
-
export type {
|
|
88
|
+
export type { RbAppLayoutProps };
|
|
91
89
|
export { RbCurrentUser, RbCurrentTheme };
|
|
90
|
+
export { RbActionBarItem, RbActionBar };
|
|
91
|
+
export type { RbActionBarItemProps, RbActionBarProps };
|
|
92
|
+
export { RbThemeSetter };
|
|
92
93
|
export { RbAuthFrame, RbBindFrame };
|
|
93
94
|
export type { RbAuthFrameProps, RbBindFrameProps };
|
|
95
|
+
export { RbGlobalContext };
|
|
94
96
|
export { DbUtil, ObjectUtil, EventUtil, StorageUtil, ResourceUtil, RenderUtil, StringUtil, NumberUtil, RandomUtil, UnicodeUtil, UploadUtil, RequestUtil, DictUtil };
|
|
95
97
|
export { EventEnum, StorageEnum };
|
|
96
98
|
export { CommonConstant, IconConstant, DbConstant };
|
|
97
|
-
export { RespDTO, ConstantListItem, DictListItem, PageParams };
|
|
99
|
+
export { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateReqProps, RbInitialStateRespProps, RbGlobalStateType };
|
|
98
100
|
export { BaseDO, BaseRelativeDO, TokenDO };
|
|
99
101
|
export { zhCN, enUS };
|
|
100
102
|
declare const _default: {
|
|
101
103
|
RbDataTable: <DataSource, U, ValueType = "text">(props: RbDataTableProps<DataSource, U, ValueType>) => any;
|
|
102
104
|
RbActionBarItem: React.FC<RbActionBarItemProps>;
|
|
103
105
|
RbActionBar: React.FC<RbActionBarProps>;
|
|
104
|
-
RbThemeSetter: React.FC<import("./components/ThemeSetter/type").RbThemeProps>;
|
|
106
|
+
RbThemeSetter: React.FC<import("./components/Other/ThemeSetter/type").RbThemeProps>;
|
|
105
107
|
RbDataChart: React.FC<RbDataChartProps>;
|
|
106
108
|
RbFileTag: React.FC<RbFileTagProps>;
|
|
107
109
|
RbUserCard: React.FC<RbUserCardProps>;
|
|
@@ -119,5 +121,6 @@ declare const _default: {
|
|
|
119
121
|
RbSingleImageUploader: React.FC<RbSingleImageUploaderProps>;
|
|
120
122
|
RbAuthFrame: React.FC<RbAuthFrameProps>;
|
|
121
123
|
RbBindFrame: React.FC<RbBindFrameProps>;
|
|
124
|
+
RbGlobalContext: Context<RbGlobalStateType>;
|
|
122
125
|
};
|
|
123
126
|
export default _default;
|