@inceptionbg/iui 2.0.34 → 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 (244) hide show
  1. package/dist/index.d.ts +7 -6
  2. package/dist/index.js.map +1 -1
  3. package/dist/iui.css +1 -1
  4. package/package.json +25 -22
  5. package/idea/GridTable/GridTable.tsx +0 -119
  6. package/idea/GridTable/gridTable.scss +0 -42
  7. package/idea/Menu/Menu.tsx +0 -121
  8. package/idea/Menu/MenuItem.tsx +0 -75
  9. package/idea/Menu/hooks/useMenuControl.ts +0 -13
  10. package/idea/Menu.tsx +0 -133
  11. package/idea/NoAccessInfo.tsx +0 -193
  12. package/idea/Table/Components/Edit/ItemActionsMenu.tsx +0 -85
  13. package/idea/Table/Components/Edit/ItemEditOptionsButtons.tsx +0 -31
  14. package/idea/Table/Components/Edit/TableEditRow.tsx +0 -57
  15. package/idea/Table/Components/FilterItem.tsx +0 -20
  16. package/idea/Table/Components/Header/TableHeader.tsx +0 -46
  17. package/idea/Table/Components/Header/TableHeaderRow.tsx +0 -37
  18. package/idea/Table/Components/Print/CustomTablePrint.tsx +0 -115
  19. package/idea/Table/Components/SetSortList.tsx +0 -30
  20. package/idea/Table/Components/SetTableFilter.tsx +0 -91
  21. package/idea/Table/Components/TableFooter.tsx +0 -137
  22. package/idea/Table/Components/TableOptions.tsx +0 -227
  23. package/idea/Table/Components/Templates/TemplateCreate.tsx +0 -80
  24. package/idea/Table/Components/Templates/TemplateCreateDefault.tsx +0 -45
  25. package/idea/Table/Components/Templates/TemplateList.tsx +0 -167
  26. package/idea/Table/Components/Templates/repo/TemplateRepo.ts +0 -53
  27. package/idea/Table/Table.tsx +0 -528
  28. package/idea/Table/hooks/useDefaultTemplate.ts +0 -20
  29. package/idea/Table/hooks/useTableKeyboard.ts +0 -137
  30. package/idea/Table/hooks/useTableSelect.ts +0 -11
  31. package/rollup.config.js +0 -52
  32. package/src/assets/icons/duotone/faBell.ts +0 -17
  33. package/src/assets/icons/duotone/faCircleUser.ts +0 -17
  34. package/src/assets/icons/regular/faArrowLeft.ts +0 -15
  35. package/src/assets/icons/regular/faArrowRightArrowLeft.ts +0 -15
  36. package/src/assets/icons/regular/faCircleCheck.ts +0 -15
  37. package/src/assets/icons/regular/faCircleExclamation.ts +0 -15
  38. package/src/assets/icons/regular/faCircleInfo.ts +0 -15
  39. package/src/assets/icons/regular/faFileArrowDown.ts +0 -15
  40. package/src/assets/icons/regular/faFilterCircleXmark.ts +0 -15
  41. package/src/assets/icons/regular/faTriangleExclamation.ts +0 -15
  42. package/src/assets/icons/solid/faAngleLeft.ts +0 -15
  43. package/src/assets/icons/solid/faAngleRight.ts +0 -15
  44. package/src/assets/icons/solid/faArrowDownWideShort.ts +0 -15
  45. package/src/assets/icons/solid/faCaretDown.ts +0 -15
  46. package/src/assets/icons/solid/faCheck.ts +0 -15
  47. package/src/assets/icons/solid/faEllipsisVertical.ts +0 -15
  48. package/src/assets/icons/solid/faEnvelopeDot.ts +0 -15
  49. package/src/assets/icons/solid/faFilter.ts +0 -15
  50. package/src/assets/icons/solid/faFloppyDisk.ts +0 -15
  51. package/src/assets/icons/solid/faGripDotsVertical.ts +0 -15
  52. package/src/assets/icons/solid/faListUl.ts +0 -15
  53. package/src/assets/icons/solid/faMinus.ts +0 -15
  54. package/src/assets/icons/solid/faPlus.ts +0 -15
  55. package/src/assets/icons/solid/faPrint.ts +0 -15
  56. package/src/assets/icons/solid/faRotateRight.ts +0 -15
  57. package/src/assets/icons/solid/faXmark.ts +0 -15
  58. package/src/assets/images/logo/inception.svg +0 -22
  59. package/src/assets/images/logo/mts.svg +0 -5703
  60. package/src/assets/images/logo/paperless.svg +0 -21
  61. package/src/assets/images/logo/pismonosa.png +0 -0
  62. package/src/assets/images/not-found.svg +0 -19
  63. package/src/components/Accordions/Accordions.tsx +0 -74
  64. package/src/components/Alert/Alert.tsx +0 -31
  65. package/src/components/Badge/DotBadge.tsx +0 -16
  66. package/src/components/Badge/NotificationBadge.tsx +0 -29
  67. package/src/components/Badge/PillBadge.tsx +0 -13
  68. package/src/components/Button/Button.tsx +0 -56
  69. package/src/components/Button/IconButton.tsx +0 -51
  70. package/src/components/Button/SplitButton.tsx +0 -91
  71. package/src/components/Dashboard/Dashboard.tsx +0 -9
  72. package/src/components/Dashboard/DashboardWidget.tsx +0 -44
  73. package/src/components/Dashboard/FastLinksWidget/FastLinksWidget.tsx +0 -36
  74. package/src/components/Dialog/Dialog.tsx +0 -178
  75. package/src/components/Dialog/components/DialogFooter.tsx +0 -100
  76. package/src/components/Header/Components/EnvBadge.tsx +0 -17
  77. package/src/components/Header/Components/ModuleSelect.tsx +0 -68
  78. package/src/components/Header/Components/Notifications.tsx +0 -204
  79. package/src/components/Header/Components/UserMenu.tsx +0 -52
  80. package/src/components/Header/Header.tsx +0 -45
  81. package/src/components/Helper/Collapse.tsx +0 -53
  82. package/src/components/Inputs/Checkbox.tsx +0 -53
  83. package/src/components/Inputs/CurrencyInput.tsx +0 -124
  84. package/src/components/Inputs/DateInput/DateInput.tsx +0 -184
  85. package/src/components/Inputs/DateInput/components/DatePartInput.tsx +0 -159
  86. package/src/components/Inputs/InputWrapper.tsx +0 -95
  87. package/src/components/Inputs/NumberInput.tsx +0 -86
  88. package/src/components/Inputs/PasswordInput.tsx +0 -39
  89. package/src/components/Inputs/PhoneInput/PhoneInput.tsx +0 -108
  90. package/src/components/Inputs/PhoneInput/utils/countryCode.ts +0 -20
  91. package/src/components/Inputs/Radio.tsx +0 -59
  92. package/src/components/Inputs/RadioGroup.tsx +0 -48
  93. package/src/components/Inputs/RadioLarge.tsx +0 -39
  94. package/src/components/Inputs/SearchInput.tsx +0 -46
  95. package/src/components/Inputs/Selects/Select.tsx +0 -17
  96. package/src/components/Inputs/Selects/components/CustomSelectComponents.tsx +0 -19
  97. package/src/components/Inputs/Selects/components/SelectWrapper.tsx +0 -118
  98. package/src/components/Inputs/Selects/utils/selectStyles.ts +0 -101
  99. package/src/components/Inputs/TextAreaInput.tsx +0 -68
  100. package/src/components/Inputs/TextInput.tsx +0 -100
  101. package/src/components/Inputs/TimeInput/TimeInput.tsx +0 -81
  102. package/src/components/List/List.tsx +0 -21
  103. package/src/components/List/ListItem.tsx +0 -70
  104. package/src/components/Loader/Loader.tsx +0 -66
  105. package/src/components/Loader/ProgressBar.tsx +0 -41
  106. package/src/components/Menu/Menu.tsx +0 -81
  107. package/src/components/Menu/MenuItem.tsx +0 -46
  108. package/src/components/Menu/NewMenu.tsx +0 -63
  109. package/src/components/Menu/hooks/useMenuPosition.tsx +0 -116
  110. package/src/components/PageComponents/ScrollableContent.tsx +0 -11
  111. package/src/components/Pullover/Pullover.tsx +0 -197
  112. package/src/components/Router/Router.tsx +0 -52
  113. package/src/components/Sidebar/AddButton.tsx +0 -22
  114. package/src/components/Sidebar/Sidebar.tsx +0 -85
  115. package/src/components/Sidebar/SidebarItem.tsx +0 -84
  116. package/src/components/Sidebar/types/ISidebar.ts +0 -28
  117. package/src/components/Table/Table.tsx +0 -258
  118. package/src/components/Table/components/columns/ColumnsList.tsx +0 -60
  119. package/src/components/Table/components/columns/TableColumnsEdit.tsx +0 -114
  120. package/src/components/Table/components/edit/TableEditRow.tsx +0 -78
  121. package/src/components/Table/components/filters/FilterItem.tsx +0 -15
  122. package/src/components/Table/components/filters/TableFilters.tsx +0 -126
  123. package/src/components/Table/components/footer/TableFooter.tsx +0 -126
  124. package/src/components/Table/components/header/TableHeader.tsx +0 -40
  125. package/src/components/Table/components/header/TableHeaderRow.tsx +0 -57
  126. package/src/components/Table/components/items/TableItemActions.tsx +0 -78
  127. package/src/components/Table/components/print/TablePrint.tsx +0 -200
  128. package/src/components/Table/components/select/TableSelect.tsx +0 -50
  129. package/src/components/Table/components/sort/TableSort.tsx +0 -75
  130. package/src/components/Table/components/templates/CreateTemplateDialog.tsx +0 -58
  131. package/src/components/Table/components/templates/TableTemplates.tsx +0 -65
  132. package/src/components/Table/components/templates/TemplatesPullover.tsx +0 -88
  133. package/src/components/Table/contexts/TableContext.tsx +0 -117
  134. package/src/components/Table/hooks/localHooks/useLocalTableColumns.tsx +0 -70
  135. package/src/components/Table/hooks/localHooks/useLocalTableData.tsx +0 -82
  136. package/src/components/Table/hooks/localHooks/useLocalTableKeyboard.ts +0 -175
  137. package/src/components/Table/hooks/localHooks/useLocalTablePagination.ts +0 -12
  138. package/src/components/Table/hooks/useTableColumns.ts +0 -34
  139. package/src/components/Table/hooks/useTableEdit.tsx +0 -140
  140. package/src/components/Table/hooks/useTableFilterFields.tsx +0 -150
  141. package/src/components/Table/hooks/useTablePagination.ts +0 -19
  142. package/src/components/Table/hooks/useTablePrint.ts +0 -83
  143. package/src/components/Table/hooks/useTableSearch.ts +0 -31
  144. package/src/components/Table/hooks/useTableSelect.ts +0 -19
  145. package/src/components/Table/hooks/useTableSort.ts +0 -8
  146. package/src/components/Tabs/Tabs.tsx +0 -68
  147. package/src/components/Tooltip/Tooltip.tsx +0 -191
  148. package/src/components/Tree/Tree.tsx +0 -22
  149. package/src/components/Tree/TreeItem.tsx +0 -57
  150. package/src/components/Wrappers/AppLayout.tsx +0 -17
  151. package/src/components/Wrappers/ConditionalWrapper.tsx +0 -10
  152. package/src/components/Wrappers/FormWrapper.tsx +0 -84
  153. package/src/components/Wrappers/PageLayout.tsx +0 -168
  154. package/src/hooks/useBackgroundClose.ts +0 -19
  155. package/src/hooks/useGetFocusableElements.ts +0 -43
  156. package/src/hooks/useIsMenuOpen.ts +0 -11
  157. package/src/hooks/useLocalPopoverControl.ts +0 -63
  158. package/src/hooks/useOnEsc.ts +0 -14
  159. package/src/hooks/usePopupControl.ts +0 -22
  160. package/src/hooks/useZendesk.ts +0 -21
  161. package/src/index.ts +0 -387
  162. package/src/pages/NoAccessPage.tsx +0 -27
  163. package/src/pages/NotFoundPage.tsx +0 -26
  164. package/src/styles/App.scss +0 -47
  165. package/src/styles/common/_animations.scss +0 -58
  166. package/src/styles/common/_typography.scss +0 -91
  167. package/src/styles/common/helpers/_base.scss +0 -55
  168. package/src/styles/common/helpers/_color.scss +0 -10
  169. package/src/styles/common/helpers/_display.scss +0 -85
  170. package/src/styles/common/helpers/_size.scss +0 -25
  171. package/src/styles/common/maps/_align.scss +0 -21
  172. package/src/styles/common/maps/_buttonMaps.scss +0 -42
  173. package/src/styles/common/maps/_info-types.scss +0 -1
  174. package/src/styles/common/maps/_spacing.scss +0 -78
  175. package/src/styles/common/maps/_text.scss +0 -14
  176. package/src/styles/components/_accordions.scss +0 -51
  177. package/src/styles/components/_alert.scss +0 -23
  178. package/src/styles/components/_badge.scss +0 -84
  179. package/src/styles/components/_button.scss +0 -99
  180. package/src/styles/components/_buttonSplit.scss +0 -65
  181. package/src/styles/components/_card.scss +0 -24
  182. package/src/styles/components/_dialog.scss +0 -119
  183. package/src/styles/components/_form.scss +0 -8
  184. package/src/styles/components/_header.scss +0 -157
  185. package/src/styles/components/_input.scss +0 -167
  186. package/src/styles/components/_inputCheckbox.scss +0 -48
  187. package/src/styles/components/_inputDateTime.scss +0 -161
  188. package/src/styles/components/_inputRadio.scss +0 -83
  189. package/src/styles/components/_inputSelect.scss +0 -8
  190. package/src/styles/components/_list.scss +0 -58
  191. package/src/styles/components/_loader.scss +0 -55
  192. package/src/styles/components/_menu-v2.scss +0 -67
  193. package/src/styles/components/_menu.scss +0 -62
  194. package/src/styles/components/_notifications.scss +0 -71
  195. package/src/styles/components/_page.scss +0 -84
  196. package/src/styles/components/_portal.scss +0 -8
  197. package/src/styles/components/_print.scss +0 -77
  198. package/src/styles/components/_progressBar.scss +0 -83
  199. package/src/styles/components/_pullover.scss +0 -95
  200. package/src/styles/components/_scrollbar.scss +0 -18
  201. package/src/styles/components/_sidebar.scss +0 -204
  202. package/src/styles/components/_smallComponents.scss +0 -23
  203. package/src/styles/components/_table.scss +0 -340
  204. package/src/styles/components/_tabs.scss +0 -33
  205. package/src/styles/components/_tooltip.scss +0 -48
  206. package/src/styles/components/_tree.scss +0 -21
  207. package/src/styles/components/_widget.scss +0 -90
  208. package/src/styles/pages/_fullScreenPage.scss +0 -64
  209. package/src/styles/variables/_bp.scss +0 -6
  210. package/src/styles/variables/_variables.scss +0 -142
  211. package/src/types/Base/custom.d.ts +0 -9
  212. package/src/types/IBasic.ts +0 -32
  213. package/src/types/ICountryCode.ts +0 -5
  214. package/src/types/IError.ts +0 -5
  215. package/src/types/IHeader.ts +0 -40
  216. package/src/types/IInfo.ts +0 -1
  217. package/src/types/IKeyboard.ts +0 -33
  218. package/src/types/IMenu.ts +0 -19
  219. package/src/types/INotifications.ts +0 -15
  220. package/src/types/IPopup.ts +0 -17
  221. package/src/types/IRouter.ts +0 -6
  222. package/src/types/ISelect.ts +0 -54
  223. package/src/types/ITab.ts +0 -10
  224. package/src/types/ITable.ts +0 -291
  225. package/src/types/ITree.ts +0 -6
  226. package/src/utils/InputPatternValidation.ts +0 -12
  227. package/src/utils/dateUtils.ts +0 -32
  228. package/src/utils/fileUtils.ts +0 -177
  229. package/src/utils/i18n/i18nIUICyrilic.ts +0 -119
  230. package/src/utils/i18n/i18nIUILatin.ts +0 -120
  231. package/src/utils/i18n/i18nIUIMe.ts +0 -118
  232. package/src/utils/icons.ts +0 -13
  233. package/src/utils/localStorageHelper.ts +0 -24
  234. package/src/utils/logoUtils.ts +0 -7
  235. package/src/utils/numberUtils.ts +0 -21
  236. package/src/utils/objectUtils.ts +0 -114
  237. package/src/utils/popupUtils.ts +0 -82
  238. package/src/utils/rootDir.ts +0 -1
  239. package/src/utils/stringUtils.ts +0 -18
  240. package/src/utils/tableUtils.ts +0 -130
  241. package/src/utils/toasts.ts +0 -6
  242. package/src/utils/urlUtils.ts +0 -4
  243. package/tsconfig.icons.json +0 -5
  244. package/tsconfig.json +0 -22
