@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.
Files changed (60) hide show
  1. package/build/components/{DataTable → DataDisplay/DataTable}/type.d.ts +0 -4
  2. package/build/components/{FileTag → DataDisplay/FileTag}/type.d.ts +0 -4
  3. package/build/components/{UserCard → DataDisplay/UserCard}/type.d.ts +0 -8
  4. package/build/components/{AttachmentText → DataEntry/AttachmentText}/type.d.ts +0 -4
  5. package/build/components/{MarkdownEditor → DataEntry/MarkdownEditor}/type.d.ts +0 -4
  6. package/build/components/{Uploader → DataEntry/Uploader}/SingleImageUploader/type.d.ts +0 -4
  7. package/build/components/{UserSelector → DataEntry/UserSelector}/type.d.ts +0 -4
  8. package/build/components/{ActionBar → Other/ActionBar}/type.d.ts +1 -5
  9. package/build/components/Other/GlobalContext/index.d.ts +10 -0
  10. package/build/components/{LoginLoad → Other/LoginLoad}/AuthFrame/type.d.ts +1 -9
  11. package/build/components/{LoginLoad → Other/LoginLoad}/BindFrame/type.d.ts +0 -4
  12. package/build/components/{AppLayout → PageLayout/AppLayout}/index.d.ts +2 -1
  13. package/build/components/PageLayout/AppLayout/type.d.ts +41 -0
  14. package/build/index.d.ts +52 -49
  15. package/build/index.js +3 -3
  16. package/build/services/types/commonType.d.ts +87 -0
  17. package/package.json +1 -1
  18. package/build/components/AppLayout/type.d.ts +0 -118
  19. /package/build/components/{DataChart → DataDisplay/DataChart}/index.d.ts +0 -0
  20. /package/build/components/{DataChart → DataDisplay/DataChart}/type.d.ts +0 -0
  21. /package/build/components/{DataTable → DataDisplay/DataTable}/index.d.ts +0 -0
  22. /package/build/components/{DataTable → DataDisplay/DataTable}/locales/en-US.d.ts +0 -0
  23. /package/build/components/{DataTable → DataDisplay/DataTable}/locales/zh-CN.d.ts +0 -0
  24. /package/build/components/{DragTable → DataDisplay/DragTable}/index.d.ts +0 -0
  25. /package/build/components/{DragTable → DataDisplay/DragTable}/type.d.ts +0 -0
  26. /package/build/components/{FileTag → DataDisplay/FileTag}/index.d.ts +0 -0
  27. /package/build/components/{FileTag → DataDisplay/FileTag}/locales/en-US.d.ts +0 -0
  28. /package/build/components/{FileTag → DataDisplay/FileTag}/locales/zh-CN.d.ts +0 -0
  29. /package/build/components/{HtmlRender → DataDisplay/HtmlRender}/index.d.ts +0 -0
  30. /package/build/components/{HtmlRender → DataDisplay/HtmlRender}/type.d.ts +0 -0
  31. /package/build/components/{IconRender → DataDisplay/IconRender}/index.d.ts +0 -0
  32. /package/build/components/{IconRender → DataDisplay/IconRender}/type.d.ts +0 -0
  33. /package/build/components/{UserCard → DataDisplay/UserCard}/index.d.ts +0 -0
  34. /package/build/components/{UserCard → DataDisplay/UserCard}/locales/en-US.d.ts +0 -0
  35. /package/build/components/{UserCard → DataDisplay/UserCard}/locales/zh-CN.d.ts +0 -0
  36. /package/build/components/{AttachmentText → DataEntry/AttachmentText}/index.d.ts +0 -0
  37. /package/build/components/{AttachmentText → DataEntry/AttachmentText}/locales/en-US.d.ts +0 -0
  38. /package/build/components/{AttachmentText → DataEntry/AttachmentText}/locales/zh-CN.d.ts +0 -0
  39. /package/build/components/{MarkdownEditor → DataEntry/MarkdownEditor}/index.d.ts +0 -0
  40. /package/build/components/{MarkdownEditor → DataEntry/MarkdownEditor}/locales/en-US.d.ts +0 -0
  41. /package/build/components/{MarkdownEditor → DataEntry/MarkdownEditor}/locales/zh-CN.d.ts +0 -0
  42. /package/build/components/{Uploader → DataEntry/Uploader}/SingleImageUploader/index.d.ts +0 -0
  43. /package/build/components/{Uploader → DataEntry/Uploader}/SingleImageUploader/locales/en-US.d.ts +0 -0
  44. /package/build/components/{Uploader → DataEntry/Uploader}/SingleImageUploader/locales/zh-CN.d.ts +0 -0
  45. /package/build/components/{UserSelector → DataEntry/UserSelector}/index.d.ts +0 -0
  46. /package/build/components/{UserSelector → DataEntry/UserSelector}/locales/en-US.d.ts +0 -0
  47. /package/build/components/{UserSelector → DataEntry/UserSelector}/locales/zh-CN.d.ts +0 -0
  48. /package/build/components/{ActionBar → Other/ActionBar}/index.d.ts +0 -0
  49. /package/build/components/{LoginLoad → Other/LoginLoad}/AuthFrame/index.d.ts +0 -0
  50. /package/build/components/{LoginLoad → Other/LoginLoad}/AuthFrame/locales/en-US.d.ts +0 -0
  51. /package/build/components/{LoginLoad → Other/LoginLoad}/AuthFrame/locales/zh-CN.d.ts +0 -0
  52. /package/build/components/{LoginLoad → Other/LoginLoad}/BindFrame/index.d.ts +0 -0
  53. /package/build/components/{LoginLoad → Other/LoginLoad}/BindFrame/locales/en-US.d.ts +0 -0
  54. /package/build/components/{LoginLoad → Other/LoginLoad}/BindFrame/locales/zh-CN.d.ts +0 -0
  55. /package/build/components/{ThemeSetter → Other/ThemeSetter}/index.d.ts +0 -0
  56. /package/build/components/{ThemeSetter → Other/ThemeSetter}/type.d.ts +0 -0
  57. /package/build/components/{HomePage → PageLayout/HomePage}/index.d.ts +0 -0
  58. /package/build/components/{HomePage → PageLayout/HomePage}/type.d.ts +0 -0
  59. /package/build/components/{PageContainer → PageLayout/PageContainer}/index.d.ts +0 -0
  60. /package/build/components/{PageContainer → PageLayout/PageContainer}/type.d.ts +0 -0
@@ -105,10 +105,6 @@ export type RbDataTableProps<DataSource, U, ValueType = 'text'> = {
105
105
  * 粘性布局
106
106
  */
107
107
  sticky?: boolean | TableSticky;
108
- /**
109
- * 国际化
110
- */
111
- intl: any;
112
108
  /**
113
109
  * 等待状态改变监听
114
110
  *
@@ -28,8 +28,4 @@ export type RbFileTagProps = {
28
28
  * 标签颜色
29
29
  */
30
30
  color?: string;
31
- /**
32
- * 国际化
33
- */
34
- intl: any;
35
31
  };
@@ -27,14 +27,6 @@ export type RbUserCardProps = {
27
27
  * 子节点
28
28
  */
29
29
  children?: React.ReactNode;
30
- /**
31
- * 国际化
32
- */
33
- intl: any;
34
- /**
35
- * 全局变量,用来判断当前用户是否携带对应的权限标识
36
- */
37
- initialState?: any;
38
30
  /**
39
31
  * 获取用户详情方法
40
32
  *
@@ -42,10 +42,6 @@ export type RbAttachmentTextProps = {
42
42
  * 访问令牌
43
43
  */
44
44
  accessToken?: string;
45
- /**
46
- * 国际化
47
- */
48
- intl: any;
49
45
  /**
50
46
  * 文件上传连接渲染方法
51
47
  * @param configCode 配置编码
@@ -10,8 +10,4 @@ export type RbMarkdownEditorProps = {
10
10
  * 改变回调
11
11
  */
12
12
  onChange?: any;
13
- /**
14
- * 国际化
15
- */
16
- intl: any;
17
13
  };
@@ -57,8 +57,4 @@ export type RbSingleImageUploaderProps = {
57
57
  * @param msg 失败消息
58
58
  */
59
59
  afterFail?: (msg: string) => void;
60
- /**
61
- * 国际化
62
- */
63
- intl: any;
64
60
  };
@@ -53,8 +53,4 @@ export type RbUserSelectorProps<ValueType = any, OptionType extends BaseOptionTy
53
53
  * @param guid 图片主键ID
54
54
  */
55
55
  avatarPreview: (guid: any) => null | string;
56
- /**
57
- * 国际化
58
- */
59
- intl: any;
60
56
  } & ProFormFieldRemoteProps;
@@ -1,6 +1,6 @@
1
1
  import React, { MutableRefObject } from "react";
2
2
  import { RbActionBarItem } from "./index";
3
- import { RbActionType } from "../DataTable/type";
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 "../../AppLayout/type";
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
  */
@@ -11,10 +11,6 @@ export type RbBindFrameProps = {
11
11
  * 响应式
12
12
  */
13
13
  responsive: boolean;
14
- /**
15
- * 国际化
16
- */
17
- intl: any;
18
14
  /**
19
15
  * 获取用户强制绑定的信息
20
16
  * @param options 参数
@@ -1,4 +1,5 @@
1
- import { RbAppLayoutProps, RbInitialStateReqProps, RbInitialStateRespProps } from "./type";
1
+ import { RbAppLayoutProps } from "./type";
2
+ import { RbInitialStateReqProps, RbInitialStateRespProps } from "../../../services/types/commonType";
2
3
  /**
3
4
  * 获取初始化数据
4
5
  *
@@ -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 { RbInitialStateReqProps, RbInitialStateRespProps, RbAppLayoutProps } from "./components/AppLayout/type";
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 { RbInitialStateReqProps, RbInitialStateRespProps, RbAppLayoutProps };
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;