@inceptionbg/iui 1.0.22 → 1.0.23
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.d.ts +721 -0
- package/package.json +53 -53
- package/dist/types/components/Accordions/Accordions.d.ts +0 -10
- package/dist/types/components/Alert/Alert.d.ts +0 -11
- package/dist/types/components/Badge/NotificationBadge.d.ts +0 -9
- package/dist/types/components/Badge/PillBadge.d.ts +0 -8
- package/dist/types/components/Button/Button.d.ts +0 -18
- package/dist/types/components/Button/IconButton.d.ts +0 -12
- package/dist/types/components/Dialog/Dialog.d.ts +0 -39
- package/dist/types/components/Helper/Collapse.d.ts +0 -8
- package/dist/types/components/Helper/NoAccessInfo.d.ts +0 -7
- package/dist/types/components/Inputs/Checkbox.d.ts +0 -12
- package/dist/types/components/Inputs/DateInput/DateInput.d.ts +0 -16
- package/dist/types/components/Inputs/DateInput/components/DatePartInput.d.ts +0 -22
- package/dist/types/components/Inputs/InputWrapper.d.ts +0 -14
- package/dist/types/components/Inputs/LargeTextInput.d.ts +0 -17
- package/dist/types/components/Inputs/NumberInput.d.ts +0 -19
- package/dist/types/components/Inputs/PasswordInput.d.ts +0 -7
- package/dist/types/components/Inputs/Radio.d.ts +0 -12
- package/dist/types/components/Inputs/SearchInput.d.ts +0 -7
- package/dist/types/components/Inputs/Selects/Select.d.ts +0 -26
- package/dist/types/components/Inputs/Selects/SelectAsyncPaginate.d.ts +0 -26
- package/dist/types/components/Inputs/TextInput.d.ts +0 -21
- package/dist/types/components/Loader/Loader.d.ts +0 -16
- package/dist/types/components/Menu/Menu.d.ts +0 -13
- package/dist/types/components/Menu/MenuItem.d.ts +0 -15
- package/dist/types/components/Table/Components/Edit/ItemActionsMenu.d.ts +0 -15
- package/dist/types/components/Table/Components/Edit/ItemEditOptionsButtons.d.ts +0 -9
- package/dist/types/components/Table/Components/Edit/TableEditRow.d.ts +0 -3
- package/dist/types/components/Table/Components/FilterItem.d.ts +0 -7
- package/dist/types/components/Table/Components/Print/TablePrint.d.ts +0 -9
- package/dist/types/components/Table/Components/SetColumnsList.d.ts +0 -10
- package/dist/types/components/Table/Components/SetSortList.d.ts +0 -9
- package/dist/types/components/Table/Components/SetTableFilter.d.ts +0 -8
- package/dist/types/components/Table/Components/TableFooter.d.ts +0 -16
- package/dist/types/components/Table/Components/TableHeader.d.ts +0 -11
- package/dist/types/components/Table/Components/TableOptions.d.ts +0 -12
- package/dist/types/components/Table/Table.d.ts +0 -3
- package/dist/types/components/Tabs/Tabs.d.ts +0 -16
- package/dist/types/components/Tooltip/Tooltip.d.ts +0 -13
- package/dist/types/components/Wrappers/ConditionalWrapper.d.ts +0 -8
- package/dist/types/components/Wrappers/FormWrapper.d.ts +0 -22
- package/dist/types/components/Wrappers/FullPageWrapper.d.ts +0 -20
- package/dist/types/components/Wrappers/PageWrapper.d.ts +0 -13
- package/dist/types/icons/duotone/faArrowLeftFromLine.d.ts +0 -2
- package/dist/types/icons/duotone/faArrowRightToLine.d.ts +0 -2
- package/dist/types/icons/duotone/faBell.d.ts +0 -2
- package/dist/types/icons/duotone/faEye.d.ts +0 -2
- package/dist/types/icons/duotone/faEyeSlash.d.ts +0 -2
- package/dist/types/icons/duotone/faHouseHeart.d.ts +0 -2
- package/dist/types/icons/duotone/faPlusCircle.d.ts +0 -2
- package/dist/types/icons/duotone/faUser.d.ts +0 -2
- package/dist/types/icons/duotone/index.d.ts +0 -9
- package/dist/types/icons/light/faAngleDown.d.ts +0 -2
- package/dist/types/icons/light/faArrowDownShortWide.d.ts +0 -2
- package/dist/types/icons/light/faArrowDownWideShort.d.ts +0 -2
- package/dist/types/icons/light/faArrowsToLine.d.ts +0 -2
- package/dist/types/icons/light/faArrowsUpDown.d.ts +0 -2
- package/dist/types/icons/light/faBell.d.ts +0 -2
- package/dist/types/icons/light/faCheck.d.ts +0 -2
- package/dist/types/icons/light/faClockRotateLeft.d.ts +0 -2
- package/dist/types/icons/light/faEllipsisVertical.d.ts +0 -2
- package/dist/types/icons/light/faXmark.d.ts +0 -2
- package/dist/types/icons/light/index.d.ts +0 -11
- package/dist/types/icons/regular/faArrowRightArrowLeft.d.ts +0 -2
- package/dist/types/icons/regular/faCalendar.d.ts +0 -2
- package/dist/types/icons/regular/faCircleCheck.d.ts +0 -2
- package/dist/types/icons/regular/faCircleExclamation.d.ts +0 -2
- package/dist/types/icons/regular/faCircleInfo.d.ts +0 -2
- package/dist/types/icons/regular/faFileArrowDown.d.ts +0 -2
- package/dist/types/icons/regular/faFilterCircleXmark.d.ts +0 -2
- package/dist/types/icons/regular/faTriangleExclamation.d.ts +0 -2
- package/dist/types/icons/solid/faAngleLeft.d.ts +0 -2
- package/dist/types/icons/solid/faAngleRight.d.ts +0 -2
- package/dist/types/icons/solid/faArrowDownWideShort.d.ts +0 -2
- package/dist/types/icons/solid/faArrowLeft.d.ts +0 -2
- package/dist/types/icons/solid/faCaretDown.d.ts +0 -2
- package/dist/types/icons/solid/faEllipsisVertical.d.ts +0 -2
- package/dist/types/icons/solid/faFilter.d.ts +0 -2
- package/dist/types/icons/solid/faFloppyDisk.d.ts +0 -2
- package/dist/types/icons/solid/faGripDotsVertical.d.ts +0 -2
- package/dist/types/icons/solid/faListUl.d.ts +0 -2
- package/dist/types/icons/solid/faMagnifyingGlass.d.ts +0 -2
- package/dist/types/icons/solid/faPrint.d.ts +0 -2
- package/dist/types/icons/solid/faRotateRight.d.ts +0 -2
- package/dist/types/icons/solid/faXmark.d.ts +0 -2
- package/dist/types/index.d.ts +0 -59
- package/dist/types/types/IBasic.d.ts +0 -25
- package/dist/types/types/IError.d.ts +0 -4
- package/dist/types/types/IHeaderAction.d.ts +0 -11
- package/dist/types/types/ISelect.d.ts +0 -5
- package/dist/types/types/ISidebar.d.ts +0 -27
- package/dist/types/types/ITab.d.ts +0 -9
- package/dist/types/types/ITable.d.ts +0 -161
- package/dist/types/types/IToken.d.ts +0 -9
- package/dist/types/utils/DateUtils.d.ts +0 -10
- package/dist/types/utils/InputPatternValidation.d.ts +0 -9
- package/dist/types/utils/LocalStorageHelper.d.ts +0 -10
- package/dist/types/utils/NumberUtils.d.ts +0 -2
- package/dist/types/utils/ObjectUtils.d.ts +0 -9
- package/dist/types/utils/StringUtils.d.ts +0 -1
- package/dist/types/utils/Toasts.d.ts +0 -2
- package/dist/types/utils/UrlUtils.d.ts +0 -3
- package/dist/types/utils/icons.d.ts +0 -6
|
@@ -1,16 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,13 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,22 +0,0 @@
|
|
|
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>;
|
|
@@ -1,20 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,13 +0,0 @@
|
|
|
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>;
|
|
@@ -1,9 +0,0 @@
|
|
|
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, };
|
|
@@ -1,11 +0,0 @@
|
|
|
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, };
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
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 };
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
-
export interface ISidebarItem {
|
|
3
|
-
label: string;
|
|
4
|
-
icon?: IconDefinition;
|
|
5
|
-
to?: string;
|
|
6
|
-
content?: ISidebarSubItem[];
|
|
7
|
-
menu?: {
|
|
8
|
-
content: ISidebarSubItem[];
|
|
9
|
-
openedMenu: string;
|
|
10
|
-
setOpenedMenu: (label: string) => void;
|
|
11
|
-
};
|
|
12
|
-
hidden?: boolean;
|
|
13
|
-
badge?: number;
|
|
14
|
-
addUrl?: string;
|
|
15
|
-
collapsed?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface ISidebarSubItem {
|
|
18
|
-
label: string;
|
|
19
|
-
to?: string;
|
|
20
|
-
content?: ISidebarItem[];
|
|
21
|
-
hidden?: boolean;
|
|
22
|
-
tooltip?: string;
|
|
23
|
-
badge?: number;
|
|
24
|
-
addUrl?: string;
|
|
25
|
-
primary?: boolean;
|
|
26
|
-
collapsed?: boolean;
|
|
27
|
-
}
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { Dispatch, FunctionComponent, MouseEventHandler, ReactElement, ReactNode, RefObject, SetStateAction } from 'react';
|
|
2
|
-
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
-
import { IAnyObject } from './IBasic';
|
|
4
|
-
export interface ITable {
|
|
5
|
-
columns: ITableColumn[];
|
|
6
|
-
setColumns?: (data: ITableColumn[]) => void;
|
|
7
|
-
firstHeaderRow?: ITableColumn[];
|
|
8
|
-
secondHeaderRow?: ITableColumn[];
|
|
9
|
-
data: ITableDataItem[];
|
|
10
|
-
totals?: ITableDataItem;
|
|
11
|
-
isLoading?: boolean;
|
|
12
|
-
loaderLogo?: string;
|
|
13
|
-
serverSidePagination?: IServerSidePagination;
|
|
14
|
-
customPagination?: {
|
|
15
|
-
defaultLimit?: number;
|
|
16
|
-
customLimit?: number[];
|
|
17
|
-
};
|
|
18
|
-
selectedRowUuid?: string;
|
|
19
|
-
footerAction?: {
|
|
20
|
-
icon?: IconDefinition;
|
|
21
|
-
onClick: () => void;
|
|
22
|
-
};
|
|
23
|
-
headerWrap?: boolean;
|
|
24
|
-
hideFooter?: boolean;
|
|
25
|
-
showLastBorder?: boolean;
|
|
26
|
-
filterData?: ITableFilterData;
|
|
27
|
-
sortData?: ITableSortData;
|
|
28
|
-
printData?: IPrintData;
|
|
29
|
-
additionsalOptions?: ReactNode;
|
|
30
|
-
selectedOptions?: ReactNode;
|
|
31
|
-
className?: string;
|
|
32
|
-
editable?: {
|
|
33
|
-
selectedItem: any;
|
|
34
|
-
setSelectedItem: (item: any) => void;
|
|
35
|
-
defaultDataValue?: any;
|
|
36
|
-
EditableRow?: FunctionComponent<ITableEditRow>;
|
|
37
|
-
onSubmit: (data: any, onSubmitCallback?: () => void) => void;
|
|
38
|
-
disabled?: boolean;
|
|
39
|
-
inputFocusRef?: RefObject<any>;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export interface ITableColumn {
|
|
43
|
-
id: string;
|
|
44
|
-
label?: string;
|
|
45
|
-
align?: 'center' | 'left' | 'right' | 'justify' | undefined;
|
|
46
|
-
hidden?: boolean;
|
|
47
|
-
unavailable?: boolean;
|
|
48
|
-
width?: string;
|
|
49
|
-
minWidth?: string;
|
|
50
|
-
colSpan?: number;
|
|
51
|
-
rowSpan?: number;
|
|
52
|
-
break?: boolean;
|
|
53
|
-
sortOptions?: {
|
|
54
|
-
asc: string;
|
|
55
|
-
desc: string;
|
|
56
|
-
label: string;
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
export interface ITableDataItem {
|
|
60
|
-
uuid: string;
|
|
61
|
-
onRowClick?: MouseEventHandler<HTMLTableRowElement>;
|
|
62
|
-
className?: string;
|
|
63
|
-
cells: {
|
|
64
|
-
[id: string]: {
|
|
65
|
-
value: any;
|
|
66
|
-
align?: ITableColumn['align'];
|
|
67
|
-
className?: string;
|
|
68
|
-
onClick?: MouseEventHandler<HTMLTableCellElement>;
|
|
69
|
-
link?: boolean;
|
|
70
|
-
tooltip?: string;
|
|
71
|
-
span?: number;
|
|
72
|
-
unclickable?: boolean;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
extendable?: {
|
|
76
|
-
element: ReactElement;
|
|
77
|
-
isLoading?: boolean;
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
export interface ITableFilterData {
|
|
81
|
-
columns: string[];
|
|
82
|
-
filters: ITableFilter;
|
|
83
|
-
activeFilterNo?: number;
|
|
84
|
-
additionalFilters?: ReactElement;
|
|
85
|
-
search: IAnyObject;
|
|
86
|
-
searchData: IAnyObject;
|
|
87
|
-
setSearchData: (search: IAnyObject) => void;
|
|
88
|
-
onSubmit: (search: IAnyObject) => void;
|
|
89
|
-
resetData?: IAnyObject;
|
|
90
|
-
excludeFromSearch?: string[];
|
|
91
|
-
}
|
|
92
|
-
export interface ITableFilterItem {
|
|
93
|
-
label: string;
|
|
94
|
-
field: ReactElement;
|
|
95
|
-
resetField: () => void;
|
|
96
|
-
}
|
|
97
|
-
export interface ITableFilter {
|
|
98
|
-
[id: string]: ITableFilterItem;
|
|
99
|
-
}
|
|
100
|
-
export interface ITableSortData {
|
|
101
|
-
sort: string;
|
|
102
|
-
setSort: (sort: string) => void;
|
|
103
|
-
sortOptions: ITableSort;
|
|
104
|
-
menuSize?: 's' | 'm' | 'l';
|
|
105
|
-
}
|
|
106
|
-
export interface ITableSort {
|
|
107
|
-
[id: string]: {
|
|
108
|
-
label: string;
|
|
109
|
-
asc: string;
|
|
110
|
-
desc: string;
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
export interface ITableColumnsData {
|
|
114
|
-
columns: ITableColumn[];
|
|
115
|
-
setColumns: (data: any) => void;
|
|
116
|
-
}
|
|
117
|
-
export interface IPrintData {
|
|
118
|
-
label: string;
|
|
119
|
-
organization?: {
|
|
120
|
-
name?: string;
|
|
121
|
-
taxId?: string;
|
|
122
|
-
registrationNumber?: string;
|
|
123
|
-
jbkjs?: string;
|
|
124
|
-
email?: string;
|
|
125
|
-
};
|
|
126
|
-
filters?: {
|
|
127
|
-
basic?: {
|
|
128
|
-
label: string;
|
|
129
|
-
value?: string;
|
|
130
|
-
}[];
|
|
131
|
-
date?: {
|
|
132
|
-
label: string;
|
|
133
|
-
from?: string;
|
|
134
|
-
to?: string;
|
|
135
|
-
}[];
|
|
136
|
-
};
|
|
137
|
-
getPrintData: (pagination: IPagination) => Promise<IAnyObject>;
|
|
138
|
-
formatPrintData: (data: any) => ITableDataItem[];
|
|
139
|
-
saveXlsx?: () => void;
|
|
140
|
-
totals?: ITableDataItem;
|
|
141
|
-
}
|
|
142
|
-
export interface IPagination {
|
|
143
|
-
limit: number;
|
|
144
|
-
offset: number;
|
|
145
|
-
}
|
|
146
|
-
export interface IServerSidePagination {
|
|
147
|
-
limit: number;
|
|
148
|
-
offset: number;
|
|
149
|
-
setLimit: Dispatch<SetStateAction<number>>;
|
|
150
|
-
setOffset: Dispatch<SetStateAction<number>>;
|
|
151
|
-
totalRows: number;
|
|
152
|
-
}
|
|
153
|
-
export interface ITableEditRow {
|
|
154
|
-
columns: ITableColumn[];
|
|
155
|
-
data: any;
|
|
156
|
-
setData: (data: any) => void;
|
|
157
|
-
item?: any;
|
|
158
|
-
clearItem: () => void;
|
|
159
|
-
defaultDataValue?: any;
|
|
160
|
-
inputFocusRef?: RefObject<any>;
|
|
161
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const formatDate: (date?: string) => string;
|
|
2
|
-
export declare const formatDateYMD: (date: string | Date) => string;
|
|
3
|
-
export declare const formatDateAndTime: (date?: string, withSeconds?: boolean) => string;
|
|
4
|
-
export declare const formatTime: (date?: string, withSeconds?: boolean) => string;
|
|
5
|
-
export declare const dateAddDays: (date: string, addDays: number) => string;
|
|
6
|
-
export declare const checkIfExpired: (date?: string) => boolean;
|
|
7
|
-
export declare const getCurrentDateFormatted: () => string;
|
|
8
|
-
export declare const getCurrentDateFormattedYMD: () => string;
|
|
9
|
-
export declare const getDaysLeft: (date?: string) => number;
|
|
10
|
-
export declare const formatYearMonth: (year: number, month: number) => string;
|