ados-rcm 1.1.438 → 1.1.440

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 (71) hide show
  1. package/dist/index.cjs.js +102 -102
  2. package/dist/index.d.ts +2 -56
  3. package/dist/index.es.js +9751 -9614
  4. package/dist/src/AModule/AHooks/useDB.d.ts +36 -0
  5. package/dist/src/AModule/AHooks/useLayoutDB.d.ts +6 -0
  6. package/dist/src/AModule/AUtils/dbF.d.ts +21 -0
  7. package/dist/src/index.d.ts +58 -0
  8. package/package.json +1 -1
  9. package/dist/AModule/AIndexedDB/AIndexedDB.d.ts +0 -110
  10. /package/dist/{AModule → src/AModule}/AComponents/ABase/ABase.d.ts +0 -0
  11. /package/dist/{AModule → src/AModule}/AComponents/AButton/AButton.d.ts +0 -0
  12. /package/dist/{AModule → src/AModule}/AComponents/AButton/AIconButton.d.ts +0 -0
  13. /package/dist/{AModule → src/AModule}/AComponents/AButton/AThemeButton.d.ts +0 -0
  14. /package/dist/{AModule → src/AModule}/AComponents/ACheckBox/ACheckBox.d.ts +0 -0
  15. /package/dist/{AModule → src/AModule}/AComponents/AChip/AChip.d.ts +0 -0
  16. /package/dist/{AModule → src/AModule}/AComponents/AClock/AClock.d.ts +0 -0
  17. /package/dist/{AModule → src/AModule}/AComponents/ADatePicker/ADatePicker.d.ts +0 -0
  18. /package/dist/{AModule → src/AModule}/AComponents/ADatePicker/ADateRangePicker.d.ts +0 -0
  19. /package/dist/{AModule → src/AModule}/AComponents/ADialog/ADialog.d.ts +0 -0
  20. /package/dist/{AModule → src/AModule}/AComponents/AEditor/AEditor.d.ts +0 -0
  21. /package/dist/{AModule → src/AModule}/AComponents/AEditor/modules/TablePicker.d.ts +0 -0
  22. /package/dist/{AModule → src/AModule}/AComponents/AEditor/modules/TableUI.d.ts +0 -0
  23. /package/dist/{AModule → src/AModule}/AComponents/AFileBox/AFileBox.d.ts +0 -0
  24. /package/dist/{AModule → src/AModule}/AComponents/AFileUploder/AFileUploader.d.ts +0 -0
  25. /package/dist/{AModule → src/AModule}/AComponents/AFloatMenu/AFloatMenu.d.ts +0 -0
  26. /package/dist/{AModule → src/AModule}/AComponents/AFrame/AFrame.d.ts +0 -0
  27. /package/dist/{AModule → src/AModule}/AComponents/AGrow/AGrow.d.ts +0 -0
  28. /package/dist/{AModule → src/AModule}/AComponents/AIcon/AIcon.d.ts +0 -0
  29. /package/dist/{AModule → src/AModule}/AComponents/AInput/AInput.d.ts +0 -0
  30. /package/dist/{AModule → src/AModule}/AComponents/AInput/ANumInput.d.ts +0 -0
  31. /package/dist/{AModule → src/AModule}/AComponents/AListView/AListView.d.ts +0 -0
  32. /package/dist/{AModule → src/AModule}/AComponents/ALoadingBorder/ALoadingBorder.d.ts +0 -0
  33. /package/dist/{AModule → src/AModule}/AComponents/AProgressBar/AProgressBar.d.ts +0 -0
  34. /package/dist/{AModule → src/AModule}/AComponents/ARadioSelect/ARadioSelect.d.ts +0 -0
  35. /package/dist/{AModule → src/AModule}/AComponents/AResource/AResource.d.ts +0 -0
  36. /package/dist/{AModule → src/AModule}/AComponents/ASelect/AMultiSelect.d.ts +0 -0
  37. /package/dist/{AModule → src/AModule}/AComponents/ASelect/ASelect.d.ts +0 -0
  38. /package/dist/{AModule → src/AModule}/AComponents/ASpace/ASpace.d.ts +0 -0
  39. /package/dist/{AModule → src/AModule}/AComponents/AStepper/AStepper.d.ts +0 -0
  40. /package/dist/{AModule → src/AModule}/AComponents/ASwitch/ASwitch.d.ts +0 -0
  41. /package/dist/{AModule → src/AModule}/AComponents/ATab/ATab.d.ts +0 -0
  42. /package/dist/{AModule → src/AModule}/AComponents/ATable/ATable.d.ts +0 -0
  43. /package/dist/{AModule → src/AModule}/AComponents/ATable/ATableBody.d.ts +0 -0
  44. /package/dist/{AModule → src/AModule}/AComponents/ATable/ATableFilter.d.ts +0 -0
  45. /package/dist/{AModule → src/AModule}/AComponents/ATable/ATableFooter.d.ts +0 -0
  46. /package/dist/{AModule → src/AModule}/AComponents/ATable/ATableHeader.d.ts +0 -0
  47. /package/dist/{AModule → src/AModule}/AComponents/AText/AText.d.ts +0 -0
  48. /package/dist/{AModule → src/AModule}/AComponents/ATextArea/ATextArea.d.ts +0 -0
  49. /package/dist/{AModule → src/AModule}/AComponents/ATheme/ATheme.d.ts +0 -0
  50. /package/dist/{AModule → src/AModule}/AComponents/ATheme/DesignTokens.d.ts +0 -0
  51. /package/dist/{AModule → src/AModule}/AComponents/ATheme/RefinedDesignTokens.d.ts +0 -0
  52. /package/dist/{AModule → src/AModule}/AComponents/ATooltip/ATooltip.d.ts +0 -0
  53. /package/dist/{AModule → src/AModule}/AComponents/ATree/ATree.d.ts +0 -0
  54. /package/dist/{AModule → src/AModule}/AComponents/ATree/ATreeItem.d.ts +0 -0
  55. /package/dist/{AModule → src/AModule}/AComponents/ATree/ATreeSearch.d.ts +0 -0
  56. /package/dist/{AModule → src/AModule}/AComponents/ATypes/ATypes.d.ts +0 -0
  57. /package/dist/{AModule → src/AModule}/AComponents/AWrap/AWrap.d.ts +0 -0
  58. /package/dist/{AModule → src/AModule}/AHooks/useEvent.d.ts +0 -0
  59. /package/dist/{AModule → src/AModule}/AHooks/useInit.d.ts +0 -0
  60. /package/dist/{AModule → src/AModule}/AHooks/useValues.d.ts +0 -0
  61. /package/dist/{AModule → src/AModule}/ANetwork/APIContext.d.ts +0 -0
  62. /package/dist/{AModule → src/AModule}/AUtils/bound.d.ts +0 -0
  63. /package/dist/{AModule → src/AModule}/AUtils/cbF.d.ts +0 -0
  64. /package/dist/{AModule → src/AModule}/AUtils/dateF.d.ts +0 -0
  65. /package/dist/{AModule → src/AModule}/AUtils/fileF.d.ts +0 -0
  66. /package/dist/{AModule → src/AModule}/AUtils/numF.d.ts +0 -0
  67. /package/dist/{AModule → src/AModule}/AUtils/objF.d.ts +0 -0
  68. /package/dist/{AModule → src/AModule}/AUtils/sF.d.ts +0 -0
  69. /package/dist/{AModule → src/AModule}/AUtils/strF.d.ts +0 -0
  70. /package/dist/{AModule → src/AModule}/AUtils/tableF.d.ts +0 -0
  71. /package/dist/{AModule → src/AModule}/AUtils/treeF.d.ts +0 -0
