@sillsdev/config-r 1.0.0-alpha.6 → 1.0.0-alpha.8
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/ConfigrPane.d.ts +1 -1
- package/dist/ContentPane.d.ts +34 -71
- package/dist/configr.es.js +2546 -2510
- package/dist/configr.umd.js +52 -48
- package/package.json +1 -1
package/dist/ConfigrPane.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const ConfigrPane: React.FunctionComponent<React.PropsWithChildre
|
|
|
5
5
|
label: string;
|
|
6
6
|
initialValues: object;
|
|
7
7
|
children: React.ReactElement<typeof ConfigrGroup> | React.ReactElement<typeof ConfigrGroup>[];
|
|
8
|
-
|
|
8
|
+
onChange?: (currentValues: any) => void;
|
|
9
9
|
showAppBar?: boolean;
|
|
10
10
|
showSearch?: boolean;
|
|
11
11
|
showAllGroups?: boolean;
|
package/dist/ContentPane.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const ContentPane: React.FunctionComponent<React.PropsWithChildre
|
|
|
7
7
|
currentGroupIndex?: number;
|
|
8
8
|
children: React.ReactElement<typeof ConfigrGroup> | React.ReactElement<typeof ConfigrGroup>[];
|
|
9
9
|
setValueGetter?: (vg: valueGetter) => void;
|
|
10
|
-
|
|
10
|
+
onChange?: (currentValues: any) => void;
|
|
11
11
|
}>>;
|
|
12
12
|
export declare const ConfigrGroup: React.FunctionComponent<React.PropsWithChildren<{
|
|
13
13
|
label: string;
|
|
@@ -16,74 +16,66 @@ export declare const ConfigrGroup: React.FunctionComponent<React.PropsWithChildr
|
|
|
16
16
|
}>>;
|
|
17
17
|
type BooleanEditorComponent = React.FunctionComponent<{
|
|
18
18
|
value: boolean;
|
|
19
|
+
disabled?: boolean;
|
|
19
20
|
onChange: (value: boolean) => void;
|
|
20
21
|
}>;
|
|
21
|
-
|
|
22
|
+
interface IConfigrProps<T> {
|
|
22
23
|
path: string;
|
|
23
24
|
label: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
overrideValue?: T;
|
|
28
|
+
overrideDescription?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const ConfigrInput: React.FunctionComponent<React.PropsWithChildren<IConfigrProps<string | number> & {
|
|
24
31
|
className?: string;
|
|
25
32
|
type?: 'text' | 'number' | 'email';
|
|
26
33
|
units?: string;
|
|
27
|
-
description?: string;
|
|
28
|
-
disabled?: boolean;
|
|
29
34
|
getErrorMessage?: (data: any) => string | undefined;
|
|
30
35
|
}>>;
|
|
31
|
-
|
|
32
|
-
path: string;
|
|
33
|
-
label: string;
|
|
34
|
-
disabled?: boolean;
|
|
35
|
-
description?: string;
|
|
36
|
+
interface ICustomStringInputProps extends IConfigrProps<string> {
|
|
36
37
|
control: React.FunctionComponent<{
|
|
37
38
|
value: string;
|
|
38
39
|
disabled?: boolean;
|
|
39
40
|
onChange: (value: string) => void;
|
|
40
41
|
}>;
|
|
41
42
|
getErrorMessage?: (data: any) => string | undefined;
|
|
42
|
-
}
|
|
43
|
-
export declare const
|
|
44
|
-
|
|
45
|
-
label: string;
|
|
43
|
+
}
|
|
44
|
+
export declare const ConfigrCustomStringInput: React.FunctionComponent<React.PropsWithChildren<ICustomStringInputProps>>;
|
|
45
|
+
interface ICustomBooleanInputProps extends IConfigrProps<boolean> {
|
|
46
46
|
control: BooleanEditorComponent;
|
|
47
|
-
description?: string;
|
|
48
|
-
disabled?: boolean;
|
|
49
47
|
getErrorMessage?: (data: any) => string | undefined;
|
|
50
|
-
}
|
|
51
|
-
export declare const
|
|
52
|
-
|
|
53
|
-
label: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const ConfigrCustomBooleanInput: React.FunctionComponent<React.PropsWithChildren<ICustomBooleanInputProps>>;
|
|
50
|
+
interface ICustomNumberInputProps extends IConfigrProps<number> {
|
|
54
51
|
control: React.FunctionComponent<React.PropsWithChildren<{
|
|
55
52
|
value: number;
|
|
53
|
+
disabled?: boolean;
|
|
56
54
|
onChange: (value: number) => void;
|
|
57
55
|
}>>;
|
|
58
|
-
description?: string;
|
|
59
|
-
disabled?: boolean;
|
|
60
56
|
getErrorMessage?: (data: any) => string | undefined;
|
|
61
|
-
}
|
|
62
|
-
export declare
|
|
63
|
-
|
|
64
|
-
label: string;
|
|
65
|
-
description?: string;
|
|
66
|
-
disabled?: boolean;
|
|
57
|
+
}
|
|
58
|
+
export declare const ConfigrCustomNumberInput: React.FunctionComponent<React.PropsWithChildren<ICustomNumberInputProps>>;
|
|
59
|
+
interface ICustomObjectInputProps<T> extends IConfigrProps<unknown> {
|
|
67
60
|
control: React.FunctionComponent<React.PropsWithChildren<{
|
|
68
61
|
value: T;
|
|
62
|
+
disabled?: boolean;
|
|
69
63
|
onChange: (value: T) => void;
|
|
70
64
|
}>>;
|
|
71
65
|
getErrorMessage?: (data: any) => string | undefined;
|
|
72
|
-
}
|
|
73
|
-
export declare
|
|
74
|
-
|
|
75
|
-
label: string;
|
|
66
|
+
}
|
|
67
|
+
export declare function ConfigrCustomObjectInput<T>(props: React.PropsWithChildren<ICustomObjectInputProps<T>>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
68
|
+
interface ISelectProps extends IConfigrProps<string> {
|
|
76
69
|
indented?: boolean;
|
|
77
|
-
disabled?: boolean;
|
|
78
70
|
options: Array<{
|
|
79
71
|
value: string;
|
|
80
72
|
label?: string;
|
|
81
73
|
description?: string;
|
|
82
74
|
} | number>;
|
|
83
75
|
enableWhen?: string | ((currentValues: object) => boolean);
|
|
84
|
-
description?: string;
|
|
85
76
|
getErrorMessage?: (data: any) => string | undefined;
|
|
86
|
-
}
|
|
77
|
+
}
|
|
78
|
+
export declare const ConfigrSelect: React.FunctionComponent<React.PropsWithChildren<ISelectProps>>;
|
|
87
79
|
export declare const ConfigrSubgroup: React.FunctionComponent<React.PropsWithChildren<{
|
|
88
80
|
label: string;
|
|
89
81
|
path: string;
|
|
@@ -102,55 +94,26 @@ export declare const ConfigrForEach: React.FunctionComponent<React.PropsWithChil
|
|
|
102
94
|
render: (pathPrefix: string, index: number) => React.ReactNode;
|
|
103
95
|
getErrorMessage?: (data: any) => string | undefined;
|
|
104
96
|
}>>;
|
|
105
|
-
export declare const ConfigrBoolean: React.FunctionComponent<React.PropsWithChildren<{
|
|
106
|
-
path: string;
|
|
107
|
-
label: string;
|
|
108
|
-
disabled?: boolean;
|
|
109
|
-
description?: string;
|
|
97
|
+
export declare const ConfigrBoolean: React.FunctionComponent<React.PropsWithChildren<IConfigrProps<boolean> & {
|
|
110
98
|
immediateEffect?: boolean;
|
|
111
99
|
}>>;
|
|
112
|
-
|
|
113
|
-
path: string;
|
|
114
|
-
label: string;
|
|
115
|
-
description?: string;
|
|
116
|
-
disabled?: boolean;
|
|
117
|
-
row?: boolean;
|
|
118
|
-
}>>;
|
|
119
|
-
export declare const ConfigrRadioGroupRaw: React.FunctionComponent<React.PropsWithChildren<{
|
|
120
|
-
path: string;
|
|
121
|
-
label: string;
|
|
100
|
+
interface IRadioGroupProps extends IConfigrProps<string> {
|
|
122
101
|
row?: boolean;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}>>;
|
|
102
|
+
}
|
|
103
|
+
export declare const ConfigrRadioGroup: React.FunctionComponent<React.PropsWithChildren<IRadioGroupProps>>;
|
|
126
104
|
export declare const ConfigrRadio: React.FunctionComponent<React.PropsWithChildren<{
|
|
127
105
|
value: any;
|
|
128
106
|
label?: string;
|
|
129
107
|
}>>;
|
|
130
|
-
|
|
131
|
-
path: string;
|
|
132
|
-
label: string;
|
|
133
|
-
row?: boolean;
|
|
134
|
-
height?: string;
|
|
135
|
-
description?: string;
|
|
136
|
-
disabled?: boolean;
|
|
137
|
-
}>>;
|
|
138
|
-
export declare const ConfigrToggleGroupRaw: React.FunctionComponent<React.PropsWithChildren<{
|
|
139
|
-
path: string;
|
|
140
|
-
label: string;
|
|
108
|
+
interface IToggleGroupProps extends IConfigrProps<string> {
|
|
141
109
|
row?: boolean;
|
|
142
110
|
height?: string;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}>>;
|
|
111
|
+
}
|
|
112
|
+
export declare const ConfigrToggleGroup: React.FunctionComponent<React.PropsWithChildren<IToggleGroupProps>>;
|
|
146
113
|
export declare function ConfigrMakeToggle(value: any, content: ReactNode): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
147
|
-
export declare const ConfigrChooserButton: React.FunctionComponent<React.PropsWithChildren<{
|
|
148
|
-
path: string;
|
|
149
|
-
label: string;
|
|
150
|
-
description?: string;
|
|
114
|
+
export declare const ConfigrChooserButton: React.FunctionComponent<React.PropsWithChildren<IConfigrProps<string> & {
|
|
151
115
|
buttonLabel: string;
|
|
152
116
|
chooseAction: (currentValue: string) => string;
|
|
153
|
-
disabled?: boolean;
|
|
154
117
|
}>>;
|
|
155
118
|
export declare const ConfigrConditional: React.FunctionComponent<React.PropsWithChildren<{
|
|
156
119
|
enableWhen?: (currentValues: object) => boolean;
|