@inceptionbg/iui 1.0.114 → 1.0.116
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 +133 -132
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,56 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
export { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
2
3
|
export { default as clsx } from 'clsx';
|
|
3
4
|
export { default as moment } from 'moment';
|
|
4
|
-
export {
|
|
5
|
-
export { v4 as uuidv4 } from 'uuid';
|
|
5
|
+
export { DragDropContext, Draggable, Droppable } from 'react-beautiful-dnd';
|
|
6
6
|
import * as react_toastify from 'react-toastify';
|
|
7
7
|
export { ToastContainer } from 'react-toastify';
|
|
8
|
-
export {
|
|
8
|
+
export { v4 as uuidv4 } from 'uuid';
|
|
9
9
|
import * as react from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { MouseEventHandler, ButtonHTMLAttributes, FormEvent, ReactNode, FC, FunctionComponent, RefObject, ReactElement, Dispatch, SetStateAction, InputHTMLAttributes } from 'react';
|
|
11
11
|
import { IconDefinition, RotateProp } from '@fortawesome/fontawesome-svg-core';
|
|
12
12
|
|
|
13
|
+
type IButtonColor = 'primary' | 'secondary' | 'error';
|
|
14
|
+
interface Props$s {
|
|
15
|
+
label: string;
|
|
16
|
+
icon?: IconDefinition;
|
|
17
|
+
iconEnd?: IconDefinition;
|
|
18
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
solid?: boolean;
|
|
21
|
+
outlined?: boolean;
|
|
22
|
+
active?: boolean;
|
|
23
|
+
color?: IButtonColor;
|
|
24
|
+
size?: 'xs' | 's' | 'm' | 'l';
|
|
25
|
+
className?: string;
|
|
26
|
+
buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
27
|
+
}
|
|
28
|
+
declare const Button: react.ForwardRefExoticComponent<Props$s & react.RefAttributes<HTMLButtonElement>>;
|
|
29
|
+
|
|
30
|
+
interface IFormWrapper {
|
|
31
|
+
isLoading: boolean;
|
|
32
|
+
className?: string;
|
|
33
|
+
submitButton: {
|
|
34
|
+
label?: string;
|
|
35
|
+
icon?: any;
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
onSubmit: (e: FormEvent<HTMLFormElement>) => void;
|
|
38
|
+
solid?: boolean;
|
|
39
|
+
color?: IButtonColor;
|
|
40
|
+
};
|
|
41
|
+
otherButtons?: {
|
|
42
|
+
label: string;
|
|
43
|
+
icon?: any;
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
outlined?: boolean;
|
|
46
|
+
color?: IButtonColor;
|
|
47
|
+
onClick: () => void;
|
|
48
|
+
}[];
|
|
49
|
+
noAccess?: boolean;
|
|
50
|
+
children: ReactNode;
|
|
51
|
+
}
|
|
52
|
+
declare const FormWrapper: FC<IFormWrapper>;
|
|
53
|
+
|
|
13
54
|
interface IAnyObject {
|
|
14
55
|
[id: string]: any;
|
|
15
56
|
}
|
|
@@ -36,6 +77,11 @@ interface IError {
|
|
|
36
77
|
errorCode?: string;
|
|
37
78
|
}
|
|
38
79
|
|
|
80
|
+
interface ISelectData extends IValueLabel {
|
|
81
|
+
disabled?: boolean;
|
|
82
|
+
[id: string]: any;
|
|
83
|
+
}
|
|
84
|
+
|
|
39
85
|
interface ITab {
|
|
40
86
|
value: string;
|
|
41
87
|
label: string;
|
|
@@ -208,52 +254,6 @@ interface ITableEditRow {
|
|
|
208
254
|
inputFocusRef?: RefObject<any>;
|
|
209
255
|
}
|
|
210
256
|
|
|
211
|
-
interface ISelectData extends IValueLabel {
|
|
212
|
-
disabled?: boolean;
|
|
213
|
-
[id: string]: any;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
type IButtonColor = 'primary' | 'secondary' | 'error';
|
|
217
|
-
interface Props$s {
|
|
218
|
-
label: string;
|
|
219
|
-
icon?: IconDefinition;
|
|
220
|
-
iconEnd?: IconDefinition;
|
|
221
|
-
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
222
|
-
disabled?: boolean;
|
|
223
|
-
solid?: boolean;
|
|
224
|
-
outlined?: boolean;
|
|
225
|
-
active?: boolean;
|
|
226
|
-
color?: IButtonColor;
|
|
227
|
-
size?: 'xs' | 's' | 'm' | 'l';
|
|
228
|
-
className?: string;
|
|
229
|
-
buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
230
|
-
}
|
|
231
|
-
declare const Button: react.ForwardRefExoticComponent<Props$s & react.RefAttributes<HTMLButtonElement>>;
|
|
232
|
-
|
|
233
|
-
interface IFormWrapper {
|
|
234
|
-
isLoading: boolean;
|
|
235
|
-
className?: string;
|
|
236
|
-
submitButton: {
|
|
237
|
-
label?: string;
|
|
238
|
-
icon?: any;
|
|
239
|
-
disabled?: boolean;
|
|
240
|
-
onSubmit: (e: FormEvent<HTMLFormElement>) => void;
|
|
241
|
-
solid?: boolean;
|
|
242
|
-
color?: IButtonColor;
|
|
243
|
-
};
|
|
244
|
-
otherButtons?: {
|
|
245
|
-
label: string;
|
|
246
|
-
icon?: any;
|
|
247
|
-
disabled?: boolean;
|
|
248
|
-
outlined?: boolean;
|
|
249
|
-
color?: IButtonColor;
|
|
250
|
-
onClick: () => void;
|
|
251
|
-
}[];
|
|
252
|
-
noAccess?: boolean;
|
|
253
|
-
children: ReactNode;
|
|
254
|
-
}
|
|
255
|
-
declare const FormWrapper: FC<IFormWrapper>;
|
|
256
|
-
|
|
257
257
|
interface Props$r {
|
|
258
258
|
tabs: ITab[];
|
|
259
259
|
initialValue?: string;
|
|
@@ -272,26 +272,26 @@ interface Props$q {
|
|
|
272
272
|
declare const Alert: FC<Props$q>;
|
|
273
273
|
|
|
274
274
|
interface Props$p {
|
|
275
|
-
|
|
275
|
+
label: string;
|
|
276
|
+
color: 'success' | 'info' | 'warning' | 'error' | 'gray';
|
|
276
277
|
className?: string;
|
|
277
|
-
small?: boolean;
|
|
278
|
-
children?: ReactNode;
|
|
279
278
|
}
|
|
280
|
-
declare const
|
|
279
|
+
declare const DotBadge: FC<Props$p>;
|
|
281
280
|
|
|
282
281
|
interface Props$o {
|
|
283
|
-
|
|
284
|
-
color: 'success' | 'info' | 'warning' | 'error' | 'gray';
|
|
282
|
+
number?: number;
|
|
285
283
|
className?: string;
|
|
284
|
+
small?: boolean;
|
|
285
|
+
children?: ReactNode;
|
|
286
286
|
}
|
|
287
|
-
declare const
|
|
287
|
+
declare const NotificationBadge: FC<Props$o>;
|
|
288
288
|
|
|
289
289
|
interface Props$n {
|
|
290
290
|
label: string;
|
|
291
291
|
color: 'success' | 'info' | 'warning' | 'error' | 'gray';
|
|
292
292
|
className?: string;
|
|
293
293
|
}
|
|
294
|
-
declare const
|
|
294
|
+
declare const PillBadge: react.ForwardRefExoticComponent<Props$n & react.RefAttributes<HTMLDivElement>>;
|
|
295
295
|
|
|
296
296
|
interface Props$m {
|
|
297
297
|
icon: IconDefinition;
|
|
@@ -423,9 +423,10 @@ interface Props$f {
|
|
|
423
423
|
declare const NumberInput: react.ForwardRefExoticComponent<Props$f & react.RefAttributes<HTMLInputElement>>;
|
|
424
424
|
|
|
425
425
|
interface ITextInput {
|
|
426
|
+
id?: string;
|
|
426
427
|
label?: string;
|
|
427
428
|
value?: string;
|
|
428
|
-
setValue
|
|
429
|
+
setValue?: (value: string) => void;
|
|
429
430
|
required?: boolean;
|
|
430
431
|
disabled?: boolean;
|
|
431
432
|
autoFocus?: boolean;
|
|
@@ -562,19 +563,40 @@ interface Props$8 {
|
|
|
562
563
|
declare const MenuItem: FC<Props$8>;
|
|
563
564
|
|
|
564
565
|
interface Props$7 {
|
|
566
|
+
item: any;
|
|
567
|
+
setSelectedItem?: (item: any) => void;
|
|
568
|
+
setItemToDeleteUuid?: (uuid: string) => void;
|
|
569
|
+
actions?: {
|
|
570
|
+
label: string;
|
|
571
|
+
onClick: (uuid: string) => void;
|
|
572
|
+
hidden?: boolean;
|
|
573
|
+
disabled?: boolean;
|
|
574
|
+
}[];
|
|
575
|
+
}
|
|
576
|
+
declare const ItemActionsMenu: FC<Props$7>;
|
|
577
|
+
|
|
578
|
+
interface Props$6 {
|
|
579
|
+
setData: (item: any) => void;
|
|
580
|
+
clearItem: () => void;
|
|
581
|
+
inputFocusRef?: RefObject<any>;
|
|
582
|
+
defaultDataValue?: any;
|
|
583
|
+
}
|
|
584
|
+
declare const ItemEditOptionsButtons: FC<Props$6>;
|
|
585
|
+
|
|
586
|
+
declare const TableEditRow: FC<ITableEditRow>;
|
|
587
|
+
|
|
588
|
+
interface Props$5 {
|
|
565
589
|
item: ITableFilterItem;
|
|
566
590
|
}
|
|
567
|
-
declare const FilterItem: FC<Props$
|
|
591
|
+
declare const FilterItem: FC<Props$5>;
|
|
568
592
|
|
|
569
|
-
interface Props$
|
|
593
|
+
interface Props$4 extends ITableFilterData {
|
|
570
594
|
isOpen: boolean;
|
|
571
595
|
onClose: () => void;
|
|
572
596
|
}
|
|
573
|
-
declare const SetTableFilter: FC<Props$
|
|
574
|
-
|
|
575
|
-
declare const Table: FC<ITable>;
|
|
597
|
+
declare const SetTableFilter: FC<Props$4>;
|
|
576
598
|
|
|
577
|
-
interface Props$
|
|
599
|
+
interface Props$3 {
|
|
578
600
|
limit: number;
|
|
579
601
|
offset: number;
|
|
580
602
|
setLimit: (limit: number) => void;
|
|
@@ -586,30 +608,9 @@ interface Props$5 {
|
|
|
586
608
|
};
|
|
587
609
|
customLimit?: number[];
|
|
588
610
|
}
|
|
589
|
-
declare const TableFooter: FC<Props$
|
|
590
|
-
|
|
591
|
-
interface Props$4 {
|
|
592
|
-
item: any;
|
|
593
|
-
setSelectedItem?: (item: any) => void;
|
|
594
|
-
setItemToDeleteUuid?: (uuid: string) => void;
|
|
595
|
-
actions?: {
|
|
596
|
-
label: string;
|
|
597
|
-
onClick: (uuid: string) => void;
|
|
598
|
-
hidden?: boolean;
|
|
599
|
-
disabled?: boolean;
|
|
600
|
-
}[];
|
|
601
|
-
}
|
|
602
|
-
declare const ItemActionsMenu: FC<Props$4>;
|
|
611
|
+
declare const TableFooter: FC<Props$3>;
|
|
603
612
|
|
|
604
|
-
|
|
605
|
-
setData: (item: any) => void;
|
|
606
|
-
clearItem: () => void;
|
|
607
|
-
inputFocusRef?: RefObject<any>;
|
|
608
|
-
defaultDataValue?: any;
|
|
609
|
-
}
|
|
610
|
-
declare const ItemEditOptionsButtons: FC<Props$3>;
|
|
611
|
-
|
|
612
|
-
declare const TableEditRow: FC<ITableEditRow>;
|
|
613
|
+
declare const Table: FC<ITable>;
|
|
613
614
|
|
|
614
615
|
interface Props$2 {
|
|
615
616
|
tabs: ITab[];
|
|
@@ -677,17 +678,44 @@ declare const getCurrentDateFormattedYMD: () => string;
|
|
|
677
678
|
declare const getDaysLeft: (date?: string) => number;
|
|
678
679
|
declare const formatYearMonth: (year: number, month: number) => string;
|
|
679
680
|
|
|
681
|
+
declare const sizeInBytesPretty: (bytes?: number) => string;
|
|
682
|
+
declare const dataURLtoFile: (dataUrl: string, filename: string, fileExt: string) => File;
|
|
683
|
+
declare const getExtensionFromFilename: (filename?: string) => string;
|
|
684
|
+
declare const calculateFilesSize: (filesList: any[], selectedFiles: IBooleanObject) => any;
|
|
685
|
+
declare const downloadDocumentFile: (fileName: string, url: string, type: 'pdf' | 'xml' | 'xlsx', apiUrl?: string, search?: any) => void;
|
|
686
|
+
declare const getFileFromUrl: (url: string, name: string) => Promise<File>;
|
|
687
|
+
declare const getBase64FromFile: (file: Blob, callback: (data: string) => void) => void;
|
|
688
|
+
declare const getBase64FromUrl: (url: string, callback: (data: string) => void) => void;
|
|
689
|
+
declare const splitBase64File: (base64: string, type?: 'img') => {
|
|
690
|
+
contentType: string;
|
|
691
|
+
base64Data: string;
|
|
692
|
+
};
|
|
693
|
+
declare const rotateBase64Image: (base64data: string, angle: number, callback: (data: string) => void) => void;
|
|
694
|
+
|
|
695
|
+
declare const inputPattern: {
|
|
696
|
+
taxId: string;
|
|
697
|
+
registrationNumber: string;
|
|
698
|
+
personalIdentityNumber: string;
|
|
699
|
+
idCardNumber: string;
|
|
700
|
+
phoneNumber: string;
|
|
701
|
+
port: string;
|
|
702
|
+
year: string;
|
|
703
|
+
number: string;
|
|
704
|
+
};
|
|
705
|
+
|
|
706
|
+
type LocalStorageItem = 'activeUser' | 'token' | 'refreshToken' | 'logInWay' | 'nextUrl' | 'codeVerifier';
|
|
707
|
+
declare const lsGet: (key: LocalStorageItem) => string | null;
|
|
708
|
+
declare const lsSet: (key: LocalStorageItem, value: string) => void;
|
|
709
|
+
declare const lsRemove: (key: LocalStorageItem) => void;
|
|
710
|
+
declare const getDefaultOrgUuid: () => string;
|
|
711
|
+
declare const setDefaultOrgUuid: (organizationUuid: string) => void;
|
|
712
|
+
declare const getActiveOrgUuid: () => string;
|
|
713
|
+
declare const setActiveOrgUuid: (organizationUuid: string) => void;
|
|
714
|
+
|
|
680
715
|
declare const formatCurrency: (number?: string | number, minimumFractionDigits?: number, maximumFractionDigits?: number) => string;
|
|
681
716
|
declare const formatCurrencyNoDecimals: (number?: string | number) => string;
|
|
682
717
|
declare const formatDecimalNumber: (number?: string | number) => string | 0;
|
|
683
718
|
|
|
684
|
-
declare const toastSuccess: (message: string) => react_toastify.Id;
|
|
685
|
-
declare const toastError: (message: string) => react_toastify.Id;
|
|
686
|
-
|
|
687
|
-
declare const maxChar: (str?: string, maxLength?: number) => string;
|
|
688
|
-
declare const getInputHelperText: (t: any, min?: string | number, max?: string | number) => any;
|
|
689
|
-
declare const getInputMinMaxPattern: (min?: string | number, max?: string | number) => string;
|
|
690
|
-
|
|
691
719
|
declare const deleteProps: (obj: any, props: string[]) => any;
|
|
692
720
|
declare const deletePropsThatEndsWith: (obj: any, endsWith: string) => any;
|
|
693
721
|
declare const deleteEmptyProps: (obj: IAnyObject) => any;
|
|
@@ -701,45 +729,21 @@ declare const getVisibleColumnsIds: (tableCols: ITableColumn[], isPrint?: boolea
|
|
|
701
729
|
declare const deepCopy: (el: any[] | object) => any;
|
|
702
730
|
declare const areStringArraysEqual: (arr1: string[], arr2: string[]) => boolean;
|
|
703
731
|
|
|
704
|
-
declare const
|
|
705
|
-
[k: string]: string;
|
|
706
|
-
};
|
|
732
|
+
declare const rootDir: HTMLElement;
|
|
707
733
|
|
|
708
|
-
|
|
709
|
-
declare const
|
|
710
|
-
declare const
|
|
711
|
-
declare const lsRemove: (key: LocalStorageItem) => void;
|
|
712
|
-
declare const getDefaultOrgUuid: () => string;
|
|
713
|
-
declare const setDefaultOrgUuid: (organizationUuid: string) => void;
|
|
714
|
-
declare const getActiveOrgUuid: () => string;
|
|
715
|
-
declare const setActiveOrgUuid: (organizationUuid: string) => void;
|
|
734
|
+
declare const maxChar: (str?: string, maxLength?: number) => string;
|
|
735
|
+
declare const getInputHelperText: (t: any, min?: string | number, max?: string | number) => any;
|
|
736
|
+
declare const getInputMinMaxPattern: (min?: string | number, max?: string | number) => string;
|
|
716
737
|
|
|
717
|
-
declare const
|
|
718
|
-
|
|
719
|
-
registrationNumber: string;
|
|
720
|
-
personalIdentityNumber: string;
|
|
721
|
-
idCardNumber: string;
|
|
722
|
-
phoneNumber: string;
|
|
723
|
-
port: string;
|
|
724
|
-
year: string;
|
|
725
|
-
number: string;
|
|
726
|
-
};
|
|
738
|
+
declare const toastSuccess: (message: string) => react_toastify.Id;
|
|
739
|
+
declare const toastError: (message: string) => react_toastify.Id;
|
|
727
740
|
|
|
728
|
-
declare const
|
|
729
|
-
|
|
730
|
-
declare const getExtensionFromFilename: (filename?: string) => string;
|
|
731
|
-
declare const calculateFilesSize: (filesList: any[], selectedFiles: IBooleanObject) => any;
|
|
732
|
-
declare const downloadDocumentFile: (fileName: string, url: string, type: 'pdf' | 'xml' | 'xlsx', apiUrl?: string, search?: any) => void;
|
|
733
|
-
declare const getFileFromUrl: (url: string, name: string) => Promise<File>;
|
|
734
|
-
declare const getBase64FromFile: (file: Blob, callback: (data: string) => void) => void;
|
|
735
|
-
declare const getBase64FromUrl: (url: string, callback: (data: string) => void) => void;
|
|
736
|
-
declare const splitBase64File: (base64: string, type?: 'img') => {
|
|
737
|
-
contentType: string;
|
|
738
|
-
base64Data: string;
|
|
741
|
+
declare const parseUrlSearch: (search: string) => {
|
|
742
|
+
[k: string]: string;
|
|
739
743
|
};
|
|
740
|
-
declare const rotateBase64Image: (base64data: string, angle: number, callback: (data: string) => void) => void;
|
|
741
744
|
|
|
742
745
|
declare const i18nCommonLatin: {
|
|
746
|
+
Admin: string;
|
|
743
747
|
eArchive: string;
|
|
744
748
|
eDelivery: string;
|
|
745
749
|
eInvoice: string;
|
|
@@ -747,7 +751,6 @@ declare const i18nCommonLatin: {
|
|
|
747
751
|
eValidation: string;
|
|
748
752
|
eSign: string;
|
|
749
753
|
eForms: string;
|
|
750
|
-
Settings: string;
|
|
751
754
|
AccordionView: string;
|
|
752
755
|
Actions: string;
|
|
753
756
|
Active: string;
|
|
@@ -1115,14 +1118,12 @@ declare const i18nCommonLatin: {
|
|
|
1115
1118
|
EmailVerificationCompletedDesc: string;
|
|
1116
1119
|
};
|
|
1117
1120
|
declare const i18nCommonCyrilic: {
|
|
1121
|
+
Admin: string;
|
|
1118
1122
|
eArchive: string;
|
|
1119
1123
|
eDelivery: string;
|
|
1120
1124
|
eInvoice: string;
|
|
1121
1125
|
eOffice: string;
|
|
1122
1126
|
eValidation: string;
|
|
1123
|
-
Settings: string;
|
|
1124
1127
|
};
|
|
1125
1128
|
|
|
1126
|
-
declare const rootDir: HTMLElement;
|
|
1127
|
-
|
|
1128
1129
|
export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, DateInput, DeleteItemDialog, Dialog, DotBadge, FilterItem, FormWrapper, FullScreenLoader, IAnyObject, IBooleanObject, IError, IFormWrapper, IPagination, ISelectData, IServerSidePagination, ISimpleObject, ISimpleObjectWithCode, 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, RadioLarge, SearchInput, Select, SelectAsyncPaginate, SetTableFilter, Table, TableEditRow, TableFooter, Tabs, TextInput, Tooltip, areStringArraysEqual, calculateFilesSize, checkIfExpired, convertBooleanObjectToArray, dataURLtoFile, dateAddDays, deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, deletePropsThatEndsWith, downloadDocumentFile, formatCurrency, formatCurrencyNoDecimals, formatDate, formatDateAndTime, formatDateYMD, formatDecimalNumber, formatTime, formatYearMonth, getActiveFilterNumber, getActiveOrgUuid, getBase64FromFile, getBase64FromUrl, getCurrentDateFormatted, getCurrentDateFormattedYMD, getDaysLeft, getDefaultOrgUuid, getExtensionFromFilename, getFileFromUrl, getInputHelperText, getInputMinMaxPattern, getPrintColumns, getVisibleColumnsIds, i18nCommonCyrilic, i18nCommonLatin, inputPattern, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, rootDir, rotateBase64Image, setActiveOrgUuid, setDefaultOrgUuid, sizeInBytesPretty, splitBase64File, toastError, toastSuccess };
|