@mdtl/uikit 0.0.71 → 0.0.72
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/BasicTable.d.ts +0 -9
- package/dist/components/Table/Cell/Cell.d.ts +1 -2
- package/dist/components/Table/Cell/CellColumnContent.d.ts +1 -2
- package/dist/components/Table/Cell/ItemActions.d.ts +1 -2
- package/dist/components/Table/Cell/RowCell.d.ts +1 -2
- package/dist/components/Table/Cell/TileCell.d.ts +1 -2
- package/dist/components/Table/Row/DraggableRow.d.ts +1 -2
- package/dist/components/Table/Row/Row.d.ts +1 -2
- package/dist/components/Table/Row/TableRowWrapper.d.ts +1 -2
- package/dist/components/Table/TableHeader.d.ts +1 -2
- package/dist/components/Table/TableHeaderCell.d.ts +1 -2
- package/dist/components/Table/interfaces/interfaces.d.ts +66 -56
- package/dist/components/Table/utils/util.d.ts +2 -1
- package/dist/uikit.js +4071 -4078
- package/package.json +1 -1
|
@@ -18,15 +18,6 @@ declare module '@tanstack/table-core' {
|
|
|
18
18
|
folder?: any;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
export interface AdditionalRowFields {
|
|
22
|
-
hasChildren?: boolean;
|
|
23
|
-
parentId?: string;
|
|
24
|
-
level?: number;
|
|
25
|
-
subRows?: any;
|
|
26
|
-
isDragDisabled?: boolean;
|
|
27
|
-
nodeType?: number;
|
|
28
|
-
field?: string;
|
|
29
|
-
}
|
|
30
21
|
/**
|
|
31
22
|
* Содержимое таблицы
|
|
32
23
|
* @param props
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { ICellProps } from '../interfaces/interfaces';
|
|
3
|
-
import { AdditionalRowFields } from '../BasicTable';
|
|
2
|
+
import { AdditionalRowFields, ICellProps } from '../interfaces/interfaces';
|
|
4
3
|
/**
|
|
5
4
|
* Перетаскиваемая строка
|
|
6
5
|
* @param props
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { ICellColumnProps, THeadCellType } from '../interfaces/interfaces';
|
|
3
|
-
import { AdditionalRowFields } from '../BasicTable';
|
|
2
|
+
import { AdditionalRowFields, ICellColumnProps, THeadCellType } from '../interfaces/interfaces';
|
|
4
3
|
declare module '@mui/material/OutlinedInput' {
|
|
5
4
|
interface OutlinedInputProps {
|
|
6
5
|
type?: THeadCellType;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { IItemActionsProps } from '../interfaces/interfaces';
|
|
3
|
-
import { AdditionalRowFields } from '../BasicTable';
|
|
2
|
+
import { AdditionalRowFields, IItemActionsProps } from '../interfaces/interfaces';
|
|
4
3
|
/**
|
|
5
4
|
* Действия над записью
|
|
6
5
|
* @param props
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { IRowCellProps } from '../interfaces/interfaces';
|
|
3
|
-
import { AdditionalRowFields } from '../BasicTable';
|
|
2
|
+
import { AdditionalRowFields, IRowCellProps } from '../interfaces/interfaces';
|
|
4
3
|
/**
|
|
5
4
|
* Ячейки таблицы, образующие строку
|
|
6
5
|
* @param props
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ITillCellProps } from '../interfaces/interfaces';
|
|
3
|
-
import { AdditionalRowFields } from '../BasicTable';
|
|
2
|
+
import { AdditionalRowFields, ITillCellProps } from '../interfaces/interfaces';
|
|
4
3
|
/**
|
|
5
4
|
* Плоская ячейка-плитка
|
|
6
5
|
* @param props
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { ITableRowProps } from '../interfaces/interfaces';
|
|
3
|
-
import { AdditionalRowFields } from '../BasicTable';
|
|
2
|
+
import { AdditionalRowFields, ITableRowProps } from '../interfaces/interfaces';
|
|
4
3
|
/**
|
|
5
4
|
* Перетаскиваемая строка
|
|
6
5
|
* @param props
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { ITableRowProps } from '../interfaces/interfaces';
|
|
3
|
-
import { AdditionalRowFields } from '../BasicTable';
|
|
2
|
+
import { AdditionalRowFields, ITableRowProps } from '../interfaces/interfaces';
|
|
4
3
|
export declare const Row: TableRowComponent;
|
|
5
4
|
type TableRowComponent = <TData extends AdditionalRowFields>(props: ITableRowProps<TData>) => JSX.Element;
|
|
6
5
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { ITableRowWrapperProps } from '../interfaces/interfaces';
|
|
3
|
-
import { AdditionalRowFields } from '../BasicTable';
|
|
2
|
+
import { AdditionalRowFields, ITableRowWrapperProps } from '../interfaces/interfaces';
|
|
4
3
|
/**
|
|
5
4
|
* Обертка для строки, которая определяет будет строка draggable или обычной
|
|
6
5
|
* @param props
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ITableHeaderProps } from './interfaces/interfaces';
|
|
3
|
-
import { AdditionalRowFields } from './BasicTable';
|
|
2
|
+
import { AdditionalRowFields, ITableHeaderProps } from './interfaces/interfaces';
|
|
4
3
|
/**
|
|
5
4
|
* Шапка таблицы
|
|
6
5
|
* @param props
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ITableHeaderCell } from './interfaces/interfaces';
|
|
3
|
-
import { AdditionalRowFields } from './BasicTable';
|
|
2
|
+
import { AdditionalRowFields, ITableHeaderCell } from './interfaces/interfaces';
|
|
4
3
|
export declare const TableHeaderCell: <TData extends AdditionalRowFields>(props: ITableHeaderCell<TData>) => React.JSX.Element;
|
|
@@ -42,7 +42,8 @@ export interface IHeadCell<TData> {
|
|
|
42
42
|
backgroundColorCallback?: (row: TData) => string | undefined;
|
|
43
43
|
/** используется в базовых колонках таблиц с шаблонами, чтобы поместить их в конец таблицы */
|
|
44
44
|
isLast?: boolean;
|
|
45
|
-
|
|
45
|
+
/** включение сортировки для колонки */
|
|
46
|
+
enableSorting?: boolean;
|
|
46
47
|
}
|
|
47
48
|
export interface IOperation {
|
|
48
49
|
id: string;
|
|
@@ -294,6 +295,61 @@ export interface ITableBodyProps<TData> {
|
|
|
294
295
|
columnOrder: string[];
|
|
295
296
|
onCellClick?: (info: ICellClickInfo) => void;
|
|
296
297
|
}
|
|
298
|
+
export interface ITableRowWrapperProps<TData> {
|
|
299
|
+
rowDraggable: boolean;
|
|
300
|
+
columnDraggable?: boolean;
|
|
301
|
+
itemKey: string;
|
|
302
|
+
row: Row<TData>;
|
|
303
|
+
rowIndex: number;
|
|
304
|
+
viewMode: ViewMode;
|
|
305
|
+
isEditedRow: boolean;
|
|
306
|
+
onStartRowEdit: (item: TData | null) => void;
|
|
307
|
+
onAcceptRowEdit: (event: React.MouseEvent<unknown>, item: TData) => void;
|
|
308
|
+
selected: boolean;
|
|
309
|
+
tableViewMode: TableViewMode;
|
|
310
|
+
adaptive: boolean;
|
|
311
|
+
inSearch: boolean;
|
|
312
|
+
inSelect: boolean;
|
|
313
|
+
selectedRow: (row: TData) => boolean;
|
|
314
|
+
resultColumns: IHeadCell<TData>[];
|
|
315
|
+
root: string;
|
|
316
|
+
editable: boolean;
|
|
317
|
+
level: number;
|
|
318
|
+
onClick: (TData: any) => void;
|
|
319
|
+
handleSelect: (item: any) => void;
|
|
320
|
+
rowBackgroundCallback: (row: TData) => string;
|
|
321
|
+
multiselectVisibility: MultiSelectType;
|
|
322
|
+
itemActions: IItemAction<TData>[];
|
|
323
|
+
keyProperty: string;
|
|
324
|
+
expanded: ExpandedState;
|
|
325
|
+
expandable: boolean;
|
|
326
|
+
handleExpand: (item: any, expandedState: any) => void;
|
|
327
|
+
itemActionsVisibilityCallback: (TData: any) => boolean;
|
|
328
|
+
onItemActionClick: (actionId: string, item: TData, data?: TData[]) => void;
|
|
329
|
+
isNodeDeterminate: boolean;
|
|
330
|
+
virtualization?: boolean;
|
|
331
|
+
virtualColumns?: VirtualItem[];
|
|
332
|
+
virtualIndexes: number[];
|
|
333
|
+
columnVirtualizerTotalSize?: number;
|
|
334
|
+
leftPinnedColumns: Column<TData, unknown>[];
|
|
335
|
+
rightPinnedColumns: Column<TData, unknown>[];
|
|
336
|
+
isClickHighlighted?: boolean;
|
|
337
|
+
overflowShadow: boolean;
|
|
338
|
+
virtualPaddingLeft?: number;
|
|
339
|
+
virtualPaddingRight?: number;
|
|
340
|
+
resetNewRow: () => void;
|
|
341
|
+
isNewRowCreated: boolean;
|
|
342
|
+
setIsNewRowCreated: React.Dispatch<React.SetStateAction<boolean>>;
|
|
343
|
+
showTransposedTooltip?: boolean;
|
|
344
|
+
itemActionsDisabledTooltip?: (row: TData) => string;
|
|
345
|
+
enableRowDragCallback?: (row: TData) => boolean;
|
|
346
|
+
enableDrop: boolean;
|
|
347
|
+
onItemClick?: (row: TData) => void;
|
|
348
|
+
highlightDragOverRow?: boolean;
|
|
349
|
+
name: string;
|
|
350
|
+
columnOrder: string[];
|
|
351
|
+
onCellClick?: (info: ICellClickInfo) => void;
|
|
352
|
+
}
|
|
297
353
|
export interface ITableRowProps<TData> {
|
|
298
354
|
name: string;
|
|
299
355
|
selected: boolean;
|
|
@@ -390,61 +446,6 @@ export interface IRowCellProps<TData> {
|
|
|
390
446
|
onCellClick?: (info: ICellClickInfo) => void;
|
|
391
447
|
isExpanded?: boolean;
|
|
392
448
|
}
|
|
393
|
-
export interface ITableRowWrapperProps<TData> {
|
|
394
|
-
rowDraggable: boolean;
|
|
395
|
-
columnDraggable?: boolean;
|
|
396
|
-
itemKey: string;
|
|
397
|
-
row: Row<TData>;
|
|
398
|
-
rowIndex: number;
|
|
399
|
-
viewMode: ViewMode;
|
|
400
|
-
isEditedRow: boolean;
|
|
401
|
-
onStartRowEdit: (item: TData | null) => void;
|
|
402
|
-
onAcceptRowEdit: (event: React.MouseEvent<unknown>, item: TData) => void;
|
|
403
|
-
selected: boolean;
|
|
404
|
-
tableViewMode: TableViewMode;
|
|
405
|
-
adaptive: boolean;
|
|
406
|
-
inSearch: boolean;
|
|
407
|
-
inSelect: boolean;
|
|
408
|
-
selectedRow: (row: TData) => boolean;
|
|
409
|
-
resultColumns: IHeadCell<TData>[];
|
|
410
|
-
root: string;
|
|
411
|
-
editable: boolean;
|
|
412
|
-
level: number;
|
|
413
|
-
onClick: (TData: any) => void;
|
|
414
|
-
handleSelect: (item: any) => void;
|
|
415
|
-
rowBackgroundCallback: (row: TData) => string;
|
|
416
|
-
multiselectVisibility: MultiSelectType;
|
|
417
|
-
itemActions: IItemAction<TData>[];
|
|
418
|
-
keyProperty: string;
|
|
419
|
-
expanded: ExpandedState;
|
|
420
|
-
expandable: boolean;
|
|
421
|
-
handleExpand: (item: any, expandedState: any) => void;
|
|
422
|
-
itemActionsVisibilityCallback: (TData: any) => boolean;
|
|
423
|
-
onItemActionClick: (actionId: string, item: TData, data?: TData[]) => void;
|
|
424
|
-
isNodeDeterminate: boolean;
|
|
425
|
-
virtualization?: boolean;
|
|
426
|
-
virtualColumns?: VirtualItem[];
|
|
427
|
-
virtualIndexes: number[];
|
|
428
|
-
columnVirtualizerTotalSize?: number;
|
|
429
|
-
leftPinnedColumns: Column<TData, unknown>[];
|
|
430
|
-
rightPinnedColumns: Column<TData, unknown>[];
|
|
431
|
-
isClickHighlighted?: boolean;
|
|
432
|
-
overflowShadow: boolean;
|
|
433
|
-
virtualPaddingLeft?: number;
|
|
434
|
-
virtualPaddingRight?: number;
|
|
435
|
-
resetNewRow: () => void;
|
|
436
|
-
isNewRowCreated: boolean;
|
|
437
|
-
setIsNewRowCreated: React.Dispatch<React.SetStateAction<boolean>>;
|
|
438
|
-
showTransposedTooltip?: boolean;
|
|
439
|
-
itemActionsDisabledTooltip?: (row: TData) => string;
|
|
440
|
-
enableRowDragCallback?: (row: TData) => boolean;
|
|
441
|
-
enableDrop: boolean;
|
|
442
|
-
onItemClick?: (row: TData) => void;
|
|
443
|
-
highlightDragOverRow?: boolean;
|
|
444
|
-
name: string;
|
|
445
|
-
columnOrder: string[];
|
|
446
|
-
onCellClick?: (info: ICellClickInfo) => void;
|
|
447
|
-
}
|
|
448
449
|
export interface IItemActionsProps<TData> {
|
|
449
450
|
actionsVisible: boolean;
|
|
450
451
|
row: Row<TData>;
|
|
@@ -626,4 +627,13 @@ export declare enum ConstantType {
|
|
|
626
627
|
DateTime = 6,
|
|
627
628
|
NotNullNumber = 7
|
|
628
629
|
}
|
|
630
|
+
export interface AdditionalRowFields {
|
|
631
|
+
hasChildren?: boolean;
|
|
632
|
+
parentId?: string;
|
|
633
|
+
level?: number;
|
|
634
|
+
subRows?: any;
|
|
635
|
+
isDragDisabled?: boolean;
|
|
636
|
+
nodeType?: number;
|
|
637
|
+
field?: string;
|
|
638
|
+
}
|
|
629
639
|
export {};
|
|
@@ -58,7 +58,7 @@ export declare const getTableColumns: <TData>(columns: IHeadCell<TData>[], adapt
|
|
|
58
58
|
tooltipTemplate?: (row: IHashMap) => React.JSX.Element | string;
|
|
59
59
|
backgroundColorCallback?: (row: TData) => string | undefined;
|
|
60
60
|
isLast?: boolean;
|
|
61
|
-
|
|
61
|
+
enableSorting?: boolean;
|
|
62
62
|
}[];
|
|
63
63
|
export declare const getCommonPinningStyles: (column: any, isHeader?: boolean, hasShadow?: boolean) => CSSProperties;
|
|
64
64
|
export declare const dragOverlayStyle: {
|
|
@@ -77,3 +77,4 @@ export declare const dragOverlayStyle: {
|
|
|
77
77
|
* @param id
|
|
78
78
|
*/
|
|
79
79
|
export declare function getTableItemById(data: IHashMap[], id: string): IHashMap;
|
|
80
|
+
export declare const isArraysEqual: (arr1?: string[], arr2?: string[]) => boolean;
|