hrm_ui_lib 2.0.3 → 2.1.0
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/assets/styles/styles.css +525 -0
- package/assets/styles/styles.scss +3 -1
- package/components/Alert/Alert.js +1 -1
- package/components/Alert/index.js +1 -1
- package/components/Avatar/Avatar.js +1 -1
- package/components/Avatar/AvatarGroup.js +1 -1
- package/components/Avatar/index.js +1 -1
- package/components/Button/Button.js +1 -1
- package/components/Button/index.js +1 -1
- package/components/Checkbox/Checkbox.js +1 -1
- package/components/Checkbox/index.js +1 -1
- package/components/Copy/Copy.js +1 -1
- package/components/Copy/index.js +1 -1
- package/components/Counter/Counter.js +1 -1
- package/components/Counter/index.js +1 -1
- package/components/DatePicker/CustomHeader/CustomHeader.js +1 -1
- package/components/DatePicker/RangeDatePicker/RangeDatePicker.js +1 -1
- package/components/DatePicker/RangeDatePicker/RangeDatePickerDesktop.js +1 -1
- package/components/DatePicker/RangeDatePicker/RangeDatePickerMobile.js +1 -1
- package/components/DatePicker/RangeDatePicker/index.js +1 -1
- package/components/DatePicker/SimpleDatePicker/SimpleDatePicker.js +1 -1
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerDesktop.js +1 -1
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerMobile.js +1 -1
- package/components/DatePicker/SimpleDatePicker/index.js +1 -1
- package/components/DatePicker/TimePicker/MobileModalContent.js +1 -1
- package/components/DatePicker/TimePicker/TimePicker.js +1 -1
- package/components/DatePicker/TimePicker/TimePickerDesktop.js +1 -1
- package/components/DatePicker/TimePicker/TimePickerMobile.js +1 -1
- package/components/DatePicker/TimePicker/index.js +1 -1
- package/components/DatePicker/index.js +1 -1
- package/components/Empty/Empty.js +1 -1
- package/components/Empty/index.js +1 -1
- package/components/FileUpload/DropzoneFileUpload/DropzoneFileUpload.js +1 -1
- package/components/FileUpload/DropzoneFileUpload/ErrorItem.js +1 -1
- package/components/FileUpload/DropzoneFileUpload/PreviewItem.js +1 -1
- package/components/FileUpload/DropzoneFileUpload/helpers.js +1 -1
- package/components/FileUpload/DropzoneFileUpload/index.js +1 -1
- package/components/FileUpload/FileUpload.js +1 -1
- package/components/FileUpload/UploadItems.js +1 -1
- package/components/FileUpload/index.js +1 -1
- package/components/FormContainer/FormContainer.js +1 -1
- package/components/FormContainer/index.js +1 -1
- package/components/FormField/FormField.js +1 -1
- package/components/FormField/index.js +1 -1
- package/components/Input/Input.js +1 -1
- package/components/Input/index.js +1 -1
- package/components/Menu/Menu.js +1 -1
- package/components/Menu/NestedMenu.js +1 -1
- package/components/Menu/index.js +1 -1
- package/components/Modal/Modal.js +1 -1
- package/components/Modal/ModalConfirmation.js +1 -1
- package/components/Modal/ModalContent.js +1 -1
- package/components/Modal/index.js +1 -1
- package/components/More/More.js +1 -1
- package/components/More/index.js +1 -1
- package/components/Popover/Popover.js +1 -1
- package/components/Popover/PopoverMobile.js +1 -1
- package/components/Popover/index.js +1 -1
- package/components/Radio/RadioGroup.js +1 -1
- package/components/Radio/index.js +1 -1
- package/components/SVGIcons/IconChevronDoubleLeft.d.ts +4 -0
- package/components/SVGIcons/IconChevronDoubleLeft.js +29 -0
- package/components/SVGIcons/IconChevronDoubleRight.d.ts +4 -0
- package/components/SVGIcons/IconChevronDoubleRight.js +29 -0
- package/components/SVGIcons/index.d.ts +2 -0
- package/components/SVGIcons/index.js +2 -0
- package/components/Select/ButtonSelect/ButtonSelect.js +1 -1
- package/components/Select/FilterSelect/FilterDropdown.js +1 -1
- package/components/Select/FilterSelect/FilterGroupDropdown.js +1 -1
- package/components/Select/FilterSelect/FilterSelect.js +1 -1
- package/components/Select/MultiSelect/MobileWrapper.js +1 -1
- package/components/Select/MultiSelect/MultiBase/MultiBase.js +1 -1
- package/components/Select/MultiSelect/MultiSelect.js +1 -1
- package/components/Select/MultiSelect/MultiSelectGrouped/MultiSelectGrouped.js +1 -1
- package/components/Select/MultiSelect/MultiSelectWithTabs/MultiSelectWithTabs.js +1 -1
- package/components/Select/MultiSelect/OptionsWrapper.js +1 -1
- package/components/Select/NestedSelect/NestedSelect.js +1 -1
- package/components/Select/Select/Select.js +1 -1
- package/components/Select/Select/SelectDesktop/index.js +1 -1
- package/components/Select/Select/SelectMobile/MobileTopContent.js +1 -1
- package/components/Select/Select/SelectMobile/index.js +1 -1
- package/components/Select/SharedComponents/Actions.js +1 -1
- package/components/Select/SharedComponents/ButtonSelectWrapper/ButtonSelectWrapper.js +1 -1
- package/components/Select/SharedComponents/ContentTop.js +1 -1
- package/components/Select/SharedComponents/Footer.js +1 -1
- package/components/Select/SharedComponents/InputSelectWrapper/InputSelectWrapper.js +1 -1
- package/components/Select/SharedComponents/index.js +1 -1
- package/components/Select/index.js +1 -1
- package/components/SideSheet/Footer/Footer.js +1 -1
- package/components/SideSheet/SideSheet.js +1 -1
- package/components/SideSheet/index.js +1 -1
- package/components/Snackbar/Snackbar.js +1 -1
- package/components/Snackbar/index.js +1 -1
- package/components/Switcher/Switcher.js +1 -1
- package/components/Switcher/index.js +1 -1
- package/components/Table/Header.js +1 -1
- package/components/Table/IndeterminateCheckbox.js +1 -1
- package/components/Table/Row.js +1 -1
- package/components/Table/Table.js +1 -1
- package/components/Table/index.js +1 -1
- package/components/Table/utils.js +1 -1
- package/components/TableV2/AdvancedPagination.d.ts +8 -0
- package/components/TableV2/AdvancedPagination.js +271 -0
- package/components/TableV2/ColumnHeader.d.ts +9 -0
- package/components/TableV2/ColumnHeader.js +64 -0
- package/components/TableV2/ColumnSettings.d.ts +9 -0
- package/components/TableV2/ColumnSettings.js +164 -0
- package/components/TableV2/IndeterminateCheckbox.d.ts +13 -0
- package/components/TableV2/IndeterminateCheckbox.js +87 -0
- package/components/TableV2/Table.d.ts +3 -0
- package/components/TableV2/Table.js +319 -0
- package/components/TableV2/constants/index.d.ts +6 -0
- package/components/TableV2/constants/index.js +23 -0
- package/components/TableV2/hooks/useTableColumnSettings.d.ts +2 -0
- package/components/TableV2/hooks/useTableColumnSettings.js +20 -0
- package/components/TableV2/hooks/useTableControl.d.ts +11 -0
- package/components/TableV2/hooks/useTableControl.js +303 -0
- package/components/TableV2/index.d.ts +3 -0
- package/components/TableV2/index.js +131 -0
- package/components/TableV2/loadTableSettings.d.ts +2 -0
- package/components/TableV2/loadTableSettings.js +18 -0
- package/components/TableV2/types.d.ts +70 -0
- package/components/TableV2/types.js +1 -0
- package/components/Textarea/Textarea.js +1 -1
- package/components/Textarea/index.js +1 -1
- package/helperComponents/GoToWebPage/GoToWebPage.js +1 -1
- package/helperComponents/OptionItem/OptionItem.js +1 -1
- package/helperComponents/OptionItem/index.js +1 -1
- package/helperComponents/index.js +1 -1
- package/helpers/check-authorization.js +1 -1
- package/helpers/index.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +16 -1
- package/package.json +5 -1
- /package/{Alert-V_kH4Snn.js → Alert-BslI0aA0.js} +0 -0
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
|
+
import React, { useState, useEffect } from 'react';
|
|
4
|
+
import { Input } from '../Input/Input.js';
|
|
5
|
+
import { B as Button } from '../../Alert-BslI0aA0.js';
|
|
6
|
+
import { Select } from '../Select/Select/Select.js';
|
|
7
|
+
import '../Select/MultiSelect/MultiSelect.js';
|
|
8
|
+
import '@babel/runtime/helpers/toConsumableArray';
|
|
9
|
+
import { Text } from '../Text/Text.js';
|
|
10
|
+
import 'dayjs';
|
|
11
|
+
import classNames from 'classnames';
|
|
12
|
+
import '@babel/runtime/helpers/extends';
|
|
13
|
+
import '../../consts/index.js';
|
|
14
|
+
import '../../hooks/useScreenSize.js';
|
|
15
|
+
import 'react-hook-form';
|
|
16
|
+
import 'react-syntax-highlighter';
|
|
17
|
+
import 'react-dom';
|
|
18
|
+
import 'framer-motion';
|
|
19
|
+
import { IconChevronRight } from '../SVGIcons/IconChevronRight.js';
|
|
20
|
+
import '../Collapse/CollapseGroup/CollapseGroup.js';
|
|
21
|
+
import { IconMore } from '../SVGIcons/IconMore.js';
|
|
22
|
+
import '../Select/SharedComponents/ContentTop.js';
|
|
23
|
+
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
24
|
+
import { OPTIONS } from './constants/index.js';
|
|
25
|
+
import { IconChevronLeft } from '../SVGIcons/IconChevronLeft.js';
|
|
26
|
+
import { IconChevronDoubleLeft } from '../SVGIcons/IconChevronDoubleLeft.js';
|
|
27
|
+
import { IconChevronDoubleRight } from '../SVGIcons/IconChevronDoubleRight.js';
|
|
28
|
+
import 'react-input-mask';
|
|
29
|
+
import 'react-number-format';
|
|
30
|
+
import '../../helperComponents/Label/Label.js';
|
|
31
|
+
import '../../utils/helpers.js';
|
|
32
|
+
import '../../helperComponents/ErrorMessage/ErrorMessage.js';
|
|
33
|
+
import '../../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
34
|
+
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
35
|
+
import '../SVGIcons/IconCheckmarkCircleFilled.js';
|
|
36
|
+
import '../../type/file-upload.js';
|
|
37
|
+
import '../Alert/consts.js';
|
|
38
|
+
import '../../helperComponents/Loader/Loader.js';
|
|
39
|
+
import 'react-dropzone';
|
|
40
|
+
import '../SVGIcons/IconUpload.js';
|
|
41
|
+
import '../FileUpload/types.js';
|
|
42
|
+
import '../../helpers/format-date.js';
|
|
43
|
+
import '../../helpers/locale.js';
|
|
44
|
+
import '../../type/locale.js';
|
|
45
|
+
import '../../helpers/storage.js';
|
|
46
|
+
import 'react-toastify';
|
|
47
|
+
import '../../hooks/useGetIsMobile.js';
|
|
48
|
+
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
49
|
+
import '../../hooks/useOnOutsideClick.js';
|
|
50
|
+
import '../../hooks/useHideBodyScroll.js';
|
|
51
|
+
import '../SVGIcons/IconDismiss.js';
|
|
52
|
+
import '../Tooltip/types.js';
|
|
53
|
+
import '../Tooltip/Tooltip.js';
|
|
54
|
+
import '../../hooks/useGetTooltipStyles.js';
|
|
55
|
+
import '../../hooks/useGetElemSizes.js';
|
|
56
|
+
import '../../hooks/useGetElemPositions.js';
|
|
57
|
+
import '../../hooks/useGetTooltipPosition.js';
|
|
58
|
+
import '../../hooks/useHideOnScroll.js';
|
|
59
|
+
import '../Link/Link.js';
|
|
60
|
+
import '../Popover/PopoverDesktop.js';
|
|
61
|
+
import '../SVGIcons/IconInfo.js';
|
|
62
|
+
import '@babel/runtime/helpers/typeof';
|
|
63
|
+
import '../SVGIcons/IconDismissFilled.js';
|
|
64
|
+
import '../SVGIcons/IconDelete.js';
|
|
65
|
+
import '../FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
66
|
+
import '../Progress/Progress.js';
|
|
67
|
+
import '../SVGIcons/IconArrowDownloadFilled.js';
|
|
68
|
+
import '../../helpers/download-file.js';
|
|
69
|
+
import '../Button/consts.js';
|
|
70
|
+
import '../Select/Select/SelectDesktop/index.js';
|
|
71
|
+
import 'react-window';
|
|
72
|
+
import '../../helperComponents/OptionItem/OptionItem.js';
|
|
73
|
+
import '../Avatar/Avatar.js';
|
|
74
|
+
import '../FileUpload/FileUpload.js';
|
|
75
|
+
import '../FileUpload/UploadItems.js';
|
|
76
|
+
import '../../hooks/useFormProps.js';
|
|
77
|
+
import '../../context/types.js';
|
|
78
|
+
import '../SVGIcons/IconEditFilled.js';
|
|
79
|
+
import '../SVGIcons/IconEdit.js';
|
|
80
|
+
import '../SVGIcons/IconAttach.js';
|
|
81
|
+
import '../SVGIcons/IconCheckmark.js';
|
|
82
|
+
import '../../hooks/useGetHasBottomSpace.js';
|
|
83
|
+
import '../../hooks/useChangePositionsOnScroll.js';
|
|
84
|
+
import '../Empty/Empty.js';
|
|
85
|
+
import '../Image/Image.js';
|
|
86
|
+
import '../Select/SharedComponents/Loading.js';
|
|
87
|
+
import '../Select/constants.js';
|
|
88
|
+
import '../Select/Select/helpers.js';
|
|
89
|
+
import '../Collapse/CollapseItem/CollapseItem.js';
|
|
90
|
+
import '../Divider/Divider.js';
|
|
91
|
+
import '../SVGIcons/IconChevronDown.js';
|
|
92
|
+
import '../Select/SharedComponents/Actions.js';
|
|
93
|
+
import '../Menu/Menu.js';
|
|
94
|
+
import '../SVGIcons/IconSearchFilled.js';
|
|
95
|
+
import '../SVGIcons/IconSelectAllOff.js';
|
|
96
|
+
import '../Select/Select/SelectMobile/index.js';
|
|
97
|
+
import '../Select/Select/SelectMobile/MobileTopContent.js';
|
|
98
|
+
import '../SVGIcons/IconChevronUp.js';
|
|
99
|
+
import '../Select/localization.js';
|
|
100
|
+
import '../Select/MultiSelect/OptionsWrapper.js';
|
|
101
|
+
import '../Select/MultiSelect/MultiSelectGrouped/MultiSelectGrouped.js';
|
|
102
|
+
import '../SVGIcons/IconCaretUpFilled.js';
|
|
103
|
+
import '../SVGIcons/IconCaretDownFilled.js';
|
|
104
|
+
import '../Select/MultiSelect/MultiBase/MultiBase.js';
|
|
105
|
+
import '../Select/MultiSelect/MultiSelectWithTabs/MultiSelectWithTabs.js';
|
|
106
|
+
import '../Tab/Tab.js';
|
|
107
|
+
import '../Tab/TabItem.js';
|
|
108
|
+
import '../Badge/Badge.js';
|
|
109
|
+
import '../Select/SharedComponents/Footer.js';
|
|
110
|
+
import '../Select/SharedComponents/InputSelectWrapper/InputSelectWrapper.js';
|
|
111
|
+
import '../Select/MultiSelect/MobileWrapper.js';
|
|
112
|
+
import '../Select/MultiSelect/DesktopWrapper.js';
|
|
113
|
+
import '../Select/SharedComponents/ButtonSelectWrapper/ButtonSelectWrapper.js';
|
|
114
|
+
import '../Select/SharedComponents/ButtonSelectWrapper/Button/Button.js';
|
|
115
|
+
|
|
116
|
+
function AdvancedPagination(_ref) {
|
|
117
|
+
var table = _ref.table,
|
|
118
|
+
totalCount = _ref.totalCount,
|
|
119
|
+
buttonText = _ref.buttonText;
|
|
120
|
+
var _useState = useState('1'),
|
|
121
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
122
|
+
navigatePage = _useState2[0],
|
|
123
|
+
setNavigatePage = _useState2[1];
|
|
124
|
+
var pageIndex = table.getState().pagination.pageIndex;
|
|
125
|
+
var pageSize = table.getState().pagination.pageSize;
|
|
126
|
+
var onNavigateToPage = function onNavigateToPage(page) {
|
|
127
|
+
if (!page || /^[1-9]\d*$/.test(page) && table.getPageCount() >= Number(page)) {
|
|
128
|
+
setNavigatePage(page);
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
var onGoToPage = function onGoToPage() {
|
|
132
|
+
var page = navigatePage ? Number(navigatePage) - 1 : 0;
|
|
133
|
+
table.setPageIndex(page);
|
|
134
|
+
};
|
|
135
|
+
var onRowCountChange = function onRowCountChange(value) {
|
|
136
|
+
if (value) {
|
|
137
|
+
table.setPagination({
|
|
138
|
+
pageIndex: 0,
|
|
139
|
+
pageSize: Number(value)
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
var getVisiblePageNumbers = function getVisiblePageNumbers() {
|
|
144
|
+
var currentPage = pageIndex;
|
|
145
|
+
var totalPages = table.getPageCount();
|
|
146
|
+
var visiblePages = [];
|
|
147
|
+
if (totalPages <= 7) {
|
|
148
|
+
return Array.from({
|
|
149
|
+
length: totalPages
|
|
150
|
+
}, function (_, i) {
|
|
151
|
+
return i + 1;
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
visiblePages.push(1);
|
|
155
|
+
if (currentPage <= 3) {
|
|
156
|
+
visiblePages.push(2, 3, 4, 5, '+++', totalPages);
|
|
157
|
+
} else if (currentPage > totalPages - 5) {
|
|
158
|
+
visiblePages.push('---', totalPages - 4, totalPages - 3, totalPages - 2, totalPages - 1, totalPages);
|
|
159
|
+
} else {
|
|
160
|
+
visiblePages.push('---', currentPage, currentPage + 1, currentPage + 2, '+++', totalPages);
|
|
161
|
+
}
|
|
162
|
+
return visiblePages;
|
|
163
|
+
};
|
|
164
|
+
useEffect(function () {
|
|
165
|
+
if (table.getPageCount() < Number(navigatePage)) {
|
|
166
|
+
setNavigatePage('1');
|
|
167
|
+
}
|
|
168
|
+
}, [table.getPageCount(), table.getState().pagination]);
|
|
169
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
170
|
+
className: "advanced-table__pagination"
|
|
171
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
172
|
+
setSelectedItem: function setSelectedItem(value) {
|
|
173
|
+
return onRowCountChange(value);
|
|
174
|
+
},
|
|
175
|
+
selectedItem: "".concat(pageSize),
|
|
176
|
+
className: 'no-border',
|
|
177
|
+
options: OPTIONS
|
|
178
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
179
|
+
className: 'advanced-table__pagination__right'
|
|
180
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
181
|
+
type: 'tertiary'
|
|
182
|
+
}, pageIndex * pageSize + 1, " - ", (pageIndex + 1) * pageSize, " / ", totalCount), /*#__PURE__*/React.createElement("div", {
|
|
183
|
+
className: "flexbox align-items--center"
|
|
184
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
185
|
+
currentValue: navigatePage,
|
|
186
|
+
size: "small",
|
|
187
|
+
onChange: function onChange(e) {
|
|
188
|
+
return onNavigateToPage(e.target.value);
|
|
189
|
+
},
|
|
190
|
+
className: "advanced-table__pagination__right__input mr-8"
|
|
191
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
192
|
+
onClick: onGoToPage,
|
|
193
|
+
type: "secondary",
|
|
194
|
+
size: "medium",
|
|
195
|
+
buttonText: buttonText !== null && buttonText !== void 0 ? buttonText : 'Go to page'
|
|
196
|
+
})), /*#__PURE__*/React.createElement("ul", {
|
|
197
|
+
className: "pagination"
|
|
198
|
+
}, /*#__PURE__*/React.createElement("li", {
|
|
199
|
+
className: "previous ".concat(!table.getCanPreviousPage() ? 'disabled' : '')
|
|
200
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
201
|
+
rel: 'prev',
|
|
202
|
+
role: 'button',
|
|
203
|
+
onClick: function onClick() {
|
|
204
|
+
return table.firstPage();
|
|
205
|
+
}
|
|
206
|
+
}, /*#__PURE__*/React.createElement(IconChevronDoubleLeft, {
|
|
207
|
+
size: 'small'
|
|
208
|
+
}))), /*#__PURE__*/React.createElement("li", {
|
|
209
|
+
className: "previous ".concat(!table.getCanPreviousPage() ? 'disabled' : '')
|
|
210
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
211
|
+
rel: 'prev',
|
|
212
|
+
role: 'button',
|
|
213
|
+
onClick: function onClick() {
|
|
214
|
+
return table.previousPage();
|
|
215
|
+
}
|
|
216
|
+
}, /*#__PURE__*/React.createElement(IconChevronLeft, {
|
|
217
|
+
size: 'small'
|
|
218
|
+
}))), getVisiblePageNumbers().map(function (pageNumber, index) {
|
|
219
|
+
return pageNumber === '---' ? /*#__PURE__*/React.createElement("li", {
|
|
220
|
+
key: "ellipsis-".concat(index),
|
|
221
|
+
className: 'pagination__more'
|
|
222
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
223
|
+
role: 'button',
|
|
224
|
+
onClick: function onClick() {
|
|
225
|
+
return table.setPageIndex(+pageIndex - 3);
|
|
226
|
+
}
|
|
227
|
+
}, /*#__PURE__*/React.createElement(IconMore, {
|
|
228
|
+
size: 'small'
|
|
229
|
+
}))) : pageNumber === '+++' ? /*#__PURE__*/React.createElement("li", {
|
|
230
|
+
key: "ellipsis-".concat(index),
|
|
231
|
+
className: 'pagination__more'
|
|
232
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
233
|
+
role: 'button',
|
|
234
|
+
onClick: function onClick() {
|
|
235
|
+
return table.setPageIndex(+pageIndex + 3);
|
|
236
|
+
}
|
|
237
|
+
}, /*#__PURE__*/React.createElement(IconMore, {
|
|
238
|
+
size: 'small'
|
|
239
|
+
}))) : /*#__PURE__*/React.createElement("li", {
|
|
240
|
+
className: classNames(_defineProperty({}, 'active', pageNumber === pageIndex + 1)),
|
|
241
|
+
key: pageNumber
|
|
242
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
243
|
+
role: 'button',
|
|
244
|
+
onClick: function onClick() {
|
|
245
|
+
return table.setPageIndex(+pageNumber - 1);
|
|
246
|
+
}
|
|
247
|
+
}, pageNumber));
|
|
248
|
+
}), /*#__PURE__*/React.createElement("li", {
|
|
249
|
+
className: "next ".concat(!table.getCanNextPage() ? 'disabled' : '')
|
|
250
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
251
|
+
rel: 'next',
|
|
252
|
+
role: 'button',
|
|
253
|
+
onClick: function onClick() {
|
|
254
|
+
return table.nextPage();
|
|
255
|
+
}
|
|
256
|
+
}, /*#__PURE__*/React.createElement(IconChevronRight, {
|
|
257
|
+
size: 'small'
|
|
258
|
+
}))), /*#__PURE__*/React.createElement("li", {
|
|
259
|
+
className: "next ".concat(!table.getCanNextPage() ? 'disabled' : '')
|
|
260
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
261
|
+
rel: 'next',
|
|
262
|
+
role: 'button',
|
|
263
|
+
onClick: function onClick() {
|
|
264
|
+
return table.lastPage();
|
|
265
|
+
}
|
|
266
|
+
}, /*#__PURE__*/React.createElement(IconChevronDoubleRight, {
|
|
267
|
+
size: 'small'
|
|
268
|
+
}))))));
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export { AdvancedPagination };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import type { Header } from '@tanstack/react-table';
|
|
3
|
+
interface DraggableColumnHeaderProps<TData> {
|
|
4
|
+
header: Header<TData, unknown>;
|
|
5
|
+
isPinned?: boolean;
|
|
6
|
+
pinnedStyles: CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
export declare function ColumnHeader<TData>({ header, pinnedStyles }: DraggableColumnHeaderProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import _extends from '@babel/runtime/helpers/extends';
|
|
2
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { flexRender } from '@tanstack/react-table';
|
|
5
|
+
import { useSortable } from '@dnd-kit/sortable';
|
|
6
|
+
import { IconArrowDown } from '../SVGIcons/IconArrowDown.js';
|
|
7
|
+
import { IconArrowSort } from '../SVGIcons/IconArrowSort.js';
|
|
8
|
+
import { IconArrowUp } from '../SVGIcons/IconArrowUp.js';
|
|
9
|
+
import { Text } from '../Text/Text.js';
|
|
10
|
+
import classNames from 'classnames';
|
|
11
|
+
import '../../utils/helpers.js';
|
|
12
|
+
import 'dayjs';
|
|
13
|
+
|
|
14
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
+
function ColumnHeader(_ref) {
|
|
17
|
+
var header = _ref.header,
|
|
18
|
+
pinnedStyles = _ref.pinnedStyles;
|
|
19
|
+
var _useSortable = useSortable({
|
|
20
|
+
id: header.id
|
|
21
|
+
}),
|
|
22
|
+
attributes = _useSortable.attributes,
|
|
23
|
+
listeners = _useSortable.listeners,
|
|
24
|
+
setNodeRef = _useSortable.setNodeRef,
|
|
25
|
+
transform = _useSortable.transform,
|
|
26
|
+
transition = _useSortable.transition,
|
|
27
|
+
isDragging = _useSortable.isDragging;
|
|
28
|
+
var style = transform ? {
|
|
29
|
+
transform: "translate3d(".concat(transform.x, "px, ").concat(transform.y, "px, 0)"),
|
|
30
|
+
transition: transition,
|
|
31
|
+
minWidth: header.getSize(),
|
|
32
|
+
position: 'relative',
|
|
33
|
+
zIndex: isDragging ? 1 : 0
|
|
34
|
+
} : {
|
|
35
|
+
minWidth: header.getSize(),
|
|
36
|
+
position: 'relative',
|
|
37
|
+
zIndex: isDragging ? 1 : 0
|
|
38
|
+
};
|
|
39
|
+
return /*#__PURE__*/React.createElement("th", _extends({
|
|
40
|
+
ref: setNodeRef,
|
|
41
|
+
style: _objectSpread(_objectSpread({}, style), pinnedStyles),
|
|
42
|
+
className: classNames('select-none', _defineProperty(_defineProperty(_defineProperty({}, 'with-checkbox', header.column.id === 'select'), 'actions-header', header.column.id === 'actions'), 'cursor-pointer', header.column.getCanSort()))
|
|
43
|
+
}, attributes), /*#__PURE__*/React.createElement("div", {
|
|
44
|
+
onClick: header.column.getToggleSortingHandler(),
|
|
45
|
+
className: "flexbox align-items--center"
|
|
46
|
+
}, /*#__PURE__*/React.createElement("div", listeners, /*#__PURE__*/React.createElement(Text, {
|
|
47
|
+
className: "text-left",
|
|
48
|
+
weight: 'bold'
|
|
49
|
+
}, flexRender(header.column.columnDef.header, header.getContext()))), /*#__PURE__*/React.createElement("span", {
|
|
50
|
+
className: "ml-4"
|
|
51
|
+
}, header.column.getCanSort() && (header.column.getIsSorted() === 'asc' ? /*#__PURE__*/React.createElement(IconArrowUp, {
|
|
52
|
+
size: "xsmall"
|
|
53
|
+
}) : header.column.getIsSorted() === 'desc' ? /*#__PURE__*/React.createElement(IconArrowDown, {
|
|
54
|
+
size: "xsmall"
|
|
55
|
+
}) : /*#__PURE__*/React.createElement(IconArrowSort, {
|
|
56
|
+
size: "xsmall"
|
|
57
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
58
|
+
onMouseDown: header.getResizeHandler(),
|
|
59
|
+
onTouchStart: header.getResizeHandler(),
|
|
60
|
+
className: "resize-icon select-none touch-none"
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export { ColumnHeader };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Table } from '@tanstack/react-table';
|
|
2
|
+
interface ColumnSettingsProps<T> {
|
|
3
|
+
table: Table<T>;
|
|
4
|
+
tooltipText?: string;
|
|
5
|
+
hiddenColumns?: string[];
|
|
6
|
+
allToggleText?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function ColumnSettings<T>({ table, tooltipText, hiddenColumns, allToggleText }: ColumnSettingsProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { B as Button } from '../../Alert-BslI0aA0.js';
|
|
4
|
+
import '@babel/runtime/helpers/defineProperty';
|
|
5
|
+
import 'classnames';
|
|
6
|
+
import { IconSettings } from '../SVGIcons/IconSettings.js';
|
|
7
|
+
import { Switcher } from '../Switcher/Switcher.js';
|
|
8
|
+
import { Menu } from '../Menu/Menu.js';
|
|
9
|
+
import 'react-dom';
|
|
10
|
+
import { Positions } from '../Tooltip/types.js';
|
|
11
|
+
import '../../consts/index.js';
|
|
12
|
+
import 'dayjs';
|
|
13
|
+
import '../../hooks/useScreenSize.js';
|
|
14
|
+
import 'react-hook-form';
|
|
15
|
+
import '@babel/runtime/helpers/extends';
|
|
16
|
+
import 'framer-motion';
|
|
17
|
+
import '../Collapse/CollapseGroup/CollapseGroup.js';
|
|
18
|
+
import '@babel/runtime/helpers/toConsumableArray';
|
|
19
|
+
import { Tooltip } from '../Tooltip/Tooltip.js';
|
|
20
|
+
import 'react-syntax-highlighter';
|
|
21
|
+
import '../Alert/consts.js';
|
|
22
|
+
import '../Text/Text.js';
|
|
23
|
+
import '../../utils/helpers.js';
|
|
24
|
+
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
25
|
+
import '../../helperComponents/Loader/Loader.js';
|
|
26
|
+
import 'react-dropzone';
|
|
27
|
+
import '../SVGIcons/IconUpload.js';
|
|
28
|
+
import '../../type/file-upload.js';
|
|
29
|
+
import '../FileUpload/types.js';
|
|
30
|
+
import '../../helpers/format-date.js';
|
|
31
|
+
import '../../helpers/locale.js';
|
|
32
|
+
import '../../type/locale.js';
|
|
33
|
+
import '../../helpers/storage.js';
|
|
34
|
+
import 'react-toastify';
|
|
35
|
+
import '../../hooks/useGetIsMobile.js';
|
|
36
|
+
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
37
|
+
import '../../hooks/useOnOutsideClick.js';
|
|
38
|
+
import '../../hooks/useHideBodyScroll.js';
|
|
39
|
+
import '../SVGIcons/IconDismiss.js';
|
|
40
|
+
import '../Link/Link.js';
|
|
41
|
+
import '../Popover/PopoverDesktop.js';
|
|
42
|
+
import '../../hooks/useGetTooltipStyles.js';
|
|
43
|
+
import '../../hooks/useGetElemSizes.js';
|
|
44
|
+
import '../../hooks/useGetElemPositions.js';
|
|
45
|
+
import '../../hooks/useGetTooltipPosition.js';
|
|
46
|
+
import '../../hooks/useHideOnScroll.js';
|
|
47
|
+
import '../SVGIcons/IconInfo.js';
|
|
48
|
+
import '../../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
49
|
+
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
50
|
+
import '@babel/runtime/helpers/typeof';
|
|
51
|
+
import '../SVGIcons/IconDismissFilled.js';
|
|
52
|
+
import '../SVGIcons/IconDelete.js';
|
|
53
|
+
import '../FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
54
|
+
import '../Progress/Progress.js';
|
|
55
|
+
import '../SVGIcons/IconArrowDownloadFilled.js';
|
|
56
|
+
import '../../helpers/download-file.js';
|
|
57
|
+
import '../Button/consts.js';
|
|
58
|
+
import '../../helperComponents/Label/Label.js';
|
|
59
|
+
import '../SVGIcons/IconCheckmark.js';
|
|
60
|
+
import '../../helperComponents/OptionItem/OptionItem.js';
|
|
61
|
+
import '../Avatar/Avatar.js';
|
|
62
|
+
import '../FileUpload/FileUpload.js';
|
|
63
|
+
import '../FileUpload/UploadItems.js';
|
|
64
|
+
import '../../hooks/useFormProps.js';
|
|
65
|
+
import '../../context/types.js';
|
|
66
|
+
import '../../helperComponents/ErrorMessage/ErrorMessage.js';
|
|
67
|
+
import '../SVGIcons/IconEditFilled.js';
|
|
68
|
+
import '../SVGIcons/IconEdit.js';
|
|
69
|
+
import '../SVGIcons/IconAttach.js';
|
|
70
|
+
import '../Collapse/CollapseItem/CollapseItem.js';
|
|
71
|
+
import '../SVGIcons/IconChevronRight.js';
|
|
72
|
+
import '../Divider/Divider.js';
|
|
73
|
+
import '../SVGIcons/IconChevronDown.js';
|
|
74
|
+
|
|
75
|
+
var defaultHiddenColumnSettings = ['select', 'actions', 'expand'];
|
|
76
|
+
function ColumnSettings(_ref) {
|
|
77
|
+
var table = _ref.table,
|
|
78
|
+
tooltipText = _ref.tooltipText,
|
|
79
|
+
_ref$hiddenColumns = _ref.hiddenColumns,
|
|
80
|
+
hiddenColumns = _ref$hiddenColumns === void 0 ? [] : _ref$hiddenColumns,
|
|
81
|
+
_ref$allToggleText = _ref.allToggleText,
|
|
82
|
+
allToggleText = _ref$allToggleText === void 0 ? 'All' : _ref$allToggleText;
|
|
83
|
+
var _useState = useState(null),
|
|
84
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
85
|
+
ref = _useState2[0],
|
|
86
|
+
setRef = _useState2[1];
|
|
87
|
+
var _useState3 = useState(false),
|
|
88
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
89
|
+
isOpen = _useState4[0],
|
|
90
|
+
setIsOpen = _useState4[1];
|
|
91
|
+
var closeUserMenu = function closeUserMenu() {
|
|
92
|
+
setIsOpen(false);
|
|
93
|
+
};
|
|
94
|
+
var handleClick = function handleClick(column) {
|
|
95
|
+
var toggle = column.getToggleVisibilityHandler();
|
|
96
|
+
if (toggle) {
|
|
97
|
+
toggle({
|
|
98
|
+
target: {
|
|
99
|
+
checked: !column.getIsVisible()
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
var hiddenColumnSettings = defaultHiddenColumnSettings.concat(hiddenColumns);
|
|
105
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
106
|
+
ref: setRef
|
|
107
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
108
|
+
type: "secondary",
|
|
109
|
+
iconProps: {
|
|
110
|
+
Component: IconSettings
|
|
111
|
+
},
|
|
112
|
+
onClick: function onClick() {
|
|
113
|
+
return setIsOpen(function (prev) {
|
|
114
|
+
return !prev;
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}), /*#__PURE__*/React.createElement(Menu, {
|
|
118
|
+
className: "settings-menu",
|
|
119
|
+
position: "top-left",
|
|
120
|
+
onClose: closeUserMenu,
|
|
121
|
+
isOpen: isOpen,
|
|
122
|
+
parentRef: ref
|
|
123
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
124
|
+
className: "settings-menu__dropdown"
|
|
125
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
126
|
+
className: "relative"
|
|
127
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
128
|
+
className: "settings-menu__dropdown__option sticky"
|
|
129
|
+
}, /*#__PURE__*/React.createElement(Switcher, {
|
|
130
|
+
label: allToggleText,
|
|
131
|
+
selectedValue: table.getIsAllColumnsVisible(),
|
|
132
|
+
onClick: function onClick() {
|
|
133
|
+
return table.toggleAllColumnsVisible();
|
|
134
|
+
},
|
|
135
|
+
inlineType: true,
|
|
136
|
+
size: 'small'
|
|
137
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
138
|
+
className: "scrollbar--content scrollbar scrollbar--vertical"
|
|
139
|
+
}, table.getAllLeafColumns().map(function (column) {
|
|
140
|
+
if (!(hiddenColumnSettings !== null && hiddenColumnSettings !== void 0 && hiddenColumnSettings.includes(column.id))) {
|
|
141
|
+
var label = typeof column.columnDef.header === 'string' ? column.columnDef.header : column.columnDef.id;
|
|
142
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
143
|
+
key: column.id,
|
|
144
|
+
className: 'settings-menu__dropdown__option'
|
|
145
|
+
}, tooltipText && !column.getCanHide() && /*#__PURE__*/React.createElement(Tooltip, {
|
|
146
|
+
position: Positions.TOP_CENTER,
|
|
147
|
+
text: tooltipText,
|
|
148
|
+
id: column.columnDef.id
|
|
149
|
+
}), /*#__PURE__*/React.createElement(Switcher, {
|
|
150
|
+
label: label,
|
|
151
|
+
id: column.columnDef.id,
|
|
152
|
+
selectedValue: column.getIsVisible(),
|
|
153
|
+
onClick: function onClick() {
|
|
154
|
+
return handleClick(column);
|
|
155
|
+
},
|
|
156
|
+
disabled: !column.getCanHide(),
|
|
157
|
+
inlineType: true,
|
|
158
|
+
size: 'small'
|
|
159
|
+
}));
|
|
160
|
+
}
|
|
161
|
+
})))));
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export { ColumnSettings };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type IndeterminateCheckboxProps = {
|
|
3
|
+
indeterminate: boolean;
|
|
4
|
+
checked: boolean;
|
|
5
|
+
onChange: (e: {
|
|
6
|
+
target: {
|
|
7
|
+
checked: boolean;
|
|
8
|
+
};
|
|
9
|
+
}) => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const IndeterminateCheckbox: React.ForwardRefExoticComponent<IndeterminateCheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import React, { forwardRef, useRef, useEffect } from 'react';
|
|
2
|
+
import { C as Checkbox } from '../../Alert-BslI0aA0.js';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import '@babel/runtime/helpers/extends';
|
|
5
|
+
import '../Alert/consts.js';
|
|
6
|
+
import '../Text/Text.js';
|
|
7
|
+
import '../../utils/helpers.js';
|
|
8
|
+
import 'dayjs';
|
|
9
|
+
import '@babel/runtime/helpers/defineProperty';
|
|
10
|
+
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
11
|
+
import '../../helperComponents/Loader/Loader.js';
|
|
12
|
+
import '@babel/runtime/helpers/slicedToArray';
|
|
13
|
+
import '@babel/runtime/helpers/toConsumableArray';
|
|
14
|
+
import '../../consts/index.js';
|
|
15
|
+
import '../../type/file-upload.js';
|
|
16
|
+
import '../../hooks/useScreenSize.js';
|
|
17
|
+
import 'react-hook-form';
|
|
18
|
+
import 'react-dropzone';
|
|
19
|
+
import '../SVGIcons/IconUpload.js';
|
|
20
|
+
import '../FileUpload/types.js';
|
|
21
|
+
import '../../helpers/format-date.js';
|
|
22
|
+
import '../../helpers/locale.js';
|
|
23
|
+
import '../../type/locale.js';
|
|
24
|
+
import '../../helpers/storage.js';
|
|
25
|
+
import 'react-toastify';
|
|
26
|
+
import '../../hooks/useGetIsMobile.js';
|
|
27
|
+
import 'framer-motion';
|
|
28
|
+
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
29
|
+
import '../../hooks/useOnOutsideClick.js';
|
|
30
|
+
import '../../hooks/useHideBodyScroll.js';
|
|
31
|
+
import '../SVGIcons/IconDismiss.js';
|
|
32
|
+
import '../Tooltip/types.js';
|
|
33
|
+
import '../Tooltip/Tooltip.js';
|
|
34
|
+
import '../../hooks/useGetTooltipStyles.js';
|
|
35
|
+
import '../../hooks/useGetElemSizes.js';
|
|
36
|
+
import '../../hooks/useGetElemPositions.js';
|
|
37
|
+
import '../../hooks/useGetTooltipPosition.js';
|
|
38
|
+
import '../../hooks/useHideOnScroll.js';
|
|
39
|
+
import 'react-syntax-highlighter';
|
|
40
|
+
import '../Link/Link.js';
|
|
41
|
+
import '../Popover/PopoverDesktop.js';
|
|
42
|
+
import '../SVGIcons/IconInfo.js';
|
|
43
|
+
import '../../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
44
|
+
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
45
|
+
import '@babel/runtime/helpers/typeof';
|
|
46
|
+
import '../SVGIcons/IconDismissFilled.js';
|
|
47
|
+
import '../SVGIcons/IconDelete.js';
|
|
48
|
+
import '../FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
49
|
+
import '../Progress/Progress.js';
|
|
50
|
+
import '../SVGIcons/IconArrowDownloadFilled.js';
|
|
51
|
+
import '../../helpers/download-file.js';
|
|
52
|
+
import '../Button/consts.js';
|
|
53
|
+
|
|
54
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
55
|
+
|
|
56
|
+
var IndeterminateCheckbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
57
|
+
var indeterminate = _ref.indeterminate,
|
|
58
|
+
checked = _ref.checked,
|
|
59
|
+
onChange = _ref.onChange,
|
|
60
|
+
disabled = _ref.disabled;
|
|
61
|
+
var defaultRef = useRef(null);
|
|
62
|
+
var resolvedRef = ref !== null && ref !== void 0 ? ref : defaultRef;
|
|
63
|
+
useEffect(function () {
|
|
64
|
+
resolvedRef.current.indeterminate = indeterminate;
|
|
65
|
+
}, [resolvedRef, indeterminate]);
|
|
66
|
+
var handleChange = function handleChange(v) {
|
|
67
|
+
onChange({
|
|
68
|
+
target: {
|
|
69
|
+
checked: v
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
className: 'actions-list'
|
|
75
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
76
|
+
className: classNames('actions-list__checkbox', {
|
|
77
|
+
'active-checkbox': checked
|
|
78
|
+
}),
|
|
79
|
+
value: checked,
|
|
80
|
+
disabled: disabled,
|
|
81
|
+
onClick: handleChange,
|
|
82
|
+
ref: resolvedRef
|
|
83
|
+
}));
|
|
84
|
+
});
|
|
85
|
+
IndeterminateCheckbox.displayName = 'IndeterminateCheckbox';
|
|
86
|
+
|
|
87
|
+
export { IndeterminateCheckbox };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TTableProps } from './types';
|
|
2
|
+
import 'react-loading-skeleton/dist/skeleton.css';
|
|
3
|
+
export declare function Table<TData>({ data, columns, isLoading, hasError, isActionsVisible, totalCount, emptyTitle, emptySubTitle, emptyIllustration, withSelect, withBorder, defaultPageIndex, defaultPageSize, defaultHiddenColumns, collapsibleRows, renderExpandedContent, renderHeader, renderFooter, onSortChange, onRowClick, tableSettings, onRowSelection, onColumnSizing, onPaginationChange }: TTableProps<TData>): import("react/jsx-runtime").JSX.Element;
|