@inceptionbg/iui 2.0.1 → 2.0.3
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-BllwaG2u.js +2 -0
- package/dist/{NoAccessPage-D4YKvpR_.js.map → NoAccessPage-BllwaG2u.js.map} +1 -1
- package/dist/NotFoundPage-DVm00-sr.js +2 -0
- package/dist/{NotFoundPage-COfLYbEk.js.map → NotFoundPage-DVm00-sr.js.map} +1 -1
- package/dist/index.d.ts +320 -43
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/iui.css +1 -1
- package/package.json +2 -2
- package/dist/NoAccessPage-D4YKvpR_.js +0 -2
- package/dist/NotFoundPage-COfLYbEk.js +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -10,10 +10,10 @@ export { ToastContainer } from 'react-toastify';
|
|
|
10
10
|
export { TFunction, changeLanguage, default as i18n, i18n as i18nType } from 'i18next';
|
|
11
11
|
export { I18nextProvider, Trans, useTranslation } from 'react-i18next';
|
|
12
12
|
import * as react from 'react';
|
|
13
|
-
import { MouseEventHandler, ButtonHTMLAttributes, FC, FormEvent, ReactNode, ReactElement,
|
|
13
|
+
import { MouseEventHandler, ButtonHTMLAttributes, FC, FormEvent, ReactNode, ReactElement, MouseEvent, Dispatch, SetStateAction, FunctionComponent, RefObject, ComponentProps, InputHTMLAttributes, FocusEventHandler } from 'react';
|
|
14
14
|
import * as reactRouter from 'react-router';
|
|
15
15
|
export { reactRouter as ReactRouter };
|
|
16
|
-
export { BrowserRouter, NavigateFunction, useLocation, useNavigate, useParams } from 'react-router';
|
|
16
|
+
export { BrowserRouter, Link, NavigateFunction, useLocation, useNavigate, useParams } from 'react-router';
|
|
17
17
|
|
|
18
18
|
type IButtonColor = 'primary' | 'neutral' | 'danger';
|
|
19
19
|
type IButtonVariant = 'solid' | 'outlined' | 'simple';
|
|
@@ -82,6 +82,64 @@ interface IValueLabel {
|
|
|
82
82
|
label: string;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
interface ITable {
|
|
86
|
+
columns: ITableColumn[];
|
|
87
|
+
setColumns?: (data: ITableColumn[]) => void;
|
|
88
|
+
withColumnsSearch?: boolean;
|
|
89
|
+
customHeader?: ITableColumn[][];
|
|
90
|
+
data: ITableDataItem[];
|
|
91
|
+
sumRows?: ITableDataItem[];
|
|
92
|
+
isLoading?: boolean;
|
|
93
|
+
serverSidePagination?: IServerSidePagination;
|
|
94
|
+
customPagination?: {
|
|
95
|
+
defaultLimit?: number;
|
|
96
|
+
customLimit?: number[];
|
|
97
|
+
};
|
|
98
|
+
selectedRowUuid?: string;
|
|
99
|
+
footerAction?: {
|
|
100
|
+
icon?: IconDefinition;
|
|
101
|
+
onClick: () => void;
|
|
102
|
+
};
|
|
103
|
+
headerWrap?: boolean;
|
|
104
|
+
hideFooter?: boolean;
|
|
105
|
+
noTotalRows?: boolean;
|
|
106
|
+
showLastBorder?: boolean;
|
|
107
|
+
filterData?: ITableFilterData;
|
|
108
|
+
sortData?: ITableSortData;
|
|
109
|
+
printData?: IPrintData;
|
|
110
|
+
customPrintData?: ICustomPrintData;
|
|
111
|
+
additionsalOptions?: ReactNode;
|
|
112
|
+
rowSelect?: {
|
|
113
|
+
selectedRows: Set<string>;
|
|
114
|
+
setSelectedRows: Dispatch<SetStateAction<Set<string>>>;
|
|
115
|
+
actions: ITableSelectedActions[];
|
|
116
|
+
};
|
|
117
|
+
className?: string;
|
|
118
|
+
rowHeight?: 'xs' | 's' | 'm';
|
|
119
|
+
maxHeight?: string;
|
|
120
|
+
editable?: {
|
|
121
|
+
selectedItem?: any;
|
|
122
|
+
setSelectedItem?: (item: any) => void;
|
|
123
|
+
defaultDataValue?: any;
|
|
124
|
+
EditableRow?: FunctionComponent<ITableEditRow>;
|
|
125
|
+
onSubmit: (data: any, onSubmitCallback: () => void) => void;
|
|
126
|
+
addDisabled?: boolean;
|
|
127
|
+
addLabel?: string;
|
|
128
|
+
inputFocusRef?: RefObject<any>;
|
|
129
|
+
keepEditOnSubmit?: boolean;
|
|
130
|
+
};
|
|
131
|
+
keyboard?: {
|
|
132
|
+
enabled: boolean;
|
|
133
|
+
actions: ITableKeyboardActionsBase;
|
|
134
|
+
};
|
|
135
|
+
templates?: {
|
|
136
|
+
identifier: string;
|
|
137
|
+
data: IReportTemplateData;
|
|
138
|
+
setTemplateName?: (templateName: string) => void;
|
|
139
|
+
onClearFilters: () => void;
|
|
140
|
+
allowPublicCreate?: boolean;
|
|
141
|
+
};
|
|
142
|
+
}
|
|
85
143
|
interface ITableColumn {
|
|
86
144
|
id: string;
|
|
87
145
|
label?: string | ReactElement;
|
|
@@ -102,11 +160,132 @@ interface ITableColumn {
|
|
|
102
160
|
};
|
|
103
161
|
code?: string;
|
|
104
162
|
}
|
|
163
|
+
interface ITableDataItem {
|
|
164
|
+
uuid: string;
|
|
165
|
+
onRowClick?: (event?: MouseEvent<HTMLTableRowElement>) => void;
|
|
166
|
+
className?: string;
|
|
167
|
+
item?: Record<string, any>;
|
|
168
|
+
disableSelect?: boolean;
|
|
169
|
+
cells: {
|
|
170
|
+
[id: string]: {
|
|
171
|
+
value: any;
|
|
172
|
+
align?: ITableColumn['align'];
|
|
173
|
+
className?: string;
|
|
174
|
+
onClick?: (event?: MouseEvent<HTMLTableCellElement>) => void;
|
|
175
|
+
link?: boolean;
|
|
176
|
+
tooltip?: string;
|
|
177
|
+
span?: number;
|
|
178
|
+
unclickable?: boolean;
|
|
179
|
+
printValue?: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
extendable?: {
|
|
183
|
+
element: ReactElement;
|
|
184
|
+
isLoading?: boolean;
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
interface ITableFilterData {
|
|
188
|
+
columns: string[];
|
|
189
|
+
filters: ITableFilter;
|
|
190
|
+
activeFilterNo?: number;
|
|
191
|
+
additionalFilters?: ReactElement;
|
|
192
|
+
search: IAnyObject;
|
|
193
|
+
searchData: IAnyObject;
|
|
194
|
+
setSearchData: (search: IAnyObject) => void;
|
|
195
|
+
onSubmit: (search: IAnyObject) => void;
|
|
196
|
+
resetData?: IAnyObject;
|
|
197
|
+
excludeFromSearch?: string[];
|
|
198
|
+
}
|
|
199
|
+
interface ITableFilterItem {
|
|
200
|
+
label: string;
|
|
201
|
+
field: ReactElement;
|
|
202
|
+
resetField: () => void;
|
|
203
|
+
}
|
|
204
|
+
interface ITableFilter {
|
|
205
|
+
[id: string]: ITableFilterItem;
|
|
206
|
+
}
|
|
207
|
+
interface ITableSortData {
|
|
208
|
+
sort: string;
|
|
209
|
+
setSort: (sort: string) => void;
|
|
210
|
+
sortOptions: ITableSort[];
|
|
211
|
+
menuSize?: 's' | 'm' | 'l';
|
|
212
|
+
}
|
|
213
|
+
interface ITableSort {
|
|
214
|
+
label: string;
|
|
215
|
+
asc: string;
|
|
216
|
+
desc: string;
|
|
217
|
+
}
|
|
105
218
|
interface ITableColumnsData {
|
|
106
219
|
columns: ITableColumn[];
|
|
107
220
|
setColumns: (columns: ITableColumn[]) => void;
|
|
108
221
|
withSearch?: boolean;
|
|
109
222
|
}
|
|
223
|
+
interface ITableSelectedActions {
|
|
224
|
+
label: string;
|
|
225
|
+
onClick: (selected: Set<string>) => void;
|
|
226
|
+
hidden?: boolean;
|
|
227
|
+
disabled?: boolean;
|
|
228
|
+
clearSelected?: boolean;
|
|
229
|
+
}
|
|
230
|
+
interface IBasePrintData {
|
|
231
|
+
label: string;
|
|
232
|
+
organization?: {
|
|
233
|
+
name?: string;
|
|
234
|
+
taxId?: string;
|
|
235
|
+
registrationNumber?: string;
|
|
236
|
+
jbkjs?: string;
|
|
237
|
+
email?: string;
|
|
238
|
+
};
|
|
239
|
+
filters?: {
|
|
240
|
+
basic?: {
|
|
241
|
+
label: string;
|
|
242
|
+
value?: string;
|
|
243
|
+
}[];
|
|
244
|
+
date?: {
|
|
245
|
+
label: string;
|
|
246
|
+
from?: string;
|
|
247
|
+
to?: string;
|
|
248
|
+
}[];
|
|
249
|
+
};
|
|
250
|
+
saveXlsx?: () => void;
|
|
251
|
+
}
|
|
252
|
+
interface ICustomPrintData extends IBasePrintData {
|
|
253
|
+
content: ReactNode;
|
|
254
|
+
}
|
|
255
|
+
interface IPrintData extends IBasePrintData {
|
|
256
|
+
optionalNode?: {
|
|
257
|
+
aboveTable?: ReactNode;
|
|
258
|
+
bellowTable?: ReactNode;
|
|
259
|
+
};
|
|
260
|
+
customHeader?: ITableColumn[][];
|
|
261
|
+
excludeColumns?: string[];
|
|
262
|
+
getPrintData: (pagination: IPagination) => Promise<{
|
|
263
|
+
data: any[];
|
|
264
|
+
totalRows?: number;
|
|
265
|
+
}>;
|
|
266
|
+
formatPrintData: (data: any) => ITableDataItem[];
|
|
267
|
+
totals?: ITableDataItem;
|
|
268
|
+
}
|
|
269
|
+
interface IPagination {
|
|
270
|
+
limit: number;
|
|
271
|
+
offset: number;
|
|
272
|
+
}
|
|
273
|
+
interface IServerSidePagination {
|
|
274
|
+
limit: number;
|
|
275
|
+
offset: number;
|
|
276
|
+
setLimit: Dispatch<SetStateAction<number>>;
|
|
277
|
+
setOffset: Dispatch<SetStateAction<number>>;
|
|
278
|
+
totalRows: number;
|
|
279
|
+
}
|
|
280
|
+
interface ITableEditRow {
|
|
281
|
+
columns: ITableColumn[];
|
|
282
|
+
data: any;
|
|
283
|
+
setData: (data: any) => void;
|
|
284
|
+
item?: any;
|
|
285
|
+
clearItem: () => void;
|
|
286
|
+
defaultDataValue?: any;
|
|
287
|
+
inputFocusRef?: RefObject<any>;
|
|
288
|
+
}
|
|
110
289
|
interface IReportTemplate {
|
|
111
290
|
uuid: string;
|
|
112
291
|
name: string;
|
|
@@ -128,6 +307,12 @@ interface IReportTemplateFilterValue {
|
|
|
128
307
|
name?: string;
|
|
129
308
|
type: 'STRING' | 'ARRAY' | 'OBJECT' | 'BOOLEAN';
|
|
130
309
|
}
|
|
310
|
+
interface IReportTemplateData {
|
|
311
|
+
searchData: IAnyObject;
|
|
312
|
+
visibleColumns?: string[];
|
|
313
|
+
sorts?: string[];
|
|
314
|
+
}
|
|
315
|
+
declare const tableCustomLimit1000: number[];
|
|
131
316
|
|
|
132
317
|
interface IKeyboardAction {
|
|
133
318
|
key: string;
|
|
@@ -137,6 +322,20 @@ interface IKeyboardAction {
|
|
|
137
322
|
onBulkAction?: (itemUuids: string[]) => void;
|
|
138
323
|
disabled?: boolean;
|
|
139
324
|
}
|
|
325
|
+
interface ITableKeyboardActionsBase {
|
|
326
|
+
moveDisabled?: boolean;
|
|
327
|
+
editDisabled?: boolean;
|
|
328
|
+
delete?: {
|
|
329
|
+
enabled: boolean;
|
|
330
|
+
setItemToDeleteUuids: (itemUuids: string[]) => void;
|
|
331
|
+
onAction?: () => void;
|
|
332
|
+
};
|
|
333
|
+
additional?: (props: {
|
|
334
|
+
focusedRow: ITableDataItem | null;
|
|
335
|
+
isEditing: boolean;
|
|
336
|
+
isAdding: boolean;
|
|
337
|
+
}) => IKeyboardAction[];
|
|
338
|
+
}
|
|
140
339
|
|
|
141
340
|
interface IError {
|
|
142
341
|
errorMessage: string;
|
|
@@ -222,6 +421,7 @@ interface IRoute {
|
|
|
222
421
|
element: ReactElement;
|
|
223
422
|
}
|
|
224
423
|
|
|
424
|
+
type IMenuPlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
225
425
|
interface IMenuItem {
|
|
226
426
|
label: string;
|
|
227
427
|
icon?: IconDefinition;
|
|
@@ -234,19 +434,17 @@ interface IMenuItem {
|
|
|
234
434
|
withDevider?: boolean;
|
|
235
435
|
keepOpen?: boolean;
|
|
236
436
|
className?: string;
|
|
237
|
-
children?: ReactNode;
|
|
238
437
|
}
|
|
239
|
-
declare const MenuItem: react.ForwardRefExoticComponent<IMenuItem & react.RefAttributes<HTMLDivElement>>;
|
|
240
438
|
|
|
241
|
-
interface Props$
|
|
439
|
+
interface Props$p {
|
|
242
440
|
userName?: string;
|
|
243
441
|
organizationName?: string;
|
|
244
442
|
showBadge?: boolean;
|
|
245
443
|
menuItems?: IMenuItem[];
|
|
246
444
|
}
|
|
247
|
-
declare const UserMenu: FC<Props$
|
|
445
|
+
declare const UserMenu: FC<Props$p>;
|
|
248
446
|
|
|
249
|
-
interface Props$
|
|
447
|
+
interface Props$o {
|
|
250
448
|
modules: {
|
|
251
449
|
name: string;
|
|
252
450
|
icon: IconDefinition;
|
|
@@ -258,15 +456,15 @@ interface Props$i {
|
|
|
258
456
|
icon: IconDefinition;
|
|
259
457
|
} | null;
|
|
260
458
|
}
|
|
261
|
-
declare const ModuleSelect: FC<Props$
|
|
459
|
+
declare const ModuleSelect: FC<Props$o>;
|
|
262
460
|
|
|
263
|
-
interface Props$
|
|
461
|
+
interface Props$n {
|
|
264
462
|
customTitle?: string;
|
|
265
463
|
modulesProps?: ComponentProps<typeof ModuleSelect>;
|
|
266
464
|
userMenuProps: ComponentProps<typeof UserMenu>;
|
|
267
465
|
children?: ReactNode;
|
|
268
466
|
}
|
|
269
|
-
declare const Header: FC<Props$
|
|
467
|
+
declare const Header: FC<Props$n>;
|
|
270
468
|
|
|
271
469
|
interface ISidebarItem {
|
|
272
470
|
label: string;
|
|
@@ -301,22 +499,22 @@ interface ISidebarProps {
|
|
|
301
499
|
}
|
|
302
500
|
declare const Sidebar: FC<ISidebarProps>;
|
|
303
501
|
|
|
304
|
-
interface Props$
|
|
502
|
+
interface Props$m {
|
|
305
503
|
fullScreenRoutes: IRoute[];
|
|
306
504
|
appRoutes: IRoute[];
|
|
307
505
|
header: ComponentProps<typeof Header>;
|
|
308
506
|
sidebar: ComponentProps<typeof Sidebar>;
|
|
309
507
|
}
|
|
310
|
-
declare const Router: FC<Props$
|
|
508
|
+
declare const Router: FC<Props$m>;
|
|
311
509
|
|
|
312
|
-
interface Props$
|
|
510
|
+
interface Props$l {
|
|
313
511
|
tabs: ITab[];
|
|
314
512
|
initialValue?: string;
|
|
315
513
|
compact?: boolean;
|
|
316
514
|
keepContentInDom?: boolean;
|
|
317
515
|
className?: string;
|
|
318
516
|
}
|
|
319
|
-
declare const Accordions: FC<Props$
|
|
517
|
+
declare const Accordions: FC<Props$l>;
|
|
320
518
|
|
|
321
519
|
type IInfoType = 'success' | 'info' | 'warning' | 'danger';
|
|
322
520
|
|
|
@@ -329,28 +527,28 @@ interface IAlertProps {
|
|
|
329
527
|
}
|
|
330
528
|
declare const Alert: FC<IAlertProps>;
|
|
331
529
|
|
|
332
|
-
interface Props$
|
|
530
|
+
interface Props$k {
|
|
333
531
|
label: string;
|
|
334
532
|
color: IInfoType | 'gray';
|
|
335
533
|
className?: string;
|
|
336
534
|
}
|
|
337
|
-
declare const DotBadge: FC<Props$
|
|
535
|
+
declare const DotBadge: FC<Props$k>;
|
|
338
536
|
|
|
339
|
-
interface Props$
|
|
537
|
+
interface Props$j {
|
|
340
538
|
number?: number;
|
|
341
539
|
className?: string;
|
|
342
|
-
|
|
540
|
+
size?: 's' | 'm';
|
|
343
541
|
children?: ReactNode;
|
|
344
542
|
color?: IInfoType | 'primary';
|
|
345
543
|
}
|
|
346
|
-
declare const NotificationBadge: FC<Props$
|
|
544
|
+
declare const NotificationBadge: FC<Props$j>;
|
|
347
545
|
|
|
348
|
-
interface Props$
|
|
546
|
+
interface Props$i {
|
|
349
547
|
label: string;
|
|
350
548
|
color: IInfoType | 'gray';
|
|
351
549
|
className?: string;
|
|
352
550
|
}
|
|
353
|
-
declare const PillBadge: react.ForwardRefExoticComponent<Props$
|
|
551
|
+
declare const PillBadge: react.ForwardRefExoticComponent<Props$i & react.RefAttributes<HTMLDivElement>>;
|
|
354
552
|
|
|
355
553
|
interface IIconButtonProps {
|
|
356
554
|
icon: IconDefinition;
|
|
@@ -370,7 +568,7 @@ declare const Dashboard: FC<{
|
|
|
370
568
|
children: ReactNode;
|
|
371
569
|
}>;
|
|
372
570
|
|
|
373
|
-
interface Props$
|
|
571
|
+
interface Props$h {
|
|
374
572
|
title: string;
|
|
375
573
|
icon?: any;
|
|
376
574
|
type?: 'warning' | 'info';
|
|
@@ -378,27 +576,27 @@ interface Props$b {
|
|
|
378
576
|
isLoading?: boolean;
|
|
379
577
|
children: ReactNode;
|
|
380
578
|
}
|
|
381
|
-
declare const DashboardWidget: FC<Props$
|
|
579
|
+
declare const DashboardWidget: FC<Props$h>;
|
|
382
580
|
|
|
383
|
-
interface Props$
|
|
581
|
+
interface Props$g {
|
|
384
582
|
links: {
|
|
385
583
|
icon?: IconDefinition;
|
|
386
584
|
label: string;
|
|
387
585
|
onClick: () => void;
|
|
388
586
|
}[];
|
|
389
587
|
}
|
|
390
|
-
declare const FastLinksWidget: FC<Props$
|
|
588
|
+
declare const FastLinksWidget: FC<Props$g>;
|
|
391
589
|
|
|
392
|
-
interface Props$
|
|
590
|
+
interface Props$f {
|
|
393
591
|
textId: string;
|
|
394
592
|
itemUuid: string;
|
|
395
593
|
setItemUuid: Dispatch<SetStateAction<string>>;
|
|
396
594
|
reloadItems: () => void;
|
|
397
595
|
deleteItemFunction: (itemUuid: string) => Promise<any>;
|
|
398
596
|
}
|
|
399
|
-
declare const DeleteItemDialog: FC<Props$
|
|
597
|
+
declare const DeleteItemDialog: FC<Props$f>;
|
|
400
598
|
|
|
401
|
-
interface Props$
|
|
599
|
+
interface Props$e {
|
|
402
600
|
title?: string;
|
|
403
601
|
titleEl?: ReactNode;
|
|
404
602
|
desc?: string;
|
|
@@ -438,15 +636,15 @@ interface Props$8 {
|
|
|
438
636
|
className?: string;
|
|
439
637
|
children?: ReactNode;
|
|
440
638
|
}
|
|
441
|
-
declare const Dialog: FC<Props$
|
|
639
|
+
declare const Dialog: FC<Props$e>;
|
|
442
640
|
|
|
443
|
-
interface Props$
|
|
641
|
+
interface Props$d {
|
|
444
642
|
isOpen: boolean;
|
|
445
643
|
children: ReactNode;
|
|
446
644
|
keepContentInDom?: boolean;
|
|
447
645
|
className?: string;
|
|
448
646
|
}
|
|
449
|
-
declare const Collapse: FC<Props$
|
|
647
|
+
declare const Collapse: FC<Props$d>;
|
|
450
648
|
|
|
451
649
|
interface ICheckboxProps {
|
|
452
650
|
label?: string;
|
|
@@ -493,7 +691,7 @@ interface IDateInputProps {
|
|
|
493
691
|
errorText?: string;
|
|
494
692
|
isClearable?: boolean;
|
|
495
693
|
className?: string;
|
|
496
|
-
|
|
694
|
+
calendarPlacement: IMenuPlacement;
|
|
497
695
|
}
|
|
498
696
|
declare const DateInput: FC<IDateInputProps>;
|
|
499
697
|
|
|
@@ -577,7 +775,7 @@ interface IRadioProps {
|
|
|
577
775
|
}
|
|
578
776
|
declare const Radio: react.ForwardRefExoticComponent<IRadioProps & react.RefAttributes<HTMLDivElement>>;
|
|
579
777
|
|
|
580
|
-
interface Props$
|
|
778
|
+
interface Props$c {
|
|
581
779
|
title?: string | ReactElement;
|
|
582
780
|
desc?: string | ReactElement;
|
|
583
781
|
value: string;
|
|
@@ -587,7 +785,7 @@ interface Props$6 {
|
|
|
587
785
|
className?: string;
|
|
588
786
|
children?: ReactNode;
|
|
589
787
|
}
|
|
590
|
-
declare const RadioLarge: FC<Props$
|
|
788
|
+
declare const RadioLarge: FC<Props$c>;
|
|
591
789
|
|
|
592
790
|
interface IProps {
|
|
593
791
|
label?: string;
|
|
@@ -629,7 +827,7 @@ interface ITextInputProps {
|
|
|
629
827
|
}
|
|
630
828
|
declare const TextInput: react.ForwardRefExoticComponent<ITextInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
631
829
|
|
|
632
|
-
interface Props$
|
|
830
|
+
interface Props$b {
|
|
633
831
|
isLoading: boolean;
|
|
634
832
|
isFullPage?: boolean;
|
|
635
833
|
classNameLoader?: string;
|
|
@@ -638,22 +836,82 @@ interface Props$5 {
|
|
|
638
836
|
children: ReactElement | ReactNode;
|
|
639
837
|
}>;
|
|
640
838
|
}
|
|
641
|
-
declare const Loader: FC<Props$
|
|
839
|
+
declare const Loader: FC<Props$b>;
|
|
642
840
|
declare const FullScreenLoader: FC<{
|
|
643
841
|
isLoading: boolean;
|
|
644
842
|
}>;
|
|
645
843
|
declare const LazyLoader: FC;
|
|
646
844
|
|
|
647
|
-
interface Props$
|
|
648
|
-
|
|
845
|
+
interface Props$a {
|
|
846
|
+
isOpen: boolean;
|
|
847
|
+
onClose: () => void;
|
|
649
848
|
renderButton: (ref: RefObject<any>) => ReactNode;
|
|
650
|
-
items
|
|
651
|
-
placement?:
|
|
849
|
+
items?: IMenuItem[];
|
|
850
|
+
placement?: IMenuPlacement;
|
|
652
851
|
size?: 's' | 'm' | 'l';
|
|
653
852
|
className?: string;
|
|
654
853
|
classNameItem?: string;
|
|
854
|
+
children?: ReactNode;
|
|
855
|
+
}
|
|
856
|
+
declare const Menu: FC<Props$a>;
|
|
857
|
+
|
|
858
|
+
declare const MenuItem: react.ForwardRefExoticComponent<IMenuItem & react.RefAttributes<HTMLDivElement>>;
|
|
859
|
+
|
|
860
|
+
interface Props$9 {
|
|
861
|
+
item: any;
|
|
862
|
+
setSelectedItem?: (item: any) => void;
|
|
863
|
+
setItemToDeleteUuid?: (uuid: string) => void;
|
|
864
|
+
actions?: {
|
|
865
|
+
label: string;
|
|
866
|
+
onClick: (uuid: string) => void;
|
|
867
|
+
hidden?: boolean;
|
|
868
|
+
disabled?: boolean;
|
|
869
|
+
}[];
|
|
655
870
|
}
|
|
656
|
-
declare const
|
|
871
|
+
declare const ItemActionsMenu: FC<Props$9>;
|
|
872
|
+
|
|
873
|
+
interface Props$8 {
|
|
874
|
+
setData: (item: any) => void;
|
|
875
|
+
clearItem: () => void;
|
|
876
|
+
inputFocusRef?: RefObject<any>;
|
|
877
|
+
defaultDataValue?: any;
|
|
878
|
+
}
|
|
879
|
+
declare const ItemEditOptionsButtons: FC<Props$8>;
|
|
880
|
+
|
|
881
|
+
declare const TableEditRow: FC<ITableEditRow>;
|
|
882
|
+
|
|
883
|
+
interface Props$7 {
|
|
884
|
+
item: ITableFilterItem;
|
|
885
|
+
}
|
|
886
|
+
declare const FilterItem: FC<Props$7>;
|
|
887
|
+
|
|
888
|
+
interface Props$6 extends ITableFilterData {
|
|
889
|
+
isOpen: boolean;
|
|
890
|
+
onClose: () => void;
|
|
891
|
+
}
|
|
892
|
+
declare const SetTableFilter: FC<Props$6>;
|
|
893
|
+
|
|
894
|
+
interface Props$5 {
|
|
895
|
+
pagination: IServerSidePagination;
|
|
896
|
+
noTotalRows?: boolean;
|
|
897
|
+
dataLength: number;
|
|
898
|
+
footerAction?: {
|
|
899
|
+
icon?: IconDefinition;
|
|
900
|
+
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
901
|
+
};
|
|
902
|
+
customLimit?: number[];
|
|
903
|
+
}
|
|
904
|
+
declare const TableFooter: FC<Props$5>;
|
|
905
|
+
|
|
906
|
+
declare const Table: FC<ITable>;
|
|
907
|
+
|
|
908
|
+
interface Props$4 extends IPrintData {
|
|
909
|
+
isOpen: boolean;
|
|
910
|
+
onClose: () => void;
|
|
911
|
+
columns: ITableColumn[];
|
|
912
|
+
excludeColumnIds?: string[];
|
|
913
|
+
}
|
|
914
|
+
declare const TablePrint: FC<Props$4>;
|
|
657
915
|
|
|
658
916
|
interface Props$3 {
|
|
659
917
|
tabs: ITab[];
|
|
@@ -809,6 +1067,7 @@ declare const parseUrlSearch: (search: string) => {
|
|
|
809
1067
|
};
|
|
810
1068
|
|
|
811
1069
|
declare const i18nIUILatin: {
|
|
1070
|
+
HomePage: string;
|
|
812
1071
|
Actions: string;
|
|
813
1072
|
Active: string;
|
|
814
1073
|
AddInput: string;
|
|
@@ -1039,15 +1298,33 @@ declare const i18nIUIMe: {
|
|
|
1039
1298
|
NoAccessPageInfo: string;
|
|
1040
1299
|
};
|
|
1041
1300
|
|
|
1301
|
+
declare const useDefaultTemplate: (identifier?: string) => void;
|
|
1302
|
+
|
|
1303
|
+
declare global {
|
|
1304
|
+
var zE: {
|
|
1305
|
+
show: () => void;
|
|
1306
|
+
hide: () => void;
|
|
1307
|
+
activate: () => void;
|
|
1308
|
+
setLocale: (locale: string) => void;
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1311
|
+
declare const useHideZendesk: () => void;
|
|
1312
|
+
|
|
1042
1313
|
declare const useOnEsc: (onEsc: () => void, disabled?: boolean) => void;
|
|
1043
1314
|
|
|
1044
1315
|
declare const useDialogObserver: () => boolean;
|
|
1045
1316
|
|
|
1317
|
+
declare const useTableSelect: () => {
|
|
1318
|
+
selectedRows: Set<string>;
|
|
1319
|
+
setSelectedRows: react.Dispatch<react.SetStateAction<Set<string>>>;
|
|
1320
|
+
resetSelectedRows: () => void;
|
|
1321
|
+
};
|
|
1322
|
+
|
|
1046
1323
|
declare const useIsMenuOpen: () => {
|
|
1047
1324
|
isMenuOpen: boolean;
|
|
1048
1325
|
onMenuOpen: () => void;
|
|
1049
1326
|
onMenuClose: () => number;
|
|
1050
1327
|
};
|
|
1051
1328
|
|
|
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 };
|
|
1329
|
+
export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CurrencyInput, Dashboard, DashboardWidget, DateInput, DeleteItemDialog, Dialog, DotBadge, FastLinksWidget, FilterItem, FormWrapper, FullScreenLoader, IconButton, ItemActionsMenu, ItemEditOptionsButtons, LazyLoader, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageLayout, PasswordInput, PillBadge, Radio, RadioLarge, Router, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, SetTableFilter, Table, TableEditRow, TableFooter, TablePrint, 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, useDialogObserver, useHideZendesk, useIsMenuOpen, useOnEsc, useTableSelect };
|
|
1330
|
+
export type { DeepPartial, IAlertProps, IAnyObject, IBooleanObject, IError, IFormWrapper, IHeaderAction, IKeyboardAction, IPagination, IRoute, ISelectData, IServerSidePagination, ISimpleObject, ISimpleObjectWithCode, IStringObject, ITab, ITable, ITableColumn, ITableDataItem, ITableEditRow, ITableFilter, ITableFilterData, ITableFilterItem, ITableSort, ITreeItem, IValueLabel };
|