@regenbio/regenbio-components-react 1.4.6 → 1.4.8

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.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 懒加载模块Hook
3
+ */
4
+ declare const useRbLazyFrame: () => {
5
+ frameRef: any;
6
+ isVisible: any;
7
+ };
8
+ export default useRbLazyFrame;
@@ -0,0 +1,40 @@
1
+ import React from "react";
2
+ import { RbLazyFrameProps, RbPdfDrawerProps } from "../type";
3
+ /**
4
+ * PDF抽屉Hook
5
+ *
6
+ * @param props 属性
7
+ * @param LazyFrame 懒加载模块
8
+ */
9
+ declare const useRbPdfDrawer: (props: RbPdfDrawerProps, LazyFrame: React.FC<RbLazyFrameProps>) => {
10
+ setOrderType: any;
11
+ setPageNum: any;
12
+ setPdfDoc: any;
13
+ setPageSize: any;
14
+ setPageWidth: any;
15
+ setFileSize: any;
16
+ setResponsive: any;
17
+ setLeftSize: any;
18
+ savePdf: () => void;
19
+ scrollToPage: any;
20
+ scrollToViewPage: any;
21
+ renderViewPage: () => any[];
22
+ getOrderAnchor: () => any[];
23
+ debouncedHandleScroll: any;
24
+ renderPage: () => any[];
25
+ intl: any;
26
+ responsive: any;
27
+ fileName: any;
28
+ fileSize: any;
29
+ pdfLoading: any;
30
+ pageWidth: any;
31
+ leftSize: any;
32
+ pageNum: any;
33
+ orderType: any;
34
+ pdfDoc: any;
35
+ rightScrollbarsRef: any;
36
+ isActive: any;
37
+ pageSize: any;
38
+ defaultLeftSize: number;
39
+ };
40
+ export default useRbPdfDrawer;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import 'react-pdf/dist/esm/Page/AnnotationLayer.css';
3
+ import 'react-pdf/dist/esm/Page/TextLayer.css';
4
+ import { RbLazyFrameProps, RbPdfDrawerProps } from "./type";
5
+ /**
6
+ * 懒加载模块
7
+ *
8
+ * @constructor
9
+ */
10
+ declare const RbLazyFrame: React.FC<RbLazyFrameProps>;
11
+ /**
12
+ * PDF模态框
13
+ *
14
+ * @constructor
15
+ */
16
+ declare const RbPdfDrawer: React.FC<RbPdfDrawerProps>;
17
+ export { RbLazyFrame, RbPdfDrawer };
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ 'components.pdf-drawer.error-load-pdf': string;
3
+ 'components.pdf-drawer.operation-exit': string;
4
+ 'components.pdf-drawer.operation-download': string;
5
+ 'components.pdf-drawer.operation-order': string;
6
+ 'components.pdf-drawer.operation-view': string;
7
+ 'components.pdf-drawer.operation-zoom-in': string;
8
+ 'components.pdf-drawer.operation-zoom-out': string;
9
+ 'components.pdf-drawer.operation-next-page': string;
10
+ 'components.pdf-drawer.operation-last-page': string;
11
+ 'components.pdf-drawer.operation-side': string;
12
+ };
13
+ export default _default;
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ 'components.pdf-drawer.error-load-pdf': string;
3
+ 'components.pdf-drawer.operation-exit': string;
4
+ 'components.pdf-drawer.operation-download': string;
5
+ 'components.pdf-drawer.operation-order': string;
6
+ 'components.pdf-drawer.operation-view': string;
7
+ 'components.pdf-drawer.operation-zoom-in': string;
8
+ 'components.pdf-drawer.operation-zoom-out': string;
9
+ 'components.pdf-drawer.operation-next-page': string;
10
+ 'components.pdf-drawer.operation-last-page': string;
11
+ 'components.pdf-drawer.operation-side': string;
12
+ };
13
+ export default _default;
@@ -0,0 +1,57 @@
1
+ import React from "react";
2
+ /**
3
+ * PDF模态框属性
4
+ */
5
+ export type RbPdfDrawerProps = {
6
+ /**
7
+ * 文件名
8
+ */
9
+ fileName?: string;
10
+ /**
11
+ * PDF地址(与 文件主键ID 取其一)
12
+ */
13
+ url?: string | null;
14
+ /**
15
+ * 文件主键ID(与 PDF地址 取其一)
16
+ */
17
+ guid?: string;
18
+ /**
19
+ * 抽屉展示状态
20
+ */
21
+ showStatus: boolean;
22
+ /**
23
+ * 抽屉层级,用于支持多层抽屉展示的情况
24
+ */
25
+ zIndex?: number;
26
+ /**
27
+ * 取消回调
28
+ */
29
+ onCancel?: (e: React.MouseEvent<HTMLButtonElement>) => void;
30
+ /**
31
+ * 生成下载URL
32
+ *
33
+ * @param guid 文件主键ID
34
+ */
35
+ downloadUrl: (guid: string) => null | string;
36
+ };
37
+ /**
38
+ * 懒加载模块属性
39
+ */
40
+ export type RbLazyFrameProps = {
41
+ /**
42
+ * 唯一键
43
+ */
44
+ key: string;
45
+ /**
46
+ * ID
47
+ */
48
+ id: string;
49
+ /**
50
+ * 样式
51
+ */
52
+ style: React.CSSProperties;
53
+ /**
54
+ * 子节点
55
+ */
56
+ children: React.ReactNode | React.ReactNode[];
57
+ };
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const ResultComp: React.FC<any>;
package/build/index.d.ts CHANGED
@@ -33,6 +33,8 @@ import { RbCurrentUser, RbCurrentTheme } from "./components/PageLayout/AppLayout
33
33
  import RbAuthFrame from "./components/Other/LoginLoad/AuthFrame";
