ados-rcm 1.1.115 → 1.1.116

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,6 +9,12 @@ export interface IFileRendererProps {
9
9
  * Description : file to render
10
10
  */
11
11
  file: File;
12
+ /**
13
+ * useFile : TUseValues<File | null>
14
+ *
15
+ * Description : useFile of AFileBox
16
+ */
17
+ useFile: TUseValues<File | null>;
12
18
  }
13
19
  export interface IAFileBoxProps extends IABaseProps {
14
20
  /**
@@ -80,6 +80,12 @@ export interface IATreeProps<T extends IATreeItem<T>> extends IABaseProps {
80
80
  * Description : selectDisabled of ATree. if string is returned, it will be used as tooltip.
81
81
  */
82
82
  selectDisabled?: (item: T) => boolean | string | undefined;
83
+ /**
84
+ * selectUnused? : (item: T) => boolean
85
+ *
86
+ * Description : selectUnused of ATree. if true is returned, it cannot be selected.
87
+ */
88
+ selectUnused?: (item: T) => boolean;
83
89
  /**
84
90
  * useSearch? : TUseValues<IATreeSearchResult<T> | undefined>
85
91
  *
@@ -1,13 +1,14 @@
1
1
  import React from 'react';
2
2
  import { TUseValues } from '../../AHooks/useValues';
3
+ import { TCanCallback } from '../../AUtils/cbF';
3
4
  import { TIcons } from '../AIcon/AIcon';
4
5
  import { Resources } from '../AResource/AResource';
5
6
  import { IATreeItem, IATreeSearchResult } from './ATree';
6
- import { TCanCallback } from '../../AUtils/cbF';
7
7
  export interface IATreeItemProps<T> {
8
8
  isEqual: (a: T, b: T) => boolean;
9
9
  item: T;
10
10
  selectDisabled?: (item: T) => boolean | string | undefined;
11
+ selectUnused?: (item: T) => boolean;
11
12
  isParentDisabled?: boolean | string;
12
13
  extIndents?: (props: IIndentProps) => {
13
14
  collapsed?: React.ReactNode;