@inceptionbg/iui 2.0.23 → 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.
Files changed (232) hide show
  1. package/dist/NoAccessPage-CJisyKrk.js +2 -0
  2. package/dist/{NoAccessPage-BmizYfw0.js.map → NoAccessPage-CJisyKrk.js.map} +1 -1
  3. package/dist/NotFoundPage-BeRit0kr.js +2 -0
  4. package/dist/{NotFoundPage-Cv544vAr.js.map → NotFoundPage-BeRit0kr.js.map} +1 -1
  5. package/dist/index.d.ts +432 -430
  6. package/dist/index.js +1 -1
  7. package/dist/index.js.map +1 -1
  8. package/dist/iui.css +1 -1
  9. package/idea/GridTable/GridTable.tsx +1 -1
  10. package/idea/Menu/Menu.tsx +5 -3
  11. package/idea/Menu/MenuItem.tsx +3 -2
  12. package/idea/Menu/hooks/useMenuControl.ts +1 -1
  13. package/idea/Menu.tsx +3 -2
  14. package/idea/NoAccessInfo.tsx +1 -1
  15. package/idea/Table/Components/Edit/ItemActionsMenu.tsx +2 -1
  16. package/idea/Table/Components/Edit/ItemEditOptionsButtons.tsx +1 -1
  17. package/idea/Table/Components/Edit/TableEditRow.tsx +3 -2
  18. package/idea/Table/Components/FilterItem.tsx +2 -2
  19. package/idea/Table/Components/Header/TableHeader.tsx +3 -2
  20. package/idea/Table/Components/Header/TableHeaderRow.tsx +2 -2
  21. package/idea/Table/Components/Print/CustomTablePrint.tsx +3 -2
  22. package/idea/Table/Components/SetSortList.tsx +2 -2
  23. package/idea/Table/Components/SetTableFilter.tsx +3 -2
  24. package/idea/Table/Components/TableFooter.tsx +6 -4
  25. package/idea/Table/Components/TableOptions.tsx +3 -2
  26. package/idea/Table/Table.tsx +3 -2
  27. package/idea/Table/hooks/useTableKeyboard.ts +2 -2
  28. package/package.json +1 -1
  29. package/src/assets/icons/duotone/faBell.ts +17 -17
  30. package/src/assets/icons/duotone/faCircleUser.ts +17 -17
  31. package/src/assets/icons/index.ts +25 -25
  32. package/src/assets/icons/light/faArrowDownShortWide.ts +15 -15
  33. package/src/assets/icons/light/faArrowDownWideShort.ts +15 -15
  34. package/src/assets/icons/light/faArrowLeft.ts +5 -5
  35. package/src/assets/icons/light/faArrowRight.ts +5 -5
  36. package/src/assets/icons/light/faArrowUpArrowDown.ts +15 -15
  37. package/src/assets/icons/light/faArrowUpRightFromSquare.ts +15 -15
  38. package/src/assets/icons/light/faArrowsToLine.ts +15 -15
  39. package/src/assets/icons/light/faArrowsUpDown.ts +15 -15
  40. package/src/assets/icons/light/faBell.ts +15 -15
  41. package/src/assets/icons/light/faBookmark.ts +15 -15
  42. package/src/assets/icons/light/faBookmarkSlash.ts +15 -15
  43. package/src/assets/icons/light/faCalendarPlus.ts +15 -15
  44. package/src/assets/icons/light/faCheck.ts +15 -15
  45. package/src/assets/icons/light/faChevronDown.ts +15 -15
  46. package/src/assets/icons/light/faChevronRight.ts +15 -15
  47. package/src/assets/icons/light/faCircleInfo.ts +15 -15
  48. package/src/assets/icons/light/faCircleXmark.ts +15 -15
  49. package/src/assets/icons/light/faClipboardCheck.ts +15 -15
  50. package/src/assets/icons/light/faClockRotateLeft.ts +15 -15
  51. package/src/assets/icons/light/faEllipsisVertical.ts +15 -15
  52. package/src/assets/icons/light/faEnvelope.ts +15 -15
  53. package/src/assets/icons/light/faEye.ts +15 -15
  54. package/src/assets/icons/light/faEyeSlash.ts +15 -15
  55. package/src/assets/icons/light/faFilter.ts +15 -15
  56. package/src/assets/icons/light/faGear.ts +15 -15
  57. package/src/assets/icons/light/faHouse.ts +15 -15
  58. package/src/assets/icons/light/faIdBadge.ts +15 -15
  59. package/src/assets/icons/light/faLineColumns.ts +15 -15
  60. package/src/assets/icons/light/faLink.ts +15 -15
  61. package/src/assets/icons/light/faMagnifyingGlass.ts +15 -15
  62. package/src/assets/icons/light/faPen.ts +15 -15
  63. package/src/assets/icons/light/faPrint.ts +15 -15
  64. package/src/assets/icons/light/faQuestion.ts +15 -15
  65. package/src/assets/icons/light/faRotateRight.ts +15 -15
  66. package/src/assets/icons/light/faTrashCan.ts +15 -15
  67. package/src/assets/icons/light/faTriangleExclamation.ts +15 -15
  68. package/src/assets/icons/light/faXmark.ts +15 -15
  69. package/src/assets/icons/regular/faArrowLeft.ts +15 -15
  70. package/src/assets/icons/regular/faArrowRightArrowLeft.ts +15 -15
  71. package/src/assets/icons/regular/faCircleCheck.ts +15 -15
  72. package/src/assets/icons/regular/faCircleExclamation.ts +15 -15
  73. package/src/assets/icons/regular/faCircleInfo.ts +15 -15
  74. package/src/assets/icons/regular/faFileArrowDown.ts +15 -15
  75. package/src/assets/icons/regular/faFilterCircleXmark.ts +15 -15
  76. package/src/assets/icons/regular/faTriangleExclamation.ts +15 -15
  77. package/src/assets/icons/solid/faAngleLeft.ts +15 -15
  78. package/src/assets/icons/solid/faAngleRight.ts +15 -15
  79. package/src/assets/icons/solid/faArrowDownWideShort.ts +15 -15
  80. package/src/assets/icons/solid/faCaretDown.ts +15 -15
  81. package/src/assets/icons/solid/faCheck.ts +15 -15
  82. package/src/assets/icons/solid/faEllipsisVertical.ts +15 -15
  83. package/src/assets/icons/solid/faEnvelopeDot.ts +15 -15
  84. package/src/assets/icons/solid/faFilter.ts +15 -15
  85. package/src/assets/icons/solid/faFloppyDisk.ts +15 -15
  86. package/src/assets/icons/solid/faGripDotsVertical.ts +15 -15
  87. package/src/assets/icons/solid/faListUl.ts +15 -15
  88. package/src/assets/icons/solid/faMinus.ts +15 -15
  89. package/src/assets/icons/solid/faPlus.ts +15 -15
  90. package/src/assets/icons/solid/faPrint.ts +15 -15
  91. package/src/assets/icons/solid/faRotateRight.ts +15 -15
  92. package/src/assets/icons/solid/faXmark.ts +15 -15
  93. package/src/components/Accordions/Accordions.tsx +75 -74
  94. package/src/components/Alert/Alert.tsx +31 -31
  95. package/src/components/Badge/DotBadge.tsx +16 -16
  96. package/src/components/Badge/NotificationBadge.tsx +29 -29
  97. package/src/components/Badge/PillBadge.tsx +13 -13
  98. package/src/components/Button/Button.tsx +56 -56
  99. package/src/components/Button/IconButton.tsx +51 -51
  100. package/src/components/Button/SplitButton.tsx +91 -91
  101. package/src/components/Dashboard/Dashboard.tsx +9 -9
  102. package/src/components/Dashboard/DashboardWidget.tsx +44 -44
  103. package/src/components/Dashboard/FastLinksWidget/FastLinksWidget.tsx +37 -37
  104. package/src/components/Dialog/Dialog.tsx +166 -164
  105. package/src/components/Dialog/components/DialogFooter.tsx +100 -98
  106. package/src/components/Header/Components/EnvBadge.tsx +17 -17
  107. package/src/components/Header/Components/ModuleSelect.tsx +68 -68
  108. package/src/components/Header/Components/Notifications.tsx +202 -208
  109. package/src/components/Header/Components/UserMenu.tsx +52 -52
  110. package/src/components/Header/Header.tsx +37 -36
  111. package/src/components/Helper/Collapse.tsx +53 -52
  112. package/src/components/Inputs/Checkbox.tsx +53 -53
  113. package/src/components/Inputs/CurrencyInput.tsx +124 -123
  114. package/src/components/Inputs/DateInput/DateInput.tsx +184 -183
  115. package/src/components/Inputs/DateInput/components/DatePartInput.tsx +159 -158
  116. package/src/components/Inputs/InputWrapper.tsx +95 -95
  117. package/src/components/Inputs/NumberInput.tsx +86 -86
  118. package/src/components/Inputs/PasswordInput.tsx +40 -39
  119. package/src/components/Inputs/PhoneInput/PhoneInput.tsx +108 -108
  120. package/src/components/Inputs/PhoneInput/utils/countryCode.ts +20 -20
  121. package/src/components/Inputs/Radio.tsx +59 -59
  122. package/src/components/Inputs/RadioGroup.tsx +48 -48
  123. package/src/components/Inputs/RadioLarge.tsx +39 -39
  124. package/src/components/Inputs/SearchInput.tsx +46 -45
  125. package/src/components/Inputs/Selects/Select.tsx +17 -17
  126. package/src/components/Inputs/Selects/components/CustomSelectComponents.tsx +20 -19
  127. package/src/components/Inputs/Selects/components/SelectWrapper.tsx +118 -118
  128. package/src/components/Inputs/Selects/utils/selectStyles.ts +101 -101
  129. package/src/components/Inputs/TextAreaInput.tsx +68 -67
  130. package/src/components/Inputs/TextInput.tsx +100 -99
  131. package/src/components/Inputs/TimeInput/TimeInput.tsx +81 -81
  132. package/src/components/List/List.tsx +21 -20
  133. package/src/components/List/ListItem.tsx +70 -69
  134. package/src/components/Loader/Loader.tsx +59 -53
  135. package/src/components/Loader/ProgressBar.tsx +41 -41
  136. package/src/components/Menu/Menu.tsx +81 -80
  137. package/src/components/Menu/MenuItem.tsx +46 -46
  138. package/src/components/Menu/NewMenu.tsx +63 -63
  139. package/src/components/Menu/hooks/useMenuPosition.tsx +116 -115
  140. package/src/components/Pullover/Pullover.tsx +197 -196
  141. package/src/components/Router/Router.tsx +52 -51
  142. package/src/components/Sidebar/AddButton.tsx +22 -22
  143. package/src/components/Sidebar/Sidebar.tsx +85 -83
  144. package/src/components/Sidebar/SidebarItem.tsx +84 -84
  145. package/src/components/Sidebar/types/ISidebar.ts +28 -28
  146. package/src/components/Table/Table.tsx +259 -258
  147. package/src/components/Table/components/columns/ColumnsList.tsx +60 -59
  148. package/src/components/Table/components/columns/TableColumnsEdit.tsx +114 -112
  149. package/src/components/Table/components/edit/TableEditRow.tsx +78 -77
  150. package/src/components/Table/components/filters/FilterItem.tsx +15 -15
  151. package/src/components/Table/components/filters/TableFilters.tsx +126 -125
  152. package/src/components/Table/components/footer/TableFooter.tsx +126 -124
  153. package/src/components/Table/components/header/TableHeader.tsx +40 -40
  154. package/src/components/Table/components/header/TableHeaderRow.tsx +57 -57
  155. package/src/components/Table/components/items/TableItemActions.tsx +78 -78
  156. package/src/components/Table/components/print/TablePrint.tsx +200 -199
  157. package/src/components/Table/components/select/TableSelect.tsx +50 -49
  158. package/src/components/Table/components/sort/TableSort.tsx +73 -72
  159. package/src/components/Table/components/templates/CreateTemplateDialog.tsx +58 -57
  160. package/src/components/Table/components/templates/TableTemplates.tsx +65 -64
  161. package/src/components/Table/components/templates/TemplatesPullover.tsx +88 -88
  162. package/src/components/Table/contexts/TableContext.tsx +116 -123
  163. package/src/components/Table/hooks/localHooks/useLocalTableColumns.tsx +70 -70
  164. package/src/components/Table/hooks/localHooks/useLocalTableData.tsx +84 -84
  165. package/src/components/Table/hooks/localHooks/useLocalTableKeyboard.ts +176 -177
  166. package/src/components/Table/hooks/localHooks/useLocalTablePagination.ts +12 -12
  167. package/src/components/Table/hooks/useTableColumns.ts +34 -34
  168. package/src/components/Table/hooks/useTableEdit.tsx +140 -140
  169. package/src/components/Table/hooks/useTableFilterFields.tsx +150 -150
  170. package/src/components/Table/hooks/useTablePagination.ts +19 -19
  171. package/src/components/Table/hooks/useTablePrint.ts +83 -83
  172. package/src/components/Table/hooks/useTableSearch.ts +31 -30
  173. package/src/components/Table/hooks/useTableSelect.ts +19 -19
  174. package/src/components/Table/hooks/useTableSort.ts +8 -8
  175. package/src/components/Tabs/Tabs.tsx +68 -67
  176. package/src/components/Tooltip/Tooltip.tsx +191 -200
  177. package/src/components/Tree/Tree.tsx +22 -22
  178. package/src/components/Tree/TreeItem.tsx +57 -56
  179. package/src/components/Wrappers/AppLayout.tsx +17 -17
  180. package/src/components/Wrappers/ConditionalWrapper.tsx +10 -10
  181. package/src/components/Wrappers/FormWrapper.tsx +84 -83
  182. package/src/components/Wrappers/PageLayout.tsx +156 -155
  183. package/src/hooks/useBackgroundClose.ts +19 -18
  184. package/src/hooks/useGetFocusableElements.ts +43 -42
  185. package/src/hooks/useIsMenuOpen.ts +11 -11
  186. package/src/hooks/useLocalPopoverControl.ts +32 -32
  187. package/src/hooks/useOnEsc.ts +14 -14
  188. package/src/hooks/usePopupControl.ts +22 -22
  189. package/src/hooks/useZendesk.ts +21 -21
  190. package/src/index.ts +379 -386
  191. package/src/pages/NoAccessPage.tsx +27 -27
  192. package/src/pages/NotFoundPage.tsx +26 -26
  193. package/src/styles/common/helpers/_size.scss +0 -3
  194. package/src/styles/components/_accordions.scss +1 -1
  195. package/src/styles/components/_buttonSplit.scss +4 -29
  196. package/src/types/IBasic.ts +32 -31
  197. package/src/types/ICountryCode.ts +5 -0
  198. package/src/types/IError.ts +5 -5
  199. package/src/types/IHeader.ts +40 -40
  200. package/src/types/IInfo.ts +1 -1
  201. package/src/types/IKeyboard.ts +33 -33
  202. package/src/types/IMenu.ts +19 -19
  203. package/src/types/INotifications.ts +15 -15
  204. package/src/types/IPopup.ts +17 -17
  205. package/src/types/IRouter.ts +6 -6
  206. package/src/types/ISelect.ts +54 -54
  207. package/src/types/ITab.ts +1 -1
  208. package/src/types/ITable.ts +290 -281
  209. package/src/types/ITree.ts +6 -6
  210. package/src/utils/InputPatternValidation.ts +12 -12
  211. package/src/utils/dateUtils.ts +32 -32
  212. package/src/utils/fileUtils.ts +177 -177
  213. package/src/utils/i18n/i18nIUICyrilic.ts +119 -119
  214. package/src/utils/i18n/i18nIUILatin.ts +120 -120
  215. package/src/utils/i18n/i18nIUIMe.ts +118 -118
  216. package/src/utils/icons.ts +13 -13
  217. package/src/utils/localStorageHelper.ts +24 -24
  218. package/src/utils/logoUtils.ts +7 -7
  219. package/src/utils/numberUtils.ts +21 -21
  220. package/src/utils/objectUtils.ts +114 -114
  221. package/src/utils/popupUtils.ts +82 -82
  222. package/src/utils/rootDir.ts +1 -1
  223. package/src/utils/stringUtils.ts +18 -18
  224. package/src/utils/tableUtils.ts +130 -130
  225. package/src/utils/toasts.ts +6 -6
  226. package/src/utils/urlUtils.ts +4 -4
  227. package/tsconfig.json +1 -0
  228. package/dist/NoAccessPage-BmizYfw0.js +0 -2
  229. package/dist/NotFoundPage-Cv544vAr.js +0 -2
  230. package/src/components/Dialog/hooks/useDialogKeyboard.ts +0 -42
  231. package/src/components/Inputs/Select2/Select.tsx +0 -258
  232. 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';
