@mdtl/uikit 0.0.51 → 0.0.53
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/components/Table/AddingRowTemplate.d.ts +4 -0
- package/dist/components/Table/BasicTable.d.ts +34 -0
- package/dist/components/Table/Cell/Cell.d.ts +8 -0
- package/dist/components/Table/Cell/CellColumnContent.d.ts +11 -0
- package/dist/components/Table/Cell/ItemActions.d.ts +9 -0
- package/dist/components/Table/Cell/RowCell.d.ts +9 -0
- package/dist/components/Table/Cell/TileCell.d.ts +9 -0
- package/dist/components/Table/DraggableTableHeaderCell.d.ts +4 -0
- package/dist/components/Table/Row/DraggableRow.d.ts +9 -0
- package/dist/components/Table/Row/Row.d.ts +4 -0
- package/dist/components/Table/Row/TableRowWrapper.d.ts +9 -0
- package/dist/components/Table/TableBody.d.ts +9 -0
- package/dist/components/Table/TableFooter.d.ts +9 -0
- package/dist/components/Table/TableHeader.d.ts +9 -0
- package/dist/components/Table/TableHeaderCell.d.ts +4 -0
- package/dist/components/Table/TableLoader.d.ts +7 -0
- package/dist/components/Table/controls/constants.d.ts +6 -0
- package/dist/components/Table/interfaces/interfaces.d.ts +614 -0
- package/dist/components/Table/utils/DataFormat.d.ts +20 -0
- package/dist/components/Table/utils/Drag.d.ts +4 -0
- package/dist/components/Table/utils/hooks/useOverflowShadow.d.ts +7 -0
- package/dist/components/Table/utils/util.d.ts +77 -0
- package/dist/index.d.ts +2 -0
- package/dist/uikit.js +22425 -11115
- package/package.json +17 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AddingButtonRowTemplateProps } from './interfaces/interfaces';
|
|
3
|
+
declare const AddingButtonRowTemplate: <TData>({ text, onClick, colSpan, infoTooltip, overflowShadow, isNewRowCreated, setIsNewRowCreated, dataUpdateCallback, columns, tableData, setEditedRow, onStartRowEdit, itemActions, }: AddingButtonRowTemplateProps<TData>) => React.JSX.Element;
|
|
4
|
+
export default AddingButtonRowTemplate;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { ITableProps, IHashMap, THeadCellType } from './interfaces/interfaces';
|
|
3
|
+
import { Row, RowData } from '@tanstack/react-table';
|
|
4
|
+
declare module '@tanstack/table-core' {
|
|
5
|
+
interface ColumnDefBase<TData extends RowData, TValue = unknown> {
|
|
6
|
+
editTemplate?: (row: TData, props: IHashMap) => JSX.Element;
|
|
7
|
+
editable: boolean;
|
|
8
|
+
template?: (row: Row<TData>, props: IHashMap) => JSX.Element;
|
|
9
|
+
footerTemplate?: (row: IHashMap) => JSX.Element;
|
|
10
|
+
field: string;
|
|
11
|
+
type?: THeadCellType;
|
|
12
|
+
sorting: boolean;
|
|
13
|
+
width: number;
|
|
14
|
+
colSizeVarId: string;
|
|
15
|
+
backgroundColorCallback?: (row: TData) => string | undefined;
|
|
16
|
+
accessorKey?: string;
|
|
17
|
+
folder?: any;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export interface AdditionalRowFields {
|
|
21
|
+
hasChildren?: boolean;
|
|
22
|
+
parentId?: string;
|
|
23
|
+
level?: number;
|
|
24
|
+
subRows?: any;
|
|
25
|
+
isDragDisabled?: boolean;
|
|
26
|
+
nodeType?: number;
|
|
27
|
+
field?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Содержимое таблицы
|
|
31
|
+
* @param props
|
|
32
|
+
* @returns {JSX.Element}
|
|
33
|
+
*/
|
|
34
|
+
export declare const BasicTable: <TData extends AdditionalRowFields>({ columns, keyProperty, addingRowTemplate, onSettingsClick, viewMode, adaptive, hiddenHeader, root, data, itemActions, operations, multiselectVisibility, disableSelectAll, singleSelect, onItemClick, onRootChanged, itemActionsVisibilityCallback, editable, rowDraggable, onItemActionClick, onAcceptRowEdit, onStartRowEdit, onCancelRowEdit, emptyText, emptyTemplate, itemsPerPage, selectedKeysChangedCallback, expandedKeysChangedCallback, selectedItems, errorMessage, minWidth, treeSearchTypeChildren, dataUpdateCallback, sx, selectedRow, selectable, expandable, virtualization, localDataMode, multipleSortEnabled, rowBackgroundCallback, columnSizeChangedCallback, columnPinningChangedCallback, columnPinning: columnPinningProps, addingRowText, showTransposedTooltip, itemActionsDisabledTooltip, columnOrderChangedCallback, expandAllMethod, enableDrop, enableRowDragCallback, highlightDragOverRow, isFetchingMore, loading, hasMore, inSearch, inSelect, totalSumValues, getExpandData, loadMore, handleRequestSort, handleMultipleSort, getSortOrder, getSortDirection, order, orderBy, tableViewMode, name, changeRootCallback, loadedRows, ...props }: ITableProps<TData>) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ICellColumnProps, THeadCellType } from '../interfaces/interfaces';
|
|
3
|
+
declare module '@mui/material/OutlinedInput' {
|
|
4
|
+
interface OutlinedInputProps {
|
|
5
|
+
type?: THeadCellType;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Отрисовка шаблона / текста в ячейке
|
|
10
|
+
*/
|
|
11
|
+
export declare const CellColumnContent: <TData>(props: ICellColumnProps<TData>) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IItemActionsProps } from '../interfaces/interfaces';
|
|
3
|
+
import { AdditionalRowFields } from '../BasicTable';
|
|
4
|
+
/**
|
|
5
|
+
* Действия над записью
|
|
6
|
+
* @param props
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare const ItemActions: <TData extends AdditionalRowFields>(props: IItemActionsProps<TData>) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IRowCellProps } from '../interfaces/interfaces';
|
|
3
|
+
import { AdditionalRowFields } from '../BasicTable';
|
|
4
|
+
/**
|
|
5
|
+
* Ячейки таблицы, образующие строку
|
|
6
|
+
* @param props
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare const RowCell: <TData extends AdditionalRowFields>(props: IRowCellProps<TData>) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ITillCellProps } from '../interfaces/interfaces';
|
|
3
|
+
import { AdditionalRowFields } from '../BasicTable';
|
|
4
|
+
/**
|
|
5
|
+
* Плоская ячейка-плитка
|
|
6
|
+
* @param props
|
|
7
|
+
* @returns {JSX.Element}
|
|
8
|
+
*/
|
|
9
|
+
export declare const TillCell: <TData extends AdditionalRowFields>(props: ITillCellProps<TData>) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ITableRowProps } from '../interfaces/interfaces';
|
|
3
|
+
import { AdditionalRowFields } from '../BasicTable';
|
|
4
|
+
/**
|
|
5
|
+
* Перетаскиваемая строка
|
|
6
|
+
* @param props
|
|
7
|
+
* @returns {JSX.Element}
|
|
8
|
+
*/
|
|
9
|
+
export declare const DraggableRow: <TData extends AdditionalRowFields>(props: ITableRowProps<TData>) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ITableRowWrapperProps } from '../interfaces/interfaces';
|
|
3
|
+
import { AdditionalRowFields } from '../BasicTable';
|
|
4
|
+
/**
|
|
5
|
+
* Обертка для строки, которая определяет будет строка draggable или обычной
|
|
6
|
+
* @param props
|
|
7
|
+
* @returns {JSX.Element}
|
|
8
|
+
*/
|
|
9
|
+
export declare const TableRowWrapper: <TData extends AdditionalRowFields>(props: ITableRowWrapperProps<TData>) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ITableBodyProps } from './interfaces/interfaces';
|
|
3
|
+
import { AdditionalRowFields } from './BasicTable';
|
|
4
|
+
/**
|
|
5
|
+
* Тело таблицы
|
|
6
|
+
* @param props
|
|
7
|
+
* @returns {JSX.Element}
|
|
8
|
+
*/
|
|
9
|
+
export declare function TableBody<TData extends AdditionalRowFields>(props: ITableBodyProps<TData>): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IHashMap } from './interfaces/interfaces';
|
|
3
|
+
import { HeaderGroup } from '@tanstack/react-table';
|
|
4
|
+
interface ITableFooterProps<TData> {
|
|
5
|
+
footerGroups: HeaderGroup<TData>[];
|
|
6
|
+
totalValues: IHashMap[];
|
|
7
|
+
}
|
|
8
|
+
export declare const TableFooterContent: <TData>(props: ITableFooterProps<TData>) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ITableHeaderProps } from './interfaces/interfaces';
|
|
3
|
+
import { AdditionalRowFields } from './BasicTable';
|
|
4
|
+
/**
|
|
5
|
+
* Шапка таблицы
|
|
6
|
+
* @param props
|
|
7
|
+
* @returns {JSX.Element}
|
|
8
|
+
*/
|
|
9
|
+
export declare function TableHeader<TData extends AdditionalRowFields>(props: Readonly<ITableHeaderProps<TData>>): React.JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ITableHeaderCell } from './interfaces/interfaces';
|
|
3
|
+
import { AdditionalRowFields } from './BasicTable';
|
|
4
|
+
export declare const TableHeaderCell: <TData extends AdditionalRowFields>(props: ITableHeaderCell<TData>) => React.JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ITableLoaderProps {
|
|
3
|
+
loadingIconRef: React.MutableRefObject<any>;
|
|
4
|
+
colSpan: number;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: React.MemoExoticComponent<(props: ITableLoaderProps) => React.JSX.Element>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const ITEM_ACTIONS_COLUMN_ID = "itemActions";
|
|
2
|
+
export declare const DRAG_ICON_COLUMN_ID = "dragIcon";
|
|
3
|
+
export declare const MULTISELECT_COLUMN_ID = "multiselect";
|
|
4
|
+
export declare const EXPAND_ICON_COLUMN_ID = "expandIcon";
|
|
5
|
+
export declare const PLACEHOLDER_ID = "placeholderId";
|
|
6
|
+
export declare const MOUSE_ENTER_TIME_BEFORE_HINT_ACTIVATED = 750;
|