sevago-library 1.0.13 → 1.0.17

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.
@@ -16,7 +16,7 @@ export declare const SSO: {
16
16
  production_vps: string;
17
17
  };
18
18
  export declare const APP_OBJ: {
19
- SYSTEM: {
19
+ MASTER_DATA: {
20
20
  path: {
21
21
  local: string;
22
22
  develop: string;
@@ -276,19 +276,6 @@ export declare const APP_OBJ: {
276
276
  group: AppGroup;
277
277
  color: string;
278
278
  };
279
- TRACKING_PRODUCTION_CLIENT: {
280
- path: {
281
- local: string;
282
- develop: string;
283
- staging: string;
284
- production: string;
285
- production_vps: string;
286
- };
287
- icon: string;
288
- content: string;
289
- group: AppGroup;
290
- color: string;
291
- };
292
279
  PURCHASE: {
293
280
  path: {
294
281
  local: string;
@@ -10,7 +10,6 @@ export declare const ICONS: {
10
10
  iconPayroll: string;
11
11
  iconOrg: string;
12
12
  iconTimekeeping: string;
13
- iconPurchase: string;
14
13
  iconProject: string;
15
14
  iconRequest: string;
16
15
  iconMeal: string;
@@ -18,8 +17,7 @@ export declare const ICONS: {
18
17
  iconTraining: string;
19
18
  iconForm: string;
20
19
  iconInside: string;
21
- iconSystem: string;
22
- iconTrackingProductionClient: string;
20
+ iconMasterData: string;
23
21
  iconDefault: string;
24
22
  iconApps: string;
25
23
  iconMaterialControl: string;
@@ -8,3 +8,5 @@ export declare function exportArrayObjectToExcel<T extends object>(array: T[], f
8
8
  export declare const downloadFileFromBlob: (response: any, fileName?: string) => void;
9
9
  export declare const getFileExtension: (file: FileWithPreviewOrUrl) => string;
10
10
  export declare const isImageFile: (file: FileWithPreviewOrUrl) => boolean;
11
+ export declare function getFileSource(file: FileWithPreviewOrUrl): string | undefined;
12
+ export declare const getDocumentIcon: (file: FileWithPreviewOrUrl) => FileWithPreviewOrUrl;
@@ -1,6 +1,5 @@
1
1
  import { SxProps, Theme } from '@mui/material';
2
2
  import { Environment, Mode } from '../enums';
3
- import { FileWithPreviewOrUrl } from '../interfaces';
4
3
  export declare const getTheme: (mode?: Mode) => Theme;
5
4
  export declare const calculatePageAndIndex: (urlIndex: number, urlPage: number, urlTake: number, currentTake?: number) => {
6
5
  page: number;
@@ -12,4 +11,3 @@ export declare const getCurrentEnvironment: () => Environment;
12
11
  export declare const getErrorMessage: (e: unknown) => string;
13
12
  export declare const getAppBlackList: (user: any, env: Environment, appBlackList: Record<string, string[]>) => string[];
14
13
  export declare const lightenColor: (hex?: string, percent?: number) => string;
15
- export declare const getDocumentIcon: (file: FileWithPreviewOrUrl) => FileWithPreviewOrUrl;
@@ -1,15 +1,17 @@
1
- export * from './text-field-date/text-field-date.element';
2
1
  export * from './text-field-date-range/text-field-date-range.element';
3
2
  export * from './text-field-date-time/text-field-date-time.element';
3
+ export * from './text-field-date/text-field-date.element';
4
4
  export * from './text-field-email-autocomplete/text-field-email-autocomplete.element';
5
5
  export * from './text-field-hour-minute/text-field-hour-minute.element';
6
6
  export * from './text-field-label/text-field-label.element';
7
7
  export * from './text-field-month-year/text-field-month-year.element';
8
8
  export * from './text-field-number/text-field-number.element';
9
- export * from './text-field-search/text-field-search.element';
10
9
  export * from './text-field-search-custom/text-field-search-custom.element';
11
- export * from './text-field-select/text-field-select.element';
10
+ export * from './text-field-search/text-field-search.element';
12
11
  export * from './text-field-select-search-object/text-field-select-search-object.element';
12
+ export * from './text-field-select/text-field-select.element';
13
13
  export * from './text-field-time/text-field-time.element';
14
- export * from './text-highlight/text-highlight.element';
14
+ export * from './text-field-upload-image/text-field-upload-image.element';
15
+ export * from './text-field-upload-images/text-field-upload-images.element';
15
16
  export * from './text-field.element';
17
+ export * from './text-highlight/text-highlight.element';
@@ -0,0 +1,15 @@
1
+ import { BaseTextFieldProps, SxProps, Theme } from '@mui/material';
2
+ import { FileWithPreviewOrUrl } from '../../../../common';
3
+ export interface TextFieldUploadImageElementProps extends BaseTextFieldProps {
4
+ iconLabel?: string;
5
+ direction?: 'row' | 'column';
6
+ error?: any;
7
+ value?: FileWithPreviewOrUrl;
8
+ isBorderRadiusImage?: boolean;
9
+ onChange?: (event: React.ChangeEvent<HTMLInputElement> | any) => void;
10
+ sxImage?: SxProps<Theme>;
11
+ sxStack?: SxProps<Theme>;
12
+ accept?: string;
13
+ disabled?: boolean;
14
+ }
15
+ export declare const TextFieldUploadImageElement: React.FC<TextFieldUploadImageElementProps>;
@@ -0,0 +1,16 @@
1
+ import { BaseTextFieldProps, SxProps, Theme } from '@mui/material';
2
+ import { default as React } from 'react';
3
+ import { FileWithPreviewOrUrl } from '../../../../common';
4
+ export interface TextFieldUploadImagesElementProps extends BaseTextFieldProps {
5
+ iconLabel?: string;
6
+ direction?: 'row' | 'column';
7
+ error?: any;
8
+ values?: FileWithPreviewOrUrl[];
9
+ isBorderRadiusImage?: boolean;
10
+ onChange?: (event: React.ChangeEvent<HTMLInputElement> | any) => void;
11
+ sxImage?: SxProps<Theme>;
12
+ accept?: string;
13
+ defaultImage?: string;
14
+ maxFiles?: number;
15
+ }
16
+ export declare const TextFieldUploadImagesElement: React.FC<TextFieldUploadImagesElementProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sevago-library",
3
- "version": "1.0.13",
3
+ "version": "1.0.17",
4
4
  "description": "Sevago SSO Frontend Library - A comprehensive SSO solution with React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -1,8 +0,0 @@
1
- import { FileWithPreviewOrUrl } from '../interfaces/file.interface';
2
- /**
3
- * Normalize multiple file shapes into a single image src string.
4
- * - string: treated as a direct URL
5
- * - FileWithPreview: uses `preview`
6
- * - FileFromApi / FileItem: uses `url`
7
- */
8
- export declare function getFileSource(file: FileWithPreviewOrUrl): string | undefined;
@@ -1,5 +0,0 @@
1
- import { ArgTypes } from '@storybook/react';
2
- import { DropdownFieldComponent } from './dropdown-field.component';
3
- type DropdownFieldProps = React.ComponentProps<typeof DropdownFieldComponent>;
4
- export declare const dropdownFieldArgTypes: Partial<ArgTypes<DropdownFieldProps>>;
5
- export {};
@@ -1,18 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { DropdownFieldComponent } from './dropdown-field.component';
3
- declare const meta: Meta<typeof DropdownFieldComponent>;
4
- export default meta;
5
- type Story = StoryObj<typeof DropdownFieldComponent>;
6
- export declare const Default: Story;
7
- export declare const WithSelectedValue: Story;
8
- export declare const WithoutLabel: Story;
9
- export declare const Required: Story;
10
- export declare const Disabled: Story;
11
- export declare const ErrorState: Story;
12
- export declare const SuccessState: Story;
13
- export declare const PillShape: Story;
14
- export declare const WithIcons: Story;
15
- export declare const WithAvatars: Story;
16
- export declare const WithStatusIndicator: Story;
17
- export declare const WithHelperText: Story;
18
- export declare const NumericValues: Story;