@inceptionbg/iui 2.0.40 → 2.0.42
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 +11 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/iui.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { default as clsx } from 'clsx';
|
|
|
10
10
|
import dayjs from 'dayjs';
|
|
11
11
|
export { default as dayjs } from 'dayjs';
|
|
12
12
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
13
|
+
import { TFunction } from 'i18next';
|
|
13
14
|
|
|
14
15
|
type IInfoType = 'success' | 'info' | 'warning' | 'danger';
|
|
15
16
|
|
|
@@ -330,6 +331,7 @@ interface ITableDataActions<T = unknown> {
|
|
|
330
331
|
interface ITableFilterData {
|
|
331
332
|
filters: ITableFilter;
|
|
332
333
|
customFilterIdList?: string[];
|
|
334
|
+
setCustomFilterIdList?: (columnsIds: string[]) => string[];
|
|
333
335
|
activeFilterNo?: number;
|
|
334
336
|
additionalFilters?: ReactElement;
|
|
335
337
|
defaultSearch?: IAnyObject;
|
|
@@ -521,6 +523,8 @@ interface ISelectData extends IValueLabel {
|
|
|
521
523
|
[id: string]: any;
|
|
522
524
|
}
|
|
523
525
|
interface BaseSelectProps {
|
|
526
|
+
id?: string;
|
|
527
|
+
name?: string;
|
|
524
528
|
variant: 'basic' | 'async' | 'async-creatable';
|
|
525
529
|
label?: string;
|
|
526
530
|
value?: any;
|
|
@@ -1634,12 +1638,18 @@ declare const areStringArraysEqual: (arr1: string[], arr2: string[]) => boolean;
|
|
|
1634
1638
|
declare const compareArrayItemsIndex: <T>(array: T[] | readonly T[], item1: T, comparison: "greaterThan" | "greaterThanOrEqualTo" | "lessThan" | "lessThanOrEqualTo", item2: T) => boolean;
|
|
1635
1639
|
declare const intersectArrays: <T>(arr1: any[] | readonly T[], arr2: any[] | readonly T[]) => T[];
|
|
1636
1640
|
declare const flattenTreeForSelect: (items: any[], depth?: number, maxDepth?: number) => any[];
|
|
1641
|
+
declare const buildFetchOptions: <T extends string>({ base, conditions, columns, }: {
|
|
1642
|
+
base?: readonly T[];
|
|
1643
|
+
conditions: Partial<Record<T, string>>;
|
|
1644
|
+
columns: ITableColumn[];
|
|
1645
|
+
}) => T[];
|
|
1637
1646
|
|
|
1638
1647
|
declare const rootDir: HTMLElement;
|
|
1639
1648
|
|
|
1640
1649
|
declare const maxChar: (str?: string, maxLength?: number) => string;
|
|
1641
1650
|
declare const getInputHelperText: (t: any, min?: string | number, max?: string | number) => any;
|
|
1642
1651
|
declare const getInputMinMaxPattern: (min?: string | number, max?: string | number) => string;
|
|
1652
|
+
declare const formatBooleanToStringValue: (val: boolean | undefined, t?: TFunction) => string;
|
|
1643
1653
|
|
|
1644
1654
|
declare const getActiveFilterNumber: (obj: IAnyObject) => number;
|
|
1645
1655
|
declare const getVisibleColumnsIds: (tableCols: ITableColumn[], isPrint?: boolean) => string[];
|
|
@@ -1660,5 +1670,5 @@ declare const parseUrlSearch: (search: string) => {
|
|
|
1660
1670
|
[k: string]: string;
|
|
1661
1671
|
};
|
|
1662
1672
|
|
|
1663
|
-
export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CreateTemplateDialog, CurrencyInput, Dashboard, DashboardWidget, DateInput, Dialog, DotBadge, FastLinksWidget, FormWrapper, FullScreenLoader, IconButton, 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, calculateFilesSize, checkIfExpired, compareArrayItemsIndex, convertArrayToBooleanObject, convertBooleanObjectToArray, convertReportTemplateFilterToSearch, convertSearchToReportTemplateFilter, dataURLtoFile, dateAddDays, deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, deletePropsThatEndsWith, downloadDocumentFile, downloadFile, flattenTreeForSelect, 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 };
|
|
1673
|
+
export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CreateTemplateDialog, CurrencyInput, Dashboard, DashboardWidget, DateInput, Dialog, DotBadge, FastLinksWidget, FormWrapper, FullScreenLoader, IconButton, 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 };
|
|
1664
1674
|
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 };
|