@forestadmin/datasource-customizer 1.22.0 → 1.23.0
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.
|
@@ -34,11 +34,13 @@ type NumberDynamicField<Context> = BaseDynamicField<'Number', Context, number>;
|
|
|
34
34
|
type NumberListDynamicField<Context> = BaseDynamicField<'NumberList', Context, number[]>;
|
|
35
35
|
type StringDynamicField<Context> = BaseDynamicField<'Date' | 'Dateonly' | 'String', Context, string>;
|
|
36
36
|
type StringListDynamicField<Context> = BaseDynamicField<'StringList', Context, string[]>;
|
|
37
|
-
type
|
|
38
|
-
widget:
|
|
37
|
+
type LimitedValueDynamicFieldConfiguration<Context, TWidget, TValue = string> = {
|
|
38
|
+
widget: TWidget;
|
|
39
|
+
options: ValueOrHandler<Context, DropdownOption<TValue>[]>;
|
|
40
|
+
};
|
|
41
|
+
type DropdownDynamicFieldConfiguration<Context = unknown, TValue = string> = LimitedValueDynamicFieldConfiguration<Context, 'Dropdown', TValue> & {
|
|
39
42
|
placeholder?: string;
|
|
40
43
|
search?: 'static' | 'disabled';
|
|
41
|
-
options: ValueOrHandler<Context, DropdownOption<TValue>[]>;
|
|
42
44
|
};
|
|
43
45
|
type CheckboxDynamicFieldConfiguration = {
|
|
44
46
|
widget: 'Checkbox';
|
|
@@ -63,6 +65,7 @@ type RichTextFieldConfiguration = {
|
|
|
63
65
|
widget: 'RichText';
|
|
64
66
|
placeholder?: string;
|
|
65
67
|
};
|
|
66
|
-
|
|
68
|
+
type RadioButtonFieldConfiguration<Context = unknown, TValue = string> = LimitedValueDynamicFieldConfiguration<Context, 'RadioGroup', TValue>;
|
|
69
|
+
export type DynamicField<Context = unknown> = StrictUnion<BooleanDynamicField<Context> | (BooleanDynamicField<Context> & CheckboxDynamicFieldConfiguration) | CollectionDynamicField<Context> | EnumDynamicField<Context> | EnumListDynamicField<Context> | FileDynamicField<Context> | FileListDynamicField<Context> | JsonDynamicField<Context> | NumberDynamicField<Context> | (NumberDynamicField<Context> & DropdownDynamicFieldConfiguration<Context, number>) | (NumberDynamicField<Context> & RadioButtonFieldConfiguration<Context, number>) | (NumberListDynamicField<Context> & DropdownDynamicFieldConfiguration<Context, number>) | StringDynamicField<Context> | (StringDynamicField<Context> & TextInputFieldConfiguration) | (StringDynamicField<Context> & DropdownDynamicFieldConfiguration<Context, string>) | (StringDynamicField<Context> & RadioButtonFieldConfiguration<Context, string>) | (StringDynamicField<Context> & TextAreaFieldConfiguration) | (StringDynamicField<Context> & RichTextFieldConfiguration) | StringListDynamicField<Context> | (StringListDynamicField<Context> & DropdownDynamicFieldConfiguration<Context, string>) | (StringListDynamicField<Context> & ArrayInputFieldConfiguration)>;
|
|
67
70
|
export {};
|
|
68
71
|
//# sourceMappingURL=fields.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forestadmin/datasource-customizer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@types/uuid": "^9.0.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@forestadmin/datasource-toolkit": "1.
|
|
31
|
+
"@forestadmin/datasource-toolkit": "1.16.0",
|
|
32
32
|
"file-type": "^16.5.4",
|
|
33
33
|
"luxon": "^3.2.1",
|
|
34
34
|
"object-hash": "^3.0.0",
|