@forestadmin/datasource-toolkit
Advanced tools
Comparing version 1.36.0 to 1.37.0
@@ -21,3 +21,3 @@ /// <reference types="node" /> | ||
export type ActionFormElementBase = { | ||
type: ActionFieldType | LayoutElementType; | ||
type: ActionFieldType | 'Layout'; | ||
}; | ||
@@ -35,3 +35,2 @@ export interface ActionFieldBase extends ActionFormElementBase { | ||
type ActionFieldType = 'Boolean' | 'Collection' | 'Date' | 'Dateonly' | 'Time' | 'Enum' | 'File' | 'Json' | 'Number' | 'String' | 'EnumList' | 'FileList' | 'NumberList' | 'StringList'; | ||
export type LayoutElementType = 'Layout'; | ||
interface ActionFieldLimitedValue<TWidget extends ActionFieldWidget, TType extends ActionFieldType = ActionFieldType, TValue = unknown> extends ActionFieldBase { | ||
@@ -170,8 +169,17 @@ widget: TWidget; | ||
} | ||
interface LayoutElementInput extends ActionLayoutElementBase { | ||
interface LayoutElementRow extends ActionLayoutElementBase { | ||
component: 'Row'; | ||
fields: LayoutElementInput[]; | ||
} | ||
interface LayoutElementRowRecursive extends ActionLayoutElementBase { | ||
component: 'Row'; | ||
fields: ActionField[]; | ||
} | ||
export interface LayoutElementInput extends ActionLayoutElementBase { | ||
component: 'Input'; | ||
fieldId: string; | ||
} | ||
export type ActionLayoutElement = LayoutElementSeparator | LayoutElementHtmlBlock | LayoutElementInput; | ||
export type ActionFormElement = ActionLayoutElement | ActionField; | ||
export type ActionLayoutElement = LayoutElementSeparator | LayoutElementHtmlBlock | LayoutElementRow | LayoutElementInput; | ||
export type ActionLayoutElementRecursive = LayoutElementSeparator | LayoutElementHtmlBlock | LayoutElementRowRecursive | LayoutElementInput; | ||
export type ActionFormElement = ActionLayoutElementRecursive | ActionField; | ||
export type ActionForm = { | ||
@@ -178,0 +186,0 @@ fields: ActionField[]; |
{ | ||
"name": "@forestadmin/datasource-toolkit", | ||
"version": "1.36.0", | ||
"version": "1.37.0", | ||
"main": "dist/src/index.js", | ||
@@ -5,0 +5,0 @@ "license": "GPL-3.0", |
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
273693
3034