@archbase/components 4.0.2 → 4.0.4
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.4.tgz +0 -0
- package/dist/editors/ArchbaseImageEdit.d.ts +9 -1
- package/dist/editors/index.d.ts +0 -2
- package/dist/image/editor/index.d.ts +3 -1
- package/dist/image/editor/models/index.models.d.ts +6 -0
- package/dist/index.js +7656 -7705
- package/package.json +5 -6
- package/src/editors/ArchbaseImageEdit.tsx +34 -5
- package/src/editors/index.tsx +0 -3
- package/src/image/editor/index.tsx +180 -15
- package/src/image/editor/models/index.models.ts +6 -0
- package/dist/editors/ArchbasePhoneInput.d.ts +0 -52
- package/src/editors/ArchbasePhoneInput.tsx +0 -355
|
Binary file
|
|
@@ -46,5 +46,13 @@ export interface ArchbaseImageEditProps<T, ID> extends ImageProps {
|
|
|
46
46
|
innerRef?: React.RefObject<HTMLInputElement> | undefined;
|
|
47
47
|
/** Cor de fundo da imagem */
|
|
48
48
|
imageBackgroundColor?: string;
|
|
49
|
+
/** Callback quando o estado de processamento muda (útil para desabilitar botões enquanto processa) */
|
|
50
|
+
onProcessingChange?: (isProcessing: boolean) => void;
|
|
51
|
+
/** Largura máxima da imagem em pixels (redimensiona automaticamente se exceder) */
|
|
52
|
+
maxWidth?: number;
|
|
53
|
+
/** Altura máxima da imagem em pixels (redimensiona automaticamente se exceder) */
|
|
54
|
+
maxHeight?: number;
|
|
55
|
+
/** Tamanho máximo da imagem em KB (recomprime se exceder) */
|
|
56
|
+
maxSizeKb?: number;
|
|
49
57
|
}
|
|
50
|
-
export declare function ArchbaseImageEdit<T, ID>({ width, height, dataSource, dataField, disabled, readOnly, required, label, description, error, src, radius, aspectRatio, objectFit, compressInitial, onChangeImage, disabledBase64Convertion, innerRef, variant, imageBackgroundColor, ...otherProps }: ArchbaseImageEditProps<T, ID>): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
export declare function ArchbaseImageEdit<T, ID>({ width, height, dataSource, dataField, disabled, readOnly, required, label, description, error, src, radius, aspectRatio, objectFit, compressInitial, onChangeImage, disabledBase64Convertion, innerRef, variant, imageBackgroundColor, onProcessingChange, maxWidth, maxHeight, maxSizeKb, ...otherProps }: ArchbaseImageEditProps<T, ID>): import("react/jsx-runtime").JSX.Element;
|
package/dist/editors/index.d.ts
CHANGED
|
@@ -83,8 +83,6 @@ export { ArchbaseAvatarEdit } from './ArchbaseAvatarEdit';
|
|
|
83
83
|
export type { ArchbaseAvatarEditProps } from './ArchbaseAvatarEdit';
|
|
84
84
|
export { ArchbaseTagInput } from './ArchbaseTagInput';
|
|
85
85
|
export type { ArchbaseTagInputProps } from './ArchbaseTagInput';
|
|
86
|
-
export { ArchbasePhoneInput } from './ArchbasePhoneInput';
|
|
87
|
-
export type { ArchbasePhoneInputProps } from './ArchbasePhoneInput';
|
|
88
86
|
export { ArchbaseMultiEmail } from './ArchbaseMultiEmail';
|
|
89
87
|
export type { ArchbaseMultiEmailProps } from './ArchbaseMultiEmail';
|
|
90
88
|
export { ArchbaseMentionInput } from './ArchbaseMentionInput';
|
|
@@ -20,6 +20,8 @@ export interface ArchbaseImagePickerEditorProps {
|
|
|
20
20
|
imageChanged?: (newDataUri: string | undefined) => void;
|
|
21
21
|
/** Variante dos botões de ação */
|
|
22
22
|
variant?: ActionIconVariant;
|
|
23
|
+
/** Callback quando o estado de processamento muda (útil para desabilitar botões enquanto processa) */
|
|
24
|
+
onProcessingChange?: (isProcessing: boolean) => void;
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* ArchbaseImagePickerEditor - Componente de seleção e edição de imagens
|
|
@@ -47,4 +49,4 @@ export interface ArchbaseImagePickerEditorProps {
|
|
|
47
49
|
* />
|
|
48
50
|
* ```
|
|
49
51
|
*/
|
|
50
|
-
export declare const ArchbaseImagePickerEditor: React.MemoExoticComponent<({ config, imageSrcProp, color, imageChanged, variant, }: ArchbaseImagePickerEditorProps) => import("react/jsx-runtime").JSX.Element>;
|
|
52
|
+
export declare const ArchbaseImagePickerEditor: React.MemoExoticComponent<({ config, imageSrcProp, color, imageChanged, variant, onProcessingChange, }: ArchbaseImagePickerEditorProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -12,6 +12,12 @@ export interface ArchbaseImagePickerConf {
|
|
|
12
12
|
showImageSize?: boolean;
|
|
13
13
|
onChangeImage?: (image: string | undefined) => void;
|
|
14
14
|
imageBackgroundColor?: string;
|
|
15
|
+
/** Largura máxima da imagem em pixels (redimensiona automaticamente se exceder) */
|
|
16
|
+
maxWidth?: number;
|
|
17
|
+
/** Altura máxima da imagem em pixels (redimensiona automaticamente se exceder) */
|
|
18
|
+
maxHeight?: number;
|
|
19
|
+
/** Tamanho máximo da imagem em KB (recomprime se exceder) */
|
|
20
|
+
maxSizeKb?: number;
|
|
15
21
|
}
|
|
16
22
|
export interface IState {
|
|
17
23
|
quality: number;
|