@inceptionbg/iui 2.0.22 → 2.0.24
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/NoAccessPage-CJisyKrk.js +2 -0
- package/dist/{NoAccessPage-BmizYfw0.js.map → NoAccessPage-CJisyKrk.js.map} +1 -1
- package/dist/NotFoundPage-BeRit0kr.js +2 -0
- package/dist/{NotFoundPage-Cv544vAr.js.map → NotFoundPage-BeRit0kr.js.map} +1 -1
- package/dist/icons/index.d.ts +3 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +452 -408
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/iui.css +1 -1
- package/idea/GridTable/GridTable.tsx +1 -1
- package/idea/Menu/Menu.tsx +5 -3
- package/idea/Menu/MenuItem.tsx +3 -2
- package/idea/Menu/hooks/useMenuControl.ts +1 -1
- package/idea/Menu.tsx +3 -2
- package/idea/NoAccessInfo.tsx +1 -1
- package/idea/Table/Components/Edit/ItemActionsMenu.tsx +2 -1
- package/idea/Table/Components/Edit/ItemEditOptionsButtons.tsx +1 -1
- package/idea/Table/Components/Edit/TableEditRow.tsx +3 -2
- package/idea/Table/Components/FilterItem.tsx +2 -2
- package/idea/Table/Components/Header/TableHeader.tsx +3 -2
- package/idea/Table/Components/Header/TableHeaderRow.tsx +2 -2
- package/idea/Table/Components/Print/CustomTablePrint.tsx +3 -2
- package/idea/Table/Components/SetSortList.tsx +2 -2
- package/idea/Table/Components/SetTableFilter.tsx +3 -2
- package/idea/Table/Components/TableFooter.tsx +6 -4
- package/idea/Table/Components/TableOptions.tsx +3 -2
- package/idea/Table/Table.tsx +3 -2
- package/idea/Table/hooks/useTableKeyboard.ts +2 -2
- package/package.json +1 -1
- package/src/assets/icons/duotone/faBell.ts +17 -17
- package/src/assets/icons/duotone/faCircleUser.ts +17 -17
- package/src/assets/icons/index.ts +25 -24
- package/src/assets/icons/light/faArrowDownShortWide.ts +15 -15
- package/src/assets/icons/light/faArrowDownWideShort.ts +15 -15
- package/src/assets/icons/light/faArrowLeft.ts +5 -5
- package/src/assets/icons/light/faArrowRight.ts +5 -5
- package/src/assets/icons/light/faArrowUpArrowDown.ts +15 -15
- package/src/assets/icons/light/faArrowUpRightFromSquare.ts +15 -15
- package/src/assets/icons/light/faArrowsToLine.ts +15 -15
- package/src/assets/icons/light/faArrowsUpDown.ts +15 -15
- package/src/assets/icons/light/faBell.ts +15 -15
- package/src/assets/icons/light/faBookmark.ts +15 -15
- package/src/assets/icons/light/faBookmarkSlash.ts +15 -15
- package/src/assets/icons/light/faCalendarPlus.ts +15 -15
- package/src/assets/icons/light/faCheck.ts +15 -15
- package/src/assets/icons/light/faChevronDown.ts +15 -15
- package/src/assets/icons/light/faChevronRight.ts +15 -15
- package/src/assets/icons/light/faCircleInfo.ts +15 -15
- package/src/assets/icons/light/faCircleXmark.ts +15 -15
- package/src/assets/icons/light/faClipboardCheck.ts +15 -15
- package/src/assets/icons/light/faClockRotateLeft.ts +15 -15
- package/src/assets/icons/light/faEllipsisVertical.ts +15 -15
- package/src/assets/icons/light/faEnvelope.ts +15 -15
- package/src/assets/icons/light/faEye.ts +15 -15
- package/src/assets/icons/light/faEyeSlash.ts +15 -15
- package/src/assets/icons/light/faFilter.ts +15 -15
- package/src/assets/icons/light/faGear.ts +15 -15
- package/src/assets/icons/light/faHouse.ts +15 -15
- package/src/assets/icons/light/faIdBadge.ts +15 -15
- package/src/assets/icons/light/faLineColumns.ts +15 -15
- package/src/assets/icons/light/faLink.ts +15 -15
- package/src/assets/icons/light/faMagnifyingGlass.ts +15 -15
- package/src/assets/icons/light/faPen.ts +15 -15
- package/src/assets/icons/light/faPrint.ts +15 -15
- package/src/assets/icons/light/faQuestion.ts +15 -15
- package/src/assets/icons/light/faRotateRight.ts +15 -15
- package/src/assets/icons/light/faTrashCan.ts +15 -15
- package/src/assets/icons/light/faTriangleExclamation.ts +15 -15
- package/src/assets/icons/light/faXmark.ts +15 -15
- package/src/assets/icons/regular/faArrowLeft.ts +15 -15
- package/src/assets/icons/regular/faArrowRightArrowLeft.ts +15 -15
- package/src/assets/icons/regular/faCircleCheck.ts +15 -15
- package/src/assets/icons/regular/faCircleExclamation.ts +15 -15
- package/src/assets/icons/regular/faCircleInfo.ts +15 -15
- package/src/assets/icons/regular/faFileArrowDown.ts +15 -15
- package/src/assets/icons/regular/faFilterCircleXmark.ts +15 -15
- package/src/assets/icons/regular/faTriangleExclamation.ts +15 -15
- package/src/assets/icons/solid/faAngleLeft.ts +15 -15
- package/src/assets/icons/solid/faAngleRight.ts +15 -15
- package/src/assets/icons/solid/faArrowDownWideShort.ts +15 -15
- package/src/assets/icons/solid/faCaretDown.ts +15 -15
- package/src/assets/icons/solid/faCheck.ts +15 -15
- package/src/assets/icons/solid/faEllipsisVertical.ts +15 -15
- package/src/assets/icons/solid/faEnvelopeDot.ts +15 -15
- package/src/assets/icons/solid/faFilter.ts +15 -15
- package/src/assets/icons/solid/faFloppyDisk.ts +15 -15
- package/src/assets/icons/solid/faGripDotsVertical.ts +15 -15
- package/src/assets/icons/solid/faListUl.ts +15 -15
- package/src/assets/icons/solid/faMinus.ts +15 -15
- package/src/assets/icons/solid/faPlus.ts +15 -15
- package/src/assets/icons/solid/faPrint.ts +15 -15
- package/src/assets/icons/solid/faRotateRight.ts +15 -15
- package/src/assets/icons/solid/faXmark.ts +15 -15
- package/src/components/Accordions/Accordions.tsx +75 -74
- package/src/components/Alert/Alert.tsx +31 -31
- package/src/components/Badge/DotBadge.tsx +16 -16
- package/src/components/Badge/NotificationBadge.tsx +29 -29
- package/src/components/Badge/PillBadge.tsx +13 -13
- package/src/components/Button/Button.tsx +56 -56
- package/src/components/Button/IconButton.tsx +51 -51
- package/src/components/Button/SplitButton.tsx +91 -91
- package/src/components/Dashboard/Dashboard.tsx +9 -9
- package/src/components/Dashboard/DashboardWidget.tsx +44 -44
- package/src/components/Dashboard/FastLinksWidget/FastLinksWidget.tsx +37 -37
- package/src/components/Dialog/Dialog.tsx +166 -162
- package/src/components/Dialog/components/DialogFooter.tsx +100 -98
- package/src/components/Header/Components/EnvBadge.tsx +17 -17
- package/src/components/Header/Components/ModuleSelect.tsx +68 -68
- package/src/components/Header/Components/Notifications.tsx +202 -208
- package/src/components/Header/Components/UserMenu.tsx +52 -52
- package/src/components/Header/Header.tsx +37 -36
- package/src/components/Helper/Collapse.tsx +53 -52
- package/src/components/Inputs/Checkbox.tsx +53 -53
- package/src/components/Inputs/CurrencyInput.tsx +124 -123
- package/src/components/Inputs/DateInput/DateInput.tsx +184 -183
- package/src/components/Inputs/DateInput/components/DatePartInput.tsx +159 -158
- package/src/components/Inputs/InputWrapper.tsx +95 -95
- package/src/components/Inputs/NumberInput.tsx +86 -86
- package/src/components/Inputs/PasswordInput.tsx +40 -39
- package/src/components/Inputs/PhoneInput/PhoneInput.tsx +108 -0
- package/src/components/Inputs/PhoneInput/utils/countryCode.ts +20 -0
- package/src/components/Inputs/Radio.tsx +59 -59
- package/src/components/Inputs/RadioGroup.tsx +48 -48
- package/src/components/Inputs/RadioLarge.tsx +39 -39
- package/src/components/Inputs/SearchInput.tsx +46 -45
- package/src/components/Inputs/Selects/Select.tsx +17 -17
- package/src/components/Inputs/Selects/components/CustomSelectComponents.tsx +20 -19
- package/src/components/Inputs/Selects/components/SelectWrapper.tsx +118 -118
- package/src/components/Inputs/Selects/utils/selectStyles.ts +101 -101
- package/src/components/Inputs/TextAreaInput.tsx +68 -67
- package/src/components/Inputs/TextInput.tsx +100 -99
- package/src/components/Inputs/TimeInput/TimeInput.tsx +81 -81
- package/src/components/List/List.tsx +21 -20
- package/src/components/List/ListItem.tsx +70 -69
- package/src/components/Loader/Loader.tsx +59 -53
- package/src/components/Loader/ProgressBar.tsx +41 -41
- package/src/components/Menu/Menu.tsx +81 -80
- package/src/components/Menu/MenuItem.tsx +46 -46
- package/src/components/Menu/NewMenu.tsx +63 -63
- package/src/components/Menu/hooks/useMenuPosition.tsx +116 -115
- package/src/components/Pullover/Pullover.tsx +197 -196
- package/src/components/Router/Router.tsx +52 -51
- package/src/components/Sidebar/AddButton.tsx +22 -22
- package/src/components/Sidebar/Sidebar.tsx +85 -83
- package/src/components/Sidebar/SidebarItem.tsx +84 -84
- package/src/components/Sidebar/types/ISidebar.ts +28 -28
- package/src/components/Table/Table.tsx +259 -258
- package/src/components/Table/components/columns/ColumnsList.tsx +60 -59
- package/src/components/Table/components/columns/TableColumnsEdit.tsx +114 -112
- package/src/components/Table/components/edit/TableEditRow.tsx +78 -77
- package/src/components/Table/components/filters/FilterItem.tsx +15 -15
- package/src/components/Table/components/filters/TableFilters.tsx +126 -125
- package/src/components/Table/components/footer/TableFooter.tsx +126 -124
- package/src/components/Table/components/header/TableHeader.tsx +40 -40
- package/src/components/Table/components/header/TableHeaderRow.tsx +57 -57
- package/src/components/Table/components/items/TableItemActions.tsx +78 -78
- package/src/components/Table/components/print/TablePrint.tsx +200 -199
- package/src/components/Table/components/select/TableSelect.tsx +50 -49
- package/src/components/Table/components/sort/TableSort.tsx +73 -72
- package/src/components/Table/components/templates/CreateTemplateDialog.tsx +58 -48
- package/src/components/Table/components/templates/TableTemplates.tsx +65 -112
- package/src/components/Table/components/templates/TemplatesPullover.tsx +88 -0
- package/src/components/Table/contexts/TableContext.tsx +116 -123
- package/src/components/Table/hooks/localHooks/useLocalTableColumns.tsx +70 -70
- package/src/components/Table/hooks/localHooks/useLocalTableData.tsx +84 -84
- package/src/components/Table/hooks/localHooks/useLocalTableKeyboard.ts +176 -177
- package/src/components/Table/hooks/localHooks/useLocalTablePagination.ts +12 -12
- package/src/components/Table/hooks/useTableColumns.ts +34 -34
- package/src/components/Table/hooks/useTableEdit.tsx +140 -140
- package/src/components/Table/hooks/useTableFilterFields.tsx +150 -150
- package/src/components/Table/hooks/useTablePagination.ts +19 -19
- package/src/components/Table/hooks/useTablePrint.ts +83 -83
- package/src/components/Table/hooks/useTableSearch.ts +31 -30
- package/src/components/Table/hooks/useTableSelect.ts +19 -19
- package/src/components/Table/hooks/useTableSort.ts +8 -8
- package/src/components/Tabs/Tabs.tsx +68 -67
- package/src/components/Tooltip/Tooltip.tsx +191 -200
- package/src/components/Tree/Tree.tsx +22 -22
- package/src/components/Tree/TreeItem.tsx +57 -56
- package/src/components/Wrappers/AppLayout.tsx +17 -17
- package/src/components/Wrappers/ConditionalWrapper.tsx +10 -10
- package/src/components/Wrappers/FormWrapper.tsx +84 -83
- package/src/components/Wrappers/PageLayout.tsx +156 -155
- package/src/hooks/useBackgroundClose.ts +19 -18
- package/src/hooks/useGetFocusableElements.ts +43 -42
- package/src/hooks/useIsMenuOpen.ts +11 -11
- package/src/hooks/useLocalPopoverControl.ts +32 -32
- package/src/hooks/useOnEsc.ts +14 -14
- package/src/hooks/usePopupControl.ts +22 -22
- package/src/hooks/useZendesk.ts +21 -21
- package/src/index.ts +379 -382
- package/src/pages/NoAccessPage.tsx +27 -27
- package/src/pages/NotFoundPage.tsx +26 -26
- package/src/styles/common/helpers/_size.scss +0 -3
- package/src/styles/components/_accordions.scss +2 -1
- package/src/styles/components/_buttonSplit.scss +4 -29
- package/src/styles/components/_dialog.scss +2 -2
- package/src/styles/components/_input.scss +9 -0
- package/src/styles/components/_page.scss +2 -3
- package/src/types/IBasic.ts +32 -31
- package/src/types/ICountryCode.ts +5 -0
- package/src/types/IError.ts +5 -5
- package/src/types/IHeader.ts +40 -40
- package/src/types/IInfo.ts +1 -1
- package/src/types/IKeyboard.ts +33 -33
- package/src/types/IMenu.ts +19 -19
- package/src/types/INotifications.ts +15 -15
- package/src/types/IPopup.ts +17 -17
- package/src/types/IRouter.ts +6 -6
- package/src/types/ISelect.ts +54 -54
- package/src/types/ITab.ts +1 -1
- package/src/types/ITable.ts +290 -279
- package/src/types/ITree.ts +6 -6
- package/src/utils/InputPatternValidation.ts +12 -12
- package/src/utils/dateUtils.ts +32 -32
- package/src/utils/fileUtils.ts +177 -177
- package/src/utils/i18n/i18nIUICyrilic.ts +119 -116
- package/src/utils/i18n/i18nIUILatin.ts +120 -117
- package/src/utils/i18n/i18nIUIMe.ts +118 -115
- package/src/utils/icons.ts +13 -13
- package/src/utils/localStorageHelper.ts +24 -24
- package/src/utils/logoUtils.ts +7 -7
- package/src/utils/numberUtils.ts +21 -21
- package/src/utils/objectUtils.ts +114 -114
- package/src/utils/popupUtils.ts +82 -82
- package/src/utils/rootDir.ts +1 -1
- package/src/utils/stringUtils.ts +18 -18
- package/src/utils/tableUtils.ts +130 -130
- package/src/utils/toasts.ts +6 -6
- package/src/utils/urlUtils.ts +4 -4
- package/tsconfig.json +1 -0
- package/dist/NoAccessPage-BmizYfw0.js +0 -2
- package/dist/NotFoundPage-Cv544vAr.js +0 -2
- package/src/components/Dialog/hooks/useDialogKeyboard.ts +0 -42
- package/src/components/Inputs/Select2/Select.tsx +0 -258
- package/src/components/Inputs/Select2/select.scss +0 -42
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,96 @@
|
|
|
1
|
-
export { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
2
1
|
import { IconDefinition, RotateProp } from '@fortawesome/fontawesome-svg-core';
|
|
3
2
|
export { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
+
import * as react_toastify from 'react-toastify';
|
|
4
|
+
export { ToastContainer, ToastContainerProps, toast } from 'react-toastify';
|
|
5
|
+
import * as react from 'react';
|
|
6
|
+
import { FC, ReactNode, Dispatch, SetStateAction, MouseEventHandler, ButtonHTMLAttributes, Ref, FormEvent, RefObject, ReactElement, MouseEvent, InputHTMLAttributes, FocusEventHandler, ComponentProps } from 'react';
|
|
7
|
+
export { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
8
|
+
export { DragDropContext, Draggable, Droppable } from '@hello-pangea/dnd';
|
|
4
9
|
export { default as clsx } from 'clsx';
|
|
5
10
|
import dayjs from 'dayjs';
|
|
6
11
|
export { default as dayjs } from 'dayjs';
|
|
7
|
-
export { DragDropContext, Draggable, Droppable } from '@hello-pangea/dnd';
|
|
8
|
-
import * as react_toastify from 'react-toastify';
|
|
9
|
-
export { ToastContainer } from 'react-toastify';
|
|
10
|
-
import * as react from 'react';
|
|
11
|
-
import { FC, MouseEventHandler, ButtonHTMLAttributes, Ref, FormEvent, ReactNode, RefObject, ReactElement, MouseEvent, Dispatch, SetStateAction, ComponentProps, InputHTMLAttributes, FocusEventHandler } from 'react';
|
|
12
12
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
|
+
type IInfoType = 'success' | 'info' | 'warning' | 'danger';
|
|
15
|
+
|
|
16
|
+
interface IAlertProps {
|
|
17
|
+
text?: string;
|
|
18
|
+
severity: IInfoType;
|
|
19
|
+
fitContent?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
children?: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
declare const Alert: FC<IAlertProps>;
|
|
24
|
+
|
|
25
|
+
interface INotification {
|
|
26
|
+
uuid: string;
|
|
27
|
+
type: INotificationType;
|
|
28
|
+
values?: {
|
|
29
|
+
key: string;
|
|
30
|
+
value: string;
|
|
31
|
+
url?: string;
|
|
32
|
+
format?: 'TRANSLATE' | 'DATE' | 'DATE_TIME';
|
|
33
|
+
}[];
|
|
34
|
+
seen: boolean;
|
|
35
|
+
event: string;
|
|
36
|
+
organization?: string;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
}
|
|
39
|
+
type INotificationType = 'WEB' | 'EMAIL';
|
|
40
|
+
|
|
41
|
+
interface INotificationsProps {
|
|
42
|
+
notificationCount: number;
|
|
43
|
+
notifications: INotification[];
|
|
44
|
+
isLoading: boolean;
|
|
45
|
+
menuControl: {
|
|
46
|
+
isOpen: boolean;
|
|
47
|
+
onClose: () => void;
|
|
48
|
+
onOpen: () => void;
|
|
49
|
+
};
|
|
50
|
+
seen: boolean | null;
|
|
51
|
+
setSeen: Dispatch<SetStateAction<boolean | null>>;
|
|
52
|
+
markAsSeen: (uuid: string) => void;
|
|
53
|
+
markAllAsSeen: () => void;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface ISidebarItem {
|
|
57
|
+
label: string;
|
|
58
|
+
icon?: IconDefinition;
|
|
59
|
+
to?: string;
|
|
60
|
+
content?: ISidebarSubItem[];
|
|
61
|
+
menu?: {
|
|
62
|
+
content: ISidebarSubItem[];
|
|
63
|
+
openedMenu: string;
|
|
64
|
+
setOpenedMenu: (label: string) => void;
|
|
65
|
+
};
|
|
66
|
+
hidden?: boolean;
|
|
67
|
+
badge?: number;
|
|
68
|
+
addUrl?: string;
|
|
69
|
+
}
|
|
70
|
+
interface ISidebarSubItem {
|
|
71
|
+
label: string;
|
|
72
|
+
to?: string;
|
|
73
|
+
content?: ISidebarItem[];
|
|
74
|
+
hidden?: boolean;
|
|
75
|
+
tooltip?: string;
|
|
76
|
+
badge?: number;
|
|
77
|
+
addUrl?: string;
|
|
78
|
+
primary?: boolean;
|
|
79
|
+
collapsed?: boolean;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
interface ITableSearchProps<T> {
|
|
83
|
+
setOffset: Dispatch<SetStateAction<number>>;
|
|
84
|
+
resetSelectedRows?: () => void;
|
|
85
|
+
defaultSearch?: T;
|
|
86
|
+
}
|
|
87
|
+
declare const useTableSearch: <T>({ setOffset, resetSelectedRows, defaultSearch, }: ITableSearchProps<T>) => {
|
|
88
|
+
search: T;
|
|
89
|
+
searchData: T;
|
|
90
|
+
setSearchData: Dispatch<SetStateAction<T>>;
|
|
91
|
+
onSearch: (filters: T) => void;
|
|
92
|
+
};
|
|
93
|
+
|
|
14
94
|
type IButtonColor = 'primary' | 'neutral' | 'danger';
|
|
15
95
|
type IButtonVariant = 'solid' | 'outlined' | 'simple';
|
|
16
96
|
interface IButtonProps$1 {
|
|
@@ -79,6 +159,28 @@ interface IValueLabel {
|
|
|
79
159
|
label: string;
|
|
80
160
|
}
|
|
81
161
|
|
|
162
|
+
interface IError {
|
|
163
|
+
errorMessage: string;
|
|
164
|
+
errorCode?: string;
|
|
165
|
+
values?: Record<string, string>;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
type IMenuPlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
169
|
+
interface IMenuItem {
|
|
170
|
+
label: string;
|
|
171
|
+
icon?: IconDefinition;
|
|
172
|
+
iconRotation?: RotateProp;
|
|
173
|
+
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
174
|
+
to?: string;
|
|
175
|
+
badge?: number;
|
|
176
|
+
active?: boolean;
|
|
177
|
+
disabled?: boolean;
|
|
178
|
+
hidden?: boolean;
|
|
179
|
+
withDevider?: boolean;
|
|
180
|
+
keepOpen?: boolean;
|
|
181
|
+
className?: string;
|
|
182
|
+
}
|
|
183
|
+
|
|
82
184
|
interface IPopupControlRef {
|
|
83
185
|
onOpen: () => void;
|
|
84
186
|
onClose: () => void;
|
|
@@ -94,6 +196,40 @@ interface IPopupControl {
|
|
|
94
196
|
onClose: () => void;
|
|
95
197
|
}
|
|
96
198
|
|
|
199
|
+
interface IHeaderAction {
|
|
200
|
+
label: string;
|
|
201
|
+
icon?: IconDefinition;
|
|
202
|
+
iconRotation?: RotateProp;
|
|
203
|
+
to?: string;
|
|
204
|
+
onClick?: () => void;
|
|
205
|
+
solid?: boolean;
|
|
206
|
+
color?: IButtonColor;
|
|
207
|
+
disabled?: boolean;
|
|
208
|
+
hidden?: boolean;
|
|
209
|
+
}
|
|
210
|
+
type IHeaderUserMenuProps = {
|
|
211
|
+
isOpen: boolean;
|
|
212
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
213
|
+
userName?: string;
|
|
214
|
+
organizationName?: string;
|
|
215
|
+
menuItems: IMenuItem[];
|
|
216
|
+
inviteCount?: number;
|
|
217
|
+
controls: {
|
|
218
|
+
myAccountControl: IPopupControl;
|
|
219
|
+
changeOrgControl: IPopupControl;
|
|
220
|
+
orgInvitesControl: IPopupControl;
|
|
221
|
+
};
|
|
222
|
+
refetchOrganizationInvites?: () => void;
|
|
223
|
+
HeaderUserMenuDialogs: FC<{
|
|
224
|
+
controls: {
|
|
225
|
+
myAccountControl: IPopupControl;
|
|
226
|
+
changeOrgControl: IPopupControl;
|
|
227
|
+
orgInvitesControl: IPopupControl;
|
|
228
|
+
};
|
|
229
|
+
refetchOrganizationInvites?: () => void;
|
|
230
|
+
}>;
|
|
231
|
+
};
|
|
232
|
+
|
|
97
233
|
interface ITable<T = unknown> {
|
|
98
234
|
id?: string;
|
|
99
235
|
columnData: ITableColumnsData;
|
|
@@ -251,13 +387,14 @@ interface ITableEdit<T = unknown> {
|
|
|
251
387
|
setSelectedItem: (item: ITableDataItem<T> | null) => void;
|
|
252
388
|
editData: Partial<T>;
|
|
253
389
|
setEditData: Dispatch<SetStateAction<Partial<T>>>;
|
|
254
|
-
onSubmit:
|
|
390
|
+
onSubmit: ITableEditSubmit<T>;
|
|
255
391
|
cells: ITableDataItemCells;
|
|
256
392
|
defaultDataValue?: T;
|
|
257
393
|
addDisabled?: boolean;
|
|
258
394
|
addLabel?: string;
|
|
259
395
|
keepEditOnSubmit?: boolean;
|
|
260
396
|
}
|
|
397
|
+
type ITableEditSubmit<T> = (data: T, onSuccess: () => void) => void;
|
|
261
398
|
interface ITableItemDeleteData {
|
|
262
399
|
hasAccess: boolean;
|
|
263
400
|
itemToDeleteUuids: string[];
|
|
@@ -322,6 +459,10 @@ interface IReportTemplate {
|
|
|
322
459
|
name: string;
|
|
323
460
|
identifier: string;
|
|
324
461
|
filterValues?: IReportTemplateFilterValue[];
|
|
462
|
+
options?: {
|
|
463
|
+
key: string;
|
|
464
|
+
value?: any;
|
|
465
|
+
}[];
|
|
325
466
|
columns: string[];
|
|
326
467
|
organization?: ISimpleObject;
|
|
327
468
|
subsystem?: string;
|
|
@@ -339,9 +480,13 @@ interface IReportTemplateFilterValue {
|
|
|
339
480
|
type: 'STRING' | 'ARRAY' | 'OBJECT' | 'BOOLEAN';
|
|
340
481
|
}
|
|
341
482
|
interface IReportTemplateData {
|
|
342
|
-
searchData
|
|
483
|
+
searchData?: IAnyObject;
|
|
343
484
|
visibleColumns?: string[];
|
|
344
485
|
sorts?: string[];
|
|
486
|
+
options?: {
|
|
487
|
+
key: string;
|
|
488
|
+
value?: any;
|
|
489
|
+
}[];
|
|
345
490
|
}
|
|
346
491
|
declare const tableCustomLimit1000: number[];
|
|
347
492
|
|
|
@@ -364,57 +509,9 @@ interface ITableKeyboardActionsBase {
|
|
|
364
509
|
}) => IKeyboardAction[];
|
|
365
510
|
}
|
|
366
511
|
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
icon?: IconDefinition;
|
|
371
|
-
iconRotation?: RotateProp;
|
|
372
|
-
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
373
|
-
to?: string;
|
|
374
|
-
badge?: number;
|
|
375
|
-
active?: boolean;
|
|
376
|
-
disabled?: boolean;
|
|
377
|
-
hidden?: boolean;
|
|
378
|
-
withDevider?: boolean;
|
|
379
|
-
keepOpen?: boolean;
|
|
380
|
-
className?: string;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
interface IError {
|
|
384
|
-
errorMessage: string;
|
|
385
|
-
errorCode?: string;
|
|
386
|
-
values?: Record<string, string>;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
interface INotification {
|
|
390
|
-
uuid: string;
|
|
391
|
-
type: INotificationType;
|
|
392
|
-
values?: {
|
|
393
|
-
key: string;
|
|
394
|
-
value: string;
|
|
395
|
-
url?: string;
|
|
396
|
-
format?: 'TRANSLATE' | 'DATE' | 'DATE_TIME';
|
|
397
|
-
}[];
|
|
398
|
-
seen: boolean;
|
|
399
|
-
event: string;
|
|
400
|
-
organization?: string;
|
|
401
|
-
createdAt: string;
|
|
402
|
-
}
|
|
403
|
-
type INotificationType = 'WEB' | 'EMAIL';
|
|
404
|
-
|
|
405
|
-
interface INotificationsProps {
|
|
406
|
-
notificationCount: number;
|
|
407
|
-
notifications: INotification[];
|
|
408
|
-
isLoading: boolean;
|
|
409
|
-
menuControl: {
|
|
410
|
-
isOpen: boolean;
|
|
411
|
-
onClose: () => void;
|
|
412
|
-
onOpen: () => void;
|
|
413
|
-
};
|
|
414
|
-
seen: boolean | null;
|
|
415
|
-
setSeen: Dispatch<SetStateAction<boolean | null>>;
|
|
416
|
-
markAsSeen: (uuid: string) => void;
|
|
417
|
-
markAllAsSeen: () => void;
|
|
512
|
+
interface IRoute {
|
|
513
|
+
path: string;
|
|
514
|
+
element: ReactElement;
|
|
418
515
|
}
|
|
419
516
|
|
|
420
517
|
interface ISelectData extends IValueLabel {
|
|
@@ -481,159 +578,42 @@ interface ITreeItem {
|
|
|
481
578
|
children?: ITreeItem[];
|
|
482
579
|
}
|
|
483
580
|
|
|
484
|
-
interface
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
disabled?: boolean;
|
|
493
|
-
hidden?: boolean;
|
|
494
|
-
}
|
|
495
|
-
type IHeaderUserMenuProps = {
|
|
496
|
-
isOpen: boolean;
|
|
497
|
-
setIsOpen: (isOpen: boolean) => void;
|
|
498
|
-
userName?: string;
|
|
499
|
-
organizationName?: string;
|
|
500
|
-
menuItems: IMenuItem[];
|
|
501
|
-
inviteCount?: number;
|
|
502
|
-
controls: {
|
|
503
|
-
myAccountControl: IPopupControl;
|
|
504
|
-
changeOrgControl: IPopupControl;
|
|
505
|
-
orgInvitesControl: IPopupControl;
|
|
581
|
+
interface Props$p {
|
|
582
|
+
tabs: ITab[];
|
|
583
|
+
initialValue?: string;
|
|
584
|
+
compact?: boolean;
|
|
585
|
+
keepContentInDom?: boolean;
|
|
586
|
+
control?: {
|
|
587
|
+
value: string;
|
|
588
|
+
setValue: (value: string) => void;
|
|
506
589
|
};
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
controls: {
|
|
510
|
-
myAccountControl: IPopupControl;
|
|
511
|
-
changeOrgControl: IPopupControl;
|
|
512
|
-
orgInvitesControl: IPopupControl;
|
|
513
|
-
};
|
|
514
|
-
refetchOrganizationInvites?: () => void;
|
|
515
|
-
}>;
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
interface IRoute {
|
|
519
|
-
path: string;
|
|
520
|
-
element: ReactElement;
|
|
590
|
+
className?: string;
|
|
591
|
+
classNameContent?: string;
|
|
521
592
|
}
|
|
593
|
+
declare const Accordions: FC<Props$p>;
|
|
522
594
|
|
|
523
|
-
interface
|
|
524
|
-
label: string;
|
|
525
|
-
icon?: IconDefinition;
|
|
526
|
-
to?: string;
|
|
527
|
-
content?: ISidebarSubItem[];
|
|
528
|
-
menu?: {
|
|
529
|
-
content: ISidebarSubItem[];
|
|
530
|
-
openedMenu: string;
|
|
531
|
-
setOpenedMenu: (label: string) => void;
|
|
532
|
-
};
|
|
533
|
-
hidden?: boolean;
|
|
534
|
-
badge?: number;
|
|
535
|
-
addUrl?: string;
|
|
536
|
-
}
|
|
537
|
-
interface ISidebarSubItem {
|
|
538
|
-
label: string;
|
|
539
|
-
to?: string;
|
|
540
|
-
content?: ISidebarItem[];
|
|
541
|
-
hidden?: boolean;
|
|
542
|
-
tooltip?: string;
|
|
543
|
-
badge?: number;
|
|
544
|
-
addUrl?: string;
|
|
545
|
-
primary?: boolean;
|
|
546
|
-
collapsed?: boolean;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
interface Props$n {
|
|
550
|
-
modules: {
|
|
551
|
-
name: string;
|
|
552
|
-
icon: IconDefinition;
|
|
553
|
-
disabled?: boolean;
|
|
554
|
-
url: string;
|
|
555
|
-
}[];
|
|
556
|
-
activeModule: {
|
|
557
|
-
name: string;
|
|
558
|
-
icon: IconDefinition;
|
|
559
|
-
} | null;
|
|
560
|
-
}
|
|
561
|
-
declare const ModuleSelect: FC<Props$n>;
|
|
562
|
-
|
|
563
|
-
interface Props$m {
|
|
564
|
-
customTitle?: string;
|
|
565
|
-
modulesProps?: ComponentProps<typeof ModuleSelect>;
|
|
566
|
-
userMenuProps: IHeaderUserMenuProps;
|
|
567
|
-
notificationsProps?: INotificationsProps;
|
|
568
|
-
children?: ReactNode;
|
|
569
|
-
}
|
|
570
|
-
declare const Header: FC<Props$m>;
|
|
571
|
-
|
|
572
|
-
type IOrgLogo = 'MTS' | 'PPL' | 'INC';
|
|
573
|
-
|
|
574
|
-
interface ISidebarProps {
|
|
575
|
-
items: ISidebarItem[][];
|
|
576
|
-
logo?: IOrgLogo;
|
|
577
|
-
customLogo?: string;
|
|
578
|
-
appVersion?: string;
|
|
579
|
-
}
|
|
580
|
-
declare const Sidebar: FC<ISidebarProps>;
|
|
581
|
-
|
|
582
|
-
interface Props$l {
|
|
583
|
-
fullScreenRoutes: IRoute[];
|
|
584
|
-
appRoutes: IRoute[];
|
|
585
|
-
header: ComponentProps<typeof Header>;
|
|
586
|
-
sidebar: ComponentProps<typeof Sidebar>;
|
|
587
|
-
}
|
|
588
|
-
declare const Router: FC<Props$l>;
|
|
589
|
-
|
|
590
|
-
interface Props$k {
|
|
591
|
-
tabs: ITab[];
|
|
592
|
-
initialValue?: string;
|
|
593
|
-
compact?: boolean;
|
|
594
|
-
keepContentInDom?: boolean;
|
|
595
|
-
control?: {
|
|
596
|
-
value: string;
|
|
597
|
-
setValue: (value: string) => void;
|
|
598
|
-
};
|
|
599
|
-
className?: string;
|
|
600
|
-
classNameContent?: string;
|
|
601
|
-
}
|
|
602
|
-
declare const Accordions: FC<Props$k>;
|
|
603
|
-
|
|
604
|
-
type IInfoType = 'success' | 'info' | 'warning' | 'danger';
|
|
605
|
-
|
|
606
|
-
interface IAlertProps {
|
|
607
|
-
text?: string;
|
|
608
|
-
severity: IInfoType;
|
|
609
|
-
fitContent?: boolean;
|
|
610
|
-
className?: string;
|
|
611
|
-
children?: ReactNode;
|
|
612
|
-
}
|
|
613
|
-
declare const Alert: FC<IAlertProps>;
|
|
614
|
-
|
|
615
|
-
interface Props$j {
|
|
595
|
+
interface Props$o {
|
|
616
596
|
label: string;
|
|
617
597
|
color: IInfoType | 'gray';
|
|
618
598
|
className?: string;
|
|
619
599
|
}
|
|
620
|
-
declare const DotBadge: FC<Props$
|
|
600
|
+
declare const DotBadge: FC<Props$o>;
|
|
621
601
|
|
|
622
|
-
interface Props$
|
|
602
|
+
interface Props$n {
|
|
623
603
|
number?: number;
|
|
624
604
|
className?: string;
|
|
625
605
|
size?: 's' | 'm';
|
|
626
606
|
children?: ReactNode;
|
|
627
607
|
color?: IInfoType | 'primary';
|
|
628
608
|
}
|
|
629
|
-
declare const NotificationBadge: FC<Props$
|
|
609
|
+
declare const NotificationBadge: FC<Props$n>;
|
|
630
610
|
|
|
631
|
-
interface Props$
|
|
611
|
+
interface Props$m {
|
|
632
612
|
label: string;
|
|
633
613
|
color: IInfoType | 'gray';
|
|
634
614
|
className?: string;
|
|
635
615
|
}
|
|
636
|
-
declare const PillBadge: FC<Props$
|
|
616
|
+
declare const PillBadge: FC<Props$m>;
|
|
637
617
|
|
|
638
618
|
interface IIconButtonProps {
|
|
639
619
|
icon: IconDefinition;
|
|
@@ -663,6 +643,7 @@ interface IButtonProps {
|
|
|
663
643
|
disabled?: boolean;
|
|
664
644
|
type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
665
645
|
className?: string;
|
|
646
|
+
fullWidth?: boolean;
|
|
666
647
|
buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
667
648
|
ref?: Ref<HTMLButtonElement>;
|
|
668
649
|
}
|
|
@@ -672,7 +653,7 @@ declare const Dashboard: FC<{
|
|
|
672
653
|
children: ReactNode;
|
|
673
654
|
}>;
|
|
674
655
|
|
|
675
|
-
interface Props$
|
|
656
|
+
interface Props$l {
|
|
676
657
|
title: string;
|
|
677
658
|
icon?: any;
|
|
678
659
|
type?: 'warning' | 'info';
|
|
@@ -680,16 +661,16 @@ interface Props$g {
|
|
|
680
661
|
isLoading?: boolean;
|
|
681
662
|
children: ReactNode;
|
|
682
663
|
}
|
|
683
|
-
declare const DashboardWidget: FC<Props$
|
|
664
|
+
declare const DashboardWidget: FC<Props$l>;
|
|
684
665
|
|
|
685
|
-
interface Props$
|
|
666
|
+
interface Props$k {
|
|
686
667
|
links: {
|
|
687
668
|
icon?: IconDefinition;
|
|
688
669
|
label: string;
|
|
689
670
|
onClick: () => void;
|
|
690
671
|
}[];
|
|
691
672
|
}
|
|
692
|
-
declare const FastLinksWidget: FC<Props$
|
|
673
|
+
declare const FastLinksWidget: FC<Props$k>;
|
|
693
674
|
|
|
694
675
|
interface IDialogFooterActions {
|
|
695
676
|
confirmButton?: {
|
|
@@ -719,7 +700,7 @@ interface IDialogFooterActions {
|
|
|
719
700
|
};
|
|
720
701
|
}
|
|
721
702
|
|
|
722
|
-
interface Props$
|
|
703
|
+
interface Props$j {
|
|
723
704
|
control: ILocalPopupControl;
|
|
724
705
|
title?: string;
|
|
725
706
|
titleEl?: ReactNode;
|
|
@@ -735,17 +716,18 @@ interface Props$e {
|
|
|
735
716
|
type?: IInfoType;
|
|
736
717
|
size?: 'm' | 'l' | 'xl';
|
|
737
718
|
className?: string;
|
|
719
|
+
classNameContent?: string;
|
|
738
720
|
children?: ReactNode;
|
|
739
721
|
}
|
|
740
|
-
declare const Dialog: FC<Props$
|
|
722
|
+
declare const Dialog: FC<Props$j>;
|
|
741
723
|
|
|
742
|
-
interface Props$
|
|
724
|
+
interface Props$i {
|
|
743
725
|
isOpen: boolean;
|
|
744
726
|
children: ReactNode;
|
|
745
727
|
keepContentInDom?: boolean;
|
|
746
728
|
className?: string;
|
|
747
729
|
}
|
|
748
|
-
declare const Collapse: FC<Props$
|
|
730
|
+
declare const Collapse: FC<Props$i>;
|
|
749
731
|
|
|
750
732
|
interface ICheckboxProps {
|
|
751
733
|
label?: string;
|
|
@@ -799,36 +781,6 @@ interface IDateInputProps {
|
|
|
799
781
|
}
|
|
800
782
|
declare const DateInput: FC<IDateInputProps>;
|
|
801
783
|
|
|
802
|
-
interface ITimeInputProps {
|
|
803
|
-
time: string;
|
|
804
|
-
setTime: (newTime: string) => void;
|
|
805
|
-
label?: string;
|
|
806
|
-
disabled?: boolean;
|
|
807
|
-
required?: boolean;
|
|
808
|
-
isClearable?: boolean;
|
|
809
|
-
className?: string;
|
|
810
|
-
}
|
|
811
|
-
declare const TimeInput: FC<ITimeInputProps>;
|
|
812
|
-
|
|
813
|
-
interface ITextAreaInputProps {
|
|
814
|
-
label: string;
|
|
815
|
-
value?: string;
|
|
816
|
-
setValue: (value: string) => void;
|
|
817
|
-
required?: boolean;
|
|
818
|
-
disabled?: boolean;
|
|
819
|
-
autoFocus?: boolean;
|
|
820
|
-
rows?: number;
|
|
821
|
-
resize?: boolean;
|
|
822
|
-
placeholder?: string;
|
|
823
|
-
helperText?: string;
|
|
824
|
-
errorText?: string;
|
|
825
|
-
className?: string;
|
|
826
|
-
inputProps?: InputHTMLAttributes<HTMLTextAreaElement>;
|
|
827
|
-
error?: boolean;
|
|
828
|
-
ref?: Ref<HTMLTextAreaElement>;
|
|
829
|
-
}
|
|
830
|
-
declare const TextAreaInput: FC<ITextAreaInputProps>;
|
|
831
|
-
|
|
832
784
|
interface INumberInputProps {
|
|
833
785
|
label?: string;
|
|
834
786
|
value?: string | number;
|
|
@@ -869,6 +821,19 @@ interface IPasswordInputProps {
|
|
|
869
821
|
}
|
|
870
822
|
declare const PasswordInput: FC<IPasswordInputProps>;
|
|
871
823
|
|
|
824
|
+
interface Props$h {
|
|
825
|
+
label?: string;
|
|
826
|
+
value?: string;
|
|
827
|
+
setValue: (value: string) => void;
|
|
828
|
+
helperText?: string;
|
|
829
|
+
placeholder?: string;
|
|
830
|
+
required?: boolean;
|
|
831
|
+
disabled?: boolean;
|
|
832
|
+
className?: string;
|
|
833
|
+
ref?: Ref<HTMLInputElement>;
|
|
834
|
+
}
|
|
835
|
+
declare const PhoneInput: FC<Props$h>;
|
|
836
|
+
|
|
872
837
|
interface IRadioProps {
|
|
873
838
|
label?: string;
|
|
874
839
|
desc?: string;
|
|
@@ -884,7 +849,7 @@ interface IRadioProps {
|
|
|
884
849
|
}
|
|
885
850
|
declare const Radio: FC<IRadioProps>;
|
|
886
851
|
|
|
887
|
-
interface Props$
|
|
852
|
+
interface Props$g {
|
|
888
853
|
title?: string | ReactElement;
|
|
889
854
|
desc?: string | ReactElement;
|
|
890
855
|
value: string;
|
|
@@ -894,7 +859,7 @@ interface Props$c {
|
|
|
894
859
|
className?: string;
|
|
895
860
|
children?: ReactNode;
|
|
896
861
|
}
|
|
897
|
-
declare const RadioLarge: FC<Props$
|
|
862
|
+
declare const RadioLarge: FC<Props$g>;
|
|
898
863
|
|
|
899
864
|
interface IProps {
|
|
900
865
|
label?: string;
|
|
@@ -908,6 +873,25 @@ declare const Select: FC<Omit<BasicSelectProps, 'variant'>>;
|
|
|
908
873
|
declare const SelectAsyncPaginate: FC<Omit<AsyncSelectProps, 'variant'>>;
|
|
909
874
|
declare const SelectCreatable: FC<Omit<CreatableSelectProps, 'variant'>>;
|
|
910
875
|
|
|
876
|
+
interface ITextAreaInputProps {
|
|
877
|
+
label: string;
|
|
878
|
+
value?: string;
|
|
879
|
+
setValue: (value: string) => void;
|
|
880
|
+
required?: boolean;
|
|
881
|
+
disabled?: boolean;
|
|
882
|
+
autoFocus?: boolean;
|
|
883
|
+
rows?: number;
|
|
884
|
+
resize?: boolean;
|
|
885
|
+
placeholder?: string;
|
|
886
|
+
helperText?: string;
|
|
887
|
+
errorText?: string;
|
|
888
|
+
className?: string;
|
|
889
|
+
inputProps?: InputHTMLAttributes<HTMLTextAreaElement>;
|
|
890
|
+
error?: boolean;
|
|
891
|
+
ref?: Ref<HTMLTextAreaElement>;
|
|
892
|
+
}
|
|
893
|
+
declare const TextAreaInput: FC<ITextAreaInputProps>;
|
|
894
|
+
|
|
911
895
|
interface ITextInputProps {
|
|
912
896
|
id?: string;
|
|
913
897
|
label?: string;
|
|
@@ -937,6 +921,17 @@ interface ITextInputProps {
|
|
|
937
921
|
}
|
|
938
922
|
declare const TextInput: FC<ITextInputProps>;
|
|
939
923
|
|
|
924
|
+
interface ITimeInputProps {
|
|
925
|
+
time: string;
|
|
926
|
+
setTime: (newTime: string) => void;
|
|
927
|
+
label?: string;
|
|
928
|
+
disabled?: boolean;
|
|
929
|
+
required?: boolean;
|
|
930
|
+
isClearable?: boolean;
|
|
931
|
+
className?: string;
|
|
932
|
+
}
|
|
933
|
+
declare const TimeInput: FC<ITimeInputProps>;
|
|
934
|
+
|
|
940
935
|
interface IListItemAction {
|
|
941
936
|
icon: IconDefinition;
|
|
942
937
|
onClick: () => void;
|
|
@@ -954,13 +949,13 @@ interface IListItem {
|
|
|
954
949
|
disabled?: boolean;
|
|
955
950
|
}
|
|
956
951
|
|
|
957
|
-
interface Props$
|
|
952
|
+
interface Props$f {
|
|
958
953
|
items?: IListItem[];
|
|
959
954
|
noItemsMessage?: string;
|
|
960
955
|
}
|
|
961
|
-
declare const List: FC<Props$
|
|
956
|
+
declare const List: FC<Props$f>;
|
|
962
957
|
|
|
963
|
-
interface Props$
|
|
958
|
+
interface Props$e {
|
|
964
959
|
isLoading: boolean;
|
|
965
960
|
isFullPage?: boolean;
|
|
966
961
|
classNameLoader?: string;
|
|
@@ -969,19 +964,19 @@ interface Props$a {
|
|
|
969
964
|
children: ReactElement | ReactNode;
|
|
970
965
|
}>;
|
|
971
966
|
}
|
|
972
|
-
declare const Loader: FC<Props$
|
|
967
|
+
declare const Loader: FC<Props$e>;
|
|
973
968
|
declare const FullScreenLoader: FC<{
|
|
974
969
|
isLoading: boolean;
|
|
975
970
|
}>;
|
|
976
971
|
declare const LazyLoader: FC;
|
|
977
972
|
|
|
978
|
-
interface Props$
|
|
973
|
+
interface Props$d {
|
|
979
974
|
progress?: number;
|
|
980
975
|
label?: string;
|
|
981
976
|
}
|
|
982
|
-
declare const ProgressBar: FC<Props$
|
|
977
|
+
declare const ProgressBar: FC<Props$d>;
|
|
983
978
|
|
|
984
|
-
interface Props$
|
|
979
|
+
interface Props$c {
|
|
985
980
|
id?: string;
|
|
986
981
|
isOpen: boolean;
|
|
987
982
|
onClose: () => void;
|
|
@@ -992,71 +987,11 @@ interface Props$8 {
|
|
|
992
987
|
className?: string;
|
|
993
988
|
children?: ReactNode;
|
|
994
989
|
}
|
|
995
|
-
declare const Menu: FC<Props$
|
|
990
|
+
declare const Menu: FC<Props$c>;
|
|
996
991
|
|
|
997
992
|
declare const MenuItem: FC<IMenuItem>;
|
|
998
993
|
|
|
999
|
-
interface Props$
|
|
1000
|
-
tabs: ITab[];
|
|
1001
|
-
initialValue?: string;
|
|
1002
|
-
control?: {
|
|
1003
|
-
value: string;
|
|
1004
|
-
setValue: (value: string) => void;
|
|
1005
|
-
};
|
|
1006
|
-
onChange?: (value: string) => void;
|
|
1007
|
-
noWrap?: boolean;
|
|
1008
|
-
className?: string;
|
|
1009
|
-
classNameContent?: string;
|
|
1010
|
-
}
|
|
1011
|
-
declare const Tabs: FC<Props$7>;
|
|
1012
|
-
|
|
1013
|
-
type TooltipPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
1014
|
-
interface Props$6 {
|
|
1015
|
-
label?: string;
|
|
1016
|
-
position?: TooltipPosition;
|
|
1017
|
-
disabled?: boolean;
|
|
1018
|
-
singleLine?: boolean;
|
|
1019
|
-
className?: string;
|
|
1020
|
-
children: ReactElement;
|
|
1021
|
-
ref?: Ref<HTMLElement> | null;
|
|
1022
|
-
}
|
|
1023
|
-
declare const Tooltip: FC<Props$6>;
|
|
1024
|
-
|
|
1025
|
-
interface Props$5 {
|
|
1026
|
-
data: ITreeItem[];
|
|
1027
|
-
selectedItemUuid?: string;
|
|
1028
|
-
onClick: (itemUuid: string) => void;
|
|
1029
|
-
}
|
|
1030
|
-
declare const Tree: FC<Props$5>;
|
|
1031
|
-
|
|
1032
|
-
interface Props$4 {
|
|
1033
|
-
condition: boolean;
|
|
1034
|
-
wrapper: (children: ReactNode) => ReactNode;
|
|
1035
|
-
children: ReactNode;
|
|
1036
|
-
}
|
|
1037
|
-
declare const ConditionalWrapper: FC<Props$4>;
|
|
1038
|
-
|
|
1039
|
-
interface IPageLayoutProps {
|
|
1040
|
-
breadcrumbs?: (string | undefined)[];
|
|
1041
|
-
actions?: IHeaderAction[];
|
|
1042
|
-
moreActions?: IMenuItem[];
|
|
1043
|
-
backButton?: {
|
|
1044
|
-
url?: string;
|
|
1045
|
-
active: boolean;
|
|
1046
|
-
};
|
|
1047
|
-
help?: {
|
|
1048
|
-
title: string;
|
|
1049
|
-
descEl: ReactNode;
|
|
1050
|
-
};
|
|
1051
|
-
noAccess?: boolean;
|
|
1052
|
-
isInitiallyLoading?: boolean;
|
|
1053
|
-
isLoading?: boolean;
|
|
1054
|
-
hideFooter?: boolean;
|
|
1055
|
-
children?: ReactNode;
|
|
1056
|
-
}
|
|
1057
|
-
declare const PageLayout: FC<IPageLayoutProps>;
|
|
1058
|
-
|
|
1059
|
-
interface Props$3 {
|
|
994
|
+
interface Props$b {
|
|
1060
995
|
id?: string;
|
|
1061
996
|
control: ILocalPopupControl;
|
|
1062
997
|
header?: {
|
|
@@ -1075,14 +1010,64 @@ interface Props$3 {
|
|
|
1075
1010
|
portalTarget?: HTMLElement;
|
|
1076
1011
|
children: ReactNode;
|
|
1077
1012
|
}
|
|
1078
|
-
declare const Pullover: FC<Props$
|
|
1013
|
+
declare const Pullover: FC<Props$b>;
|
|
1079
1014
|
|
|
1080
|
-
|
|
1015
|
+
interface Props$a {
|
|
1016
|
+
modules: {
|
|
1017
|
+
name: string;
|
|
1018
|
+
icon: IconDefinition;
|
|
1019
|
+
disabled?: boolean;
|
|
1020
|
+
url: string;
|
|
1021
|
+
}[];
|
|
1022
|
+
activeModule: {
|
|
1023
|
+
name: string;
|
|
1024
|
+
icon: IconDefinition;
|
|
1025
|
+
} | null;
|
|
1026
|
+
}
|
|
1027
|
+
declare const ModuleSelect: FC<Props$a>;
|
|
1081
1028
|
|
|
1082
|
-
interface Props$
|
|
1029
|
+
interface Props$9 {
|
|
1030
|
+
customTitle?: string;
|
|
1031
|
+
modulesProps?: ComponentProps<typeof ModuleSelect>;
|
|
1032
|
+
userMenuProps: IHeaderUserMenuProps;
|
|
1033
|
+
notificationsProps?: INotificationsProps;
|
|
1034
|
+
children?: ReactNode;
|
|
1035
|
+
}
|
|
1036
|
+
declare const Header: FC<Props$9>;
|
|
1037
|
+
|
|
1038
|
+
type IOrgLogo = 'MTS' | 'PPL' | 'INC';
|
|
1039
|
+
|
|
1040
|
+
interface ISidebarProps {
|
|
1041
|
+
items: ISidebarItem[][];
|
|
1042
|
+
logo?: IOrgLogo;
|
|
1043
|
+
customLogo?: string;
|
|
1044
|
+
appVersion?: string;
|
|
1045
|
+
}
|
|
1046
|
+
declare const Sidebar: FC<ISidebarProps>;
|
|
1047
|
+
|
|
1048
|
+
interface Props$8 {
|
|
1049
|
+
fullScreenRoutes: IRoute[];
|
|
1050
|
+
appRoutes: IRoute[];
|
|
1051
|
+
header: ComponentProps<typeof Header>;
|
|
1052
|
+
sidebar: ComponentProps<typeof Sidebar>;
|
|
1053
|
+
}
|
|
1054
|
+
declare const Router: FC<Props$8>;
|
|
1055
|
+
|
|
1056
|
+
interface Props$7 {
|
|
1083
1057
|
control: ILocalPopupControl;
|
|
1058
|
+
createItem: ITableTemplateData['createItem'];
|
|
1059
|
+
title?: string;
|
|
1060
|
+
}
|
|
1061
|
+
declare const CreateTemplateDialog: FC<Props$7>;
|
|
1062
|
+
|
|
1063
|
+
interface Props$6 {
|
|
1064
|
+
templateData: ITableTemplateData;
|
|
1065
|
+
onItemClick: (item: IReportTemplate) => void;
|
|
1066
|
+
onResetTemplate?: () => void;
|
|
1067
|
+
createDialogTitle?: string;
|
|
1068
|
+
hideDefaultTemplateOption?: boolean;
|
|
1084
1069
|
}
|
|
1085
|
-
declare const
|
|
1070
|
+
declare const TemplatesPullover: FC<Props$6>;
|
|
1086
1071
|
|
|
1087
1072
|
interface ITableColumnsProps {
|
|
1088
1073
|
defaultColumns: ITableColumn[];
|
|
@@ -1121,7 +1106,7 @@ declare const useTableEdit: <T extends Record<string, any>>() => {
|
|
|
1121
1106
|
};
|
|
1122
1107
|
};
|
|
1123
1108
|
|
|
1124
|
-
interface Props$
|
|
1109
|
+
interface Props$5<T> {
|
|
1125
1110
|
searchData: T;
|
|
1126
1111
|
setSearchData: Dispatch<SetStateAction<Partial<T>>>;
|
|
1127
1112
|
}
|
|
@@ -1148,7 +1133,7 @@ interface BooleanSelectProps<T> extends BaseItemProps<T> {
|
|
|
1148
1133
|
labelTrue?: string;
|
|
1149
1134
|
labelFalse?: string;
|
|
1150
1135
|
}
|
|
1151
|
-
declare const useTableFilterFields: <T extends Record<string, any>>({ searchData, setSearchData, }: Props$
|
|
1136
|
+
declare const useTableFilterFields: <T extends Record<string, any>>({ searchData, setSearchData, }: Props$5<T>) => {
|
|
1152
1137
|
textFilter: ({ label, id, additionalClearIds }: BaseItemProps<T>) => {
|
|
1153
1138
|
label: string;
|
|
1154
1139
|
field: react_jsx_runtime.JSX.Element;
|
|
@@ -1172,24 +1157,12 @@ declare const useTablePagination: (defaultLimit?: number) => {
|
|
|
1172
1157
|
paginationControl: IPaginationControl;
|
|
1173
1158
|
};
|
|
1174
1159
|
|
|
1175
|
-
type Props<T> = {
|
|
1160
|
+
type Props$4<T> = {
|
|
1176
1161
|
getPrintData: IGetPrintData<T>;
|
|
1177
1162
|
createTableData?: (data: T[]) => ITableDataItem<T>[];
|
|
1178
1163
|
totalRows?: number;
|
|
1179
1164
|
};
|
|
1180
|
-
declare const useTablePrint: <T>({ getPrintData, createTableData, totalRows: initialTotalRows, }: Props<T>) => Pick<IPrintData<T>, "
|
|
1181
|
-
|
|
1182
|
-
interface ITableSearchProps<T> {
|
|
1183
|
-
setOffset: Dispatch<SetStateAction<number>>;
|
|
1184
|
-
resetSelectedRows?: () => void;
|
|
1185
|
-
defaultSearch?: T;
|
|
1186
|
-
}
|
|
1187
|
-
declare const useTableSearch: <T>({ setOffset, resetSelectedRows, defaultSearch, }: ITableSearchProps<T>) => {
|
|
1188
|
-
search: T;
|
|
1189
|
-
searchData: T;
|
|
1190
|
-
setSearchData: Dispatch<SetStateAction<T>>;
|
|
1191
|
-
onSearch: (filters: T) => void;
|
|
1192
|
-
};
|
|
1165
|
+
declare const useTablePrint: <T>({ getPrintData, createTableData, totalRows: initialTotalRows, }: Props$4<T>) => Pick<IPrintData<T>, "progress" | "isLoading" | "items" | "tableData" | "printPopupControl">;
|
|
1193
1166
|
|
|
1194
1167
|
declare const useTableSelect: (actions?: ITableSelectedAction[]) => {
|
|
1195
1168
|
selectedRows: Set<string>;
|
|
@@ -1204,6 +1177,90 @@ declare const useTableSort: (sortOptions: ITableSort[]) => {
|
|
|
1204
1177
|
sortOptions: ITableSort[];
|
|
1205
1178
|
};
|
|
1206
1179
|
|
|
1180
|
+
declare const Table: <T>(props: ITable<T>) => react_jsx_runtime.JSX.Element;
|
|
1181
|
+
|
|
1182
|
+
interface Props$3 {
|
|
1183
|
+
tabs: ITab[];
|
|
1184
|
+
initialValue?: string;
|
|
1185
|
+
control?: {
|
|
1186
|
+
value: string;
|
|
1187
|
+
setValue: (value: string) => void;
|
|
1188
|
+
};
|
|
1189
|
+
onChange?: (value: string) => void;
|
|
1190
|
+
noWrap?: boolean;
|
|
1191
|
+
className?: string;
|
|
1192
|
+
classNameContent?: string;
|
|
1193
|
+
}
|
|
1194
|
+
declare const Tabs: FC<Props$3>;
|
|
1195
|
+
|
|
1196
|
+
type TooltipPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
1197
|
+
interface Props$2 {
|
|
1198
|
+
label?: string;
|
|
1199
|
+
position?: TooltipPosition;
|
|
1200
|
+
disabled?: boolean;
|
|
1201
|
+
singleLine?: boolean;
|
|
1202
|
+
className?: string;
|
|
1203
|
+
children: ReactElement;
|
|
1204
|
+
ref?: Ref<HTMLElement> | null;
|
|
1205
|
+
}
|
|
1206
|
+
declare const Tooltip: FC<Props$2>;
|
|
1207
|
+
|
|
1208
|
+
interface Props$1 {
|
|
1209
|
+
data: ITreeItem[];
|
|
1210
|
+
selectedItemUuid?: string;
|
|
1211
|
+
onClick: (itemUuid: string) => void;
|
|
1212
|
+
}
|
|
1213
|
+
declare const Tree: FC<Props$1>;
|
|
1214
|
+
|
|
1215
|
+
interface Props {
|
|
1216
|
+
condition: boolean;
|
|
1217
|
+
wrapper: (children: ReactNode) => ReactNode;
|
|
1218
|
+
children: ReactNode;
|
|
1219
|
+
}
|
|
1220
|
+
declare const ConditionalWrapper: FC<Props>;
|
|
1221
|
+
|
|
1222
|
+
interface IPageLayoutProps {
|
|
1223
|
+
breadcrumbs?: (string | undefined)[];
|
|
1224
|
+
actions?: IHeaderAction[];
|
|
1225
|
+
moreActions?: IMenuItem[];
|
|
1226
|
+
backButton?: {
|
|
1227
|
+
url?: string;
|
|
1228
|
+
active: boolean;
|
|
1229
|
+
};
|
|
1230
|
+
help?: {
|
|
1231
|
+
title: string;
|
|
1232
|
+
descEl: ReactNode;
|
|
1233
|
+
};
|
|
1234
|
+
noAccess?: boolean;
|
|
1235
|
+
isInitiallyLoading?: boolean;
|
|
1236
|
+
isLoading?: boolean;
|
|
1237
|
+
hideFooter?: boolean;
|
|
1238
|
+
children?: ReactNode;
|
|
1239
|
+
}
|
|
1240
|
+
declare const PageLayout: FC<IPageLayoutProps>;
|
|
1241
|
+
|
|
1242
|
+
declare const useIsMenuOpen: () => {
|
|
1243
|
+
isOpen: boolean;
|
|
1244
|
+
onOpen: () => void;
|
|
1245
|
+
onClose: () => number;
|
|
1246
|
+
};
|
|
1247
|
+
|
|
1248
|
+
declare const useOnEsc: (onEsc: () => void, disabled?: boolean) => void;
|
|
1249
|
+
|
|
1250
|
+
declare const usePopupControl: (props?: {
|
|
1251
|
+
onCloseCallback?: () => void;
|
|
1252
|
+
}) => IPopupControl;
|
|
1253
|
+
|
|
1254
|
+
declare global {
|
|
1255
|
+
var zE: {
|
|
1256
|
+
show: () => void;
|
|
1257
|
+
hide: () => void;
|
|
1258
|
+
activate: () => void;
|
|
1259
|
+
setLocale: (locale: string) => void;
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1262
|
+
declare const useHideZendesk: () => void;
|
|
1263
|
+
|
|
1207
1264
|
type inputDate = string | Date | dayjs.Dayjs;
|
|
1208
1265
|
declare const formatDate: (date?: inputDate) => string;
|
|
1209
1266
|
declare const formatDateYMD: (date: inputDate) => string;
|
|
@@ -1236,72 +1293,7 @@ declare function downloadFile({ url, fileName, onSuccess, setIsLoading, }: {
|
|
|
1236
1293
|
onSuccess?: () => void;
|
|
1237
1294
|
}): void;
|
|
1238
1295
|
|
|
1239
|
-
declare const
|
|
1240
|
-
taxId: string;
|
|
1241
|
-
businessCode: string;
|
|
1242
|
-
umcn: string;
|
|
1243
|
-
idCardNumber: string;
|
|
1244
|
-
phoneNumber: string;
|
|
1245
|
-
port: string;
|
|
1246
|
-
year: string;
|
|
1247
|
-
number: string;
|
|
1248
|
-
strongPassword: string;
|
|
1249
|
-
email: string;
|
|
1250
|
-
};
|
|
1251
|
-
|
|
1252
|
-
type LocalStorageItem = 'activeUser' | 'token' | 'refreshToken' | 'logInWay' | 'nextUrl' | 'codeVerifier' | 'language';
|
|
1253
|
-
declare const lsGet: (key: LocalStorageItem) => string | null;
|
|
1254
|
-
declare const lsSet: (key: LocalStorageItem, value: string) => void;
|
|
1255
|
-
declare const lsRemove: (key: LocalStorageItem) => void;
|
|
1256
|
-
declare const getDefaultOrgUuid: () => string;
|
|
1257
|
-
declare const setDefaultOrgUuid: (organizationUuid: string) => void;
|
|
1258
|
-
declare const getActiveOrgUuid: () => string;
|
|
1259
|
-
declare const setActiveOrgUuid: (organizationUuid: string) => void;
|
|
1260
|
-
|
|
1261
|
-
declare const formatCurrency: (number?: string | number, minimumFractionDigits?: number, maximumFractionDigits?: number) => string;
|
|
1262
|
-
declare const formatCurrencyNoDecimals: (number?: string | number) => string;
|
|
1263
|
-
declare const formatDecimalNumber: (number?: string | number) => string | 0;
|
|
1264
|
-
|
|
1265
|
-
declare const deleteProps: <T extends Record<string, any>>(obj: T, props: (keyof T)[]) => Partial<T>;
|
|
1266
|
-
declare const deletePropsThatEndsWith: <T>(obj: T, endsWith: string) => Partial<T>;
|
|
1267
|
-
declare const deleteEmptyProps: <T extends Record<string, any>>(obj: T) => T;
|
|
1268
|
-
declare const deleteEmptyPropsIncludingArray: <T extends Record<string, any>>(obj: T) => T;
|
|
1269
|
-
declare const convertBooleanObjectToArray: (obj: IBooleanObject) => string[];
|
|
1270
|
-
declare const convertArrayToBooleanObject: (arr?: string[]) => {
|
|
1271
|
-
[x: string]: boolean;
|
|
1272
|
-
};
|
|
1273
|
-
declare const deepCopy: (el: any[] | object) => any;
|
|
1274
|
-
declare const areStringArraysEqual: (arr1: string[], arr2: string[]) => boolean;
|
|
1275
|
-
declare const compareArrayItemsIndex: <T>(array: T[] | readonly T[], item1: T, comparison: "greaterThan" | "greaterThanOrEqualTo" | "lessThan" | "lessThanOrEqualTo", item2: T) => boolean;
|
|
1276
|
-
declare const intersectArrays: <T>(arr1: any[] | readonly T[], arr2: any[] | readonly T[]) => T[];
|
|
1277
|
-
declare const flattenTreeForSelect: (items: any[], depth?: number, maxDepth?: number) => any[];
|
|
1278
|
-
|
|
1279
|
-
declare const getActiveFilterNumber: (obj: IAnyObject) => number;
|
|
1280
|
-
declare const getVisibleColumnsIds: (tableCols: ITableColumn[], isPrint?: boolean) => string[];
|
|
1281
|
-
declare const getPrintColumns: (tableCols: ITableColumn[]) => string[];
|
|
1282
|
-
declare const convertSearchToReportTemplateFilter: (search: IAnyObject) => IReportTemplateFilterValue[];
|
|
1283
|
-
declare const convertReportTemplateFilterToSearch: (filterValues: IReportTemplateFilterValue[]) => any;
|
|
1284
|
-
declare const setTemplateData: ({ template, columnData, setFilters, setSort, }: {
|
|
1285
|
-
template: IReportTemplate;
|
|
1286
|
-
columnData?: ITableColumnsData;
|
|
1287
|
-
setFilters?: (filters: IAnyObject) => void;
|
|
1288
|
-
setSort?: (sort: string) => void;
|
|
1289
|
-
}) => void;
|
|
1290
|
-
|
|
1291
|
-
declare const rootDir: HTMLElement;
|
|
1292
|
-
|
|
1293
|
-
declare const maxChar: (str?: string, maxLength?: number) => string;
|
|
1294
|
-
declare const getInputHelperText: (t: any, min?: string | number, max?: string | number) => any;
|
|
1295
|
-
declare const getInputMinMaxPattern: (min?: string | number, max?: string | number) => string;
|
|
1296
|
-
|
|
1297
|
-
declare const toastSuccess: (message: string) => react_toastify.Id;
|
|
1298
|
-
declare const toastError: (message: string) => react_toastify.Id;
|
|
1299
|
-
|
|
1300
|
-
declare const parseUrlSearch: (search: string) => {
|
|
1301
|
-
[k: string]: string;
|
|
1302
|
-
};
|
|
1303
|
-
|
|
1304
|
-
declare const i18nIUILatin: {
|
|
1296
|
+
declare const i18nIUICyrilic: {
|
|
1305
1297
|
HomePage: string;
|
|
1306
1298
|
Actions: string;
|
|
1307
1299
|
Active: string;
|
|
@@ -1368,6 +1360,9 @@ declare const i18nIUILatin: {
|
|
|
1368
1360
|
CharMin: string;
|
|
1369
1361
|
CharRange: string;
|
|
1370
1362
|
CharNumber: string;
|
|
1363
|
+
PhoneValidation: string;
|
|
1364
|
+
Serbia: string;
|
|
1365
|
+
Montenegro: string;
|
|
1371
1366
|
Pending: string;
|
|
1372
1367
|
Successfully: string;
|
|
1373
1368
|
DeletedSuccessfully: string;
|
|
@@ -1389,7 +1384,7 @@ declare const i18nIUILatin: {
|
|
|
1389
1384
|
NoAccessPageInfo: string;
|
|
1390
1385
|
};
|
|
1391
1386
|
|
|
1392
|
-
declare const
|
|
1387
|
+
declare const i18nIUILatin: {
|
|
1393
1388
|
HomePage: string;
|
|
1394
1389
|
Actions: string;
|
|
1395
1390
|
Active: string;
|
|
@@ -1456,6 +1451,9 @@ declare const i18nIUICyrilic: {
|
|
|
1456
1451
|
CharMin: string;
|
|
1457
1452
|
CharRange: string;
|
|
1458
1453
|
CharNumber: string;
|
|
1454
|
+
PhoneValidation: string;
|
|
1455
|
+
Serbia: string;
|
|
1456
|
+
Montenegro: string;
|
|
1459
1457
|
Pending: string;
|
|
1460
1458
|
Successfully: string;
|
|
1461
1459
|
DeletedSuccessfully: string;
|
|
@@ -1544,6 +1542,9 @@ declare const i18nIUIMe: {
|
|
|
1544
1542
|
CharMin: string;
|
|
1545
1543
|
CharRange: string;
|
|
1546
1544
|
CharNumber: string;
|
|
1545
|
+
PhoneValidation: string;
|
|
1546
|
+
Serbia: string;
|
|
1547
|
+
Montenegro: string;
|
|
1547
1548
|
Pending: string;
|
|
1548
1549
|
Successfully: string;
|
|
1549
1550
|
DeletedSuccessfully: string;
|
|
@@ -1565,27 +1566,70 @@ declare const i18nIUIMe: {
|
|
|
1565
1566
|
NoAccessPageInfo: string;
|
|
1566
1567
|
};
|
|
1567
1568
|
|
|
1568
|
-
declare
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1569
|
+
declare const inputPattern: {
|
|
1570
|
+
taxId: string;
|
|
1571
|
+
businessCode: string;
|
|
1572
|
+
umcn: string;
|
|
1573
|
+
idCardNumber: string;
|
|
1574
|
+
phoneNumber: string;
|
|
1575
|
+
port: string;
|
|
1576
|
+
year: string;
|
|
1577
|
+
number: string;
|
|
1578
|
+
strongPassword: string;
|
|
1579
|
+
email: string;
|
|
1580
|
+
};
|
|
1577
1581
|
|
|
1578
|
-
|
|
1582
|
+
type LocalStorageItem = 'activeUser' | 'token' | 'refreshToken' | 'logInWay' | 'nextUrl' | 'codeVerifier' | 'language';
|
|
1583
|
+
declare const lsGet: (key: LocalStorageItem) => string | null;
|
|
1584
|
+
declare const lsSet: (key: LocalStorageItem, value: string) => void;
|
|
1585
|
+
declare const lsRemove: (key: LocalStorageItem) => void;
|
|
1586
|
+
declare const getDefaultOrgUuid: () => string;
|
|
1587
|
+
declare const setDefaultOrgUuid: (organizationUuid: string) => void;
|
|
1588
|
+
declare const getActiveOrgUuid: () => string;
|
|
1589
|
+
declare const setActiveOrgUuid: (organizationUuid: string) => void;
|
|
1579
1590
|
|
|
1580
|
-
declare const
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1591
|
+
declare const formatCurrency: (number?: string | number, minimumFractionDigits?: number, maximumFractionDigits?: number) => string;
|
|
1592
|
+
declare const formatCurrencyNoDecimals: (number?: string | number) => string;
|
|
1593
|
+
declare const formatDecimalNumber: (number?: string | number) => string | 0;
|
|
1594
|
+
|
|
1595
|
+
declare const deleteProps: <T extends Record<string, any>>(obj: T, props: (keyof T)[]) => Partial<T>;
|
|
1596
|
+
declare const deletePropsThatEndsWith: <T>(obj: T, endsWith: string) => Partial<T>;
|
|
1597
|
+
declare const deleteEmptyProps: <T extends Record<string, any>>(obj: T) => T;
|
|
1598
|
+
declare const deleteEmptyPropsIncludingArray: <T extends Record<string, any>>(obj: T) => T;
|
|
1599
|
+
declare const convertBooleanObjectToArray: (obj: IBooleanObject) => string[];
|
|
1600
|
+
declare const convertArrayToBooleanObject: (arr?: string[]) => {
|
|
1601
|
+
[x: string]: boolean;
|
|
1584
1602
|
};
|
|
1603
|
+
declare const deepCopy: (el: any[] | object) => any;
|
|
1604
|
+
declare const areStringArraysEqual: (arr1: string[], arr2: string[]) => boolean;
|
|
1605
|
+
declare const compareArrayItemsIndex: <T>(array: T[] | readonly T[], item1: T, comparison: "greaterThan" | "greaterThanOrEqualTo" | "lessThan" | "lessThanOrEqualTo", item2: T) => boolean;
|
|
1606
|
+
declare const intersectArrays: <T>(arr1: any[] | readonly T[], arr2: any[] | readonly T[]) => T[];
|
|
1607
|
+
declare const flattenTreeForSelect: (items: any[], depth?: number, maxDepth?: number) => any[];
|
|
1585
1608
|
|
|
1586
|
-
declare const
|
|
1587
|
-
|
|
1588
|
-
|
|
1609
|
+
declare const rootDir: HTMLElement;
|
|
1610
|
+
|
|
1611
|
+
declare const maxChar: (str?: string, maxLength?: number) => string;
|
|
1612
|
+
declare const getInputHelperText: (t: any, min?: string | number, max?: string | number) => any;
|
|
1613
|
+
declare const getInputMinMaxPattern: (min?: string | number, max?: string | number) => string;
|
|
1614
|
+
|
|
1615
|
+
declare const getActiveFilterNumber: (obj: IAnyObject) => number;
|
|
1616
|
+
declare const getVisibleColumnsIds: (tableCols: ITableColumn[], isPrint?: boolean) => string[];
|
|
1617
|
+
declare const getPrintColumns: (tableCols: ITableColumn[]) => string[];
|
|
1618
|
+
declare const convertSearchToReportTemplateFilter: (search: IAnyObject) => IReportTemplateFilterValue[];
|
|
1619
|
+
declare const convertReportTemplateFilterToSearch: (filterValues: IReportTemplateFilterValue[]) => any;
|
|
1620
|
+
declare const setTemplateData: ({ template, columnData, setFilters, setSort, }: {
|
|
1621
|
+
template: IReportTemplate;
|
|
1622
|
+
columnData?: ITableColumnsData;
|
|
1623
|
+
setFilters?: (filters: IAnyObject) => void;
|
|
1624
|
+
setSort?: (sort: string) => void;
|
|
1625
|
+
}) => void;
|
|
1626
|
+
|
|
1627
|
+
declare const toastSuccess: (message: string) => react_toastify.Id;
|
|
1628
|
+
declare const toastError: (message: string) => react_toastify.Id;
|
|
1629
|
+
|
|
1630
|
+
declare const parseUrlSearch: (search: string) => {
|
|
1631
|
+
[k: string]: string;
|
|
1632
|
+
};
|
|
1589
1633
|
|
|
1590
|
-
export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CreateTemplateDialog, CurrencyInput, Dashboard, DashboardWidget, DateInput, Dialog, DotBadge, FastLinksWidget, FormWrapper, FullScreenLoader, IconButton, LazyLoader, List, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageLayout, PasswordInput, PillBadge, ProgressBar, Pullover, Radio, RadioLarge, Router, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, SplitButton, Table, Tabs, TextAreaInput, TextInput, TimeInput, Tooltip, Tree, areStringArraysEqual, calculateFilesSize, checkIfExpired, compareArrayItemsIndex, convertArrayToBooleanObject, convertBooleanObjectToArray, convertReportTemplateFilterToSearch, convertSearchToReportTemplateFilter, dataURLtoFile, dateAddDays, deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, deletePropsThatEndsWith, downloadDocumentFile, downloadFile, flattenTreeForSelect, formatCurrency, formatCurrencyNoDecimals, formatDate, formatDateAndTime, formatDateYMD, formatDecimalNumber, formatTime, formatYearMonth, getActiveFilterNumber, getActiveOrgUuid, getBase64FromFile, getBase64FromUrl, getCurrentDateFormatted, getCurrentDateFormattedYMD, getDaysLeft, getDefaultOrgUuid, getExtensionFromFilename, getFileFromUrl, getInputHelperText, getInputMinMaxPattern, getPrintColumns, getVisibleColumnsIds, i18nIUICyrilic, i18nIUILatin, i18nIUIMe, inputPattern, intersectArrays, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, rootDir, rotateBase64Image, setActiveOrgUuid, setDefaultOrgUuid, setTemplateData, sizeInBytesPretty, splitBase64File, tableCustomLimit1000, toastError, toastSuccess, useHideZendesk, useIsMenuOpen, useOnEsc, usePopupControl, useTableColumns, useTableEdit, useTableFilterFields, useTablePagination, useTablePrint, useTableSearch, useTableSelect, useTableSort };
|
|
1591
|
-
export type { DeepPartial, IAlertProps, IAnyObject, IBooleanObject, IError, IFormWrapper, IGetPrintData, IHeaderAction, IHeaderUserMenuProps, IKeyboardAction, ILocalPopupControl, IMenuItem, IMenuPlacement, INotification, INotificationsProps, IPagination, IPaginationControl, IPopupControl, IPrintData, IReportTemplate, IReportTemplateData, IReportTemplateFilterValue, IRoute, ISelectData, ISidebarItem, ISimpleObject, ISimpleObjectWithCode, IStringObject, ITab, ITable, ITableColumn, ITableDataActions, ITableDataItem, ITableDataItemCells, ITableEdit, ITableFilter, ITableFilterData, ITableFilterItem, ITableItemDeleteData, ITableSearchProps, ITableSort, ITableTemplateData, ITreeItem, IValueLabel, IPopupControlRef as PopupControlRef };
|
|
1634
|
+
export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CreateTemplateDialog, CurrencyInput, Dashboard, DashboardWidget, DateInput, Dialog, DotBadge, FastLinksWidget, FormWrapper, FullScreenLoader, IconButton, LazyLoader, List, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageLayout, PasswordInput, PhoneInput, PillBadge, ProgressBar, Pullover, Radio, RadioLarge, Router, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, SplitButton, Table, Tabs, TemplatesPullover, TextAreaInput, TextInput, TimeInput, Tooltip, Tree, areStringArraysEqual, calculateFilesSize, checkIfExpired, compareArrayItemsIndex, convertArrayToBooleanObject, convertBooleanObjectToArray, convertReportTemplateFilterToSearch, convertSearchToReportTemplateFilter, dataURLtoFile, dateAddDays, deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, deletePropsThatEndsWith, downloadDocumentFile, downloadFile, flattenTreeForSelect, formatCurrency, formatCurrencyNoDecimals, formatDate, formatDateAndTime, formatDateYMD, formatDecimalNumber, formatTime, formatYearMonth, getActiveFilterNumber, getActiveOrgUuid, getBase64FromFile, getBase64FromUrl, getCurrentDateFormatted, getCurrentDateFormattedYMD, getDaysLeft, getDefaultOrgUuid, getExtensionFromFilename, getFileFromUrl, getInputHelperText, getInputMinMaxPattern, getPrintColumns, getVisibleColumnsIds, i18nIUICyrilic, i18nIUILatin, i18nIUIMe, inputPattern, intersectArrays, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, rootDir, rotateBase64Image, setActiveOrgUuid, setDefaultOrgUuid, setTemplateData, sizeInBytesPretty, splitBase64File, tableCustomLimit1000, toastError, toastSuccess, useHideZendesk, useIsMenuOpen, useOnEsc, usePopupControl, useTableColumns, useTableEdit, useTableFilterFields, useTablePagination, useTablePrint, useTableSearch, useTableSelect, useTableSort };
|
|
1635
|
+
export type { DeepPartial, IAlertProps, IAnyObject, IBooleanObject, IError, IFormWrapper, IGetPrintData, IHeaderAction, IHeaderUserMenuProps, IKeyboardAction, ILocalPopupControl, IMenuItem, IMenuPlacement, INotification, INotificationsProps, IPagination, IPaginationControl, IPopupControl, IPrintData, IReportTemplate, IReportTemplateData, IReportTemplateFilterValue, IRoute, ISelectData, ISidebarItem, ISimpleObject, ISimpleObjectWithCode, IStringObject, ITab, ITable, ITableColumn, ITableDataActions, ITableDataItem, ITableDataItemCells, ITableEdit, ITableEditSubmit, ITableFilter, ITableFilterData, ITableFilterItem, ITableItemDeleteData, ITableSearchProps, ITableSort, ITableTemplateData, ITreeItem, IValueLabel, IPopupControlRef as PopupControlRef };
|