@lm_fe/components 0.2.2

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 (100) hide show
  1. package/README.md +47 -0
  2. package/dist/keep-alive/common.d.ts +46 -0
  3. package/dist/keep-alive/components/AsyncComponent.d.ts +27 -0
  4. package/dist/keep-alive/components/Comment.d.ts +18 -0
  5. package/dist/keep-alive/components/Consumer.d.ts +20 -0
  6. package/dist/keep-alive/components/keepAlive.d.ts +4 -0
  7. package/dist/keep-alive/components/provider.d.ts +31 -0
  8. package/dist/keep-alive/contexts/IdentificationContext.d.ts +12 -0
  9. package/dist/keep-alive/contexts/KeepAliveContext.d.ts +5 -0
  10. package/dist/keep-alive/index.d.ts +7 -0
  11. package/dist/keep-alive/index.js +1901 -0
  12. package/dist/keep-alive/utils/bindLifecycle.d.ts +3 -0
  13. package/dist/keep-alive/utils/changePositionByComment.d.ts +1 -0
  14. package/dist/keep-alive/utils/createEventEmitter.d.ts +11 -0
  15. package/dist/keep-alive/utils/createStoreElement.d.ts +1 -0
  16. package/dist/keep-alive/utils/createUniqueIdentification.d.ts +8 -0
  17. package/dist/keep-alive/utils/debug.d.ts +3 -0
  18. package/dist/keep-alive/utils/getDisplayName.d.ts +2 -0
  19. package/dist/keep-alive/utils/getKeepAlive.d.ts +3 -0
  20. package/dist/keep-alive/utils/getKeyByFiberNode.d.ts +1 -0
  21. package/dist/keep-alive/utils/isRegExp.d.ts +1 -0
  22. package/dist/keep-alive/utils/keepAliveDecorator.d.ts +17 -0
  23. package/dist/keep-alive/utils/md5.d.ts +1 -0
  24. package/dist/keep-alive/utils/noop.d.ts +2 -0
  25. package/dist/keep-alive/utils/shallowEqual.d.ts +2 -0
  26. package/dist/keep-alive/utils/useKeepAliveEffect.d.ts +2 -0
  27. package/dist/keep-alive/utils/withIdentificationContextConsumer.d.ts +10 -0
  28. package/dist/keep-alive/utils/withKeepAliveContextConsumer.d.ts +10 -0
  29. package/dist/src/ArraySingle/Inner.d.ts +3 -0
  30. package/dist/src/ArraySingle/index.d.ts +2 -0
  31. package/dist/src/CaseTempleteEdit/Inner.d.ts +4 -0
  32. package/dist/src/CaseTempleteEdit/config.d.ts +20 -0
  33. package/dist/src/CaseTempleteEdit/index.d.ts +4 -0
  34. package/dist/src/CaseTempleteEdit/types.d.ts +19 -0
  35. package/dist/src/CaseTempleteEdit/utils.d.ts +2 -0
  36. package/dist/src/CaseTempleteEditEmr/Inner.d.ts +3 -0
  37. package/dist/src/CaseTempleteEditEmr/demo_text.d.ts +1 -0
  38. package/dist/src/CaseTempleteEditEmr/index.d.ts +2 -0
  39. package/dist/src/CaseTempleteEditEmr/types.d.ts +6 -0
  40. package/dist/src/CaseTempleteEditEmr/utils.d.ts +3 -0
  41. package/dist/src/ContainerDimensions/index.d.ts +10 -0
  42. package/dist/src/GlobalModal/index.d.ts +8 -0
  43. package/dist/src/GlobalModal/utils.d.ts +65 -0
  44. package/dist/src/Monaco/Inner.d.ts +12 -0
  45. package/dist/src/Monaco/index.d.ts +1 -0
  46. package/dist/src/MyAddress/Inner.d.ts +3 -0
  47. package/dist/src/MyAddress/Old/InnerOld.d.ts +3 -0
  48. package/dist/src/MyAddress/Old/index.d.ts +3 -0
  49. package/dist/src/MyAddress/Old/options.d.ts +25 -0
  50. package/dist/src/MyAddress/index.d.ts +6 -0
  51. package/dist/src/MyAddress/type.d.ts +16 -0
  52. package/dist/src/MyAddress/utils.d.ts +6 -0
  53. package/dist/src/MyImageEditor/Inner.d.ts +4 -0
  54. package/dist/src/MyImageEditor/index.d.ts +16 -0
  55. package/dist/src/MyImageEditor/init_delete_control.d.ts +1 -0
  56. package/dist/src/MyImageEditor/utils.d.ts +36 -0
  57. package/dist/src/MyInput/index.d.ts +5 -0
  58. package/dist/src/MyInput/types.d.ts +9 -0
  59. package/dist/src/MyLazyComponent/index.d.ts +6 -0
  60. package/dist/src/PDF_Frame_View/Inner.d.ts +3 -0
  61. package/dist/src/PDF_Frame_View/index.d.ts +5 -0
  62. package/dist/src/PDF_Frame_View/types.d.ts +32 -0
  63. package/dist/src/PDF_Frame_View/utils.d.ts +9 -0
  64. package/dist/src/PatientSelect/Inner.d.ts +16 -0
  65. package/dist/src/PatientSelect/index.d.ts +3 -0
  66. package/dist/src/SimpleForm/Inner.d.ts +5 -0
  67. package/dist/src/SimpleForm/components/TabForm/index.d.ts +15 -0
  68. package/dist/src/SimpleForm/components/extra/Custom.d.ts +8 -0
  69. package/dist/src/SimpleForm/components/extra/MultiInput.d.ts +6 -0
  70. package/dist/src/SimpleForm/components/extra/SimpleSelect.d.ts +6 -0
  71. package/dist/src/SimpleForm/components/extra/SwitchSelect.d.ts +4 -0
  72. package/dist/src/SimpleForm/components/index.d.ts +34 -0
  73. package/dist/src/SimpleForm/index.d.ts +17 -0
  74. package/dist/src/SimpleForm/types/help.d.ts +3 -0
  75. package/dist/src/SimpleForm/types/metaTypes.d.ts +29 -0
  76. package/dist/src/SimpleForm/types.d.ts +24 -0
  77. package/dist/src/a_chunks/index.js +550 -0
  78. package/dist/src/a_chunks/root..js +187 -0
  79. package/dist/src/a_chunks/root.2.js +318 -0
  80. package/dist/src/a_chunks/root.3.js +622 -0
  81. package/dist/src/a_chunks/root.4.js +235 -0
  82. package/dist/src/a_chunks/root.5.js +156 -0
  83. package/dist/src/a_chunks/root.6.js +310 -0
  84. package/dist/src/a_chunks/root.7.js +867 -0
  85. package/dist/src/a_chunks/root.8.js +281 -0
  86. package/dist/src/a_chunks/root.9.js +19 -0
  87. package/dist/src/a_chunks/style-inject.es.js +25 -0
  88. package/dist/src/config.d.ts +1 -0
  89. package/dist/src/hooks/index.d.ts +3 -0
  90. package/dist/src/hooks/useMchcDriverStatus.d.ts +3 -0
  91. package/dist/src/hooks/useMyEffect.d.ts +4 -0
  92. package/dist/src/hooks/use_fuck.d.ts +5 -0
  93. package/dist/src/index.d.ts +11 -0
  94. package/dist/src/index.js +10 -0
  95. package/dist/src/pack_components.d.ts +213 -0
  96. package/dist/src/style/index.d.ts +1 -0
  97. package/dist/src/utils/getInputStyle.d.ts +1 -0
  98. package/dist/src/utils/index.d.ts +1 -0
  99. package/dist/src/utils/other.d.ts +3 -0
  100. package/package.json +67 -0
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const bindLifecycleTypeName = "$$bindLifecycle";
3
+ export default function bindLifecycle<P = any>(Component: React.ComponentClass<P>): any;
@@ -0,0 +1 @@
1
+ export default function changePositionByComment(identification: string, presentParentNode: Node, originalParentNode: Node): void;
@@ -0,0 +1,11 @@
1
+ type EventNames = string | string[];
2
+ type Listener = (...args: any) => void;
3
+ export default function createEventEmitter(): {
4
+ on: (eventNames: EventNames, listener: Listener, direction?: boolean) => void;
5
+ off: (eventNames: EventNames, listener: Listener) => void;
6
+ emit: (eventNames: EventNames, ...args: any) => void;
7
+ clear: () => void;
8
+ listenerCount: (eventNames: EventNames) => number;
9
+ removeAllListeners: (eventNames: EventNames) => void;
10
+ };
11
+ export {};
@@ -0,0 +1 @@
1
+ export default function createStoreElement(): HTMLElement;
@@ -0,0 +1,8 @@
1
+ export declare const prefix = "keep-alive";
2
+ /**
3
+ * Create UUID
4
+ * Reference: https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
5
+ * @export
6
+ * @returns
7
+ */
8
+ export default function createUniqueIdentification(length?: number): string;
@@ -0,0 +1,3 @@
1
+ type Warn = (message?: string) => void;
2
+ export declare let warn: Warn;
3
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function getDisplayName(Component: React.ComponentType): string;
@@ -0,0 +1,3 @@
1
+ type Pattern = string | string[] | RegExp;
2
+ export default function getKeepAlive(name: string, include?: Pattern, exclude?: Pattern, disabled?: boolean): boolean;
3
+ export {};
@@ -0,0 +1 @@
1
+ export default function getKeyByFiberNode(fiberNode: any): string | null;
@@ -0,0 +1 @@
1
+ export default function isRegExp(value: RegExp): boolean;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ export declare enum COMMAND {
3
+ UNACTIVATE = "unactivate",
4
+ UNMOUNT = "unmount",
5
+ ACTIVATE = "activate",
6
+ CURRENT_UNMOUNT = "current_unmount",
7
+ CURRENT_UNACTIVATE = "current_unactivate"
8
+ }
9
+ /**
10
+ * Decorating the <KeepAlive> component, the main function is to listen to events emitted by the upper <KeepAlive> component, triggering events of the current <KeepAlive> component.
11
+ *
12
+ * @export
13
+ * @template P
14
+ * @param {React.ComponentType<any>} Component
15
+ * @returns {React.ComponentType<P>}
16
+ */
17
+ export default function keepAliveDecorator<P = any>(Component: React.ComponentType<any>): React.ComponentType<P>;
@@ -0,0 +1 @@
1
+ export default function createMD5(value?: string, length?: number): string;
@@ -0,0 +1,2 @@
1
+ declare const noop: () => undefined;
2
+ export default noop;
@@ -0,0 +1,2 @@
1
+ declare function shallowEqual(objA: object, objB: object): boolean;
2
+ export default shallowEqual;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function useKeepAliveEffect(effect: React.EffectCallback): void;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { IIdentificationContextProps } from '../contexts/IdentificationContext';
3
+ export interface IIdentificationContextConsumerComponentProps {
4
+ _identificationContextProps: IIdentificationContextProps;
5
+ }
6
+ export declare const withIdentificationContextConsumerDisplayName = "withIdentificationContextConsumer";
7
+ export default function withIdentificationContextConsumer<P = any>(Component: React.ComponentType<IIdentificationContextConsumerComponentProps & P>): {
8
+ (props: P): React.JSX.Element;
9
+ displayName: string;
10
+ };
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { IKeepAliveContextProps } from '../contexts/KeepAliveContext';
3
+ export interface IKeepAliveContextConsumerComponentProps {
4
+ _keepAliveContextProps: IKeepAliveContextProps;
5
+ }
6
+ export declare const WithKeepAliveContextConsumerDisplayName = "withKeepAliveContextConsumer";
7
+ export default function withKeepAliveContextConsumer<P = any>(Component: React.ComponentType<IKeepAliveContextConsumerComponentProps & P>): {
8
+ (props: P): React.JSX.Element;
9
+ displayName: string;
10
+ };
@@ -0,0 +1,3 @@
1
+ import { IArraySingleProps, TCommonComponent } from '@noah-libjs/components';
2
+ declare const ArraySingle_Inner: TCommonComponent<IArraySingleProps, string>;
3
+ export default ArraySingle_Inner;
@@ -0,0 +1,2 @@
1
+ import { IArraySingleProps, TCommonComponent } from '@noah-libjs/components';
2
+ export declare const ArraySingle: TCommonComponent<IArraySingleProps, string>;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ import { ICaseEditProps } from './types';
4
+ export default function CaseTempleteEdit(props: ICaseEditProps): React.JSX.Element;
@@ -0,0 +1,20 @@
1
+ export declare const defaultToolbars: {
2
+ name: string;
3
+ title: string;
4
+ items: {
5
+ name: string;
6
+ title: string;
7
+ items: (string | {
8
+ name: string;
9
+ title: string;
10
+ items: {
11
+ title: string;
12
+ name: string;
13
+ }[];
14
+ } | {
15
+ name: string;
16
+ title: string;
17
+ items?: undefined;
18
+ })[];
19
+ }[];
20
+ }[];
@@ -0,0 +1,4 @@
1
+ export { ICaseEditProps } from './types';
2
+ export { preload_tpl_editor } from './utils';
3
+ export { CaseTempleteEdit };
4
+ declare const CaseTempleteEdit: import("react").LazyExoticComponent<typeof import("./Inner").default>;
@@ -0,0 +1,19 @@
1
+ export interface ICaseEditProps {
2
+ onChange?(str?: string): void;
3
+ value?: string;
4
+ containerProps?: {
5
+ width?: number;
6
+ height?: number;
7
+ };
8
+ toolbars?: any;
9
+ mode?: 'DESIGN' | 'EDITOR' | 'STRICT' | 'READONLY';
10
+ emr_mode?: 'design' | 'form';
11
+ hiddenButton?: boolean;
12
+ sdeKey?: any;
13
+ hidentoolbars?: boolean;
14
+ }
15
+ export interface IFuck_Xsde {
16
+ execCommand(cmd: string): void;
17
+ html(str?: string): string;
18
+ addListener(e: string, cb: () => void): void;
19
+ }
@@ -0,0 +1,2 @@
1
+ export declare function load_sde(): Promise<void>;
2
+ export declare function preload_tpl_editor(): void;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ICaseEditProps } from "src/CaseTempleteEdit/types";
3
+ export default function CaseTempleteEditEmr(props: ICaseEditProps): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const demo_text = "<div id=\"_page\" style=\"margin: 0px auto; background: rgb(255, 255, 255); width: 210mm; min-height: 297mm; transform: scale(1, 1); transform-origin: 50% 0px 0px;\" pagekind=\"A4\" direct=\"portrait\"><div id=\"_header\" style=\"min-height: 0.65cm; padding-left: 0.65cm; padding-right: 0.65cm; padding-top: 0.65cm; position: relative; outline: none;\" contenteditable=\"false\" class=\"\">\u55E1\u55E1\u55E1</div><div id=\"_body\" style=\"min-height: calc(297mm - 0.65cm - 0.65cm - 0.65cm - 0.65cm);padding-left:0.65cm;padding-right:0.65cm;\" contenteditable=\"false\" class=\"\"><p><span style=\"background-color: rgb(231, 64, 37); color: rgb(255, 255, 255);\">\u4E09\u627D\u4E09\u627D</span></p></div><div id=\"_footer\" style=\"position: relative; min-height: 0.65cm; padding-left: 0.65cm; padding-right: 0.65cm; padding-bottom: 0.65cm; outline: none;\" contenteditable=\"false\" class=\"\"></div> \n \n </div>";
@@ -0,0 +1,2 @@
1
+ declare const CaseTempleteEditEmr: import("react").LazyExoticComponent<typeof import("./Inner").default>;
2
+ export { CaseTempleteEditEmr };
@@ -0,0 +1,6 @@
1
+ export interface IFuck_Xemr {
2
+ init(opt: any): void;
3
+ loadHtml(str: string): void;
4
+ getHtml(): string;
5
+ execCommand(cmd: 'preview' | 'new'): void;
6
+ }
@@ -0,0 +1,3 @@
1
+ import { IFuck_Xemr } from "./types";
2
+ export declare function get_editor_frame(): HTMLIFrameElement;
3
+ export declare function load_xemr(): Promise<IFuck_Xemr>;
@@ -0,0 +1,10 @@
1
+ import React, { Component } from "react";
2
+ import { FC } from "react";
3
+ import { ContainerDimensionsProps } from 'react-container-dimensions';
4
+ export declare class ContainerDimensions extends Component<ContainerDimensionsProps, {
5
+ Comp: FC<ContainerDimensionsProps> | null;
6
+ }> {
7
+ constructor(props: any);
8
+ componentDidMount(): void;
9
+ render(): React.JSX.Element;
10
+ }
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { GlobalModal, IGlobalModalProps, TGlobalModalMeta } from './utils';
3
+ export * from './utils';
4
+ export { IGlobalModalProps };
5
+ export declare function MountGlobalModal(props: {
6
+ meta: TGlobalModalMeta;
7
+ globalModal: GlobalModal<any>;
8
+ }): React.JSX.Element;
@@ -0,0 +1,65 @@
1
+ import { ModalFuncProps, ModalProps } from "antd";
2
+ export interface IGlobalModalProps<T> extends Omit<ModalProps, 'onOk' | 'onClose'> {
3
+ modal_data: T;
4
+ props?: any;
5
+ /**
6
+ * 避免使用 onOk, 请使用 onClose 替代。当前栈弹出时, 内部会调用 onClose, onOk 或者 onCancel。
7
+ *
8
+ * @deprecated
9
+ *
10
+ */
11
+ onOk?: (e?: React.MouseEvent<HTMLElement>) => void;
12
+ /**
13
+ * 避免使用 onCancel, 请使用 onClose 替代。当前栈弹出时, 内部会调用 onClose, onOk 或者 onCancel。
14
+ *
15
+ * @deprecated
16
+ *
17
+ * */
18
+ onCancel?: (e?: React.MouseEvent<HTMLElement>) => void;
19
+ /**
20
+ * 当前栈弹出时, 内部会调用 onClose, onOk 或者 onCancel。
21
+ */
22
+ onClose?: (status?: boolean) => void;
23
+ /**
24
+ * pop 当前栈, 内部会调用 onClose, onOk 或者 onCancel
25
+ *
26
+ */
27
+ close?: (status?: boolean, e?: React.MouseEvent<HTMLElement>) => void;
28
+ }
29
+ export type TGlobalModalMeta = {
30
+ [x: string]: (...args: any) => any;
31
+ };
32
+ export declare class GlobalModal_<T extends {
33
+ [x: string]: (...args: any) => any;
34
+ }> {
35
+ open: <S extends keyof T>(n: S, ...data: Parameters<T[S]>) => number;
36
+ openOne: <S extends keyof T>(id: number, n: S, ...data: Parameters<T[S]>) => number;
37
+ pop: (status?: boolean) => void;
38
+ destroyAll: () => void;
39
+ confirmOnce({ storeKey, cb, ...others }: ModalFuncProps & {
40
+ storeKey: string;
41
+ cb(): void;
42
+ }): void;
43
+ }
44
+ type StackItem = {
45
+ name: any;
46
+ data: IGlobalModalProps<{}>;
47
+ id: number;
48
+ };
49
+ export declare class GlobalModal<T extends {
50
+ [x: string]: (...args: any) => any;
51
+ }> {
52
+ private stack;
53
+ private setStack;
54
+ init(stack: StackItem[], setStack: (v: StackItem[]) => void): void;
55
+ open<S extends keyof T>(name: S, data: Parameters<T[S]>[0]): number;
56
+ openOne<S extends keyof T>(id: any, name: S, data: Parameters<T[S]>[0]): any;
57
+ pop(status?: boolean, e?: React.MouseEvent<HTMLElement>): void;
58
+ private clear_one;
59
+ destroyAll(): void;
60
+ confirmOnce({ storeKey, cb, ...others }: ModalFuncProps & {
61
+ storeKey: string;
62
+ cb(): void;
63
+ }): void;
64
+ }
65
+ export {};
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ value?: string;
4
+ defaultValue?: string;
5
+ onChange?(e?: string): void;
6
+ language?: 'json' | 'javascript';
7
+ defaultLanguage?: string;
8
+ height?: string;
9
+ theme?: "vs-dark" | 'light';
10
+ }
11
+ declare function MyMonaco(props: IProps): React.JSX.Element;
12
+ export default MyMonaco;
@@ -0,0 +1 @@
1
+ export declare const MyMonaco: import("react").LazyExoticComponent<typeof import("./Inner").default>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IMyAddressProps } from './type';
3
+ export default function MyAddressNew_Inner(props: IMyAddressProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IMyAddressProps } from '../type';
3
+ export default function MyAddressOld({ id, value, name, onChange, disabled, size, needStreet, getPopupContainer, bordered, form, addressBtns }: IMyAddressProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { get_old_address_options } from './options';
2
+ declare const MyAddressOld: import("react").LazyExoticComponent<typeof import("./InnerOld").default>;
3
+ export { MyAddressOld, get_old_address_options };
@@ -0,0 +1,25 @@
1
+ export declare const getStreets: (p: any, c: any, a: any) => Promise<{
2
+ label: string;
3
+ value: string;
4
+ children: any;
5
+ }[]>;
6
+ declare function get_old_address_options(street?: boolean): Promise<({
7
+ label: string;
8
+ value: string;
9
+ children: {
10
+ label: any;
11
+ value: any;
12
+ }[];
13
+ }[] | {
14
+ children: {
15
+ label: undefined;
16
+ value: undefined;
17
+ children: {
18
+ label: undefined;
19
+ value: undefined;
20
+ }[];
21
+ }[];
22
+ label: undefined;
23
+ value: undefined;
24
+ })[]>;
25
+ export { get_old_address_options };
@@ -0,0 +1,6 @@
1
+ import { IMyAddressProps } from './type';
2
+ import React from 'react';
3
+ export * from './Old';
4
+ declare function MyAddress(props: IMyAddressProps): React.JSX.Element;
5
+ declare function MyAddressNew(props: IMyAddressProps): React.JSX.Element;
6
+ export { IMyAddressProps, MyAddress, MyAddressNew };
@@ -0,0 +1,16 @@
1
+ import { ButtonProps, FormInstance } from "antd";
2
+ export interface IMyAddressProps {
3
+ value?: string;
4
+ onChange?: (value: string) => void;
5
+ id?: string;
6
+ disabled?: boolean;
7
+ size?: 'large' | 'middle' | 'small';
8
+ getPopupContainer?: any;
9
+ bordered?: boolean;
10
+ form?: FormInstance;
11
+ addressBtns?: {
12
+ name: string;
13
+ label: string;
14
+ props: ButtonProps;
15
+ }[];
16
+ }
@@ -0,0 +1,6 @@
1
+ import { IMchc_AddressItemType } from "@lm_fe/service";
2
+ export declare function checkFetchAddrOptionsNeed(value: string | undefined, oldArr: string[], options: IMchc_AddressItemType[]): 'noNeed' | 'init' | 'detail';
3
+ export declare function parseValue(value?: string): {
4
+ arr: string[];
5
+ str: string;
6
+ };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IMyImageEditorProps } from './utils';
3
+ declare function MyImageEditor_Inner(props: IMyImageEditorProps): React.JSX.Element | "加载中...";
4
+ export default MyImageEditor_Inner;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { IMyImageEditorProps, MyImageEditorEvents } from './utils';
3
+ declare function MyImageEditor__(props: IMyImageEditorProps): React.JSX.Element;
4
+ declare const MyImageEditor: typeof MyImageEditor__ & {
5
+ events: {
6
+ save: string;
7
+ create: string;
8
+ };
9
+ };
10
+ declare const GynaecologyImageEditor: typeof MyImageEditor__ & {
11
+ events: {
12
+ save: string;
13
+ create: string;
14
+ };
15
+ };
16
+ export { IMyImageEditorProps, MyImageEditorEvents, MyImageEditor, GynaecologyImageEditor };
@@ -0,0 +1 @@
1
+ export declare function init_delete_control(): void;
@@ -0,0 +1,36 @@
1
+ import _fabric from 'fabric';
2
+ type InterfaceType = typeof _fabric.fabric;
3
+ export type RealCanvas = Canvas;
4
+ export type RealType = InterfaceType & {
5
+ EraserBrush: InterfaceType['PencilBrush'];
6
+ };
7
+ export type RealEventCb<T extends globalThis.Event = globalThis.Event> = (e: IEvent<T>) => void;
8
+ export type RealListenCbs = {
9
+ drop: RealEventCb<MouseEvent>;
10
+ 'mouse:down': RealEventCb<MouseEvent>;
11
+ 'mouse:move': RealEventCb<MouseEvent>;
12
+ 'mouse:up': RealEventCb<MouseEvent>;
13
+ 'mouse:over': RealEventCb<MouseEvent>;
14
+ 'mouse:out': RealEventCb<MouseEvent>;
15
+ 'object:added': RealEventCb;
16
+ };
17
+ import { Canvas, ICanvasOptions, IEvent } from 'fabric/fabric-impl';
18
+ export declare const real_fabric: () => RealType;
19
+ export declare const default_legends: {
20
+ img: string;
21
+ width: number;
22
+ height: number;
23
+ label: string;
24
+ }[];
25
+ export interface IMyImageEditorProps {
26
+ legends?: typeof default_legends;
27
+ value?: string;
28
+ canvasOptions?: Partial<ICanvasOptions>;
29
+ onChange?(v: string): void;
30
+ }
31
+ export declare const MyImageEditorEvents: {
32
+ save: string;
33
+ create: string;
34
+ };
35
+ export declare function event_process(con: RealCanvas, __events: RealListenCbs): () => void;
36
+ export {};
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { InputRef } from 'antd';
3
+ import { IMyInputProps } from './types';
4
+ export * from './types';
5
+ export declare const MyInput: React.ForwardRefExoticComponent<IMyInputProps & React.RefAttributes<InputRef>>;
@@ -0,0 +1,9 @@
1
+ import { IMchc_FormDescriptions_Field } from '@lm_fe/service';
2
+ import { FormInstance, InputProps } from 'antd';
3
+ export interface IMyInputProps extends Omit<InputProps, 'value' | 'onChange' | 'form'> {
4
+ value?: string;
5
+ onChange?(v: string): void;
6
+ form?: FormInstance;
7
+ config?: IMchc_FormDescriptions_Field;
8
+ warn?: boolean;
9
+ }
@@ -0,0 +1,6 @@
1
+ import { FC, SuspenseProps } from 'react';
2
+ type TSize = 'tiny' | 'small' | 'middle' | 'large';
3
+ export declare const MyLazyComponent: FC<Partial<SuspenseProps> & {
4
+ size?: TSize;
5
+ }>;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IPdfFrameView_Props } from './types';
3
+ export default function PdfFrameView_Inner(props: IPdfFrameView_Props): React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { IPdfFrameView_Props } from './types';
2
+ import React from 'react';
3
+ export * from './types';
4
+ export { get_PdfFrameView_version } from './utils';
5
+ export declare function PdfFrameView(props: IPdfFrameView_Props): React.JSX.Element;
@@ -0,0 +1,32 @@
1
+ import { Request } from '@lm_fe/utils';
2
+ import { AxiosRequestConfig } from 'axios';
3
+ import { lm_pdfjs_info } from '@lm_fe/static';
4
+ export interface IPdfFrameView_Res_Data {
5
+ pdfdata?: string;
6
+ filepath?: string;
7
+ imagesData?: string[];
8
+ }
9
+ export type PdfFrameView_Version = keyof typeof lm_pdfjs_info.dirs;
10
+ export interface IPdfFrameView_Props {
11
+ PDFAppConfig?: {
12
+ hidenToolbar?: boolean;
13
+ };
14
+ request?: Request;
15
+ requestData?: {
16
+ url: string;
17
+ resource?: string;
18
+ template?: string;
19
+ version?: string;
20
+ note?: string;
21
+ id?: number | string;
22
+ method?: 'GET' | 'POST';
23
+ subid?: number;
24
+ vmName?: string;
25
+ [x: string]: any;
26
+ };
27
+ requestConfig?: AxiosRequestConfig;
28
+ printData?: string;
29
+ version?: PdfFrameView_Version;
30
+ filepath?: string;
31
+ callback?(data?: string): void;
32
+ }
@@ -0,0 +1,9 @@
1
+ export declare function handlePrintData(printData: string): Uint8Array<ArrayBuffer>;
2
+ export declare function handleRes(res: any): {
3
+ pdf?: undefined;
4
+ images?: undefined;
5
+ } | {
6
+ pdf: string | undefined;
7
+ images: string[];
8
+ };
9
+ export declare function get_PdfFrameView_version(): any;
@@ -0,0 +1,16 @@
1
+ import { AutoCompleteProps, FormInstance } from 'antd';
2
+ import { DefaultOptionType } from 'antd/es/select';
3
+ import React from 'react';
4
+ type KeyType = [DefaultOptionType, DefaultOptionType, DefaultOptionType, DefaultOptionType];
5
+ interface IProps extends Omit<AutoCompleteProps, 'onChange'> {
6
+ name?: string;
7
+ PatientSelect_url?: string;
8
+ PatientSelect_filterKey?: string;
9
+ PatientSelect_displayKey?: KeyType;
10
+ width?: any;
11
+ form?: FormInstance;
12
+ onPatientSelect?(v: any, form?: FormInstance): void;
13
+ onChange?(v: any): void;
14
+ }
15
+ export default function PatientSelect(props: IProps): React.JSX.Element;
16
+ export {};
@@ -0,0 +1,3 @@
1
+ declare const PatientSelect: import("react").LazyExoticComponent<typeof import("./Inner").default>;
2
+ export { PatientSelect, usePatientSelect };
3
+ declare function usePatientSelect<T>(name: string): (T | undefined)[];
@@ -0,0 +1,5 @@
1
+ import { FormInstance } from 'antd';
2
+ import React from 'react';
3
+ import { SimpleFormProps } from './types';
4
+ declare const SimpleFormInner: React.ForwardRefExoticComponent<SimpleFormProps & React.RefAttributes<FormInstance<any>>>;
5
+ export default SimpleFormInner;
@@ -0,0 +1,15 @@
1
+ import { TabsProps } from "antd";
2
+ import React from "react";
3
+ import { SimpleFormProps } from "src/SimpleForm/types";
4
+ interface IItem {
5
+ _id: number;
6
+ [x: string]: any;
7
+ }
8
+ interface IProps extends Omit<TabsProps, 'onChange'> {
9
+ value?: IItem[];
10
+ title: string;
11
+ onChange?: (v: IItem[]) => void;
12
+ formSchema: SimpleFormProps;
13
+ }
14
+ export default function TabForm({ value, formSchema, onChange, title, style, ...others }: IProps): React.JSX.Element;
15
+ export {};
@@ -0,0 +1,8 @@
1
+ import { InputProps } from "antd";
2
+ import { FC } from "react";
3
+ export { InputProps };
4
+ import React from "react";
5
+ export default function Custom<T>(props: InputProps & {
6
+ CustomedComponent: FC<T>;
7
+ [x: string]: any;
8
+ }): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { SelectProps } from "antd";
2
+ import React from "react";
3
+ export declare function MultiInput(props: Omit<SelectProps<any>, 'value'> & {
4
+ optionsArr: string[];
5
+ value: string;
6
+ }): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { SelectProps } from "antd";
2
+ import React from "react";
3
+ export default function SimpleSelect(props: SelectProps<any> & {
4
+ optionsArr: string[];
5
+ type?: 'Select' | 'Radio';
6
+ }): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { SelectProps } from "antd";
2
+ import React from "react";
3
+ export { SelectProps };
4
+ export default function SwitchSelect(props: SelectProps<any>): React.JSX.Element;