@forestadmin/forestadmin-client
Advanced tools
Comparing version 1.11.0 to 1.12.0
@@ -71,7 +71,5 @@ import type { PrimitiveTypes } from '@forestadmin/datasource-toolkit'; | ||
}; | ||
export type ForestServerActionFieldDropdownOptions<TValue = string> = { | ||
name: 'dropdown'; | ||
type ForestServerActionFieldLimitedValueOptions<TName extends string, TValue = string, TParameters = Record<string, never>> = { | ||
name: TName; | ||
parameters: { | ||
placeholder?: string | null; | ||
isSearchable?: boolean; | ||
static: { | ||
@@ -83,4 +81,9 @@ options: Array<{ | ||
}; | ||
}; | ||
} & TParameters; | ||
}; | ||
export type ForestServerActionFieldDropdownOptions<TValue = string> = ForestServerActionFieldLimitedValueOptions<'dropdown', TValue, { | ||
placeholder?: string | null; | ||
isSearchable?: boolean; | ||
}>; | ||
export type ForestServerActionFieldRadioButtonOptions<TValue = string> = ForestServerActionFieldLimitedValueOptions<'radio button', TValue>; | ||
export type ForestServerActionFieldCheckboxOptions = { | ||
@@ -119,3 +122,4 @@ name: 'boolean editor'; | ||
export type ForestServerActionFieldDropdown = ForestServerActionFieldCommon<'String' | 'Dateonly' | 'Date' | 'Timeonly', ForestServerActionFieldDropdownOptions<string>> | ForestServerActionFieldCommon<['String'], ForestServerActionFieldDropdownOptions<string[]>> | ForestServerActionFieldCommon<'Number', ForestServerActionFieldDropdownOptions<number>>; | ||
export type ForestServerActionField = ForestServerActionFieldDropdown | ForestServerActionFieldBase | ForestServerActionFieldCommon<'Boolean', ForestServerActionFieldCheckboxOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldTextInputOptions> | ForestServerActionFieldCommon<['String'], ForestServerActionFieldTextInputListOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldTextAreaOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldRichTextOptions>; | ||
export type ForestServerActionFieldRadioButton = ForestServerActionFieldCommon<'String' | 'Dateonly' | 'Date' | 'Timeonly', ForestServerActionFieldRadioButtonOptions<string>> | ForestServerActionFieldCommon<'Number', ForestServerActionFieldRadioButtonOptions<number>>; | ||
export type ForestServerActionField = ForestServerActionFieldDropdown | ForestServerActionFieldRadioButton | ForestServerActionFieldBase | ForestServerActionFieldCommon<'Boolean', ForestServerActionFieldCheckboxOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldTextInputOptions> | ForestServerActionFieldCommon<['String'], ForestServerActionFieldTextInputListOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldTextAreaOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldRichTextOptions>; | ||
export type ForestServerField = Partial<{ | ||
@@ -147,2 +151,3 @@ field: string; | ||
export type ValidationType = 'contains' | 'is after' | 'is before' | 'is greater than' | 'is less than' | 'is like' | 'is longer than' | 'is present' | 'is shorter than'; | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@forestadmin/forestadmin-client", | ||
"version": "1.11.0", | ||
"version": "1.12.0", | ||
"main": "dist/index.js", | ||
@@ -34,3 +34,3 @@ "license": "GPL-3.0", | ||
"devDependencies": { | ||
"@forestadmin/datasource-toolkit": "1.15.0", | ||
"@forestadmin/datasource-toolkit": "1.16.0", | ||
"@types/json-api-serializer": "^2.6.3", | ||
@@ -37,0 +37,0 @@ "@types/jsonwebtoken": "^9.0.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
208594
2412