@inceptionbg/iui 2.0.4 → 2.0.6

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 (257) hide show
  1. package/dist/{NoAccessPage-BllwaG2u.js → NoAccessPage-C6nBt-PN.js} +2 -2
  2. package/dist/{NoAccessPage-BllwaG2u.js.map → NoAccessPage-C6nBt-PN.js.map} +1 -1
  3. package/dist/{NotFoundPage-DVm00-sr.js → NotFoundPage-DatmJOrr.js} +2 -2
  4. package/dist/{NotFoundPage-DVm00-sr.js.map → NotFoundPage-DatmJOrr.js.map} +1 -1
  5. package/dist/icons/index.d.ts +43 -0
  6. package/dist/icons/index.js +1 -0
  7. package/dist/index.d.ts +57 -49
  8. package/dist/index.js +1 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/iui.css +1 -1
  11. package/idea/Menu/Menu.tsx +119 -0
  12. package/idea/Menu/MenuItem.tsx +74 -0
  13. package/idea/Menu/hooks/useMenuControl.ts +13 -0
  14. package/idea/Menu.tsx +132 -0
  15. package/idea/NoAccessInfo.tsx +193 -0
  16. package/idea/Notifications.tsx +245 -0
  17. package/idea/Table2/Components/Columns/ColumnsList.tsx +56 -0
  18. package/idea/Table2/Components/Columns/SetColumnsList.tsx +107 -0
  19. package/idea/Table2/Components/Edit/ItemActionsMenu.tsx +87 -0
  20. package/idea/Table2/Components/Edit/ItemEditOptionsButtons.tsx +32 -0
  21. package/idea/Table2/Components/Edit/TableEditRow.tsx +56 -0
  22. package/idea/Table2/Components/FilterItem.tsx +20 -0
  23. package/idea/Table2/Components/Header/TableHeader.tsx +35 -0
  24. package/idea/Table2/Components/Header/TableHeaderRow.tsx +37 -0
  25. package/idea/Table2/Components/Print/CustomTablePrint.tsx +119 -0
  26. package/idea/Table2/Components/Print/TablePrint.tsx +208 -0
  27. package/idea/Table2/Components/SetSortList.tsx +33 -0
  28. package/idea/Table2/Components/SetTableFilter.tsx +90 -0
  29. package/idea/Table2/Components/TableFooter.tsx +107 -0
  30. package/idea/Table2/Components/TableOptions.tsx +211 -0
  31. package/idea/Table2/Components/Templates/TemplateCreate.tsx +75 -0
  32. package/idea/Table2/Components/Templates/TemplateCreateDefault.tsx +45 -0
  33. package/idea/Table2/Components/Templates/TemplateList.tsx +167 -0
  34. package/idea/Table2/Components/Templates/repo/TemplateRepo.ts +51 -0
  35. package/idea/Table2/Table.tsx +657 -0
  36. package/idea/Table2/_table.scss +300 -0
  37. package/idea/Table2/hooks/useDefaultTemplate.ts +22 -0
  38. package/idea/Table2/hooks/useTableKeyboard.ts +115 -0
  39. package/package.json +15 -11
  40. package/rollup.config.js +80 -0
  41. package/src/assets/icons/duotone/faCircleUser.ts +17 -0
  42. package/src/assets/icons/index.ts +20 -0
  43. package/src/assets/icons/light/faArrowDownShortWide.ts +15 -0
  44. package/src/assets/icons/light/faArrowDownWideShort.ts +15 -0
  45. package/src/assets/icons/light/faArrowUpArrowDown.ts +15 -0
  46. package/src/assets/icons/light/faArrowUpRightFromSquare.ts +15 -0
  47. package/src/assets/icons/light/faArrowsToLine.ts +15 -0
  48. package/src/assets/icons/light/faArrowsUpDown.ts +15 -0
  49. package/src/assets/icons/light/faCalendarPlus.ts +15 -0
  50. package/src/assets/icons/light/faCheck.ts +15 -0
  51. package/src/assets/icons/light/faChevronDown.ts +15 -0
  52. package/src/assets/icons/light/faChevronRight.ts +15 -0
  53. package/src/assets/icons/light/faCircleInfo.ts +15 -0
  54. package/src/assets/icons/light/faCircleXmark.ts +15 -0
  55. package/src/assets/icons/light/faClockRotateLeft.ts +15 -0
  56. package/src/assets/icons/light/faEllipsisVertical.ts +15 -0
  57. package/src/assets/icons/light/faEye.ts +15 -0
  58. package/src/assets/icons/light/faEyeSlash.ts +15 -0
  59. package/src/assets/icons/light/faFilter.ts +15 -0
  60. package/src/assets/icons/light/faGear.ts +15 -0
  61. package/src/assets/icons/light/faHouse.ts +15 -0
  62. package/src/assets/icons/light/faIdBadge.ts +15 -0
  63. package/src/assets/icons/light/faLineColumns.ts +15 -0
  64. package/src/assets/icons/light/faLink.ts +15 -0
  65. package/src/assets/icons/light/faMagnifyingGlass.ts +15 -0
  66. package/src/assets/icons/light/faPenField.ts +15 -0
  67. package/src/assets/icons/light/faPrint.ts +15 -0
  68. package/src/assets/icons/light/faQuestion.ts +15 -0
  69. package/src/assets/icons/light/faRotateRight.ts +15 -0
  70. package/src/assets/icons/light/faTrashCan.ts +15 -0
  71. package/src/assets/icons/light/faTriangleExclamation.ts +15 -0
  72. package/src/assets/icons/light/faXmark.ts +15 -0
  73. package/src/assets/icons/regular/faArrowLeft.ts +15 -0
  74. package/src/assets/icons/regular/faArrowRightArrowLeft.ts +15 -0
  75. package/src/assets/icons/regular/faCircleCheck.ts +15 -0
  76. package/src/assets/icons/regular/faCircleExclamation.ts +15 -0
  77. package/src/assets/icons/regular/faCircleInfo.ts +15 -0
  78. package/src/assets/icons/regular/faFileArrowDown.ts +15 -0
  79. package/src/assets/icons/regular/faFilterCircleXmark.ts +15 -0
  80. package/src/assets/icons/regular/faTriangleExclamation.ts +15 -0
  81. package/src/assets/icons/solid/faAngleLeft.ts +15 -0
  82. package/src/assets/icons/solid/faAngleRight.ts +15 -0
  83. package/src/assets/icons/solid/faArrowDownWideShort.ts +15 -0
  84. package/src/assets/icons/solid/faCaretDown.ts +15 -0
  85. package/src/assets/icons/solid/faCheck.ts +15 -0
  86. package/src/assets/icons/solid/faEllipsisVertical.ts +15 -0
  87. package/src/assets/icons/solid/faFilter.ts +15 -0
  88. package/src/assets/icons/solid/faFloppyDisk.ts +15 -0
  89. package/src/assets/icons/solid/faGripDotsVertical.ts +15 -0
  90. package/src/assets/icons/solid/faListUl.ts +15 -0
  91. package/src/assets/icons/solid/faMagnifyingGlass.ts +15 -0
  92. package/src/assets/icons/solid/faMinus.ts +15 -0
  93. package/src/assets/icons/solid/faPlus.ts +15 -0
  94. package/src/assets/icons/solid/faPrint.ts +15 -0
  95. package/src/assets/icons/solid/faRotateRight.ts +15 -0
  96. package/src/assets/icons/solid/faXmark.ts +15 -0
  97. package/src/assets/images/logo/mts.svg +5703 -0
  98. package/src/assets/images/logo/paperless.svg +21 -0
  99. package/src/assets/images/logo/pismonosa.png +0 -0
  100. package/src/assets/images/not-found.svg +19 -0
  101. package/src/components/Accordions/Accordions.tsx +64 -0
  102. package/src/components/Alert/Alert.tsx +31 -0
  103. package/src/components/Badge/DotBadge.tsx +16 -0
  104. package/src/components/Badge/NotificationBadge.tsx +29 -0
  105. package/src/components/Badge/PillBadge.tsx +13 -0
  106. package/src/components/Button/Button.tsx +56 -0
  107. package/src/components/Button/IconButton.tsx +49 -0
  108. package/src/components/Dashboard/Dashboard.tsx +9 -0
  109. package/src/components/Dashboard/DashboardWidget.tsx +44 -0
  110. package/src/components/Dashboard/FastLinksWidget/FastLinksWidget.tsx +37 -0
  111. package/src/components/Dialog/DeleteItemDialog.tsx +52 -0
  112. package/src/components/Dialog/Dialog.tsx +226 -0
  113. package/src/components/Dialog/hooks/useDialogKeyboard.ts +41 -0
  114. package/src/components/Dialog/hooks/useDialogObserver.ts +21 -0
  115. package/src/components/Header/Components/ModuleSelect.tsx +55 -0
  116. package/src/components/Header/Components/UserMenu.tsx +44 -0
  117. package/src/components/Header/Header.tsx +36 -0
  118. package/src/components/Helper/Collapse.tsx +52 -0
  119. package/src/components/Inputs/Checkbox.tsx +53 -0
  120. package/src/components/Inputs/CurrencyInput.tsx +123 -0
  121. package/src/components/Inputs/DateInput/DateInput.tsx +176 -0
  122. package/src/components/Inputs/DateInput/components/DatePartInput.tsx +154 -0
  123. package/src/components/Inputs/InputWrapper.tsx +90 -0
  124. package/src/components/Inputs/NumberInput.tsx +83 -0
  125. package/src/components/Inputs/PasswordInput.tsx +38 -0
  126. package/src/components/Inputs/Radio.tsx +59 -0
  127. package/src/components/Inputs/RadioGroup.tsx +48 -0
  128. package/src/components/Inputs/RadioLarge.tsx +39 -0
  129. package/src/components/Inputs/SearchInput.tsx +40 -0
  130. package/src/components/Inputs/Select2/Select.tsx +224 -0
  131. package/src/components/Inputs/Select2/select.scss +43 -0
  132. package/src/components/Inputs/Selects/Select.tsx +17 -0
  133. package/src/components/Inputs/Selects/components/CustomSelectComponents.tsx +19 -0
  134. package/src/components/Inputs/Selects/components/SelectWrapper.tsx +126 -0
  135. package/src/components/Inputs/Selects/utils/selectStyles.ts +104 -0
  136. package/src/components/Inputs/TextAreaInput.tsx +67 -0
  137. package/src/components/Inputs/TextInput.tsx +98 -0
  138. package/src/components/Inputs/TimeInput/TimeInput.tsx +81 -0
  139. package/src/components/Loader/Loader.tsx +53 -0
  140. package/src/components/Menu/Menu.tsx +68 -0
  141. package/src/components/Menu/MenuItem.tsx +47 -0
  142. package/src/components/Menu/NewMenu.tsx +66 -0
  143. package/src/components/Menu/hooks/useMenuPosition.tsx +80 -0
  144. package/src/components/Pullover/Pullover.tsx +89 -0
  145. package/src/components/Router/Router.tsx +51 -0
  146. package/src/components/Sidebar/AddButton.tsx +22 -0
  147. package/src/components/Sidebar/Sidebar.tsx +81 -0
  148. package/src/components/Sidebar/SidebarItem.tsx +84 -0
  149. package/src/components/Sidebar/types/ISidebar.ts +28 -0
  150. package/src/components/Table/Components/Columns/ColumnsList.tsx +61 -0
  151. package/src/components/Table/Components/Columns/SetColumnsList.tsx +113 -0
  152. package/src/components/Table/Components/Edit/ItemActionsMenu.tsx +84 -0
  153. package/src/components/Table/Components/Edit/ItemEditOptionsButtons.tsx +31 -0
  154. package/src/components/Table/Components/Edit/TableEditRow.tsx +56 -0
  155. package/src/components/Table/Components/FilterItem.tsx +20 -0
  156. package/src/components/Table/Components/Header/TableHeader.tsx +45 -0
  157. package/src/components/Table/Components/Header/TableHeaderRow.tsx +37 -0
  158. package/src/components/Table/Components/Print/CustomTablePrint.tsx +114 -0
  159. package/src/components/Table/Components/Print/TablePrint.tsx +207 -0
  160. package/src/components/Table/Components/SetSortList.tsx +30 -0
  161. package/src/components/Table/Components/SetTableFilter.tsx +90 -0
  162. package/src/components/Table/Components/TableFooter.tsx +135 -0
  163. package/src/components/Table/Components/TableOptions.tsx +226 -0
  164. package/src/components/Table/Components/Templates/TemplateCreate.tsx +80 -0
  165. package/src/components/Table/Components/Templates/TemplateCreateDefault.tsx +45 -0
  166. package/src/components/Table/Components/Templates/TemplateList.tsx +167 -0
  167. package/src/components/Table/Components/Templates/repo/TemplateRepo.ts +53 -0
  168. package/src/components/Table/Table.tsx +527 -0
  169. package/src/components/Table/hooks/useDefaultTemplate.ts +20 -0
  170. package/src/components/Table/hooks/useTableKeyboard.ts +138 -0
  171. package/src/components/Table/hooks/useTableSelect.ts +11 -0
  172. package/src/components/Tabs/Tabs.tsx +66 -0
  173. package/src/components/Tooltip/Tooltip.tsx +133 -0
  174. package/src/components/Tree/Tree.tsx +22 -0
  175. package/src/components/Tree/TreeItem.tsx +56 -0
  176. package/src/components/Wrappers/AppLayout.tsx +17 -0
  177. package/src/components/Wrappers/ConditionalWrapper.tsx +10 -0
  178. package/src/components/Wrappers/FormWrapper.tsx +81 -0
  179. package/src/components/Wrappers/PageLayout.tsx +152 -0
  180. package/src/hooks/useBackgroundClose.ts +18 -0
  181. package/src/hooks/useIsMenuOpen.ts +11 -0
  182. package/src/hooks/useOnEsc.ts +14 -0
  183. package/src/hooks/useZendesk.ts +21 -0
  184. package/src/index.ts +324 -0
  185. package/src/pages/NoAccessPage.tsx +27 -0
  186. package/src/pages/NotFoundPage.tsx +26 -0
  187. package/src/styles/App.scss +43 -0
  188. package/src/styles/common/_animations.scss +64 -0
  189. package/src/styles/common/_typography.scss +88 -0
  190. package/src/styles/common/helpers/_base.scss +55 -0
  191. package/src/styles/common/helpers/_color.scss +7 -0
  192. package/src/styles/common/helpers/_display.scss +85 -0
  193. package/src/styles/common/helpers/_size.scss +25 -0
  194. package/src/styles/common/maps/_align.scss +21 -0
  195. package/src/styles/common/maps/_info-types.scss +1 -0
  196. package/src/styles/common/maps/_spacing.scss +78 -0
  197. package/src/styles/common/maps/_text.scss +14 -0
  198. package/src/styles/components/_accordions.scss +46 -0
  199. package/src/styles/components/_alert.scss +23 -0
  200. package/src/styles/components/_badge.scss +76 -0
  201. package/src/styles/components/_button.scss +138 -0
  202. package/src/styles/components/_card.scss +24 -0
  203. package/src/styles/components/_dialog.scss +111 -0
  204. package/src/styles/components/_form.scss +8 -0
  205. package/src/styles/components/_header.scss +109 -0
  206. package/src/styles/components/_input.scss +158 -0
  207. package/src/styles/components/_inputCheckbox.scss +105 -0
  208. package/src/styles/components/_inputDateTime.scss +161 -0
  209. package/src/styles/components/_inputRadio.scss +83 -0
  210. package/src/styles/components/_inputSelect.scss +6 -0
  211. package/src/styles/components/_loader.scss +44 -0
  212. package/src/styles/components/_menu-v2.scss +67 -0
  213. package/src/styles/components/_menu.scss +53 -0
  214. package/src/styles/components/_page.scss +62 -0
  215. package/src/styles/components/_portal.scss +8 -0
  216. package/src/styles/components/_print.scss +87 -0
  217. package/src/styles/components/_pullover.scss +43 -0
  218. package/src/styles/components/_scrollbar.scss +18 -0
  219. package/src/styles/components/_sidebar.scss +206 -0
  220. package/src/styles/components/_smallComponents.scss +23 -0
  221. package/src/styles/components/_table.scss +270 -0
  222. package/src/styles/components/_tabs.scss +33 -0
  223. package/src/styles/components/_tooltip.scss +48 -0
  224. package/src/styles/components/_tree.scss +21 -0
  225. package/src/styles/components/_widget.scss +90 -0
  226. package/src/styles/pages/_fullScreenPage.scss +64 -0
  227. package/src/styles/variables/_bp.scss +5 -0
  228. package/src/styles/variables/_variables.scss +130 -0
  229. package/src/types/Base/custom.d.ts +9 -0
  230. package/src/types/IBasic.ts +31 -0
  231. package/src/types/IError.ts +5 -0
  232. package/src/types/IHeader.ts +24 -0
  233. package/src/types/IInfo.ts +1 -0
  234. package/src/types/IKeyboard.ts +37 -0
  235. package/src/types/IMenu.ts +18 -0
  236. package/src/types/IRouter.ts +6 -0
  237. package/src/types/ISelect.ts +52 -0
  238. package/src/types/ITab.ts +10 -0
  239. package/src/types/ITable.ts +249 -0
  240. package/src/types/ITree.ts +6 -0
  241. package/src/utils/DateUtils.ts +32 -0
  242. package/src/utils/InputPatternValidation.ts +12 -0
  243. package/src/utils/LocalStorageHelper.ts +24 -0
  244. package/src/utils/NumberUtils.ts +21 -0
  245. package/src/utils/ObjectUtils.ts +85 -0
  246. package/src/utils/RootDir.ts +1 -0
  247. package/src/utils/StringUtils.ts +18 -0
  248. package/src/utils/TableUtils.ts +130 -0
  249. package/src/utils/Toasts.ts +6 -0
  250. package/src/utils/UrlUtils.ts +4 -0
  251. package/src/utils/fileUtils.ts +176 -0
  252. package/src/utils/i18n/i18nIUICyrilic.ts +90 -0
  253. package/src/utils/i18n/i18nIUILatin.ts +90 -0
  254. package/src/utils/i18n/i18nIUIMe.ts +88 -0
  255. package/src/utils/icons.ts +13 -0
  256. package/tsconfig.icons.json +5 -0
  257. package/tsconfig.json +19 -0
