@inceptionbg/iui 1.0.22 → 1.0.24
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/index.d.ts +711 -0
- package/dist/index.js.map +1 -1
- package/package.json +53 -53
- package/dist/types/components/Accordions/Accordions.d.ts +0 -10
- package/dist/types/components/Alert/Alert.d.ts +0 -11
- package/dist/types/components/Badge/NotificationBadge.d.ts +0 -9
- package/dist/types/components/Badge/PillBadge.d.ts +0 -8
- package/dist/types/components/Button/Button.d.ts +0 -18
- package/dist/types/components/Button/IconButton.d.ts +0 -12
- package/dist/types/components/Dialog/Dialog.d.ts +0 -39
- package/dist/types/components/Helper/Collapse.d.ts +0 -8
- package/dist/types/components/Helper/NoAccessInfo.d.ts +0 -7
- package/dist/types/components/Inputs/Checkbox.d.ts +0 -12
- package/dist/types/components/Inputs/DateInput/DateInput.d.ts +0 -16
- package/dist/types/components/Inputs/DateInput/components/DatePartInput.d.ts +0 -22
- package/dist/types/components/Inputs/InputWrapper.d.ts +0 -14
- package/dist/types/components/Inputs/LargeTextInput.d.ts +0 -17
- package/dist/types/components/Inputs/NumberInput.d.ts +0 -19
- package/dist/types/components/Inputs/PasswordInput.d.ts +0 -7
- package/dist/types/components/Inputs/Radio.d.ts +0 -12
- package/dist/types/components/Inputs/SearchInput.d.ts +0 -7
- package/dist/types/components/Inputs/Selects/Select.d.ts +0 -26
- package/dist/types/components/Inputs/Selects/SelectAsyncPaginate.d.ts +0 -26
- package/dist/types/components/Inputs/TextInput.d.ts +0 -21
- package/dist/types/components/Loader/Loader.d.ts +0 -16
- package/dist/types/components/Menu/Menu.d.ts +0 -13
- package/dist/types/components/Menu/MenuItem.d.ts +0 -15
- package/dist/types/components/Table/Components/Edit/ItemActionsMenu.d.ts +0 -15
- package/dist/types/components/Table/Components/Edit/ItemEditOptionsButtons.d.ts +0 -9
- package/dist/types/components/Table/Components/Edit/TableEditRow.d.ts +0 -3
- package/dist/types/components/Table/Components/FilterItem.d.ts +0 -7
- package/dist/types/components/Table/Components/Print/TablePrint.d.ts +0 -9
- package/dist/types/components/Table/Components/SetColumnsList.d.ts +0 -10
- package/dist/types/components/Table/Components/SetSortList.d.ts +0 -9
- package/dist/types/components/Table/Components/SetTableFilter.d.ts +0 -8
- package/dist/types/components/Table/Components/TableFooter.d.ts +0 -16
- package/dist/types/components/Table/Components/TableHeader.d.ts +0 -11
- package/dist/types/components/Table/Components/TableOptions.d.ts +0 -12
- package/dist/types/components/Table/Table.d.ts +0 -3
- package/dist/types/components/Tabs/Tabs.d.ts +0 -16
- package/dist/types/components/Tooltip/Tooltip.d.ts +0 -13
- package/dist/types/components/Wrappers/ConditionalWrapper.d.ts +0 -8
- package/dist/types/components/Wrappers/FormWrapper.d.ts +0 -22
- package/dist/types/components/Wrappers/FullPageWrapper.d.ts +0 -20
- package/dist/types/components/Wrappers/PageWrapper.d.ts +0 -13
- package/dist/types/icons/duotone/faArrowLeftFromLine.d.ts +0 -2
- package/dist/types/icons/duotone/faArrowRightToLine.d.ts +0 -2
- package/dist/types/icons/duotone/faBell.d.ts +0 -2
- package/dist/types/icons/duotone/faEye.d.ts +0 -2
- package/dist/types/icons/duotone/faEyeSlash.d.ts +0 -2
- package/dist/types/icons/duotone/faHouseHeart.d.ts +0 -2
- package/dist/types/icons/duotone/faPlusCircle.d.ts +0 -2
- package/dist/types/icons/duotone/faUser.d.ts +0 -2
- package/dist/types/icons/duotone/index.d.ts +0 -9
- package/dist/types/icons/light/faAngleDown.d.ts +0 -2
- package/dist/types/icons/light/faArrowDownShortWide.d.ts +0 -2
- package/dist/types/icons/light/faArrowDownWideShort.d.ts +0 -2
- package/dist/types/icons/light/faArrowsToLine.d.ts +0 -2
- package/dist/types/icons/light/faArrowsUpDown.d.ts +0 -2
- package/dist/types/icons/light/faBell.d.ts +0 -2
- package/dist/types/icons/light/faCheck.d.ts +0 -2
- package/dist/types/icons/light/faClockRotateLeft.d.ts +0 -2
- package/dist/types/icons/light/faEllipsisVertical.d.ts +0 -2
- package/dist/types/icons/light/faXmark.d.ts +0 -2
- package/dist/types/icons/light/index.d.ts +0 -11
- package/dist/types/icons/regular/faArrowRightArrowLeft.d.ts +0 -2
- package/dist/types/icons/regular/faCalendar.d.ts +0 -2
- package/dist/types/icons/regular/faCircleCheck.d.ts +0 -2
- package/dist/types/icons/regular/faCircleExclamation.d.ts +0 -2
- package/dist/types/icons/regular/faCircleInfo.d.ts +0 -2
- package/dist/types/icons/regular/faFileArrowDown.d.ts +0 -2
- package/dist/types/icons/regular/faFilterCircleXmark.d.ts +0 -2
- package/dist/types/icons/regular/faTriangleExclamation.d.ts +0 -2
- package/dist/types/icons/solid/faAngleLeft.d.ts +0 -2
- package/dist/types/icons/solid/faAngleRight.d.ts +0 -2
- package/dist/types/icons/solid/faArrowDownWideShort.d.ts +0 -2
- package/dist/types/icons/solid/faArrowLeft.d.ts +0 -2
- package/dist/types/icons/solid/faCaretDown.d.ts +0 -2
- package/dist/types/icons/solid/faEllipsisVertical.d.ts +0 -2
- package/dist/types/icons/solid/faFilter.d.ts +0 -2
- package/dist/types/icons/solid/faFloppyDisk.d.ts +0 -2
- package/dist/types/icons/solid/faGripDotsVertical.d.ts +0 -2
- package/dist/types/icons/solid/faListUl.d.ts +0 -2
- package/dist/types/icons/solid/faMagnifyingGlass.d.ts +0 -2
- package/dist/types/icons/solid/faPrint.d.ts +0 -2
- package/dist/types/icons/solid/faRotateRight.d.ts +0 -2
- package/dist/types/icons/solid/faXmark.d.ts +0 -2
- package/dist/types/index.d.ts +0 -59
- package/dist/types/types/IBasic.d.ts +0 -25
- package/dist/types/types/IError.d.ts +0 -4
- package/dist/types/types/IHeaderAction.d.ts +0 -11
- package/dist/types/types/ISelect.d.ts +0 -5
- package/dist/types/types/ISidebar.d.ts +0 -27
- package/dist/types/types/ITab.d.ts +0 -9
- package/dist/types/types/ITable.d.ts +0 -161
- package/dist/types/types/IToken.d.ts +0 -9
- package/dist/types/utils/DateUtils.d.ts +0 -10
- package/dist/types/utils/InputPatternValidation.d.ts +0 -9
- package/dist/types/utils/LocalStorageHelper.d.ts +0 -10
- package/dist/types/utils/NumberUtils.d.ts +0 -2
- package/dist/types/utils/ObjectUtils.d.ts +0 -9
- package/dist/types/utils/StringUtils.d.ts +0 -1
- package/dist/types/utils/Toasts.d.ts +0 -2
- package/dist/types/utils/UrlUtils.d.ts +0 -3
- package/dist/types/utils/icons.d.ts +0 -6
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,711 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export { default as clsx } from 'clsx';
|
|
3
|
+
export { default as moment } from 'moment';
|
|
4
|
+
export { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
5
|
+
export { v4 as uuidv4 } from 'uuid';
|
|
6
|
+
import * as react from 'react';
|
|
7
|
+
import { ReactNode, FunctionComponent, RefObject, MouseEventHandler, ReactElement, Dispatch, SetStateAction, FormEvent, FC, ButtonHTMLAttributes, InputHTMLAttributes } from 'react';
|
|
8
|
+
import { IconDefinition, RotateProp } from '@fortawesome/fontawesome-svg-core';
|
|
9
|
+
|
|
10
|
+
interface IAnyObject {
|
|
11
|
+
[id: string]: any;
|
|
12
|
+
}
|
|
13
|
+
interface IStringObject {
|
|
14
|
+
[id: string]: string;
|
|
15
|
+
}
|
|
16
|
+
interface IBooleanObject {
|
|
17
|
+
[id: string]: boolean;
|
|
18
|
+
}
|
|
19
|
+
interface ISimpleObject {
|
|
20
|
+
uuid: string;
|
|
21
|
+
name: string;
|
|
22
|
+
}
|
|
23
|
+
interface ISimpleObjectWithCode extends ISimpleObject {
|
|
24
|
+
code: string;
|
|
25
|
+
}
|
|
26
|
+
interface ISimpleObjectWithCodeNew {
|
|
27
|
+
uuid?: string;
|
|
28
|
+
name?: string;
|
|
29
|
+
code?: string;
|
|
30
|
+
}
|
|
31
|
+
interface IValueLabel {
|
|
32
|
+
value: any;
|
|
33
|
+
label: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface IError {
|
|
37
|
+
errorMessage: string;
|
|
38
|
+
errorCode?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface ITab {
|
|
42
|
+
value: string;
|
|
43
|
+
label: string;
|
|
44
|
+
icon?: any;
|
|
45
|
+
component: ReactNode;
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
hidden?: boolean;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface ITable {
|
|
51
|
+
columns: ITableColumn[];
|
|
52
|
+
setColumns?: (data: ITableColumn[]) => void;
|
|
53
|
+
firstHeaderRow?: ITableColumn[];
|
|
54
|
+
secondHeaderRow?: ITableColumn[];
|
|
55
|
+
data: ITableDataItem[];
|
|
56
|
+
totals?: ITableDataItem;
|
|
57
|
+
isLoading?: boolean;
|
|
58
|
+
loaderLogo?: string;
|
|
59
|
+
serverSidePagination?: IServerSidePagination;
|
|
60
|
+
customPagination?: {
|
|
61
|
+
defaultLimit?: number;
|
|
62
|
+
customLimit?: number[];
|
|
63
|
+
};
|
|
64
|
+
selectedRowUuid?: string;
|
|
65
|
+
footerAction?: {
|
|
66
|
+
icon?: IconDefinition;
|
|
67
|
+
onClick: () => void;
|
|
68
|
+
};
|
|
69
|
+
headerWrap?: boolean;
|
|
70
|
+
hideFooter?: boolean;
|
|
71
|
+
showLastBorder?: boolean;
|
|
72
|
+
filterData?: ITableFilterData;
|
|
73
|
+
sortData?: ITableSortData;
|
|
74
|
+
printData?: IPrintData;
|
|
75
|
+
additionsalOptions?: ReactNode;
|
|
76
|
+
selectedOptions?: ReactNode;
|
|
77
|
+
className?: string;
|
|
78
|
+
editable?: {
|
|
79
|
+
selectedItem: any;
|
|
80
|
+
setSelectedItem: (item: any) => void;
|
|
81
|
+
defaultDataValue?: any;
|
|
82
|
+
EditableRow?: FunctionComponent<ITableEditRow>;
|
|
83
|
+
onSubmit: (data: any, onSubmitCallback?: () => void) => void;
|
|
84
|
+
disabled?: boolean;
|
|
85
|
+
inputFocusRef?: RefObject<any>;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
interface ITableColumn {
|
|
89
|
+
id: string;
|
|
90
|
+
label?: string;
|
|
91
|
+
align?: 'center' | 'left' | 'right' | 'justify' | undefined;
|
|
92
|
+
hidden?: boolean;
|
|
93
|
+
unavailable?: boolean;
|
|
94
|
+
width?: string;
|
|
95
|
+
minWidth?: string;
|
|
96
|
+
colSpan?: number;
|
|
97
|
+
rowSpan?: number;
|
|
98
|
+
break?: boolean;
|
|
99
|
+
sortOptions?: {
|
|
100
|
+
asc: string;
|
|
101
|
+
desc: string;
|
|
102
|
+
label: string;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
interface ITableDataItem {
|
|
106
|
+
uuid: string;
|
|
107
|
+
onRowClick?: MouseEventHandler<HTMLTableRowElement>;
|
|
108
|
+
className?: string;
|
|
109
|
+
cells: {
|
|
110
|
+
[id: string]: {
|
|
111
|
+
value: any;
|
|
112
|
+
align?: ITableColumn['align'];
|
|
113
|
+
className?: string;
|
|
114
|
+
onClick?: MouseEventHandler<HTMLTableCellElement>;
|
|
115
|
+
link?: boolean;
|
|
116
|
+
tooltip?: string;
|
|
117
|
+
span?: number;
|
|
118
|
+
unclickable?: boolean;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
extendable?: {
|
|
122
|
+
element: ReactElement;
|
|
123
|
+
isLoading?: boolean;
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
interface ITableFilterData {
|
|
127
|
+
columns: string[];
|
|
128
|
+
filters: ITableFilter;
|
|
129
|
+
activeFilterNo?: number;
|
|
130
|
+
additionalFilters?: ReactElement;
|
|
131
|
+
search: IAnyObject;
|
|
132
|
+
searchData: IAnyObject;
|
|
133
|
+
setSearchData: (search: IAnyObject) => void;
|
|
134
|
+
onSubmit: (search: IAnyObject) => void;
|
|
135
|
+
resetData?: IAnyObject;
|
|
136
|
+
excludeFromSearch?: string[];
|
|
137
|
+
}
|
|
138
|
+
interface ITableFilterItem {
|
|
139
|
+
label: string;
|
|
140
|
+
field: ReactElement;
|
|
141
|
+
resetField: () => void;
|
|
142
|
+
}
|
|
143
|
+
interface ITableFilter {
|
|
144
|
+
[id: string]: ITableFilterItem;
|
|
145
|
+
}
|
|
146
|
+
interface ITableSortData {
|
|
147
|
+
sort: string;
|
|
148
|
+
setSort: (sort: string) => void;
|
|
149
|
+
sortOptions: ITableSort;
|
|
150
|
+
menuSize?: 's' | 'm' | 'l';
|
|
151
|
+
}
|
|
152
|
+
interface ITableSort {
|
|
153
|
+
[id: string]: {
|
|
154
|
+
label: string;
|
|
155
|
+
asc: string;
|
|
156
|
+
desc: string;
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
interface IPrintData {
|
|
160
|
+
label: string;
|
|
161
|
+
organization?: {
|
|
162
|
+
name?: string;
|
|
163
|
+
taxId?: string;
|
|
164
|
+
registrationNumber?: string;
|
|
165
|
+
jbkjs?: string;
|
|
166
|
+
email?: string;
|
|
167
|
+
};
|
|
168
|
+
filters?: {
|
|
169
|
+
basic?: {
|
|
170
|
+
label: string;
|
|
171
|
+
value?: string;
|
|
172
|
+
}[];
|
|
173
|
+
date?: {
|
|
174
|
+
label: string;
|
|
175
|
+
from?: string;
|
|
176
|
+
to?: string;
|
|
177
|
+
}[];
|
|
178
|
+
};
|
|
179
|
+
getPrintData: (pagination: IPagination) => Promise<IAnyObject>;
|
|
180
|
+
formatPrintData: (data: any) => ITableDataItem[];
|
|
181
|
+
saveXlsx?: () => void;
|
|
182
|
+
totals?: ITableDataItem;
|
|
183
|
+
}
|
|
184
|
+
interface IPagination {
|
|
185
|
+
limit: number;
|
|
186
|
+
offset: number;
|
|
187
|
+
}
|
|
188
|
+
interface IServerSidePagination {
|
|
189
|
+
limit: number;
|
|
190
|
+
offset: number;
|
|
191
|
+
setLimit: Dispatch<SetStateAction<number>>;
|
|
192
|
+
setOffset: Dispatch<SetStateAction<number>>;
|
|
193
|
+
totalRows: number;
|
|
194
|
+
}
|
|
195
|
+
interface ITableEditRow {
|
|
196
|
+
columns: ITableColumn[];
|
|
197
|
+
data: any;
|
|
198
|
+
setData: (data: any) => void;
|
|
199
|
+
item?: any;
|
|
200
|
+
clearItem: () => void;
|
|
201
|
+
defaultDataValue?: any;
|
|
202
|
+
inputFocusRef?: RefObject<any>;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
interface ISidebarItem {
|
|
206
|
+
label: string;
|
|
207
|
+
icon?: IconDefinition;
|
|
208
|
+
to?: string;
|
|
209
|
+
content?: ISidebarSubItem[];
|
|
210
|
+
menu?: {
|
|
211
|
+
content: ISidebarSubItem[];
|
|
212
|
+
openedMenu: string;
|
|
213
|
+
setOpenedMenu: (label: string) => void;
|
|
214
|
+
};
|
|
215
|
+
hidden?: boolean;
|
|
216
|
+
badge?: number;
|
|
217
|
+
addUrl?: string;
|
|
218
|
+
collapsed?: boolean;
|
|
219
|
+
}
|
|
220
|
+
interface ISidebarSubItem {
|
|
221
|
+
label: string;
|
|
222
|
+
to?: string;
|
|
223
|
+
content?: ISidebarItem[];
|
|
224
|
+
hidden?: boolean;
|
|
225
|
+
tooltip?: string;
|
|
226
|
+
badge?: number;
|
|
227
|
+
addUrl?: string;
|
|
228
|
+
primary?: boolean;
|
|
229
|
+
collapsed?: boolean;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
interface ISelectData extends IValueLabel {
|
|
233
|
+
disabled?: boolean;
|
|
234
|
+
[id: string]: any;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
interface IFormWrapper {
|
|
238
|
+
isLoading: boolean;
|
|
239
|
+
className?: string;
|
|
240
|
+
submitButton: {
|
|
241
|
+
label?: string;
|
|
242
|
+
icon?: any;
|
|
243
|
+
disabled?: boolean;
|
|
244
|
+
onSubmit: (e: FormEvent<HTMLFormElement>) => void;
|
|
245
|
+
primary?: boolean;
|
|
246
|
+
};
|
|
247
|
+
otherButtons?: {
|
|
248
|
+
label: string;
|
|
249
|
+
icon?: any;
|
|
250
|
+
disabled?: boolean;
|
|
251
|
+
outlined?: boolean;
|
|
252
|
+
onClick: () => void;
|
|
253
|
+
}[];
|
|
254
|
+
noAccess?: boolean;
|
|
255
|
+
children: ReactNode;
|
|
256
|
+
}
|
|
257
|
+
declare const FormWrapper: FC<IFormWrapper>;
|
|
258
|
+
|
|
259
|
+
interface Props$p {
|
|
260
|
+
tabs: ITab[];
|
|
261
|
+
initialValue?: string;
|
|
262
|
+
compact?: boolean;
|
|
263
|
+
className?: string;
|
|
264
|
+
}
|
|
265
|
+
declare const Accordions: FC<Props$p>;
|
|
266
|
+
|
|
267
|
+
interface Props$o {
|
|
268
|
+
text?: string;
|
|
269
|
+
severity: 'success' | 'info' | 'warning' | 'error';
|
|
270
|
+
fitContent?: boolean;
|
|
271
|
+
className?: string;
|
|
272
|
+
children?: ReactNode;
|
|
273
|
+
}
|
|
274
|
+
declare const Alert: FC<Props$o>;
|
|
275
|
+
|
|
276
|
+
interface Props$n {
|
|
277
|
+
number?: number;
|
|
278
|
+
className?: string;
|
|
279
|
+
small?: boolean;
|
|
280
|
+
children?: ReactNode;
|
|
281
|
+
}
|
|
282
|
+
declare const NotificationBadge: FC<Props$n>;
|
|
283
|
+
|
|
284
|
+
interface Props$m {
|
|
285
|
+
label: string;
|
|
286
|
+
color: 'success' | 'info' | 'warning' | 'error' | 'gray';
|
|
287
|
+
className?: string;
|
|
288
|
+
}
|
|
289
|
+
declare const PillBadge: react.ForwardRefExoticComponent<Props$m & react.RefAttributes<HTMLDivElement>>;
|
|
290
|
+
|
|
291
|
+
interface Props$l {
|
|
292
|
+
label: string;
|
|
293
|
+
icon?: IconDefinition;
|
|
294
|
+
iconEnd?: IconDefinition;
|
|
295
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
296
|
+
disabled?: boolean;
|
|
297
|
+
primary?: boolean;
|
|
298
|
+
outlined?: boolean;
|
|
299
|
+
active?: boolean;
|
|
300
|
+
className?: string;
|
|
301
|
+
size?: 'xs' | 's' | 'm' | 'l';
|
|
302
|
+
buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
303
|
+
}
|
|
304
|
+
declare const Button: react.ForwardRefExoticComponent<Props$l & react.RefAttributes<HTMLButtonElement>>;
|
|
305
|
+
|
|
306
|
+
interface Props$k {
|
|
307
|
+
icon: IconDefinition;
|
|
308
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
309
|
+
disabled?: boolean;
|
|
310
|
+
className?: string;
|
|
311
|
+
active?: boolean;
|
|
312
|
+
buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
313
|
+
}
|
|
314
|
+
declare const IconButton: react.ForwardRefExoticComponent<Props$k & react.RefAttributes<HTMLButtonElement>>;
|
|
315
|
+
|
|
316
|
+
interface Props$j {
|
|
317
|
+
title?: string;
|
|
318
|
+
titleEl?: ReactNode;
|
|
319
|
+
desc?: string;
|
|
320
|
+
descEl?: ReactNode;
|
|
321
|
+
isOpen: boolean;
|
|
322
|
+
onClose: () => void;
|
|
323
|
+
isLoading?: boolean;
|
|
324
|
+
confirmButton?: {
|
|
325
|
+
label?: string;
|
|
326
|
+
icon?: IconDefinition;
|
|
327
|
+
onClick?: () => void;
|
|
328
|
+
onFormSubmit?: () => void;
|
|
329
|
+
disabled?: boolean;
|
|
330
|
+
keepOpen?: boolean;
|
|
331
|
+
};
|
|
332
|
+
cancelButton?: {
|
|
333
|
+
label?: string;
|
|
334
|
+
icon?: IconDefinition;
|
|
335
|
+
onClick?: () => void;
|
|
336
|
+
};
|
|
337
|
+
additionalButton?: {
|
|
338
|
+
label: string;
|
|
339
|
+
icon?: IconDefinition;
|
|
340
|
+
onClick?: () => void;
|
|
341
|
+
disabled?: boolean;
|
|
342
|
+
};
|
|
343
|
+
noBackgroundClick?: boolean;
|
|
344
|
+
noOverflow?: boolean;
|
|
345
|
+
type?: 'info' | 'error';
|
|
346
|
+
size?: 'm' | 'l' | 'xl';
|
|
347
|
+
noPadding?: boolean;
|
|
348
|
+
className?: string;
|
|
349
|
+
children?: ReactNode;
|
|
350
|
+
}
|
|
351
|
+
declare const Dialog: FC<Props$j>;
|
|
352
|
+
|
|
353
|
+
interface Props$i {
|
|
354
|
+
isOpen: boolean;
|
|
355
|
+
className?: string;
|
|
356
|
+
children?: ReactNode;
|
|
357
|
+
}
|
|
358
|
+
declare const Collapse: FC<Props$i>;
|
|
359
|
+
|
|
360
|
+
interface Props$h {
|
|
361
|
+
label?: string;
|
|
362
|
+
value?: boolean;
|
|
363
|
+
setValue: (checked: boolean) => void;
|
|
364
|
+
required?: boolean;
|
|
365
|
+
disabled?: boolean;
|
|
366
|
+
className?: string;
|
|
367
|
+
children?: ReactNode;
|
|
368
|
+
}
|
|
369
|
+
declare const Checkbox: react.ForwardRefExoticComponent<Props$h & react.RefAttributes<HTMLLabelElement>>;
|
|
370
|
+
|
|
371
|
+
interface Props$g {
|
|
372
|
+
label?: string;
|
|
373
|
+
date?: string;
|
|
374
|
+
setDate: (date: string) => void;
|
|
375
|
+
required?: boolean;
|
|
376
|
+
disabled?: boolean;
|
|
377
|
+
autoFocus?: boolean;
|
|
378
|
+
helperText?: string;
|
|
379
|
+
error?: boolean;
|
|
380
|
+
className?: string;
|
|
381
|
+
calendarPlacementX?: 'left' | 'right';
|
|
382
|
+
}
|
|
383
|
+
declare const DateInput: react.ForwardRefExoticComponent<Props$g & react.RefAttributes<HTMLInputElement>>;
|
|
384
|
+
|
|
385
|
+
interface Props$f {
|
|
386
|
+
label: string;
|
|
387
|
+
value?: string;
|
|
388
|
+
setValue: (value: string) => void;
|
|
389
|
+
required?: boolean;
|
|
390
|
+
disabled?: boolean;
|
|
391
|
+
autoFocus?: boolean;
|
|
392
|
+
rows?: number;
|
|
393
|
+
placeholder?: string;
|
|
394
|
+
helperText?: string;
|
|
395
|
+
className?: string;
|
|
396
|
+
inputProps?: InputHTMLAttributes<HTMLTextAreaElement>;
|
|
397
|
+
error?: boolean;
|
|
398
|
+
}
|
|
399
|
+
declare const LargeTextInput: react.ForwardRefExoticComponent<Props$f & react.RefAttributes<HTMLTextAreaElement>>;
|
|
400
|
+
|
|
401
|
+
interface Props$e {
|
|
402
|
+
label?: string;
|
|
403
|
+
value?: string | number;
|
|
404
|
+
setValue: (value: string) => void;
|
|
405
|
+
required?: boolean;
|
|
406
|
+
disabled?: boolean;
|
|
407
|
+
autoFocus?: boolean;
|
|
408
|
+
placeholder?: string;
|
|
409
|
+
helperText?: string;
|
|
410
|
+
className?: string;
|
|
411
|
+
allowNegative?: boolean;
|
|
412
|
+
decimalPlaces?: number;
|
|
413
|
+
error?: boolean;
|
|
414
|
+
alignLeft?: boolean;
|
|
415
|
+
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
416
|
+
}
|
|
417
|
+
declare const NumberInput: react.ForwardRefExoticComponent<Props$e & react.RefAttributes<HTMLInputElement>>;
|
|
418
|
+
|
|
419
|
+
interface ITextInput {
|
|
420
|
+
label?: string;
|
|
421
|
+
value?: string;
|
|
422
|
+
setValue: (value: string) => void;
|
|
423
|
+
required?: boolean;
|
|
424
|
+
disabled?: boolean;
|
|
425
|
+
autoFocus?: boolean;
|
|
426
|
+
placeholder?: string;
|
|
427
|
+
helperText?: string;
|
|
428
|
+
className?: string;
|
|
429
|
+
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
430
|
+
error?: boolean;
|
|
431
|
+
endButton?: {
|
|
432
|
+
icon: IconDefinition;
|
|
433
|
+
onClick: () => void;
|
|
434
|
+
disabled?: boolean;
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
declare const TextInput: react.ForwardRefExoticComponent<ITextInput & react.RefAttributes<HTMLInputElement>>;
|
|
438
|
+
|
|
439
|
+
interface IProps$1 extends ITextInput {
|
|
440
|
+
newPassword?: boolean;
|
|
441
|
+
}
|
|
442
|
+
declare const PasswordInput: FC<IProps$1>;
|
|
443
|
+
|
|
444
|
+
interface Props$d {
|
|
445
|
+
label?: string;
|
|
446
|
+
value: string | number | boolean;
|
|
447
|
+
selected: string | number | boolean;
|
|
448
|
+
setSelected: (selected: any) => void;
|
|
449
|
+
disabled?: boolean;
|
|
450
|
+
className?: string;
|
|
451
|
+
children?: ReactNode;
|
|
452
|
+
}
|
|
453
|
+
declare const Radio: react.ForwardRefExoticComponent<Props$d & react.RefAttributes<HTMLDivElement>>;
|
|
454
|
+
|
|
455
|
+
interface IProps {
|
|
456
|
+
onSearch: (searchText: string) => void;
|
|
457
|
+
className?: string;
|
|
458
|
+
}
|
|
459
|
+
declare const SearchInput: FC<IProps>;
|
|
460
|
+
|
|
461
|
+
interface Props$c {
|
|
462
|
+
label?: string;
|
|
463
|
+
options: ISelectData[];
|
|
464
|
+
value?: ISelectData | null;
|
|
465
|
+
valuesMulti?: ISelectData[];
|
|
466
|
+
onChange: (value: any) => void;
|
|
467
|
+
required?: boolean;
|
|
468
|
+
disabled?: boolean;
|
|
469
|
+
placeholder?: string;
|
|
470
|
+
helperText?: string;
|
|
471
|
+
className?: string;
|
|
472
|
+
minWidth?: number;
|
|
473
|
+
menuWidth?: 'fit-content' | 'max-content' | number;
|
|
474
|
+
autoFocus?: boolean;
|
|
475
|
+
isClearable?: boolean;
|
|
476
|
+
isOpen?: boolean;
|
|
477
|
+
openDirection?: 'top' | 'auto' | 'bottom';
|
|
478
|
+
noOptionsMessage?: string;
|
|
479
|
+
error?: boolean;
|
|
480
|
+
}
|
|
481
|
+
declare const Select: FC<Props$c>;
|
|
482
|
+
|
|
483
|
+
interface Props$b {
|
|
484
|
+
label?: string;
|
|
485
|
+
value?: ISelectData | null;
|
|
486
|
+
valuesMulti?: ISelectData[];
|
|
487
|
+
loadOptions: any;
|
|
488
|
+
refresh?: any[];
|
|
489
|
+
onChange: (value: any) => void;
|
|
490
|
+
required?: boolean;
|
|
491
|
+
disabled?: boolean;
|
|
492
|
+
placeholder?: string;
|
|
493
|
+
helperText?: string;
|
|
494
|
+
className?: string;
|
|
495
|
+
minWidth?: number;
|
|
496
|
+
menuWidth?: 'fit-content' | 'max-content' | number;
|
|
497
|
+
autoFocus?: boolean;
|
|
498
|
+
isMulti?: boolean;
|
|
499
|
+
isClearable?: boolean;
|
|
500
|
+
isOpen?: boolean;
|
|
501
|
+
openDirection?: 'top' | 'auto' | 'bottom';
|
|
502
|
+
noOptionsMessage?: string;
|
|
503
|
+
error?: boolean;
|
|
504
|
+
}
|
|
505
|
+
declare const SelectAsyncPaginate: FC<Props$b>;
|
|
506
|
+
|
|
507
|
+
interface Props$a {
|
|
508
|
+
isLoading: boolean;
|
|
509
|
+
logo?: string;
|
|
510
|
+
fullWidth?: boolean;
|
|
511
|
+
children: ReactNode;
|
|
512
|
+
}
|
|
513
|
+
declare const Loader: FC<Props$a>;
|
|
514
|
+
declare const FullScreenLoader: FC<{
|
|
515
|
+
isLoading: boolean;
|
|
516
|
+
logo?: string;
|
|
517
|
+
}>;
|
|
518
|
+
declare const LazyLoader: FC<{
|
|
519
|
+
logo?: string;
|
|
520
|
+
}>;
|
|
521
|
+
|
|
522
|
+
interface Props$9 {
|
|
523
|
+
isOpen: boolean;
|
|
524
|
+
onClose: () => void;
|
|
525
|
+
renderButton: (ref: RefObject<any>) => ReactNode;
|
|
526
|
+
placementX?: 'left' | 'right';
|
|
527
|
+
placementY?: 'bottom' | 'top' | 'auto';
|
|
528
|
+
size?: 's' | 'm' | 'l';
|
|
529
|
+
className?: string;
|
|
530
|
+
children?: ReactNode;
|
|
531
|
+
}
|
|
532
|
+
declare const Menu: FC<Props$9>;
|
|
533
|
+
|
|
534
|
+
interface Props$8 {
|
|
535
|
+
label?: string;
|
|
536
|
+
icon?: IconDefinition;
|
|
537
|
+
iconRotation?: RotateProp;
|
|
538
|
+
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
539
|
+
to?: string;
|
|
540
|
+
disabled?: boolean;
|
|
541
|
+
withDevider?: boolean;
|
|
542
|
+
className?: string;
|
|
543
|
+
children?: ReactNode;
|
|
544
|
+
}
|
|
545
|
+
declare const MenuItem: FC<Props$8>;
|
|
546
|
+
|
|
547
|
+
interface Props$7 extends ITableFilterData {
|
|
548
|
+
isOpen: boolean;
|
|
549
|
+
onClose: () => void;
|
|
550
|
+
}
|
|
551
|
+
declare const SetTableFilter: FC<Props$7>;
|
|
552
|
+
|
|
553
|
+
declare const Table: FC<ITable>;
|
|
554
|
+
|
|
555
|
+
interface Props$6 {
|
|
556
|
+
limit: number;
|
|
557
|
+
offset: number;
|
|
558
|
+
setLimit: (limit: number) => void;
|
|
559
|
+
setOffset: (offset: number) => void;
|
|
560
|
+
totalRows: number;
|
|
561
|
+
footerAction?: {
|
|
562
|
+
icon?: IconDefinition;
|
|
563
|
+
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
564
|
+
};
|
|
565
|
+
customLimit?: number[];
|
|
566
|
+
}
|
|
567
|
+
declare const TableFooter: FC<Props$6>;
|
|
568
|
+
|
|
569
|
+
interface Props$5 {
|
|
570
|
+
item: any;
|
|
571
|
+
setSelectedItem?: (item: any) => void;
|
|
572
|
+
setItemToDeleteUuid?: (uuid: string) => void;
|
|
573
|
+
actions?: {
|
|
574
|
+
label: string;
|
|
575
|
+
onClick: (uuid: string) => void;
|
|
576
|
+
hidden?: boolean;
|
|
577
|
+
disabled?: boolean;
|
|
578
|
+
}[];
|
|
579
|
+
t?: (e: string) => string;
|
|
580
|
+
}
|
|
581
|
+
declare const ItemActionsMenu: FC<Props$5>;
|
|
582
|
+
|
|
583
|
+
interface Props$4 {
|
|
584
|
+
setData: (item: any) => void;
|
|
585
|
+
clearItem: () => void;
|
|
586
|
+
inputFocusRef?: RefObject<any>;
|
|
587
|
+
defaultDataValue?: any;
|
|
588
|
+
}
|
|
589
|
+
declare const ItemEditOptionsButtons: FC<Props$4>;
|
|
590
|
+
|
|
591
|
+
declare const TableEditRow: FC<ITableEditRow>;
|
|
592
|
+
|
|
593
|
+
interface Props$3 {
|
|
594
|
+
tabs: ITab[];
|
|
595
|
+
initialValue?: string;
|
|
596
|
+
control?: {
|
|
597
|
+
value: string;
|
|
598
|
+
setValue: (value: string) => void;
|
|
599
|
+
};
|
|
600
|
+
onChange?: (value: string) => void;
|
|
601
|
+
noWrap?: boolean;
|
|
602
|
+
className?: string;
|
|
603
|
+
classNameContent?: string;
|
|
604
|
+
}
|
|
605
|
+
declare const Tabs: FC<Props$3>;
|
|
606
|
+
|
|
607
|
+
type Position = 'left' | 'right' | 'top' | 'bottom';
|
|
608
|
+
interface Props$2 {
|
|
609
|
+
label?: string;
|
|
610
|
+
position?: Position;
|
|
611
|
+
disabled?: boolean;
|
|
612
|
+
singleLine?: boolean;
|
|
613
|
+
className?: string;
|
|
614
|
+
children: ReactElement;
|
|
615
|
+
}
|
|
616
|
+
declare const Tooltip: FC<Props$2>;
|
|
617
|
+
|
|
618
|
+
interface Props$1 {
|
|
619
|
+
condition: boolean;
|
|
620
|
+
wrapper: (children: ReactElement) => ReactElement;
|
|
621
|
+
children: ReactElement;
|
|
622
|
+
}
|
|
623
|
+
declare const ConditionalWrapper: FC<Props$1>;
|
|
624
|
+
|
|
625
|
+
interface Props {
|
|
626
|
+
title: string;
|
|
627
|
+
description: string | ReactElement;
|
|
628
|
+
actionButton?: {
|
|
629
|
+
label: string;
|
|
630
|
+
icon?: IconDefinition;
|
|
631
|
+
onClick?: () => void;
|
|
632
|
+
onFormSubmit?: () => void;
|
|
633
|
+
marginLarge?: boolean;
|
|
634
|
+
regular?: boolean;
|
|
635
|
+
};
|
|
636
|
+
backButton?: boolean;
|
|
637
|
+
img?: string;
|
|
638
|
+
children?: ReactNode;
|
|
639
|
+
}
|
|
640
|
+
declare const FullPageWrapper: FC<Props>;
|
|
641
|
+
|
|
642
|
+
interface IHeaderAction {
|
|
643
|
+
label: string;
|
|
644
|
+
icon?: IconDefinition;
|
|
645
|
+
iconRotation?: RotateProp;
|
|
646
|
+
to?: string;
|
|
647
|
+
onClick?: () => void;
|
|
648
|
+
primary?: boolean;
|
|
649
|
+
disabled?: boolean;
|
|
650
|
+
hidden?: boolean;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
interface IPageWrapper {
|
|
654
|
+
breadcrumbs: string[];
|
|
655
|
+
actions?: IHeaderAction[];
|
|
656
|
+
moreActions?: IHeaderAction[];
|
|
657
|
+
showBackButton?: boolean;
|
|
658
|
+
noAccess?: boolean;
|
|
659
|
+
isLoading?: boolean;
|
|
660
|
+
loaderLogo?: string;
|
|
661
|
+
children?: ReactNode;
|
|
662
|
+
}
|
|
663
|
+
declare const PageWrapper: FC<IPageWrapper>;
|
|
664
|
+
|
|
665
|
+
declare const formatDate: (date?: string) => string;
|
|
666
|
+
declare const formatDateYMD: (date: string | Date) => string;
|
|
667
|
+
declare const formatDateAndTime: (date?: string, withSeconds?: boolean) => string;
|
|
668
|
+
declare const formatTime: (date?: string, withSeconds?: boolean) => string;
|
|
669
|
+
declare const dateAddDays: (date: string, addDays: number) => string;
|
|
670
|
+
declare const checkIfExpired: (date?: string) => boolean;
|
|
671
|
+
declare const getCurrentDateFormatted: () => string;
|
|
672
|
+
declare const getCurrentDateFormattedYMD: () => string;
|
|
673
|
+
declare const getDaysLeft: (date?: string) => number;
|
|
674
|
+
declare const formatYearMonth: (year: number, month: number) => string;
|
|
675
|
+
|
|
676
|
+
declare const formatCurrency: (number?: string | number, minimumFractionDigits?: number, maximumFractionDigits?: number) => string;
|
|
677
|
+
declare const formatCurrencyNoDecimals: (number?: string | number) => string;
|
|
678
|
+
|
|
679
|
+
declare const maxChar: (str?: string, maxLength?: number) => string;
|
|
680
|
+
|
|
681
|
+
declare const deleteProps: (obj: any, props: string[]) => any;
|
|
682
|
+
declare const deleteEmptyProps: (obj: IAnyObject) => any;
|
|
683
|
+
declare const deleteEmptyPropsIncludingArray: (obj: IAnyObject) => any;
|
|
684
|
+
declare const getActiveFilterNumber: (obj: any) => number;
|
|
685
|
+
declare const getVisibleColumnsIds: (tableCols: ITableColumn[], isPrint?: boolean) => string[];
|
|
686
|
+
declare const deepCopy: (el: any[] | object) => any;
|
|
687
|
+
|
|
688
|
+
declare const parseUrlSearch: (search: string) => {
|
|
689
|
+
[k: string]: string;
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
type LocalStorageItem = 'activeUser' | 'token' | 'tokenExp' | 'refreshToken' | 'logInWay' | 'codeVerifier' | 'activeOrg';
|
|
693
|
+
declare const lsGet: (key: LocalStorageItem) => string | null;
|
|
694
|
+
declare const lsSet: (key: LocalStorageItem, value: string) => void;
|
|
695
|
+
declare const lsRemove: (key: LocalStorageItem) => void;
|
|
696
|
+
declare const getDefaultOrgUuid: () => string;
|
|
697
|
+
declare const setDefaultOrgUuid: (organizationUuid: string) => void;
|
|
698
|
+
declare const getActiveOrgUuid: () => string;
|
|
699
|
+
declare const setActiveOrgUuid: (organizationUuid: string) => void;
|
|
700
|
+
|
|
701
|
+
declare const inputPattern: {
|
|
702
|
+
taxId: string;
|
|
703
|
+
registrationNumber: string;
|
|
704
|
+
personalIdentityNumber: string;
|
|
705
|
+
idCardNumber: string;
|
|
706
|
+
phoneNumber: string;
|
|
707
|
+
port: string;
|
|
708
|
+
number: string;
|
|
709
|
+
};
|
|
710
|
+
|
|
711
|
+
export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, DateInput, Dialog, FormWrapper, FullPageWrapper, FullScreenLoader, IAnyObject, IBooleanObject, IError, IFormWrapper, IPagination, ISelectData, IServerSidePagination, ISidebarItem, ISimpleObject, ISimpleObjectWithCode, ISimpleObjectWithCodeNew, IStringObject, ITab, ITable, ITableColumn, ITableDataItem, ITableEditRow, ITableFilter, ITableFilterData, ITableFilterItem, ITableSort, IValueLabel, IconButton, ItemActionsMenu, ItemEditOptionsButtons, LargeTextInput, LazyLoader, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageWrapper, PasswordInput, PillBadge, Radio, SearchInput, Select, SelectAsyncPaginate, SetTableFilter, Table, TableEditRow, TableFooter, Tabs, TextInput, Tooltip, checkIfExpired, dateAddDays, deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, formatCurrency, formatCurrencyNoDecimals, formatDate, formatDateAndTime, formatDateYMD, formatTime, formatYearMonth, getActiveFilterNumber, getActiveOrgUuid, getCurrentDateFormatted, getCurrentDateFormattedYMD, getDaysLeft, getDefaultOrgUuid, getVisibleColumnsIds, inputPattern, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, setActiveOrgUuid, setDefaultOrgUuid };
|