@inceptionbg/iui 2.0.7 → 2.0.10
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-DBq5IzIf.js +2 -0
- package/dist/{NoAccessPage-BozT_Suz.js.map → NoAccessPage-DBq5IzIf.js.map} +1 -1
- package/dist/NotFoundPage-DM-I96ar.js +2 -0
- package/dist/{NotFoundPage-WWiekDef.js.map → NotFoundPage-DM-I96ar.js.map} +1 -1
- package/dist/icons/index.d.ts +2 -2
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +286 -259
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/iui.css +1 -1
- package/idea/GridTable/GridTable.tsx +119 -0
- package/idea/GridTable/gridTable.scss +42 -0
- package/{src/components → idea}/Table/Components/Print/CustomTablePrint.tsx +2 -2
- package/{src/components → idea}/Table/Components/Print/TablePrint.tsx +2 -2
- package/{src/components → idea}/Table/Components/SetTableFilter.tsx +1 -1
- package/{src/components → idea}/Table/Components/TableOptions.tsx +4 -4
- package/idea/{Table2 → Table}/Table.tsx +151 -281
- package/idea/Table/hooks/useDefaultTemplate.ts +20 -0
- package/{src/components → idea}/Table/hooks/useTableKeyboard.ts +1 -2
- package/idea/Table/hooks/useTableSelect.ts +11 -0
- package/package.json +3 -2
- package/src/assets/icons/index.ts +1 -1
- package/src/assets/icons/light/faClipboardCheck.ts +15 -0
- package/src/assets/icons/light/faHouse.ts +15 -15
- package/src/assets/icons/light/faIdBadge.ts +15 -15
- package/src/assets/icons/light/faPen.ts +15 -0
- package/src/components/Button/IconButton.tsx +3 -1
- package/src/components/Dialog/Dialog.tsx +60 -124
- package/src/components/Dialog/components/DialogFooter.tsx +92 -0
- package/src/components/Dialog/hooks/useDialogKeyboard.ts +6 -5
- package/src/components/Header/Components/ModuleSelect.tsx +1 -1
- package/src/components/Header/Header.tsx +1 -1
- package/src/components/Inputs/DateInput/DateInput.tsx +108 -101
- package/src/components/Inputs/DateInput/components/DatePartInput.tsx +7 -3
- package/src/components/Inputs/InputWrapper.tsx +6 -1
- package/src/components/Inputs/SearchInput.tsx +9 -4
- package/src/components/Inputs/Select2/Select.tsx +65 -30
- package/src/components/Inputs/Select2/select.scss +13 -14
- package/src/components/Inputs/Selects/components/SelectWrapper.tsx +4 -2
- package/src/components/Inputs/Selects/utils/selectStyles.ts +9 -12
- package/src/components/Menu/Menu.tsx +10 -2
- package/src/components/Menu/MenuItem.tsx +11 -10
- package/src/components/Menu/hooks/useMenuPosition.tsx +23 -6
- package/src/components/Pullover/Pullover.tsx +122 -59
- package/src/components/Table/Table.tsx +78 -342
- package/src/components/Table/components/edit/TableEditRow.tsx +69 -0
- package/src/components/Table/components/filters/FilterItem.tsx +15 -0
- package/src/components/Table/components/filters/TableFilters.tsx +125 -0
- package/src/components/Table/components/footer/TableFooter.tsx +128 -0
- package/src/components/Table/components/header/TableHeader.tsx +42 -0
- package/src/components/Table/components/header/TableHeaderRow.tsx +47 -0
- package/src/components/Table/components/items/TableItemActions.tsx +66 -0
- package/src/components/Table/components/select/TableSelect.tsx +49 -0
- package/src/components/Table/components/sort/TableSort.tsx +52 -0
- package/src/components/Table/contexts/TableContext.tsx +123 -0
- package/src/components/Table/hooks/localHooks/useLocalTableColumns.tsx +73 -0
- package/src/components/Table/hooks/localHooks/useLocalTableData.tsx +78 -0
- package/src/components/Table/hooks/localHooks/useLocalTableKeyboard.ts +173 -0
- package/src/components/Table/hooks/localHooks/useLocalTablePagination.ts +12 -0
- package/src/components/Table/hooks/useTableEdit.tsx +111 -0
- package/src/components/Table/hooks/useTableFilterFields.tsx +150 -0
- package/src/components/Table/hooks/useTablePagination.ts +16 -0
- package/src/components/Table/hooks/useTableSearch.ts +29 -0
- package/src/components/Table/hooks/useTableSort.ts +8 -0
- package/src/components/Tooltip/Tooltip.tsx +1 -1
- package/src/components/Wrappers/PageLayout.tsx +13 -18
- package/src/hooks/useGetFocusableElements.ts +42 -0
- package/src/hooks/useLocalPopoverControl.ts +38 -0
- package/src/hooks/usePopupControl.ts +13 -0
- package/src/index.ts +53 -39
- package/src/styles/common/_typography.scss +3 -0
- package/src/styles/common/helpers/_size.scss +1 -1
- package/src/styles/components/_accordions.scss +1 -1
- package/src/styles/components/_badge.scss +4 -3
- package/src/styles/components/_card.scss +1 -1
- package/src/styles/components/_dialog.scss +15 -13
- package/src/styles/components/_input.scss +1 -1
- package/src/styles/components/_inputCheckbox.scss +1 -1
- package/src/styles/components/_inputDateTime.scss +2 -2
- package/src/styles/components/_inputRadio.scss +1 -1
- package/src/styles/components/_inputSelect.scss +6 -4
- package/src/styles/components/_menu-v2.scss +1 -1
- package/src/styles/components/_menu.scss +23 -15
- package/src/styles/components/_page.scss +3 -2
- package/src/styles/components/_pullover.scss +74 -18
- package/src/styles/components/_table.scss +151 -142
- package/src/styles/components/_widget.scss +1 -1
- package/src/styles/variables/_bp.scss +1 -0
- package/src/styles/variables/_variables.scss +4 -2
- package/src/types/IKeyboard.ts +2 -1
- package/src/types/IMenu.ts +1 -0
- package/src/types/ISelect.ts +1 -0
- package/src/types/ITable.ts +87 -80
- package/src/utils/fileUtils.ts +7 -6
- package/src/utils/i18n/i18nIUICyrilic.ts +4 -0
- package/src/utils/i18n/i18nIUILatin.ts +3 -1
- package/src/utils/i18n/i18nIUIMe.ts +4 -0
- package/src/utils/{ObjectUtils.ts → objectUtils.ts} +8 -8
- package/src/utils/popupUtils.ts +82 -0
- package/src/utils/{TableUtils.ts → tableUtils.ts} +5 -5
- package/src/utils/{Toasts.ts → toasts.ts} +6 -6
- package/src/utils/{UrlUtils.ts → urlUtils.ts} +4 -4
- package/dist/NoAccessPage-BozT_Suz.js +0 -2
- package/dist/NotFoundPage-WWiekDef.js +0 -2
- package/idea/Table2/Components/Columns/ColumnsList.tsx +0 -56
- package/idea/Table2/Components/Columns/SetColumnsList.tsx +0 -107
- package/idea/Table2/Components/Edit/ItemActionsMenu.tsx +0 -87
- package/idea/Table2/Components/Edit/ItemEditOptionsButtons.tsx +0 -32
- package/idea/Table2/Components/Edit/TableEditRow.tsx +0 -56
- package/idea/Table2/Components/FilterItem.tsx +0 -20
- package/idea/Table2/Components/Header/TableHeader.tsx +0 -35
- package/idea/Table2/Components/Header/TableHeaderRow.tsx +0 -37
- package/idea/Table2/Components/Print/CustomTablePrint.tsx +0 -119
- package/idea/Table2/Components/Print/TablePrint.tsx +0 -208
- package/idea/Table2/Components/SetSortList.tsx +0 -33
- package/idea/Table2/Components/SetTableFilter.tsx +0 -90
- package/idea/Table2/Components/TableFooter.tsx +0 -107
- package/idea/Table2/Components/TableOptions.tsx +0 -211
- package/idea/Table2/Components/Templates/TemplateCreate.tsx +0 -75
- package/idea/Table2/Components/Templates/TemplateCreateDefault.tsx +0 -45
- package/idea/Table2/Components/Templates/TemplateList.tsx +0 -167
- package/idea/Table2/Components/Templates/repo/TemplateRepo.ts +0 -51
- package/idea/Table2/_table.scss +0 -300
- package/idea/Table2/hooks/useDefaultTemplate.ts +0 -22
- package/idea/Table2/hooks/useTableKeyboard.ts +0 -115
- package/src/assets/icons/light/faPenField.ts +0 -15
- package/src/assets/icons/solid/faMagnifyingGlass.ts +0 -15
- package/src/components/Dialog/DeleteItemDialog.tsx +0 -52
- package/src/components/Dialog/hooks/useDialogObserver.ts +0 -21
- /package/{src/components → idea}/Table/Components/Columns/ColumnsList.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Columns/SetColumnsList.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Edit/ItemActionsMenu.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Edit/ItemEditOptionsButtons.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Edit/TableEditRow.tsx +0 -0
- /package/{src/components → idea}/Table/Components/FilterItem.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Header/TableHeader.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Header/TableHeaderRow.tsx +0 -0
- /package/{src/components → idea}/Table/Components/SetSortList.tsx +0 -0
- /package/{src/components → idea}/Table/Components/TableFooter.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Templates/TemplateCreate.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Templates/TemplateCreateDefault.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Templates/TemplateList.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Templates/repo/TemplateRepo.ts +0 -0
- /package/src/utils/{DateUtils.ts → dateUtils.ts} +0 -0
- /package/src/utils/{LocalStorageHelper.ts → localStorageHelper.ts} +0 -0
- /package/src/utils/{NumberUtils.ts → numberUtils.ts} +0 -0
- /package/src/utils/{RootDir.ts → rootDir.ts} +0 -0
- /package/src/utils/{StringUtils.ts → stringUtils.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,8 @@ export { DragDropContext, Draggable, Droppable } from 'react-beautiful-dnd';
|
|
|
8
8
|
import * as react_toastify from 'react-toastify';
|
|
9
9
|
export { ToastContainer } from 'react-toastify';
|
|
10
10
|
import * as react from 'react';
|
|
11
|
-
import { FC, MouseEventHandler, ButtonHTMLAttributes, Ref, FormEvent, ReactNode, ReactElement, MouseEvent, Dispatch, SetStateAction,
|
|
11
|
+
import { FC, MouseEventHandler, ButtonHTMLAttributes, Ref, FormEvent, ReactNode, ReactElement, MouseEvent, Dispatch, SetStateAction, ComponentProps, InputHTMLAttributes, FocusEventHandler, RefObject } from 'react';
|
|
12
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
12
13
|
|
|
13
14
|
type IButtonColor = 'primary' | 'neutral' | 'danger';
|
|
14
15
|
type IButtonVariant = 'solid' | 'outlined' | 'simple';
|
|
@@ -80,61 +81,53 @@ interface IValueLabel {
|
|
|
80
81
|
|
|
81
82
|
interface ITable {
|
|
82
83
|
columns: ITableColumn[];
|
|
83
|
-
setColumns?: (data: ITableColumn[]) => void;
|
|
84
|
-
withColumnsSearch?: boolean;
|
|
85
84
|
customHeader?: ITableColumn[][];
|
|
86
85
|
data: ITableDataItem[];
|
|
86
|
+
dataActions?: {
|
|
87
|
+
edit?: {
|
|
88
|
+
hasAccess: boolean;
|
|
89
|
+
};
|
|
90
|
+
delete?: {
|
|
91
|
+
onClick: (itemUuid: string) => void;
|
|
92
|
+
hasAccess: boolean;
|
|
93
|
+
};
|
|
94
|
+
actions?: {
|
|
95
|
+
label: string;
|
|
96
|
+
onClick: (item: ITableDataItem) => void;
|
|
97
|
+
hasAccess: boolean;
|
|
98
|
+
}[];
|
|
99
|
+
};
|
|
87
100
|
sumRows?: ITableDataItem[];
|
|
88
101
|
isLoading?: boolean;
|
|
89
|
-
serverSidePagination?: IServerSidePagination;
|
|
90
|
-
customPagination?: {
|
|
91
|
-
defaultLimit?: number;
|
|
92
|
-
customLimit?: number[];
|
|
93
|
-
};
|
|
94
|
-
selectedRowUuid?: string;
|
|
95
|
-
footerAction?: {
|
|
96
|
-
icon?: IconDefinition;
|
|
97
|
-
onClick: () => void;
|
|
98
|
-
};
|
|
99
102
|
headerWrap?: boolean;
|
|
100
|
-
|
|
101
|
-
noTotalRows?: boolean;
|
|
102
|
-
showLastBorder?: boolean;
|
|
103
|
-
filterData?: ITableFilterData;
|
|
104
|
-
sortData?: ITableSortData;
|
|
105
|
-
printData?: IPrintData;
|
|
106
|
-
customPrintData?: ICustomPrintData;
|
|
107
|
-
additionsalOptions?: ReactNode;
|
|
103
|
+
selectedRowUuid?: string;
|
|
108
104
|
rowSelect?: {
|
|
109
105
|
selectedRows: Set<string>;
|
|
110
106
|
setSelectedRows: Dispatch<SetStateAction<Set<string>>>;
|
|
111
107
|
actions: ITableSelectedActions[];
|
|
112
108
|
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
editable?: {
|
|
117
|
-
selectedItem?: any;
|
|
118
|
-
setSelectedItem?: (item: any) => void;
|
|
119
|
-
defaultDataValue?: any;
|
|
120
|
-
EditableRow?: FunctionComponent<ITableEditRow>;
|
|
121
|
-
onSubmit: (data: any, onSubmitCallback: () => void) => void;
|
|
122
|
-
addDisabled?: boolean;
|
|
123
|
-
addLabel?: string;
|
|
124
|
-
inputFocusRef?: RefObject<any>;
|
|
125
|
-
keepEditOnSubmit?: boolean;
|
|
126
|
-
};
|
|
109
|
+
filterData?: ITableFilterData;
|
|
110
|
+
sortData?: ITableSortData;
|
|
111
|
+
editable?: ITableEdit;
|
|
127
112
|
keyboard?: {
|
|
128
113
|
enabled: boolean;
|
|
129
114
|
actions: ITableKeyboardActionsBase;
|
|
130
115
|
};
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
116
|
+
footer?: {
|
|
117
|
+
paginationControl?: IPaginationControl;
|
|
118
|
+
customPagination?: {
|
|
119
|
+
defaultLimit?: number;
|
|
120
|
+
customLimit?: number[];
|
|
121
|
+
};
|
|
122
|
+
totalRows?: number;
|
|
123
|
+
footerAction?: {
|
|
124
|
+
icon?: IconDefinition;
|
|
125
|
+
onClick: () => void;
|
|
126
|
+
};
|
|
137
127
|
};
|
|
128
|
+
className?: string;
|
|
129
|
+
rowHeight?: 'xs' | 's' | 'm';
|
|
130
|
+
maxHeight?: string;
|
|
138
131
|
}
|
|
139
132
|
interface ITableColumn {
|
|
140
133
|
id: string;
|
|
@@ -154,7 +147,7 @@ interface ITableColumn {
|
|
|
154
147
|
desc: string;
|
|
155
148
|
label: string;
|
|
156
149
|
};
|
|
157
|
-
|
|
150
|
+
className?: string;
|
|
158
151
|
}
|
|
159
152
|
interface ITableDataItem {
|
|
160
153
|
uuid: string;
|
|
@@ -162,40 +155,40 @@ interface ITableDataItem {
|
|
|
162
155
|
className?: string;
|
|
163
156
|
item?: Record<string, any>;
|
|
164
157
|
disableSelect?: boolean;
|
|
165
|
-
cells:
|
|
166
|
-
[id: string]: {
|
|
167
|
-
value: any;
|
|
168
|
-
align?: ITableColumn['align'];
|
|
169
|
-
className?: string;
|
|
170
|
-
onClick?: (event?: MouseEvent<HTMLTableCellElement>) => void;
|
|
171
|
-
link?: boolean;
|
|
172
|
-
tooltip?: string;
|
|
173
|
-
span?: number;
|
|
174
|
-
unclickable?: boolean;
|
|
175
|
-
printValue?: string;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
158
|
+
cells: ITableDataItemCells;
|
|
178
159
|
extendable?: {
|
|
179
160
|
element: ReactElement;
|
|
180
161
|
isLoading?: boolean;
|
|
181
162
|
};
|
|
182
163
|
}
|
|
164
|
+
interface ITableDataItemCells {
|
|
165
|
+
[id: string]: {
|
|
166
|
+
value: any;
|
|
167
|
+
align?: ITableColumn['align'];
|
|
168
|
+
className?: string;
|
|
169
|
+
onClick?: (event?: MouseEvent<HTMLTableCellElement>) => void;
|
|
170
|
+
link?: boolean;
|
|
171
|
+
tooltip?: string;
|
|
172
|
+
span?: number;
|
|
173
|
+
unclickable?: boolean;
|
|
174
|
+
printValue?: string;
|
|
175
|
+
};
|
|
176
|
+
}
|
|
183
177
|
interface ITableFilterData {
|
|
184
|
-
columns: string[];
|
|
185
178
|
filters: ITableFilter;
|
|
179
|
+
customFilterIdList?: string[];
|
|
186
180
|
activeFilterNo?: number;
|
|
187
181
|
additionalFilters?: ReactElement;
|
|
182
|
+
defaultSearch?: IAnyObject;
|
|
188
183
|
search: IAnyObject;
|
|
189
184
|
searchData: IAnyObject;
|
|
190
185
|
setSearchData: (search: IAnyObject) => void;
|
|
191
|
-
|
|
192
|
-
resetData?: IAnyObject;
|
|
186
|
+
onSearch: (search: IAnyObject) => void;
|
|
193
187
|
excludeFromSearch?: string[];
|
|
194
188
|
}
|
|
195
189
|
interface ITableFilterItem {
|
|
196
190
|
label: string;
|
|
197
191
|
field: ReactElement;
|
|
198
|
-
resetField: () => void;
|
|
199
192
|
}
|
|
200
193
|
interface ITableFilter {
|
|
201
194
|
[id: string]: ITableFilterItem;
|
|
@@ -208,8 +201,7 @@ interface ITableSortData {
|
|
|
208
201
|
}
|
|
209
202
|
interface ITableSort {
|
|
210
203
|
label: string;
|
|
211
|
-
|
|
212
|
-
desc: string;
|
|
204
|
+
value: string;
|
|
213
205
|
}
|
|
214
206
|
interface ITableColumnsData {
|
|
215
207
|
columns: ITableColumn[];
|
|
@@ -223,64 +215,27 @@ interface ITableSelectedActions {
|
|
|
223
215
|
disabled?: boolean;
|
|
224
216
|
clearSelected?: boolean;
|
|
225
217
|
}
|
|
226
|
-
interface
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
label: string;
|
|
238
|
-
value?: string;
|
|
239
|
-
}[];
|
|
240
|
-
date?: {
|
|
241
|
-
label: string;
|
|
242
|
-
from?: string;
|
|
243
|
-
to?: string;
|
|
244
|
-
}[];
|
|
245
|
-
};
|
|
246
|
-
saveXlsx?: () => void;
|
|
247
|
-
}
|
|
248
|
-
interface ICustomPrintData extends IBasePrintData {
|
|
249
|
-
content: ReactNode;
|
|
250
|
-
}
|
|
251
|
-
interface IPrintData extends IBasePrintData {
|
|
252
|
-
optionalNode?: {
|
|
253
|
-
aboveTable?: ReactNode;
|
|
254
|
-
bellowTable?: ReactNode;
|
|
255
|
-
};
|
|
256
|
-
customHeader?: ITableColumn[][];
|
|
257
|
-
excludeColumns?: string[];
|
|
258
|
-
getPrintData: (pagination: IPagination) => Promise<{
|
|
259
|
-
data: any[];
|
|
260
|
-
totalRows?: number;
|
|
261
|
-
}>;
|
|
262
|
-
formatPrintData: (data: any) => ITableDataItem[];
|
|
263
|
-
totals?: ITableDataItem;
|
|
218
|
+
interface ITableEdit<T = any> {
|
|
219
|
+
selectedItem: T | null;
|
|
220
|
+
setSelectedItem: (item: T | null) => void;
|
|
221
|
+
editData: Partial<T>;
|
|
222
|
+
setEditData: Dispatch<SetStateAction<Partial<T>>>;
|
|
223
|
+
onSubmit: (data: T, onSubmitCallback: () => void) => void;
|
|
224
|
+
cells: ITableDataItemCells;
|
|
225
|
+
defaultDataValue?: T;
|
|
226
|
+
addDisabled?: boolean;
|
|
227
|
+
addLabel?: string;
|
|
228
|
+
keepEditOnSubmit?: boolean;
|
|
264
229
|
}
|
|
265
230
|
interface IPagination {
|
|
266
231
|
limit: number;
|
|
267
232
|
offset: number;
|
|
268
233
|
}
|
|
269
|
-
interface
|
|
234
|
+
interface IPaginationControl {
|
|
270
235
|
limit: number;
|
|
271
236
|
offset: number;
|
|
272
237
|
setLimit: Dispatch<SetStateAction<number>>;
|
|
273
238
|
setOffset: Dispatch<SetStateAction<number>>;
|
|
274
|
-
totalRows: number;
|
|
275
|
-
}
|
|
276
|
-
interface ITableEditRow {
|
|
277
|
-
columns: ITableColumn[];
|
|
278
|
-
data: any;
|
|
279
|
-
setData: (data: any) => void;
|
|
280
|
-
item?: any;
|
|
281
|
-
clearItem: () => void;
|
|
282
|
-
defaultDataValue?: any;
|
|
283
|
-
inputFocusRef?: RefObject<any>;
|
|
284
239
|
}
|
|
285
240
|
interface IReportTemplate {
|
|
286
241
|
uuid: string;
|
|
@@ -303,17 +258,13 @@ interface IReportTemplateFilterValue {
|
|
|
303
258
|
name?: string;
|
|
304
259
|
type: 'STRING' | 'ARRAY' | 'OBJECT' | 'BOOLEAN';
|
|
305
260
|
}
|
|
306
|
-
interface IReportTemplateData {
|
|
307
|
-
searchData: IAnyObject;
|
|
308
|
-
visibleColumns?: string[];
|
|
309
|
-
sorts?: string[];
|
|
310
|
-
}
|
|
311
261
|
declare const tableCustomLimit1000: number[];
|
|
312
262
|
|
|
313
263
|
interface IKeyboardAction {
|
|
314
|
-
|
|
264
|
+
code: string;
|
|
315
265
|
onAction: () => void;
|
|
316
266
|
ctrl?: boolean;
|
|
267
|
+
shift?: boolean;
|
|
317
268
|
normalizedKey?: boolean;
|
|
318
269
|
onBulkAction?: (itemUuids: string[]) => void;
|
|
319
270
|
disabled?: boolean;
|
|
@@ -341,6 +292,7 @@ interface IMenuItem {
|
|
|
341
292
|
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
342
293
|
to?: string;
|
|
343
294
|
badge?: number;
|
|
295
|
+
active?: boolean;
|
|
344
296
|
disabled?: boolean;
|
|
345
297
|
hidden?: boolean;
|
|
346
298
|
withDevider?: boolean;
|
|
@@ -370,6 +322,7 @@ interface BaseSelectProps {
|
|
|
370
322
|
helperText?: string;
|
|
371
323
|
errorText?: string;
|
|
372
324
|
error?: boolean;
|
|
325
|
+
size?: 's' | 'm';
|
|
373
326
|
className?: string;
|
|
374
327
|
minWidth?: number;
|
|
375
328
|
menuWidth?: 'fit-content' | 'max-content' | number;
|
|
@@ -449,28 +402,6 @@ interface IRoute {
|
|
|
449
402
|
element: ReactElement;
|
|
450
403
|
}
|
|
451
404
|
|
|
452
|
-
interface Props$o {
|
|
453
|
-
modules: {
|
|
454
|
-
name: string;
|
|
455
|
-
icon: IconDefinition;
|
|
456
|
-
disabled?: boolean;
|
|
457
|
-
url: string;
|
|
458
|
-
}[];
|
|
459
|
-
activeModule: {
|
|
460
|
-
name: string;
|
|
461
|
-
icon: IconDefinition;
|
|
462
|
-
} | null;
|
|
463
|
-
}
|
|
464
|
-
declare const ModuleSelect: FC<Props$o>;
|
|
465
|
-
|
|
466
|
-
interface Props$n {
|
|
467
|
-
customTitle?: string;
|
|
468
|
-
modulesProps?: ComponentProps<typeof ModuleSelect>;
|
|
469
|
-
userMenuProps: IHeaderUserMenuProps;
|
|
470
|
-
children?: ReactNode;
|
|
471
|
-
}
|
|
472
|
-
declare const Header: FC<Props$n>;
|
|
473
|
-
|
|
474
405
|
interface ISidebarItem {
|
|
475
406
|
label: string;
|
|
476
407
|
icon?: IconDefinition;
|
|
@@ -497,6 +428,28 @@ interface ISidebarSubItem {
|
|
|
497
428
|
collapsed?: boolean;
|
|
498
429
|
}
|
|
499
430
|
|
|
431
|
+
interface Props$j {
|
|
432
|
+
modules: {
|
|
433
|
+
name: string;
|
|
434
|
+
icon: IconDefinition;
|
|
435
|
+
disabled?: boolean;
|
|
436
|
+
url: string;
|
|
437
|
+
}[];
|
|
438
|
+
activeModule: {
|
|
439
|
+
name: string;
|
|
440
|
+
icon: IconDefinition;
|
|
441
|
+
} | null;
|
|
442
|
+
}
|
|
443
|
+
declare const ModuleSelect: FC<Props$j>;
|
|
444
|
+
|
|
445
|
+
interface Props$i {
|
|
446
|
+
customTitle?: string;
|
|
447
|
+
modulesProps?: ComponentProps<typeof ModuleSelect>;
|
|
448
|
+
userMenuProps: IHeaderUserMenuProps;
|
|
449
|
+
children?: ReactNode;
|
|
450
|
+
}
|
|
451
|
+
declare const Header: FC<Props$i>;
|
|
452
|
+
|
|
500
453
|
interface ISidebarProps {
|
|
501
454
|
items: ISidebarItem[][];
|
|
502
455
|
logo?: string;
|
|
@@ -504,22 +457,22 @@ interface ISidebarProps {
|
|
|
504
457
|
}
|
|
505
458
|
declare const Sidebar: FC<ISidebarProps>;
|
|
506
459
|
|
|
507
|
-
interface Props$
|
|
460
|
+
interface Props$h {
|
|
508
461
|
fullScreenRoutes: IRoute[];
|
|
509
462
|
appRoutes: IRoute[];
|
|
510
463
|
header: ComponentProps<typeof Header>;
|
|
511
464
|
sidebar: ComponentProps<typeof Sidebar>;
|
|
512
465
|
}
|
|
513
|
-
declare const Router: FC<Props$
|
|
466
|
+
declare const Router: FC<Props$h>;
|
|
514
467
|
|
|
515
|
-
interface Props$
|
|
468
|
+
interface Props$g {
|
|
516
469
|
tabs: ITab[];
|
|
517
470
|
initialValue?: string;
|
|
518
471
|
compact?: boolean;
|
|
519
472
|
keepContentInDom?: boolean;
|
|
520
473
|
className?: string;
|
|
521
474
|
}
|
|
522
|
-
declare const Accordions: FC<Props$
|
|
475
|
+
declare const Accordions: FC<Props$g>;
|
|
523
476
|
|
|
524
477
|
type IInfoType = 'success' | 'info' | 'warning' | 'danger';
|
|
525
478
|
|
|
@@ -532,28 +485,28 @@ interface IAlertProps {
|
|
|
532
485
|
}
|
|
533
486
|
declare const Alert: FC<IAlertProps>;
|
|
534
487
|
|
|
535
|
-
interface Props$
|
|
488
|
+
interface Props$f {
|
|
536
489
|
label: string;
|
|
537
490
|
color: IInfoType | 'gray';
|
|
538
491
|
className?: string;
|
|
539
492
|
}
|
|
540
|
-
declare const DotBadge: FC<Props$
|
|
493
|
+
declare const DotBadge: FC<Props$f>;
|
|
541
494
|
|
|
542
|
-
interface Props$
|
|
495
|
+
interface Props$e {
|
|
543
496
|
number?: number;
|
|
544
497
|
className?: string;
|
|
545
498
|
size?: 's' | 'm';
|
|
546
499
|
children?: ReactNode;
|
|
547
500
|
color?: IInfoType | 'primary';
|
|
548
501
|
}
|
|
549
|
-
declare const NotificationBadge: FC<Props$
|
|
502
|
+
declare const NotificationBadge: FC<Props$e>;
|
|
550
503
|
|
|
551
|
-
interface Props$
|
|
504
|
+
interface Props$d {
|
|
552
505
|
label: string;
|
|
553
506
|
color: IInfoType | 'gray';
|
|
554
507
|
className?: string;
|
|
555
508
|
}
|
|
556
|
-
declare const PillBadge: FC<Props$
|
|
509
|
+
declare const PillBadge: FC<Props$d>;
|
|
557
510
|
|
|
558
511
|
interface IIconButtonProps {
|
|
559
512
|
icon: IconDefinition;
|
|
@@ -564,6 +517,7 @@ interface IIconButtonProps {
|
|
|
564
517
|
disabled?: boolean;
|
|
565
518
|
active?: boolean;
|
|
566
519
|
tooltip?: string;
|
|
520
|
+
type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
567
521
|
className?: string;
|
|
568
522
|
buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
569
523
|
ref?: Ref<HTMLButtonElement>;
|
|
@@ -574,7 +528,7 @@ declare const Dashboard: FC<{
|
|
|
574
528
|
children: ReactNode;
|
|
575
529
|
}>;
|
|
576
530
|
|
|
577
|
-
interface Props$
|
|
531
|
+
interface Props$c {
|
|
578
532
|
title: string;
|
|
579
533
|
icon?: any;
|
|
580
534
|
type?: 'warning' | 'info';
|
|
@@ -582,58 +536,60 @@ interface Props$h {
|
|
|
582
536
|
isLoading?: boolean;
|
|
583
537
|
children: ReactNode;
|
|
584
538
|
}
|
|
585
|
-
declare const DashboardWidget: FC<Props$
|
|
539
|
+
declare const DashboardWidget: FC<Props$c>;
|
|
586
540
|
|
|
587
|
-
interface Props$
|
|
541
|
+
interface Props$b {
|
|
588
542
|
links: {
|
|
589
543
|
icon?: IconDefinition;
|
|
590
544
|
label: string;
|
|
591
545
|
onClick: () => void;
|
|
592
546
|
}[];
|
|
593
547
|
}
|
|
594
|
-
declare const FastLinksWidget: FC<Props$
|
|
595
|
-
|
|
596
|
-
interface Props$f {
|
|
597
|
-
textId: string;
|
|
598
|
-
itemUuid: string;
|
|
599
|
-
setItemUuid: Dispatch<SetStateAction<string>>;
|
|
600
|
-
reloadItems: () => void;
|
|
601
|
-
deleteItemFunction: (itemUuid: string) => Promise<any>;
|
|
602
|
-
}
|
|
603
|
-
declare const DeleteItemDialog: FC<Props$f>;
|
|
548
|
+
declare const FastLinksWidget: FC<Props$b>;
|
|
604
549
|
|
|
605
|
-
interface
|
|
606
|
-
|
|
607
|
-
titleEl?: ReactNode;
|
|
608
|
-
desc?: string;
|
|
609
|
-
descEl?: ReactNode;
|
|
610
|
-
isOpen: boolean;
|
|
611
|
-
onClose: () => void;
|
|
612
|
-
isLoading?: boolean;
|
|
613
|
-
confirmButton?: {
|
|
550
|
+
interface IDialogFooterActions {
|
|
551
|
+
confirmButton: {
|
|
614
552
|
label?: string;
|
|
615
553
|
icon?: IconDefinition;
|
|
616
554
|
onClick?: () => void;
|
|
617
|
-
onFormSubmit?: () => void;
|
|
618
555
|
disabled?: boolean;
|
|
619
556
|
keepOpen?: boolean;
|
|
557
|
+
color?: IButtonColor;
|
|
620
558
|
isKeyboardDisabled?: boolean;
|
|
559
|
+
type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
621
560
|
};
|
|
622
561
|
cancelButton?: {
|
|
623
562
|
label?: string;
|
|
624
563
|
icon?: IconDefinition;
|
|
625
564
|
onClick?: () => void;
|
|
565
|
+
hidden?: boolean;
|
|
626
566
|
};
|
|
627
567
|
additionalButton?: {
|
|
628
568
|
label: string;
|
|
629
569
|
icon?: IconDefinition;
|
|
630
|
-
onClick
|
|
570
|
+
onClick: () => void;
|
|
631
571
|
disabled?: boolean;
|
|
632
572
|
keepOpen?: boolean;
|
|
633
573
|
color?: IButtonColor;
|
|
634
|
-
variant?: IButtonVariant;
|
|
635
574
|
};
|
|
636
|
-
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
interface PopupControlRef {
|
|
578
|
+
isOpen: boolean;
|
|
579
|
+
onOpen: () => void;
|
|
580
|
+
onClose: () => void;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
interface Props$a {
|
|
584
|
+
controlRef: Ref<PopupControlRef>;
|
|
585
|
+
title?: string;
|
|
586
|
+
titleEl?: ReactNode;
|
|
587
|
+
desc?: string;
|
|
588
|
+
descEl?: ReactNode;
|
|
589
|
+
onFormSubmit?: () => void;
|
|
590
|
+
onCloseCallback?: () => void;
|
|
591
|
+
isLoading?: boolean;
|
|
592
|
+
footer?: IDialogFooterActions;
|
|
637
593
|
isKeyboardDisabled?: boolean;
|
|
638
594
|
noBackgroundClick?: boolean;
|
|
639
595
|
noOverflow?: boolean;
|
|
@@ -642,15 +598,15 @@ interface Props$e {
|
|
|
642
598
|
className?: string;
|
|
643
599
|
children?: ReactNode;
|
|
644
600
|
}
|
|
645
|
-
declare const Dialog: FC<Props$
|
|
601
|
+
declare const Dialog: FC<Props$a>;
|
|
646
602
|
|
|
647
|
-
interface Props$
|
|
603
|
+
interface Props$9 {
|
|
648
604
|
isOpen: boolean;
|
|
649
605
|
children: ReactNode;
|
|
650
606
|
keepContentInDom?: boolean;
|
|
651
607
|
className?: string;
|
|
652
608
|
}
|
|
653
|
-
declare const Collapse: FC<Props$
|
|
609
|
+
declare const Collapse: FC<Props$9>;
|
|
654
610
|
|
|
655
611
|
interface ICheckboxProps {
|
|
656
612
|
label?: string;
|
|
@@ -698,6 +654,7 @@ interface IDateInputProps {
|
|
|
698
654
|
helperText?: string;
|
|
699
655
|
errorText?: string;
|
|
700
656
|
isClearable?: boolean;
|
|
657
|
+
onClear?: () => void;
|
|
701
658
|
className?: string;
|
|
702
659
|
calendarPlacement?: IMenuPlacement;
|
|
703
660
|
}
|
|
@@ -786,7 +743,7 @@ interface IRadioProps {
|
|
|
786
743
|
}
|
|
787
744
|
declare const Radio: FC<IRadioProps>;
|
|
788
745
|
|
|
789
|
-
interface Props$
|
|
746
|
+
interface Props$8 {
|
|
790
747
|
title?: string | ReactElement;
|
|
791
748
|
desc?: string | ReactElement;
|
|
792
749
|
value: string;
|
|
@@ -796,13 +753,13 @@ interface Props$c {
|
|
|
796
753
|
className?: string;
|
|
797
754
|
children?: ReactNode;
|
|
798
755
|
}
|
|
799
|
-
declare const RadioLarge: FC<Props$
|
|
756
|
+
declare const RadioLarge: FC<Props$8>;
|
|
800
757
|
|
|
801
758
|
interface IProps {
|
|
802
759
|
label?: string;
|
|
803
760
|
onSearch: (searchText: string) => void;
|
|
804
|
-
onClear?: () => void;
|
|
805
761
|
className?: string;
|
|
762
|
+
ref?: Ref<HTMLInputElement>;
|
|
806
763
|
}
|
|
807
764
|
declare const SearchInput: FC<IProps>;
|
|
808
765
|
|
|
@@ -839,7 +796,7 @@ interface ITextInputProps {
|
|
|
839
796
|
}
|
|
840
797
|
declare const TextInput: FC<ITextInputProps>;
|
|
841
798
|
|
|
842
|
-
interface Props$
|
|
799
|
+
interface Props$7 {
|
|
843
800
|
isLoading: boolean;
|
|
844
801
|
isFullPage?: boolean;
|
|
845
802
|
classNameLoader?: string;
|
|
@@ -848,13 +805,13 @@ interface Props$b {
|
|
|
848
805
|
children: ReactElement | ReactNode;
|
|
849
806
|
}>;
|
|
850
807
|
}
|
|
851
|
-
declare const Loader: FC<Props$
|
|
808
|
+
declare const Loader: FC<Props$7>;
|
|
852
809
|
declare const FullScreenLoader: FC<{
|
|
853
810
|
isLoading: boolean;
|
|
854
811
|
}>;
|
|
855
812
|
declare const LazyLoader: FC;
|
|
856
813
|
|
|
857
|
-
interface Props$
|
|
814
|
+
interface Props$6 {
|
|
858
815
|
isOpen: boolean;
|
|
859
816
|
onClose: () => void;
|
|
860
817
|
renderButton: (ref: RefObject<any>) => ReactNode;
|
|
@@ -865,67 +822,11 @@ interface Props$a {
|
|
|
865
822
|
classNameItem?: string;
|
|
866
823
|
children?: ReactNode;
|
|
867
824
|
}
|
|
868
|
-
declare const Menu: FC<Props$
|
|
825
|
+
declare const Menu: FC<Props$6>;
|
|
869
826
|
|
|
870
827
|
declare const MenuItem: FC<IMenuItem>;
|
|
871
828
|
|
|
872
|
-
interface Props$9 {
|
|
873
|
-
item: any;
|
|
874
|
-
setSelectedItem?: (item: any) => void;
|
|
875
|
-
setItemToDeleteUuid?: (uuid: string) => void;
|
|
876
|
-
actions?: {
|
|
877
|
-
label: string;
|
|
878
|
-
onClick: (uuid: string) => void;
|
|
879
|
-
hidden?: boolean;
|
|
880
|
-
disabled?: boolean;
|
|
881
|
-
}[];
|
|
882
|
-
}
|
|
883
|
-
declare const ItemActionsMenu: FC<Props$9>;
|
|
884
|
-
|
|
885
|
-
interface Props$8 {
|
|
886
|
-
setData: (item: any) => void;
|
|
887
|
-
clearItem: () => void;
|
|
888
|
-
inputFocusRef?: RefObject<any>;
|
|
889
|
-
defaultDataValue?: any;
|
|
890
|
-
}
|
|
891
|
-
declare const ItemEditOptionsButtons: FC<Props$8>;
|
|
892
|
-
|
|
893
|
-
declare const TableEditRow: FC<ITableEditRow>;
|
|
894
|
-
|
|
895
|
-
interface Props$7 {
|
|
896
|
-
item: ITableFilterItem;
|
|
897
|
-
}
|
|
898
|
-
declare const FilterItem: FC<Props$7>;
|
|
899
|
-
|
|
900
|
-
interface Props$6 extends ITableFilterData {
|
|
901
|
-
isOpen: boolean;
|
|
902
|
-
onClose: () => void;
|
|
903
|
-
}
|
|
904
|
-
declare const SetTableFilter: FC<Props$6>;
|
|
905
|
-
|
|
906
829
|
interface Props$5 {
|
|
907
|
-
pagination: IServerSidePagination;
|
|
908
|
-
noTotalRows?: boolean;
|
|
909
|
-
dataLength: number;
|
|
910
|
-
footerAction?: {
|
|
911
|
-
icon?: IconDefinition;
|
|
912
|
-
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
913
|
-
};
|
|
914
|
-
customLimit?: number[];
|
|
915
|
-
}
|
|
916
|
-
declare const TableFooter: FC<Props$5>;
|
|
917
|
-
|
|
918
|
-
declare const Table: FC<ITable>;
|
|
919
|
-
|
|
920
|
-
interface Props$4 extends IPrintData {
|
|
921
|
-
isOpen: boolean;
|
|
922
|
-
onClose: () => void;
|
|
923
|
-
columns: ITableColumn[];
|
|
924
|
-
excludeColumnIds?: string[];
|
|
925
|
-
}
|
|
926
|
-
declare const TablePrint: FC<Props$4>;
|
|
927
|
-
|
|
928
|
-
interface Props$3 {
|
|
929
830
|
tabs: ITab[];
|
|
930
831
|
initialValue?: string;
|
|
931
832
|
control?: {
|
|
@@ -937,10 +838,10 @@ interface Props$3 {
|
|
|
937
838
|
className?: string;
|
|
938
839
|
classNameContent?: string;
|
|
939
840
|
}
|
|
940
|
-
declare const Tabs: FC<Props$
|
|
841
|
+
declare const Tabs: FC<Props$5>;
|
|
941
842
|
|
|
942
843
|
type TooltipPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
943
|
-
interface Props$
|
|
844
|
+
interface Props$4 {
|
|
944
845
|
label?: string;
|
|
945
846
|
position?: TooltipPosition;
|
|
946
847
|
disabled?: boolean;
|
|
@@ -949,21 +850,21 @@ interface Props$2 {
|
|
|
949
850
|
children: ReactElement;
|
|
950
851
|
ref?: Ref<HTMLElement> | null;
|
|
951
852
|
}
|
|
952
|
-
declare const Tooltip: FC<Props$
|
|
853
|
+
declare const Tooltip: FC<Props$4>;
|
|
953
854
|
|
|
954
|
-
interface Props$
|
|
855
|
+
interface Props$3 {
|
|
955
856
|
data: ITreeItem[];
|
|
956
857
|
selectedItemUuid?: string;
|
|
957
858
|
onClick: (itemUuid: string) => void;
|
|
958
859
|
}
|
|
959
|
-
declare const Tree: FC<Props$
|
|
860
|
+
declare const Tree: FC<Props$3>;
|
|
960
861
|
|
|
961
|
-
interface Props {
|
|
862
|
+
interface Props$2 {
|
|
962
863
|
condition: boolean;
|
|
963
864
|
wrapper: (children: ReactNode) => ReactNode;
|
|
964
865
|
children: ReactNode;
|
|
965
866
|
}
|
|
966
|
-
declare const ConditionalWrapper: FC<Props>;
|
|
867
|
+
declare const ConditionalWrapper: FC<Props$2>;
|
|
967
868
|
|
|
968
869
|
interface IPageLayoutProps {
|
|
969
870
|
breadcrumbs?: (string | undefined)[];
|
|
@@ -984,6 +885,127 @@ interface IPageLayoutProps {
|
|
|
984
885
|
}
|
|
985
886
|
declare const PageLayout: FC<IPageLayoutProps>;
|
|
986
887
|
|
|
888
|
+
interface Props$1 {
|
|
889
|
+
controlRef: Ref<PopupControlRef>;
|
|
890
|
+
header?: {
|
|
891
|
+
title: string;
|
|
892
|
+
onSearch?: (search: string) => void;
|
|
893
|
+
};
|
|
894
|
+
onFormSubmit?: () => void;
|
|
895
|
+
onCloseCallback?: () => void;
|
|
896
|
+
footer?: IDialogFooterActions;
|
|
897
|
+
size?: 'vw25' | 'vw50' | 'vw75' | 'vw100' | 'w500' | 'w600';
|
|
898
|
+
className?: string;
|
|
899
|
+
contentClassName?: string;
|
|
900
|
+
children: ReactNode;
|
|
901
|
+
}
|
|
902
|
+
declare const Pullover: FC<Props$1>;
|
|
903
|
+
|
|
904
|
+
declare const Table: FC<ITable>;
|
|
905
|
+
|
|
906
|
+
declare const useDefaultTemplate: (identifier?: string) => void;
|
|
907
|
+
|
|
908
|
+
interface BaseItemProps$1<T> {
|
|
909
|
+
id: keyof T;
|
|
910
|
+
placeholder?: string;
|
|
911
|
+
required?: boolean;
|
|
912
|
+
additionalClearIds?: (keyof T)[];
|
|
913
|
+
}
|
|
914
|
+
interface SelectProps$1<T> extends BaseItemProps$1<T> {
|
|
915
|
+
options: readonly (string | boolean)[] | (string | boolean)[];
|
|
916
|
+
formatOption: (value: string | boolean) => {
|
|
917
|
+
value: string | boolean;
|
|
918
|
+
label: string;
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
declare const useTableEdit: <T extends Record<string, any>>() => {
|
|
922
|
+
editable: Pick<ITableEdit<T>, "selectedItem" | "setSelectedItem" | "editData" | "setEditData">;
|
|
923
|
+
textEditCell: ({ placeholder, required, id, additionalClearIds, }: BaseItemProps$1<T>) => {
|
|
924
|
+
value: react_jsx_runtime.JSX.Element;
|
|
925
|
+
};
|
|
926
|
+
dateEditCell: ({ id, required, additionalClearIds, }: Omit<BaseItemProps$1<T>, "placeholder">) => {
|
|
927
|
+
value: react_jsx_runtime.JSX.Element;
|
|
928
|
+
};
|
|
929
|
+
selectEditCell: ({ id, placeholder, required, options, formatOption, additionalClearIds, }: SelectProps$1<T>) => {
|
|
930
|
+
value: react_jsx_runtime.JSX.Element;
|
|
931
|
+
};
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
interface Props<T> {
|
|
935
|
+
searchData: T;
|
|
936
|
+
setSearchData: Dispatch<SetStateAction<Partial<T>>>;
|
|
937
|
+
}
|
|
938
|
+
interface BaseItemField<T> {
|
|
939
|
+
id: keyof T;
|
|
940
|
+
additionalClearIds?: (keyof T)[];
|
|
941
|
+
}
|
|
942
|
+
interface BaseItemProps<T> extends BaseItemField<T> {
|
|
943
|
+
label: string;
|
|
944
|
+
}
|
|
945
|
+
interface DateFilterProps<T> {
|
|
946
|
+
label: string;
|
|
947
|
+
from: BaseItemField<T>;
|
|
948
|
+
to: BaseItemField<T>;
|
|
949
|
+
}
|
|
950
|
+
interface SelectProps<T> extends BaseItemProps<T> {
|
|
951
|
+
options: readonly string[] | string[];
|
|
952
|
+
formatOption: (value: string) => {
|
|
953
|
+
value: string;
|
|
954
|
+
label: string;
|
|
955
|
+
};
|
|
956
|
+
}
|
|
957
|
+
interface BooleanSelectProps<T> extends BaseItemProps<T> {
|
|
958
|
+
labelTrue?: string;
|
|
959
|
+
labelFalse?: string;
|
|
960
|
+
}
|
|
961
|
+
declare const useTableFilterFields: <T extends Record<string, any>>({ searchData, setSearchData, }: Props<T>) => {
|
|
962
|
+
textFilter: ({ label, id, additionalClearIds }: BaseItemProps<T>) => {
|
|
963
|
+
label: string;
|
|
964
|
+
field: react_jsx_runtime.JSX.Element;
|
|
965
|
+
};
|
|
966
|
+
dateFilter: ({ label, from, to }: DateFilterProps<T>) => {
|
|
967
|
+
label: string;
|
|
968
|
+
field: react_jsx_runtime.JSX.Element;
|
|
969
|
+
};
|
|
970
|
+
selectFilter: ({ label, id, options, formatOption }: SelectProps<T>) => {
|
|
971
|
+
label: string;
|
|
972
|
+
field: react_jsx_runtime.JSX.Element;
|
|
973
|
+
};
|
|
974
|
+
booleanSelectFilter: ({ label, id, labelFalse, labelTrue, }: BooleanSelectProps<T>) => {
|
|
975
|
+
label: string;
|
|
976
|
+
field: react_jsx_runtime.JSX.Element;
|
|
977
|
+
};
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
declare const useTablePagination: (defaultLimit?: number) => {
|
|
981
|
+
pagination: IPagination;
|
|
982
|
+
paginationControl: IPaginationControl;
|
|
983
|
+
};
|
|
984
|
+
|
|
985
|
+
interface ITableSearchProps<T> {
|
|
986
|
+
setOffset: Dispatch<SetStateAction<number>>;
|
|
987
|
+
resetSelectedRows?: () => void;
|
|
988
|
+
defaultSearch?: T;
|
|
989
|
+
}
|
|
990
|
+
declare const useTableSearch: <T>({ setOffset, resetSelectedRows, defaultSearch, }: ITableSearchProps<T>) => {
|
|
991
|
+
search: T;
|
|
992
|
+
searchData: T;
|
|
993
|
+
setSearchData: Dispatch<SetStateAction<T>>;
|
|
994
|
+
onSearch: (filters: T) => void;
|
|
995
|
+
};
|
|
996
|
+
|
|
997
|
+
declare const useTableSelect: () => {
|
|
998
|
+
selectedRows: Set<string>;
|
|
999
|
+
setSelectedRows: react.Dispatch<react.SetStateAction<Set<string>>>;
|
|
1000
|
+
resetSelectedRows: () => void;
|
|
1001
|
+
};
|
|
1002
|
+
|
|
1003
|
+
declare const useTableSort: (sortOptions: ITableSort[]) => {
|
|
1004
|
+
sort: string;
|
|
1005
|
+
setSort: react.Dispatch<react.SetStateAction<string>>;
|
|
1006
|
+
sortOptions: ITableSort[];
|
|
1007
|
+
};
|
|
1008
|
+
|
|
987
1009
|
type inputDate = string | Date | dayjs.Dayjs;
|
|
988
1010
|
declare const formatDate: (date?: inputDate) => string;
|
|
989
1011
|
declare const formatDateYMD: (date: inputDate) => string;
|
|
@@ -1114,7 +1136,9 @@ declare const i18nIUILatin: {
|
|
|
1114
1136
|
allResults: string;
|
|
1115
1137
|
Columns: string;
|
|
1116
1138
|
DragDropListsInfo: string;
|
|
1139
|
+
TableSelect: string;
|
|
1117
1140
|
Filter: string;
|
|
1141
|
+
ApplyFilters: string;
|
|
1118
1142
|
HiddenColumns: string;
|
|
1119
1143
|
NoResults: string;
|
|
1120
1144
|
of: string;
|
|
@@ -1156,6 +1180,7 @@ declare const i18nIUILatin: {
|
|
|
1156
1180
|
};
|
|
1157
1181
|
|
|
1158
1182
|
declare const i18nIUICyrilic: {
|
|
1183
|
+
HomePage: string;
|
|
1159
1184
|
Actions: string;
|
|
1160
1185
|
Active: string;
|
|
1161
1186
|
AddInput: string;
|
|
@@ -1189,7 +1214,9 @@ declare const i18nIUICyrilic: {
|
|
|
1189
1214
|
allResults: string;
|
|
1190
1215
|
Columns: string;
|
|
1191
1216
|
DragDropListsInfo: string;
|
|
1217
|
+
TableSelect: string;
|
|
1192
1218
|
Filter: string;
|
|
1219
|
+
ApplyFilters: string;
|
|
1193
1220
|
HiddenColumns: string;
|
|
1194
1221
|
NoResults: string;
|
|
1195
1222
|
of: string;
|
|
@@ -1233,6 +1260,7 @@ declare const i18nIUICyrilic: {
|
|
|
1233
1260
|
};
|
|
1234
1261
|
|
|
1235
1262
|
declare const i18nIUIMe: {
|
|
1263
|
+
HomePage: string;
|
|
1236
1264
|
Actions: string;
|
|
1237
1265
|
Active: string;
|
|
1238
1266
|
AddInput: string;
|
|
@@ -1266,7 +1294,9 @@ declare const i18nIUIMe: {
|
|
|
1266
1294
|
allResults: string;
|
|
1267
1295
|
Columns: string;
|
|
1268
1296
|
DragDropListsInfo: string;
|
|
1297
|
+
TableSelect: string;
|
|
1269
1298
|
Filter: string;
|
|
1299
|
+
ApplyFilters: string;
|
|
1270
1300
|
HiddenColumns: string;
|
|
1271
1301
|
NoResults: string;
|
|
1272
1302
|
of: string;
|
|
@@ -1309,8 +1339,6 @@ declare const i18nIUIMe: {
|
|
|
1309
1339
|
NoAccessPageInfo: string;
|
|
1310
1340
|
};
|
|
1311
1341
|
|
|
1312
|
-
declare const useDefaultTemplate: (identifier?: string) => void;
|
|
1313
|
-
|
|
1314
1342
|
declare global {
|
|
1315
1343
|
var zE: {
|
|
1316
1344
|
show: () => void;
|
|
@@ -1323,19 +1351,18 @@ declare const useHideZendesk: () => void;
|
|
|
1323
1351
|
|
|
1324
1352
|
declare const useOnEsc: (onEsc: () => void, disabled?: boolean) => void;
|
|
1325
1353
|
|
|
1326
|
-
declare const useDialogObserver: () => boolean;
|
|
1327
|
-
|
|
1328
|
-
declare const useTableSelect: () => {
|
|
1329
|
-
selectedRows: Set<string>;
|
|
1330
|
-
setSelectedRows: react.Dispatch<react.SetStateAction<Set<string>>>;
|
|
1331
|
-
resetSelectedRows: () => void;
|
|
1332
|
-
};
|
|
1333
|
-
|
|
1334
1354
|
declare const useIsMenuOpen: () => {
|
|
1335
1355
|
isMenuOpen: boolean;
|
|
1336
1356
|
onMenuOpen: () => void;
|
|
1337
1357
|
onMenuClose: () => number;
|
|
1338
1358
|
};
|
|
1339
1359
|
|
|
1340
|
-
|
|
1341
|
-
|
|
1360
|
+
declare const usePopupControl: () => {
|
|
1361
|
+
controlRef: react.RefObject<PopupControlRef | null>;
|
|
1362
|
+
isOpen: boolean | undefined;
|
|
1363
|
+
onOpen: () => void | undefined;
|
|
1364
|
+
onClose: () => void | undefined;
|
|
1365
|
+
};
|
|
1366
|
+
|
|
1367
|
+
export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CurrencyInput, Dashboard, DashboardWidget, DateInput, Dialog, DotBadge, FastLinksWidget, FormWrapper, FullScreenLoader, IconButton, LazyLoader, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageLayout, PasswordInput, PillBadge, Pullover, Radio, RadioLarge, Router, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, Table, Tabs, TextAreaInput, TextInput, TimeInput, Tooltip, Tree, areStringArraysEqual, calculateFilesSize, checkIfExpired, compareArrayItemsIndex, convertArrayToBooleanObject, convertBooleanObjectToArray, convertReportTemplateFilterToSearch, convertSearchToReportTemplateFilter, dataURLtoFile, dateAddDays, deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, deletePropsThatEndsWith, downloadDocumentFile, downloadFile, formatCurrency, formatCurrencyNoDecimals, formatDate, formatDateAndTime, formatDateYMD, formatDecimalNumber, formatTime, formatYearMonth, getActiveFilterNumber, getActiveOrgUuid, getBase64FromFile, getBase64FromUrl, getCurrentDateFormatted, getCurrentDateFormattedYMD, getDaysLeft, getDefaultOrgUuid, getExtensionFromFilename, getFileFromUrl, getInputHelperText, getInputMinMaxPattern, getPrintColumns, getVisibleColumnsIds, i18nIUICyrilic, i18nIUILatin, i18nIUIMe, inputPattern, intersectArrays, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, rootDir, rotateBase64Image, setActiveOrgUuid, setDefaultOrgUuid, setTemplateData, sizeInBytesPretty, splitBase64File, tableCustomLimit1000, toastError, toastSuccess, useDefaultTemplate, useHideZendesk, useIsMenuOpen, useOnEsc, usePopupControl, useTableEdit, useTableFilterFields, useTablePagination, useTableSearch, useTableSelect, useTableSort };
|
|
1368
|
+
export type { DeepPartial, IAlertProps, IAnyObject, IBooleanObject, IError, IFormWrapper, IHeaderAction, IHeaderUserMenuProps, IKeyboardAction, IMenuItem, IMenuPlacement, IPagination, IPaginationControl, IRoute, ISelectData, ISidebarItem, ISimpleObject, ISimpleObjectWithCode, IStringObject, ITab, ITable, ITableColumn, ITableDataItem, ITableDataItemCells, ITableEdit, ITableFilter, ITableFilterData, ITableFilterItem, ITableSort, ITreeItem, IValueLabel };
|