sevago-library 1.5.4 → 1.5.6
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/CHANGELOG.md +12 -0
- package/dist/index.cjs.js +55 -55
- package/dist/index.esm.js +1224 -1197
- package/dist/src/components/elements/image/finish-good-image-gallery/finish-good-image-gallery.interface.d.ts +11 -5
- package/dist/src/components/elements/text-field/text-field-search/text-field-search.element.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ImageGalleryElementProps, ImageGalleryItem } from '../image-gallery';
|
|
3
|
+
export interface FinishGoodImageResult {
|
|
4
|
+
itemNoCode: string;
|
|
5
|
+
hasImage: boolean;
|
|
6
|
+
imageUrl?: string;
|
|
7
|
+
hasRenderImage: boolean;
|
|
8
|
+
renderImageUrl?: string;
|
|
9
|
+
}
|
|
10
|
+
export type FinishGoodImageGalleryImages = ImageGalleryItem[] | FinishGoodImageResult;
|
|
3
11
|
export interface FinishGoodImageGalleryElementProps extends Omit<ImageGalleryElementProps, 'images'> {
|
|
4
|
-
|
|
5
|
-
images?: ImageGalleryItem[];
|
|
6
|
-
defaultItemNoCode?: string;
|
|
12
|
+
images?: FinishGoodImageGalleryImages;
|
|
7
13
|
isLoading?: boolean;
|
|
8
|
-
showSearch?: boolean;
|
|
9
14
|
searchLabel?: string;
|
|
10
15
|
searchPlaceholder?: string;
|
|
11
16
|
searchName?: string;
|
|
12
17
|
searchContent?: ReactNode;
|
|
18
|
+
searchDebounceMs?: number;
|
|
13
19
|
loadingContent?: ReactNode;
|
|
20
|
+
textEmpty?: string;
|
|
14
21
|
onSearch?: (itemNoCode: string) => void | Promise<void>;
|
|
15
|
-
onItemNoCodeChange?: (itemNoCode: string) => void;
|
|
16
22
|
}
|
package/dist/src/components/elements/text-field/text-field-search/text-field-search.element.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export interface TextFieldSearchElementProps extends BaseTextFieldProps {
|
|
|
5
5
|
label?: string;
|
|
6
6
|
iconLabel?: string;
|
|
7
7
|
searchIcon?: string;
|
|
8
|
+
debounceMs?: number;
|
|
8
9
|
inputRef?: React.Ref<HTMLInputElement>;
|
|
9
10
|
}
|
|
10
11
|
export declare const TextFieldSearchElement: React.FC<TextFieldSearchElementProps>;
|