@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.
- package/dist/{NoAccessPage-BllwaG2u.js → NoAccessPage-C6nBt-PN.js} +2 -2
- package/dist/{NoAccessPage-BllwaG2u.js.map → NoAccessPage-C6nBt-PN.js.map} +1 -1
- package/dist/{NotFoundPage-DVm00-sr.js → NotFoundPage-DatmJOrr.js} +2 -2
- package/dist/{NotFoundPage-DVm00-sr.js.map → NotFoundPage-DatmJOrr.js.map} +1 -1
- package/dist/icons/index.d.ts +43 -0
- package/dist/icons/index.js +1 -0
- package/dist/index.d.ts +57 -49
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/iui.css +1 -1
- package/idea/Menu/Menu.tsx +119 -0
- package/idea/Menu/MenuItem.tsx +74 -0
- package/idea/Menu/hooks/useMenuControl.ts +13 -0
- package/idea/Menu.tsx +132 -0
- package/idea/NoAccessInfo.tsx +193 -0
- package/idea/Notifications.tsx +245 -0
- package/idea/Table2/Components/Columns/ColumnsList.tsx +56 -0
- package/idea/Table2/Components/Columns/SetColumnsList.tsx +107 -0
- package/idea/Table2/Components/Edit/ItemActionsMenu.tsx +87 -0
- package/idea/Table2/Components/Edit/ItemEditOptionsButtons.tsx +32 -0
- package/idea/Table2/Components/Edit/TableEditRow.tsx +56 -0
- package/idea/Table2/Components/FilterItem.tsx +20 -0
- package/idea/Table2/Components/Header/TableHeader.tsx +35 -0
- package/idea/Table2/Components/Header/TableHeaderRow.tsx +37 -0
- package/idea/Table2/Components/Print/CustomTablePrint.tsx +119 -0
- package/idea/Table2/Components/Print/TablePrint.tsx +208 -0
- package/idea/Table2/Components/SetSortList.tsx +33 -0
- package/idea/Table2/Components/SetTableFilter.tsx +90 -0
- package/idea/Table2/Components/TableFooter.tsx +107 -0
- package/idea/Table2/Components/TableOptions.tsx +211 -0
- package/idea/Table2/Components/Templates/TemplateCreate.tsx +75 -0
- package/idea/Table2/Components/Templates/TemplateCreateDefault.tsx +45 -0
- package/idea/Table2/Components/Templates/TemplateList.tsx +167 -0
- package/idea/Table2/Components/Templates/repo/TemplateRepo.ts +51 -0
- package/idea/Table2/Table.tsx +657 -0
- package/idea/Table2/_table.scss +300 -0
- package/idea/Table2/hooks/useDefaultTemplate.ts +22 -0
- package/idea/Table2/hooks/useTableKeyboard.ts +115 -0
- package/package.json +15 -11
- package/rollup.config.js +80 -0
- package/src/assets/icons/duotone/faCircleUser.ts +17 -0
- package/src/assets/icons/index.ts +20 -0
- package/src/assets/icons/light/faArrowDownShortWide.ts +15 -0
- package/src/assets/icons/light/faArrowDownWideShort.ts +15 -0
- package/src/assets/icons/light/faArrowUpArrowDown.ts +15 -0
- package/src/assets/icons/light/faArrowUpRightFromSquare.ts +15 -0
- package/src/assets/icons/light/faArrowsToLine.ts +15 -0
- package/src/assets/icons/light/faArrowsUpDown.ts +15 -0
- package/src/assets/icons/light/faCalendarPlus.ts +15 -0
- package/src/assets/icons/light/faCheck.ts +15 -0
- package/src/assets/icons/light/faChevronDown.ts +15 -0
- package/src/assets/icons/light/faChevronRight.ts +15 -0
- package/src/assets/icons/light/faCircleInfo.ts +15 -0
- package/src/assets/icons/light/faCircleXmark.ts +15 -0
- package/src/assets/icons/light/faClockRotateLeft.ts +15 -0
- package/src/assets/icons/light/faEllipsisVertical.ts +15 -0
- package/src/assets/icons/light/faEye.ts +15 -0
- package/src/assets/icons/light/faEyeSlash.ts +15 -0
- package/src/assets/icons/light/faFilter.ts +15 -0
- package/src/assets/icons/light/faGear.ts +15 -0
- package/src/assets/icons/light/faHouse.ts +15 -0
- package/src/assets/icons/light/faIdBadge.ts +15 -0
- package/src/assets/icons/light/faLineColumns.ts +15 -0
- package/src/assets/icons/light/faLink.ts +15 -0
- package/src/assets/icons/light/faMagnifyingGlass.ts +15 -0
- package/src/assets/icons/light/faPenField.ts +15 -0
- package/src/assets/icons/light/faPrint.ts +15 -0
- package/src/assets/icons/light/faQuestion.ts +15 -0
- package/src/assets/icons/light/faRotateRight.ts +15 -0
- package/src/assets/icons/light/faTrashCan.ts +15 -0
- package/src/assets/icons/light/faTriangleExclamation.ts +15 -0
- package/src/assets/icons/light/faXmark.ts +15 -0
- package/src/assets/icons/regular/faArrowLeft.ts +15 -0
- package/src/assets/icons/regular/faArrowRightArrowLeft.ts +15 -0
- package/src/assets/icons/regular/faCircleCheck.ts +15 -0
- package/src/assets/icons/regular/faCircleExclamation.ts +15 -0
- package/src/assets/icons/regular/faCircleInfo.ts +15 -0
- package/src/assets/icons/regular/faFileArrowDown.ts +15 -0
- package/src/assets/icons/regular/faFilterCircleXmark.ts +15 -0
- package/src/assets/icons/regular/faTriangleExclamation.ts +15 -0
- package/src/assets/icons/solid/faAngleLeft.ts +15 -0
- package/src/assets/icons/solid/faAngleRight.ts +15 -0
- package/src/assets/icons/solid/faArrowDownWideShort.ts +15 -0
- package/src/assets/icons/solid/faCaretDown.ts +15 -0
- package/src/assets/icons/solid/faCheck.ts +15 -0
- package/src/assets/icons/solid/faEllipsisVertical.ts +15 -0
- package/src/assets/icons/solid/faFilter.ts +15 -0
- package/src/assets/icons/solid/faFloppyDisk.ts +15 -0
- package/src/assets/icons/solid/faGripDotsVertical.ts +15 -0
- package/src/assets/icons/solid/faListUl.ts +15 -0
- package/src/assets/icons/solid/faMagnifyingGlass.ts +15 -0
- package/src/assets/icons/solid/faMinus.ts +15 -0
- package/src/assets/icons/solid/faPlus.ts +15 -0
- package/src/assets/icons/solid/faPrint.ts +15 -0
- package/src/assets/icons/solid/faRotateRight.ts +15 -0
- package/src/assets/icons/solid/faXmark.ts +15 -0
- package/src/assets/images/logo/mts.svg +5703 -0
- package/src/assets/images/logo/paperless.svg +21 -0
- package/src/assets/images/logo/pismonosa.png +0 -0
- package/src/assets/images/not-found.svg +19 -0
- package/src/components/Accordions/Accordions.tsx +64 -0
- package/src/components/Alert/Alert.tsx +31 -0
- package/src/components/Badge/DotBadge.tsx +16 -0
- package/src/components/Badge/NotificationBadge.tsx +29 -0
- package/src/components/Badge/PillBadge.tsx +13 -0
- package/src/components/Button/Button.tsx +56 -0
- package/src/components/Button/IconButton.tsx +49 -0
- package/src/components/Dashboard/Dashboard.tsx +9 -0
- package/src/components/Dashboard/DashboardWidget.tsx +44 -0
- package/src/components/Dashboard/FastLinksWidget/FastLinksWidget.tsx +37 -0
- package/src/components/Dialog/DeleteItemDialog.tsx +52 -0
- package/src/components/Dialog/Dialog.tsx +226 -0
- package/src/components/Dialog/hooks/useDialogKeyboard.ts +41 -0
- package/src/components/Dialog/hooks/useDialogObserver.ts +21 -0
- package/src/components/Header/Components/ModuleSelect.tsx +55 -0
- package/src/components/Header/Components/UserMenu.tsx +44 -0
- package/src/components/Header/Header.tsx +36 -0
- package/src/components/Helper/Collapse.tsx +52 -0
- package/src/components/Inputs/Checkbox.tsx +53 -0
- package/src/components/Inputs/CurrencyInput.tsx +123 -0
- package/src/components/Inputs/DateInput/DateInput.tsx +176 -0
- package/src/components/Inputs/DateInput/components/DatePartInput.tsx +154 -0
- package/src/components/Inputs/InputWrapper.tsx +90 -0
- package/src/components/Inputs/NumberInput.tsx +83 -0
- package/src/components/Inputs/PasswordInput.tsx +38 -0
- package/src/components/Inputs/Radio.tsx +59 -0
- package/src/components/Inputs/RadioGroup.tsx +48 -0
- package/src/components/Inputs/RadioLarge.tsx +39 -0
- package/src/components/Inputs/SearchInput.tsx +40 -0
- package/src/components/Inputs/Select2/Select.tsx +224 -0
- package/src/components/Inputs/Select2/select.scss +43 -0
- package/src/components/Inputs/Selects/Select.tsx +17 -0
- package/src/components/Inputs/Selects/components/CustomSelectComponents.tsx +19 -0
- package/src/components/Inputs/Selects/components/SelectWrapper.tsx +126 -0
- package/src/components/Inputs/Selects/utils/selectStyles.ts +104 -0
- package/src/components/Inputs/TextAreaInput.tsx +67 -0
- package/src/components/Inputs/TextInput.tsx +98 -0
- package/src/components/Inputs/TimeInput/TimeInput.tsx +81 -0
- package/src/components/Loader/Loader.tsx +53 -0
- package/src/components/Menu/Menu.tsx +68 -0
- package/src/components/Menu/MenuItem.tsx +47 -0
- package/src/components/Menu/NewMenu.tsx +66 -0
- package/src/components/Menu/hooks/useMenuPosition.tsx +80 -0
- package/src/components/Pullover/Pullover.tsx +89 -0
- package/src/components/Router/Router.tsx +51 -0
- package/src/components/Sidebar/AddButton.tsx +22 -0
- package/src/components/Sidebar/Sidebar.tsx +81 -0
- package/src/components/Sidebar/SidebarItem.tsx +84 -0
- package/src/components/Sidebar/types/ISidebar.ts +28 -0
- package/src/components/Table/Components/Columns/ColumnsList.tsx +61 -0
- package/src/components/Table/Components/Columns/SetColumnsList.tsx +113 -0
- package/src/components/Table/Components/Edit/ItemActionsMenu.tsx +84 -0
- package/src/components/Table/Components/Edit/ItemEditOptionsButtons.tsx +31 -0
- package/src/components/Table/Components/Edit/TableEditRow.tsx +56 -0
- package/src/components/Table/Components/FilterItem.tsx +20 -0
- package/src/components/Table/Components/Header/TableHeader.tsx +45 -0
- package/src/components/Table/Components/Header/TableHeaderRow.tsx +37 -0
- package/src/components/Table/Components/Print/CustomTablePrint.tsx +114 -0
- package/src/components/Table/Components/Print/TablePrint.tsx +207 -0
- package/src/components/Table/Components/SetSortList.tsx +30 -0
- package/src/components/Table/Components/SetTableFilter.tsx +90 -0
- package/src/components/Table/Components/TableFooter.tsx +135 -0
- package/src/components/Table/Components/TableOptions.tsx +226 -0
- package/src/components/Table/Components/Templates/TemplateCreate.tsx +80 -0
- package/src/components/Table/Components/Templates/TemplateCreateDefault.tsx +45 -0
- package/src/components/Table/Components/Templates/TemplateList.tsx +167 -0
- package/src/components/Table/Components/Templates/repo/TemplateRepo.ts +53 -0
- package/src/components/Table/Table.tsx +527 -0
- package/src/components/Table/hooks/useDefaultTemplate.ts +20 -0
- package/src/components/Table/hooks/useTableKeyboard.ts +138 -0
- package/src/components/Table/hooks/useTableSelect.ts +11 -0
- package/src/components/Tabs/Tabs.tsx +66 -0
- package/src/components/Tooltip/Tooltip.tsx +133 -0
- package/src/components/Tree/Tree.tsx +22 -0
- package/src/components/Tree/TreeItem.tsx +56 -0
- package/src/components/Wrappers/AppLayout.tsx +17 -0
- package/src/components/Wrappers/ConditionalWrapper.tsx +10 -0
- package/src/components/Wrappers/FormWrapper.tsx +81 -0
- package/src/components/Wrappers/PageLayout.tsx +152 -0
- package/src/hooks/useBackgroundClose.ts +18 -0
- package/src/hooks/useIsMenuOpen.ts +11 -0
- package/src/hooks/useOnEsc.ts +14 -0
- package/src/hooks/useZendesk.ts +21 -0
- package/src/index.ts +324 -0
- package/src/pages/NoAccessPage.tsx +27 -0
- package/src/pages/NotFoundPage.tsx +26 -0
- package/src/styles/App.scss +43 -0
- package/src/styles/common/_animations.scss +64 -0
- package/src/styles/common/_typography.scss +88 -0
- package/src/styles/common/helpers/_base.scss +55 -0
- package/src/styles/common/helpers/_color.scss +7 -0
- package/src/styles/common/helpers/_display.scss +85 -0
- package/src/styles/common/helpers/_size.scss +25 -0
- package/src/styles/common/maps/_align.scss +21 -0
- package/src/styles/common/maps/_info-types.scss +1 -0
- package/src/styles/common/maps/_spacing.scss +78 -0
- package/src/styles/common/maps/_text.scss +14 -0
- package/src/styles/components/_accordions.scss +46 -0
- package/src/styles/components/_alert.scss +23 -0
- package/src/styles/components/_badge.scss +76 -0
- package/src/styles/components/_button.scss +138 -0
- package/src/styles/components/_card.scss +24 -0
- package/src/styles/components/_dialog.scss +111 -0
- package/src/styles/components/_form.scss +8 -0
- package/src/styles/components/_header.scss +109 -0
- package/src/styles/components/_input.scss +158 -0
- package/src/styles/components/_inputCheckbox.scss +105 -0
- package/src/styles/components/_inputDateTime.scss +161 -0
- package/src/styles/components/_inputRadio.scss +83 -0
- package/src/styles/components/_inputSelect.scss +6 -0
- package/src/styles/components/_loader.scss +44 -0
- package/src/styles/components/_menu-v2.scss +67 -0
- package/src/styles/components/_menu.scss +53 -0
- package/src/styles/components/_page.scss +62 -0
- package/src/styles/components/_portal.scss +8 -0
- package/src/styles/components/_print.scss +87 -0
- package/src/styles/components/_pullover.scss +43 -0
- package/src/styles/components/_scrollbar.scss +18 -0
- package/src/styles/components/_sidebar.scss +206 -0
- package/src/styles/components/_smallComponents.scss +23 -0
- package/src/styles/components/_table.scss +270 -0
- package/src/styles/components/_tabs.scss +33 -0
- package/src/styles/components/_tooltip.scss +48 -0
- package/src/styles/components/_tree.scss +21 -0
- package/src/styles/components/_widget.scss +90 -0
- package/src/styles/pages/_fullScreenPage.scss +64 -0
- package/src/styles/variables/_bp.scss +5 -0
- package/src/styles/variables/_variables.scss +130 -0
- package/src/types/Base/custom.d.ts +9 -0
- package/src/types/IBasic.ts +31 -0
- package/src/types/IError.ts +5 -0
- package/src/types/IHeader.ts +24 -0
- package/src/types/IInfo.ts +1 -0
- package/src/types/IKeyboard.ts +37 -0
- package/src/types/IMenu.ts +18 -0
- package/src/types/IRouter.ts +6 -0
- package/src/types/ISelect.ts +52 -0
- package/src/types/ITab.ts +10 -0
- package/src/types/ITable.ts +249 -0
- package/src/types/ITree.ts +6 -0
- package/src/utils/DateUtils.ts +32 -0
- package/src/utils/InputPatternValidation.ts +12 -0
- package/src/utils/LocalStorageHelper.ts +24 -0
- package/src/utils/NumberUtils.ts +21 -0
- package/src/utils/ObjectUtils.ts +85 -0
- package/src/utils/RootDir.ts +1 -0
- package/src/utils/StringUtils.ts +18 -0
- package/src/utils/TableUtils.ts +130 -0
- package/src/utils/Toasts.ts +6 -0
- package/src/utils/UrlUtils.ts +4 -0
- package/src/utils/fileUtils.ts +176 -0
- package/src/utils/i18n/i18nIUICyrilic.ts +90 -0
- package/src/utils/i18n/i18nIUILatin.ts +90 -0
- package/src/utils/i18n/i18nIUIMe.ts +88 -0
- package/src/utils/icons.ts +13 -0
- package/tsconfig.icons.json +5 -0
- 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
|
+
}
|