@forestadmin/datasource-toolkit
Advanced tools
Comparing version 1.20.1 to 1.21.0
@@ -105,6 +105,16 @@ /// <reference types="node" /> | ||
}; | ||
export type ActionFieldCurrencyInput = ActionFieldBase & { | ||
type: 'Number'; | ||
widget: 'CurrencyInput'; | ||
placeholder?: string; | ||
min?: number; | ||
max?: number; | ||
step?: number; | ||
currency: string; | ||
base?: 'Unit' | 'Cent'; | ||
}; | ||
export type ActionFieldDropdownAll = ActionFieldDropdown<'Date' | 'Dateonly' | 'Number' | 'String' | 'StringList', string> | ActionFieldDropdown<'Number' | 'NumberList', number>; | ||
export type ActionFieldRadioGroupButtonAll = ActionFieldLimitedValue<'RadioGroup', 'Date' | 'Dateonly' | 'Number' | 'String', string> | ActionFieldLimitedValue<'RadioGroup', 'Number', number>; | ||
export type ActionFieldCheckboxGroupAll = ActionFieldLimitedValue<'CheckboxGroup', 'StringList', string> | ActionFieldLimitedValue<'CheckboxGroup', 'NumberList', number>; | ||
export type ActionField = StrictUnion<ActionFieldBase | ActionFieldEnum | ActionFieldEnumList | ActionFieldCollection | ActionFieldDropdownAll | ActionFieldRadioGroupButtonAll | ActionFieldCheckboxGroupAll | ActionFieldCheckbox | ActionFieldTextInput | ActionFieldTextInputList | ActionFieldTextArea | ActionFieldRichText | ActionFieldNumberInput | ActionFieldColorPicker | ActionFieldNumberInputList>; | ||
export type ActionField = StrictUnion<ActionFieldBase | ActionFieldEnum | ActionFieldEnumList | ActionFieldCollection | ActionFieldDropdownAll | ActionFieldRadioGroupButtonAll | ActionFieldCheckboxGroupAll | ActionFieldCheckbox | ActionFieldTextInput | ActionFieldTextInputList | ActionFieldTextArea | ActionFieldRichText | ActionFieldNumberInput | ActionFieldColorPicker | ActionFieldNumberInputList | ActionFieldCurrencyInput>; | ||
export type ActionFieldWidget = 'Dropdown' | 'RadioGroup' | 'CheckboxGroup' | 'Checkbox' | 'TextInput' | 'TextInputList' | 'TextArea' | 'RichText' | 'NumberInput' | 'NumberInputList' | 'ColorPicker'; | ||
@@ -111,0 +121,0 @@ export type SuccessResult = { |
{ | ||
"name": "@forestadmin/datasource-toolkit", | ||
"version": "1.20.1", | ||
"version": "1.21.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
261051
2806