@inceptionbg/iui 1.0.309 → 1.0.310

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 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, FC, FormEvent, ReactNode, ReactElement, MouseEvent, Dispatch, SetStateAction, FunctionComponent, RefObject, InputHTMLAttributes, FocusEventHandler } from 'react';
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';
@@ -552,6 +554,7 @@ interface Props$k {
552
554
  error?: boolean;
553
555
  className?: string;
554
556
  calendarPlacementX?: 'left' | 'right';
557
+ maxDate?: Date;
555
558
  }
556
559
  declare const DateInput: react.ForwardRefExoticComponent<Props$k & react.RefAttributes<HTMLInputElement>>;
557
560
 
@@ -896,26 +899,26 @@ interface IPageWrapper {
896
899
  }
897
900
  declare const PageWrapper: FC<IPageWrapper>;
898
901
 
899
- declare const formatDate: (date?: string) => any;
900
- declare const formatDateYMD: (date: string | Date) => any;
901
- declare const formatDateAndTime: (date?: string, withSeconds?: boolean) => any;
902
- declare const formatTime: (date?: string, withSeconds?: boolean) => any;
903
- declare const dateAddDays: (date: string, addDays: number) => any;
902
+ declare const formatDate: (date?: string) => string;
903
+ declare const formatDateYMD: (date: string | Date) => string;
904
+ declare const formatDateAndTime: (date?: string, withSeconds?: boolean) => string;
905
+ declare const formatTime: (date?: string, withSeconds?: boolean) => string;
906
+ declare const dateAddDays: (date: string, addDays: number) => string;
904
907
  declare const checkIfExpired: (date?: string) => boolean;
905
- declare const getCurrentDateFormatted: () => any;
906
- declare const getCurrentDateFormattedYMD: () => any;
907
- declare const getDaysLeft: (date?: string) => any;
908
+ declare const getCurrentDateFormatted: () => string;
909
+ declare const getCurrentDateFormattedYMD: () => string;
910
+ declare const getDaysLeft: (date?: string) => number;
908
911
  declare const formatYearMonth: (year: number, month: number) => string;
909
912
 
910
913
  declare const sizeInBytesPretty: (bytes?: number) => string;
911
914
  declare const dataURLtoFile: (dataUrl: string, filename: string, fileExt: string) => File;
912
915
  declare const getExtensionFromFilename: (filename?: string) => string;
913
916
  declare const calculateFilesSize: (filesList: any[], selectedFiles: IBooleanObject) => any;
914
- declare const downloadDocumentFile: (fileName: string, url: string, type: "pdf" | "xml" | "xlsx", apiUrl?: string, search?: any) => void;
917
+ declare const downloadDocumentFile: (fileName: string, url: string, type: 'pdf' | 'xml' | 'xlsx', apiUrl?: string, search?: any) => void;
915
918
  declare const getFileFromUrl: (url: string, name: string) => Promise<File>;
916
919
  declare const getBase64FromFile: (file: Blob) => Promise<string>;
917
920
  declare const getBase64FromUrl: (url: string) => Promise<string>;
918
- declare const splitBase64File: (base64: string, type?: "img") => {
921
+ declare const splitBase64File: (base64: string, type?: 'img') => {
919
922
  contentType: string;
920
923
  base64Data: string;
921
924
  };
@@ -962,7 +965,7 @@ declare const convertArrayToBooleanObject: (arr?: string[]) => {
962
965
  };
963
966
  declare const deepCopy: (el: any[] | object) => any;
964
967
  declare const areStringArraysEqual: (arr1: string[], arr2: string[]) => boolean;
965
- declare const compareArrayItemsIndex: <T>(array: T[] | readonly T[], item1: T, comparison: "greaterThan" | "greaterThanOrEqualTo" | "lessThan" | "lessThanOrEqualTo", item2: T) => boolean;
968
+ declare const compareArrayItemsIndex: <T>(array: T[] | readonly T[], item1: T, comparison: 'greaterThan' | 'greaterThanOrEqualTo' | 'lessThan' | 'lessThanOrEqualTo', item2: T) => boolean;
966
969
  declare const intersectArrays: <T>(arr1: any[] | readonly T[], arr2: any[] | readonly T[]) => T[];
967
970
 
968
971
  declare const getActiveFilterNumber: (obj: IAnyObject) => number;
@@ -972,9 +975,9 @@ declare const convertSearchToReportTemplateFilter: (search: IAnyObject) => IRepo
972
975
  declare const convertReportTemplateFilterToSearch: (filterValues: IReportTemplateFilterValue[]) => any;
973
976
  declare const setTemplateData: ({ template, columnsData, setFilters, setSort, }: {
974
977
  template: IReportTemplate;
975
- columnsData?: ITableColumnsData;
976
- setFilters?: (filters: IAnyObject) => void;
977
- setSort?: (sort: string) => void;
978
+ columnsData?: ITableColumnsData | undefined;
979
+ setFilters?: ((filters: IAnyObject) => void) | undefined;
980
+ setSort?: ((sort: string) => void) | undefined;
978
981
  }) => void;
979
982
 
980
983
  declare const rootDir: HTMLElement;
@@ -1150,8 +1153,7 @@ declare const useTableSelect: () => {
1150
1153
  declare const useIsMenuOpen: () => {
1151
1154
  isMenuOpen: boolean;
1152
1155
  onMenuOpen: () => void;
1153
- onMenuClose: () => number;
1156
+ onMenuClose: () => NodeJS.Timeout;
1154
1157
  };
1155
1158
 
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 };
1159
+ 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 };