@inceptionbg/iui 2.0.19 → 2.0.20
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 +15 -7
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/iui.css +1 -1
- package/package.json +2 -1
- package/src/components/Accordions/Accordions.tsx +35 -27
- package/src/components/Dialog/Dialog.tsx +27 -25
- package/src/components/Header/Components/EnvBadge.tsx +17 -0
- package/src/components/Header/Header.tsx +7 -3
- package/src/components/Inputs/Selects/components/SelectWrapper.tsx +1 -1
- package/src/components/Table/components/items/TableItemActions.tsx +5 -3
- package/src/components/Table/contexts/TableContext.tsx +8 -5
- package/src/components/Table/hooks/localHooks/useLocalTableData.tsx +1 -1
- package/src/components/Table/hooks/localHooks/useLocalTableKeyboard.ts +3 -1
- package/src/components/Table/hooks/useTableEdit.tsx +9 -2
- package/src/components/Table/hooks/useTableSearch.ts +2 -1
- package/src/components/Tabs/Tabs.tsx +3 -3
- package/src/components/Tooltip/Tooltip.tsx +14 -81
- package/src/components/Wrappers/FormWrapper.tsx +1 -1
- package/src/index.ts +2 -0
- package/src/styles/common/_typography.scss +2 -2
- package/src/styles/components/_dialog.scss +25 -19
- package/src/styles/components/_header.scss +5 -0
- package/src/styles/components/_table.scss +1 -1
- package/src/styles/components/_tabs.scss +1 -1
- package/src/types/ITable.ts +1 -1
- package/src/utils/InputPatternValidation.ts +2 -2
- package/src/utils/objectUtils.ts +15 -5
- package/src/components/Inputs/Select2/Select.tsx +0 -258
- package/src/components/Inputs/Select2/select.scss +0 -42
package/dist/index.d.ts
CHANGED
|
@@ -181,7 +181,7 @@ interface ITableDataItemCells {
|
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
183
|
interface ITableDataActions<T = unknown> {
|
|
184
|
-
hasEditAccess
|
|
184
|
+
hasEditAccess?: boolean;
|
|
185
185
|
actions?: (item?: T) => {
|
|
186
186
|
label: string;
|
|
187
187
|
onClick: () => void;
|
|
@@ -592,6 +592,10 @@ interface Props$k {
|
|
|
592
592
|
initialValue?: string;
|
|
593
593
|
compact?: boolean;
|
|
594
594
|
keepContentInDom?: boolean;
|
|
595
|
+
control?: {
|
|
596
|
+
value: string;
|
|
597
|
+
setValue: (value: string) => void;
|
|
598
|
+
};
|
|
595
599
|
className?: string;
|
|
596
600
|
}
|
|
597
601
|
declare const Accordions: FC<Props$k>;
|
|
@@ -1089,9 +1093,11 @@ interface BaseItemProps$1<T> {
|
|
|
1089
1093
|
placeholder?: string;
|
|
1090
1094
|
required?: boolean;
|
|
1091
1095
|
additionalClearIds?: (keyof T)[];
|
|
1096
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
1092
1097
|
}
|
|
1093
1098
|
interface SelectProps$1<T> extends BaseItemProps$1<T> {
|
|
1094
1099
|
options: readonly (string | boolean)[] | (string | boolean)[];
|
|
1100
|
+
minWidth?: number;
|
|
1095
1101
|
formatOption: (value: string | boolean) => {
|
|
1096
1102
|
value: string | boolean;
|
|
1097
1103
|
label: string;
|
|
@@ -1099,16 +1105,16 @@ interface SelectProps$1<T> extends BaseItemProps$1<T> {
|
|
|
1099
1105
|
}
|
|
1100
1106
|
declare const useTableEdit: <T extends Record<string, any>>() => {
|
|
1101
1107
|
editable: Pick<ITableEdit<T>, "selectedItem" | "setSelectedItem" | "editData" | "setEditData">;
|
|
1102
|
-
textEditCell: ({ placeholder, required, id, additionalClearIds, }: BaseItemProps$1<T>) => {
|
|
1108
|
+
textEditCell: ({ placeholder, required, id, additionalClearIds, inputProps, }: BaseItemProps$1<T>) => {
|
|
1103
1109
|
value: react_jsx_runtime.JSX.Element;
|
|
1104
1110
|
};
|
|
1105
|
-
numberEditCell: ({ placeholder, required, id, additionalClearIds, }: BaseItemProps$1<T>) => {
|
|
1111
|
+
numberEditCell: ({ placeholder, required, id, additionalClearIds, inputProps, }: BaseItemProps$1<T>) => {
|
|
1106
1112
|
value: react_jsx_runtime.JSX.Element;
|
|
1107
1113
|
};
|
|
1108
|
-
dateEditCell: ({ id, required, additionalClearIds, }: Omit<BaseItemProps$1<T>, "placeholder">) => {
|
|
1114
|
+
dateEditCell: ({ id, required, additionalClearIds, }: Omit<BaseItemProps$1<T>, "placeholder" | "inputProps">) => {
|
|
1109
1115
|
value: react_jsx_runtime.JSX.Element;
|
|
1110
1116
|
};
|
|
1111
|
-
selectEditCell: ({ id, placeholder, required, options, formatOption, additionalClearIds, }: SelectProps$1<T>) => {
|
|
1117
|
+
selectEditCell: ({ id, placeholder, required, options, formatOption, additionalClearIds, minWidth, }: SelectProps$1<T>) => {
|
|
1112
1118
|
value: react_jsx_runtime.JSX.Element;
|
|
1113
1119
|
};
|
|
1114
1120
|
};
|
|
@@ -1238,6 +1244,7 @@ declare const inputPattern: {
|
|
|
1238
1244
|
year: string;
|
|
1239
1245
|
number: string;
|
|
1240
1246
|
strongPassword: string;
|
|
1247
|
+
email: string;
|
|
1241
1248
|
};
|
|
1242
1249
|
|
|
1243
1250
|
type LocalStorageItem = 'activeUser' | 'token' | 'refreshToken' | 'logInWay' | 'nextUrl' | 'codeVerifier' | 'language';
|
|
@@ -1254,7 +1261,7 @@ declare const formatCurrencyNoDecimals: (number?: string | number) => string;
|
|
|
1254
1261
|
declare const formatDecimalNumber: (number?: string | number) => string | 0;
|
|
1255
1262
|
|
|
1256
1263
|
declare const deleteProps: <T extends Record<string, any>>(obj: T, props: (keyof T)[]) => Partial<T>;
|
|
1257
|
-
declare const deletePropsThatEndsWith: <T
|
|
1264
|
+
declare const deletePropsThatEndsWith: <T>(obj: T, endsWith: string) => Partial<T>;
|
|
1258
1265
|
declare const deleteEmptyProps: <T extends Record<string, any>>(obj: T) => T;
|
|
1259
1266
|
declare const deleteEmptyPropsIncludingArray: <T extends Record<string, any>>(obj: T) => T;
|
|
1260
1267
|
declare const convertBooleanObjectToArray: (obj: IBooleanObject) => string[];
|
|
@@ -1265,6 +1272,7 @@ declare const deepCopy: (el: any[] | object) => any;
|
|
|
1265
1272
|
declare const areStringArraysEqual: (arr1: string[], arr2: string[]) => boolean;
|
|
1266
1273
|
declare const compareArrayItemsIndex: <T>(array: T[] | readonly T[], item1: T, comparison: "greaterThan" | "greaterThanOrEqualTo" | "lessThan" | "lessThanOrEqualTo", item2: T) => boolean;
|
|
1267
1274
|
declare const intersectArrays: <T>(arr1: any[] | readonly T[], arr2: any[] | readonly T[]) => T[];
|
|
1275
|
+
declare const flattenTreeForSelect: (items: any[], depth?: number, maxDepth?: number) => any[];
|
|
1268
1276
|
|
|
1269
1277
|
declare const getActiveFilterNumber: (obj: IAnyObject) => number;
|
|
1270
1278
|
declare const getVisibleColumnsIds: (tableCols: ITableColumn[], isPrint?: boolean) => string[];
|
|
@@ -1577,5 +1585,5 @@ declare const usePopupControl: (props?: {
|
|
|
1577
1585
|
onCloseCallback?: () => void;
|
|
1578
1586
|
}) => IPopupControl;
|
|
1579
1587
|
|
|
1580
|
-
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, PillBadge, ProgressBar, Pullover, Radio, RadioLarge, Router, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, SplitButton, Table, Tabs, TextAreaInput, 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, 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 };
|
|
1588
|
+
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, PillBadge, ProgressBar, Pullover, Radio, RadioLarge, Router, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, SplitButton, Table, Tabs, 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 };
|
|
1581
1589
|
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, ITableFilter, ITableFilterData, ITableFilterItem, ITableItemDeleteData, ITableSearchProps, ITableSort, ITableTemplateData, ITreeItem, IValueLabel, IPopupControlRef as PopupControlRef };
|