@inceptionbg/iui 2.0.35 → 2.0.36

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 (241) hide show
  1. package/package.json +4 -1
  2. package/idea/GridTable/GridTable.tsx +0 -119
  3. package/idea/GridTable/gridTable.scss +0 -42
  4. package/idea/Menu/Menu.tsx +0 -121
  5. package/idea/Menu/MenuItem.tsx +0 -75
  6. package/idea/Menu/hooks/useMenuControl.ts +0 -13
  7. package/idea/Menu.tsx +0 -133
  8. package/idea/NoAccessInfo.tsx +0 -193
  9. package/idea/Table/Components/Edit/ItemActionsMenu.tsx +0 -85
  10. package/idea/Table/Components/Edit/ItemEditOptionsButtons.tsx +0 -31
  11. package/idea/Table/Components/Edit/TableEditRow.tsx +0 -57
  12. package/idea/Table/Components/FilterItem.tsx +0 -20
  13. package/idea/Table/Components/Header/TableHeader.tsx +0 -46
  14. package/idea/Table/Components/Header/TableHeaderRow.tsx +0 -37
  15. package/idea/Table/Components/Print/CustomTablePrint.tsx +0 -115
  16. package/idea/Table/Components/SetSortList.tsx +0 -30
  17. package/idea/Table/Components/SetTableFilter.tsx +0 -91
  18. package/idea/Table/Components/TableFooter.tsx +0 -137
  19. package/idea/Table/Components/TableOptions.tsx +0 -227
  20. package/idea/Table/Components/Templates/TemplateCreate.tsx +0 -80
  21. package/idea/Table/Components/Templates/TemplateCreateDefault.tsx +0 -45
  22. package/idea/Table/Components/Templates/TemplateList.tsx +0 -167
  23. package/idea/Table/Components/Templates/repo/TemplateRepo.ts +0 -53
  24. package/idea/Table/Table.tsx +0 -528
  25. package/idea/Table/hooks/useDefaultTemplate.ts +0 -20
  26. package/idea/Table/hooks/useTableKeyboard.ts +0 -137
  27. package/idea/Table/hooks/useTableSelect.ts +0 -11
  28. package/rollup.config.js +0 -52
  29. package/src/assets/icons/duotone/faBell.ts +0 -17
  30. package/src/assets/icons/duotone/faCircleUser.ts +0 -17
  31. package/src/assets/icons/regular/faArrowLeft.ts +0 -15
  32. package/src/assets/icons/regular/faArrowRightArrowLeft.ts +0 -15
  33. package/src/assets/icons/regular/faCircleCheck.ts +0 -15
  34. package/src/assets/icons/regular/faCircleExclamation.ts +0 -15
  35. package/src/assets/icons/regular/faCircleInfo.ts +0 -15
  36. package/src/assets/icons/regular/faFileArrowDown.ts +0 -15
  37. package/src/assets/icons/regular/faFilterCircleXmark.ts +0 -15
  38. package/src/assets/icons/regular/faTriangleExclamation.ts +0 -15
  39. package/src/assets/icons/solid/faAngleLeft.ts +0 -15
  40. package/src/assets/icons/solid/faAngleRight.ts +0 -15
  41. package/src/assets/icons/solid/faArrowDownWideShort.ts +0 -15
  42. package/src/assets/icons/solid/faCaretDown.ts +0 -15
  43. package/src/assets/icons/solid/faCheck.ts +0 -15
  44. package/src/assets/icons/solid/faEllipsisVertical.ts +0 -15
  45. package/src/assets/icons/solid/faEnvelopeDot.ts +0 -15
  46. package/src/assets/icons/solid/faFilter.ts +0 -15
  47. package/src/assets/icons/solid/faFloppyDisk.ts +0 -15
  48. package/src/assets/icons/solid/faGripDotsVertical.ts +0 -15
  49. package/src/assets/icons/solid/faListUl.ts +0 -15
  50. package/src/assets/icons/solid/faMinus.ts +0 -15
  51. package/src/assets/icons/solid/faPlus.ts +0 -15
  52. package/src/assets/icons/solid/faPrint.ts +0 -15
  53. package/src/assets/icons/solid/faRotateRight.ts +0 -15
  54. package/src/assets/icons/solid/faXmark.ts +0 -15
  55. package/src/assets/images/logo/inception.svg +0 -22
  56. package/src/assets/images/logo/mts.svg +0 -5703
  57. package/src/assets/images/logo/paperless.svg +0 -21
  58. package/src/assets/images/logo/pismonosa.png +0 -0
  59. package/src/assets/images/not-found.svg +0 -19
  60. package/src/components/Accordions/Accordions.tsx +0 -74
  61. package/src/components/Alert/Alert.tsx +0 -31
  62. package/src/components/Badge/DotBadge.tsx +0 -16
  63. package/src/components/Badge/NotificationBadge.tsx +0 -29
  64. package/src/components/Badge/PillBadge.tsx +0 -13
  65. package/src/components/Button/Button.tsx +0 -56
  66. package/src/components/Button/IconButton.tsx +0 -51
  67. package/src/components/Button/SplitButton.tsx +0 -91
  68. package/src/components/Dashboard/Dashboard.tsx +0 -9
  69. package/src/components/Dashboard/DashboardWidget.tsx +0 -44
  70. package/src/components/Dashboard/FastLinksWidget/FastLinksWidget.tsx +0 -36
  71. package/src/components/Dialog/Dialog.tsx +0 -178
  72. package/src/components/Dialog/components/DialogFooter.tsx +0 -100
  73. package/src/components/Header/Components/EnvBadge.tsx +0 -17
  74. package/src/components/Header/Components/ModuleSelect.tsx +0 -68
  75. package/src/components/Header/Components/Notifications.tsx +0 -204
  76. package/src/components/Header/Components/UserMenu.tsx +0 -52
  77. package/src/components/Header/Header.tsx +0 -45
  78. package/src/components/Helper/Collapse.tsx +0 -53
  79. package/src/components/Inputs/Checkbox.tsx +0 -53
  80. package/src/components/Inputs/CurrencyInput.tsx +0 -124
  81. package/src/components/Inputs/DateInput/DateInput.tsx +0 -184
  82. package/src/components/Inputs/DateInput/components/DatePartInput.tsx +0 -159
  83. package/src/components/Inputs/InputWrapper.tsx +0 -95
  84. package/src/components/Inputs/NumberInput.tsx +0 -86
  85. package/src/components/Inputs/PasswordInput.tsx +0 -39
  86. package/src/components/Inputs/PhoneInput/PhoneInput.tsx +0 -108
  87. package/src/components/Inputs/PhoneInput/utils/countryCode.ts +0 -20
  88. package/src/components/Inputs/Radio.tsx +0 -59
  89. package/src/components/Inputs/RadioGroup.tsx +0 -48
  90. package/src/components/Inputs/RadioLarge.tsx +0 -39
  91. package/src/components/Inputs/SearchInput.tsx +0 -46
  92. package/src/components/Inputs/Selects/Select.tsx +0 -17
  93. package/src/components/Inputs/Selects/components/CustomSelectComponents.tsx +0 -19
  94. package/src/components/Inputs/Selects/components/SelectWrapper.tsx +0 -118
  95. package/src/components/Inputs/Selects/utils/selectStyles.ts +0 -101
  96. package/src/components/Inputs/TextAreaInput.tsx +0 -68
  97. package/src/components/Inputs/TextInput.tsx +0 -100
  98. package/src/components/Inputs/TimeInput/TimeInput.tsx +0 -81
  99. package/src/components/List/List.tsx +0 -21
  100. package/src/components/List/ListItem.tsx +0 -70
  101. package/src/components/Loader/Loader.tsx +0 -66
  102. package/src/components/Loader/ProgressBar.tsx +0 -41
  103. package/src/components/Menu/Menu.tsx +0 -81
  104. package/src/components/Menu/MenuItem.tsx +0 -46
  105. package/src/components/Menu/NewMenu.tsx +0 -63
  106. package/src/components/Menu/hooks/useMenuPosition.tsx +0 -116
  107. package/src/components/PageComponents/ScrollableContent.tsx +0 -11
  108. package/src/components/Pullover/Pullover.tsx +0 -197
  109. package/src/components/Router/Router.tsx +0 -52
  110. package/src/components/Sidebar/AddButton.tsx +0 -22
  111. package/src/components/Sidebar/Sidebar.tsx +0 -85
  112. package/src/components/Sidebar/SidebarItem.tsx +0 -84
  113. package/src/components/Sidebar/types/ISidebar.ts +0 -28
  114. package/src/components/Table/Table.tsx +0 -258
  115. package/src/components/Table/components/columns/ColumnsList.tsx +0 -60
  116. package/src/components/Table/components/columns/TableColumnsEdit.tsx +0 -114
  117. package/src/components/Table/components/edit/TableEditRow.tsx +0 -78
  118. package/src/components/Table/components/filters/FilterItem.tsx +0 -15
  119. package/src/components/Table/components/filters/TableFilters.tsx +0 -126
  120. package/src/components/Table/components/footer/TableFooter.tsx +0 -126
  121. package/src/components/Table/components/header/TableHeader.tsx +0 -40
  122. package/src/components/Table/components/header/TableHeaderRow.tsx +0 -57
  123. package/src/components/Table/components/items/TableItemActions.tsx +0 -78
  124. package/src/components/Table/components/print/TablePrint.tsx +0 -200
  125. package/src/components/Table/components/select/TableSelect.tsx +0 -50
  126. package/src/components/Table/components/sort/TableSort.tsx +0 -75
  127. package/src/components/Table/components/templates/CreateTemplateDialog.tsx +0 -58
  128. package/src/components/Table/components/templates/TableTemplates.tsx +0 -65
  129. package/src/components/Table/components/templates/TemplatesPullover.tsx +0 -88
  130. package/src/components/Table/contexts/TableContext.tsx +0 -117
  131. package/src/components/Table/hooks/localHooks/useLocalTableColumns.tsx +0 -70
  132. package/src/components/Table/hooks/localHooks/useLocalTableData.tsx +0 -82
  133. package/src/components/Table/hooks/localHooks/useLocalTableKeyboard.ts +0 -175
  134. package/src/components/Table/hooks/localHooks/useLocalTablePagination.ts +0 -12
  135. package/src/components/Table/hooks/useTableColumns.ts +0 -34
  136. package/src/components/Table/hooks/useTableEdit.tsx +0 -140
  137. package/src/components/Table/hooks/useTableFilterFields.tsx +0 -150
  138. package/src/components/Table/hooks/useTablePagination.ts +0 -19
  139. package/src/components/Table/hooks/useTablePrint.ts +0 -83
  140. package/src/components/Table/hooks/useTableSearch.ts +0 -31
  141. package/src/components/Table/hooks/useTableSelect.ts +0 -19
  142. package/src/components/Table/hooks/useTableSort.ts +0 -8
  143. package/src/components/Tabs/Tabs.tsx +0 -68
  144. package/src/components/Tooltip/Tooltip.tsx +0 -191
  145. package/src/components/Tree/Tree.tsx +0 -22
  146. package/src/components/Tree/TreeItem.tsx +0 -57
  147. package/src/components/Wrappers/AppLayout.tsx +0 -17
  148. package/src/components/Wrappers/ConditionalWrapper.tsx +0 -10
  149. package/src/components/Wrappers/FormWrapper.tsx +0 -84
  150. package/src/components/Wrappers/PageLayout.tsx +0 -168
  151. package/src/hooks/useBackgroundClose.ts +0 -19
  152. package/src/hooks/useGetFocusableElements.ts +0 -43
  153. package/src/hooks/useIsMenuOpen.ts +0 -11
  154. package/src/hooks/useLocalPopoverControl.ts +0 -63
  155. package/src/hooks/useOnEsc.ts +0 -14
  156. package/src/hooks/usePopupControl.ts +0 -22
  157. package/src/hooks/useZendesk.ts +0 -22
  158. package/src/index.ts +0 -387
  159. package/src/pages/NoAccessPage.tsx +0 -27
  160. package/src/pages/NotFoundPage.tsx +0 -26
  161. package/src/styles/App.scss +0 -47
  162. package/src/styles/common/_animations.scss +0 -58
  163. package/src/styles/common/_typography.scss +0 -91
  164. package/src/styles/common/helpers/_base.scss +0 -55
  165. package/src/styles/common/helpers/_color.scss +0 -10
  166. package/src/styles/common/helpers/_display.scss +0 -85
  167. package/src/styles/common/helpers/_size.scss +0 -25
  168. package/src/styles/common/maps/_align.scss +0 -21
  169. package/src/styles/common/maps/_buttonMaps.scss +0 -42
  170. package/src/styles/common/maps/_info-types.scss +0 -1
  171. package/src/styles/common/maps/_spacing.scss +0 -78
  172. package/src/styles/common/maps/_text.scss +0 -14
  173. package/src/styles/components/_accordions.scss +0 -51
  174. package/src/styles/components/_alert.scss +0 -23
  175. package/src/styles/components/_badge.scss +0 -84
  176. package/src/styles/components/_button.scss +0 -99
  177. package/src/styles/components/_buttonSplit.scss +0 -74
  178. package/src/styles/components/_card.scss +0 -24
  179. package/src/styles/components/_dialog.scss +0 -119
  180. package/src/styles/components/_form.scss +0 -8
  181. package/src/styles/components/_header.scss +0 -157
  182. package/src/styles/components/_input.scss +0 -167
  183. package/src/styles/components/_inputCheckbox.scss +0 -48
  184. package/src/styles/components/_inputDateTime.scss +0 -161
  185. package/src/styles/components/_inputRadio.scss +0 -83
  186. package/src/styles/components/_inputSelect.scss +0 -8
  187. package/src/styles/components/_list.scss +0 -58
  188. package/src/styles/components/_loader.scss +0 -55
  189. package/src/styles/components/_menu-v2.scss +0 -67
  190. package/src/styles/components/_menu.scss +0 -62
  191. package/src/styles/components/_notifications.scss +0 -71
  192. package/src/styles/components/_page.scss +0 -84
  193. package/src/styles/components/_portal.scss +0 -8
  194. package/src/styles/components/_print.scss +0 -77
  195. package/src/styles/components/_progressBar.scss +0 -83
  196. package/src/styles/components/_pullover.scss +0 -95
  197. package/src/styles/components/_scrollbar.scss +0 -18
  198. package/src/styles/components/_sidebar.scss +0 -204
  199. package/src/styles/components/_smallComponents.scss +0 -23
  200. package/src/styles/components/_table.scss +0 -340
  201. package/src/styles/components/_tabs.scss +0 -33
  202. package/src/styles/components/_tooltip.scss +0 -48
  203. package/src/styles/components/_tree.scss +0 -21
  204. package/src/styles/components/_widget.scss +0 -90
  205. package/src/styles/pages/_fullScreenPage.scss +0 -64
  206. package/src/styles/variables/_bp.scss +0 -6
  207. package/src/styles/variables/_variables.scss +0 -142
  208. package/src/types/Base/custom.d.ts +0 -9
  209. package/src/types/IBasic.ts +0 -32
  210. package/src/types/ICountryCode.ts +0 -5
  211. package/src/types/IError.ts +0 -5
  212. package/src/types/IHeader.ts +0 -40
  213. package/src/types/IInfo.ts +0 -1
  214. package/src/types/IKeyboard.ts +0 -33
  215. package/src/types/IMenu.ts +0 -19
  216. package/src/types/INotifications.ts +0 -15
  217. package/src/types/IPopup.ts +0 -17
  218. package/src/types/IRouter.ts +0 -6
  219. package/src/types/ISelect.ts +0 -54
  220. package/src/types/ITab.ts +0 -10
  221. package/src/types/ITable.ts +0 -291
  222. package/src/types/ITree.ts +0 -6
  223. package/src/utils/InputPatternValidation.ts +0 -12
  224. package/src/utils/dateUtils.ts +0 -32
  225. package/src/utils/fileUtils.ts +0 -177
  226. package/src/utils/i18n/i18nIUICyrilic.ts +0 -119
  227. package/src/utils/i18n/i18nIUILatin.ts +0 -120
  228. package/src/utils/i18n/i18nIUIMe.ts +0 -118
  229. package/src/utils/icons.ts +0 -13
  230. package/src/utils/localStorageHelper.ts +0 -24
  231. package/src/utils/logoUtils.ts +0 -7
  232. package/src/utils/numberUtils.ts +0 -21
  233. package/src/utils/objectUtils.ts +0 -114
  234. package/src/utils/popupUtils.ts +0 -82
  235. package/src/utils/rootDir.ts +0 -1
  236. package/src/utils/stringUtils.ts +0 -18
  237. package/src/utils/tableUtils.ts +0 -130
  238. package/src/utils/toasts.ts +0 -6
  239. package/src/utils/urlUtils.ts +0 -4
  240. package/tsconfig.icons.json +0 -5
  241. package/tsconfig.json +0 -22
