@inceptionbg/iui 1.0.20 → 1.0.22
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/index.js.map +1 -1
- package/dist/types/components/Accordions/Accordions.d.ts +10 -0
- package/dist/types/components/Alert/Alert.d.ts +11 -0
- package/dist/types/components/Badge/NotificationBadge.d.ts +9 -0
- package/dist/types/components/Badge/PillBadge.d.ts +8 -0
- package/dist/types/components/Button/Button.d.ts +18 -0
- package/dist/types/components/Button/IconButton.d.ts +12 -0
- package/dist/types/components/Dialog/Dialog.d.ts +39 -0
- package/dist/types/components/Helper/Collapse.d.ts +8 -0
- package/dist/types/components/Helper/NoAccessInfo.d.ts +7 -0
- package/dist/types/components/Inputs/Checkbox.d.ts +12 -0
- package/dist/types/components/Inputs/DateInput/DateInput.d.ts +16 -0
- package/dist/types/components/Inputs/DateInput/components/DatePartInput.d.ts +22 -0
- package/dist/types/components/Inputs/InputWrapper.d.ts +14 -0
- package/dist/types/components/Inputs/LargeTextInput.d.ts +17 -0
- package/dist/types/components/Inputs/NumberInput.d.ts +19 -0
- package/dist/types/components/Inputs/PasswordInput.d.ts +7 -0
- package/dist/types/components/Inputs/Radio.d.ts +12 -0
- package/dist/types/components/Inputs/SearchInput.d.ts +7 -0
- package/dist/types/components/Inputs/Selects/Select.d.ts +26 -0
- package/dist/types/components/Inputs/Selects/SelectAsyncPaginate.d.ts +26 -0
- package/dist/types/components/Inputs/TextInput.d.ts +21 -0
- package/dist/types/components/Loader/Loader.d.ts +16 -0
- package/dist/types/components/Menu/Menu.d.ts +13 -0
- package/dist/types/components/Menu/MenuItem.d.ts +15 -0
- package/dist/types/components/Table/Components/Edit/ItemActionsMenu.d.ts +15 -0
- package/dist/types/components/Table/Components/Edit/ItemEditOptionsButtons.d.ts +9 -0
- package/dist/types/components/Table/Components/Edit/TableEditRow.d.ts +3 -0
- package/dist/types/components/Table/Components/FilterItem.d.ts +7 -0
- package/dist/types/components/Table/Components/Print/TablePrint.d.ts +9 -0
- package/dist/types/components/Table/Components/SetColumnsList.d.ts +10 -0
- package/dist/types/components/Table/Components/SetSortList.d.ts +9 -0
- package/dist/types/components/Table/Components/SetTableFilter.d.ts +8 -0
- package/dist/types/components/Table/Components/TableFooter.d.ts +16 -0
- package/dist/types/components/Table/Components/TableHeader.d.ts +11 -0
- package/dist/types/components/Table/Components/TableOptions.d.ts +12 -0
- package/dist/types/components/Table/Table.d.ts +3 -0
- package/dist/types/components/Tabs/Tabs.d.ts +16 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +13 -0
- package/dist/types/components/Wrappers/ConditionalWrapper.d.ts +8 -0
- package/dist/types/components/Wrappers/FormWrapper.d.ts +22 -0
- package/dist/types/components/Wrappers/FullPageWrapper.d.ts +20 -0
- package/dist/types/components/Wrappers/PageWrapper.d.ts +13 -0
- package/dist/types/icons/duotone/faArrowLeftFromLine.d.ts +2 -0
- package/dist/types/icons/duotone/faArrowRightToLine.d.ts +2 -0
- package/dist/types/icons/duotone/faBell.d.ts +2 -0
- package/dist/types/icons/duotone/faEye.d.ts +2 -0
- package/dist/types/icons/duotone/faEyeSlash.d.ts +2 -0
- package/dist/types/icons/duotone/faHouseHeart.d.ts +2 -0
- package/dist/types/icons/duotone/faPlusCircle.d.ts +2 -0
- package/dist/types/icons/duotone/faUser.d.ts +2 -0
- package/dist/types/icons/duotone/index.d.ts +9 -0
- package/dist/types/icons/light/faAngleDown.d.ts +2 -0
- package/dist/types/icons/light/faArrowDownShortWide.d.ts +2 -0
- package/dist/types/icons/light/faArrowDownWideShort.d.ts +2 -0
- package/dist/types/icons/light/faArrowsToLine.d.ts +2 -0
- package/dist/types/icons/light/faArrowsUpDown.d.ts +2 -0
- package/dist/types/icons/light/faBell.d.ts +2 -0
- package/dist/types/icons/light/faCheck.d.ts +2 -0
- package/dist/types/icons/light/faClockRotateLeft.d.ts +2 -0
- package/dist/types/icons/light/faEllipsisVertical.d.ts +2 -0
- package/dist/types/icons/light/faXmark.d.ts +2 -0
- package/dist/types/icons/light/index.d.ts +11 -0
- package/dist/types/icons/regular/faArrowRightArrowLeft.d.ts +2 -0
- package/dist/types/icons/regular/faCalendar.d.ts +2 -0
- package/dist/types/icons/regular/faCircleCheck.d.ts +2 -0
- package/dist/types/icons/regular/faCircleExclamation.d.ts +2 -0
- package/dist/types/icons/regular/faCircleInfo.d.ts +2 -0
- package/dist/types/icons/regular/faFileArrowDown.d.ts +2 -0
- package/dist/types/icons/regular/faFilterCircleXmark.d.ts +2 -0
- package/dist/types/icons/regular/faTriangleExclamation.d.ts +2 -0
- package/dist/types/icons/solid/faAngleLeft.d.ts +2 -0
- package/dist/types/icons/solid/faAngleRight.d.ts +2 -0
- package/dist/types/icons/solid/faArrowDownWideShort.d.ts +2 -0
- package/dist/types/icons/solid/faArrowLeft.d.ts +2 -0
- package/dist/types/icons/solid/faCaretDown.d.ts +2 -0
- package/dist/types/icons/solid/faEllipsisVertical.d.ts +2 -0
- package/dist/types/icons/solid/faFilter.d.ts +2 -0
- package/dist/types/icons/solid/faFloppyDisk.d.ts +2 -0
- package/dist/types/icons/solid/faGripDotsVertical.d.ts +2 -0
- package/dist/types/icons/solid/faListUl.d.ts +2 -0
- package/dist/types/icons/solid/faMagnifyingGlass.d.ts +2 -0
- package/dist/types/icons/solid/faPrint.d.ts +2 -0
- package/dist/types/icons/solid/faRotateRight.d.ts +2 -0
- package/dist/types/icons/solid/faXmark.d.ts +2 -0
- package/dist/types/index.d.ts +59 -0
- package/dist/types/types/IBasic.d.ts +25 -0
- package/dist/types/types/IError.d.ts +4 -0
- package/dist/types/types/IHeaderAction.d.ts +11 -0
- package/dist/types/types/ISelect.d.ts +5 -0
- package/dist/types/types/ISidebar.d.ts +27 -0
- package/dist/types/types/ITab.d.ts +9 -0
- package/dist/types/types/ITable.d.ts +161 -0
- package/dist/types/types/IToken.d.ts +9 -0
- package/dist/types/utils/DateUtils.d.ts +10 -0
- package/dist/types/utils/InputPatternValidation.d.ts +9 -0
- package/dist/types/utils/LocalStorageHelper.d.ts +10 -0
- package/dist/types/utils/NumberUtils.d.ts +2 -0
- package/dist/types/utils/ObjectUtils.d.ts +9 -0
- package/dist/types/utils/StringUtils.d.ts +1 -0
- package/dist/types/utils/Toasts.d.ts +2 -0
- package/dist/types/utils/UrlUtils.d.ts +3 -0
- package/dist/types/utils/icons.d.ts +6 -0
- package/package.json +1 -1
- package/dist/index.d.ts +0 -721
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
+
import { InputHTMLAttributes } from 'react';
|
|
3
|
+
export interface ITextInput {
|
|
4
|
+
label?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
setValue: (value: string) => void;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
autoFocus?: boolean;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
helperText?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
14
|
+
error?: boolean;
|
|
15
|
+
endButton?: {
|
|
16
|
+
icon: IconDefinition;
|
|
17
|
+
onClick: () => void;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export declare const TextInput: import("react").ForwardRefExoticComponent<ITextInput & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
logo?: string;
|
|
5
|
+
fullWidth?: boolean;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const Loader: FC<Props>;
|
|
9
|
+
export declare const FullScreenLoader: FC<{
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
logo?: string;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const LazyLoader: FC<{
|
|
14
|
+
logo?: string;
|
|
15
|
+
}>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC, ReactNode, RefObject } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
renderButton: (ref: RefObject<any>) => ReactNode;
|
|
6
|
+
placementX?: 'left' | 'right';
|
|
7
|
+
placementY?: 'bottom' | 'top' | 'auto';
|
|
8
|
+
size?: 's' | 'm' | 'l';
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const Menu: FC<Props>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IconDefinition, RotateProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
+
import { FC, MouseEventHandler, ReactNode } from 'react';
|
|
3
|
+
interface Props {
|
|
4
|
+
label?: string;
|
|
5
|
+
icon?: IconDefinition;
|
|
6
|
+
iconRotation?: RotateProp;
|
|
7
|
+
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
8
|
+
to?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
withDevider?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const MenuItem: FC<Props>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
item: any;
|
|
4
|
+
setSelectedItem?: (item: any) => void;
|
|
5
|
+
setItemToDeleteUuid?: (uuid: string) => void;
|
|
6
|
+
actions?: {
|
|
7
|
+
label: string;
|
|
8
|
+
onClick: (uuid: string) => void;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}[];
|
|
12
|
+
t?: (e: string) => string;
|
|
13
|
+
}
|
|
14
|
+
export declare const ItemActionsMenu: FC<Props>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IPrintData, ITableColumn } from '../../../../types/ITable';
|
|
3
|
+
interface Props extends IPrintData {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
columns: ITableColumn[];
|
|
7
|
+
}
|
|
8
|
+
export declare const TablePrint: FC<Props>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ITableColumn } from '../../../types/ITable';
|
|
3
|
+
interface Props {
|
|
4
|
+
columns: ITableColumn[];
|
|
5
|
+
setColumns: (data: ITableColumn[]) => void;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const SetColumnsList: FC<Props>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
+
import { FC, MouseEventHandler } from 'react';
|
|
3
|
+
interface Props {
|
|
4
|
+
limit: number;
|
|
5
|
+
offset: number;
|
|
6
|
+
setLimit: (limit: number) => void;
|
|
7
|
+
setOffset: (offset: number) => void;
|
|
8
|
+
totalRows: number;
|
|
9
|
+
footerAction?: {
|
|
10
|
+
icon?: IconDefinition;
|
|
11
|
+
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
12
|
+
};
|
|
13
|
+
customLimit?: number[];
|
|
14
|
+
}
|
|
15
|
+
export declare const TableFooter: FC<Props>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ITableColumn } from '../../../types/ITable';
|
|
3
|
+
interface Props {
|
|
4
|
+
tableCols: ITableColumn[];
|
|
5
|
+
firstHeaderRow?: ITableColumn[];
|
|
6
|
+
secondHeaderRow?: ITableColumn[];
|
|
7
|
+
headerWrap?: boolean;
|
|
8
|
+
printTable?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const HeaderTable: FC<Props>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { ITableSortData, ITableColumn, ITableFilterData, IPrintData, ITableColumnsData } from '../../../types/ITable';
|
|
3
|
+
interface Props {
|
|
4
|
+
columns: ITableColumn[];
|
|
5
|
+
columnsData?: ITableColumnsData;
|
|
6
|
+
filterData?: ITableFilterData;
|
|
7
|
+
sortData?: ITableSortData;
|
|
8
|
+
printData?: IPrintData;
|
|
9
|
+
additionsalOptions?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const TableOptions: FC<Props>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ITab } from '../../types/ITab';
|
|
3
|
+
interface Props {
|
|
4
|
+
tabs: ITab[];
|
|
5
|
+
initialValue?: string;
|
|
6
|
+
control?: {
|
|
7
|
+
value: string;
|
|
8
|
+
setValue: (value: string) => void;
|
|
9
|
+
};
|
|
10
|
+
onChange?: (value: string) => void;
|
|
11
|
+
noWrap?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
classNameContent?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const Tabs: FC<Props>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC, ReactElement } from 'react';
|
|
2
|
+
import './tooltip.scss';
|
|
3
|
+
type Position = 'left' | 'right' | 'top' | 'bottom';
|
|
4
|
+
interface Props {
|
|
5
|
+
label?: string;
|
|
6
|
+
position?: Position;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
singleLine?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
children: ReactElement;
|
|
11
|
+
}
|
|
12
|
+
export declare const Tooltip: FC<Props>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FC, FormEvent, ReactNode } from 'react';
|
|
2
|
+
export interface IFormWrapper {
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
className?: string;
|
|
5
|
+
submitButton: {
|
|
6
|
+
label?: string;
|
|
7
|
+
icon?: any;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
onSubmit: (e: FormEvent<HTMLFormElement>) => void;
|
|
10
|
+
primary?: boolean;
|
|
11
|
+
};
|
|
12
|
+
otherButtons?: {
|
|
13
|
+
label: string;
|
|
14
|
+
icon?: any;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
outlined?: boolean;
|
|
17
|
+
onClick: () => void;
|
|
18
|
+
}[];
|
|
19
|
+
noAccess?: boolean;
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export declare const FormWrapper: FC<IFormWrapper>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import '../../styles/components/_pagePrelogin.scss';
|
|
2
|
+
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
+
import { FC, ReactElement, ReactNode } from 'react';
|
|
4
|
+
interface Props {
|
|
5
|
+
title: string;
|
|
6
|
+
description: string | ReactElement;
|
|
7
|
+
actionButton?: {
|
|
8
|
+
label: string;
|
|
9
|
+
icon?: IconDefinition;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
onFormSubmit?: () => void;
|
|
12
|
+
marginLarge?: boolean;
|
|
13
|
+
regular?: boolean;
|
|
14
|
+
};
|
|
15
|
+
backButton?: boolean;
|
|
16
|
+
img?: string;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare const FullPageWrapper: FC<Props>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { IHeaderAction } from '../../types/IHeaderAction';
|
|
3
|
+
export interface IPageWrapper {
|
|
4
|
+
breadcrumbs: string[];
|
|
5
|
+
actions?: IHeaderAction[];
|
|
6
|
+
moreActions?: IHeaderAction[];
|
|
7
|
+
showBackButton?: boolean;
|
|
8
|
+
noAccess?: boolean;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
loaderLogo?: string;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const PageWrapper: FC<IPageWrapper>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { faArrowLeftFromLine } from './faArrowLeftFromLine';
|
|
2
|
+
import { faArrowRightToLine } from './faArrowRightToLine';
|
|
3
|
+
import { faBell } from './faBell';
|
|
4
|
+
import { faEye } from './faEye';
|
|
5
|
+
import { faEyeSlash } from './faEyeSlash';
|
|
6
|
+
import { faHouseHeart } from './faHouseHeart';
|
|
7
|
+
import { faPlusCircle } from './faPlusCircle';
|
|
8
|
+
import { faUser } from './faUser';
|
|
9
|
+
export { faArrowLeftFromLine, faArrowRightToLine, faBell, faEye, faEyeSlash, faHouseHeart, faPlusCircle, faUser, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { faAngleDown } from './faAngleDown';
|
|
2
|
+
import { faArrowDownShortWide } from './faArrowDownShortWide';
|
|
3
|
+
import { faArrowDownWideShort } from './faArrowDownWideShort';
|
|
4
|
+
import { faArrowsToLine } from './faArrowsToLine';
|
|
5
|
+
import { faArrowsUpDown } from './faArrowsUpDown';
|
|
6
|
+
import { faBell } from './faBell';
|
|
7
|
+
import { faCheck } from './faCheck';
|
|
8
|
+
import { faClockRotateLeft } from './faClockRotateLeft';
|
|
9
|
+
import { faEllipsisVertical } from './faEllipsisVertical';
|
|
10
|
+
import { faXmark } from './faXmark';
|
|
11
|
+
export { faAngleDown, faArrowDownShortWide, faArrowDownWideShort, faArrowsToLine, faArrowsUpDown, faBell, faCheck, faClockRotateLeft, faEllipsisVertical, faXmark, };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import './styles/App.scss';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import moment from 'moment';
|
|
4
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
5
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
6
|
+
import type { IAnyObject, IStringObject, IBooleanObject, ISimpleObject, ISimpleObjectWithCode, ISimpleObjectWithCodeNew, IValueLabel } from './types/IBasic';
|
|
7
|
+
import type { AxiosInstance } from './types/Base/axios';
|
|
8
|
+
import type { IError } from './types/IError';
|
|
9
|
+
import type { ITab } from './types/ITab';
|
|
10
|
+
import type { IPagination, IServerSidePagination, ITable, ITableColumn, ITableDataItem, ITableEditRow, ITableFilter, ITableFilterData, ITableFilterItem, ITableSort } from './types/ITable';
|
|
11
|
+
import type { IToken } from './types/IToken';
|
|
12
|
+
import type { ISidebarItem } from './types/ISidebar';
|
|
13
|
+
import type { ISelectData } from './types/ISelect';
|
|
14
|
+
import type { IFormWrapper } from './components/Wrappers/FormWrapper';
|
|
15
|
+
import { Accordions } from './components/Accordions/Accordions';
|
|
16
|
+
import { Alert } from './components/Alert/Alert';
|
|
17
|
+
import { NotificationBadge } from './components/Badge/NotificationBadge';
|
|
18
|
+
import { PillBadge } from './components/Badge/PillBadge';
|
|
19
|
+
import { Button } from './components/Button/Button';
|
|
20
|
+
import { IconButton } from './components/Button/IconButton';
|
|
21
|
+
import { Dialog } from './components/Dialog/Dialog';
|
|
22
|
+
import { Collapse } from './components/Helper/Collapse';
|
|
23
|
+
import { Checkbox } from './components/Inputs/Checkbox';
|
|
24
|
+
import { DateInput } from './components/Inputs/DateInput/DateInput';
|
|
25
|
+
import { LargeTextInput } from './components/Inputs/LargeTextInput';
|
|
26
|
+
import { NumberInput } from './components/Inputs/NumberInput';
|
|
27
|
+
import { PasswordInput } from './components/Inputs/PasswordInput';
|
|
28
|
+
import { Radio } from './components/Inputs/Radio';
|
|
29
|
+
import { TextInput } from './components/Inputs/TextInput';
|
|
30
|
+
import { SearchInput } from './components/Inputs/SearchInput';
|
|
31
|
+
import { Select } from './components/Inputs/Selects/Select';
|
|
32
|
+
import { SelectAsyncPaginate } from './components/Inputs/Selects/SelectAsyncPaginate';
|
|
33
|
+
import { FullScreenLoader, LazyLoader, Loader } from './components/Loader/Loader';
|
|
34
|
+
import { Menu } from './components/Menu/Menu';
|
|
35
|
+
import { MenuItem } from './components/Menu/MenuItem';
|
|
36
|
+
import { SetTableFilter } from './components/Table/Components/SetTableFilter';
|
|
37
|
+
import { Table } from './components/Table/Table';
|
|
38
|
+
import { TableFooter } from './components/Table/Components/TableFooter';
|
|
39
|
+
import { ItemActionsMenu } from './components/Table/Components/Edit/ItemActionsMenu';
|
|
40
|
+
import { ItemEditOptionsButtons } from './components/Table/Components/Edit/ItemEditOptionsButtons';
|
|
41
|
+
import { TableEditRow } from './components/Table/Components/Edit/TableEditRow';
|
|
42
|
+
import { Tabs } from './components/Tabs/Tabs';
|
|
43
|
+
import { Tooltip } from './components/Tooltip/Tooltip';
|
|
44
|
+
import { ConditionalWrapper } from './components/Wrappers/ConditionalWrapper';
|
|
45
|
+
import { FullPageWrapper } from './components/Wrappers/FullPageWrapper';
|
|
46
|
+
import { FormWrapper } from './components/Wrappers/FormWrapper';
|
|
47
|
+
import { PageWrapper } from './components/Wrappers/PageWrapper';
|
|
48
|
+
import { checkIfExpired, dateAddDays, formatDate, formatDateAndTime, formatDateYMD, formatTime, formatYearMonth, getCurrentDateFormatted, getCurrentDateFormattedYMD, getDaysLeft } from './utils/DateUtils';
|
|
49
|
+
import { formatCurrency, formatCurrencyNoDecimals } from './utils/NumberUtils';
|
|
50
|
+
import { maxChar } from './utils/StringUtils';
|
|
51
|
+
import { deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, getActiveFilterNumber, getVisibleColumnsIds } from './utils/ObjectUtils';
|
|
52
|
+
import { parseUrlSearch } from './utils/UrlUtils';
|
|
53
|
+
import { getActiveOrgUuid, getDefaultOrgUuid, lsGet, lsRemove, lsSet, setActiveOrgUuid, setDefaultOrgUuid } from './utils/LocalStorageHelper';
|
|
54
|
+
import { inputPattern } from './utils/InputPatternValidation';
|
|
55
|
+
export { Accordions, Alert, PillBadge, NotificationBadge, Button, IconButton, Dialog, Collapse, Checkbox, DateInput, LargeTextInput, NumberInput, PasswordInput, Radio, TextInput, SearchInput, Select, SelectAsyncPaginate, FullScreenLoader, LazyLoader, Loader, Menu, MenuItem, SetTableFilter, ItemActionsMenu, ItemEditOptionsButtons, Table, TableEditRow, TableFooter, Tabs, Tooltip, ConditionalWrapper, FullPageWrapper, FormWrapper, PageWrapper, };
|
|
56
|
+
export { AxiosInstance, IAnyObject, IStringObject, IBooleanObject, ISimpleObject, ISimpleObjectWithCode, ISimpleObjectWithCodeNew, IValueLabel, IError, ITab, IPagination, IServerSidePagination, ITable, ITableColumn, ITableDataItem, ITableEditRow, ITableFilter, ITableFilterData, ITableFilterItem, ITableSort, IToken, ISidebarItem, ISelectData, IFormWrapper, };
|
|
57
|
+
export { checkIfExpired, dateAddDays, deepCopy, formatDate, formatDateAndTime, formatDateYMD, formatTime, formatYearMonth, getCurrentDateFormatted, getCurrentDateFormattedYMD, getDaysLeft, formatCurrency, formatCurrencyNoDecimals, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, getActiveFilterNumber, getVisibleColumnsIds, maxChar, parseUrlSearch, inputPattern, };
|
|
58
|
+
export { lsGet, lsRemove, lsSet, getActiveOrgUuid, setActiveOrgUuid, getDefaultOrgUuid, setDefaultOrgUuid, };
|
|
59
|
+
export { clsx, moment, FontAwesomeIcon, uuidv4 };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface IAnyObject {
|
|
2
|
+
[id: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export interface IStringObject {
|
|
5
|
+
[id: string]: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IBooleanObject {
|
|
8
|
+
[id: string]: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface ISimpleObject {
|
|
11
|
+
uuid: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ISimpleObjectWithCode extends ISimpleObject {
|
|
15
|
+
code: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ISimpleObjectWithCodeNew {
|
|
18
|
+
uuid?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
code?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IValueLabel {
|
|
23
|
+
value: any;
|
|
24
|
+
label: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IconDefinition, RotateProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
+
export interface IHeaderAction {
|
|
3
|
+
label: string;
|
|
4
|
+
icon?: IconDefinition;
|
|
5
|
+
iconRotation?: RotateProp;
|
|
6
|
+
to?: string;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
primary?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
hidden?: boolean;
|
|
11
|
+
}
|