@inceptionbg/iui 2.0.46 → 2.0.48

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
@@ -1122,11 +1122,14 @@ interface BaseItemProps$1<T> {
1122
1122
  placeholder?: string;
1123
1123
  required?: boolean;
1124
1124
  additionalClearIds?: (keyof T)[];
1125
- inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
1125
+ }
1126
+ interface TextProps<T> extends BaseItemProps$1<T> {
1127
+ inputProps?: React.ComponentProps<typeof TextInput>['inputProps'];
1126
1128
  }
1127
1129
  interface SelectProps$1<T> extends BaseItemProps$1<T> {
1128
1130
  options: readonly (string | boolean)[] | (string | boolean)[];
1129
1131
  minWidth?: number;
1132
+ isClearable?: boolean;
1130
1133
  formatOption: (value: string | boolean) => {
1131
1134
  value: string | boolean;
1132
1135
  label: string;
@@ -1134,16 +1137,22 @@ interface SelectProps$1<T> extends BaseItemProps$1<T> {
1134
1137
  }
1135
1138
  declare const useTableEdit: <T extends Record<string, any>>() => {
1136
1139
  editable: Pick<ITableEdit<T>, "selectedItem" | "setSelectedItem" | "editData" | "setEditData">;
1137
- textEditCell: ({ placeholder, required, id, additionalClearIds, inputProps, }: BaseItemProps$1<T>) => {
1140
+ textEditCell: ({ placeholder, required, id, additionalClearIds, inputProps, }: TextProps<T>) => {
1138
1141
  value: react_jsx_runtime.JSX.Element;
1139
1142
  };
1140
- numberEditCell: ({ placeholder, required, id, additionalClearIds, inputProps, }: BaseItemProps$1<T>) => {
1143
+ numberEditCell: ({ placeholder, required, id, additionalClearIds, inputProps, }: TextProps<T>) => {
1141
1144
  value: react_jsx_runtime.JSX.Element;
1142
1145
  };
1143
1146
  dateEditCell: ({ id, required, additionalClearIds, }: Omit<BaseItemProps$1<T>, "placeholder" | "inputProps">) => {
1144
1147
  value: react_jsx_runtime.JSX.Element;
1145
1148
  };
1146
- selectEditCell: ({ id, placeholder, required, options, formatOption, additionalClearIds, minWidth, }: SelectProps$1<T>) => {
1149
+ selectEditCell: ({ id, placeholder, required, options, formatOption, additionalClearIds, minWidth, isClearable, }: SelectProps$1<T>) => {
1150
+ value: react_jsx_runtime.JSX.Element;
1151
+ };
1152
+ booleanSelectEditCell: ({ id, placeholder, required, additionalClearIds, minWidth, labelTrue, labelFalse, isClearable, }: Omit<SelectProps$1<T>, "options" | "formatOption"> & {
1153
+ labelTrue?: string;
1154
+ labelFalse?: string;
1155
+ }) => {
1147
1156
  value: react_jsx_runtime.JSX.Element;
1148
1157
  };
1149
1158
  };
@@ -1324,7 +1333,6 @@ declare const sizeInBytesPretty: (bytes?: number) => string;
1324
1333
  declare const dataURLtoFile: (dataUrl: string, filename: string, fileExt: string) => File;
1325
1334
  declare const getExtensionFromFilename: (filename?: string) => string;
1326
1335
  declare const calculateFilesSize: (filesList: any[], selectedFiles: IBooleanObject) => any;
1327
- declare const downloadDocumentFile: (fileName: string, url: string, type: "pdf" | "xml" | "xlsx", apiUrl?: string, search?: any) => void;
1328
1336
  declare const getFileFromUrl: (url: string, name: string) => Promise<File>;
1329
1337
  declare const getBase64FromFile: (file: Blob) => Promise<string>;
1330
1338
  declare const getBase64FromUrl: (url: string) => Promise<string>;
@@ -1638,15 +1646,6 @@ declare const inputPattern: {
1638
1646
  email: string;
1639
1647
  };
1640
1648
 
1641
- type LocalStorageItem = 'activeUser' | 'token' | 'refreshToken' | 'logInWay' | 'nextUrl' | 'codeVerifier' | 'language';
1642
- declare const lsGet: (key: LocalStorageItem) => string | null;
1643
- declare const lsSet: (key: LocalStorageItem, value: string) => void;
1644
- declare const lsRemove: (key: LocalStorageItem) => void;
1645
- declare const getDefaultOrgUuid: () => string;
1646
- declare const setDefaultOrgUuid: (organizationUuid: string) => void;
1647
- declare const getActiveOrgUuid: () => string;
1648
- declare const setActiveOrgUuid: (organizationUuid: string) => void;
1649
-
1650
1649
  declare const formatCurrency: (number?: string | number, minimumFractionDigits?: number, maximumFractionDigits?: number) => string;
1651
1650
  declare const formatCurrencyNoDecimals: (number?: string | number) => string;
1652
1651
  declare const formatDecimalNumber: (number?: string | number) => string | 0;
@@ -1696,5 +1695,5 @@ declare const parseUrlSearch: (search: string) => {
1696
1695
  [k: string]: string;
1697
1696
  };
1698
1697
 
1699
- export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CreateTemplateDialog, CurrencyInput, Dashboard, DashboardWidget, DateInput, Dialog, DotBadge, FastLinksWidget, FormWrapper, FullScreenLoader, IconButton, LargePrintEmailDialog, LazyLoader, List, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageLayout, PasswordInput, PhoneInput, PillBadge, ProgressBar, Pullover, Radio, RadioLarge, Router, ScrollableContent, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, SimpleLoader, SplitButton, Table, Tabs, TemplatesPullover, TextAreaInput, TextInput, TimeInput, Tooltip, Tree, areStringArraysEqual, buildFetchOptions, calculateFilesSize, checkIfExpired, compareArrayItemsIndex, convertArrayToBooleanObject, convertBooleanObjectToArray, convertReportTemplateFilterToSearch, convertSearchToReportTemplateFilter, dataURLtoFile, dateAddDays, deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, deletePropsThatEndsWith, downloadDocumentFile, downloadFile, flattenTreeForSelect, formatBooleanToStringValue, 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, useHideZendesk, useIsMenuOpen, useOnEsc, usePopupControl, useTableColumns, useTableEdit, useTableFilterFields, useTablePagination, useTablePrint, useTableSearch, useTableSelect, useTableSort };
1698
+ export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CreateTemplateDialog, CurrencyInput, Dashboard, DashboardWidget, DateInput, Dialog, DotBadge, FastLinksWidget, FormWrapper, FullScreenLoader, IconButton, LargePrintEmailDialog, LazyLoader, List, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageLayout, PasswordInput, PhoneInput, PillBadge, ProgressBar, Pullover, Radio, RadioLarge, Router, ScrollableContent, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, SimpleLoader, SplitButton, Table, Tabs, TemplatesPullover, TextAreaInput, TextInput, TimeInput, Tooltip, Tree, areStringArraysEqual, buildFetchOptions, calculateFilesSize, checkIfExpired, compareArrayItemsIndex, convertArrayToBooleanObject, convertBooleanObjectToArray, convertReportTemplateFilterToSearch, convertSearchToReportTemplateFilter, dataURLtoFile, dateAddDays, deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, deletePropsThatEndsWith, downloadFile, flattenTreeForSelect, formatBooleanToStringValue, formatCurrency, formatCurrencyNoDecimals, formatDate, formatDateAndTime, formatDateYMD, formatDecimalNumber, formatTime, formatYearMonth, getActiveFilterNumber, getBase64FromFile, getBase64FromUrl, getCurrentDateFormatted, getCurrentDateFormattedYMD, getDaysLeft, getExtensionFromFilename, getFileFromUrl, getInputHelperText, getInputMinMaxPattern, getPrintColumns, getVisibleColumnsIds, i18nIUICyrilic, i18nIUILatin, i18nIUIMe, inputPattern, intersectArrays, maxChar, parseUrlSearch, rootDir, rotateBase64Image, setTemplateData, sizeInBytesPretty, splitBase64File, tableCustomLimit1000, toastError, toastSuccess, useHideZendesk, useIsMenuOpen, useOnEsc, usePopupControl, useTableColumns, useTableEdit, useTableFilterFields, useTablePagination, useTablePrint, useTableSearch, useTableSelect, useTableSort };
1700
1699
  export type { DeepPartial, IAlertProps, IAnyObject, IBooleanObject, IError, IFormWrapper, IGetPrintData, IHeaderAction, IHeaderUserMenuProps, IKeyboardAction, ILocalPopupControl, IMenuItem, IMenuPlacement, INotification, INotificationsProps, IPagination, IPaginationControl, IPopupControl, IPrintData, IReportTemplate, IReportTemplateData, IReportTemplateFilterValue, IRoute, ISelectData, ISidebarItem, ISimpleObject, ISimpleObjectWithCode, IStringObject, ITab, ITable, ITableColumn, ITableDataActions, ITableDataItem, ITableDataItemCells, ITableEdit, ITableEditSubmit, ITableFilter, ITableFilterData, ITableFilterItem, ITableItemDeleteData, ITableSearchProps, ITableSort, ITableTemplateData, ITreeItem, IValueLabel, IPopupControlRef as PopupControlRef };