@@ -1,14 +0,0 @@
1
- import { useEffect } from 'react';
2
-
3
- export const useOnEsc = (onEsc: () => void, disabled?: boolean) => {
4
- useEffect(() => {
5
- if (!disabled) {
6
- const onEscPress = (e: KeyboardEvent) => {
7
- e.code === 'Escape' && onEsc();
8
- };
9
-
10
- document.body.addEventListener('keyup', onEscPress);
11
- return () => document.body.removeEventListener('keyup', onEscPress);
12
- }
13
- }, [onEsc, disabled]);
14
- };
@@ -1,22 +0,0 @@
1
- import type { IPopupControl, IPopupControlRef } from '../types/IPopup';
2
- import { useCallback, useRef, useState } from 'react';
3
-
4
- export const usePopupControl: (props?: {
5
- onCloseCallback?: () => void;
6
- }) => IPopupControl = props => {
7
- const [isOpen, setIsOpen] = useState(false);
8
-
9
- const controlRef = useRef<IPopupControlRef>(null);
10
-
11
- const onOpen = useCallback(() => controlRef.current?.onOpen(), []);
12
- const onClose = useCallback(() => {
13
- controlRef.current?.onClose();
14
- props?.onCloseCallback?.();
15
- }, [props]);
16
-
17
- return {
18
- control: { controlRef, isOpen, setIsOpen },
19
- onOpen,
20
- onClose,
21
- };
22
- };
@@ -1,22 +0,0 @@
1
- import { useEffect } from 'react';
2
-
3
- interface IZendesk {
4
- show: () => void;
5
- hide: () => void;
6
- activate: () => void;
7
- setLocale: (locale: string) => void;
8
- }
9
- declare global {
10
- var zE: IZendesk;
11
- }
12
-
13
- export const useHideZendesk = () => {
14
- useEffect(() => {
15
- const zendesk = window.zE ?? null;
16
- if (zendesk) {
17
- // zendesk.setLocale('sr');
18
- zendesk.hide();
19
- return () => zendesk.show();
20
- }
21
- }, []);
22
- };
package/src/index.ts DELETED
@@ -1,387 +0,0 @@
1
- import type { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
- import type { ToastContainerProps } from 'react-toastify';
3
- import type { IAlertProps } from './components/Alert/Alert';
4
- import type { INotificationsProps } from './components/Header/Components/Notifications';
5
- import type { ISidebarItem } from './components/Sidebar/types/ISidebar';
6
- import type { ITableSearchProps } from './components/Table/hooks/useTableSearch';
7
- import type { IFormWrapper } from './components/Wrappers/FormWrapper';
8
- import type {
9
- DeepPartial,
10
- IAnyObject,
11
- IBooleanObject,
12
- ISimpleObject,
13
- ISimpleObjectWithCode,
14
- IStringObject,
15
- IValueLabel,
16
- } from './types/IBasic';
17
- import type { IError } from './types/IError';
18
- import type { IHeaderAction, IHeaderUserMenuProps } from './types/IHeader';
19
- import type { IKeyboardAction } from './types/IKeyboard';
20
- import type { IMenuItem, IMenuPlacement } from './types/IMenu';
21
- import type {
22
- INotification,
23
- // INotificationType,
24
- // INotificationValueKey,
25
- } from './types/INotifications';
26
- import type { ILocalPopupControl, IPopupControl, IPopupControlRef } from './types/IPopup';
27
- import type { IRoute } from './types/IRouter';
28
- import type { ISelectData } from './types/ISelect';
29
- import type { ITab } from './types/ITab';
30
- import type {
31
- IGetPrintData,
32
- IPagination,
33
- IPaginationControl,
34
- IPrintData,
35
- IReportTemplate,
36
- IReportTemplateData,
37
- IReportTemplateFilterValue,
38
- ITable,
39
- ITableColumn,
40
- ITableDataActions,
41
- ITableDataItem,
42
- ITableDataItemCells,
43
- ITableEdit,
44
- ITableEditSubmit,
45
- ITableFilter,
46
- ITableFilterData,
47
- ITableFilterItem,
48
- ITableItemDeleteData,
49
- ITableSort,
50
- ITableTemplateData,
51
- } from './types/ITable';
52
- import type { ITreeItem } from './types/ITree';
53
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
54
- import { DragDropContext, Draggable, Droppable } from '@hello-pangea/dnd';
55
- import clsx from 'clsx';
56
- import dayjs from 'dayjs';
57
- import { toast, ToastContainer } from 'react-toastify';
58
- import { Accordions } from './components/Accordions/Accordions';
59
- import { Alert } from './components/Alert/Alert';
60
- import { DotBadge } from './components/Badge/DotBadge';
61
- import { NotificationBadge } from './components/Badge/NotificationBadge';
62
- import { PillBadge } from './components/Badge/PillBadge';
63
- import { Button } from './components/Button/Button';
64
- import { IconButton } from './components/Button/IconButton';
65
- import { SplitButton } from './components/Button/SplitButton';
66
- import { Dashboard } from './components/Dashboard/Dashboard';
67
- import { DashboardWidget } from './components/Dashboard/DashboardWidget';
68
- import { FastLinksWidget } from './components/Dashboard/FastLinksWidget/FastLinksWidget';
69
- import { Dialog } from './components/Dialog/Dialog';
70
- import { Collapse } from './components/Helper/Collapse';
71
- import { Checkbox } from './components/Inputs/Checkbox';
72
- import { CurrencyInput } from './components/Inputs/CurrencyInput';
73
- import { DateInput } from './components/Inputs/DateInput/DateInput';
74
- import { NumberInput } from './components/Inputs/NumberInput';
75
- import { PasswordInput } from './components/Inputs/PasswordInput';
76
- import { PhoneInput } from './components/Inputs/PhoneInput/PhoneInput';
77
- import { Radio } from './components/Inputs/Radio';
78
- import { RadioLarge } from './components/Inputs/RadioLarge';
79
- import { SearchInput } from './components/Inputs/SearchInput';
80
- import {
81
- Select,
82
- SelectAsyncPaginate,
83
- SelectCreatable,
84
- } from './components/Inputs/Selects/Select';
85
- import { TextAreaInput } from './components/Inputs/TextAreaInput';
86
- import { TextInput } from './components/Inputs/TextInput';
87
- import { TimeInput } from './components/Inputs/TimeInput/TimeInput';
88
- import { List } from './components/List/List';
89
- import {
90
- FullScreenLoader,
91
- LazyLoader,
92
- Loader,
93
- SimpleLoader,
94
- } from './components/Loader/Loader';
95
- import { ProgressBar } from './components/Loader/ProgressBar';
96
- import { Menu } from './components/Menu/Menu';
97
- import { MenuItem } from './components/Menu/MenuItem';
98
- import { ScrollableContent } from './components/PageComponents/ScrollableContent';
99
- import { Pullover } from './components/Pullover/Pullover';
100
- import { Router } from './components/Router/Router';
101
- import { CreateTemplateDialog } from './components/Table/components/templates/CreateTemplateDialog';
102
- import { TemplatesPullover } from './components/Table/components/templates/TemplatesPullover';
103
- // import { ItemEditOptionsButtons } from './components/Table/Components/Edit/ItemEditOptionsButtons';
104
- // import { TableEditRow } from './components/Table/Components/Edit/TableEditRow';
105
- // import { FilterItem } from './components/Table/Components/FilterItem';
106
- // import { SetTableFilter } from './components/Table/Components/SetTableFilter';
107
- // import { TableFooter } from './components/Table/Components/TableFooter';
108
- // import { GridTable } from '../idea/GridTable/GridTable';
109
- // import { TablePrint } from './components/Table/Components/Print/TablePrint';
110
- import { useTableColumns } from './components/Table/hooks/useTableColumns';
111
- import { useTableEdit } from './components/Table/hooks/useTableEdit';
112
- import { useTableFilterFields } from './components/Table/hooks/useTableFilterFields';
113
- import { useTablePagination } from './components/Table/hooks/useTablePagination';
114
- import { useTablePrint } from './components/Table/hooks/useTablePrint';
115
- import { useTableSearch } from './components/Table/hooks/useTableSearch';
116
- import { useTableSelect } from './components/Table/hooks/useTableSelect';
117
- import { useTableSort } from './components/Table/hooks/useTableSort';
118
- import { Table } from './components/Table/Table';
119
- // import { ItemActionsMenu } from './components/Table/Components/Edit/ItemActionsMenu';
120
- import { Tabs } from './components/Tabs/Tabs';
121
- import { Tooltip } from './components/Tooltip/Tooltip';
122
- import { Tree } from './components/Tree/Tree';
123
- import { ConditionalWrapper } from './components/Wrappers/ConditionalWrapper';
124
- import { FormWrapper } from './components/Wrappers/FormWrapper';
125
- import { PageLayout } from './components/Wrappers/PageLayout';
126
- import { useIsMenuOpen } from './hooks/useIsMenuOpen';
127
- import { useOnEsc } from './hooks/useOnEsc';
128
- import { usePopupControl } from './hooks/usePopupControl';
129
- import { useHideZendesk } from './hooks/useZendesk';
130
- import { tableCustomLimit1000 } from './types/ITable';
131
- import {
132
- checkIfExpired,
133
- dateAddDays,
134
- formatDate,
135
- formatDateAndTime,
136
- formatDateYMD,
137
- formatTime,
138
- formatYearMonth,
139
- getCurrentDateFormatted,
140
- getCurrentDateFormattedYMD,
141
- getDaysLeft,
142
- } from './utils/dateUtils';
143
- import {
144
- calculateFilesSize,
145
- dataURLtoFile,
146
- downloadDocumentFile,
147
- downloadFile,
148
- getBase64FromFile,
149
- getBase64FromUrl,
150
- getExtensionFromFilename,
151
- getFileFromUrl,
152
- rotateBase64Image,
153
- sizeInBytesPretty,
154
- splitBase64File,
155
- } from './utils/fileUtils';
156
- import { i18nIUICyrilic } from './utils/i18n/i18nIUICyrilic';
157
- import { i18nIUILatin } from './utils/i18n/i18nIUILatin';
158
- import { i18nIUIMe } from './utils/i18n/i18nIUIMe';
159
- import { inputPattern } from './utils/InputPatternValidation';
160
- import {
161
- getActiveOrgUuid,
162
- getDefaultOrgUuid,
163
- lsGet,
164
- lsRemove,
165
- lsSet,
166
- setActiveOrgUuid,
167
- setDefaultOrgUuid,
168
- } from './utils/localStorageHelper';
169
- import {
170
- formatCurrency,
171
- formatCurrencyNoDecimals,
172
- formatDecimalNumber,
173
- } from './utils/numberUtils';
174
- import {
175
- areStringArraysEqual,
176
- compareArrayItemsIndex,
177
- convertArrayToBooleanObject,
178
- convertBooleanObjectToArray,
179
- deepCopy,
180
- deleteEmptyProps,
181
- deleteEmptyPropsIncludingArray,
182
- deleteProps,
183
- deletePropsThatEndsWith,
184
- flattenTreeForSelect,
185
- intersectArrays,
186
- } from './utils/objectUtils';
187
- import { rootDir } from './utils/rootDir';
188
- import { getInputHelperText, getInputMinMaxPattern, maxChar } from './utils/stringUtils';
189
- import {
190
- convertReportTemplateFilterToSearch,
191
- convertSearchToReportTemplateFilter,
192
- getActiveFilterNumber,
193
- getPrintColumns,
194
- getVisibleColumnsIds,
195
- setTemplateData,
196
- } from './utils/tableUtils';
197
- import { toastError, toastSuccess } from './utils/toasts';
198
- import { parseUrlSearch } from './utils/urlUtils';
199
-
200
- export { Router, type IRoute, type ISidebarItem };
201
- export { ToastContainer, toast, type ToastContainerProps };
202
-
203
- export {
204
- Accordions,
205
- Alert,
206
- Button,
207
- Checkbox,
208
- CurrencyInput,
209
- Collapse,
210
- ConditionalWrapper,
211
- DateInput,
212
- Dashboard,
213
- DashboardWidget,
214
- FastLinksWidget,
215
- Dialog,
216
- DotBadge,
217
- FormWrapper,
218
- FullScreenLoader,
219
- IconButton,
220
- TextAreaInput,
221
- LazyLoader,
222
- Loader,
223
- SimpleLoader,
224
- List,
225
- Menu,
226
- MenuItem,
227
- NotificationBadge,
228
- NumberInput,
229
- PageLayout,
230
- PasswordInput,
231
- PhoneInput,
232
- ProgressBar,
233
- Pullover,
234
- PillBadge,
235
- Radio,
236
- RadioLarge,
237
- ScrollableContent,
238
- SearchInput,
239
- Select,
240
- SelectAsyncPaginate,
241
- SelectCreatable,
242
- SplitButton,
243
- tableCustomLimit1000,
244
- Tabs,
245
- TextInput,
246
- TimeInput,
247
- Tooltip,
248
- Tree,
249
- };
250
-
251
- export {
252
- Table,
253
- CreateTemplateDialog,
254
- TemplatesPullover,
255
- // SetTableFilter,
256
- // GridTable,
257
- // TablePrint,
258
- // TableEditRow,
259
- // TableFooter,
260
- useTableColumns,
261
- useTableEdit,
262
- useTableFilterFields,
263
- useTablePagination,
264
- useTablePrint,
265
- useTableSearch,
266
- useTableSelect,
267
- useTableSort,
268
- };
269
-
270
- export { useHideZendesk, useOnEsc, useIsMenuOpen, usePopupControl };
271
-
272
- export type {
273
- IAlertProps,
274
- DeepPartial,
275
- IAnyObject,
276
- IBooleanObject,
277
- IKeyboardAction,
278
- IMenuItem,
279
- IMenuPlacement,
280
- IPopupControlRef as PopupControlRef,
281
- IPopupControl,
282
- ILocalPopupControl,
283
- IError,
284
- IFormWrapper,
285
- IHeaderAction,
286
- IHeaderUserMenuProps,
287
- INotification,
288
- INotificationsProps,
289
- IPagination,
290
- ISelectData,
291
- IPaginationControl,
292
- ISimpleObject,
293
- ISimpleObjectWithCode,
294
- IStringObject,
295
- IPrintData,
296
- ITab,
297
- ITable,
298
- ITableColumn,
299
- ITableDataActions,
300
- ITableDataItem,
301
- ITableDataItemCells,
302
- ITableEdit,
303
- ITableEditSubmit,
304
- ITableFilter,
305
- ITableFilterData,
306
- ITableSearchProps,
307
- ITableFilterItem,
308
- ITableItemDeleteData,
309
- ITableSort,
310
- ITableTemplateData,
311
- IReportTemplate,
312
- IReportTemplateData,
313
- IReportTemplateFilterValue,
314
- IGetPrintData,
315
- ITreeItem,
316
- IValueLabel,
317
- IconDefinition,
318
- };
319
-
320
- export { i18nIUICyrilic, i18nIUILatin, i18nIUIMe };
321
-
322
- export {
323
- areStringArraysEqual,
324
- checkIfExpired,
325
- compareArrayItemsIndex,
326
- convertBooleanObjectToArray,
327
- convertArrayToBooleanObject,
328
- dateAddDays,
329
- deepCopy,
330
- deleteEmptyProps,
331
- deleteEmptyPropsIncludingArray,
332
- deleteProps,
333
- deletePropsThatEndsWith,
334
- formatCurrency,
335
- formatCurrencyNoDecimals,
336
- formatDate,
337
- formatDateAndTime,
338
- formatDateYMD,
339
- formatDecimalNumber,
340
- formatTime,
341
- formatYearMonth,
342
- convertReportTemplateFilterToSearch,
343
- convertSearchToReportTemplateFilter,
344
- getActiveFilterNumber,
345
- getCurrentDateFormatted,
346
- getCurrentDateFormattedYMD,
347
- getDaysLeft,
348
- getInputHelperText,
349
- getInputMinMaxPattern,
350
- getPrintColumns,
351
- setTemplateData,
352
- getVisibleColumnsIds,
353
- inputPattern,
354
- flattenTreeForSelect,
355
- intersectArrays,
356
- maxChar,
357
- parseUrlSearch,
358
- rootDir,
359
- toastError,
360
- toastSuccess,
361
- };
362
-
363
- export {
364
- calculateFilesSize,
365
- dataURLtoFile,
366
- downloadFile,
367
- downloadDocumentFile,
368
- getBase64FromFile,
369
- getBase64FromUrl,
370
- getExtensionFromFilename,
371
- getFileFromUrl,
372
- rotateBase64Image,
373
- sizeInBytesPretty,
374
- splitBase64File,
375
- };
376
-
377
- export {
378
- getActiveOrgUuid,
379
- getDefaultOrgUuid,
380
- lsGet,
381
- lsRemove,
382
- lsSet,
383
- setActiveOrgUuid,
384
- setDefaultOrgUuid,
385
- };
386
-
387
- export { DragDropContext, Draggable, Droppable, FontAwesomeIcon, clsx, dayjs };
@@ -1,27 +0,0 @@
1
- import type { FC } from 'react';
2
- import { useTranslation } from 'react-i18next';
3
- import { Link } from 'react-router';
4
- import { Button } from '../components/Button/Button';
5
-
6
- const NoAccessPage: FC = () => {
7
- const { t } = useTranslation();
8
-
9
- return (
10
- <div className="full-screen-page">
11
- <div id="content">
12
- <h1>{t('NoAccessPage')}</h1>
13
- <p className="subtitle">{t('NoAccessPageInfo')}</p>
14
- </div>
15
- <p id="img" className="img-403">
16
- 403
17
- </p>
18
- <div id="actions">
19
- <Link to="/">
20
- <Button label={t('ReturnToHomepage')} />
21
- </Link>
22
- </div>
23
- </div>
24
- );
25
- };
26
-
27
- export default NoAccessPage;
@@ -1,26 +0,0 @@
1
- import type { FC } from 'react';
2
- import { useTranslation } from 'react-i18next';
3
- import { Link } from 'react-router';
4
- import notFoundImg from '../assets/images/not-found.svg';
5
- import { Button } from '../components/Button/Button';
6
-
7
- const NotFoundPage: FC = () => {
8
- const { t } = useTranslation();
9
-
10
- return (
11
- <div className="full-screen-page">
12
- <div id="content">
13
- <h1>{t('PageNotFound')}</h1>
14
- <p className="subtitle">{t('PageNotFoundInfo')}</p>
15
- </div>
16
- <img id="img" src={notFoundImg} alt="404" />
17
- <div id="actions">
18
- <Link to="/">
19
- <Button label={t('ReturnToHomepage')} />
20
- </Link>
21
- </div>
22
- </div>
23
- );
24
- };
25
-
26
- export default NotFoundPage;
@@ -1,47 +0,0 @@
1
- @use './variables/variables';
2
-
3
- @use './common/typography';
4
- @use './common/animations';
5
- @use './common/maps/align';
6
- @use './common/maps/spacing';
7
- @use './common/maps/text';
8
-
9
- @use './common/helpers/base';
10
- @use './common/helpers/color';
11
- @use './common/helpers/display';
12
- @use './common/helpers/size';
13
-
14
- @use './components/accordions';
15
- @use './components/alert';
16
- @use './components/badge';
17
- @use './components/button';
18
- @use './components/buttonSplit';
19
- @use './components/card';
20
- // @use './components/menu-v2';
21
- @use './components/dialog';
22
- @use './components/form';
23
- @use './components/header';
24
- @use './components/input';
25
- @use './components/inputCheckbox';
26
- @use './components/inputDateTime';
27
- @use './components/inputRadio';
28
- @use './components/inputSelect';
29
- @use './components/list';
30
- @use './components/loader';
31
- @use './components/menu';
32
- @use './components/notifications';
33
- @use './components/page';
34
- @use './components/portal';
35
- @use './components/print';
36
- @use './components/progressBar';
37
- @use './components/pullover';
38
- @use './components/scrollbar';
39
- @use './components/sidebar';
40
- @use './components/smallComponents';
41
- @use './components/table';
42
- @use './components/tabs';
43
- @use './components/tooltip';
44
- @use './components/tree';
45
- @use './components/widget';
46
-
47
- @use './pages/fullScreenPage';
@@ -1,58 +0,0 @@
1
- @keyframes fade-in {
2
- 0% {
3
- opacity: 0;
4
- }
5
- 100% {
6
- opacity: 1;
7
- }
8
- }
9
- @keyframes fade-out {
10
- 0% {
11
- opacity: 1;
12
- }
13
- 100% {
14
- opacity: 0;
15
- }
16
- }
17
-
18
- @keyframes scale-in {
19
- 0% {
20
- transform: scale(0.5);
21
- }
22
- 100% {
23
- transform: scale(1);
24
- }
25
- }
26
-
27
- @keyframes shimmer {
28
- 0% {
29
- left: -100%;
30
- }
31
- 100% {
32
- left: 100%;
33
- }
34
- }
35
-
36
- @keyframes auto-fill {
37
- to {
38
- font-size: 13px;
39
- }
40
- }
41
-
42
- @keyframes rotate {
43
- to {
44
- transform: rotate(360deg);
45
- }
46
- }
47
-
48
- @keyframes temp-disable-pointer {
49
- 0% {
50
- pointer-events: none;
51
- }
52
- 99% {
53
- pointer-events: none;
54
- }
55
- 100% {
56
- pointer-events: auto;
57
- }
58
- }
@@ -1,91 +0,0 @@
1
- @use '../variables/bp';
2
- @import url('@fontsource-variable/ibm-plex-sans');
3
-
4
- * {
5
- font-family: 'IBM Plex Sans Variable', sans-serif;
6
- }
7
-
8
- body {
9
- color: var(--text);
10
- }
11
-
12
- p,
13
- h1,
14
- h2,
15
- h3,
16
- h4,
17
- h5 {
18
- margin: 0;
19
- }
20
- p {
21
- font-size: var(--fs-m);
22
- }
23
- h1 {
24
- font-size: 60px;
25
- line-height: 1.1;
26
- }
27
- h2 {
28
- font-size: 48px;
29
- }
30
- h2 {
31
- font-size: 36px;
32
- }
33
- h3 {
34
- font-size: 24px;
35
- }
36
- h4 {
37
- font-size: 18px;
38
- }
39
-
40
- .bold {
41
- font-weight: 600 !important;
42
- }
43
- .italic {
44
- font-style: italic !important;
45
- }
46
-
47
- .new-line {
48
- white-space: pre-line !important;
49
- }
50
- .no-wrap {
51
- white-space: nowrap !important;
52
- }
53
- .word-break {
54
- word-break: break-word !important;
55
- }
56
-
57
- .subtitle {
58
- font-size: 20px;
59
- color: var(--neutral-600);
60
- white-space: pre-line;
61
- }
62
- .link {
63
- color: var(--link) !important;
64
- text-decoration: underline !important;
65
- &.inactive {
66
- opacity: 0.5;
67
- }
68
- &:not(:disabled) {
69
- cursor: pointer;
70
- &:hover {
71
- color: var(--link-alt) !important;
72
- opacity: 1;
73
- }
74
- }
75
- }
76
-
77
- @media #{bp.$mobile} {
78
- h1 {
79
- font-size: 36px;
80
- line-height: 1.2;
81
- }
82
- h2 {
83
- font-size: 24px;
84
- }
85
- h2 {
86
- font-size: 20px;
87
- }
88
- h3 {
89
- font-size: 16px;
90
- }
91
- }