package/src/index.ts ADDED
@@ -0,0 +1,324 @@
1
+ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
2
+ import type { IconDefinition } from '@fortawesome/fontawesome-svg-core';
3
+ import clsx from 'clsx';
4
+ import dayjs from 'dayjs';
5
+ import { DragDropContext, Draggable, Droppable } from 'react-beautiful-dnd';
6
+ import { ToastContainer } from 'react-toastify';
7
+
8
+ import type { IFormWrapper } from './components/Wrappers/FormWrapper';
9
+ import type {
10
+ DeepPartial,
11
+ IAnyObject,
12
+ IBooleanObject,
13
+ ISimpleObject,
14
+ ISimpleObjectWithCode,
15
+ IStringObject,
16
+ IValueLabel,
17
+ } from './types/IBasic';
18
+ import type { IKeyboardAction } from './types/IKeyboard';
19
+ import type { IMenuItem, IMenuPlacement } from './types/IMenu';
20
+ import type { IError } from './types/IError';
21
+ import type { ISelectData } from './types/ISelect';
22
+ import type { ITab } from './types/ITab';
23
+ import type {
24
+ IPagination,
25
+ IServerSidePagination,
26
+ ITable,
27
+ ITableColumn,
28
+ ITableDataItem,
29
+ ITableEditRow,
30
+ ITableFilter,
31
+ ITableFilterData,
32
+ ITableFilterItem,
33
+ ITableSort,
34
+ } from './types/ITable';
35
+ import type { ITreeItem } from './types/ITree';
36
+ import type { IHeaderAction, IHeaderUserMenuProps } from './types/IHeader';
37
+ import { tableCustomLimit1000 } from './types/ITable';
38
+
39
+ import type { IRoute } from './types/IRouter';
40
+ import { Router } from './components/Router/Router';
41
+
42
+ import { Accordions } from './components/Accordions/Accordions';
43
+ import { Alert, IAlertProps } from './components/Alert/Alert';
44
+ import { DotBadge } from './components/Badge/DotBadge';
45
+ import { NotificationBadge } from './components/Badge/NotificationBadge';
46
+ import { PillBadge } from './components/Badge/PillBadge';
47
+ import { Button } from './components/Button/Button';
48
+ import { IconButton } from './components/Button/IconButton';
49
+ import { Dashboard } from './components/Dashboard/Dashboard';
50
+ import { DashboardWidget } from './components/Dashboard/DashboardWidget';
51
+ import { FastLinksWidget } from './components/Dashboard/FastLinksWidget/FastLinksWidget';
52
+ import { DeleteItemDialog } from './components/Dialog/DeleteItemDialog';
53
+ import { Dialog } from './components/Dialog/Dialog';
54
+ import { Collapse } from './components/Helper/Collapse';
55
+ import { Checkbox } from './components/Inputs/Checkbox';
56
+ import { CurrencyInput } from './components/Inputs/CurrencyInput';
57
+ import { DateInput } from './components/Inputs/DateInput/DateInput';
58
+ import { TimeInput } from './components/Inputs/TimeInput/TimeInput';
59
+ import { TextAreaInput } from './components/Inputs/TextAreaInput';
60
+ import { NumberInput } from './components/Inputs/NumberInput';
61
+ import { PasswordInput } from './components/Inputs/PasswordInput';
62
+ import { Radio } from './components/Inputs/Radio';
63
+ import { RadioLarge } from './components/Inputs/RadioLarge';
64
+ import { SearchInput } from './components/Inputs/SearchInput';
65
+ import {
66
+ Select,
67
+ SelectAsyncPaginate,
68
+ SelectCreatable,
69
+ } from './components/Inputs/Selects/Select';
70
+ import { TextInput } from './components/Inputs/TextInput';
71
+ import { FullScreenLoader, LazyLoader, Loader } from './components/Loader/Loader';
72
+ import { Menu } from './components/Menu/Menu';
73
+ import { MenuItem } from './components/Menu/MenuItem';
74
+ import { ItemActionsMenu } from './components/Table/Components/Edit/ItemActionsMenu';
75
+ import { ItemEditOptionsButtons } from './components/Table/Components/Edit/ItemEditOptionsButtons';
76
+ import { TableEditRow } from './components/Table/Components/Edit/TableEditRow';
77
+ import { FilterItem } from './components/Table/Components/FilterItem';
78
+ import { SetTableFilter } from './components/Table/Components/SetTableFilter';
79
+ import { TableFooter } from './components/Table/Components/TableFooter';
80
+ import { Table } from './components/Table/Table';
81
+ import { TablePrint } from './components/Table/Components/Print/TablePrint';
82
+ import { Tabs } from './components/Tabs/Tabs';
83
+ import { Tooltip } from './components/Tooltip/Tooltip';
84
+ import { Tree } from './components/Tree/Tree';
85
+ import { ConditionalWrapper } from './components/Wrappers/ConditionalWrapper';
86
+ import { FormWrapper } from './components/Wrappers/FormWrapper';
87
+ import { PageLayout } from './components/Wrappers/PageLayout';
88
+
89
+ import {
90
+ checkIfExpired,
91
+ dateAddDays,
92
+ formatDate,
93
+ formatDateAndTime,
94
+ formatDateYMD,
95
+ formatTime,
96
+ formatYearMonth,
97
+ getCurrentDateFormatted,
98
+ getCurrentDateFormattedYMD,
99
+ getDaysLeft,
100
+ } from './utils/DateUtils';
101
+ import {
102
+ calculateFilesSize,
103
+ dataURLtoFile,
104
+ downloadFile,
105
+ downloadDocumentFile,
106
+ getBase64FromFile,
107
+ getBase64FromUrl,
108
+ getExtensionFromFilename,
109
+ getFileFromUrl,
110
+ rotateBase64Image,
111
+ sizeInBytesPretty,
112
+ splitBase64File,
113
+ } from './utils/fileUtils';
114
+ import { inputPattern } from './utils/InputPatternValidation';
115
+ import {
116
+ getActiveOrgUuid,
117
+ getDefaultOrgUuid,
118
+ lsGet,
119
+ lsRemove,
120
+ lsSet,
121
+ setActiveOrgUuid,
122
+ setDefaultOrgUuid,
123
+ } from './utils/LocalStorageHelper';
124
+ import {
125
+ formatCurrency,
126
+ formatCurrencyNoDecimals,
127
+ formatDecimalNumber,
128
+ } from './utils/NumberUtils';
129
+ import {
130
+ areStringArraysEqual,
131
+ compareArrayItemsIndex,
132
+ convertBooleanObjectToArray,
133
+ convertArrayToBooleanObject,
134
+ deepCopy,
135
+ deleteEmptyProps,
136
+ deleteEmptyPropsIncludingArray,
137
+ deleteProps,
138
+ deletePropsThatEndsWith,
139
+ intersectArrays,
140
+ } from './utils/ObjectUtils';
141
+ import {
142
+ convertReportTemplateFilterToSearch,
143
+ convertSearchToReportTemplateFilter,
144
+ getActiveFilterNumber,
145
+ getPrintColumns,
146
+ getVisibleColumnsIds,
147
+ setTemplateData,
148
+ } from './utils/TableUtils';
149
+ import { rootDir } from './utils/RootDir';
150
+ import { getInputHelperText, getInputMinMaxPattern, maxChar } from './utils/StringUtils';
151
+ import { toastError, toastSuccess } from './utils/Toasts';
152
+ import { parseUrlSearch } from './utils/UrlUtils';
153
+ import { i18nIUILatin } from './utils/i18n/i18nIUILatin';
154
+ import { i18nIUICyrilic } from './utils/i18n/i18nIUICyrilic';
155
+ import { i18nIUIMe } from './utils/i18n/i18nIUIMe';
156
+
157
+ import { useDefaultTemplate } from './components/Table/hooks/useDefaultTemplate';
158
+ import { useHideZendesk } from './hooks/useZendesk';
159
+ import { useOnEsc } from './hooks/useOnEsc';
160
+ import { useDialogObserver } from './components/Dialog/hooks/useDialogObserver';
161
+ import { useTableSelect } from './components/Table/hooks/useTableSelect';
162
+ import { useIsMenuOpen } from './hooks/useIsMenuOpen';
163
+
164
+ export { Router, type IRoute };
165
+
166
+ export {
167
+ Accordions,
168
+ Alert,
169
+ Button,
170
+ Checkbox,
171
+ CurrencyInput,
172
+ Collapse,
173
+ ConditionalWrapper,
174
+ DateInput,
175
+ Dashboard,
176
+ DashboardWidget,
177
+ FastLinksWidget,
178
+ DeleteItemDialog,
179
+ Dialog,
180
+ DotBadge,
181
+ FilterItem,
182
+ FormWrapper,
183
+ FullScreenLoader,
184
+ IconButton,
185
+ ItemActionsMenu,
186
+ ItemEditOptionsButtons,
187
+ TextAreaInput,
188
+ LazyLoader,
189
+ Loader,
190
+ Menu,
191
+ MenuItem,
192
+ NotificationBadge,
193
+ NumberInput,
194
+ PageLayout,
195
+ PasswordInput,
196
+ PillBadge,
197
+ Radio,
198
+ RadioLarge,
199
+ SearchInput,
200
+ Select,
201
+ SelectAsyncPaginate,
202
+ SelectCreatable,
203
+ SetTableFilter,
204
+ Table,
205
+ TablePrint,
206
+ TableEditRow,
207
+ TableFooter,
208
+ tableCustomLimit1000,
209
+ Tabs,
210
+ TextInput,
211
+ TimeInput,
212
+ ToastContainer,
213
+ Tooltip,
214
+ Tree,
215
+ };
216
+
217
+ export {
218
+ useHideZendesk,
219
+ useOnEsc,
220
+ useDefaultTemplate,
221
+ useDialogObserver,
222
+ useTableSelect,
223
+ useIsMenuOpen,
224
+ };
225
+
226
+ export type {
227
+ IAlertProps,
228
+ DeepPartial,
229
+ IAnyObject,
230
+ IBooleanObject,
231
+ IKeyboardAction,
232
+ IMenuItem,
233
+ IMenuPlacement,
234
+ IError,
235
+ IFormWrapper,
236
+ IHeaderAction,
237
+ IHeaderUserMenuProps,
238
+ IPagination,
239
+ ISelectData,
240
+ IServerSidePagination,
241
+ ISimpleObject,
242
+ ISimpleObjectWithCode,
243
+ IStringObject,
244
+ ITab,
245
+ ITable,
246
+ ITableColumn,
247
+ ITableDataItem,
248
+ ITableEditRow,
249
+ ITableFilter,
250
+ ITableFilterData,
251
+ ITableFilterItem,
252
+ ITableSort,
253
+ ITreeItem,
254
+ IValueLabel,
255
+ IconDefinition,
256
+ };
257
+
258
+ export { i18nIUICyrilic, i18nIUILatin, i18nIUIMe };
259
+
260
+ export {
261
+ areStringArraysEqual,
262
+ checkIfExpired,
263
+ compareArrayItemsIndex,
264
+ convertBooleanObjectToArray,
265
+ convertArrayToBooleanObject,
266
+ dateAddDays,
267
+ deepCopy,
268
+ deleteEmptyProps,
269
+ deleteEmptyPropsIncludingArray,
270
+ deleteProps,
271
+ deletePropsThatEndsWith,
272
+ formatCurrency,
273
+ formatCurrencyNoDecimals,
274
+ formatDate,
275
+ formatDateAndTime,
276
+ formatDateYMD,
277
+ formatDecimalNumber,
278
+ formatTime,
279
+ formatYearMonth,
280
+ convertReportTemplateFilterToSearch,
281
+ convertSearchToReportTemplateFilter,
282
+ getActiveFilterNumber,
283
+ getCurrentDateFormatted,
284
+ getCurrentDateFormattedYMD,
285
+ getDaysLeft,
286
+ getInputHelperText,
287
+ getInputMinMaxPattern,
288
+ getPrintColumns,
289
+ setTemplateData,
290
+ getVisibleColumnsIds,
291
+ inputPattern,
292
+ intersectArrays,
293
+ maxChar,
294
+ parseUrlSearch,
295
+ rootDir,
296
+ toastError,
297
+ toastSuccess,
298
+ };
299
+
300
+ export {
301
+ calculateFilesSize,
302
+ dataURLtoFile,
303
+ downloadFile,
304
+ downloadDocumentFile,
305
+ getBase64FromFile,
306
+ getBase64FromUrl,
307
+ getExtensionFromFilename,
308
+ getFileFromUrl,
309
+ rotateBase64Image,
310
+ sizeInBytesPretty,
311
+ splitBase64File,
312
+ };
313
+
314
+ export {
315
+ getActiveOrgUuid,
316
+ getDefaultOrgUuid,
317
+ lsGet,
318
+ lsRemove,
319
+ lsSet,
320
+ setActiveOrgUuid,
321
+ setDefaultOrgUuid,
322
+ };
323
+
324
+ export { DragDropContext, Draggable, Droppable, FontAwesomeIcon, clsx, dayjs };
@@ -0,0 +1,27 @@
1
+ import { 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;
@@ -0,0 +1,26 @@
1
+ import { FC } from 'react';
2
+ import { useTranslation } from 'react-i18next';
3
+ import { Link } from 'react-router';
4
+ import { Button } from '../components/Button/Button';
5
+ import notFoundImg from '../assets/images/not-found.svg';
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;
@@ -0,0 +1,43 @@
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/card';
19
+ // @use './components/menu-v2';
20
+ @use './components/dialog';
21
+ @use './components/form';
22
+ @use './components/header';
23
+ @use './components/input';
24
+ @use './components/inputCheckbox';
25
+ @use './components/inputDateTime';
26
+ @use './components/inputRadio';
27
+ @use './components/inputSelect';
28
+ @use './components/loader';
29
+ @use './components/menu';
30
+ @use './components/page';
31
+ @use './components/portal';
32
+ @use './components/print';
33
+ @use './components/pullover';
34
+ @use './components/scrollbar';
35
+ @use './components/sidebar';
36
+ @use './components/smallComponents';
37
+ @use './components/table';
38
+ @use './components/tabs';
39
+ @use './components/tooltip';
40
+ @use './components/tree';
41
+ @use './components/widget';
42
+
43
+ @use './pages/fullScreenPage';
@@ -0,0 +1,64 @@
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 linear-progress {
28
+ // 0% {
29
+ // background-size: 200% 100%;
30
+ // background-position: left -31.25% top 0%;
31
+ // }
32
+ // 50% {
33
+ // background-size: 800% 100%;
34
+ // background-position: left -49% top 0%;
35
+ // }
36
+ // 100% {
37
+ // background-size: 400% 100%;
38
+ // background-position: left -102% top 0%;
39
+ // }
40
+ // }
41
+
42
+ @keyframes auto-fill {
43
+ to {
44
+ font-size: 13px;
45
+ }
46
+ }
47
+
48
+ @keyframes rotate {
49
+ to {
50
+ transform: rotate(360deg);
51
+ }
52
+ }
53
+
54
+ @keyframes temp-disable-pointer {
55
+ 0% {
56
+ pointer-events: none;
57
+ }
58
+ 99% {
59
+ pointer-events: none;
60
+ }
61
+ 100% {
62
+ pointer-events: auto;
63
+ }
64
+ }
@@ -0,0 +1,88 @@
1
+ @use '../variables/bp';
2
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;1,500;1,600;1,700;1,900&display=swap');
3
+
4
+ * {
5
+ font-family: 'Poppins', 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
+
37
+ .bold {
38
+ font-weight: bold !important;
39
+ }
40
+ .italic {
41
+ font-style: italic !important;
42
+ }
43
+
44
+ .new-line {
45
+ white-space: pre-line !important;
46
+ }
47
+ .no-wrap {
48
+ white-space: nowrap !important;
49
+ }
50
+ .word-break {
51
+ word-break: break-word !important;
52
+ }
53
+
54
+ .subtitle {
55
+ font-size: 20px;
56
+ color: var(--neutral-600);
57
+ white-space: pre-line;
58
+ }
59
+ .link {
60
+ color: var(--link) !important;
61
+ text-decoration: underline !important;
62
+ &.inactive {
63
+ opacity: 0.5;
64
+ }
65
+ &:not(:disabled) {
66
+ cursor: pointer;
67
+ &:hover {
68
+ color: var(--link-alt) !important;
69
+ opacity: 1;
70
+ }
71
+ }
72
+ }
73
+
74
+ @media #{bp.$mobile} {
75
+ h1 {
76
+ font-size: 36px;
77
+ line-height: 1.2;
78
+ }
79
+ h2 {
80
+ font-size: 24px;
81
+ }
82
+ h2 {
83
+ font-size: 20px;
84
+ }
85
+ h3 {
86
+ font-size: 16px;
87
+ }
88
+ }
@@ -0,0 +1,55 @@
1
+ body {
2
+ margin: 0;
3
+ width: 100%;
4
+ }
5
+
6
+ #root {
7
+ overflow: hidden;
8
+ }
9
+
10
+ * {
11
+ box-sizing: border-box;
12
+ &:focus-visible {
13
+ outline: none !important;
14
+ }
15
+ }
16
+
17
+ button {
18
+ all: unset;
19
+ box-sizing: border-box;
20
+ }
21
+
22
+ a {
23
+ text-decoration: none;
24
+ color: unset;
25
+ -webkit-user-drag: none;
26
+ }
27
+
28
+ .clickable {
29
+ cursor: pointer;
30
+ transition: background-color 250ms;
31
+ &:disabled,
32
+ &.disabled {
33
+ opacity: 0.4;
34
+ cursor: default;
35
+ pointer-events: none;
36
+ user-select: none;
37
+ }
38
+ }
39
+ .no-overflow {
40
+ overflow: hidden;
41
+ }
42
+ .overflow-auto {
43
+ overflow: auto;
44
+ }
45
+
46
+ .hover-primary:hover {
47
+ background-color: var(--primary-100);
48
+ }
49
+ .hover-neutral:hover {
50
+ background-color: var(--neutral-hover);
51
+ }
52
+
53
+ .no-border {
54
+ border: none !important;
55
+ }
@@ -0,0 +1,7 @@
1
+ .c-primary {
2
+ color: var(--primary) !important;
3
+ }
4
+
5
+ // .b-white {
6
+ // background: var(--white);
7
+ // }