@inceptionbg/iui 2.0.35 → 2.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -1
- package/idea/GridTable/GridTable.tsx +0 -119
- package/idea/GridTable/gridTable.scss +0 -42
- package/idea/Menu/Menu.tsx +0 -121
- package/idea/Menu/MenuItem.tsx +0 -75
- package/idea/Menu/hooks/useMenuControl.ts +0 -13
- package/idea/Menu.tsx +0 -133
- package/idea/NoAccessInfo.tsx +0 -193
- package/idea/Table/Components/Edit/ItemActionsMenu.tsx +0 -85
- package/idea/Table/Components/Edit/ItemEditOptionsButtons.tsx +0 -31
- package/idea/Table/Components/Edit/TableEditRow.tsx +0 -57
- package/idea/Table/Components/FilterItem.tsx +0 -20
- package/idea/Table/Components/Header/TableHeader.tsx +0 -46
- package/idea/Table/Components/Header/TableHeaderRow.tsx +0 -37
- package/idea/Table/Components/Print/CustomTablePrint.tsx +0 -115
- package/idea/Table/Components/SetSortList.tsx +0 -30
- package/idea/Table/Components/SetTableFilter.tsx +0 -91
- package/idea/Table/Components/TableFooter.tsx +0 -137
- package/idea/Table/Components/TableOptions.tsx +0 -227
- package/idea/Table/Components/Templates/TemplateCreate.tsx +0 -80
- package/idea/Table/Components/Templates/TemplateCreateDefault.tsx +0 -45
- package/idea/Table/Components/Templates/TemplateList.tsx +0 -167
- package/idea/Table/Components/Templates/repo/TemplateRepo.ts +0 -53
- package/idea/Table/Table.tsx +0 -528
- package/idea/Table/hooks/useDefaultTemplate.ts +0 -20
- package/idea/Table/hooks/useTableKeyboard.ts +0 -137
- package/idea/Table/hooks/useTableSelect.ts +0 -11
- package/rollup.config.js +0 -52
- package/src/assets/icons/duotone/faBell.ts +0 -17
- package/src/assets/icons/duotone/faCircleUser.ts +0 -17
- package/src/assets/icons/regular/faArrowLeft.ts +0 -15
- package/src/assets/icons/regular/faArrowRightArrowLeft.ts +0 -15
- package/src/assets/icons/regular/faCircleCheck.ts +0 -15
- package/src/assets/icons/regular/faCircleExclamation.ts +0 -15
- package/src/assets/icons/regular/faCircleInfo.ts +0 -15
- package/src/assets/icons/regular/faFileArrowDown.ts +0 -15
- package/src/assets/icons/regular/faFilterCircleXmark.ts +0 -15
- package/src/assets/icons/regular/faTriangleExclamation.ts +0 -15
- package/src/assets/icons/solid/faAngleLeft.ts +0 -15
- package/src/assets/icons/solid/faAngleRight.ts +0 -15
- package/src/assets/icons/solid/faArrowDownWideShort.ts +0 -15
- package/src/assets/icons/solid/faCaretDown.ts +0 -15
- package/src/assets/icons/solid/faCheck.ts +0 -15
- package/src/assets/icons/solid/faEllipsisVertical.ts +0 -15
- package/src/assets/icons/solid/faEnvelopeDot.ts +0 -15
- package/src/assets/icons/solid/faFilter.ts +0 -15
- package/src/assets/icons/solid/faFloppyDisk.ts +0 -15
- package/src/assets/icons/solid/faGripDotsVertical.ts +0 -15
- package/src/assets/icons/solid/faListUl.ts +0 -15
- package/src/assets/icons/solid/faMinus.ts +0 -15
- package/src/assets/icons/solid/faPlus.ts +0 -15
- package/src/assets/icons/solid/faPrint.ts +0 -15
- package/src/assets/icons/solid/faRotateRight.ts +0 -15
- package/src/assets/icons/solid/faXmark.ts +0 -15
- package/src/assets/images/logo/inception.svg +0 -22
- package/src/assets/images/logo/mts.svg +0 -5703
- package/src/assets/images/logo/paperless.svg +0 -21
- package/src/assets/images/logo/pismonosa.png +0 -0
- package/src/assets/images/not-found.svg +0 -19
- package/src/components/Accordions/Accordions.tsx +0 -74
- package/src/components/Alert/Alert.tsx +0 -31
- package/src/components/Badge/DotBadge.tsx +0 -16
- package/src/components/Badge/NotificationBadge.tsx +0 -29
- package/src/components/Badge/PillBadge.tsx +0 -13
- package/src/components/Button/Button.tsx +0 -56
- package/src/components/Button/IconButton.tsx +0 -51
- package/src/components/Button/SplitButton.tsx +0 -91
- package/src/components/Dashboard/Dashboard.tsx +0 -9
- package/src/components/Dashboard/DashboardWidget.tsx +0 -44
- package/src/components/Dashboard/FastLinksWidget/FastLinksWidget.tsx +0 -36
- package/src/components/Dialog/Dialog.tsx +0 -178
- package/src/components/Dialog/components/DialogFooter.tsx +0 -100
- package/src/components/Header/Components/EnvBadge.tsx +0 -17
- package/src/components/Header/Components/ModuleSelect.tsx +0 -68
- package/src/components/Header/Components/Notifications.tsx +0 -204
- package/src/components/Header/Components/UserMenu.tsx +0 -52
- package/src/components/Header/Header.tsx +0 -45
- package/src/components/Helper/Collapse.tsx +0 -53
- package/src/components/Inputs/Checkbox.tsx +0 -53
- package/src/components/Inputs/CurrencyInput.tsx +0 -124
- package/src/components/Inputs/DateInput/DateInput.tsx +0 -184
- package/src/components/Inputs/DateInput/components/DatePartInput.tsx +0 -159
- package/src/components/Inputs/InputWrapper.tsx +0 -95
- package/src/components/Inputs/NumberInput.tsx +0 -86
- package/src/components/Inputs/PasswordInput.tsx +0 -39
- package/src/components/Inputs/PhoneInput/PhoneInput.tsx +0 -108
- package/src/components/Inputs/PhoneInput/utils/countryCode.ts +0 -20
- package/src/components/Inputs/Radio.tsx +0 -59
- package/src/components/Inputs/RadioGroup.tsx +0 -48
- package/src/components/Inputs/RadioLarge.tsx +0 -39
- package/src/components/Inputs/SearchInput.tsx +0 -46
- package/src/components/Inputs/Selects/Select.tsx +0 -17
- package/src/components/Inputs/Selects/components/CustomSelectComponents.tsx +0 -19
- package/src/components/Inputs/Selects/components/SelectWrapper.tsx +0 -118
- package/src/components/Inputs/Selects/utils/selectStyles.ts +0 -101
- package/src/components/Inputs/TextAreaInput.tsx +0 -68
- package/src/components/Inputs/TextInput.tsx +0 -100
- package/src/components/Inputs/TimeInput/TimeInput.tsx +0 -81
- package/src/components/List/List.tsx +0 -21
- package/src/components/List/ListItem.tsx +0 -70
- package/src/components/Loader/Loader.tsx +0 -66
- package/src/components/Loader/ProgressBar.tsx +0 -41
- package/src/components/Menu/Menu.tsx +0 -81
- package/src/components/Menu/MenuItem.tsx +0 -46
- package/src/components/Menu/NewMenu.tsx +0 -63
- package/src/components/Menu/hooks/useMenuPosition.tsx +0 -116
- package/src/components/PageComponents/ScrollableContent.tsx +0 -11
- package/src/components/Pullover/Pullover.tsx +0 -197
- package/src/components/Router/Router.tsx +0 -52
- package/src/components/Sidebar/AddButton.tsx +0 -22
- package/src/components/Sidebar/Sidebar.tsx +0 -85
- package/src/components/Sidebar/SidebarItem.tsx +0 -84
- package/src/components/Sidebar/types/ISidebar.ts +0 -28
- package/src/components/Table/Table.tsx +0 -258
- package/src/components/Table/components/columns/ColumnsList.tsx +0 -60
- package/src/components/Table/components/columns/TableColumnsEdit.tsx +0 -114
- package/src/components/Table/components/edit/TableEditRow.tsx +0 -78
- package/src/components/Table/components/filters/FilterItem.tsx +0 -15
- package/src/components/Table/components/filters/TableFilters.tsx +0 -126
- package/src/components/Table/components/footer/TableFooter.tsx +0 -126
- package/src/components/Table/components/header/TableHeader.tsx +0 -40
- package/src/components/Table/components/header/TableHeaderRow.tsx +0 -57
- package/src/components/Table/components/items/TableItemActions.tsx +0 -78
- package/src/components/Table/components/print/TablePrint.tsx +0 -200
- package/src/components/Table/components/select/TableSelect.tsx +0 -50
- package/src/components/Table/components/sort/TableSort.tsx +0 -75
- package/src/components/Table/components/templates/CreateTemplateDialog.tsx +0 -58
- package/src/components/Table/components/templates/TableTemplates.tsx +0 -65
- package/src/components/Table/components/templates/TemplatesPullover.tsx +0 -88
- package/src/components/Table/contexts/TableContext.tsx +0 -117
- package/src/components/Table/hooks/localHooks/useLocalTableColumns.tsx +0 -70
- package/src/components/Table/hooks/localHooks/useLocalTableData.tsx +0 -82
- package/src/components/Table/hooks/localHooks/useLocalTableKeyboard.ts +0 -175
- package/src/components/Table/hooks/localHooks/useLocalTablePagination.ts +0 -12
- package/src/components/Table/hooks/useTableColumns.ts +0 -34
- package/src/components/Table/hooks/useTableEdit.tsx +0 -140
- package/src/components/Table/hooks/useTableFilterFields.tsx +0 -150
- package/src/components/Table/hooks/useTablePagination.ts +0 -19
- package/src/components/Table/hooks/useTablePrint.ts +0 -83
- package/src/components/Table/hooks/useTableSearch.ts +0 -31
- package/src/components/Table/hooks/useTableSelect.ts +0 -19
- package/src/components/Table/hooks/useTableSort.ts +0 -8
- package/src/components/Tabs/Tabs.tsx +0 -68
- package/src/components/Tooltip/Tooltip.tsx +0 -191
- package/src/components/Tree/Tree.tsx +0 -22
- package/src/components/Tree/TreeItem.tsx +0 -57
- package/src/components/Wrappers/AppLayout.tsx +0 -17
- package/src/components/Wrappers/ConditionalWrapper.tsx +0 -10
- package/src/components/Wrappers/FormWrapper.tsx +0 -84
- package/src/components/Wrappers/PageLayout.tsx +0 -168
- package/src/hooks/useBackgroundClose.ts +0 -19
- package/src/hooks/useGetFocusableElements.ts +0 -43
- package/src/hooks/useIsMenuOpen.ts +0 -11
- package/src/hooks/useLocalPopoverControl.ts +0 -63
- package/src/hooks/useOnEsc.ts +0 -14
- package/src/hooks/usePopupControl.ts +0 -22
- package/src/hooks/useZendesk.ts +0 -22
- package/src/index.ts +0 -387
- package/src/pages/NoAccessPage.tsx +0 -27
- package/src/pages/NotFoundPage.tsx +0 -26
- package/src/styles/App.scss +0 -47
- package/src/styles/common/_animations.scss +0 -58
- package/src/styles/common/_typography.scss +0 -91
- package/src/styles/common/helpers/_base.scss +0 -55
- package/src/styles/common/helpers/_color.scss +0 -10
- package/src/styles/common/helpers/_display.scss +0 -85
- package/src/styles/common/helpers/_size.scss +0 -25
- package/src/styles/common/maps/_align.scss +0 -21
- package/src/styles/common/maps/_buttonMaps.scss +0 -42
- package/src/styles/common/maps/_info-types.scss +0 -1
- package/src/styles/common/maps/_spacing.scss +0 -78
- package/src/styles/common/maps/_text.scss +0 -14
- package/src/styles/components/_accordions.scss +0 -51
- package/src/styles/components/_alert.scss +0 -23
- package/src/styles/components/_badge.scss +0 -84
- package/src/styles/components/_button.scss +0 -99
- package/src/styles/components/_buttonSplit.scss +0 -74
- package/src/styles/components/_card.scss +0 -24
- package/src/styles/components/_dialog.scss +0 -119
- package/src/styles/components/_form.scss +0 -8
- package/src/styles/components/_header.scss +0 -157
- package/src/styles/components/_input.scss +0 -167
- package/src/styles/components/_inputCheckbox.scss +0 -48
- package/src/styles/components/_inputDateTime.scss +0 -161
- package/src/styles/components/_inputRadio.scss +0 -83
- package/src/styles/components/_inputSelect.scss +0 -8
- package/src/styles/components/_list.scss +0 -58
- package/src/styles/components/_loader.scss +0 -55
- package/src/styles/components/_menu-v2.scss +0 -67
- package/src/styles/components/_menu.scss +0 -62
- package/src/styles/components/_notifications.scss +0 -71
- package/src/styles/components/_page.scss +0 -84
- package/src/styles/components/_portal.scss +0 -8
- package/src/styles/components/_print.scss +0 -77
- package/src/styles/components/_progressBar.scss +0 -83
- package/src/styles/components/_pullover.scss +0 -95
- package/src/styles/components/_scrollbar.scss +0 -18
- package/src/styles/components/_sidebar.scss +0 -204
- package/src/styles/components/_smallComponents.scss +0 -23
- package/src/styles/components/_table.scss +0 -340
- package/src/styles/components/_tabs.scss +0 -33
- package/src/styles/components/_tooltip.scss +0 -48
- package/src/styles/components/_tree.scss +0 -21
- package/src/styles/components/_widget.scss +0 -90
- package/src/styles/pages/_fullScreenPage.scss +0 -64
- package/src/styles/variables/_bp.scss +0 -6
- package/src/styles/variables/_variables.scss +0 -142
- package/src/types/Base/custom.d.ts +0 -9
- package/src/types/IBasic.ts +0 -32
- package/src/types/ICountryCode.ts +0 -5
- package/src/types/IError.ts +0 -5
- package/src/types/IHeader.ts +0 -40
- package/src/types/IInfo.ts +0 -1
- package/src/types/IKeyboard.ts +0 -33
- package/src/types/IMenu.ts +0 -19
- package/src/types/INotifications.ts +0 -15
- package/src/types/IPopup.ts +0 -17
- package/src/types/IRouter.ts +0 -6
- package/src/types/ISelect.ts +0 -54
- package/src/types/ITab.ts +0 -10
- package/src/types/ITable.ts +0 -291
- package/src/types/ITree.ts +0 -6
- package/src/utils/InputPatternValidation.ts +0 -12
- package/src/utils/dateUtils.ts +0 -32
- package/src/utils/fileUtils.ts +0 -177
- package/src/utils/i18n/i18nIUICyrilic.ts +0 -119
- package/src/utils/i18n/i18nIUILatin.ts +0 -120
- package/src/utils/i18n/i18nIUIMe.ts +0 -118
- package/src/utils/icons.ts +0 -13
- package/src/utils/localStorageHelper.ts +0 -24
- package/src/utils/logoUtils.ts +0 -7
- package/src/utils/numberUtils.ts +0 -21
- package/src/utils/objectUtils.ts +0 -114
- package/src/utils/popupUtils.ts +0 -82
- package/src/utils/rootDir.ts +0 -1
- package/src/utils/stringUtils.ts +0 -18
- package/src/utils/tableUtils.ts +0 -130
- package/src/utils/toasts.ts +0 -6
- package/src/utils/urlUtils.ts +0 -4
- package/tsconfig.icons.json +0 -5
- package/tsconfig.json +0 -22
|
@@ -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
|
-
// });
|