@@ -1,80 +0,0 @@
1
- // import { FC, useState } from 'react';
2
- // import { MenuItem } from '../../../Menu/MenuItem';
3
- // import { useTranslation } from 'react-i18next';
4
- // import { Dialog } from '../../../Dialog/Dialog';
5
- // import { createReportTemplate } from './repo/TemplateRepo';
6
- // import { IReportTemplate, IReportTemplateData } from '../../../../types/ITable';
7
- // import { deleteEmptyProps } from '../../../../utils/ObjectUtils';
8
- // import { TextInput } from '../../../Inputs/TextInput';
9
- // import { Checkbox } from '../../../Inputs/Checkbox';
10
- // import { convertSearchToReportTemplateFilter } from '../../../../utils/TableUtils';
11
-
12
- // interface Props {
13
- // identifier: string;
14
- // data: IReportTemplateData;
15
- // onSubmitCallback: () => void;
16
- // allowPublicCreate?: boolean;
17
- // }
18
-
19
- // export const TemplateCreate: FC<Props> = ({
20
- // identifier,
21
- // data: { searchData, visibleColumns, sorts },
22
- // onSubmitCallback,
23
- // allowPublicCreate,
24
- // }) => {
25
- // const [isOpen, setIsOpen] = useState(false);
26
- // const [formData, setFormData] = useState<Partial<IReportTemplate>>({});
27
- // const [isLoading, setIsLoading] = useState(false);
28
-
29
- // const { t } = useTranslation();
30
-
31
- // const onFormSubmit = () => {
32
- // setIsLoading(true);
33
- // const data = deleteEmptyProps({
34
- // identifier,
35
- // name: formData.name,
36
- // isPublic: formData.isPublic,
37
-
38
- // filterValues: convertSearchToReportTemplateFilter(searchData),
39
- // columns: visibleColumns,
40
- // sorts,
41
- // }) as Partial<IReportTemplate>;
42
-
43
- // createReportTemplate(data)
44
- // .then(() => {
45
- // setIsOpen(false);
46
- // onSubmitCallback();
47
- // })
48
- // .catch(() => {})
49
- // .finally(() => setIsLoading(false));
50
- // };
51
-
52
- // return (
53
- // <>
54
- // <MenuItem label={t('CreateTemplateLong')} onClick={() => setIsOpen(true)} />
55
- // <Dialog
56
- // title={t('CreateTemplate')}
57
- // isOpen={isOpen}
58
- // onClose={() => setIsOpen(false)}
59
- // size="l"
60
- // isLoading={isLoading}
61
- // confirmButton={{ onFormSubmit, keepOpen: true }}
62
- // >
63
- // <div className="flex column gap-3">
64
- // <TextInput
65
- // label={t('Name')}
66
- // value={formData.name}
67
- // setValue={name => setFormData({ ...formData, name })}
68
- // />
69
- // {allowPublicCreate && (
70
- // <Checkbox
71
- // label={t('PublicTemplate')}
72
- // value={formData.isPublic}
73
- // setValue={isPublic => setFormData({ ...formData, isPublic })}
74
- // />
75
- // )}
76
- // </div>
77
- // </Dialog>
78
- // </>
79
- // );
80
- // };
@@ -1,45 +0,0 @@
1
- // import { FC } from 'react';
2
- // import { MenuItem } from '../../../Menu/MenuItem';
3
- // import { useTranslation } from 'react-i18next';
4
- // import { createReportTemplate } from './repo/TemplateRepo';
5
- // import { IReportTemplate, IReportTemplateData } from '../../../../types/ITable';
6
- // import { deleteEmptyProps } from '../../../../utils/ObjectUtils';
7
- // import { convertSearchToReportTemplateFilter } from '../../../../utils/TableUtils';
8
-
9
- // interface Props {
10
- // identifier: string;
11
- // data: IReportTemplateData;
12
- // onClose: () => void;
13
- // }
14
-
15
- // export const TemplateCreateDefault: FC<Props> = ({
16
- // identifier,
17
- // data: { searchData, visibleColumns, sorts },
18
- // onClose,
19
- // }) => {
20
- // const { t } = useTranslation();
21
-
22
- // const onSubmit = () => {
23
- // const data: Partial<IReportTemplate> = deleteEmptyProps({
24
- // identifier,
25
- // name: identifier,
26
- // isPublic: false,
27
- // isDefault: true,
28
- // filterValues: convertSearchToReportTemplateFilter(searchData),
29
- // columns: visibleColumns,
30
- // sorts,
31
- // });
32
-
33
- // createReportTemplate(data);
34
- // };
35
-
36
- // return (
37
- // <MenuItem
38
- // label={t('CreateDefaultTemplate')}
39
- // onClick={() => {
40
- // onSubmit();
41
- // onClose();
42
- // }}
43
- // />
44
- // );
45
- // };
@@ -1,167 +0,0 @@
1
- // import { FC, useState } from 'react';
2
- // import { MenuItem } from '../../../Menu/MenuItem';
3
- // import { useTranslation } from 'react-i18next';
4
- // import { Dialog } from '../../../Dialog/Dialog';
5
- // import {
6
- // IReportTemplate,
7
- // ITableColumn,
8
- // ITableDataItem,
9
- // ITableFilter,
10
- // } from '../../../../types/ITable';
11
- // import { Table } from '../../Table';
12
- // import { deleteReportTemplate } from './repo/TemplateRepo';
13
- // import { deleteProps } from '../../../../utils/ObjectUtils';
14
- // import { DeleteItemDialog } from '../../../Dialog/DeleteItemDialog';
15
- // import { IAnyObject } from '../../../../types/IBasic';
16
- // import { TextInput } from '../../../Inputs/TextInput';
17
- // import { Select } from '../../../Inputs/Selects/Select';
18
- // import {
19
- // getActiveFilterNumber,
20
- // getVisibleColumnsIds,
21
- // } from '../../../../utils/TableUtils';
22
-
23
- // interface Props {
24
- // identifier: string;
25
- // onSelect: (template: IReportTemplate) => void;
26
- // }
27
-
28
- // export const TemplateList: FC<Props> = ({ identifier, onSelect }) => {
29
- // const [isOpen, setIsOpen] = useState(false);
30
- // const [data, setData] = useState<ITableDataItem[]>([]);
31
- // const [limit, setLimit] = useState(5);
32
- // const [offset, setOffset] = useState(0);
33
- // const [totalRows, setTotalRows] = useState(0);
34
- // const [search, setSearch] = useState<{ nameLike?: string }>({});
35
- // const [searchData, setSearchData] = useState<{ nameLike?: string }>({});
36
- // const [isLoading, setIsLoading] = useState(false);
37
- // const [itemToDeleteUuid, setItemToDeleteUuid] = useState('');
38
-
39
- // const { t } = useTranslation();
40
-
41
- // const columns: ITableColumn[] = [
42
- // { id: 'name', label: t('Name') },
43
- // { id: 'public', label: t('PublicTemplate') },
44
- // { id: 'actions', label: t('Actions'), width: '70px' },
45
- // ];
46
-
47
- // const handleGetTemplates = () => [];
48
- // // useCallback(() => {
49
- // // if (isOpen) {
50
- // // setIsLoading(true);
51
- // // getReportTemplates({ limit, offset }, { identifier, ...deleteEmptyProps(search) }, [
52
- // // 'FILTER_VALUES',
53
- // // ])
54
- // // .then(({ templates, totalRows }) => {
55
- // // setData(
56
- // // templates.map(
57
- // // e =>
58
- // // ({
59
- // // uuid: e.uuid,
60
- // // onRowClick: () => {
61
- // // onSelect(e);
62
- // // setIsOpen(false);
63
- // // },
64
- // // cells: {
65
- // // name: { value: e.name },
66
- // // public: { value: t(e.isPublic ? 'Yes' : 'No') },
67
- // // actions: {
68
- // // value: (
69
- // // <ItemActionsMenu
70
- // // item={e}
71
- // // // setSelectedItem={e => setSelectedItem(e)}
72
- // // setItemToDeleteUuid={() => setItemToDeleteUuid(e.uuid)}
73
- // // />
74
- // // ),
75
- // // unclickable: true,
76
- // // },
77
- // // },
78
- // // } as ITableDataItem)
79
- // // )
80
- // // );
81
- // // setTotalRows(totalRows);
82
- // // })
83
- // // .catch(() => {})
84
- // // .finally(() => setIsLoading(false));
85
- // // }
86
- // // }, [isOpen, limit, offset, identifier, search]);
87
-
88
- // // useEffect(handleGetTemplates, [handleGetTemplates]);
89
-
90
- // return (
91
- // <>
92
- // <MenuItem label={t('SelectTemplate')} onClick={() => setIsOpen(true)} />
93
- // <Dialog
94
- // title={t('TemplateList')}
95
- // isOpen={isOpen}
96
- // onClose={() => setIsOpen(false)}
97
- // size="l"
98
- // >
99
- // <Table
100
- // columns={columns}
101
- // data={data}
102
- // isLoading={isLoading}
103
- // serverSidePagination={{ limit, offset, setLimit, setOffset, totalRows }}
104
- // filterData={{
105
- // activeFilterNo: getActiveFilterNumber(search),
106
- // columns: getVisibleColumnsIds(columns),
107
- // filters: filters(searchData, setSearchData, t),
108
- // search,
109
- // searchData,
110
- // setSearchData,
111
- // onSubmit: (search: IAnyObject) => {
112
- // setOffset(0);
113
- // setSearch(search);
114
- // },
115
- // }}
116
- // />
117
- // </Dialog>
118
- // <DeleteItemDialog
119
- // itemUuid={itemToDeleteUuid}
120
- // setItemUuid={setItemToDeleteUuid}
121
- // textId="Template"
122
- // deleteItemFunction={deleteReportTemplate}
123
- // reloadItems={handleGetTemplates}
124
- // />
125
- // </>
126
- // );
127
- // };
128
-
129
- // const filters: (
130
- // search: IAnyObject,
131
- // setSearch: (search: IAnyObject) => void,
132
- // t: any
133
- // ) => ITableFilter = (search, setSearch, t) => ({
134
- // name: {
135
- // label: t('Name'),
136
- // field: (
137
- // <TextInput
138
- // placeholder={t('AddInput') + '...'}
139
- // value={search.nameLike}
140
- // setValue={nameLike => setSearch({ ...search, nameLike })}
141
- // />
142
- // ),
143
- // resetField: () => setSearch(deleteProps(search, ['nameLike'])),
144
- // },
145
- // public: {
146
- // label: t('PublicTemplates'),
147
- // field: (
148
- // <Select
149
- // placeholder={t('Choose')}
150
- // value={
151
- // search.isPublic !== undefined
152
- // ? {
153
- // value: search.isPublic,
154
- // label: t(search.isPublic ? 'Yes' : 'No'),
155
- // }
156
- // : null
157
- // }
158
- // options={[
159
- // { value: true, label: t(`Yes`) },
160
- // { value: false, label: t(`No`) },
161
- // ]}
162
- // onChange={e => setSearch({ ...search, isPublic: e.value })}
163
- // />
164
- // ),
165
- // resetField: () => setSearch(deleteProps(search, ['isPublic'])),
166
- // },
167
- // });
@@ -1,53 +0,0 @@
1
- // import { IPagination, IReportTemplate } from '../../../../../types/ITable';
2
- // import { getActiveOrgUuid } from '../../../../../utils/LocalStorageHelper';
3
-
4
- // const baseUrl =
5
- // window.location.host.includes('test.inception.rs') ||
6
- // window.location.host.includes('web-bankt.erstebank.rs') ||
7
- // window.location.host.includes('localhost:')
8
- // ? 'https://report-templates.api.test.inception.rs'
9
- // : 'https://report-templates.api.inception.rs';
10
-
11
- // export const getReportTemplates = (
12
- // pagination: IPagination,
13
- // search: { identifier: string; nameLike?: string; onlyLoggedInUserTemplates?: boolean },
14
- // fetchOptions?: ('SORT' | 'FILTER_VALUES' | 'COLUMNS' | 'CREATED_BY' | 'ORGANIZATION')[]
15
- // ) =>
16
- // axiosInstance
17
- // .get('/report-templates', {
18
- // params: {
19
- // ...pagination,
20
- // ...search,
21
- // fetchOptions,
22
- // organizationUuid: getActiveOrgUuid(),
23
- // subsystem: moduleId,
24
- // },
25
- // headers: { baseUrl },
26
- // })
27
- // .then(({ data }) => ({
28
- // templates: data.reportTemplates as IReportTemplate[],
29
- // totalRows: data.pagination.totalRows as number,
30
- // }));
31
-
32
- // export const getDefaultReportTemplate = (identifier: string) =>
33
- // axiosInstance
34
- // .get(`/report-templates/${identifier}/default`, {
35
- // params: { organizationUuid: getActiveOrgUuid() },
36
- // headers: { baseUrl },
37
- // })
38
- // .then(({ data }) => data as IReportTemplate);
39
-
40
- // export const createReportTemplate = (data: Partial<IReportTemplate>) =>
41
- // axiosInstance.post(
42
- // `/report-template`,
43
- // {
44
- // ...data,
45
- // organization: { uuid: getActiveOrgUuid() },
46
- // subsystem: moduleId,
47
- // },
48
- // { headers: { baseUrl } }
49
- // );
50
- // export const deleteReportTemplate = (templateUuid: string) =>
51
- // axiosInstance.delete(`/report-templates/${templateUuid}`, {
52
- // headers: { baseUrl },
53
- // });