@inceptionbg/iui 1.0.309 → 1.0.312
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 +24 -18
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +55 -55
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="node" />
|
|
1
3
|
export { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
2
4
|
export { default as clsx } from 'clsx';
|
|
3
5
|
export { default as moment } from 'moment';
|
|
@@ -7,7 +9,7 @@ export { ToastContainer } from 'react-toastify';
|
|
|
7
9
|
export { TFunction, changeLanguage, default as i18n, i18n as i18nType } from 'i18next';
|
|
8
10
|
export { I18nextProvider, Trans, useTranslation } from 'react-i18next';
|
|
9
11
|
import * as react from 'react';
|
|
10
|
-
import { MouseEventHandler, ButtonHTMLAttributes,
|
|
12
|
+
import { MouseEventHandler, ButtonHTMLAttributes, FormEvent, ReactNode, FC, Dispatch, SetStateAction, FunctionComponent, RefObject, ReactElement, MouseEvent, InputHTMLAttributes, FocusEventHandler } from 'react';
|
|
11
13
|
import { IconDefinition, RotateProp } from '@fortawesome/fontawesome-svg-core';
|
|
12
14
|
|
|
13
15
|
type IButtonColor = 'primary' | 'secondary' | 'error';
|
|
@@ -350,6 +352,10 @@ interface ITab {
|
|
|
350
352
|
component: ReactNode;
|
|
351
353
|
disabled?: boolean;
|
|
352
354
|
hidden?: boolean;
|
|
355
|
+
badge?: {
|
|
356
|
+
label: string;
|
|
357
|
+
color: 'success' | 'info' | 'warning' | 'error' | 'gray';
|
|
358
|
+
};
|
|
353
359
|
}
|
|
354
360
|
|
|
355
361
|
interface ITreeItem {
|
|
@@ -552,6 +558,7 @@ interface Props$k {
|
|
|
552
558
|
error?: boolean;
|
|
553
559
|
className?: string;
|
|
554
560
|
calendarPlacementX?: 'left' | 'right';
|
|
561
|
+
maxDate?: Date;
|
|
555
562
|
}
|
|
556
563
|
declare const DateInput: react.ForwardRefExoticComponent<Props$k & react.RefAttributes<HTMLInputElement>>;
|
|
557
564
|
|
|
@@ -896,26 +903,26 @@ interface IPageWrapper {
|
|
|
896
903
|
}
|
|
897
904
|
declare const PageWrapper: FC<IPageWrapper>;
|
|
898
905
|
|
|
899
|
-
declare const formatDate: (date?: string) =>
|
|
900
|
-
declare const formatDateYMD: (date: string | Date) =>
|
|
901
|
-
declare const formatDateAndTime: (date?: string, withSeconds?: boolean) =>
|
|
902
|
-
declare const formatTime: (date?: string, withSeconds?: boolean) =>
|
|
903
|
-
declare const dateAddDays: (date: string, addDays: number) =>
|
|
906
|
+
declare const formatDate: (date?: string) => string;
|
|
907
|
+
declare const formatDateYMD: (date: string | Date) => string;
|
|
908
|
+
declare const formatDateAndTime: (date?: string, withSeconds?: boolean) => string;
|
|
909
|
+
declare const formatTime: (date?: string, withSeconds?: boolean) => string;
|
|
910
|
+
declare const dateAddDays: (date: string, addDays: number) => string;
|
|
904
911
|
declare const checkIfExpired: (date?: string) => boolean;
|
|
905
|
-
declare const getCurrentDateFormatted: () =>
|
|
906
|
-
declare const getCurrentDateFormattedYMD: () =>
|
|
907
|
-
declare const getDaysLeft: (date?: string) =>
|
|
912
|
+
declare const getCurrentDateFormatted: () => string;
|
|
913
|
+
declare const getCurrentDateFormattedYMD: () => string;
|
|
914
|
+
declare const getDaysLeft: (date?: string) => number;
|
|
908
915
|
declare const formatYearMonth: (year: number, month: number) => string;
|
|
909
916
|
|
|
910
917
|
declare const sizeInBytesPretty: (bytes?: number) => string;
|
|
911
918
|
declare const dataURLtoFile: (dataUrl: string, filename: string, fileExt: string) => File;
|
|
912
919
|
declare const getExtensionFromFilename: (filename?: string) => string;
|
|
913
920
|
declare const calculateFilesSize: (filesList: any[], selectedFiles: IBooleanObject) => any;
|
|
914
|
-
declare const downloadDocumentFile: (fileName: string, url: string, type:
|
|
921
|
+
declare const downloadDocumentFile: (fileName: string, url: string, type: 'pdf' | 'xml' | 'xlsx', apiUrl?: string, search?: any) => void;
|
|
915
922
|
declare const getFileFromUrl: (url: string, name: string) => Promise<File>;
|
|
916
923
|
declare const getBase64FromFile: (file: Blob) => Promise<string>;
|
|
917
924
|
declare const getBase64FromUrl: (url: string) => Promise<string>;
|
|
918
|
-
declare const splitBase64File: (base64: string, type?:
|
|
925
|
+
declare const splitBase64File: (base64: string, type?: 'img') => {
|
|
919
926
|
contentType: string;
|
|
920
927
|
base64Data: string;
|
|
921
928
|
};
|
|
@@ -962,7 +969,7 @@ declare const convertArrayToBooleanObject: (arr?: string[]) => {
|
|
|
962
969
|
};
|
|
963
970
|
declare const deepCopy: (el: any[] | object) => any;
|
|
964
971
|
declare const areStringArraysEqual: (arr1: string[], arr2: string[]) => boolean;
|
|
965
|
-
declare const compareArrayItemsIndex: <T>(array: T[] | readonly T[], item1: T, comparison:
|
|
972
|
+
declare const compareArrayItemsIndex: <T>(array: T[] | readonly T[], item1: T, comparison: 'greaterThan' | 'greaterThanOrEqualTo' | 'lessThan' | 'lessThanOrEqualTo', item2: T) => boolean;
|
|
966
973
|
declare const intersectArrays: <T>(arr1: any[] | readonly T[], arr2: any[] | readonly T[]) => T[];
|
|
967
974
|
|
|
968
975
|
declare const getActiveFilterNumber: (obj: IAnyObject) => number;
|
|
@@ -972,9 +979,9 @@ declare const convertSearchToReportTemplateFilter: (search: IAnyObject) => IRepo
|
|
|
972
979
|
declare const convertReportTemplateFilterToSearch: (filterValues: IReportTemplateFilterValue[]) => any;
|
|
973
980
|
declare const setTemplateData: ({ template, columnsData, setFilters, setSort, }: {
|
|
974
981
|
template: IReportTemplate;
|
|
975
|
-
columnsData?: ITableColumnsData;
|
|
976
|
-
setFilters?: (filters: IAnyObject) => void;
|
|
977
|
-
setSort?: (sort: string) => void;
|
|
982
|
+
columnsData?: ITableColumnsData | undefined;
|
|
983
|
+
setFilters?: ((filters: IAnyObject) => void) | undefined;
|
|
984
|
+
setSort?: ((sort: string) => void) | undefined;
|
|
978
985
|
}) => void;
|
|
979
986
|
|
|
980
987
|
declare const rootDir: HTMLElement;
|
|
@@ -1150,8 +1157,7 @@ declare const useTableSelect: () => {
|
|
|
1150
1157
|
declare const useIsMenuOpen: () => {
|
|
1151
1158
|
isMenuOpen: boolean;
|
|
1152
1159
|
onMenuOpen: () => void;
|
|
1153
|
-
onMenuClose: () =>
|
|
1160
|
+
onMenuClose: () => NodeJS.Timeout;
|
|
1154
1161
|
};
|
|
1155
1162
|
|
|
1156
|
-
export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CurrencyInput, Dashboard, DashboardWidget, DateInput, DeleteItemDialog, Dialog, DotBadge, FastLinksWidget, FilterItem, FormWrapper, FullScreenLoader, IconButton, ItemActionsMenu, ItemEditOptionsButtons, LargeTextInput, LazyLoader, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageWrapper, PasswordInput, PillBadge, Radio, RadioLarge, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, SetTableFilter, Table, TableEditRow, TableFooter, TablePrint, Tabs, 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, inputPattern, intersectArrays, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, rootDir, rotateBase64Image, setActiveOrgUuid, setDefaultOrgUuid, setTemplateData, sizeInBytesPretty, splitBase64File, tableCustomLimit1000, toastError, toastSuccess, useDefaultTemplate, useDialogObserver, useHideZendesk, useIsMenuOpen, useOnEsc, useTableSelect };
|
|
1157
|
-
export type { DeepPartial, IAlertProps, IAnyObject, IBooleanObject, IError, IFormWrapper, IHeaderAction, IKeyboardAction, IPagination, ISelectData, IServerSidePagination, ISimpleObject, ISimpleObjectWithCode, IStringObject, ITab, ITable, ITableColumn, ITableDataItem, ITableEditRow, ITableFilter, ITableFilterData, ITableFilterItem, ITableSort, ITreeItem, IValueLabel };
|
|
1163
|
+
export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CurrencyInput, Dashboard, DashboardWidget, DateInput, DeepPartial, DeleteItemDialog, Dialog, DotBadge, FastLinksWidget, FilterItem, FormWrapper, FullScreenLoader, IAlertProps, IAnyObject, IBooleanObject, IError, IFormWrapper, IHeaderAction, IKeyboardAction, IPagination, ISelectData, IServerSidePagination, ISimpleObject, ISimpleObjectWithCode, IStringObject, ITab, ITable, ITableColumn, ITableDataItem, ITableEditRow, ITableFilter, ITableFilterData, ITableFilterItem, ITableSort, ITreeItem, IValueLabel, IconButton, ItemActionsMenu, ItemEditOptionsButtons, LargeTextInput, LazyLoader, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageWrapper, PasswordInput, PillBadge, Radio, RadioLarge, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, SetTableFilter, Table, TableEditRow, TableFooter, TablePrint, Tabs, 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, inputPattern, intersectArrays, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, rootDir, rotateBase64Image, setActiveOrgUuid, setDefaultOrgUuid, setTemplateData, sizeInBytesPretty, splitBase64File, tableCustomLimit1000, toastError, toastSuccess, useDefaultTemplate, useDialogObserver, useHideZendesk, useIsMenuOpen, useOnEsc, useTableSelect };
|