sevago-library 1.5.0 → 1.5.2
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 +78 -78
- package/dist/index.esm.js +7245 -7137
- package/dist/src/common/config/axios.config.d.ts +19 -0
- package/dist/src/common/config/index.d.ts +1 -0
- package/dist/src/common/index.d.ts +1 -0
- package/dist/src/components/elements/avatar/avatar-online-status/avatar-online-status.element.d.ts +1 -1
- package/dist/src/components/elements/image/finish-good-image-gallery/finish-good-image-gallery.api.d.ts +3 -0
- package/dist/src/components/elements/image/finish-good-image-gallery/finish-good-image-gallery.config.d.ts +4 -0
- package/dist/src/components/elements/image/finish-good-image-gallery/finish-good-image-gallery.element.d.ts +3 -0
- package/dist/src/components/elements/image/finish-good-image-gallery/finish-good-image-gallery.element.stories.d.ts +11 -0
- package/dist/src/components/elements/image/finish-good-image-gallery/finish-good-image-gallery.interface.d.ts +20 -0
- package/dist/src/components/elements/image/finish-good-image-gallery/index.d.ts +3 -0
- package/dist/src/components/elements/image/index.d.ts +1 -0
- package/dist/src/components/elements/table/table.constant.d.ts +1 -1
- package/dist/src/components/styles/input.style.d.ts +1 -1
- package/dist/src/components/styles/typography.style.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { Environment } from '../enums';
|
|
3
|
+
export interface SevagoAxiosClientConfig {
|
|
4
|
+
baseUrl?: string;
|
|
5
|
+
env?: Record<string, string | undefined>;
|
|
6
|
+
envKeys?: string[];
|
|
7
|
+
environment?: Environment;
|
|
8
|
+
getAccessToken?: () => Promise<string | undefined> | string | undefined;
|
|
9
|
+
headers?: Record<string, string>;
|
|
10
|
+
axiosConfig?: AxiosRequestConfig;
|
|
11
|
+
}
|
|
12
|
+
export interface SevagoAxiosConfig {
|
|
13
|
+
productManagement?: SevagoAxiosClientConfig;
|
|
14
|
+
}
|
|
15
|
+
export declare const configureSevagoAxios: (config: SevagoAxiosConfig) => void;
|
|
16
|
+
export declare const getSevagoAxiosConfig: () => SevagoAxiosConfig;
|
|
17
|
+
export declare const getProductManagementApiBaseUrl: (config?: SevagoAxiosClientConfig) => string;
|
|
18
|
+
export declare const createSevagoAxiosClient: (baseUrl: string, config?: SevagoAxiosClientConfig) => AxiosInstance;
|
|
19
|
+
export declare const createProductManagementAxiosClient: (config?: SevagoAxiosClientConfig) => AxiosInstance;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './axios.config';
|
package/dist/src/components/elements/avatar/avatar-online-status/avatar-online-status.element.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface AvatarOnlineStatusElementProps {
|
|
|
6
6
|
online?: boolean;
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
}
|
|
9
|
-
export declare const OnlineBadge: import('@emotion/styled').StyledComponent<import('@mui/material').BadgeOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "
|
|
9
|
+
export declare const OnlineBadge: import('@emotion/styled').StyledComponent<import('@mui/material').BadgeOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style" | "color" | "components" | "className" | "classes" | "children" | "sx" | "variant" | "slots" | "slotProps" | "componentsProps" | "max" | "invisible" | "anchorOrigin" | "badgeContent" | "overlap" | "showZero"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
10
10
|
component?: React.ElementType;
|
|
11
11
|
}, {}, {}>;
|
|
12
12
|
export declare const AvatarOnlineStatusElement: React.FC<AvatarOnlineStatusElementProps>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ImageGalleryItem } from '../image-gallery';
|
|
2
|
+
import { FinishGoodImageGalleryApiConfig } from './finish-good-image-gallery.interface';
|
|
3
|
+
export declare const getFinishGoodImagesByCode: (itemNoCode: string, apiConfig?: FinishGoodImageGalleryApiConfig) => Promise<ImageGalleryItem[]>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FinishGoodImageGalleryApiConfig } from './finish-good-image-gallery.interface';
|
|
2
|
+
export declare const configureFinishGoodImageGalleryApi: (config: FinishGoodImageGalleryApiConfig) => void;
|
|
3
|
+
export declare const clearFinishGoodImageGalleryApiConfig: () => void;
|
|
4
|
+
export declare const getFinishGoodImageGalleryApiConfig: () => FinishGoodImageGalleryApiConfig | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Environment } from '../../../../common';
|
|
3
|
+
import { FinishGoodImageGalleryElementProps } from './finish-good-image-gallery.interface';
|
|
4
|
+
interface FinishGoodImageGalleryStoryArgs extends FinishGoodImageGalleryElementProps {
|
|
5
|
+
baseUrl?: string;
|
|
6
|
+
environment?: Environment;
|
|
7
|
+
}
|
|
8
|
+
declare const meta: Meta<FinishGoodImageGalleryStoryArgs>;
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<FinishGoodImageGalleryStoryArgs>;
|
|
11
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SevagoAxiosClientConfig } from '../../../../common';
|
|
3
|
+
import { ImageGalleryElementProps, ImageGalleryItem } from '../image-gallery';
|
|
4
|
+
export interface FinishGoodImageGalleryApiResponse<T> {
|
|
5
|
+
data?: T;
|
|
6
|
+
}
|
|
7
|
+
export interface FinishGoodImageGalleryApiConfig extends SevagoAxiosClientConfig {
|
|
8
|
+
request?: (itemNoCode: string) => Promise<FinishGoodImageGalleryApiResponse<ImageGalleryItem[]> | ImageGalleryItem[]>;
|
|
9
|
+
onError?: (error: unknown, itemNoCode: string) => void;
|
|
10
|
+
}
|
|
11
|
+
export interface FinishGoodImageGalleryElementProps extends Omit<ImageGalleryElementProps, 'images'> {
|
|
12
|
+
itemNoCode?: string;
|
|
13
|
+
images?: ImageGalleryItem[];
|
|
14
|
+
enabled?: boolean;
|
|
15
|
+
apiConfig?: FinishGoodImageGalleryApiConfig;
|
|
16
|
+
loadingContent?: ReactNode;
|
|
17
|
+
errorContent?: ReactNode;
|
|
18
|
+
onImagesLoad?: (images: ImageGalleryItem[]) => void;
|
|
19
|
+
onImagesLoadError?: (error: unknown) => void;
|
|
20
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Palette, SxProps, Theme } from '@mui/material';
|
|
2
2
|
import { Column } from './table.interface';
|
|
3
3
|
export declare const BORDER_TABLE: string;
|
|
4
|
-
export declare const DISABLED_DEFAULT: Record<"
|
|
4
|
+
export declare const DISABLED_DEFAULT: Record<"DELETE" | "DISABLED_GET_ROW_MENU" | "HISTORY_GET_ROW_MENU" | "INFO" | "COPY" | "UPDATE" | "SELECT" | "COLLAPSE" | "DISABLED_ALL_ACTIONS" | "DISABLED_ROW" | "DISABLED_CHECKBOX", boolean>;
|
|
5
5
|
export declare const getSxArray: (sx?: SxProps<Theme>) => SxProps<Theme>[];
|
|
6
6
|
export declare const mergeSxProps: (...sxList: (SxProps<Theme> | undefined)[]) => SxProps<Theme>;
|
|
7
7
|
export declare const getStyleCell: (column: Column<any>, palette: Palette, disableRow?: boolean) => SxProps<Theme>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const InputLabelCustom: import('@emotion/styled').StyledComponent<import('@mui/material').InputLabelOwnProps & Pick<import('@mui/material').FormLabelOwnProps, "color" | "filled"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "error" | "
|
|
1
|
+
export declare const InputLabelCustom: import('@emotion/styled').StyledComponent<import('@mui/material').InputLabelOwnProps & Pick<import('@mui/material').FormLabelOwnProps, "color" | "filled"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "error" | "style" | "size" | "color" | "margin" | "className" | "classes" | "children" | "disabled" | "sx" | "variant" | "filled" | "focused" | "required" | "disableAnimation" | "shrink"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const TypographyFilter: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "
|
|
1
|
+
export declare const TypographyFilter: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "p" | "style" | "left" | "right" | "color" | "zIndex" | "typography" | "fontFamily" | "fontSize" | "fontWeight" | "textTransform" | "border" | "boxShadow" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "rowGap" | "textAlign" | "textOverflow" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "className" | "classes" | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|