@@ -2,13 +2,68 @@ import { FormGroupProps } from "./form-group";
2
2
import { UseFieldApiComponentConfig , AnyObject } from "@data-driven-forms/react-form-renderer" ;
3
3
import { ReactNode } from "react" ;
4
4
5
+ import {
6
+ FormGroupProps as CarbonFormGroups ,
7
+ GridDefaultProps , RowDefaultProps ,
8
+ ColumnDefaultProps , ButtonProps ,
9
+ SearchProps , TooltipIconProps ,
10
+ StructuredListProps , StructuredListBodyProps ,
11
+ AllStructuredListRowProps ,
12
+ StructuredListCellProps
13
+ } from 'carbon-components-react' ;
14
+
5
15
export interface DualListSelectValue extends AnyObject {
6
16
value : any ;
7
17
label : ReactNode ;
18
+ ListRowProps ?: AllStructuredListRowProps ;
19
+ ListCellProps ?: StructuredListCellProps ;
20
+ GridProps ?: GridDefaultProps ;
21
+ RowProps ?: RowDefaultProps ;
22
+ LabelProps ?: ColumnDefaultProps ;
23
+ CheckmarkProps ?: ColumnDefaultProps ;
8
24
}
9
25
10
26
interface InternalDualListSelectProps {
11
27
options : DualListSelectValue [ ] ;
28
+ noOptionsTitle ?: ReactNode ;
29
+ noValueTitle ?: ReactNode ;
30
+ leftTitle ?: ReactNode ;
31
+ rightTitle ?: ReactNode ;
32
+ LeftTitleElement ?: string ;
33
+ RightTitleElement ?: string ;
34
+ LeftTitleProps ?: AnyObject ;
35
+ RightTitleProps ?: AnyObject ;
36
+ moveLeftTitle ?: ReactNode ;
37
+ moveRightTitle ?: ReactNode ;
38
+ moveAllLeftTitle ?: ReactNode ;
39
+ moveAllRightTitle ?: ReactNode ;
40
+ label ?: ReactNode ;
41
+ filterOptionsTitle ?: string ;
42
+ filterValuesTitle ?: string ;
43
+ sortOptionsTitle ?: string ;
44
+ sortValuesTitle ?: string ;
45
+ filterOptionsText ?: ReactNode ;
46
+ filterValueText ?: ReactNode ;
47
+ FormGroupProps ?: CarbonFormGroups ;
48
+ GridProps ?: GridDefaultProps ;
49
+ RowProps ?: RowDefaultProps ;
50
+ OptionsColumnProps ?: ColumnDefaultProps ;
51
+ ButtonColumnProps ?: ColumnDefaultProps ;
52
+ ValuesColumnProps ?: ColumnDefaultProps ;
53
+ AddButtonProps ?: ButtonProps ;
54
+ AddAllButtonProps ?: ButtonProps ;
55
+ RemoveButtonProps ?: ButtonProps ;
56
+ RemoveAllButtonProps ?: ButtonProps ;
57
+ LeftToolbarProps ?: React . HTMLProps < HTMLDivElement > ;
58
+ RightToolbarProps ?: React . HTMLProps < HTMLDivElement > ;
59
+ LeftSearchProps ?: SearchProps ;
60
+ RightSearchProps ?: SearchProps ;
61
+ LeftSortProps ?: TooltipIconProps ;
62
+ RightSortProps ?: TooltipIconProps ;
63
+ LeftListProps ?: StructuredListProps ;
64
+ LeftBodyProps ?: StructuredListBodyProps ;
65
+ RightListProps ?: StructuredListProps ;
66
+ RightBodyProps ?: StructuredListBodyProps
12
67
}
13
68
14
69
export type DualListSelectProps = InternalDualListSelectProps & FormGroupProps & UseFieldApiComponentConfig ;
0 commit comments