ados-rcm 1.1.433 → 1.1.434
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/dist/AModule/AComponents/AFrame/AFrame.d.ts +1 -1
- package/dist/AModule/AComponents/AIcon/AIcon.d.ts +2 -1
- package/dist/AModule/AIndexedDB/AIndexedDB.d.ts +110 -0
- package/dist/index.cjs.js +123 -123
- package/dist/index.es.js +12581 -12328
- package/package.json +1 -1
@@ -132,5 +132,5 @@ export interface IADivideFrameProps extends DetailedHTMLProps<React.HTMLAttribut
|
|
132
132
|
*/
|
133
133
|
dividerInnerClassName?: string;
|
134
134
|
}
|
135
|
-
export declare const ADivideFrame: (props: IADivideFrameProps) => import("react/jsx-runtime").JSX.Element
|
135
|
+
export declare const ADivideFrame: React.MemoExoticComponent<(props: IADivideFrameProps) => import("react/jsx-runtime").JSX.Element>;
|
136
136
|
export {};
|
@@ -150,7 +150,8 @@ export declare const Icons: Readonly<{
|
|
150
150
|
Minus: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
151
151
|
EditorArrow: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
152
152
|
Target: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
153
|
+
DividerExpand: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
153
154
|
}>;
|
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")[];
|
155
|
+
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" | "DividerExpand")[];
|
155
156
|
export type TIcons = keyof typeof Icons;
|
156
157
|
export {};
|
@@ -0,0 +1,110 @@
|
|
1
|
+
export interface IRecord {
|
2
|
+
id: string;
|
3
|
+
[key: string]: any;
|
4
|
+
}
|
5
|
+
/**
|
6
|
+
* IndexedDB 관리 클래스
|
7
|
+
*/
|
8
|
+
export declare class AIndexedDB {
|
9
|
+
private static instance;
|
10
|
+
private databases;
|
11
|
+
private cache;
|
12
|
+
private static LAYOUT_DB_NAME;
|
13
|
+
private static LAYOUT_STORE_NAME;
|
14
|
+
private constructor();
|
15
|
+
/**
|
16
|
+
* 싱글톤 인스턴스 가져오기
|
17
|
+
*/
|
18
|
+
static getInstance(): AIndexedDB;
|
19
|
+
/**
|
20
|
+
* 캐시에서 데이터 가져오기
|
21
|
+
*/
|
22
|
+
getFromCache(dbName: string, storeName: string, id: string): any | null;
|
23
|
+
/**
|
24
|
+
* 캐시 초기화
|
25
|
+
*/
|
26
|
+
clearCache(dbName: string, storeName: string): void;
|
27
|
+
/**
|
28
|
+
* DB 연결 관리
|
29
|
+
*/
|
30
|
+
private getDB;
|
31
|
+
/**
|
32
|
+
* 데이터 저장
|
33
|
+
*/
|
34
|
+
save(dbName: string, storeName: string, record: IRecord): Promise<void>;
|
35
|
+
/**
|
36
|
+
* 데이터 조회
|
37
|
+
*/
|
38
|
+
get(dbName: string, storeName: string, id: string): Promise<any | null>;
|
39
|
+
/**
|
40
|
+
* 데이터 삭제
|
41
|
+
*/
|
42
|
+
delete(dbName: string, storeName: string, id: string): Promise<void>;
|
43
|
+
/**
|
44
|
+
* 모든 데이터 조회
|
45
|
+
*/
|
46
|
+
getAll(dbName: string, storeName: string): Promise<Record<string, any>>;
|
47
|
+
/**
|
48
|
+
* 모든 데이터 삭제
|
49
|
+
*/
|
50
|
+
clear(dbName: string, storeName: string): Promise<void>;
|
51
|
+
/**
|
52
|
+
* 레이아웃 저장
|
53
|
+
*/
|
54
|
+
saveLayout(id: string, lengths: number[]): Promise<void>;
|
55
|
+
/**
|
56
|
+
* 레이아웃 불러오기
|
57
|
+
*/
|
58
|
+
getLayout(id: string): Promise<number[] | null>;
|
59
|
+
/**
|
60
|
+
* 캐시에서 레이아웃 불러오기 (동기식)
|
61
|
+
*/
|
62
|
+
getCachedLayout(id: string): number[] | null;
|
63
|
+
/**
|
64
|
+
* 레이아웃 삭제
|
65
|
+
*/
|
66
|
+
deleteLayout(id: string): Promise<void>;
|
67
|
+
/**
|
68
|
+
* 모든 레이아웃 불러오기
|
69
|
+
*/
|
70
|
+
getAllLayouts(): Promise<Record<string, number[]>>;
|
71
|
+
/**
|
72
|
+
* 모든 레이아웃 초기화
|
73
|
+
*/
|
74
|
+
clearAllLayouts(): Promise<void>;
|
75
|
+
}
|
76
|
+
/**
|
77
|
+
* ALayout - AIndexedDB를 이용한 레이아웃 관리를 위한 편의 객체
|
78
|
+
* 이전 버전과의 호환성을 위해 유지
|
79
|
+
*/
|
80
|
+
export declare const ALayout: {
|
81
|
+
saveLayout: (id: string, lengths: number[]) => Promise<void>;
|
82
|
+
getLayout: (id: string) => Promise<number[] | null>;
|
83
|
+
getCachedLayout: (id: string) => number[] | null;
|
84
|
+
deleteLayout: (id: string) => Promise<void>;
|
85
|
+
getAllLayouts: () => Promise<Record<string, number[]>>;
|
86
|
+
clearAllLayouts: () => Promise<void>;
|
87
|
+
};
|
88
|
+
/**
|
89
|
+
* React Hook - AIndexedDB 사용을 위한 Hook
|
90
|
+
*/
|
91
|
+
export declare function useAIndexedDB(dbName: string, storeName: string): {
|
92
|
+
save: (id: string, data: any) => Promise<void>;
|
93
|
+
get: (id: string) => Promise<any>;
|
94
|
+
delete: (id: string) => Promise<void>;
|
95
|
+
getAll: () => Promise<Record<string, any>>;
|
96
|
+
clear: () => Promise<void>;
|
97
|
+
getFromCache: (id: string) => any;
|
98
|
+
clearCache: () => void;
|
99
|
+
};
|
100
|
+
/**
|
101
|
+
* 레이아웃 관리를 위한 React Hook
|
102
|
+
*/
|
103
|
+
export declare function useALayout(): {
|
104
|
+
saveLayout: (id: string, lengths: number[]) => Promise<void>;
|
105
|
+
getLayout: (id: string) => Promise<number[] | null>;
|
106
|
+
getCachedLayout: (id: string) => number[] | null;
|
107
|
+
deleteLayout: (id: string) => Promise<void>;
|
108
|
+
getAllLayouts: () => Promise<Record<string, number[]>>;
|
109
|
+
clearAllLayouts: () => Promise<void>;
|
110
|
+
};
|