@omniumretail/component-library 1.2.76 → 1.2.78
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/component-library.es.js +355 -324
- package/dist/component-library.umd.js +4 -4
- package/dist/components/AnalyticsBar/helpers/codeMutation.d.ts +2 -3
- package/dist/components/AnalyticsBar/index.d.ts +1 -2
- package/dist/components/AnalyticsBar/interfaces/analyticsBar.d.ts +12 -12
- package/dist/components/BellNotifications/index.d.ts +23 -23
- package/dist/components/Button/index.d.ts +6 -7
- package/dist/components/Category/CategoryContent/index.d.ts +10 -10
- package/dist/components/Category/CategorySidebar/index.d.ts +28 -28
- package/dist/components/Category/index.d.ts +9 -10
- package/dist/components/CategoryReadOnly/evaluationOptions.d.ts +10 -10
- package/dist/components/CategoryReadOnly/index.d.ts +9 -10
- package/dist/components/CategoryResponse/evaluationOptions.d.ts +10 -10
- package/dist/components/CategoryResponse/index.d.ts +14 -15
- package/dist/components/DatePicker/index.d.ts +7 -8
- package/dist/components/DatePickerTag/index.d.ts +5 -6
- package/dist/components/DropdownButton/index.d.ts +10 -11
- package/dist/components/ExportTableData/index.d.ts +8 -8
- package/dist/components/Footer/index.d.ts +5 -5
- package/dist/components/Footer2/index.d.ts +59 -60
- package/dist/components/Header/Header.data.d.ts +2 -3
- package/dist/components/Header/Header.types.d.ts +28 -29
- package/dist/components/Header/index.d.ts +6 -7
- package/dist/components/Input/index.d.ts +9 -10
- package/dist/components/InputCountryCode/index.d.ts +10 -11
- package/dist/components/Label/index.d.ts +7 -7
- package/dist/components/Link/index.d.ts +6 -7
- package/dist/components/Menu/helpers/codeMutation.d.ts +2 -3
- package/dist/components/Menu/index.d.ts +1 -2
- package/dist/components/MobileTable/index.d.ts +21 -22
- package/dist/components/ModalConfirmation/ModalStatusList.d.ts +5 -5
- package/dist/components/ModalConfirmation/index.d.ts +9 -9
- package/dist/components/ModalWithTable/index.d.ts +15 -16
- package/dist/components/Navigation/index.d.ts +15 -15
- package/dist/components/Notification/index.d.ts +12 -13
- package/dist/components/Questions/SingleQuestion/index.d.ts +1 -1
- package/dist/components/Questions/index.d.ts +11 -11
- package/dist/components/Radio/index.d.ts +8 -9
- package/dist/components/ResponseType/index.d.ts +7 -7
- package/dist/components/ResponsiveTable/index.d.ts +52 -53
- package/dist/components/Select/index.d.ts +4 -5
- package/dist/components/Separator/index.d.ts +11 -11
- package/dist/components/Sidebar/index.d.ts +14 -15
- package/dist/components/Switch/index.d.ts +4 -5
- package/dist/components/Table/index.d.ts +45 -46
- package/dist/components/Tag/index.d.ts +26 -27
- package/dist/components/Upload/index.d.ts +10 -11
- package/dist/components/UserInfo/index.d.ts +9 -9
- package/dist/components/WebCam/index.d.ts +7 -8
- package/dist/components/index.d.ts +34 -34
- package/dist/constants/i18n.d.ts +1 -1
- package/dist/constants/logoCompanyHelper.d.ts +28 -28
- package/dist/constants/translationHelper.d.ts +2 -2
- package/dist/index.d.ts +3 -3
- package/package.json +28 -28
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { FormItemProps, InputProps, SelectProps } from 'antd';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
export declare const InputCountryCode: ({ inputProps, selectProps, name, inputWithSelectBoxValue, value, onChange, ...itemProps }: FormInputCountryCodeProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export interface FormInputCountryCodeProps extends Omit<FormItemProps, "name"> {
|
|
3
|
+
name?: string;
|
|
4
|
+
selectProps?: SelectProps;
|
|
5
|
+
inputProps?: InputProps;
|
|
6
|
+
inputWithSelectBoxValue?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
onChange?: (value: any) => void;
|
|
9
|
+
dialCode?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const InputCountryCode: ({ inputProps, selectProps, name, inputWithSelectBoxValue, value, onChange, ...itemProps }: FormInputCountryCodeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface LabelProps {
|
|
2
|
-
forAttribute?: string;
|
|
3
|
-
children?: any;
|
|
4
|
-
customStyle?: string;
|
|
5
|
-
isUppercase?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const Label: (props: LabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export interface LabelProps {
|
|
2
|
+
forAttribute?: string;
|
|
3
|
+
children?: any;
|
|
4
|
+
customStyle?: string;
|
|
5
|
+
isUppercase?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const Label: (props: LabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ButtonProps } from 'antd';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
export declare const Link: ({ customClass, iconAlignRight, linkSecondary, ...props }: CustomLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export interface CustomLinkProps extends ButtonProps {
|
|
3
|
+
iconAlignRight?: boolean;
|
|
4
|
+
linkSecondary?: boolean;
|
|
5
|
+
customClass?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Link: ({ customClass, iconAlignRight, linkSecondary, ...props }: CustomLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { MenuProps } from 'antd';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export declare function getItem(label: React.ReactNode, key: React.Key, icon?: React.ReactNode, children?: MenuItem[], type?: 'group'): MenuItem;
|
|
2
|
+
export type MenuItem = Required<MenuProps>['items'][number];
|
|
3
|
+
export declare function getItem(label: React.ReactNode, key: React.Key, icon?: React.ReactNode, children?: MenuItem[], type?: 'group'): MenuItem;
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
export
|
|
23
|
-
export {};
|
|
2
|
+
interface Action {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
}
|
|
7
|
+
export interface MobileTableProps {
|
|
8
|
+
data: Record<string, any>;
|
|
9
|
+
translation: string;
|
|
10
|
+
modalVisible: boolean;
|
|
11
|
+
setModalVisible: Dispatch<SetStateAction<boolean>>;
|
|
12
|
+
title: string;
|
|
13
|
+
hasArrows?: boolean;
|
|
14
|
+
actions?: Action[];
|
|
15
|
+
handlePrev?: () => void;
|
|
16
|
+
handleNext?: () => void;
|
|
17
|
+
hiddenColumns?: string[];
|
|
18
|
+
modalTableData?: any;
|
|
19
|
+
currentIndex?: number;
|
|
20
|
+
}
|
|
21
|
+
export declare const MobileTable: ({ data, title, translation, modalVisible, setModalVisible, actions, hiddenColumns, hasArrows, handleNext, handlePrev, modalTableData, currentIndex }: MobileTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const ModalStatus: {
|
|
2
|
-
CANCELED: string;
|
|
3
|
-
OPEN: string;
|
|
4
|
-
REQUESTED_CHANGES: string;
|
|
5
|
-
};
|
|
1
|
+
export declare const ModalStatus: {
|
|
2
|
+
CANCELED: string;
|
|
3
|
+
OPEN: string;
|
|
4
|
+
REQUESTED_CHANGES: string;
|
|
5
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface ModalConfirmationProps {
|
|
2
|
-
closeText: string;
|
|
3
|
-
title: string;
|
|
4
|
-
description: string;
|
|
5
|
-
buttonText: string;
|
|
6
|
-
isOpen: boolean;
|
|
7
|
-
modalData?: any;
|
|
8
|
-
}
|
|
9
|
-
export declare const ModalConfirmation: (props: ModalConfirmationProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export interface ModalConfirmationProps {
|
|
2
|
+
closeText: string;
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
buttonText: string;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
modalData?: any;
|
|
8
|
+
}
|
|
9
|
+
export declare const ModalConfirmation: (props: ModalConfirmationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { TableCustomProps } from '../Table';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export declare const ModalWithTable: (props: ModalWithTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export interface ModalWithTableProps {
|
|
3
|
+
closeText: string;
|
|
4
|
+
buttonText: string;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
tableData: TableCustomProps;
|
|
7
|
+
modalData?: any;
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
confirmLoading?: boolean;
|
|
10
|
+
initialRowSelectedInfo?: any;
|
|
11
|
+
advancedTagsList?: {
|
|
12
|
+
display: string;
|
|
13
|
+
value: string;
|
|
14
|
+
}[];
|
|
15
|
+
}
|
|
16
|
+
export declare const ModalWithTable: (props: ModalWithTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export interface NavigationProps {
|
|
2
|
-
backLink?: boolean;
|
|
3
|
-
title: string;
|
|
4
|
-
homeLink?: boolean;
|
|
5
|
-
loginLink?: boolean;
|
|
6
|
-
userName?: string;
|
|
7
|
-
loginOnClickFunction?: () => void;
|
|
8
|
-
backLinkOnClickFunction?: () => void;
|
|
9
|
-
homeOnClickFunction?: () => void;
|
|
10
|
-
options?: {
|
|
11
|
-
label: string;
|
|
12
|
-
action: () => void;
|
|
13
|
-
}[];
|
|
14
|
-
}
|
|
15
|
-
export declare const Navigation: (props: NavigationProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export interface NavigationProps {
|
|
2
|
+
backLink?: boolean;
|
|
3
|
+
title: string;
|
|
4
|
+
homeLink?: boolean;
|
|
5
|
+
loginLink?: boolean;
|
|
6
|
+
userName?: string;
|
|
7
|
+
loginOnClickFunction?: () => void;
|
|
8
|
+
backLinkOnClickFunction?: () => void;
|
|
9
|
+
homeOnClickFunction?: () => void;
|
|
10
|
+
options?: {
|
|
11
|
+
label: string;
|
|
12
|
+
action: () => void;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
export declare const Navigation: (props: NavigationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { ArgsProps } from 'antd/lib/notification';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
export {};
|
|
2
|
+
export interface ErrorNotificationProps extends ArgsProps {
|
|
3
|
+
message: string;
|
|
4
|
+
description: string;
|
|
5
|
+
duration?: number;
|
|
6
|
+
showProgress?: boolean;
|
|
7
|
+
pauseOnHover?: boolean;
|
|
8
|
+
}
|
|
9
|
+
type NotificationType = 'success' | 'info' | 'warning' | 'error';
|
|
10
|
+
export declare const Notification: ({ message, description, duration, showProgress, pauseOnHover }: ErrorNotificationProps) => {
|
|
11
|
+
openNotificationWithIcon: (type: NotificationType) => void;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SingleQuestion: ({ key, provided, snapshot, remove, name, showGrade, handleChanges, showCheckbox, responseTypeOptions, hasHeader, isTheHeader, responseTypeComponent, form, ...restField }: any) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare const SingleQuestion: ({ key, provided, snapshot, remove, name, showGrade, handleChanges, showCheckbox, responseTypeOptions, hasHeader, isTheHeader, responseTypeComponent, form, ...restField }: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export interface QuestionsProps {
|
|
2
|
-
showGrade?: boolean;
|
|
3
|
-
showCheckbox?: boolean;
|
|
4
|
-
handleChanges: any;
|
|
5
|
-
responseTypeOptions: any;
|
|
6
|
-
hasHeader?: boolean;
|
|
7
|
-
isTheHeader?: boolean;
|
|
8
|
-
responseTypeComponent?: boolean;
|
|
9
|
-
form?: any;
|
|
10
|
-
}
|
|
11
|
-
export declare const Questions: (props: QuestionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export interface QuestionsProps {
|
|
2
|
+
showGrade?: boolean;
|
|
3
|
+
showCheckbox?: boolean;
|
|
4
|
+
handleChanges: any;
|
|
5
|
+
responseTypeOptions: any;
|
|
6
|
+
hasHeader?: boolean;
|
|
7
|
+
isTheHeader?: boolean;
|
|
8
|
+
responseTypeComponent?: boolean;
|
|
9
|
+
form?: any;
|
|
10
|
+
}
|
|
11
|
+
export declare const Questions: (props: QuestionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { RadioProps } from 'antd';
|
|
2
2
|
import { RadioGroupProps } from 'antd/lib/radio';
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
export declare const RadioGroup: ({ options, ...radioGroupProps }: CustomRadioGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const Radio: ({ ...radioProps }: RadioProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export interface CustomRadioGroupProps extends RadioGroupProps {
|
|
5
|
+
options: {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}[];
|
|
9
|
+
}
|
|
10
|
+
export declare const RadioGroup: ({ options, ...radioGroupProps }: CustomRadioGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
interface categoryContent {
|
|
2
|
-
categoryContentInfo: any;
|
|
3
|
-
responseTypeOptions?: any;
|
|
4
|
-
data?: any;
|
|
5
|
-
}
|
|
6
|
-
export declare const ResponseType: (props: categoryContent) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
1
|
+
interface categoryContent {
|
|
2
|
+
categoryContentInfo: any;
|
|
3
|
+
responseTypeOptions?: any;
|
|
4
|
+
data?: any;
|
|
5
|
+
}
|
|
6
|
+
export declare const ResponseType: (props: categoryContent) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,54 +1,53 @@
|
|
|
1
1
|
import { TableProps } from 'antd';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
export declare const ResponsiveTable: (props: ResponsiveTableCustomProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export interface FilterTableOptions {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
direction: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TableActions {
|
|
8
|
+
key: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}
|
|
11
|
+
export declare enum sortByOption {
|
|
12
|
+
asc = "asc",
|
|
13
|
+
desc = "desc"
|
|
14
|
+
}
|
|
15
|
+
export interface ResponsiveTableCustomProps extends TableProps<any> {
|
|
16
|
+
fieldsToSort?: any[];
|
|
17
|
+
selectPlaceholder?: string;
|
|
18
|
+
onSort?: (field: any, sortByOption: any) => void;
|
|
19
|
+
sortInfo?: any;
|
|
20
|
+
paginationInfo?: any;
|
|
21
|
+
headingTranslationsKey?: string;
|
|
22
|
+
actionsArray?: any;
|
|
23
|
+
rowSelectionInfo?: any;
|
|
24
|
+
rowKeyValue?: string;
|
|
25
|
+
hiddenColumns?: string[];
|
|
26
|
+
rowSelection?: any;
|
|
27
|
+
onSelectAllButtonClick?: () => void;
|
|
28
|
+
AllItemsShowing?: boolean;
|
|
29
|
+
selectAllStatus?: any;
|
|
30
|
+
isTableDataRefreshed?: any;
|
|
31
|
+
tableLoading?: any;
|
|
32
|
+
tableMaxHeight?: any;
|
|
33
|
+
columnsSortChange?: any;
|
|
34
|
+
sortByColumns?: boolean;
|
|
35
|
+
columnsToSort?: string[];
|
|
36
|
+
fixedColumns?: {
|
|
37
|
+
dataIndex: string;
|
|
38
|
+
side: 'left' | 'right';
|
|
39
|
+
}[];
|
|
40
|
+
customColumnWidths?: {
|
|
41
|
+
columnName: string;
|
|
42
|
+
width: string;
|
|
43
|
+
}[];
|
|
44
|
+
buttonActionName?: string;
|
|
45
|
+
buttonActionLabel?: (record: any) => string | null;
|
|
46
|
+
buttonActionMethod?: () => void;
|
|
47
|
+
buttonActionStyle?: string | ((record: any) => any);
|
|
48
|
+
cleanRowSelection?: boolean;
|
|
49
|
+
getRowActions?: (record: any) => any;
|
|
50
|
+
customSelectAllButton?: string;
|
|
51
|
+
buttonActionIcon?: (record: any) => any | null;
|
|
52
|
+
}
|
|
53
|
+
export declare const ResponsiveTable: (props: ResponsiveTableCustomProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SelectProps as AntdSelectProps } from 'antd';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export declare const Select: ({ customClass, ...props }: SelectProps) => any;
|
|
2
|
+
export interface SelectProps extends AntdSelectProps {
|
|
3
|
+
customClass?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const Select: ({ customClass, ...props }: SelectProps) => any;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare enum Spaces {
|
|
2
|
-
s = "s",
|
|
3
|
-
m = "m",
|
|
4
|
-
l = "l"
|
|
5
|
-
}
|
|
6
|
-
export interface SeparatorProps {
|
|
7
|
-
hasOpacity?: boolean;
|
|
8
|
-
colorIsBlue?: boolean;
|
|
9
|
-
space: Spaces;
|
|
10
|
-
}
|
|
11
|
-
export declare const Separator: (props: SeparatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare enum Spaces {
|
|
2
|
+
s = "s",
|
|
3
|
+
m = "m",
|
|
4
|
+
l = "l"
|
|
5
|
+
}
|
|
6
|
+
export interface SeparatorProps {
|
|
7
|
+
hasOpacity?: boolean;
|
|
8
|
+
colorIsBlue?: boolean;
|
|
9
|
+
space: Spaces;
|
|
10
|
+
}
|
|
11
|
+
export declare const Separator: (props: SeparatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export declare const Sidebar: (props: SidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export interface Links {
|
|
2
|
+
label: string;
|
|
3
|
+
targetRoute: string;
|
|
4
|
+
active: boolean;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
sublinks?: Links[];
|
|
7
|
+
activeSubMenu?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface SidebarProps {
|
|
10
|
+
isOpen?: boolean;
|
|
11
|
+
links: Links[];
|
|
12
|
+
navigateFunction: (targetRoute: string) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const Sidebar: (props: SidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SwitchProps } from 'antd';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export declare const Switch: ({ customClass, ...props }: NewSwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export interface NewSwitchProps extends SwitchProps {
|
|
3
|
+
customClass?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const Switch: ({ customClass, ...props }: NewSwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,47 +1,46 @@
|
|
|
1
1
|
import { TableProps } from 'antd';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
export declare const Table: (props: TableCustomProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export interface FilterOptions {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
direction: string;
|
|
6
|
+
}
|
|
7
|
+
export interface Actions {
|
|
8
|
+
key: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}
|
|
11
|
+
export declare enum sortBy {
|
|
12
|
+
asc = "asc",
|
|
13
|
+
desc = "desc"
|
|
14
|
+
}
|
|
15
|
+
export interface TableCustomProps extends TableProps<any> {
|
|
16
|
+
fieldsToSort?: any[];
|
|
17
|
+
selectPlaceholder?: string;
|
|
18
|
+
onSort?: (field: any, sortBy: any) => void;
|
|
19
|
+
sortInfo?: any;
|
|
20
|
+
paginationInfo?: any;
|
|
21
|
+
headingTranslationsKey?: string;
|
|
22
|
+
actionsArray?: any;
|
|
23
|
+
rowSelectionInfo?: any;
|
|
24
|
+
rowKeyValue?: string;
|
|
25
|
+
hiddenColumns?: string[];
|
|
26
|
+
rowSelection?: any;
|
|
27
|
+
onSelectAllButtonClick?: () => void;
|
|
28
|
+
AllItemsShowing?: boolean;
|
|
29
|
+
selectAllStatus?: any;
|
|
30
|
+
isTableDataRefreshed?: any;
|
|
31
|
+
tableLoading?: any;
|
|
32
|
+
tableMaxHeight?: any;
|
|
33
|
+
columnsSortChange?: any;
|
|
34
|
+
sortByColumns?: boolean;
|
|
35
|
+
columnsToSort?: string[];
|
|
36
|
+
fixedColumns?: {
|
|
37
|
+
dataIndex: string;
|
|
38
|
+
side: 'left' | 'right';
|
|
39
|
+
}[];
|
|
40
|
+
customColumnWidths?: {
|
|
41
|
+
columnName: string;
|
|
42
|
+
width: string;
|
|
43
|
+
}[];
|
|
44
|
+
getRowActions?: (record: any) => any;
|
|
45
|
+
}
|
|
46
|
+
export declare const Table: (props: TableCustomProps) => import("react/jsx-runtime").JSX.Element;
|