@archbase/components 4.0.35 → 4.0.37

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.
@@ -96,6 +96,10 @@ export interface ArchbaseDataGridAGColumnProps<T = any> {
96
96
  hideWhenNoPermission?: boolean;
97
97
  /** Auto-register column permission */
98
98
  autoRegisterPermission?: boolean;
99
+ /** Função para formatar o valor da célula para exportação (CSV/Excel). Útil quando render usa componentes React (ex: badges, arrays de objetos). */
100
+ exportValue?: (row: T) => string;
101
+ /** Se false, a coluna não aparece nas opções de exportação/impressão (ex: colunas de imagem). Padrão: true. */
102
+ exportable?: boolean;
99
103
  }
100
104
  /**
101
105
  * Default column props
@@ -328,4 +332,6 @@ export declare function GridToolBarActions(props: GridToolBarActionsProps): impo
328
332
  export interface ExtendedColDef<TData = any, TValue = any> extends ColDef<TData, TValue> {
329
333
  enableGlobalFilter?: boolean;
330
334
  dataType?: FieldDataType;
335
+ exportValue?: (row: TData) => string;
336
+ exportable?: boolean;
331
337
  }
@@ -276,4 +276,6 @@ export interface ArchbaseDataGridColumnProps<T = any> {
276
276
  hideWhenNoPermission?: boolean;
277
277
  /** Auto-registra a permissão da coluna (padrão: true) */
278
278
  autoRegisterPermission?: boolean;
279
+ /** Função para formatar o valor da célula para exportação (CSV/Excel). Útil quando render usa componentes React (ex: badges, arrays de objetos). */
280
+ exportValue?: (row: T) => string;
279
281
  }
@@ -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>>;
@@ -44,6 +44,11 @@ export interface ArchbaseAvatarEditProps<T, ID> {
44
44
  maxSizeKB?: number;
45
45
  /** Qualidade da compressão da imagem (0 a 1), sendo 1 melhor qualidade */
46
46
  imageQuality?: number;
47
+ /** Maior dimensão (px) da imagem final: o recorte é redimensionado automaticamente
48
+ * para caber neste limite antes da compressão, independente do tamanho da foto
49
+ * enviada pelo usuário. 0 mantém a resolução original do recorte. */
50
+ maxOutputSizePx?: number;
47
51
  }
48
52
  export declare function ArchbaseAvatarEdit<T, ID>({ width, height, dataSource, dataField, disabled, readOnly, required, label, description, error, src, radius, initialZoom, onChangeImage, disabledBase64Convertion, innerRef, variant, hoverBackgroundColor, maxSizeKB, // 0 significa sem limite
49
- imageQuality, ...otherProps }: ArchbaseAvatarEditProps<T, ID>): import("react/jsx-runtime").JSX.Element;
53
+ imageQuality, maxOutputSizePx, // avatar não precisa de resolução maior que isso
54
+ ...otherProps }: ArchbaseAvatarEditProps<T, ID>): import("react/jsx-runtime").JSX.Element;
@@ -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
  }