@regenbio/regenbio-components-react 1.4.7 → 1.4.9

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,9 @@
1
+ import React from "react";
2
+ import { RbLazyFrameProps } from "./type";
3
+ /**
4
+ * 懒加载模块
5
+ *
6
+ * @constructor
7
+ */
8
+ declare const RbLazyFrame: React.FC<RbLazyFrameProps>;
9
+ export default RbLazyFrame;
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ /**
3
+ * 懒加载模块属性
4
+ */
5
+ export type RbLazyFrameProps = {
6
+ /**
7
+ * 唯一键
8
+ */
9
+ key: string;
10
+ /**
11
+ * ID
12
+ */
13
+ id: string;
14
+ /**
15
+ * 样式
16
+ */
17
+ style: React.CSSProperties;
18
+ /**
19
+ * 子节点
20
+ */
21
+ children: React.ReactNode | React.ReactNode[];
22
+ };
@@ -0,0 +1,38 @@
1
+ import { RbPdfDrawerProps } from "./type";
2
+ /**
3
+ * PDF抽屉Hook
4
+ *
5
+ * @param props 属性
6
+ */
7
+ declare const useRbPdfDrawer: (props: RbPdfDrawerProps) => {
8
+ setOrderType: any;
9
+ setPageNum: any;
10
+ setPdfDoc: any;
11
+ setPageSize: any;
12
+ setPageWidth: any;
13
+ setFileSize: any;
14
+ setResponsive: any;
15
+ setLeftSize: any;
16
+ savePdf: () => void;
17
+ scrollToPage: any;
18
+ scrollToViewPage: any;
19
+ renderViewPage: () => any[];
20
+ getOrderAnchor: () => any[];
21
+ debouncedHandleScroll: any;
22
+ renderPage: () => any[];
23
+ intl: any;
24
+ responsive: any;
25
+ fileName: any;
26
+ fileSize: any;
27
+ pdfLoading: any;
28
+ pageWidth: any;
29
+ leftSize: any;
30
+ pageNum: any;
31
+ orderType: any;
32
+ pdfDoc: any;
33
+ rightScrollbarsRef: any;
34
+ isActive: any;
35
+ pageSize: any;
36
+ defaultLeftSize: number;
37
+ };
38
+ export default useRbPdfDrawer;
@@ -0,0 +1,11 @@
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 { RbPdfDrawerProps } from "./type";
5
+ /**
6
+ * PDF模态框
7
+ *
8
+ * @constructor
9
+ */
10
+ declare const RbPdfDrawer: React.FC<RbPdfDrawerProps>;
11
+ export default 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,36 @@
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
+ };
@@ -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,10 @@ 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 } from "./components/DataDisplay/PdfDrawer/type";
37
+ import RbPdfDrawer from "./components/DataDisplay/PdfDrawer/index";
38
+ import { RbLazyFrameProps } from "./components/DataDisplay/LazyFrame/type";
39
+ import RbLazyFrame from "./components/DataDisplay/LazyFrame/index";
36
40
  import { RbBindFrameProps } from "./components/Other/LoginLoad/BindFrame/type";
37
41
  import { RbGlobalContext, useGlobalState } from "./components/Other/GlobalContext";
38
42
  import DbUtil from "./services/utils/dbUtil";
@@ -75,6 +79,10 @@ export { RbHtmlRender };
75
79
  export type { RbHtmlRenderProps };
76
80
  export { RbDragTable };
77
81
  export type { RbDragTableProps };
82
+ export { RbPdfDrawer };
83
+ export type { RbPdfDrawerProps };
84
+ export { RbLazyFrame };
85
+ export type { RbLazyFrameProps };
78
86
  export { RbUserSelector };
79
87
  export type { RbUserSelectorProps };
80
88
  export { RbAttachmentText };
@@ -126,5 +134,7 @@ declare const _default: {
126
134
  RbAuthFrame: React.FC<RbAuthFrameProps>;
127
135
  RbBindFrame: React.FC<RbBindFrameProps>;
128
136
  RbGlobalContext: Context<RbGlobalStateType>;
137
+ RbLazyFrame: React.FC<RbLazyFrameProps>;
138
+ RbPdfDrawer: React.FC<RbPdfDrawerProps>;
129
139
  };
130
140
  export default _default;