ados-rcm 1.1.385 → 1.1.387

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D_xWjvU_.cjs"),o=require("react"),i=o.forwardRef((t,r)=>e.jsxRuntimeExports.jsx(e.ReactQuill,{ref:r,...t}));exports.AEditorLazy=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BFzwmTiL.cjs"),o=require("react"),i=o.forwardRef((t,r)=>e.jsxRuntimeExports.jsx(e.ReactQuill,{ref:r,...t}));exports.AEditorLazy=i;
@@ -1,4 +1,4 @@
1
- import { j as t, R as s } from "./index-pH4nOCz2.js";
1
+ import { j as t, R as s } from "./index-ok5mJfiN.js";
2
2
  import { forwardRef as a } from "react";
3
3
  const m = a((r, o) => /* @__PURE__ */ t.jsx(s, { ref: o, ...r }));
4
4
  export {
@@ -27,5 +27,4 @@ export interface IAEditorProps extends IABaseProps, IAWrapProps {
27
27
  limitPosition?: TAEditorLimitPosition;
28
28
  maxLength?: number;
29
29
  }
30
- export declare const FileSizeTrans: (size: any) => string;
31
30
  export declare const AEditor: React.MemoExoticComponent<(props: IAEditorProps) => React.ReactNode>;
@@ -15,6 +15,34 @@ export interface IFileRendererProps {
15
15
  */
16
16
  useFile: TUseValues<File | null>;
17
17
  }
18
+ export interface ISelectRendererProps {
19
+ /**
20
+ * onClick : () => void
21
+ *
22
+ * Description : onClick handler for file selection
23
+ */
24
+ onClick: () => void;
25
+ /**
26
+ * resources : typeof Resources.AFileBox
27
+ *
28
+ * Description : resources of AFileBox
29
+ */
30
+ resources: typeof Resources.AFileBox;
31
+ /**
32
+ * fileSelectButtonClassName? : string
33
+ *
34
+ * Description : className of file select button
35
+ */
36
+ fileSelectButtonClassName?: string;
37
+ }
38
+ export interface IDropRendererProps {
39
+ /**
40
+ * resources : typeof Resources.AFileBox
41
+ *
42
+ * Description : resources of AFileBox
43
+ */
44
+ resources: typeof Resources.AFileBox;
45
+ }
18
46
  export interface IAFileBoxProps extends IABaseProps {
19
47
  /**
20
48
  * useFile : TUseValues<File | null>
@@ -28,6 +56,18 @@ export interface IAFileBoxProps extends IABaseProps {
28
56
  * Description : FileRenderer of AFileBox
29
57
  */
30
58
  FileRenderer?: (props: IFileRendererProps) => React.ReactNode;
59
+ /**
60
+ * SelectRenderer? : (props: ISelectRendererProps) => React.ReactNode
61
+ *
62
+ * Description : SelectRenderer for customizing file selection UI
63
+ */
64
+ SelectRenderer?: (props: ISelectRendererProps) => React.ReactNode;
65
+ /**
66
+ * DropRenderer? : (props: IDropRendererProps) => React.ReactNode
67
+ *
68
+ * Description : DropRenderer for customizing drag and drop UI
69
+ */
70
+ DropRenderer?: (props: IDropRendererProps) => React.ReactNode;
31
71
  /**
32
72
  * resources? : typeof Resources.AFileBox
33
73
  *
@@ -0,0 +1,92 @@
1
+ import { TUseValues } from '../../AHooks/useValues';
2
+ import { IABaseProps } from '../ABase/ABase';
3
+ import { Resources } from '../AResource/AResource';
4
+ import { IAWrapProps } from '../AWrap/AWrap';
5
+ export type TFileUploaderType = 'Upload' | 'Download';
6
+ export type TFileStatus = 'Normal' | 'Error' | 'Loading';
7
+ export interface ICustomFile {
8
+ name: string;
9
+ size: number;
10
+ lastModified?: number;
11
+ type?: string;
12
+ webkitRelativePath?: string;
13
+ [key: string]: any;
14
+ }
15
+ export interface IAFileUploaderProps extends IAWrapProps, IABaseProps {
16
+ /**
17
+ * useFiles : TUseValues<ICustomFile[]>
18
+ *
19
+ * Description : useFiles of AFileUploader
20
+ */
21
+ useFiles: TUseValues<ICustomFile[]>;
22
+ /**
23
+ * accept? : string
24
+ *
25
+ * Description : acceptable formats of file
26
+ */
27
+ accept?: string;
28
+ /**
29
+ * onInvalidFileFormat? : () => void
30
+ *
31
+ * Description : callback function when file format is invalid (not in accept list)
32
+ */
33
+ onInvalidFileFormat?: () => void;
34
+ /**
35
+ * onDownload? : (file: ICustomFile, updateStatus: (status: TFileStatus) => void) => void
36
+ *
37
+ * Description : callback function when download button is clicked
38
+ * @param file The file to download
39
+ * @param updateStatus A function to update the status of the file (Loading, Error, Normal)
40
+ */
41
+ onDownload?: (file: ICustomFile, updateStatus: (status: TFileStatus) => void) => void;
42
+ /**
43
+ * onDownloads? : (files: ICustomFile[]) => void
44
+ *
45
+ * Description : callback function when download all button is clicked
46
+ * @param files All files to download
47
+ */
48
+ onDownloads?: (files: ICustomFile[]) => void;
49
+ /**
50
+ * onDelete? : (file: ICustomFile) => void
51
+ *
52
+ * Description : callback function when delete button is clicked
53
+ */
54
+ onDelete?: (file: ICustomFile) => void;
55
+ /**
56
+ * type : TFileUploaderType
57
+ *
58
+ * Description : type of AFileUploader ('Upload' or 'Download')
59
+ */
60
+ type: TFileUploaderType;
61
+ /**
62
+ * limit? : number
63
+ *
64
+ * Description : limit of AFileUploader
65
+ */
66
+ limit?: number;
67
+ /**
68
+ * useError? : TUseValues<boolean>
69
+ *
70
+ * Description : useError of AFileUploader
71
+ */
72
+ useError?: TUseValues<boolean>;
73
+ /**
74
+ * fileStatus? : Record<string, TFileStatus>
75
+ *
76
+ * Description : status of each file (Normal, Error, Loading)
77
+ */
78
+ fileStatus?: Record<string, TFileStatus>;
79
+ /**
80
+ * useFileStatus? : TUseValues<Record<string, TFileStatus>>
81
+ *
82
+ * Description : useFileStatus for controlling file statuses
83
+ */
84
+ useFileStatus?: TUseValues<Record<string, TFileStatus>>;
85
+ /**
86
+ * resources? : typeof Resources.AFileUploader
87
+ *
88
+ * Description : resources of AFileUploader
89
+ */
90
+ resources?: typeof Resources.AFileUploader;
91
+ }
92
+ export declare const AFileUploader: (props: IAFileUploaderProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -78,6 +78,7 @@ export declare const Icons: Readonly<{
78
78
  Frame: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
79
79
  FileDownload: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
80
80
  File: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
81
+ File2: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
81
82
  UnPlug: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
82
83
  CloudSync: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
83
84
  CalendarDay: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
@@ -150,6 +151,6 @@ export declare const Icons: Readonly<{
150
151
  EditorArrow: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
151
152
  Target: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
152
153
  }>;
153
- export declare const AIcons: ("ArrowDown" | "ArrowUp" | "Chat" | "Check.Checked" | "Check.Indeterminate" | "Check.UnChecked" | "CircleCheck" | "ClipBoard" | "Close" | "Document" | "Menu" | "Person" | "PersonOutline" | "Reset" | "Search" | "Send" | "Spinner" | "Stop" | "TriangleAlert" | "TriangleAlert2" | "Sun" | "Moon" | "CCTV" | "Convert" | "KeyboardArrowUp" | "KeyboardArrowDown" | "Alert" | "SortUp" | "SortDown" | "SortBoth" | "RowSortUp" | "RowSortDown" | "RowSortBoth" | "Favorite" | "FavoriteDisabled" | "Main" | "Frame" | "FileDownload" | "File" | "UnPlug" | "CloudSync" | "CalendarDay" | "DateRange" | "PlayArrow" | "Mail" | "MailOutline" | "Bell" | "Download" | "Folder" | "FolderPost" | "FolderOpen" | "FolderCopy" | "FolderAdd" | "FolderMove" | "FirstPage" | "LastPage" | "NavigateBefore" | "NavigateNext" | "ListAdd" | "ListRemove" | "Cancel" | "Article" | "Info" | "Type" | "PersonAdd" | "CheckNormal" | "Create" | "PersonRemove" | "Refresh" | "Undo" | "Return" | "Gear" | "TriangleUp" | "TriangleDown" | "CircleHelp" | "Cow" | "CircleAlertOutline" | "CircleAlert" | "Manager" | "ManagerOutline" | "Admin" | "Equalizer" | "ABC" | "Auth" | "AuthAdd" | "Switch" | "Add" | "Edit" | "EditOff" | "Delete" | "Save" | "Remove" | "Sync" | "X" | "MoreVertical" | "MoreHorizontal" | "Verified" | "NonVerified" | "Edit2" | "Trash" | "AddRowBelow" | "AddRowAbove" | "AddColRight" | "AddColLeft" | "RemoveCol" | "RemoveRow" | "Table" | "Minus" | "EditorArrow" | "Target")[];
154
+ export declare const AIcons: ("ArrowDown" | "ArrowUp" | "Chat" | "Check.Checked" | "Check.Indeterminate" | "Check.UnChecked" | "CircleCheck" | "ClipBoard" | "Close" | "Document" | "Menu" | "Person" | "PersonOutline" | "Reset" | "Search" | "Send" | "Spinner" | "Stop" | "TriangleAlert" | "TriangleAlert2" | "Sun" | "Moon" | "CCTV" | "Convert" | "KeyboardArrowUp" | "KeyboardArrowDown" | "Alert" | "SortUp" | "SortDown" | "SortBoth" | "RowSortUp" | "RowSortDown" | "RowSortBoth" | "Favorite" | "FavoriteDisabled" | "Main" | "Frame" | "FileDownload" | "File" | "File2" | "UnPlug" | "CloudSync" | "CalendarDay" | "DateRange" | "PlayArrow" | "Mail" | "MailOutline" | "Bell" | "Download" | "Folder" | "FolderPost" | "FolderOpen" | "FolderCopy" | "FolderAdd" | "FolderMove" | "FirstPage" | "LastPage" | "NavigateBefore" | "NavigateNext" | "ListAdd" | "ListRemove" | "Cancel" | "Article" | "Info" | "Type" | "PersonAdd" | "CheckNormal" | "Create" | "PersonRemove" | "Refresh" | "Undo" | "Return" | "Gear" | "TriangleUp" | "TriangleDown" | "CircleHelp" | "Cow" | "CircleAlertOutline" | "CircleAlert" | "Manager" | "ManagerOutline" | "Admin" | "Equalizer" | "ABC" | "Auth" | "AuthAdd" | "Switch" | "Add" | "Edit" | "EditOff" | "Delete" | "Save" | "Remove" | "Sync" | "X" | "MoreVertical" | "MoreHorizontal" | "Verified" | "NonVerified" | "Edit2" | "Trash" | "AddRowBelow" | "AddRowAbove" | "AddColRight" | "AddColLeft" | "RemoveCol" | "RemoveRow" | "Table" | "Minus" | "EditorArrow" | "Target")[];
154
155
  export type TIcons = keyof typeof Icons;
155
156
  export {};
@@ -74,6 +74,14 @@ export declare const Resources: {
74
74
  AWrap: {
75
75
  Asterisk: string;
76
76
  };
77
+ AFileUploader: {
78
+ Delete: string;
79
+ 'Fail Download': string;
80
+ Download: string;
81
+ 'Drop file to select': string;
82
+ 'Insert File': string;
83
+ 'Download All': string;
84
+ };
77
85
  };
78
86
  export type TResource = typeof Resources;
79
87
  export type TResourceType = keyof TResource;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * 파일 크기를 읽기 쉬운 형식으로 변환하는 함수
3
+ * @param size 변환할 파일 크기(바이트)
4
+ * @returns 변환된 파일 크기 문자열 (예: "1.5 MB")
5
+ */
6
+ export declare const FileSizeTrans: (size: number) => string;
1
7
  export declare const alphanumericRegex: RegExp;
2
8
  export declare const emailRegex: RegExp;
3
9
  export declare const emailIdRegex: RegExp;
@@ -27,4 +33,5 @@ export declare const strF: {
27
33
  isNumeric: (str: string) => boolean;
28
34
  isLenMinMax: (min?: number, max?: number) => (str: string) => boolean;
29
35
  };
36
+ FileSizeTrans: (size: number) => string;
30
37
  };