@inceptionbg/iui 1.0.306 → 2.0.1
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-D4YKvpR_.js +2 -0
- package/dist/NoAccessPage-D4YKvpR_.js.map +1 -0
- package/dist/NotFoundPage-COfLYbEk.js +2 -0
- package/dist/NotFoundPage-COfLYbEk.js.map +1 -0
- package/dist/index.d.ts +361 -465
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/iui.css +1 -0
- package/package.json +24 -22
- package/dist/index.css +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,37 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
1
|
export { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
2
|
+
import { IconDefinition, RotateProp } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
+
export { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
4
4
|
export { default as clsx } from 'clsx';
|
|
5
|
-
|
|
5
|
+
import dayjs from 'dayjs';
|
|
6
|
+
export { default as dayjs } from 'dayjs';
|
|
6
7
|
export { DragDropContext, Draggable, Droppable } from 'react-beautiful-dnd';
|
|
7
8
|
import * as react_toastify from 'react-toastify';
|
|
8
9
|
export { ToastContainer } from 'react-toastify';
|
|
9
10
|
export { TFunction, changeLanguage, default as i18n, i18n as i18nType } from 'i18next';
|
|
10
11
|
export { I18nextProvider, Trans, useTranslation } from 'react-i18next';
|
|
11
12
|
import * as react from 'react';
|
|
12
|
-
import { MouseEventHandler, ButtonHTMLAttributes,
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
import { MouseEventHandler, ButtonHTMLAttributes, FC, FormEvent, ReactNode, ReactElement, ComponentProps, Dispatch, SetStateAction, InputHTMLAttributes, FocusEventHandler, RefObject } from 'react';
|
|
14
|
+
import * as reactRouter from 'react-router';
|
|
15
|
+
export { reactRouter as ReactRouter };
|
|
16
|
+
export { BrowserRouter, NavigateFunction, useLocation, useNavigate, useParams } from 'react-router';
|
|
17
|
+
|
|
18
|
+
type IButtonColor = 'primary' | 'neutral' | 'danger';
|
|
19
|
+
type IButtonVariant = 'solid' | 'outlined' | 'simple';
|
|
20
|
+
interface IButtonProps {
|
|
17
21
|
label: string;
|
|
18
22
|
icon?: IconDefinition;
|
|
19
23
|
iconEnd?: IconDefinition;
|
|
20
24
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
21
|
-
|
|
22
|
-
solid?: boolean;
|
|
23
|
-
outlined?: boolean;
|
|
24
|
-
active?: boolean;
|
|
25
|
+
variant?: IButtonVariant;
|
|
25
26
|
color?: IButtonColor;
|
|
26
27
|
size?: 'xs' | 's' | 'm' | 'l';
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
active?: boolean;
|
|
30
|
+
type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
27
31
|
className?: string;
|
|
28
32
|
buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
29
33
|
}
|
|
30
|
-
declare const Button: react.ForwardRefExoticComponent<
|
|
34
|
+
declare const Button: react.ForwardRefExoticComponent<IButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
31
35
|
|
|
32
36
|
interface IFormWrapper {
|
|
33
37
|
isLoading: boolean;
|
|
@@ -37,14 +41,14 @@ interface IFormWrapper {
|
|
|
37
41
|
icon?: any;
|
|
38
42
|
disabled?: boolean;
|
|
39
43
|
onSubmit: (e: FormEvent<HTMLFormElement>) => void;
|
|
40
|
-
|
|
44
|
+
variant?: IButtonVariant;
|
|
41
45
|
color?: IButtonColor;
|
|
42
46
|
};
|
|
43
47
|
otherButtons?: {
|
|
44
48
|
label: string;
|
|
45
49
|
icon?: any;
|
|
46
50
|
onClick: () => void;
|
|
47
|
-
|
|
51
|
+
variant?: IButtonVariant;
|
|
48
52
|
color?: IButtonColor;
|
|
49
53
|
disabled?: boolean;
|
|
50
54
|
hidden?: boolean;
|
|
@@ -78,64 +82,6 @@ interface IValueLabel {
|
|
|
78
82
|
label: string;
|
|
79
83
|
}
|
|
80
84
|
|
|
81
|
-
interface ITable {
|
|
82
|
-
columns: ITableColumn[];
|
|
83
|
-
setColumns?: (data: ITableColumn[]) => void;
|
|
84
|
-
withColumnsSearch?: boolean;
|
|
85
|
-
customHeader?: ITableColumn[][];
|
|
86
|
-
data: ITableDataItem[];
|
|
87
|
-
sumRows?: ITableDataItem[];
|
|
88
|
-
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
|
-
headerWrap?: boolean;
|
|
100
|
-
hideFooter?: boolean;
|
|
101
|
-
noTotalRows?: boolean;
|
|
102
|
-
showLastBorder?: boolean;
|
|
103
|
-
filterData?: ITableFilterData;
|
|
104
|
-
sortData?: ITableSortData;
|
|
105
|
-
printData?: IPrintData;
|
|
106
|
-
customPrintData?: ICustomPrintData;
|
|
107
|
-
additionsalOptions?: ReactNode;
|
|
108
|
-
rowSelect?: {
|
|
109
|
-
selectedRows: Set<string>;
|
|
110
|
-
setSelectedRows: Dispatch<SetStateAction<Set<string>>>;
|
|
111
|
-
actions: ITableSelectedActions[];
|
|
112
|
-
};
|
|
113
|
-
className?: string;
|
|
114
|
-
rowHeight?: 'xs' | 's' | 'm';
|
|
115
|
-
maxHeight?: string;
|
|
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
|
-
};
|
|
127
|
-
keyboard?: {
|
|
128
|
-
enabled: boolean;
|
|
129
|
-
actions: ITableKeyboardActionsBase;
|
|
130
|
-
};
|
|
131
|
-
templates?: {
|
|
132
|
-
identifier: string;
|
|
133
|
-
data: IReportTemplateData;
|
|
134
|
-
setTemplateName?: (templateName: string) => void;
|
|
135
|
-
onClearFilters: () => void;
|
|
136
|
-
allowPublicCreate?: boolean;
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
85
|
interface ITableColumn {
|
|
140
86
|
id: string;
|
|
141
87
|
label?: string | ReactElement;
|
|
@@ -156,132 +102,11 @@ interface ITableColumn {
|
|
|
156
102
|
};
|
|
157
103
|
code?: string;
|
|
158
104
|
}
|
|
159
|
-
interface ITableDataItem {
|
|
160
|
-
uuid: string;
|
|
161
|
-
onRowClick?: (event?: MouseEvent<HTMLTableRowElement>) => void;
|
|
162
|
-
className?: string;
|
|
163
|
-
item?: Record<string, any>;
|
|
164
|
-
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
|
-
};
|
|
178
|
-
extendable?: {
|
|
179
|
-
element: ReactElement;
|
|
180
|
-
isLoading?: boolean;
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
interface ITableFilterData {
|
|
184
|
-
columns: string[];
|
|
185
|
-
filters: ITableFilter;
|
|
186
|
-
activeFilterNo?: number;
|
|
187
|
-
additionalFilters?: ReactElement;
|
|
188
|
-
search: IAnyObject;
|
|
189
|
-
searchData: IAnyObject;
|
|
190
|
-
setSearchData: (search: IAnyObject) => void;
|
|
191
|
-
onSubmit: (search: IAnyObject) => void;
|
|
192
|
-
resetData?: IAnyObject;
|
|
193
|
-
excludeFromSearch?: string[];
|
|
194
|
-
}
|
|
195
|
-
interface ITableFilterItem {
|
|
196
|
-
label: string;
|
|
197
|
-
field: ReactElement;
|
|
198
|
-
resetField: () => void;
|
|
199
|
-
}
|
|
200
|
-
interface ITableFilter {
|
|
201
|
-
[id: string]: ITableFilterItem;
|
|
202
|
-
}
|
|
203
|
-
interface ITableSortData {
|
|
204
|
-
sort: string;
|
|
205
|
-
setSort: (sort: string) => void;
|
|
206
|
-
sortOptions: ITableSort[];
|
|
207
|
-
menuSize?: 's' | 'm' | 'l';
|
|
208
|
-
}
|
|
209
|
-
interface ITableSort {
|
|
210
|
-
label: string;
|
|
211
|
-
asc: string;
|
|
212
|
-
desc: string;
|
|
213
|
-
}
|
|
214
105
|
interface ITableColumnsData {
|
|
215
106
|
columns: ITableColumn[];
|
|
216
107
|
setColumns: (columns: ITableColumn[]) => void;
|
|
217
108
|
withSearch?: boolean;
|
|
218
109
|
}
|
|
219
|
-
interface ITableSelectedActions {
|
|
220
|
-
label: string;
|
|
221
|
-
onClick: (selected: Set<string>) => void;
|
|
222
|
-
hidden?: boolean;
|
|
223
|
-
disabled?: boolean;
|
|
224
|
-
clearSelected?: boolean;
|
|
225
|
-
}
|
|
226
|
-
interface IBasePrintData {
|
|
227
|
-
label: string;
|
|
228
|
-
organization?: {
|
|
229
|
-
name?: string;
|
|
230
|
-
taxId?: string;
|
|
231
|
-
registrationNumber?: string;
|
|
232
|
-
jbkjs?: string;
|
|
233
|
-
email?: string;
|
|
234
|
-
};
|
|
235
|
-
filters?: {
|
|
236
|
-
basic?: {
|
|
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;
|
|
264
|
-
}
|
|
265
|
-
interface IPagination {
|
|
266
|
-
limit: number;
|
|
267
|
-
offset: number;
|
|
268
|
-
}
|
|
269
|
-
interface IServerSidePagination {
|
|
270
|
-
limit: number;
|
|
271
|
-
offset: number;
|
|
272
|
-
setLimit: Dispatch<SetStateAction<number>>;
|
|
273
|
-
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
|
-
}
|
|
285
110
|
interface IReportTemplate {
|
|
286
111
|
uuid: string;
|
|
287
112
|
name: string;
|
|
@@ -303,12 +128,6 @@ interface IReportTemplateFilterValue {
|
|
|
303
128
|
name?: string;
|
|
304
129
|
type: 'STRING' | 'ARRAY' | 'OBJECT' | 'BOOLEAN';
|
|
305
130
|
}
|
|
306
|
-
interface IReportTemplateData {
|
|
307
|
-
searchData: IAnyObject;
|
|
308
|
-
visibleColumns?: string[];
|
|
309
|
-
sorts?: string[];
|
|
310
|
-
}
|
|
311
|
-
declare const tableCustomLimit1000: number[];
|
|
312
131
|
|
|
313
132
|
interface IKeyboardAction {
|
|
314
133
|
key: string;
|
|
@@ -318,20 +137,6 @@ interface IKeyboardAction {
|
|
|
318
137
|
onBulkAction?: (itemUuids: string[]) => void;
|
|
319
138
|
disabled?: boolean;
|
|
320
139
|
}
|
|
321
|
-
interface ITableKeyboardActionsBase {
|
|
322
|
-
moveDisabled?: boolean;
|
|
323
|
-
editDisabled?: boolean;
|
|
324
|
-
delete?: {
|
|
325
|
-
enabled: boolean;
|
|
326
|
-
setItemToDeleteUuids: (itemUuids: string[]) => void;
|
|
327
|
-
onAction?: () => void;
|
|
328
|
-
};
|
|
329
|
-
additional?: (props: {
|
|
330
|
-
focusedRow: ITableDataItem | null;
|
|
331
|
-
isEditing: boolean;
|
|
332
|
-
isAdding: boolean;
|
|
333
|
-
}) => IKeyboardAction[];
|
|
334
|
-
}
|
|
335
140
|
|
|
336
141
|
interface IError {
|
|
337
142
|
errorMessage: string;
|
|
@@ -343,6 +148,46 @@ interface ISelectData extends IValueLabel {
|
|
|
343
148
|
disabled?: boolean;
|
|
344
149
|
[id: string]: any;
|
|
345
150
|
}
|
|
151
|
+
interface BaseSelectProps {
|
|
152
|
+
variant: 'basic' | 'async' | 'async-creatable';
|
|
153
|
+
label?: string;
|
|
154
|
+
value?: any;
|
|
155
|
+
isMulti?: boolean;
|
|
156
|
+
onChange: (value: any) => void;
|
|
157
|
+
required?: boolean;
|
|
158
|
+
disabled?: boolean;
|
|
159
|
+
placeholder?: string;
|
|
160
|
+
helperText?: string;
|
|
161
|
+
errorText?: string;
|
|
162
|
+
error?: boolean;
|
|
163
|
+
className?: string;
|
|
164
|
+
minWidth?: number;
|
|
165
|
+
menuWidth?: 'fit-content' | 'max-content' | number;
|
|
166
|
+
autoFocus?: boolean;
|
|
167
|
+
isClearable?: boolean;
|
|
168
|
+
isOpen?: boolean;
|
|
169
|
+
onMenuOpen?: () => void;
|
|
170
|
+
onMenuClose?: () => void;
|
|
171
|
+
openDirection?: 'top' | 'bottom' | 'auto';
|
|
172
|
+
closeMenuOnSelect?: boolean;
|
|
173
|
+
noOptionsMessage?: string;
|
|
174
|
+
formatOptionLabel?: (value: any) => any;
|
|
175
|
+
}
|
|
176
|
+
interface BasicSelectProps extends BaseSelectProps {
|
|
177
|
+
variant: 'basic';
|
|
178
|
+
options: ISelectData[];
|
|
179
|
+
}
|
|
180
|
+
interface AsyncSelectProps extends BaseSelectProps {
|
|
181
|
+
variant: 'async';
|
|
182
|
+
loadOptions: any;
|
|
183
|
+
defaultData?: ISelectData[];
|
|
184
|
+
}
|
|
185
|
+
interface CreatableSelectProps extends BaseSelectProps {
|
|
186
|
+
variant: 'async-creatable';
|
|
187
|
+
loadOptions: any;
|
|
188
|
+
onCreate: (inputValue: string) => void;
|
|
189
|
+
defaultData?: ISelectData[];
|
|
190
|
+
}
|
|
346
191
|
|
|
347
192
|
interface ITab {
|
|
348
193
|
value: string;
|
|
@@ -372,66 +217,160 @@ interface IHeaderAction {
|
|
|
372
217
|
hidden?: boolean;
|
|
373
218
|
}
|
|
374
219
|
|
|
375
|
-
interface
|
|
220
|
+
interface IRoute {
|
|
221
|
+
path: string;
|
|
222
|
+
element: ReactElement;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
interface IMenuItem {
|
|
226
|
+
label: string;
|
|
227
|
+
icon?: IconDefinition;
|
|
228
|
+
iconRotation?: RotateProp;
|
|
229
|
+
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
230
|
+
to?: string;
|
|
231
|
+
badge?: number;
|
|
232
|
+
disabled?: boolean;
|
|
233
|
+
hidden?: boolean;
|
|
234
|
+
withDevider?: boolean;
|
|
235
|
+
keepOpen?: boolean;
|
|
236
|
+
className?: string;
|
|
237
|
+
children?: ReactNode;
|
|
238
|
+
}
|
|
239
|
+
declare const MenuItem: react.ForwardRefExoticComponent<IMenuItem & react.RefAttributes<HTMLDivElement>>;
|
|
240
|
+
|
|
241
|
+
interface Props$j {
|
|
242
|
+
userName?: string;
|
|
243
|
+
organizationName?: string;
|
|
244
|
+
showBadge?: boolean;
|
|
245
|
+
menuItems?: IMenuItem[];
|
|
246
|
+
}
|
|
247
|
+
declare const UserMenu: FC<Props$j>;
|
|
248
|
+
|
|
249
|
+
interface Props$i {
|
|
250
|
+
modules: {
|
|
251
|
+
name: string;
|
|
252
|
+
icon: IconDefinition;
|
|
253
|
+
disabled?: boolean;
|
|
254
|
+
url: string;
|
|
255
|
+
}[];
|
|
256
|
+
activeModule: {
|
|
257
|
+
name: string;
|
|
258
|
+
icon: IconDefinition;
|
|
259
|
+
} | null;
|
|
260
|
+
}
|
|
261
|
+
declare const ModuleSelect: FC<Props$i>;
|
|
262
|
+
|
|
263
|
+
interface Props$h {
|
|
264
|
+
customTitle?: string;
|
|
265
|
+
modulesProps?: ComponentProps<typeof ModuleSelect>;
|
|
266
|
+
userMenuProps: ComponentProps<typeof UserMenu>;
|
|
267
|
+
children?: ReactNode;
|
|
268
|
+
}
|
|
269
|
+
declare const Header: FC<Props$h>;
|
|
270
|
+
|
|
271
|
+
interface ISidebarItem {
|
|
272
|
+
label: string;
|
|
273
|
+
icon?: IconDefinition;
|
|
274
|
+
to?: string;
|
|
275
|
+
content?: ISidebarSubItem[];
|
|
276
|
+
menu?: {
|
|
277
|
+
content: ISidebarSubItem[];
|
|
278
|
+
openedMenu: string;
|
|
279
|
+
setOpenedMenu: (label: string) => void;
|
|
280
|
+
};
|
|
281
|
+
hidden?: boolean;
|
|
282
|
+
badge?: number;
|
|
283
|
+
addUrl?: string;
|
|
284
|
+
}
|
|
285
|
+
interface ISidebarSubItem {
|
|
286
|
+
label: string;
|
|
287
|
+
to?: string;
|
|
288
|
+
content?: ISidebarItem[];
|
|
289
|
+
hidden?: boolean;
|
|
290
|
+
tooltip?: string;
|
|
291
|
+
badge?: number;
|
|
292
|
+
addUrl?: string;
|
|
293
|
+
primary?: boolean;
|
|
294
|
+
collapsed?: boolean;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
interface ISidebarProps {
|
|
298
|
+
items: ISidebarItem[][];
|
|
299
|
+
logo?: string;
|
|
300
|
+
appVersion?: string;
|
|
301
|
+
}
|
|
302
|
+
declare const Sidebar: FC<ISidebarProps>;
|
|
303
|
+
|
|
304
|
+
interface Props$g {
|
|
305
|
+
fullScreenRoutes: IRoute[];
|
|
306
|
+
appRoutes: IRoute[];
|
|
307
|
+
header: ComponentProps<typeof Header>;
|
|
308
|
+
sidebar: ComponentProps<typeof Sidebar>;
|
|
309
|
+
}
|
|
310
|
+
declare const Router: FC<Props$g>;
|
|
311
|
+
|
|
312
|
+
interface Props$f {
|
|
376
313
|
tabs: ITab[];
|
|
377
314
|
initialValue?: string;
|
|
378
315
|
compact?: boolean;
|
|
379
316
|
keepContentInDom?: boolean;
|
|
380
317
|
className?: string;
|
|
381
318
|
}
|
|
382
|
-
declare const Accordions: FC<Props$
|
|
319
|
+
declare const Accordions: FC<Props$f>;
|
|
320
|
+
|
|
321
|
+
type IInfoType = 'success' | 'info' | 'warning' | 'danger';
|
|
383
322
|
|
|
384
323
|
interface IAlertProps {
|
|
385
324
|
text?: string;
|
|
386
|
-
severity:
|
|
325
|
+
severity: IInfoType;
|
|
387
326
|
fitContent?: boolean;
|
|
388
327
|
className?: string;
|
|
389
328
|
children?: ReactNode;
|
|
390
329
|
}
|
|
391
330
|
declare const Alert: FC<IAlertProps>;
|
|
392
331
|
|
|
393
|
-
interface Props$
|
|
332
|
+
interface Props$e {
|
|
394
333
|
label: string;
|
|
395
|
-
color:
|
|
334
|
+
color: IInfoType | 'gray';
|
|
396
335
|
className?: string;
|
|
397
336
|
}
|
|
398
|
-
declare const DotBadge: FC<Props$
|
|
337
|
+
declare const DotBadge: FC<Props$e>;
|
|
399
338
|
|
|
400
|
-
interface Props$
|
|
339
|
+
interface Props$d {
|
|
401
340
|
number?: number;
|
|
402
341
|
className?: string;
|
|
403
342
|
small?: boolean;
|
|
404
343
|
children?: ReactNode;
|
|
405
|
-
color?:
|
|
344
|
+
color?: IInfoType | 'primary';
|
|
406
345
|
}
|
|
407
|
-
declare const NotificationBadge: FC<Props$
|
|
346
|
+
declare const NotificationBadge: FC<Props$d>;
|
|
408
347
|
|
|
409
|
-
interface Props$
|
|
348
|
+
interface Props$c {
|
|
410
349
|
label: string;
|
|
411
|
-
color:
|
|
350
|
+
color: IInfoType | 'gray';
|
|
412
351
|
className?: string;
|
|
413
352
|
}
|
|
414
|
-
declare const PillBadge: react.ForwardRefExoticComponent<Props$
|
|
353
|
+
declare const PillBadge: react.ForwardRefExoticComponent<Props$c & react.RefAttributes<HTMLDivElement>>;
|
|
415
354
|
|
|
416
|
-
interface
|
|
355
|
+
interface IIconButtonProps {
|
|
417
356
|
icon: IconDefinition;
|
|
418
357
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
419
|
-
|
|
420
|
-
className?: string;
|
|
358
|
+
variant?: IButtonVariant;
|
|
421
359
|
color?: IButtonColor;
|
|
422
|
-
|
|
360
|
+
size?: 's' | 'm' | 'l';
|
|
361
|
+
disabled?: boolean;
|
|
423
362
|
active?: boolean;
|
|
424
363
|
tooltip?: string;
|
|
364
|
+
className?: string;
|
|
425
365
|
buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
426
|
-
size?: 's';
|
|
427
366
|
}
|
|
428
|
-
declare const IconButton: react.ForwardRefExoticComponent<
|
|
367
|
+
declare const IconButton: react.ForwardRefExoticComponent<IIconButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
429
368
|
|
|
430
369
|
declare const Dashboard: FC<{
|
|
431
370
|
children: ReactNode;
|
|
432
371
|
}>;
|
|
433
372
|
|
|
434
|
-
interface Props$
|
|
373
|
+
interface Props$b {
|
|
435
374
|
title: string;
|
|
436
375
|
icon?: any;
|
|
437
376
|
type?: 'warning' | 'info';
|
|
@@ -439,27 +378,27 @@ interface Props$r {
|
|
|
439
378
|
isLoading?: boolean;
|
|
440
379
|
children: ReactNode;
|
|
441
380
|
}
|
|
442
|
-
declare const DashboardWidget: FC<Props$
|
|
381
|
+
declare const DashboardWidget: FC<Props$b>;
|
|
443
382
|
|
|
444
|
-
interface Props$
|
|
383
|
+
interface Props$a {
|
|
445
384
|
links: {
|
|
446
385
|
icon?: IconDefinition;
|
|
447
386
|
label: string;
|
|
448
387
|
onClick: () => void;
|
|
449
388
|
}[];
|
|
450
389
|
}
|
|
451
|
-
declare const FastLinksWidget: FC<Props$
|
|
390
|
+
declare const FastLinksWidget: FC<Props$a>;
|
|
452
391
|
|
|
453
|
-
interface Props$
|
|
392
|
+
interface Props$9 {
|
|
454
393
|
textId: string;
|
|
455
394
|
itemUuid: string;
|
|
456
395
|
setItemUuid: Dispatch<SetStateAction<string>>;
|
|
457
396
|
reloadItems: () => void;
|
|
458
397
|
deleteItemFunction: (itemUuid: string) => Promise<any>;
|
|
459
398
|
}
|
|
460
|
-
declare const DeleteItemDialog: FC<Props$
|
|
399
|
+
declare const DeleteItemDialog: FC<Props$9>;
|
|
461
400
|
|
|
462
|
-
interface Props$
|
|
401
|
+
interface Props$8 {
|
|
463
402
|
title?: string;
|
|
464
403
|
titleEl?: ReactNode;
|
|
465
404
|
desc?: string;
|
|
@@ -488,29 +427,28 @@ interface Props$o {
|
|
|
488
427
|
disabled?: boolean;
|
|
489
428
|
keepOpen?: boolean;
|
|
490
429
|
color?: IButtonColor;
|
|
491
|
-
|
|
430
|
+
variant?: IButtonVariant;
|
|
492
431
|
};
|
|
493
432
|
hideActionButtons?: boolean;
|
|
494
433
|
isKeyboardDisabled?: boolean;
|
|
495
434
|
noBackgroundClick?: boolean;
|
|
496
435
|
noOverflow?: boolean;
|
|
497
|
-
type?:
|
|
436
|
+
type?: IInfoType;
|
|
498
437
|
size?: 'm' | 'l' | 'xl';
|
|
499
|
-
noPadding?: boolean;
|
|
500
438
|
className?: string;
|
|
501
439
|
children?: ReactNode;
|
|
502
440
|
}
|
|
503
|
-
declare const Dialog: FC<Props$
|
|
441
|
+
declare const Dialog: FC<Props$8>;
|
|
504
442
|
|
|
505
|
-
interface Props$
|
|
443
|
+
interface Props$7 {
|
|
506
444
|
isOpen: boolean;
|
|
507
445
|
children: ReactNode;
|
|
508
446
|
keepContentInDom?: boolean;
|
|
509
447
|
className?: string;
|
|
510
448
|
}
|
|
511
|
-
declare const Collapse: FC<Props$
|
|
449
|
+
declare const Collapse: FC<Props$7>;
|
|
512
450
|
|
|
513
|
-
interface
|
|
451
|
+
interface ICheckboxProps {
|
|
514
452
|
label?: string;
|
|
515
453
|
value?: boolean | 'middle';
|
|
516
454
|
setValue: (checked: boolean) => void;
|
|
@@ -520,9 +458,9 @@ interface Props$m {
|
|
|
520
458
|
tooltip?: string;
|
|
521
459
|
children?: ReactNode;
|
|
522
460
|
}
|
|
523
|
-
declare const Checkbox: react.ForwardRefExoticComponent<
|
|
461
|
+
declare const Checkbox: react.ForwardRefExoticComponent<ICheckboxProps & react.RefAttributes<HTMLLabelElement>>;
|
|
524
462
|
|
|
525
|
-
interface
|
|
463
|
+
interface ICurrencyInputProps {
|
|
526
464
|
label?: string;
|
|
527
465
|
value?: string | number;
|
|
528
466
|
setValue: (value: string) => void;
|
|
@@ -536,37 +474,41 @@ interface Props$l {
|
|
|
536
474
|
className?: string;
|
|
537
475
|
allowNegative?: boolean;
|
|
538
476
|
decimalPlaces?: number;
|
|
539
|
-
|
|
477
|
+
align?: 'left' | 'right';
|
|
540
478
|
endText?: string;
|
|
541
479
|
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
480
|
+
isClearable?: boolean;
|
|
542
481
|
}
|
|
543
|
-
declare const CurrencyInput: react.ForwardRefExoticComponent<
|
|
482
|
+
declare const CurrencyInput: react.ForwardRefExoticComponent<ICurrencyInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
544
483
|
|
|
545
|
-
interface
|
|
484
|
+
interface IDateInputProps {
|
|
546
485
|
label?: string;
|
|
547
486
|
date?: string;
|
|
548
487
|
setDate: (date: string) => void;
|
|
549
488
|
required?: boolean;
|
|
550
489
|
disabled?: boolean;
|
|
551
490
|
autoFocus?: boolean;
|
|
552
|
-
helperText?: string;
|
|
553
491
|
error?: boolean;
|
|
492
|
+
helperText?: string;
|
|
493
|
+
errorText?: string;
|
|
494
|
+
isClearable?: boolean;
|
|
554
495
|
className?: string;
|
|
555
496
|
calendarPlacementX?: 'left' | 'right';
|
|
556
497
|
}
|
|
557
|
-
declare const DateInput:
|
|
498
|
+
declare const DateInput: FC<IDateInputProps>;
|
|
558
499
|
|
|
559
|
-
interface
|
|
500
|
+
interface ITimeInputProps {
|
|
560
501
|
time: string;
|
|
561
502
|
setTime: (newTime: string) => void;
|
|
562
503
|
label?: string;
|
|
563
504
|
disabled?: boolean;
|
|
564
505
|
required?: boolean;
|
|
506
|
+
isClearable?: boolean;
|
|
565
507
|
className?: string;
|
|
566
508
|
}
|
|
567
|
-
declare const TimeInput: FC<
|
|
509
|
+
declare const TimeInput: FC<ITimeInputProps>;
|
|
568
510
|
|
|
569
|
-
interface
|
|
511
|
+
interface ITextAreaInputProps {
|
|
570
512
|
label: string;
|
|
571
513
|
value?: string;
|
|
572
514
|
setValue: (value: string) => void;
|
|
@@ -574,6 +516,7 @@ interface Props$j {
|
|
|
574
516
|
disabled?: boolean;
|
|
575
517
|
autoFocus?: boolean;
|
|
576
518
|
rows?: number;
|
|
519
|
+
resize?: boolean;
|
|
577
520
|
placeholder?: string;
|
|
578
521
|
helperText?: string;
|
|
579
522
|
errorText?: string;
|
|
@@ -581,9 +524,9 @@ interface Props$j {
|
|
|
581
524
|
inputProps?: InputHTMLAttributes<HTMLTextAreaElement>;
|
|
582
525
|
error?: boolean;
|
|
583
526
|
}
|
|
584
|
-
declare const
|
|
527
|
+
declare const TextAreaInput: react.ForwardRefExoticComponent<ITextAreaInputProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
585
528
|
|
|
586
|
-
interface
|
|
529
|
+
interface INumberInputProps {
|
|
587
530
|
label?: string;
|
|
588
531
|
value?: string | number;
|
|
589
532
|
setValue: (value: string) => void;
|
|
@@ -591,6 +534,8 @@ interface Props$i {
|
|
|
591
534
|
disabled?: boolean;
|
|
592
535
|
autoFocus?: boolean;
|
|
593
536
|
placeholder?: string;
|
|
537
|
+
endText?: string;
|
|
538
|
+
isClearable?: boolean;
|
|
594
539
|
helperText?: string;
|
|
595
540
|
errorText?: string;
|
|
596
541
|
error?: boolean;
|
|
@@ -598,43 +543,29 @@ interface Props$i {
|
|
|
598
543
|
allowNegative?: boolean;
|
|
599
544
|
decimalPlaces?: number;
|
|
600
545
|
align?: 'left' | 'right';
|
|
601
|
-
endText?: string;
|
|
602
546
|
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
603
547
|
}
|
|
604
|
-
declare const NumberInput: react.ForwardRefExoticComponent<
|
|
548
|
+
declare const NumberInput: react.ForwardRefExoticComponent<INumberInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
605
549
|
|
|
606
|
-
interface
|
|
607
|
-
id?: string;
|
|
550
|
+
interface IPasswordInputProps {
|
|
608
551
|
label?: string;
|
|
609
552
|
value?: string;
|
|
610
553
|
setValue?: (value: string) => void;
|
|
611
554
|
required?: boolean;
|
|
612
555
|
disabled?: boolean;
|
|
613
|
-
|
|
614
|
-
|
|
556
|
+
isClearable?: boolean;
|
|
557
|
+
pattern?: string;
|
|
615
558
|
helperText?: string;
|
|
616
559
|
errorText?: string;
|
|
617
|
-
className?: string;
|
|
618
|
-
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
619
|
-
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
620
|
-
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
621
560
|
error?: boolean;
|
|
622
|
-
|
|
623
|
-
endButton?: {
|
|
624
|
-
icon: IconDefinition;
|
|
625
|
-
onClick: () => void;
|
|
626
|
-
disabled?: boolean;
|
|
627
|
-
};
|
|
628
|
-
}
|
|
629
|
-
declare const TextInput: react.ForwardRefExoticComponent<ITextInput & react.RefAttributes<HTMLInputElement>>;
|
|
630
|
-
|
|
631
|
-
interface IProps$1 extends ITextInput {
|
|
561
|
+
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
632
562
|
newPassword?: boolean;
|
|
633
563
|
}
|
|
634
|
-
declare const PasswordInput: FC<
|
|
564
|
+
declare const PasswordInput: FC<IPasswordInputProps>;
|
|
635
565
|
|
|
636
|
-
interface
|
|
566
|
+
interface IRadioProps {
|
|
637
567
|
label?: string;
|
|
568
|
+
desc?: string;
|
|
638
569
|
value: string | number | boolean;
|
|
639
570
|
selected: string | number | boolean | undefined | null;
|
|
640
571
|
setSelected: (selected: any) => void;
|
|
@@ -644,9 +575,9 @@ interface Props$h {
|
|
|
644
575
|
className?: string;
|
|
645
576
|
children?: ReactNode;
|
|
646
577
|
}
|
|
647
|
-
declare const Radio: react.ForwardRefExoticComponent<
|
|
578
|
+
declare const Radio: react.ForwardRefExoticComponent<IRadioProps & react.RefAttributes<HTMLDivElement>>;
|
|
648
579
|
|
|
649
|
-
interface Props$
|
|
580
|
+
interface Props$6 {
|
|
650
581
|
title?: string | ReactElement;
|
|
651
582
|
desc?: string | ReactElement;
|
|
652
583
|
value: string;
|
|
@@ -656,94 +587,49 @@ interface Props$g {
|
|
|
656
587
|
className?: string;
|
|
657
588
|
children?: ReactNode;
|
|
658
589
|
}
|
|
659
|
-
declare const RadioLarge: FC<Props$
|
|
590
|
+
declare const RadioLarge: FC<Props$6>;
|
|
660
591
|
|
|
661
592
|
interface IProps {
|
|
593
|
+
label?: string;
|
|
662
594
|
onSearch: (searchText: string) => void;
|
|
595
|
+
onClear?: () => void;
|
|
663
596
|
className?: string;
|
|
664
597
|
}
|
|
665
598
|
declare const SearchInput: FC<IProps>;
|
|
666
599
|
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
value?: ISelectData | null;
|
|
671
|
-
valuesMulti?: ISelectData[];
|
|
672
|
-
onChange: (value: any) => void;
|
|
673
|
-
required?: boolean;
|
|
674
|
-
disabled?: boolean;
|
|
675
|
-
placeholder?: string;
|
|
676
|
-
helperText?: string;
|
|
677
|
-
className?: string;
|
|
678
|
-
minWidth?: number;
|
|
679
|
-
menuWidth?: 'fit-content' | 'max-content' | number;
|
|
680
|
-
autoFocus?: boolean;
|
|
681
|
-
isClearable?: boolean;
|
|
682
|
-
isOpen?: boolean;
|
|
683
|
-
onMenuOpen?: () => void;
|
|
684
|
-
onMenuClose?: () => void;
|
|
685
|
-
openDirection?: 'top' | 'auto' | 'bottom';
|
|
686
|
-
noOptionsMessage?: string;
|
|
687
|
-
error?: boolean;
|
|
688
|
-
}
|
|
689
|
-
declare const Select: react.ForwardRefExoticComponent<Props$f & react.RefAttributes<any>>;
|
|
600
|
+
declare const Select: react.ForwardRefExoticComponent<Omit<BasicSelectProps, "variant"> & react.RefAttributes<any>>;
|
|
601
|
+
declare const SelectAsyncPaginate: react.ForwardRefExoticComponent<Omit<AsyncSelectProps, "variant"> & react.RefAttributes<any>>;
|
|
602
|
+
declare const SelectCreatable: react.ForwardRefExoticComponent<Omit<CreatableSelectProps, "variant"> & react.RefAttributes<any>>;
|
|
690
603
|
|
|
691
|
-
interface
|
|
604
|
+
interface ITextInputProps {
|
|
605
|
+
id?: string;
|
|
692
606
|
label?: string;
|
|
693
|
-
value?:
|
|
694
|
-
|
|
695
|
-
loadOptions: any;
|
|
696
|
-
refresh?: any[];
|
|
697
|
-
onChange: (value: any) => void;
|
|
607
|
+
value?: string;
|
|
608
|
+
setValue?: (value: string) => void;
|
|
698
609
|
required?: boolean;
|
|
699
610
|
disabled?: boolean;
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
isMulti?: boolean;
|
|
611
|
+
endText?: string;
|
|
612
|
+
endButton?: {
|
|
613
|
+
icon: IconDefinition;
|
|
614
|
+
onClick: () => void;
|
|
615
|
+
disabled?: boolean;
|
|
616
|
+
};
|
|
707
617
|
isClearable?: boolean;
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
onMenuClose?: () => void;
|
|
711
|
-
openDirection?: 'top' | 'auto' | 'bottom';
|
|
712
|
-
noOptionsMessage?: string;
|
|
713
|
-
error?: boolean;
|
|
714
|
-
}
|
|
715
|
-
declare const SelectAsyncPaginate: react.ForwardRefExoticComponent<Props$e & react.RefAttributes<any>>;
|
|
716
|
-
|
|
717
|
-
interface Props$d {
|
|
718
|
-
label?: string;
|
|
719
|
-
value?: ISelectData | null;
|
|
720
|
-
valuesMulti?: ISelectData[];
|
|
721
|
-
loadOptions: any;
|
|
722
|
-
refresh?: any[];
|
|
723
|
-
onChange: (value: any) => void;
|
|
724
|
-
onCreate: (inputValue: string) => void;
|
|
725
|
-
required?: boolean;
|
|
726
|
-
disabled?: boolean;
|
|
618
|
+
onClear?: () => void;
|
|
619
|
+
autoFocus?: boolean;
|
|
727
620
|
placeholder?: string;
|
|
621
|
+
pattern?: string;
|
|
728
622
|
helperText?: string;
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
autoFocus?: boolean;
|
|
733
|
-
isMulti?: boolean;
|
|
734
|
-
isClearable?: boolean;
|
|
735
|
-
isOpen?: boolean;
|
|
736
|
-
onMenuOpen?: () => void;
|
|
737
|
-
onMenuClose?: () => void;
|
|
738
|
-
openDirection?: 'top' | 'auto' | 'bottom';
|
|
739
|
-
noOptionsMessage?: string;
|
|
623
|
+
errorText?: string;
|
|
624
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
625
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
740
626
|
error?: boolean;
|
|
741
|
-
|
|
742
|
-
|
|
627
|
+
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
628
|
+
className?: string;
|
|
743
629
|
}
|
|
744
|
-
declare const
|
|
630
|
+
declare const TextInput: react.ForwardRefExoticComponent<ITextInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
745
631
|
|
|
746
|
-
interface Props$
|
|
632
|
+
interface Props$5 {
|
|
747
633
|
isLoading: boolean;
|
|
748
634
|
isFullPage?: boolean;
|
|
749
635
|
classNameLoader?: string;
|
|
@@ -752,92 +638,22 @@ interface Props$c {
|
|
|
752
638
|
children: ReactElement | ReactNode;
|
|
753
639
|
}>;
|
|
754
640
|
}
|
|
755
|
-
declare const Loader: FC<Props$
|
|
641
|
+
declare const Loader: FC<Props$5>;
|
|
756
642
|
declare const FullScreenLoader: FC<{
|
|
757
643
|
isLoading: boolean;
|
|
758
644
|
}>;
|
|
759
645
|
declare const LazyLoader: FC;
|
|
760
646
|
|
|
761
|
-
interface Props$
|
|
762
|
-
|
|
763
|
-
onClose: () => void;
|
|
647
|
+
interface Props$4 {
|
|
648
|
+
id: string;
|
|
764
649
|
renderButton: (ref: RefObject<any>) => ReactNode;
|
|
765
|
-
|
|
766
|
-
|
|
650
|
+
items: IMenuItem[];
|
|
651
|
+
placement?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
767
652
|
size?: 's' | 'm' | 'l';
|
|
768
653
|
className?: string;
|
|
769
|
-
|
|
770
|
-
}
|
|
771
|
-
declare const Menu: FC<Props$b>;
|
|
772
|
-
|
|
773
|
-
interface Props$a {
|
|
774
|
-
label?: string;
|
|
775
|
-
icon?: IconDefinition;
|
|
776
|
-
iconRotation?: RotateProp;
|
|
777
|
-
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
778
|
-
to?: string;
|
|
779
|
-
disabled?: boolean;
|
|
780
|
-
withDevider?: boolean;
|
|
781
|
-
className?: string;
|
|
782
|
-
children?: ReactNode;
|
|
654
|
+
classNameItem?: string;
|
|
783
655
|
}
|
|
784
|
-
declare const
|
|
785
|
-
|
|
786
|
-
interface Props$9 {
|
|
787
|
-
item: any;
|
|
788
|
-
setSelectedItem?: (item: any) => void;
|
|
789
|
-
setItemToDeleteUuid?: (uuid: string) => void;
|
|
790
|
-
actions?: {
|
|
791
|
-
label: string;
|
|
792
|
-
onClick: (uuid: string) => void;
|
|
793
|
-
hidden?: boolean;
|
|
794
|
-
disabled?: boolean;
|
|
795
|
-
}[];
|
|
796
|
-
}
|
|
797
|
-
declare const ItemActionsMenu: FC<Props$9>;
|
|
798
|
-
|
|
799
|
-
interface Props$8 {
|
|
800
|
-
setData: (item: any) => void;
|
|
801
|
-
clearItem: () => void;
|
|
802
|
-
inputFocusRef?: RefObject<any>;
|
|
803
|
-
defaultDataValue?: any;
|
|
804
|
-
}
|
|
805
|
-
declare const ItemEditOptionsButtons: FC<Props$8>;
|
|
806
|
-
|
|
807
|
-
declare const TableEditRow: FC<ITableEditRow>;
|
|
808
|
-
|
|
809
|
-
interface Props$7 {
|
|
810
|
-
item: ITableFilterItem;
|
|
811
|
-
}
|
|
812
|
-
declare const FilterItem: FC<Props$7>;
|
|
813
|
-
|
|
814
|
-
interface Props$6 extends ITableFilterData {
|
|
815
|
-
isOpen: boolean;
|
|
816
|
-
onClose: () => void;
|
|
817
|
-
}
|
|
818
|
-
declare const SetTableFilter: FC<Props$6>;
|
|
819
|
-
|
|
820
|
-
interface Props$5 {
|
|
821
|
-
pagination: IServerSidePagination;
|
|
822
|
-
noTotalRows?: boolean;
|
|
823
|
-
dataLength: number;
|
|
824
|
-
footerAction?: {
|
|
825
|
-
icon?: IconDefinition;
|
|
826
|
-
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
827
|
-
};
|
|
828
|
-
customLimit?: number[];
|
|
829
|
-
}
|
|
830
|
-
declare const TableFooter: FC<Props$5>;
|
|
831
|
-
|
|
832
|
-
declare const Table: FC<ITable>;
|
|
833
|
-
|
|
834
|
-
interface Props$4 extends IPrintData {
|
|
835
|
-
isOpen: boolean;
|
|
836
|
-
onClose: () => void;
|
|
837
|
-
columns: ITableColumn[];
|
|
838
|
-
excludeColumnIds?: string[];
|
|
839
|
-
}
|
|
840
|
-
declare const TablePrint: FC<Props$4>;
|
|
656
|
+
declare const Menu: FC<Props$4>;
|
|
841
657
|
|
|
842
658
|
interface Props$3 {
|
|
843
659
|
tabs: ITab[];
|
|
@@ -853,16 +669,16 @@ interface Props$3 {
|
|
|
853
669
|
}
|
|
854
670
|
declare const Tabs: FC<Props$3>;
|
|
855
671
|
|
|
856
|
-
type
|
|
672
|
+
type TooltipPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
857
673
|
interface Props$2 {
|
|
858
674
|
label?: string;
|
|
859
|
-
position?:
|
|
675
|
+
position?: TooltipPosition;
|
|
860
676
|
disabled?: boolean;
|
|
861
677
|
singleLine?: boolean;
|
|
862
678
|
className?: string;
|
|
863
679
|
children: ReactElement;
|
|
864
680
|
}
|
|
865
|
-
declare const Tooltip:
|
|
681
|
+
declare const Tooltip: react.ForwardRefExoticComponent<Props$2 & react.RefAttributes<HTMLElement>>;
|
|
866
682
|
|
|
867
683
|
interface Props$1 {
|
|
868
684
|
data: ITreeItem[];
|
|
@@ -878,10 +694,10 @@ interface Props {
|
|
|
878
694
|
}
|
|
879
695
|
declare const ConditionalWrapper: FC<Props>;
|
|
880
696
|
|
|
881
|
-
interface
|
|
697
|
+
interface IPageLayoutProps {
|
|
882
698
|
breadcrumbs: (string | undefined)[];
|
|
883
699
|
actions?: IHeaderAction[];
|
|
884
|
-
moreActions?:
|
|
700
|
+
moreActions?: IMenuItem[];
|
|
885
701
|
backButton?: {
|
|
886
702
|
url?: string;
|
|
887
703
|
active: boolean;
|
|
@@ -895,28 +711,29 @@ interface IPageWrapper {
|
|
|
895
711
|
isLoading?: boolean;
|
|
896
712
|
children?: ReactNode;
|
|
897
713
|
}
|
|
898
|
-
declare const
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
declare const
|
|
902
|
-
declare const
|
|
903
|
-
declare const
|
|
904
|
-
declare const
|
|
905
|
-
declare const
|
|
906
|
-
declare const
|
|
907
|
-
declare const
|
|
908
|
-
declare const
|
|
714
|
+
declare const PageLayout: FC<IPageLayoutProps>;
|
|
715
|
+
|
|
716
|
+
type inputDate = string | Date | dayjs.Dayjs;
|
|
717
|
+
declare const formatDate: (date?: inputDate) => string;
|
|
718
|
+
declare const formatDateYMD: (date: inputDate) => string;
|
|
719
|
+
declare const formatDateAndTime: (date?: inputDate, withSeconds?: boolean) => string;
|
|
720
|
+
declare const formatTime: (date?: inputDate, withSeconds?: boolean) => string;
|
|
721
|
+
declare const dateAddDays: (date: inputDate, addDays: number) => string;
|
|
722
|
+
declare const checkIfExpired: (date?: inputDate) => boolean;
|
|
723
|
+
declare const getCurrentDateFormatted: () => string;
|
|
724
|
+
declare const getCurrentDateFormattedYMD: () => string;
|
|
725
|
+
declare const getDaysLeft: (date?: inputDate) => number;
|
|
909
726
|
declare const formatYearMonth: (year: number, month: number) => string;
|
|
910
727
|
|
|
911
728
|
declare const sizeInBytesPretty: (bytes?: number) => string;
|
|
912
729
|
declare const dataURLtoFile: (dataUrl: string, filename: string, fileExt: string) => File;
|
|
913
730
|
declare const getExtensionFromFilename: (filename?: string) => string;
|
|
914
731
|
declare const calculateFilesSize: (filesList: any[], selectedFiles: IBooleanObject) => any;
|
|
915
|
-
declare const downloadDocumentFile: (fileName: string, url: string, type:
|
|
732
|
+
declare const downloadDocumentFile: (fileName: string, url: string, type: "pdf" | "xml" | "xlsx", apiUrl?: string, search?: any) => void;
|
|
916
733
|
declare const getFileFromUrl: (url: string, name: string) => Promise<File>;
|
|
917
734
|
declare const getBase64FromFile: (file: Blob) => Promise<string>;
|
|
918
735
|
declare const getBase64FromUrl: (url: string) => Promise<string>;
|
|
919
|
-
declare const splitBase64File: (base64: string, type?:
|
|
736
|
+
declare const splitBase64File: (base64: string, type?: "img") => {
|
|
920
737
|
contentType: string;
|
|
921
738
|
base64Data: string;
|
|
922
739
|
};
|
|
@@ -963,7 +780,7 @@ declare const convertArrayToBooleanObject: (arr?: string[]) => {
|
|
|
963
780
|
};
|
|
964
781
|
declare const deepCopy: (el: any[] | object) => any;
|
|
965
782
|
declare const areStringArraysEqual: (arr1: string[], arr2: string[]) => boolean;
|
|
966
|
-
declare const compareArrayItemsIndex: <T>(array: T[] | readonly T[], item1: T, comparison:
|
|
783
|
+
declare const compareArrayItemsIndex: <T>(array: T[] | readonly T[], item1: T, comparison: "greaterThan" | "greaterThanOrEqualTo" | "lessThan" | "lessThanOrEqualTo", item2: T) => boolean;
|
|
967
784
|
declare const intersectArrays: <T>(arr1: any[] | readonly T[], arr2: any[] | readonly T[]) => T[];
|
|
968
785
|
|
|
969
786
|
declare const getActiveFilterNumber: (obj: IAnyObject) => number;
|
|
@@ -973,9 +790,9 @@ declare const convertSearchToReportTemplateFilter: (search: IAnyObject) => IRepo
|
|
|
973
790
|
declare const convertReportTemplateFilterToSearch: (filterValues: IReportTemplateFilterValue[]) => any;
|
|
974
791
|
declare const setTemplateData: ({ template, columnsData, setFilters, setSort, }: {
|
|
975
792
|
template: IReportTemplate;
|
|
976
|
-
columnsData?: ITableColumnsData
|
|
977
|
-
setFilters?: (
|
|
978
|
-
setSort?: (
|
|
793
|
+
columnsData?: ITableColumnsData;
|
|
794
|
+
setFilters?: (filters: IAnyObject) => void;
|
|
795
|
+
setSort?: (sort: string) => void;
|
|
979
796
|
}) => void;
|
|
980
797
|
|
|
981
798
|
declare const rootDir: HTMLElement;
|
|
@@ -1060,7 +877,14 @@ declare const i18nIUILatin: {
|
|
|
1060
877
|
DeletedSuccessfully: string;
|
|
1061
878
|
ErrorMessage: string;
|
|
1062
879
|
TryAgain: string;
|
|
880
|
+
ReturnToHomepage: string;
|
|
881
|
+
FooterText: string;
|
|
882
|
+
PageNotFound: string;
|
|
883
|
+
PageNotFoundInfo: string;
|
|
884
|
+
NoAccessPage: string;
|
|
885
|
+
NoAccessPageInfo: string;
|
|
1063
886
|
};
|
|
887
|
+
|
|
1064
888
|
declare const i18nIUICyrilic: {
|
|
1065
889
|
Actions: string;
|
|
1066
890
|
Active: string;
|
|
@@ -1121,6 +945,7 @@ declare const i18nIUICyrilic: {
|
|
|
1121
945
|
CreateTemplate: string;
|
|
1122
946
|
DeleteTemplateDesc: string;
|
|
1123
947
|
DeleteTemplateTitle: string;
|
|
948
|
+
FastLinks: string;
|
|
1124
949
|
CharMin: string;
|
|
1125
950
|
CharRange: string;
|
|
1126
951
|
CharNumber: string;
|
|
@@ -1129,29 +954,100 @@ declare const i18nIUICyrilic: {
|
|
|
1129
954
|
DeletedSuccessfully: string;
|
|
1130
955
|
ErrorMessage: string;
|
|
1131
956
|
TryAgain: string;
|
|
957
|
+
ReturnToHomepage: string;
|
|
958
|
+
FooterText: string;
|
|
959
|
+
PageNotFound: string;
|
|
960
|
+
PageNotFoundInfo: string;
|
|
961
|
+
NoAccessPage: string;
|
|
962
|
+
NoAccessPageInfo: string;
|
|
1132
963
|
};
|
|
1133
964
|
|
|
1134
|
-
declare const
|
|
1135
|
-
|
|
1136
|
-
|
|
965
|
+
declare const i18nIUIMe: {
|
|
966
|
+
Actions: string;
|
|
967
|
+
Active: string;
|
|
968
|
+
AddInput: string;
|
|
969
|
+
Back: string;
|
|
970
|
+
Cancel: string;
|
|
971
|
+
Change: string;
|
|
972
|
+
Choose: string;
|
|
973
|
+
Close: string;
|
|
974
|
+
Confirm: string;
|
|
975
|
+
Create: string;
|
|
976
|
+
Delete: string;
|
|
977
|
+
Edit: string;
|
|
978
|
+
FreeText: string;
|
|
979
|
+
from: string;
|
|
980
|
+
Group: string;
|
|
981
|
+
Groups: string;
|
|
982
|
+
Next: string;
|
|
983
|
+
No: string;
|
|
984
|
+
Ok: string;
|
|
985
|
+
Options: string;
|
|
986
|
+
or: string;
|
|
987
|
+
Save: string;
|
|
988
|
+
Search: string;
|
|
989
|
+
Selected: string;
|
|
990
|
+
Send: string;
|
|
991
|
+
Sending: string;
|
|
992
|
+
Title: string;
|
|
993
|
+
to: string;
|
|
994
|
+
Yes: string;
|
|
995
|
+
RefreshData: string;
|
|
996
|
+
allResults: string;
|
|
997
|
+
Columns: string;
|
|
998
|
+
DragDropListsInfo: string;
|
|
999
|
+
Filter: string;
|
|
1000
|
+
HiddenColumns: string;
|
|
1001
|
+
NoResults: string;
|
|
1002
|
+
of: string;
|
|
1003
|
+
page: string;
|
|
1004
|
+
Print: string;
|
|
1005
|
+
PrintDate: string;
|
|
1006
|
+
PrintExport: string;
|
|
1007
|
+
ResetFilter: string;
|
|
1008
|
+
rowsPerPage: string;
|
|
1009
|
+
SaveXlsx: string;
|
|
1010
|
+
SelectedColumns: string;
|
|
1011
|
+
Sort: string;
|
|
1012
|
+
AddItem: string;
|
|
1013
|
+
Templates: string;
|
|
1014
|
+
SelectTemplate: string;
|
|
1015
|
+
TemplateList: string;
|
|
1016
|
+
PublicTemplate: string;
|
|
1017
|
+
PublicTemplates: string;
|
|
1018
|
+
DefaultTemplate: string;
|
|
1019
|
+
RemoveFiltersAndLook: string;
|
|
1020
|
+
CreateTemplateLong: string;
|
|
1021
|
+
CreateDefaultTemplate: string;
|
|
1022
|
+
CreateTemplate: string;
|
|
1023
|
+
DeleteTemplateDesc: string;
|
|
1024
|
+
DeleteTemplateTitle: string;
|
|
1025
|
+
FastLinks: string;
|
|
1026
|
+
CharMin: string;
|
|
1027
|
+
CharRange: string;
|
|
1028
|
+
CharNumber: string;
|
|
1029
|
+
Pending: string;
|
|
1030
|
+
Successfully: string;
|
|
1031
|
+
DeletedSuccessfully: string;
|
|
1032
|
+
ErrorMessage: string;
|
|
1033
|
+
TryAgain: string;
|
|
1034
|
+
ReturnToHomepage: string;
|
|
1035
|
+
FooterText: string;
|
|
1036
|
+
PageNotFound: string;
|
|
1037
|
+
PageNotFoundInfo: string;
|
|
1038
|
+
NoAccessPage: string;
|
|
1039
|
+
NoAccessPageInfo: string;
|
|
1137
1040
|
};
|
|
1138
1041
|
|
|
1139
|
-
declare const useHideZendesk: () => void;
|
|
1140
|
-
|
|
1141
1042
|
declare const useOnEsc: (onEsc: () => void, disabled?: boolean) => void;
|
|
1142
1043
|
|
|
1143
1044
|
declare const useDialogObserver: () => boolean;
|
|
1144
1045
|
|
|
1145
|
-
declare const useTableSelect: () => {
|
|
1146
|
-
selectedRows: Set<string>;
|
|
1147
|
-
setSelectedRows: react.Dispatch<react.SetStateAction<Set<string>>>;
|
|
1148
|
-
resetSelectedRows: () => void;
|
|
1149
|
-
};
|
|
1150
|
-
|
|
1151
1046
|
declare const useIsMenuOpen: () => {
|
|
1152
1047
|
isMenuOpen: boolean;
|
|
1153
1048
|
onMenuOpen: () => void;
|
|
1154
|
-
onMenuClose: () =>
|
|
1049
|
+
onMenuClose: () => number;
|
|
1155
1050
|
};
|
|
1156
1051
|
|
|
1157
|
-
export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CurrencyInput, Dashboard, DashboardWidget, DateInput,
|
|
1052
|
+
export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CurrencyInput, Dashboard, DashboardWidget, DateInput, DeleteItemDialog, Dialog, DotBadge, FastLinksWidget, FormWrapper, FullScreenLoader, IconButton, LazyLoader, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageLayout, PasswordInput, PillBadge, Radio, RadioLarge, Router, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, 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, toastError, toastSuccess, useDialogObserver, useIsMenuOpen, useOnEsc };
|
|
1053
|
+
export type { DeepPartial, IAlertProps, IAnyObject, IBooleanObject, IError, IFormWrapper, IHeaderAction, IKeyboardAction, IRoute, ISelectData, ISimpleObject, ISimpleObjectWithCode, IStringObject, ITab, ITreeItem, IValueLabel };
|