4
- export { default as clsx } from 'clsx';
5
- import dayjs from 'dayjs';
6
- export { default as dayjs } from 'dayjs';
7
- export { DragDropContext, Draggable, Droppable } from '@hello-pangea/dnd';
8
3
  import * as react_toastify from 'react-toastify';
9
4
  export { ToastContainer, ToastContainerProps, toast } from 'react-toastify';
10
5
  import * as react from 'react';
11
- import { FC, MouseEventHandler, ButtonHTMLAttributes, Ref, FormEvent, ReactNode, RefObject, ReactElement, MouseEvent, Dispatch, SetStateAction, ComponentProps, InputHTMLAttributes, FocusEventHandler } 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';
9
+ export { default as clsx } from 'clsx';
10
+ import dayjs from 'dayjs';
11
+ export { default as dayjs } from 'dayjs';
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: (data: T, onSubmitCallback: () => void) => void;
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[];
@@ -372,57 +509,9 @@ interface ITableKeyboardActionsBase {
372
509
  }) => IKeyboardAction[];
373
510
  }
374
511
 
375
- type IMenuPlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
376
- interface IMenuItem {
377
- label: string;
378
- icon?: IconDefinition;
379
- iconRotation?: RotateProp;
380
- onClick?: MouseEventHandler<HTMLDivElement>;
381
- to?: string;
382
- badge?: number;
383
- active?: boolean;
384
- disabled?: boolean;
385
- hidden?: boolean;
386
- withDevider?: boolean;
387
- keepOpen?: boolean;
388
- className?: string;
389
- }
390
-
391
- interface IError {
392
- errorMessage: string;
393
- errorCode?: string;
394
- values?: Record<string, string>;
395
- }
396
-
397
- interface INotification {
398
- uuid: string;
399
- type: INotificationType;
400
- values?: {
401
- key: string;
402
- value: string;
403
- url?: string;
404
- format?: 'TRANSLATE' | 'DATE' | 'DATE_TIME';
405
- }[];
406
- seen: boolean;
407
- event: string;
408
- organization?: string;
409
- createdAt: string;
410
- }
411
- type INotificationType = 'WEB' | 'EMAIL';
412
-
413
- interface INotificationsProps {
414
- notificationCount: number;
415
- notifications: INotification[];
416
- isLoading: boolean;
417
- menuControl: {
418
- isOpen: boolean;
419
- onClose: () => void;
420
- onOpen: () => void;
421
- };
422
- seen: boolean | null;
423
- setSeen: Dispatch<SetStateAction<boolean | null>>;
424
- markAsSeen: (uuid: string) => void;
425
- markAllAsSeen: () => void;
512
+ interface IRoute {
513
+ path: string;
514
+ element: ReactElement;
426
515
  }
427
516
 
428
517
  interface ISelectData extends IValueLabel {
@@ -489,159 +578,42 @@ interface ITreeItem {
489
578
  children?: ITreeItem[];
490
579
  }
491
580
 
492
- interface IHeaderAction {
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;
589
+ };
590
+ className?: string;
591
+ classNameContent?: string;
592
+ }
593
+ declare const Accordions: FC<Props$p>;
594
+
595
+ interface Props$o {
493
596
  label: string;
494
- icon?: IconDefinition;
495
- iconRotation?: RotateProp;
496
- to?: string;
497
- onClick?: () => void;
498
- solid?: boolean;
499
- color?: IButtonColor;
500
- disabled?: boolean;
501
- hidden?: boolean;
597
+ color: IInfoType | 'gray';
598
+ className?: string;
502
599
  }
503
- type IHeaderUserMenuProps = {
504
- isOpen: boolean;
505
- setIsOpen: (isOpen: boolean) => void;
506
- userName?: string;
507
- organizationName?: string;
508
- menuItems: IMenuItem[];
509
- inviteCount?: number;
510
- controls: {
511
- myAccountControl: IPopupControl;
512
- changeOrgControl: IPopupControl;
513
- orgInvitesControl: IPopupControl;
514
- };
515
- refetchOrganizationInvites?: () => void;
516
- HeaderUserMenuDialogs: FC<{
517
- controls: {
518
- myAccountControl: IPopupControl;
519
- changeOrgControl: IPopupControl;
520
- orgInvitesControl: IPopupControl;
521
- };
522
- refetchOrganizationInvites?: () => void;
523
- }>;
524
- };
600
+ declare const DotBadge: FC<Props$o>;
525
601
 
526
- interface IRoute {
527
- path: string;
528
- element: ReactElement;
602
+ interface Props$n {
603
+ number?: number;
604
+ className?: string;
605
+ size?: 's' | 'm';
606
+ children?: ReactNode;
607
+ color?: IInfoType | 'primary';
529
608
  }
530
-
531
- interface ISidebarItem {
532
- label: string;
533
- icon?: IconDefinition;
534
- to?: string;
535
- content?: ISidebarSubItem[];
536
- menu?: {
537
- content: ISidebarSubItem[];
538
- openedMenu: string;
539
- setOpenedMenu: (label: string) => void;
540
- };
541
- hidden?: boolean;
542
- badge?: number;
543
- addUrl?: string;
544
- }
545
- interface ISidebarSubItem {
546
- label: string;
547
- to?: string;
548
- content?: ISidebarItem[];
549
- hidden?: boolean;
550
- tooltip?: string;
551
- badge?: number;
552
- addUrl?: string;
553
- primary?: boolean;
554
- collapsed?: boolean;
555
- }
556
-
557
- interface Props$p {
558
- modules: {
559
- name: string;
560
- icon: IconDefinition;
561
- disabled?: boolean;
562
- url: string;
563
- }[];
564
- activeModule: {
565
- name: string;
566
- icon: IconDefinition;
567
- } | null;
568
- }
569
- declare const ModuleSelect: FC<Props$p>;
570
-
571
- interface Props$o {
572
- customTitle?: string;
573
- modulesProps?: ComponentProps<typeof ModuleSelect>;
574
- userMenuProps: IHeaderUserMenuProps;
575
- notificationsProps?: INotificationsProps;
576
- children?: ReactNode;
577
- }
578
- declare const Header: FC<Props$o>;
579
-
580
- type IOrgLogo = 'MTS' | 'PPL' | 'INC';
581
-
582
- interface ISidebarProps {
583
- items: ISidebarItem[][];
584
- logo?: IOrgLogo;
585
- customLogo?: string;
586
- appVersion?: string;
587
- }
588
- declare const Sidebar: FC<ISidebarProps>;
589
-
590
- interface Props$n {
591
- fullScreenRoutes: IRoute[];
592
- appRoutes: IRoute[];
593
- header: ComponentProps<typeof Header>;
594
- sidebar: ComponentProps<typeof Sidebar>;
595
- }
596
- declare const Router: FC<Props$n>;
609
+ declare const NotificationBadge: FC<Props$n>;
597
610
 
598
611
  interface Props$m {
599
- tabs: ITab[];
600
- initialValue?: string;
601
- compact?: boolean;
602
- keepContentInDom?: boolean;
603
- control?: {
604
- value: string;
605
- setValue: (value: string) => void;
606
- };
607
- className?: string;
608
- classNameContent?: string;
609
- }
610
- declare const Accordions: FC<Props$m>;
611
-
612
- type IInfoType = 'success' | 'info' | 'warning' | 'danger';
613
-
614
- interface IAlertProps {
615
- text?: string;
616
- severity: IInfoType;
617
- fitContent?: boolean;
618
- className?: string;
619
- children?: ReactNode;
620
- }
621
- declare const Alert: FC<IAlertProps>;
622
-
623
- interface Props$l {
624
612
  label: string;
625
613
  color: IInfoType | 'gray';
626
614
  className?: string;
627
615
  }
628
- declare const DotBadge: FC<Props$l>;
629
-
630
- interface Props$k {
631
- number?: number;
632
- className?: string;
633
- size?: 's' | 'm';
634
- children?: ReactNode;
635
- color?: IInfoType | 'primary';
636
- }
637
- declare const NotificationBadge: FC<Props$k>;
638
-
639
- interface Props$j {
640
- label: string;
641
- color: IInfoType | 'gray';
642
- className?: string;
643
- }
644
- declare const PillBadge: FC<Props$j>;
616
+ declare const PillBadge: FC<Props$m>;
645
617
 
646
618
  interface IIconButtonProps {
647
619
  icon: IconDefinition;
@@ -671,6 +643,7 @@ interface IButtonProps {
671
643
  disabled?: boolean;
672
644
  type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
673
645
  className?: string;
646
+ fullWidth?: boolean;
674
647
  buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
675
648
  ref?: Ref<HTMLButtonElement>;
676
649
  }
@@ -680,7 +653,7 @@ declare const Dashboard: FC<{
680
653
  children: ReactNode;
681
654
  }>;
682
655
 
683
- interface Props$i {
656
+ interface Props$l {
684
657
  title: string;
685
658
  icon?: any;
686
659
  type?: 'warning' | 'info';
@@ -688,16 +661,16 @@ interface Props$i {
688
661
  isLoading?: boolean;
689
662
  children: ReactNode;
690
663
  }
691
- declare const DashboardWidget: FC<Props$i>;
664
+ declare const DashboardWidget: FC<Props$l>;
692
665
 
693
- interface Props$h {
666
+ interface Props$k {
694
667
  links: {
695
668
  icon?: IconDefinition;
696
669
  label: string;
697
670
  onClick: () => void;
698
671
  }[];
699
672
  }
700
- declare const FastLinksWidget: FC<Props$h>;
673
+ declare const FastLinksWidget: FC<Props$k>;
701
674
 
702
675
  interface IDialogFooterActions {
703
676
  confirmButton?: {
@@ -727,7 +700,7 @@ interface IDialogFooterActions {
727
700
  };
728
701
  }
729
702
 
730
- interface Props$g {
703
+ interface Props$j {
731
704
  control: ILocalPopupControl;
732
705
  title?: string;
733
706
  titleEl?: ReactNode;
@@ -746,15 +719,15 @@ interface Props$g {
746
719
  classNameContent?: string;
747
720
  children?: ReactNode;
748
721
  }
749
- declare const Dialog: FC<Props$g>;
722
+ declare const Dialog: FC<Props$j>;
750
723
 
751
- interface Props$f {
724
+ interface Props$i {
752
725
  isOpen: boolean;
753
726
  children: ReactNode;
754
727
  keepContentInDom?: boolean;
755
728
  className?: string;
756
729
  }
757
- declare const Collapse: FC<Props$f>;
730
+ declare const Collapse: FC<Props$i>;
758
731
 
759
732
  interface ICheckboxProps {
760
733
  label?: string;
@@ -808,49 +781,6 @@ interface IDateInputProps {
808
781
  }
809
782
  declare const DateInput: FC<IDateInputProps>;
810
783
 
811
- interface Props$e {
812
- label?: string;
813
- value?: string;
814
- setValue: (value: string) => void;
815
- helperText?: string;
816
- placeholder?: string;
817
- required?: boolean;
818
- disabled?: boolean;
819
- className?: string;
820
- ref?: Ref<HTMLInputElement>;
821
- }
822
- declare const PhoneInput: FC<Props$e>;
823
-
824
- interface ITimeInputProps {
825
- time: string;
826
- setTime: (newTime: string) => void;
827
- label?: string;
828
- disabled?: boolean;
829
- required?: boolean;
830
- isClearable?: boolean;
831
- className?: string;
832
- }
833
- declare const TimeInput: FC<ITimeInputProps>;
834
-
835
- interface ITextAreaInputProps {
836
- label: string;
837
- value?: string;
838
- setValue: (value: string) => void;
839
- required?: boolean;
840
- disabled?: boolean;
841
- autoFocus?: boolean;
842
- rows?: number;
843
- resize?: boolean;
844
- placeholder?: string;
845
- helperText?: string;
846
- errorText?: string;
847
- className?: string;
848
- inputProps?: InputHTMLAttributes<HTMLTextAreaElement>;
849
- error?: boolean;
850
- ref?: Ref<HTMLTextAreaElement>;
851
- }
852
- declare const TextAreaInput: FC<ITextAreaInputProps>;
853
-
854
784
  interface INumberInputProps {
855
785
  label?: string;
856
786
  value?: string | number;
@@ -891,6 +821,19 @@ interface IPasswordInputProps {
891
821
  }
892
822
  declare const PasswordInput: FC<IPasswordInputProps>;
893
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
+
894
837
  interface IRadioProps {
895
838
  label?: string;
896
839
  desc?: string;
@@ -906,7 +849,7 @@ interface IRadioProps {
906
849
  }
907
850
  declare const Radio: FC<IRadioProps>;
908
851
 
909
- interface Props$d {
852
+ interface Props$g {
910
853
  title?: string | ReactElement;
911
854
  desc?: string | ReactElement;
912
855
  value: string;
@@ -916,7 +859,7 @@ interface Props$d {
916
859
  className?: string;
917
860
  children?: ReactNode;
918
861
  }
919
- declare const RadioLarge: FC<Props$d>;
862
+ declare const RadioLarge: FC<Props$g>;
920
863
 
921
864
  interface IProps {
922
865
  label?: string;
@@ -930,6 +873,25 @@ declare const Select: FC<Omit<BasicSelectProps, 'variant'>>;
930
873
  declare const SelectAsyncPaginate: FC<Omit<AsyncSelectProps, 'variant'>>;
931
874
  declare const SelectCreatable: FC<Omit<CreatableSelectProps, 'variant'>>;
932
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
+
933
895
  interface ITextInputProps {
934
896
  id?: string;
935
897
  label?: string;
@@ -959,6 +921,17 @@ interface ITextInputProps {
959
921
  }
960
922
  declare const TextInput: FC<ITextInputProps>;
961
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
+
962
935
  interface IListItemAction {
963
936
  icon: IconDefinition;
964
937
  onClick: () => void;
@@ -976,13 +949,13 @@ interface IListItem {
976
949
  disabled?: boolean;
977
950
  }
978
951
 
979
- interface Props$c {
952
+ interface Props$f {
980
953
  items?: IListItem[];
981
954
  noItemsMessage?: string;
982
955
  }
983
- declare const List: FC<Props$c>;
956
+ declare const List: FC<Props$f>;
984
957
 
985
- interface Props$b {
958
+ interface Props$e {
986
959
  isLoading: boolean;
987
960
  isFullPage?: boolean;
988
961
  classNameLoader?: string;
@@ -991,19 +964,19 @@ interface Props$b {
991
964
  children: ReactElement | ReactNode;
992
965
  }>;
993
966
  }
994
- declare const Loader: FC<Props$b>;
967
+ declare const Loader: FC<Props$e>;
995
968
  declare const FullScreenLoader: FC<{
996
969
  isLoading: boolean;
997
970
  }>;
998
971
  declare const LazyLoader: FC;
999
972
 
1000
- interface Props$a {
973
+ interface Props$d {
1001
974
  progress?: number;
1002
975
  label?: string;
1003
976
  }
1004
- declare const ProgressBar: FC<Props$a>;
977
+ declare const ProgressBar: FC<Props$d>;
1005
978
 
1006
- interface Props$9 {
979
+ interface Props$c {
1007
980
  id?: string;
1008
981
  isOpen: boolean;
1009
982
  onClose: () => void;
@@ -1014,71 +987,11 @@ interface Props$9 {
1014
987
  className?: string;
1015
988
  children?: ReactNode;
1016
989
  }
1017
- declare const Menu: FC<Props$9>;
990
+ declare const Menu: FC<Props$c>;
1018
991
 
1019
992
  declare const MenuItem: FC<IMenuItem>;
1020
993
 
1021
- interface Props$8 {
1022
- tabs: ITab[];
1023
- initialValue?: string;
1024
- control?: {
1025
- value: string;
1026
- setValue: (value: string) => void;
1027
- };
1028
- onChange?: (value: string) => void;
1029
- noWrap?: boolean;
1030
- className?: string;
1031
- classNameContent?: string;
1032
- }
1033
- declare const Tabs: FC<Props$8>;
1034
-
1035
- type TooltipPosition = 'left' | 'right' | 'top' | 'bottom';
1036
- interface Props$7 {
1037
- label?: string;
1038
- position?: TooltipPosition;
1039
- disabled?: boolean;
1040
- singleLine?: boolean;
1041
- className?: string;
1042
- children: ReactElement;
1043
- ref?: Ref<HTMLElement> | null;
1044
- }
1045
- declare const Tooltip: FC<Props$7>;
1046
-
1047
- interface Props$6 {
1048
- data: ITreeItem[];
1049
- selectedItemUuid?: string;
1050
- onClick: (itemUuid: string) => void;
1051
- }
1052
- declare const Tree: FC<Props$6>;
1053
-
1054
- interface Props$5 {
1055
- condition: boolean;
1056
- wrapper: (children: ReactNode) => ReactNode;
1057
- children: ReactNode;
1058
- }
1059
- declare const ConditionalWrapper: FC<Props$5>;
1060
-
1061
- interface IPageLayoutProps {
1062
- breadcrumbs?: (string | undefined)[];
1063
- actions?: IHeaderAction[];
1064
- moreActions?: IMenuItem[];
1065
- backButton?: {
1066
- url?: string;
1067
- active: boolean;
1068
- };
1069
- help?: {
1070
- title: string;
1071
- descEl: ReactNode;
1072
- };
1073
- noAccess?: boolean;
1074
- isInitiallyLoading?: boolean;
1075
- isLoading?: boolean;
1076
- hideFooter?: boolean;
1077
- children?: ReactNode;
1078
- }
1079
- declare const PageLayout: FC<IPageLayoutProps>;
1080
-
1081
- interface Props$4 {
994
+ interface Props$b {
1082
995
  id?: string;
1083
996
  control: ILocalPopupControl;
1084
997
  header?: {
@@ -1097,25 +1010,64 @@ interface Props$4 {
1097
1010
  portalTarget?: HTMLElement;
1098
1011
  children: ReactNode;
1099
1012
  }
1100
- declare const Pullover: FC<Props$4>;
1013
+ declare const Pullover: FC<Props$b>;
1014
+
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>;
1028
+
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>;
1101
1047
 
1102
- declare const Table: <T>(props: ITable<T>) => react_jsx_runtime.JSX.Element;
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>;
1103
1055
 
1104
- interface Props$3 {
1056
+ interface Props$7 {
1105
1057
  control: ILocalPopupControl;
1106
1058
  createItem: ITableTemplateData['createItem'];
1107
1059
  title?: string;
1108
1060
  }
1109
- declare const CreateTemplateDialog: FC<Props$3>;
1061
+ declare const CreateTemplateDialog: FC<Props$7>;
1110
1062
 
1111
- interface Props$2 {
1063
+ interface Props$6 {
1112
1064
  templateData: ITableTemplateData;
1113
1065
  onItemClick: (item: IReportTemplate) => void;
1114
1066
  onResetTemplate?: () => void;
1115
1067
  createDialogTitle?: string;
1116
1068
  hideDefaultTemplateOption?: boolean;
1117
1069
  }
1118
- declare const TemplatesPullover: FC<Props$2>;
1070
+ declare const TemplatesPullover: FC<Props$6>;
1119
1071
 
1120
1072
  interface ITableColumnsProps {
1121
1073
  defaultColumns: ITableColumn[];
@@ -1154,7 +1106,7 @@ declare const useTableEdit: <T extends Record<string, any>>() => {
1154
1106
  };
1155
1107
  };
1156
1108
 
1157
- interface Props$1<T> {
1109
+ interface Props$5<T> {
1158
1110
  searchData: T;
1159
1111
  setSearchData: Dispatch<SetStateAction<Partial<T>>>;
1160
1112
  }
@@ -1181,7 +1133,7 @@ interface BooleanSelectProps<T> extends BaseItemProps<T> {
1181
1133
  labelTrue?: string;
1182
1134
  labelFalse?: string;
1183
1135
  }
1184
- declare const useTableFilterFields: <T extends Record<string, any>>({ searchData, setSearchData, }: Props$1<T>) => {
1136
+ declare const useTableFilterFields: <T extends Record<string, any>>({ searchData, setSearchData, }: Props$5<T>) => {
1185
1137
  textFilter: ({ label, id, additionalClearIds }: BaseItemProps<T>) => {
1186
1138
  label: string;
1187
1139
  field: react_jsx_runtime.JSX.Element;
@@ -1205,24 +1157,12 @@ declare const useTablePagination: (defaultLimit?: number) => {
1205
1157
  paginationControl: IPaginationControl;
1206
1158
  };
1207
1159
 
1208
- type Props<T> = {
1160
+ type Props$4<T> = {
1209
1161
  getPrintData: IGetPrintData<T>;
1210
1162
  createTableData?: (data: T[]) => ITableDataItem<T>[];
1211
1163
  totalRows?: number;
1212
1164
  };
1213
- declare const useTablePrint: <T>({ getPrintData, createTableData, totalRows: initialTotalRows, }: Props<T>) => Pick<IPrintData<T>, "isLoading" | "progress" | "items" | "tableData" | "printPopupControl">;
1214
-
1215
- interface ITableSearchProps<T> {
1216
- setOffset: Dispatch<SetStateAction<number>>;
1217
- resetSelectedRows?: () => void;
1218
- defaultSearch?: T;
1219
- }
1220
- declare const useTableSearch: <T>({ setOffset, resetSelectedRows, defaultSearch, }: ITableSearchProps<T>) => {
1221
- search: T;
1222
- searchData: T;
1223
- setSearchData: Dispatch<SetStateAction<T>>;
1224
- onSearch: (filters: T) => void;
1225
- };
1165
+ declare const useTablePrint: <T>({ getPrintData, createTableData, totalRows: initialTotalRows, }: Props$4<T>) => Pick<IPrintData<T>, "progress" | "isLoading" | "items" | "tableData" | "printPopupControl">;
1226
1166
 
1227
1167
  declare const useTableSelect: (actions?: ITableSelectedAction[]) => {
1228
1168
  selectedRows: Set<string>;
@@ -1237,6 +1177,90 @@ declare const useTableSort: (sortOptions: ITableSort[]) => {
1237
1177
  sortOptions: ITableSort[];
1238
1178
  };
1239
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
+
1240
1264
  type inputDate = string | Date | dayjs.Dayjs;
1241
1265
  declare const formatDate: (date?: inputDate) => string;
1242
1266
  declare const formatDateYMD: (date: inputDate) => string;
@@ -1269,72 +1293,7 @@ declare function downloadFile({ url, fileName, onSuccess, setIsLoading, }: {
1269
1293
  onSuccess?: () => void;
1270
1294
  }): void;
1271
1295
 
1272
- declare const inputPattern: {
1273
- taxId: string;
1274
- businessCode: string;
1275
- umcn: string;
1276
- idCardNumber: string;
1277
- phoneNumber: string;
1278
- port: string;
1279
- year: string;
1280
- number: string;
1281
- strongPassword: string;
1282
- email: string;
1283
- };
1284
-
1285
- type LocalStorageItem = 'activeUser' | 'token' | 'refreshToken' | 'logInWay' | 'nextUrl' | 'codeVerifier' | 'language';
1286
- declare const lsGet: (key: LocalStorageItem) => string | null;
1287
- declare const lsSet: (key: LocalStorageItem, value: string) => void;
1288
- declare const lsRemove: (key: LocalStorageItem) => void;
1289
- declare const getDefaultOrgUuid: () => string;
1290
- declare const setDefaultOrgUuid: (organizationUuid: string) => void;
1291
- declare const getActiveOrgUuid: () => string;
1292
- declare const setActiveOrgUuid: (organizationUuid: string) => void;
1293
-
1294
- declare const formatCurrency: (number?: string | number, minimumFractionDigits?: number, maximumFractionDigits?: number) => string;
1295
- declare const formatCurrencyNoDecimals: (number?: string | number) => string;
1296
- declare const formatDecimalNumber: (number?: string | number) => string | 0;
1297
-
1298
- declare const deleteProps: <T extends Record<string, any>>(obj: T, props: (keyof T)[]) => Partial<T>;
1299
- declare const deletePropsThatEndsWith: <T>(obj: T, endsWith: string) => Partial<T>;
1300
- declare const deleteEmptyProps: <T extends Record<string, any>>(obj: T) => T;
1301
- declare const deleteEmptyPropsIncludingArray: <T extends Record<string, any>>(obj: T) => T;
1302
- declare const convertBooleanObjectToArray: (obj: IBooleanObject) => string[];
1303
- declare const convertArrayToBooleanObject: (arr?: string[]) => {
1304
- [x: string]: boolean;
1305
- };
1306
- declare const deepCopy: (el: any[] | object) => any;
1307
- declare const areStringArraysEqual: (arr1: string[], arr2: string[]) => boolean;
1308
- declare const compareArrayItemsIndex: <T>(array: T[] | readonly T[], item1: T, comparison: "greaterThan" | "greaterThanOrEqualTo" | "lessThan" | "lessThanOrEqualTo", item2: T) => boolean;
1309
- declare const intersectArrays: <T>(arr1: any[] | readonly T[], arr2: any[] | readonly T[]) => T[];
1310
- declare const flattenTreeForSelect: (items: any[], depth?: number, maxDepth?: number) => any[];
1311
-
1312
- declare const getActiveFilterNumber: (obj: IAnyObject) => number;
1313
- declare const getVisibleColumnsIds: (tableCols: ITableColumn[], isPrint?: boolean) => string[];
1314
- declare const getPrintColumns: (tableCols: ITableColumn[]) => string[];
1315
- declare const convertSearchToReportTemplateFilter: (search: IAnyObject) => IReportTemplateFilterValue[];
1316
- declare const convertReportTemplateFilterToSearch: (filterValues: IReportTemplateFilterValue[]) => any;
1317
- declare const setTemplateData: ({ template, columnData, setFilters, setSort, }: {
1318
- template: IReportTemplate;
1319
- columnData?: ITableColumnsData;
1320
- setFilters?: (filters: IAnyObject) => void;
1321
- setSort?: (sort: string) => void;
1322
- }) => void;
1323
-
1324
- declare const rootDir: HTMLElement;
1325
-
1326
- declare const maxChar: (str?: string, maxLength?: number) => string;
1327
- declare const getInputHelperText: (t: any, min?: string | number, max?: string | number) => any;
1328
- declare const getInputMinMaxPattern: (min?: string | number, max?: string | number) => string;
1329
-
1330
- declare const toastSuccess: (message: string) => react_toastify.Id;
1331
- declare const toastError: (message: string) => react_toastify.Id;
1332
-
1333
- declare const parseUrlSearch: (search: string) => {
1334
- [k: string]: string;
1335
- };
1336
-
1337
- declare const i18nIUILatin: {
1296
+ declare const i18nIUICyrilic: {
1338
1297
  HomePage: string;
1339
1298
  Actions: string;
1340
1299
  Active: string;
@@ -1425,7 +1384,7 @@ declare const i18nIUILatin: {
1425
1384
  NoAccessPageInfo: string;
1426
1385
  };
1427
1386
 
1428
- declare const i18nIUICyrilic: {
1387
+ declare const i18nIUILatin: {
1429
1388
  HomePage: string;
1430
1389
  Actions: string;
1431
1390
  Active: string;
@@ -1607,27 +1566,70 @@ declare const i18nIUIMe: {
1607
1566
  NoAccessPageInfo: string;
1608
1567
  };
1609
1568
 
1610
- declare global {
1611
- var zE: {
1612
- show: () => void;
1613
- hide: () => void;
1614
- activate: () => void;
1615
- setLocale: (locale: string) => void;
1616
- };
1617
- }
1618
- declare const useHideZendesk: () => void;
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
+ };
1619
1581
 
1620
- declare const useOnEsc: (onEsc: () => void, disabled?: boolean) => void;
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;
1621
1590
 
1622
- declare const useIsMenuOpen: () => {
1623
- isOpen: boolean;
1624
- onOpen: () => void;
1625
- onClose: () => number;
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;
1626
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[];
1627
1608
 
1628
- declare const usePopupControl: (props?: {
1629
- onCloseCallback?: () => void;
1630
- }) => IPopupControl;
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
+ };
1631
1633
 
1632
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 };
1633
- 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 };
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 };