34
34
  import { RbAuthFrameProps } from "./components/Other/LoginLoad/AuthFrame/type";
35
35
  import RbBindFrame from "./components/Other/LoginLoad/BindFrame";
36
+ import { RbPdfDrawerProps, RbLazyFrameProps } from "./components/DataDisplay/PdfDrawer/type";
37
+ import { RbLazyFrame, RbPdfDrawer } from "./components/DataDisplay/PdfDrawer/index";
36
38
  import { RbBindFrameProps } from "./components/Other/LoginLoad/BindFrame/type";
37
39
  import { RbGlobalContext, useGlobalState } from "./components/Other/GlobalContext";
38
40
  import DbUtil from "./services/utils/dbUtil";
@@ -50,8 +52,9 @@ import StorageEnum from "./services/enums/storageEnum";
50
52
  import useRbDictionary from "./services/hooks/useRbDictionary";
51
53
  import useRbValueEnum from "./services/hooks/useRbValueEnum";
52
54
  import useRbAuthorize from "./services/hooks/useRbAuthorize";
53
- import useRbMessage from "./services/hooks/useRbMessage";
54
- import useRbNotification from "./services/hooks/useRbNotification";
55
+ import useRbMessage from "./services/hooks/feedback/useRbMessage";
56
+ import useRbNotification from "./services/hooks/feedback/useRbNotification";
57
+ import useRbFeedback from "./services/hooks/feedback/useRbFeedback";
55
58
  import CommonConstant from "./services/constants/commonConstant";
56
59
  import IconConstant from "./services/constants/iconConstant";
57
60
  import DbConstant from "./services/constants/dbConstant";
@@ -74,6 +77,8 @@ export { RbHtmlRender };
74
77
  export type { RbHtmlRenderProps };
75
78
  export { RbDragTable };
76
79
  export type { RbDragTableProps };
80
+ export { RbLazyFrame, RbPdfDrawer };
81
+ export type { RbPdfDrawerProps, RbLazyFrameProps };
77
82
  export { RbUserSelector };
78
83
  export type { RbUserSelectorProps };
79
84
  export { RbAttachmentText };
@@ -100,7 +105,7 @@ export { EventEnum, StorageEnum };
100
105
  export { CommonConstant, IconConstant, DbConstant };
101
106
  export { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateReqProps, RbInitialStateRespProps, RbGlobalStateType, RbGlobalFunctionType };
102
107
  export { BaseDO, BaseRelativeDO, TokenDO };
103
- export { useRbDictionary, useRbValueEnum, useRbAuthorize, useRbMessage, useRbNotification };
108
+ export { useRbDictionary, useRbValueEnum, useRbAuthorize, useRbMessage, useRbNotification, useRbFeedback };
104
109
  export { zhCN, enUS };
105
110
  declare const _default: {
106
111
  RbDataTable: <DataSource, U, ValueType = "text">(props: RbDataTableProps<DataSource, U, ValueType>) => any;
@@ -125,5 +130,7 @@ declare const _default: {
125
130
  RbAuthFrame: React.FC<RbAuthFrameProps>;
126
131
  RbBindFrame: React.FC<RbBindFrameProps>;
127
132
  RbGlobalContext: Context<RbGlobalStateType>;
133
+ RbLazyFrame: React.FC<RbLazyFrameProps>;
134
+ RbPdfDrawer: React.FC<RbPdfDrawerProps>;
128
135
  };
129
136
  export default _default;