@archbase/components 4.0.35 → 4.0.36
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/archbase-components-4.0.36.tgz +0 -0
- package/dist/editors/ArchbaseAsyncSelect.d.ts +3 -1
- package/dist/editors/ArchbaseSelect.d.ts +3 -1
- package/dist/index.js +3145 -3125
- package/package.json +4 -4
- package/src/editors/ArchbaseAsyncSelect.tsx +9 -2
- package/src/editors/ArchbaseSelect.tsx +20 -3
- package/dist/archbase-components-4.0.35.tgz +0 -0
|
Binary file
|
|
@@ -93,6 +93,8 @@ export interface ArchbaseAsyncSelectProps<T, ID, O> {
|
|
|
93
93
|
converter?: (value: O) => any;
|
|
94
94
|
/** Function que busca o valor original antes de converter pelo valor de retorno do converter */
|
|
95
95
|
getConvertedOption?: (value: any) => Promise<O>;
|
|
96
|
+
/** Função que determina se uma opção individual está desabilitada */
|
|
97
|
+
isOptionDisabled?: (option: O) => boolean;
|
|
96
98
|
}
|
|
97
|
-
export declare function ArchbaseAsyncSelect<T, ID, O>({ allowDeselect, clearable, dataSource, dataField, disabled, debounceTime, minCharsToSearch, readOnly, placeholder, initialOptions, searchable, label, description, error, icon, iconWidth, required, getOptionLabel, getOptionValue, getOptionImage, getOptions, onFocusEnter, onFocusExit, onSelectValue, value, defaultValue, filter, size, style, width, initiallyOpened, itemComponent: ItemComponent, onDropdownOpen, onDropdownClose, limit, nothingFound, zIndex, dropdownPosition, onErrorLoadOptions, innerRef, onSearchChange, converter, getConvertedOption }: ArchbaseAsyncSelectProps<T, ID, O>): import("react/jsx-runtime").JSX.Element;
|
|
99
|
+
export declare function ArchbaseAsyncSelect<T, ID, O>({ allowDeselect, clearable, dataSource, dataField, disabled, debounceTime, minCharsToSearch, readOnly, placeholder, initialOptions, searchable, label, description, error, icon, iconWidth, required, getOptionLabel, getOptionValue, getOptionImage, getOptions, onFocusEnter, onFocusExit, onSelectValue, value, defaultValue, filter, size, style, width, initiallyOpened, itemComponent: ItemComponent, onDropdownOpen, onDropdownClose, limit, nothingFound, zIndex, dropdownPosition, onErrorLoadOptions, innerRef, onSearchChange, converter, getConvertedOption, isOptionDisabled, }: ArchbaseAsyncSelectProps<T, ID, O>): import("react/jsx-runtime").JSX.Element;
|
|
98
100
|
export declare const CustomSelectScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -100,8 +100,10 @@ export interface ArchbaseSelectProps<T, ID, O> {
|
|
|
100
100
|
* Por exemplo: (id) => fetchObjectById(id) para converter ID de volta ao objeto
|
|
101
101
|
*/
|
|
102
102
|
getConvertedOption?: (value: any) => Promise<O>;
|
|
103
|
+
/** Função que determina se uma opção individual está desabilitada */
|
|
104
|
+
isOptionDisabled?: (option: O) => boolean;
|
|
103
105
|
}
|
|
104
|
-
export declare function ArchbaseSelect<T, ID, O>({ allowDeselect, clearable, dataSource, dataField, disabled, debounceTime, readOnly, placeholder, initialOptions, searchable, label, description, error, icon, iconWidth, required, width, getOptionLabel, getOptionValue, optionsLabelField, onFocusEnter, onFocusExit, onSelectValue, onClick, value, defaultValue, filter, size, initiallyOpened, itemComponent: ItemComponent, dropdownOpened, onDropdownOpen, onDropdownClose, limit, nothingFound, zIndex, style, dropdownPosition, children, innerRef, options, customGetDataSourceFieldValue, customSetDataSourceFieldValue, classNames, styles, converter, getConvertedOption }: ArchbaseSelectProps<T, ID, O>): import("react/jsx-runtime").JSX.Element;
|
|
106
|
+
export declare function ArchbaseSelect<T, ID, O>({ allowDeselect, clearable, dataSource, dataField, disabled, debounceTime, readOnly, placeholder, initialOptions, searchable, label, description, error, icon, iconWidth, required, width, getOptionLabel, getOptionValue, optionsLabelField, onFocusEnter, onFocusExit, onSelectValue, onClick, value, defaultValue, filter, size, initiallyOpened, itemComponent: ItemComponent, dropdownOpened, onDropdownOpen, onDropdownClose, limit, nothingFound, zIndex, style, dropdownPosition, children, innerRef, options, customGetDataSourceFieldValue, customSetDataSourceFieldValue, classNames, styles, converter, getConvertedOption, isOptionDisabled, }: ArchbaseSelectProps<T, ID, O>): import("react/jsx-runtime").JSX.Element;
|
|
105
107
|
export declare namespace ArchbaseSelect {
|
|
106
108
|
var displayName: string;
|
|
107
109
|
}
|