ados-rcm 1.0.130 → 1.0.132

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.
@@ -7,7 +7,7 @@ import { IAEvent } from '../ATypes/ATypes';
7
7
  * onAction은 callback으로 action이 수행될 때 호출된다. 따라서 기본적으로 onAction을 호출하는 곳은 action 한 곳 뿐이다.
8
8
  * 이와 다르게 action은 여러 곳에서 해당 action을 수행하고 싶을 때 호출할 수 있다. 만약 한 곳에서만 action을 호출하는 상황이라면 onAction을 사용하도록 한다.
9
9
  */
10
- export interface IADialogAction {
10
+ export interface IADialogActions {
11
11
  /**
12
12
  * open : () => void
13
13
  *
@@ -220,11 +220,11 @@ export interface IADialogState {
220
220
  */
221
221
  useIsOpen: TUseValues<boolean>;
222
222
  /**
223
- * setAction : (action: Partial<IADialogAction>) => void
223
+ * setAction : (action: Partial<IADialogActions>) => void
224
224
  *
225
225
  * Description : set action of the dialog
226
226
  */
227
- setAction: (action: Partial<IADialogAction>) => void;
227
+ setAction: (action: Partial<IADialogActions>) => void;
228
228
  }
229
229
  export type TADialogCores<T extends string> = {
230
230
  [key in T]: IADialogCore;
@@ -241,10 +241,10 @@ export interface IADialogCore {
241
241
  *
242
242
  * Description : action of the dialog
243
243
  */
244
- action: IADialogAction;
244
+ action: IADialogActions;
245
245
  }
246
246
  export type TADialogActions<T extends string> = {
247
- [key in T]: IADialogAction;
247
+ [key in T]: IADialogActions;
248
248
  };
249
249
  export declare const useADialogCores: <T extends string>(...dlgNames: T[]) => TADialogCores<T>;
250
250
  export declare const useADialogCore: () => IADialogCore;
@@ -3,7 +3,7 @@ import { TUseValues } from '../../AHooks/useValues';
3
3
  import { TCanCallback } from '../../AUtils/cbF';
4
4
  import { IItem } from '../../AUtils/objF';
5
5
  import { Resources } from '../AResource/AResource';
6
- import { TIdx, TPromisable } from '../ATypes/ATypes';
6
+ import { TActionRef, TIdx, TPromisable } from '../ATypes/ATypes';
7
7
  export interface IATableTHProps<T extends IItem> {
8
8
  /**
9
9
  * defKey : TIdx
@@ -352,6 +352,9 @@ export interface IATableState<T extends IItem> {
352
352
  */
353
353
  sortation: IATableSortation<T>;
354
354
  }
355
+ export interface IATableActions {
356
+ fireOnStateChange: () => TPromisable<void>;
357
+ }
355
358
  export interface IATableProps<T extends IItem> {
356
359
  /**
357
360
  * defs : TATableDefs<T>
@@ -527,6 +530,12 @@ export interface IATableProps<T extends IItem> {
527
530
  * Description : TopRightAddon of ATable
528
531
  */
529
532
  TopRightAddon?: React.ReactNode;
533
+ /**
534
+ * actionRef? : TActionRef<IATableActions<T>>
535
+ *
536
+ * Description : actionRef of ATable
537
+ */
538
+ actionRef?: TActionRef<IATableActions>;
530
539
  /**
531
540
  * resources? : Partial<typeof Resources.ATable>
532
541
  *
@@ -5,6 +5,7 @@ import { TATableFilteration } from './ATable';
5
5
  import { IATableFilterF } from './ATableHeader';
6
6
  interface IATableFilterProps<T extends IItem> {
7
7
  useFilteration: TUseValues<TATableFilteration<T>>;
8
+ hasToggleFilteration: boolean;
8
9
  filterF: IATableFilterF;
9
10
  resources: typeof Resources.ATable;
10
11
  }
@@ -13,6 +13,7 @@ export interface IATableHeaderProps<T extends IItem> {
13
13
  totalCount: number;
14
14
  useCheck?: TUseValues<T[]>;
15
15
  useFilteration: TUseValues<TATableFilteration<T>>;
16
+ hasToggleFilteration: boolean;
16
17
  filterF: IATableFilterF;
17
18
  noFilter?: boolean;
18
19
  noCount?: boolean;
@@ -44,7 +44,7 @@ export interface IATreeItem<T> extends IItem {
44
44
  */
45
45
  children?: T[];
46
46
  }
47
- export interface IATreeAction {
47
+ export interface IATreeActions {
48
48
  /**
49
49
  * expandAll : () => void
50
50
  *
@@ -154,11 +154,11 @@ export interface IATreeProps<T extends IATreeItem<T>> extends IABaseProps {
154
154
  */
155
155
  searchPredicate?: (inputValue: string, item: IATreeItem<T>) => any;
156
156
  /**
157
- * actionRef? : TActionRef<IATreeAction>
157
+ * actionRef? : TActionRef<IATreeActions>
158
158
  *
159
159
  * Description : actionRef of ATree
160
160
  */
161
- actionRef?: TActionRef<IATreeAction>;
161
+ actionRef?: TActionRef<IATreeActions>;
162
162
  /**
163
163
  * RightStickyRenderer? : (props: IATreeItemProps<T>) => React.ReactNode
164
164
  *