@@ -0,0 +1,36 @@
1
+ /**
2
+ * 범용 DB 관리를 위한 React Hook
3
+ * @param dbName 사용할 DB 이름
4
+ * @param storeName 사용할 스토어 이름
5
+ * @param options 추가 옵션 (버전, 메타키 등)
6
+ */
7
+ export declare function useDB(dbName: string, storeName: string, options?: {
8
+ version?: number;
9
+ versionMetaKey?: string;
10
+ dataFieldName?: string;
11
+ }): {
12
+ save: <T>(id: string, data: T) => Promise<boolean>;
13
+ get: <T>(id: string) => Promise<T | null>;
14
+ delete: (id: string) => Promise<boolean>;
15
+ getAll: <T>() => Promise<Record<string, T>>;
16
+ clearAll: () => Promise<boolean>;
17
+ batchSave: <T>(items: Array<{
18
+ id: string;
19
+ data: T;
20
+ }>) => Promise<boolean>;
21
+ batchDelete: (ids: string[]) => Promise<boolean>;
22
+ getByVersion: <T>(queryVersion: number) => Promise<Record<string, T>>;
23
+ getCached: <T>(id: string) => T | null;
24
+ setCacheSize: (size: number) => void;
25
+ clearCache: () => void;
26
+ cancelOperation: (operationId: string) => void;
27
+ cancelAllOperations: () => void;
28
+ getVersionInfo: () => Promise<{
29
+ currentVersion: any;
30
+ targetVersion: number;
31
+ }>;
32
+ currentVersion: number;
33
+ targetVersion: number;
34
+ isLoading: boolean;
35
+ error: Error | null;
36
+ };
@@ -0,0 +1,6 @@
1
+ export declare function useLayoutDB(): {
2
+ save: (id: string, lengths: number[]) => Promise<boolean>;
3
+ get: (id: string) => Promise<number[] | null>;
4
+ getCached: (id: string) => number[] | null;
5
+ deleteItem: (id: string) => Promise<boolean>;
6
+ };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * IndexedDB 관리 모듈
3
+ */
4
+ export interface IRecord {
5
+ id: string;
6
+ [key: string]: any;
7
+ }
8
+ export declare const dbF: {
9
+ save: (dbName: string, storeName: string, record: IRecord) => Promise<void>;
10
+ get: (dbName: string, storeName: string, id: string) => Promise<any>;
11
+ delete: (dbName: string, storeName: string, id: string) => Promise<void>;
12
+ getAll: (dbName: string, storeName: string) => Promise<Record<string, any>>;
13
+ clear: (dbName: string, storeName: string) => Promise<void>;
14
+ batchSave: (dbName: string, storeName: string, records: IRecord[]) => Promise<void>;
15
+ batchDelete: (dbName: string, storeName: string, ids: string[]) => Promise<void>;
16
+ getByIndex: (dbName: string, storeName: string, indexName: string, value: IDBValidKey | IDBKeyRange) => Promise<any[]>;
17
+ getCached: (dbName: string, storeName: string, id: string) => any;
18
+ clearCached: (dbName: string, storeName: string) => void;
19
+ setCacheSize: (dbName: string, storeName: string, size: number) => void;
20
+ ensureVersion: (dbName: string, storeName: string, requiredVersion: number, metaKey: string) => Promise<number>;
21
+ };
@@ -0,0 +1,58 @@
1
+ export * from './AModule/AComponents/ABase/ABase';
2
+ export * from './AModule/AComponents/AButton/AButton';
3
+ export * from './AModule/AComponents/AButton/AIconButton';
4
+ export * from './AModule/AComponents/AButton/AThemeButton';
5
+ export * from './AModule/AComponents/ACheckBox/ACheckBox';
6
+ export * from './AModule/AComponents/AChip/AChip';
7
+ export * from './AModule/AComponents/AClock/AClock';
8
+ export * from './AModule/AComponents/ADatePicker/ADatePicker';
9
+ export * from './AModule/AComponents/ADatePicker/ADateRangePicker';
10
+ export * from './AModule/AComponents/ADialog/ADialog';
11
+ export * from './AModule/AComponents/AFileBox/AFileBox';
12
+ export * from './AModule/AComponents/AFileUploder/AFileUploader';
13
+ export * from './AModule/AComponents/AFloatMenu/AFloatMenu';
14
+ export * from './AModule/AComponents/AFrame/AFrame';
15
+ export * from './AModule/AComponents/AGrow/AGrow';
16
+ export * from './AModule/AComponents/AIcon/AIcon';
17
+ export * from './AModule/AComponents/AInput/AInput';
18
+ export * from './AModule/AComponents/AInput/ANumInput';
19
+ export * from './AModule/AComponents/AListView/AListView';
20
+ export * from './AModule/AComponents/ALoadingBorder/ALoadingBorder';
21
+ export * from './AModule/AComponents/AProgressBar/AProgressBar';
22
+ export * from './AModule/AComponents/ARadioSelect/ARadioSelect';
23
+ export * from './AModule/AComponents/AResource/AResource';
24
+ export * from './AModule/AComponents/ASelect/AMultiSelect';
25
+ export * from './AModule/AComponents/ASelect/ASelect';
26
+ export * from './AModule/AComponents/ASpace/ASpace';
27
+ export * from './AModule/AComponents/AStepper/AStepper';
28
+ export * from './AModule/AComponents/ASwitch/ASwitch';
29
+ export * from './AModule/AComponents/ATab/ATab';
30
+ export * from './AModule/AComponents/ATable/ATable';
31
+ export * from './AModule/AComponents/AText/AText';
32
+ export * from './AModule/AComponents/ATextArea/ATextArea';
33
+ export * from './AModule/AComponents/AEditor/AEditor';
34
+ export * from './AModule/AComponents/AProgressBar/AProgressBar';
35
+ export * from './AModule/AComponents/ATheme/ATheme';
36
+ export * from './AModule/AComponents/ATheme/RefinedDesignTokens';
37
+ export * from './AModule/AComponents/ATooltip/ATooltip';
38
+ export * from './AModule/AComponents/ATree/ATree';
39
+ export * from './AModule/AComponents/ATypes/ATypes';
40
+ export * from './AModule/AComponents/AWrap/AWrap';
41
+ export * from './AModule/AHooks/useEvent';
42
+ export * from './AModule/AHooks/useInit';
43
+ export * from './AModule/AHooks/useDB';
44
+ export * from './AModule/AHooks/useLayoutDB';
45
+ export * from './AModule/AHooks/useValues';
46
+ export * from './AModule/ANetwork/APIContext';
47
+ export * from './AModule/AUtils/bound';
48
+ export * from './AModule/AUtils/cbF';
49
+ export * from './AModule/AUtils/dateF';
50
+ export * from './AModule/AUtils/dbF';
51
+ export * from './AModule/AUtils/fileF';
52
+ export * from './AModule/AUtils/numF';
53
+ export * from './AModule/AUtils/objF';
54
+ export * from './AModule/AUtils/sF';
55
+ export * from './AModule/AUtils/sF.module.scss';
56
+ export * from './AModule/AUtils/strF';
57
+ export * from './AModule/AUtils/tableF';
58
+ export * from './AModule/AUtils/treeF';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ados-rcm",
3
- "version": "1.1.438",
3
+ "version": "1.1.440",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,110 +0,0 @@
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
- };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes