@forestadmin/forestadmin-client 1.14.0 → 1.16.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.
- package/dist/schema/types.d.ts +20 -1
- package/package.json +2 -2
package/dist/schema/types.d.ts
CHANGED
|
@@ -126,10 +126,29 @@ export type ForestServerActionFieldNumberInputOptions = {
|
|
|
126
126
|
step?: number;
|
|
127
127
|
};
|
|
128
128
|
};
|
|
129
|
+
export type ForestServerActionFieldNumberInputListOptions = {
|
|
130
|
+
name: 'input array';
|
|
131
|
+
parameters: {
|
|
132
|
+
placeholder?: string | null;
|
|
133
|
+
enableReorder?: boolean;
|
|
134
|
+
allowDuplicate?: boolean;
|
|
135
|
+
min?: number;
|
|
136
|
+
max?: number;
|
|
137
|
+
step?: number;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
export type ForestServerActionFieldColorPickerOptions = {
|
|
141
|
+
name: 'color editor';
|
|
142
|
+
parameters: {
|
|
143
|
+
placeholder?: string | null;
|
|
144
|
+
enableOpacity?: boolean;
|
|
145
|
+
quickPalette?: string[];
|
|
146
|
+
};
|
|
147
|
+
};
|
|
129
148
|
export type ForestServerActionFieldDropdown = ForestServerActionFieldCommon<'String' | 'Dateonly' | 'Date' | 'Timeonly', ForestServerActionFieldDropdownOptions<string>> | ForestServerActionFieldCommon<['String'], ForestServerActionFieldDropdownOptions<string[]>> | ForestServerActionFieldCommon<'Number', ForestServerActionFieldDropdownOptions<number>>;
|
|
130
149
|
export type ForestServerActionFieldRadioGroup = ForestServerActionFieldCommon<'String' | 'Dateonly' | 'Date' | 'Timeonly', ForestServerActionFieldRadioButtonOptions<string>> | ForestServerActionFieldCommon<'Number', ForestServerActionFieldRadioButtonOptions<number>>;
|
|
131
150
|
export type ForestServerActionFieldCheckboxGroup = ForestServerActionFieldCommon<['String'], ForestServerActionFieldCheckboxGroupOptions<string>> | ForestServerActionFieldCommon<['Number'], ForestServerActionFieldCheckboxGroupOptions<number>>;
|
|
132
|
-
export type ForestServerActionField = ForestServerActionFieldDropdown | ForestServerActionFieldRadioGroup | ForestServerActionFieldCheckboxGroup | ForestServerActionFieldBase | ForestServerActionFieldCommon<'Boolean', ForestServerActionFieldCheckboxOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldTextInputOptions> | ForestServerActionFieldCommon<['String'], ForestServerActionFieldTextInputListOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldTextAreaOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldRichTextOptions> | ForestServerActionFieldCommon<'Number', ForestServerActionFieldNumberInputOptions>;
|
|
151
|
+
export type ForestServerActionField = ForestServerActionFieldDropdown | ForestServerActionFieldRadioGroup | ForestServerActionFieldCheckboxGroup | ForestServerActionFieldBase | ForestServerActionFieldCommon<'Boolean', ForestServerActionFieldCheckboxOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldTextInputOptions> | ForestServerActionFieldCommon<['String'], ForestServerActionFieldTextInputListOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldTextAreaOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldRichTextOptions> | ForestServerActionFieldCommon<'Number', ForestServerActionFieldNumberInputOptions> | ForestServerActionFieldCommon<['Number'], ForestServerActionFieldNumberInputListOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldColorPickerOptions>;
|
|
133
152
|
export type ForestServerField = Partial<{
|
|
134
153
|
field: string;
|
|
135
154
|
type: ForestServerColumnType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forestadmin/forestadmin-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test": "jest"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@forestadmin/datasource-toolkit": "1.
|
|
34
|
+
"@forestadmin/datasource-toolkit": "1.20.0",
|
|
35
35
|
"@types/json-api-serializer": "^2.6.3",
|
|
36
36
|
"@types/jsonwebtoken": "^9.0.1",
|
|
37
37
|
"@types/superagent": "^4.1.16"
|