mimir-ui-kit 1.38.44 → 1.39.0
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/assets/stories.css +1 -0
- package/dist/assets/styles2.css +1 -0
- package/dist/combobox-Dv6-ANkb.js +508 -0
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +1 -1
- package/dist/components/SelectSearch/SelectSearch.js +1 -1
- package/dist/components/Table/ColumnOrderSettings.d.ts +18 -0
- package/dist/components/Table/ColumnOrderSettings.js +177 -0
- package/dist/components/Table/Table.d.ts +3 -0
- package/dist/components/Table/Table.js +204 -0
- package/dist/components/Table/TableBody.d.ts +5 -0
- package/dist/components/Table/TableBody.js +109 -0
- package/dist/components/Table/TableCard.d.ts +5 -0
- package/dist/components/Table/TableCard.js +45 -0
- package/dist/components/Table/TableCardsView.d.ts +5 -0
- package/dist/components/Table/TableCardsView.js +84 -0
- package/dist/components/Table/TableFilters.d.ts +12 -0
- package/dist/components/Table/TableFilters.js +165 -0
- package/dist/components/Table/TableHeader.d.ts +3 -0
- package/dist/components/Table/TableHeader.js +70 -0
- package/dist/components/Table/TableRow.d.ts +5 -0
- package/dist/components/Table/TableRow.js +76 -0
- package/dist/components/Table/TableScrollButtons.d.ts +11 -0
- package/dist/components/Table/TableScrollButtons.js +35 -0
- package/dist/components/Table/constants.d.ts +128 -0
- package/dist/components/Table/constants.js +434 -0
- package/dist/components/Table/hooks/index.d.ts +4 -0
- package/dist/components/Table/hooks/index.js +10 -0
- package/dist/components/Table/hooks/useTableInstance.d.ts +3 -0
- package/dist/components/Table/hooks/useTableInstance.js +68 -0
- package/dist/components/Table/hooks/useTableScroll.d.ts +8 -0
- package/dist/components/Table/hooks/useTableScroll.js +54 -0
- package/dist/components/Table/hooks/useTableState.d.ts +13 -0
- package/dist/components/Table/hooks/useTableState.js +56 -0
- package/dist/components/Table/hooks/useTableVirtualization.d.ts +13 -0
- package/dist/components/Table/hooks/useTableVirtualization.js +97 -0
- package/dist/components/Table/index.d.ts +3 -0
- package/dist/components/Table/index.js +10 -0
- package/dist/components/Table/types.d.ts +150 -0
- package/dist/components/Table/utils.d.ts +4 -0
- package/dist/components/Table/utils.js +25 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +72 -64
- package/dist/index-CVk4sixt.js +1862 -0
- package/dist/index-D5H8gPPn.js +546 -0
- package/dist/index.js +106 -98
- package/dist/{portal-D3A00sie.js → portal-C_u5auU1.js} +179 -183
- package/dist/stories.module-fud786VB.js +29 -0
- package/dist/styles.module--QBQYoA9.js +36 -0
- package/package.json +3 -1
- package/dist/combobox-BD-GHvMy.js +0 -980
@@ -0,0 +1,165 @@
|
|
1
|
+
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
2
|
+
import { useState as z, useEffect as A, useCallback as I } from "react";
|
3
|
+
import { EFilterType as E } from "./constants.js";
|
4
|
+
import { c as e } from "../../stories.module-fud786VB.js";
|
5
|
+
import { Button as d } from "../Button/Button.js";
|
6
|
+
import { EButtonVariantBorderless as L, EButtonForm as b, EButtonVariantOutline as O, EButtonVariantDefault as j } from "../Button/constants.js";
|
7
|
+
import { DatePicker as S } from "../DatePicker/DatePicker.js";
|
8
|
+
import { Drawer as G } from "../Drawer/Drawer.js";
|
9
|
+
import { SelectSearch as P } from "../SelectSearch/SelectSearch.js";
|
10
|
+
const W = ({
|
11
|
+
filters: p,
|
12
|
+
filterValues: v,
|
13
|
+
isOpen: m,
|
14
|
+
onClose: n,
|
15
|
+
onApply: w,
|
16
|
+
onReset: x
|
17
|
+
}) => {
|
18
|
+
const [B, u] = z({});
|
19
|
+
A(() => {
|
20
|
+
m && u({ ...v });
|
21
|
+
}, [m, v]);
|
22
|
+
const f = I(
|
23
|
+
(r, i, s = !0) => {
|
24
|
+
u((c) => ({
|
25
|
+
...c,
|
26
|
+
[r]: { value: i, active: s }
|
27
|
+
}));
|
28
|
+
},
|
29
|
+
[]
|
30
|
+
), F = () => {
|
31
|
+
w(B), n();
|
32
|
+
}, C = () => {
|
33
|
+
const r = {};
|
34
|
+
p.forEach((i) => {
|
35
|
+
r[i.id] = { value: null, active: !1 };
|
36
|
+
}), u(r), x(), n();
|
37
|
+
}, y = /* @__PURE__ */ a("div", { className: e.columnOrderFooter, children: [
|
38
|
+
/* @__PURE__ */ o(
|
39
|
+
d,
|
40
|
+
{
|
41
|
+
onClick: C,
|
42
|
+
variant: L.Asphalt,
|
43
|
+
form: b.BorderlessButton,
|
44
|
+
className: e.footerButton,
|
45
|
+
size: "xxl",
|
46
|
+
children: "Сбросить все"
|
47
|
+
}
|
48
|
+
),
|
49
|
+
/* @__PURE__ */ a("div", { className: e.footerButtonGroup, children: [
|
50
|
+
/* @__PURE__ */ o(
|
51
|
+
d,
|
52
|
+
{
|
53
|
+
onClick: n,
|
54
|
+
variant: O.Asphalt,
|
55
|
+
form: b.OutlineButton,
|
56
|
+
className: e.footerButton,
|
57
|
+
size: "xxl",
|
58
|
+
children: "Отменить"
|
59
|
+
}
|
60
|
+
),
|
61
|
+
/* @__PURE__ */ o(
|
62
|
+
d,
|
63
|
+
{
|
64
|
+
onClick: F,
|
65
|
+
variant: j.PrimarySapphire,
|
66
|
+
className: e.footerButton,
|
67
|
+
size: "xxl",
|
68
|
+
children: "Применить"
|
69
|
+
}
|
70
|
+
)
|
71
|
+
] })
|
72
|
+
] }), D = (r) => {
|
73
|
+
var s, c, N;
|
74
|
+
const i = ((s = B[r.id]) == null ? void 0 : s.value) ?? null;
|
75
|
+
switch (r.type) {
|
76
|
+
case E.DATE_RANGE: {
|
77
|
+
const t = i, T = typeof (t == null ? void 0 : t.from) == "string" ? t.from : ((c = t == null ? void 0 : t.from) == null ? void 0 : c.toISOString().split("T")[0]) || "", k = typeof (t == null ? void 0 : t.to) == "string" ? t.to : ((N = t == null ? void 0 : t.to) == null ? void 0 : N.toISOString().split("T")[0]) || "";
|
78
|
+
return /* @__PURE__ */ a("div", { className: e.filterItem, children: [
|
79
|
+
/* @__PURE__ */ o("div", { className: e.filterLabel, children: r.label }),
|
80
|
+
/* @__PURE__ */ a("div", { className: e.filterDateRange, children: [
|
81
|
+
/* @__PURE__ */ o(
|
82
|
+
S,
|
83
|
+
{
|
84
|
+
label: "С",
|
85
|
+
variant: "default-white",
|
86
|
+
size: "l",
|
87
|
+
value: T,
|
88
|
+
onChangeValue: (h) => {
|
89
|
+
const l = {
|
90
|
+
from: h.value,
|
91
|
+
to: (t == null ? void 0 : t.to) ?? ""
|
92
|
+
};
|
93
|
+
f(
|
94
|
+
r.id,
|
95
|
+
l,
|
96
|
+
!!(l.from || l.to)
|
97
|
+
);
|
98
|
+
}
|
99
|
+
}
|
100
|
+
),
|
101
|
+
/* @__PURE__ */ o(
|
102
|
+
S,
|
103
|
+
{
|
104
|
+
label: "По",
|
105
|
+
value: k,
|
106
|
+
size: "l",
|
107
|
+
variant: "default-white",
|
108
|
+
onChangeValue: (h) => {
|
109
|
+
const l = {
|
110
|
+
from: (t == null ? void 0 : t.from) ?? "",
|
111
|
+
to: h.value
|
112
|
+
};
|
113
|
+
f(
|
114
|
+
r.id,
|
115
|
+
l,
|
116
|
+
!!(l.from || l.to)
|
117
|
+
);
|
118
|
+
}
|
119
|
+
}
|
120
|
+
)
|
121
|
+
] })
|
122
|
+
] });
|
123
|
+
}
|
124
|
+
case E.SELECT:
|
125
|
+
return /* @__PURE__ */ a("div", { className: e.filterItem, children: [
|
126
|
+
/* @__PURE__ */ o("div", { className: e.filterLabel, children: r.label }),
|
127
|
+
/* @__PURE__ */ o(
|
128
|
+
P,
|
129
|
+
{
|
130
|
+
filterOnSearch: !1,
|
131
|
+
disableInput: !0,
|
132
|
+
placeholder: r.label,
|
133
|
+
value: i,
|
134
|
+
items: r.options || [],
|
135
|
+
variant: "default-white",
|
136
|
+
onChange: (t) => {
|
137
|
+
f(
|
138
|
+
r.id,
|
139
|
+
t,
|
140
|
+
!!(t && t.id)
|
141
|
+
);
|
142
|
+
}
|
143
|
+
}
|
144
|
+
)
|
145
|
+
] });
|
146
|
+
default:
|
147
|
+
return null;
|
148
|
+
}
|
149
|
+
};
|
150
|
+
return /* @__PURE__ */ o(
|
151
|
+
G,
|
152
|
+
{
|
153
|
+
isOpen: m,
|
154
|
+
onClose: n,
|
155
|
+
title: "Фильтры",
|
156
|
+
position: "right",
|
157
|
+
showCloseButton: !0,
|
158
|
+
footer: y,
|
159
|
+
children: /* @__PURE__ */ o("div", { className: e.filterList, children: p.map((r) => /* @__PURE__ */ o("div", { children: D(r) }, r.id)) })
|
160
|
+
}
|
161
|
+
);
|
162
|
+
};
|
163
|
+
export {
|
164
|
+
W as TableFilters
|
165
|
+
};
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { TTableHeaderProps } from './types';
|
2
|
+
|
3
|
+
export declare const TableHeader: <T extends object>({ table, headerClassName, headerTextClassName, headerRowClassName, headerCellClassName, isSelectable, variant }: TTableHeaderProps<T>) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,70 @@
|
|
1
|
+
import { jsx as o, jsxs as a } from "react/jsx-runtime";
|
2
|
+
import { f as H } from "../../index-CVk4sixt.js";
|
3
|
+
import { c as n } from "../../index-DIxK0V-G.js";
|
4
|
+
import { ETableVariant as s, ESortDirection as m } from "./constants.js";
|
5
|
+
import { c as t } from "../../styles.module--QBQYoA9.js";
|
6
|
+
import { Icon as c } from "../../icons/Icon.js";
|
7
|
+
const E = ({
|
8
|
+
table: i,
|
9
|
+
headerClassName: d,
|
10
|
+
headerTextClassName: u,
|
11
|
+
headerRowClassName: p,
|
12
|
+
headerCellClassName: S,
|
13
|
+
isSelectable: h,
|
14
|
+
variant: f = s.WhiteHeader
|
15
|
+
}) => {
|
16
|
+
const x = i.getHeaderGroups();
|
17
|
+
return /* @__PURE__ */ o(
|
18
|
+
"thead",
|
19
|
+
{
|
20
|
+
className: n(
|
21
|
+
t.header,
|
22
|
+
f === s.WhiteHeader ? t["header-white"] : t["header-gray"],
|
23
|
+
d
|
24
|
+
),
|
25
|
+
children: x.map((r) => /* @__PURE__ */ a("tr", { className: p, children: [
|
26
|
+
h && /* @__PURE__ */ o("th", { className: n(t.selectHeaderCell) }),
|
27
|
+
r.headers.map((e) => {
|
28
|
+
const N = e.column.columnDef.size, g = e.column.columnDef.minSize, C = e.column.columnDef.maxSize, D = {
|
29
|
+
width: N,
|
30
|
+
minWidth: g,
|
31
|
+
maxWidth: C
|
32
|
+
}, z = e.column.getCanSort(), l = e.column.getIsSorted();
|
33
|
+
return /* @__PURE__ */ o(
|
34
|
+
"th",
|
35
|
+
{
|
36
|
+
colSpan: e.colSpan,
|
37
|
+
className: n(t.headerCell, S),
|
38
|
+
style: D,
|
39
|
+
children: /* @__PURE__ */ a("div", { className: t.headerContent, children: [
|
40
|
+
/* @__PURE__ */ o(
|
41
|
+
"span",
|
42
|
+
{
|
43
|
+
className: n(t.headerText, u),
|
44
|
+
children: H(
|
45
|
+
e.column.columnDef.header,
|
46
|
+
e.getContext()
|
47
|
+
)
|
48
|
+
}
|
49
|
+
),
|
50
|
+
z && /* @__PURE__ */ o(
|
51
|
+
"button",
|
52
|
+
{
|
53
|
+
className: t.sortButton,
|
54
|
+
onClick: e.column.getToggleSortingHandler(),
|
55
|
+
type: "button",
|
56
|
+
children: /* @__PURE__ */ o("div", { className: t.sortIcon, children: l === m.ASC ? /* @__PURE__ */ o(c, { iconName: "ArrowUp16px" }) : l === m.DESC ? /* @__PURE__ */ o(c, { iconName: "ArrowDown16px" }) : /* @__PURE__ */ o(c, { iconName: "Sort32px" }) })
|
57
|
+
}
|
58
|
+
)
|
59
|
+
] })
|
60
|
+
},
|
61
|
+
e.id
|
62
|
+
);
|
63
|
+
})
|
64
|
+
] }, r.id))
|
65
|
+
}
|
66
|
+
);
|
67
|
+
};
|
68
|
+
export {
|
69
|
+
E as TableHeader
|
70
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { TTableRowProps } from './types';
|
2
|
+
|
3
|
+
declare function TableRowComponent<T extends object>({ row, isSelectable, rowClassName, selectCellClassName, cellClassName, variant, isVirtualized, rowIndex, columnsKey }: TTableRowProps<T>): import("react/jsx-runtime").JSX.Element;
|
4
|
+
export declare const TableRow: typeof TableRowComponent;
|
5
|
+
export {};
|
@@ -0,0 +1,76 @@
|
|
1
|
+
import { jsx as o, Fragment as z } from "react/jsx-runtime";
|
2
|
+
import { f as I } from "../../index-CVk4sixt.js";
|
3
|
+
import { c as n } from "../../index-DIxK0V-G.js";
|
4
|
+
import { memo as R, useState as B, useEffect as D, useCallback as N } from "react";
|
5
|
+
import { ETableVariant as u } from "./constants.js";
|
6
|
+
import { c as l } from "../../styles.module--QBQYoA9.js";
|
7
|
+
import { CheckboxMimir as V } from "../CheckboxMimir/CheckboxMimir.js";
|
8
|
+
function E({
|
9
|
+
row: e,
|
10
|
+
isSelectable: t,
|
11
|
+
rowClassName: f,
|
12
|
+
selectCellClassName: g,
|
13
|
+
cellClassName: h,
|
14
|
+
variant: S = u.WhiteHeader,
|
15
|
+
isVirtualized: C,
|
16
|
+
rowIndex: i,
|
17
|
+
columnsKey: a
|
18
|
+
}) {
|
19
|
+
const w = e.getVisibleCells(), [b, d] = B(e.getIsSelected());
|
20
|
+
D(() => {
|
21
|
+
d(e.getIsSelected());
|
22
|
+
}, [e.getIsSelected()]);
|
23
|
+
const k = N(
|
24
|
+
(c) => {
|
25
|
+
e.toggleSelected(c), d(c);
|
26
|
+
},
|
27
|
+
[e]
|
28
|
+
), m = () => {
|
29
|
+
const c = [];
|
30
|
+
return t && c.push(
|
31
|
+
/* @__PURE__ */ o(
|
32
|
+
"td",
|
33
|
+
{
|
34
|
+
className: n(l.selectCell, g),
|
35
|
+
children: /* @__PURE__ */ o(
|
36
|
+
V,
|
37
|
+
{
|
38
|
+
checked: b,
|
39
|
+
onChange: k
|
40
|
+
}
|
41
|
+
)
|
42
|
+
},
|
43
|
+
`select-cell-${a || 0}`
|
44
|
+
)
|
45
|
+
), w.forEach((s) => {
|
46
|
+
const r = s.column, y = {
|
47
|
+
width: r.columnDef.size,
|
48
|
+
minWidth: r.columnDef.minSize,
|
49
|
+
maxWidth: r.columnDef.maxSize
|
50
|
+
};
|
51
|
+
c.push(
|
52
|
+
/* @__PURE__ */ o(
|
53
|
+
"td",
|
54
|
+
{
|
55
|
+
className: n(l.cell, h),
|
56
|
+
style: y,
|
57
|
+
children: I(s.column.columnDef.cell, s.getContext())
|
58
|
+
},
|
59
|
+
`${s.id}-${a || 0}`
|
60
|
+
)
|
61
|
+
);
|
62
|
+
}), c;
|
63
|
+
};
|
64
|
+
if (C)
|
65
|
+
return /* @__PURE__ */ o(z, { children: m() });
|
66
|
+
const W = n(
|
67
|
+
l.row,
|
68
|
+
S === u.WhiteHeader ? i !== void 0 && i % 2 === 0 ? l.rowWhiteBackground : l.rowGrayBackground : i !== void 0 && i % 2 === 0 ? l.rowGrayBackground : l.rowWhiteBackground,
|
69
|
+
f
|
70
|
+
);
|
71
|
+
return /* @__PURE__ */ o("tr", { className: W, children: m() });
|
72
|
+
}
|
73
|
+
const K = R(E, (e, t) => e.row.id === t.row.id && e.row.getIsSelected() === t.row.getIsSelected() && e.rowIndex === t.rowIndex && e.isVirtualized === t.isVirtualized && e.columnsKey === t.columnsKey);
|
74
|
+
export {
|
75
|
+
K as TableRow
|
76
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { FC } from 'react';
|
2
|
+
import { ETableScrollButtonVariant } from './constants';
|
3
|
+
|
4
|
+
type TProps = {
|
5
|
+
handleScrollLeft: () => void;
|
6
|
+
handleScrollRight: () => void;
|
7
|
+
buttonsVariant?: ETableScrollButtonVariant | `${ETableScrollButtonVariant}`;
|
8
|
+
className?: string;
|
9
|
+
};
|
10
|
+
export declare const TableScrollButtons: FC<TProps>;
|
11
|
+
export {};
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
2
|
+
import { memo as i, useMemo as s } from "react";
|
3
|
+
import { ETableScrollIconName as c, ETableScrollButtonVariant as l } from "./constants.js";
|
4
|
+
import { c as a } from "../../styles.module--QBQYoA9.js";
|
5
|
+
import { MergedButton as u } from "../MergedButton/MergedButton.js";
|
6
|
+
const E = i(
|
7
|
+
({
|
8
|
+
handleScrollLeft: r,
|
9
|
+
handleScrollRight: t,
|
10
|
+
buttonsVariant: o = l.WHITE,
|
11
|
+
className: n
|
12
|
+
}) => {
|
13
|
+
const e = s(
|
14
|
+
() => [
|
15
|
+
{
|
16
|
+
isIconButton: !0,
|
17
|
+
iconName: c.LEFT,
|
18
|
+
variant: o,
|
19
|
+
onClick: r
|
20
|
+
},
|
21
|
+
{
|
22
|
+
isIconButton: !0,
|
23
|
+
iconName: c.RIGHT,
|
24
|
+
variant: o,
|
25
|
+
onClick: t
|
26
|
+
}
|
27
|
+
],
|
28
|
+
[r, t, o]
|
29
|
+
);
|
30
|
+
return /* @__PURE__ */ m("div", { className: `${a.scrollButtons} ${n || ""}`, children: /* @__PURE__ */ m(u, { buttons: e }) });
|
31
|
+
}
|
32
|
+
);
|
33
|
+
export {
|
34
|
+
E as TableScrollButtons
|
35
|
+
};
|
@@ -0,0 +1,128 @@
|
|
1
|
+
import { ColumnDef } from '@tanstack/react-table';
|
2
|
+
|
3
|
+
export declare enum ETableVariant {
|
4
|
+
WhiteHeader = "whiteHeader",
|
5
|
+
GrayHeader = "grayHeader"
|
6
|
+
}
|
7
|
+
export declare enum ETableDisplayMode {
|
8
|
+
TABLE = "table",
|
9
|
+
CARDS = "cards"
|
10
|
+
}
|
11
|
+
export declare enum ESortDirection {
|
12
|
+
ASC = "asc",
|
13
|
+
DESC = "desc",
|
14
|
+
NONE = "none"
|
15
|
+
}
|
16
|
+
export declare const TABLE_OPTIONS: {
|
17
|
+
DEFAULT_HEIGHT: number;
|
18
|
+
DEFAULT_WIDTH: string;
|
19
|
+
DEFAULT_ROW_HEIGHT: number;
|
20
|
+
OVERSCAN: number;
|
21
|
+
};
|
22
|
+
export declare enum ETableScrollButtonVariant {
|
23
|
+
GRAY = "gray",
|
24
|
+
WHITE = "white"
|
25
|
+
}
|
26
|
+
export declare enum ETableScrollIconName {
|
27
|
+
LEFT = "ArrowLeft16px",
|
28
|
+
RIGHT = "ArrowRight16px"
|
29
|
+
}
|
30
|
+
export declare enum EFilterType {
|
31
|
+
DATE_RANGE = "date_range",
|
32
|
+
SELECT = "select"
|
33
|
+
}
|
34
|
+
export type TAgent = {
|
35
|
+
id: string;
|
36
|
+
name: string;
|
37
|
+
passport: string;
|
38
|
+
bankDetails: string;
|
39
|
+
registrationAddress: string;
|
40
|
+
actualAddress: string;
|
41
|
+
adNumber: string;
|
42
|
+
responsible: string;
|
43
|
+
birthDate: string;
|
44
|
+
agentType: string;
|
45
|
+
status: string;
|
46
|
+
phone: string;
|
47
|
+
snils: string;
|
48
|
+
inn: string;
|
49
|
+
terminationDate: string;
|
50
|
+
offerDate: string;
|
51
|
+
};
|
52
|
+
export declare const agentsData: TAgent[];
|
53
|
+
export declare const partialAgentsData: {
|
54
|
+
id: string;
|
55
|
+
name: string;
|
56
|
+
passport: string;
|
57
|
+
bankDetails: string;
|
58
|
+
registrationAddress: string;
|
59
|
+
actualAddress: string;
|
60
|
+
adNumber: string;
|
61
|
+
}[];
|
62
|
+
export declare const getAdaptiveColumnsPartial: (isQueryM: boolean) => ({
|
63
|
+
id: string;
|
64
|
+
header: string;
|
65
|
+
accessorKey: string;
|
66
|
+
size: number;
|
67
|
+
enableSorting: boolean;
|
68
|
+
cell?: undefined;
|
69
|
+
} | {
|
70
|
+
id: string;
|
71
|
+
header: string;
|
72
|
+
accessorKey: string;
|
73
|
+
size: number;
|
74
|
+
enableSorting?: undefined;
|
75
|
+
cell?: undefined;
|
76
|
+
} | {
|
77
|
+
id: string;
|
78
|
+
header: string;
|
79
|
+
accessorKey: string;
|
80
|
+
size: number;
|
81
|
+
cell: ({ getValue }: {
|
82
|
+
getValue: () => unknown;
|
83
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
84
|
+
enableSorting?: undefined;
|
85
|
+
})[];
|
86
|
+
export declare const getAdaptiveColumns: (isQueryM: boolean) => ({
|
87
|
+
id: string;
|
88
|
+
header: string;
|
89
|
+
accessorKey: string;
|
90
|
+
size: number;
|
91
|
+
enableSorting: boolean;
|
92
|
+
cell?: undefined;
|
93
|
+
} | {
|
94
|
+
id: string;
|
95
|
+
header: string;
|
96
|
+
accessorKey: string;
|
97
|
+
size: number;
|
98
|
+
enableSorting?: undefined;
|
99
|
+
cell?: undefined;
|
100
|
+
} | {
|
101
|
+
id: string;
|
102
|
+
header: string;
|
103
|
+
accessorKey: string;
|
104
|
+
size: number;
|
105
|
+
cell: ({ getValue }: {
|
106
|
+
getValue: () => unknown;
|
107
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
108
|
+
enableSorting?: undefined;
|
109
|
+
})[];
|
110
|
+
export declare const generateVirtualData: (count: number, withVaryingHeight?: boolean) => {
|
111
|
+
id: string;
|
112
|
+
name: string;
|
113
|
+
registrationAddress: string;
|
114
|
+
responsible: string;
|
115
|
+
status: string;
|
116
|
+
adNumber: string;
|
117
|
+
phone: string;
|
118
|
+
passport: string;
|
119
|
+
bankDetails: string;
|
120
|
+
actualAddress: string;
|
121
|
+
birthDate: string;
|
122
|
+
agentType: string;
|
123
|
+
snils: string;
|
124
|
+
inn: string;
|
125
|
+
terminationDate: string;
|
126
|
+
offerDate: string;
|
127
|
+
}[];
|
128
|
+
export declare const columns: ColumnDef<TAgent>[];
|