@regenbio/regenbio-components-react 2026.1.14 → 2026.5.22

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/.env ADDED
@@ -0,0 +1 @@
1
+ VITE_API_PROXY_TARGET=http://localhost:8900
@@ -1,9 +1,9 @@
1
- import { RbUserSelectorProps } from "../../../index";
1
+ import type { RbUserSelectorProps } from "./type";
2
2
  /**
3
3
  * 用户选择器Hook
4
4
  * @param props 属性
5
5
  */
6
- declare const useUserSelector: <T, OptionType>({ widthControl, children, params, proFieldProps, mode, valueEnum, request, userType, ...rest }: RbUserSelectorProps<T, OptionType>) => {
6
+ declare const useUserSelector: <T, OptionType>({ widthControl, children, params, proFieldProps, mode, valueEnum, request, userType, roleSigns, clientIds, ...rest }: RbUserSelectorProps<T, OptionType>) => {
7
7
  setKeywords: import("react").Dispatch<import("react").SetStateAction<string>>;
8
8
  onFuzzy: (param: any) => Promise<void>;
9
9
  start: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { BaseOptionType } from 'antd/lib/cascader';
2
2
  import React from 'react';
3
- import { RbUserSelectorProps } from "./type";
3
+ import type { RbUserSelectorProps } from "./type";
4
4
  declare const ProFormSearchSelect: <T, OptionType extends BaseOptionType = any>(props: RbUserSelectorProps<T, OptionType>) => React.ReactElement;
5
5
  declare const RbUserSelector: (<T, OptionType extends BaseOptionType = any>(props: RbUserSelectorProps<T, OptionType>) => React.ReactElement) & {
6
6
  SearchSelect: typeof ProFormSearchSelect;
@@ -13,7 +13,9 @@ export type RbUserSelectorProps = {
13
13
  rules?: Rule[];
14
14
  mode?: 'multiple' | 'tags';
15
15
  userType: Array<0 | 1>;
16
- request: (param: string, guidList: string[], fillUser?: boolean, userType?: string[]) => Promise<RespDTO>;
16
+ roleSigns?: string[];
17
+ clientIds?: string[];
18
+ request: (param: string, guidList: string[], fillUser?: boolean, userType?: string[], roleSigns?: string[], clientIds?: string[]) => Promise<RespDTO>;
17
19
  onChange?: (value: Array<string> | string) => void;
18
20
  };
19
21
  /**
@@ -28,7 +30,9 @@ export type RbUserSelectorExecutorProps = {
28
30
  rules?: Rule[];
29
31
  mode?: 'multiple' | 'tags';
30
32
  userType: Array<0 | 1>;
31
- request: (param: string, guidList: string[], fillUser?: boolean, userType?: string[]) => Promise<RespDTO>;
33
+ roleSigns?: string[];
34
+ clientIds?: string[];
35
+ request: (param: string, guidList: string[], fillUser?: boolean, userType?: string[], roleSigns?: string[], clientIds?: string[]) => Promise<RespDTO>;
32
36
  value: Array<string> | string;
33
37
  onChange?: (value: Array<string> | string) => void;
34
38
  afterChange?: (value: Array<string> | string) => void;
@@ -0,0 +1,2 @@
1
+ import 'antd/dist/reset.css';
2
+ export declare function getUserFuzzy(param: string, guidList: string[], fillUser?: boolean, userType?: number[], roleSigns?: string[], clientIds?: string[]): Promise<any>;
@@ -48,7 +48,7 @@ export type RbUserSelectorProps<ValueType = any, OptionType extends BaseOptionTy
48
48
  * @param fillUser 是否填充用户
49
49
  * @param userType 用户类型
50
50
  */
51
- request: (param: string, guidList: string[], fillUser?: boolean, userType?: number[]) => Promise<any>;
51
+ request: (param: string, guidList: string[], fillUser?: boolean, userType?: number[], roleSigns?: string[], clientIds?: string[]) => Promise<any>;
52
52
  /**
53
53
  * 头像预览方法
54
54
  *
@@ -59,4 +59,12 @@ export type RbUserSelectorProps<ValueType = any, OptionType extends BaseOptionTy
59
59
  * 用户类型
60
60
  */
61
61
  userType?: number[];
62
+ /**
63
+ * 角色标识列表
64
+ */
65
+ roleSigns?: string[];
66
+ /**
67
+ * 客户端ID列表
68
+ */
69
+ clientIds?: string[];
62
70
  } & ProFormFieldRemoteProps;
@@ -1,5 +1,5 @@
1
1
  import { Context } from 'react';
2
- import { RbGlobalStateType } from "../../../services/types/commonType";
2
+ import type { RbGlobalStateType } from "../../../services/types/commonType";
3
3
  /**
4
4
  * 全局状态上下文
5
5
  */
package/build/index.d.ts CHANGED
@@ -1,43 +1,43 @@
1
1
  import RbDataTable from "./components/DataDisplay/DataTable/index";
2
- import { RbDataTableProps, RbActionType } from "./components/DataDisplay/DataTable/type";
2
+ import type { RbDataTableProps, RbActionType } from "./components/DataDisplay/DataTable/type";
3
3
  import { RbActionBarItem, RbActionBar } from "./components/Other/ActionBar";
4
- import { RbActionBarItemProps, RbActionBarProps } from "./components/Other/ActionBar/type";
4
+ import type { RbActionBarItemProps, RbActionBarProps } from "./components/Other/ActionBar/type";
5
5
  import RbThemeSetter from "./components/Other/ThemeSetter";
6
6
  import RbDataChart from "./components/DataDisplay/DataChart";
7
- import { RbDataChartProps, RbChartActionType } from "./components/DataDisplay/DataChart/type";
7
+ import type { RbDataChartProps, RbChartActionType } from "./components/DataDisplay/DataChart/type";
8
8
  import RbFileTag from "./components/DataDisplay/FileTag";
9
- import { RbFileTagProps } from "./components/DataDisplay/FileTag/type";
9
+ import type { RbFileTagProps } from "./components/DataDisplay/FileTag/type";
10
10
  import RbUserCard from "./components/DataDisplay/UserCard";
11
- import { RbUserCardProps } from "./components/DataDisplay/UserCard/type";
11
+ import type { RbUserCardProps } from "./components/DataDisplay/UserCard/type";
12
12
  import RbIconRender from "./components/DataDisplay/IconRender";
13
- import { RbIconRenderProps } from "./components/DataDisplay/IconRender/type";
13
+ import type { RbIconRenderProps } from "./components/DataDisplay/IconRender/type";
14
14
  import RbHtmlRender from "./components/DataDisplay/HtmlRender";
15
- import { RbHtmlRenderProps } from "./components/DataDisplay/HtmlRender/type";
15
+ import type { RbHtmlRenderProps } from "./components/DataDisplay/HtmlRender/type";
16
16
  import RbDragTable from "./components/DataDisplay/DragTable";
17
- import { RbDragTableProps } from "./components/DataDisplay/DragTable/type";
17
+ import type { RbDragTableProps } from "./components/DataDisplay/DragTable/type";
18
18
  import RbUserSelector from "./components/DataEntry/UserSelector";
19
- import { RbUserSelectorProps } from "./components/DataEntry/UserSelector/type";
19
+ import type { RbUserSelectorProps } from "./components/DataEntry/UserSelector/type";
20
20
  import RbAttachmentText from "./components/DataEntry/AttachmentText";
21
- import { RbAttachmentTextProps } from "./components/DataEntry/AttachmentText/type";
21
+ import type { RbAttachmentTextProps } from "./components/DataEntry/AttachmentText/type";
22
22
  import RbPageContainer from "./components/PageLayout/PageContainer";
23
- import { RbPageContainerProps } from "./components/PageLayout/PageContainer/type";
23
+ import type { RbPageContainerProps } from "./components/PageLayout/PageContainer/type";
24
24
  import RbRouteWrapper from "./components/PageLayout/RouteWrapper";
25
- import { RbRouteWrapperProps } from "./components/PageLayout/RouteWrapper/type";
25
+ import type { RbRouteWrapperProps } from "./components/PageLayout/RouteWrapper/type";
26
26
  import { RbMarkdownEditor, RbMarkdownConverter } from "./components/DataEntry/MarkdownEditor";
27
- import { RbMarkdownEditorProps } from "./components/DataEntry/MarkdownEditor/type";
27
+ import type { RbMarkdownEditorProps } from "./components/DataEntry/MarkdownEditor/type";
28
28
  import RbSingleImageUploader from "./components/DataEntry/Uploader/SingleImageUploader";
29
- import { RbSingleImageUploaderProps } from "./components/DataEntry/Uploader/SingleImageUploader/type";
29
+ import type { RbSingleImageUploaderProps } from "./components/DataEntry/Uploader/SingleImageUploader/type";
30
30
  import RbDraggableUploader from "./components/DataEntry/Uploader/DraggableUploader";
31
- import { RbDraggableUploaderProps } from "./components/DataEntry/Uploader/DraggableUploader/type";
31
+ import type { RbDraggableUploaderProps } from "./components/DataEntry/Uploader/DraggableUploader/type";
32
32
  import { getRbInitialState, getRbAppLayout } from "./components/PageLayout/AppLayout";
33
- import { RbAppLayoutProps } from "./components/PageLayout/AppLayout/type";
34
- import { RbCurrentUser, RbCurrentTheme } from "./components/PageLayout/AppLayout/interface";
33
+ import type { RbAppLayoutProps } from "./components/PageLayout/AppLayout/type";
34
+ import type { RbCurrentUser, RbCurrentTheme } from "./components/PageLayout/AppLayout/interface";
35
35
  import RbAuthFrame from "./components/Other/LoginLoad/AuthFrame";
36
- import { RbAuthFrameProps } from "./components/Other/LoginLoad/AuthFrame/type";
36
+ import type { RbAuthFrameProps } from "./components/Other/LoginLoad/AuthFrame/type";
37
37
  import RbBindFrame from "./components/Other/LoginLoad/BindFrame";
38
- import { RbBindFrameProps } from "./components/Other/LoginLoad/BindFrame/type";
38
+ import type { RbBindFrameProps } from "./components/Other/LoginLoad/BindFrame/type";
39
39
  import RbTableLineTitle from "./components/Other/TableLineTitle/index";
40
- import { RbTableLineTitleProps } from "./components/Other/TableLineTitle/type";
40
+ import type { RbTableLineTitleProps } from "./components/Other/TableLineTitle/type";
41
41
  import { RbGlobalContext, useGlobalState } from "./components/Other/GlobalContext";
42
42
  import DbUtil from "./services/utils/dbUtil";
43
43
  import ObjectUtil from "./services/utils/objectUtil";
@@ -62,9 +62,9 @@ import useRbDownloader from "./services/hooks/useRbDownloader";
62
62
  import CommonConstant from "./services/constants/commonConstant";
63
63
  import IconConstant from "./services/constants/iconConstant";
64
64
  import DbConstant from "./services/constants/dbConstant";
65
- import { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateRespProps, RbInitialStateReqProps, RbGlobalStateType, RbGlobalFunctionType } from "./services/types/commonType";
66
- import { BaseDO, BaseRelativeDO } from "./services/interfaces/commonInterface";
67
- import { TokenDO } from "./services/interfaces/oauth2Interface";
65
+ import type { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateRespProps, RbInitialStateReqProps, RbGlobalStateType, RbGlobalFunctionType } from "./services/types/commonType";
66
+ import type { BaseDO, BaseRelativeDO } from "./services/interfaces/commonInterface";
67
+ import type { TokenDO } from "./services/interfaces/oauth2Interface";
68
68
  import zhCN from "./locales/zh-CN";
69
69
  import enUS from "./locales/en-US";
70
70
  export { RbDataTable };
@@ -97,7 +97,7 @@ export { RbRouteWrapper };
97
97
  export type { RbRouteWrapperProps };
98
98
  export { getRbInitialState, getRbAppLayout };
99
99
  export type { RbAppLayoutProps };
100
- export { RbCurrentUser, RbCurrentTheme };
100
+ export type { RbCurrentUser, RbCurrentTheme };
101
101
  export { RbActionBarItem, RbActionBar };
102
102
  export type { RbActionBarItemProps, RbActionBarProps };
103
103
  export { RbThemeSetter };
@@ -109,8 +109,8 @@ export type { RbTableLineTitleProps };
109
109
  export { DbUtil, ObjectUtil, EventUtil, StorageUtil, StringUtil, NumberUtil, RandomUtil, UnicodeUtil, UploadUtil, RequestUtil };
110
110
  export { EventEnum, StorageEnum };
111
111
  export { CommonConstant, IconConstant, DbConstant };
112
- export { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateReqProps, RbInitialStateRespProps, RbGlobalStateType, RbGlobalFunctionType };
113
- export { BaseDO, BaseRelativeDO, TokenDO };
112
+ export type { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateReqProps, RbInitialStateRespProps, RbGlobalStateType, RbGlobalFunctionType };
113
+ export type { BaseDO, BaseRelativeDO, TokenDO };
114
114
  export { useRbDictionary, useRbValueEnum, useRbAuthorize, useRbMessage, useRbNotification, useRbFeedback, useRbDesensitization, useRbDownloader };
115
115
  export { zhCN, enUS };
116
116
  declare const _default: {