abrplus-ui-kit 1.0.7 → 1.0.8
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/antOverrides.cjs.js +1 -127
- package/dist/antOverrides.es.js +70 -98
- package/dist/atoms.cjs.js +1 -391
- package/dist/atoms.es.js +252 -306
- package/dist/colors-BDQwGpaB.cjs +5 -0
- package/dist/{colors-CztsZ6e_.js → colors-BW-NR0oP.js} +30 -34
- package/dist/deepMerge-2zqLIrFM.cjs +1 -0
- package/dist/deepMerge-Dm_AZi0Z.js +14 -0
- package/dist/index-B1HRk2-g.cjs +1 -0
- package/dist/index-BCH1vT85.js +8 -0
- package/dist/index-BJmt8SSx.cjs +1 -0
- package/dist/index-BPqX2Hsu.js +75 -0
- package/dist/{index-B02Mlfa4.js → index-BRLLsEKX.js} +19905 -19821
- package/dist/index-BeP9-mrf.js +200 -0
- package/dist/index-Bpx-uyOR.cjs +1 -0
- package/dist/index-CpGdrWps.js +19 -0
- package/dist/index-CwKyw6uN.cjs +1 -0
- package/dist/index-CzPs2mPX.js +478 -0
- package/dist/index-QraJKad8.cjs +1 -0
- package/dist/index-R9oQ5kp6.js +1569 -0
- package/dist/index-bNh4-ggT.cjs +1 -0
- package/dist/index-lDQ4dr86.cjs +1 -0
- package/dist/index.cjs.js +1 -109
- package/dist/index.css +1 -1519
- package/dist/index.es.js +5 -5
- package/dist/index2.css +1 -3
- package/dist/molecules.cjs.js +8 -7826
- package/dist/molecules.es.js +4270 -6306
- package/dist/organisms.cjs.js +1 -940
- package/dist/organisms.es.js +651 -758
- package/dist/provider.cjs.js +1 -48
- package/dist/provider.es.js +29 -34
- package/dist/sortable.esm-BSCvBWLi.js +2943 -0
- package/dist/sortable.esm-CA8VbUF-.cjs +5 -0
- package/dist/theme.css +1 -102
- package/dist/types/components/atoms/icon/constants/iconNames.d.ts +1 -1
- package/package.json +4 -4
- package/dist/colors-TPZkyKI4.cjs +0 -2212
- package/dist/deepMerge-CG1he8ZD.js +0 -20
- package/dist/deepMerge-Cn27K7-s.cjs +0 -19
- package/dist/index-B1Z0XlNV.cjs +0 -542
- package/dist/index-CCvWoynu.cjs +0 -12
- package/dist/index-CVNEow23.js +0 -543
- package/dist/index-Cbtrrxcv.js +0 -90
- package/dist/index-CiSH4Pqy.js +0 -266
- package/dist/index-Crz4ws0L.js +0 -1630
- package/dist/index-D-q_-bu0.cjs +0 -1629
- package/dist/index-DLUd_0LP.js +0 -13
- package/dist/index-DM-zAoQS.cjs +0 -89
- package/dist/index-DPvG_H_Y.cjs +0 -27
- package/dist/index-DdzyIn4u.js +0 -28
- package/dist/index-DsPAgC23.cjs +0 -37937
- package/dist/index-PyheoujP.cjs +0 -265
- package/dist/sortable.esm-BPjdpL-J.cjs +0 -3872
- package/dist/sortable.esm-C7oRJuPU.js +0 -3873
package/dist/organisms.es.js
CHANGED
|
@@ -1,486 +1,424 @@
|
|
|
1
|
-
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { L as
|
|
3
|
-
import { u as
|
|
4
|
-
import { T as
|
|
5
|
-
import { c as
|
|
6
|
-
import { Drawer as
|
|
7
|
-
import { twMerge } from "tailwind-merge";
|
|
8
|
-
import { useTranslation } from "react-i18next";
|
|
9
|
-
import { B as
|
|
10
|
-
import { useState, useEffect, useCallback, createContext, useContext, useMemo, useReducer, useRef, Fragment as
|
|
11
|
-
import
|
|
12
|
-
import { d as
|
|
13
|
-
import { useNavigate, useSearchParams } from "react-router-dom";
|
|
14
|
-
function
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
localStorage.setItem(key, JSON.stringify(state));
|
|
20
|
-
}, [key, state]);
|
|
21
|
-
return [state, setState];
|
|
1
|
+
import { jsx as r, jsxs as u, Fragment as F } from "react/jsx-runtime";
|
|
2
|
+
import { L as ae, c as ie, D as le, S as se, v as ce, b as de, C as ge } from "./sortable.esm-BSCvBWLi.js";
|
|
3
|
+
import { u as pe, P as me, V as he } from "./index-BeP9-mrf.js";
|
|
4
|
+
import { T as m, F as s, R as ue, I as v, L as fe } from "./index-BRLLsEKX.js";
|
|
5
|
+
import { c as o } from "./colors-BW-NR0oP.js";
|
|
6
|
+
import { Drawer as ye, ConfigProvider as Q, Modal as be, Table as U } from "antd";
|
|
7
|
+
import { twMerge as S } from "tailwind-merge";
|
|
8
|
+
import { useTranslation as H } from "react-i18next";
|
|
9
|
+
import { B as _, b as we } from "./index-CzPs2mPX.js";
|
|
10
|
+
import { useState as O, useEffect as W, useCallback as L, createContext as Ce, useContext as _e, useMemo as V, useReducer as xe, useRef as Se, Fragment as ve } from "react";
|
|
11
|
+
import Ne from "starkstring";
|
|
12
|
+
import { d as ke } from "./deepMerge-Dm_AZi0Z.js";
|
|
13
|
+
import { useNavigate as ze, useSearchParams as Be } from "react-router-dom";
|
|
14
|
+
function Ee(e, t) {
|
|
15
|
+
const n = localStorage.getItem(e), a = n ? JSON.parse(n) : t, [i, l] = O(a);
|
|
16
|
+
return W(() => {
|
|
17
|
+
localStorage.setItem(e, JSON.stringify(i));
|
|
18
|
+
}, [e, i]), [i, l];
|
|
22
19
|
}
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const getIsWidthSmallerThan = useCallback(
|
|
30
|
-
(query) => {
|
|
31
|
-
if (typeof window === "undefined") return;
|
|
32
|
-
return width <= query;
|
|
20
|
+
const Ae = 640, Ie = 768, De = 1024, Re = 1280;
|
|
21
|
+
function Te() {
|
|
22
|
+
const { width: e } = pe(), t = L(
|
|
23
|
+
(c) => {
|
|
24
|
+
if (!(typeof window > "u"))
|
|
25
|
+
return e <= c;
|
|
33
26
|
},
|
|
34
|
-
[
|
|
35
|
-
)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return width > query;
|
|
27
|
+
[e]
|
|
28
|
+
), n = L(
|
|
29
|
+
(c) => {
|
|
30
|
+
if (!(typeof window > "u"))
|
|
31
|
+
return e > c;
|
|
40
32
|
},
|
|
41
|
-
[
|
|
42
|
-
)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (queries[0] >= queries[1]) {
|
|
33
|
+
[e]
|
|
34
|
+
), a = L(
|
|
35
|
+
(c) => {
|
|
36
|
+
if (c[0] >= c[1])
|
|
46
37
|
throw new Error(
|
|
47
|
-
`The second query: ${
|
|
38
|
+
`The second query: ${c[1]}px must be greater than the first query: ${c[0]}px`
|
|
48
39
|
);
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return width > queries[0] && width <= queries[1];
|
|
40
|
+
if (!(typeof window > "u"))
|
|
41
|
+
return e > c[0] && e <= c[1];
|
|
52
42
|
},
|
|
53
|
-
[
|
|
54
|
-
);
|
|
55
|
-
const isSmallerThenLarge = getIsWidthSmallerThan(LARGE_SCREEN);
|
|
56
|
-
const isSmallerThanSmall = getIsWidthSmallerThan(SMALL_SCREEN);
|
|
57
|
-
const isSmallerThanMedium = getIsWidthSmallerThan(MEDIUM_SCREEN);
|
|
58
|
-
const isSmallerThanExtraLarge = getIsWidthLargerThan(EXTRA_LARGE_SCREEN);
|
|
43
|
+
[e]
|
|
44
|
+
), i = t(De), l = t(Ae), d = t(Ie), g = n(Re);
|
|
59
45
|
return {
|
|
60
|
-
getIsWidthSmallerThan,
|
|
61
|
-
getIsWidthLargerThan,
|
|
62
|
-
getIsWidthBetween,
|
|
63
|
-
isSmallerThanExtraLarge,
|
|
64
|
-
isSmallerThanMedium,
|
|
65
|
-
isSmallerThanSmall,
|
|
66
|
-
isSmallerThenLarge
|
|
46
|
+
getIsWidthSmallerThan: t,
|
|
47
|
+
getIsWidthLargerThan: n,
|
|
48
|
+
getIsWidthBetween: a,
|
|
49
|
+
isSmallerThanExtraLarge: g,
|
|
50
|
+
isSmallerThanMedium: d,
|
|
51
|
+
isSmallerThanSmall: l,
|
|
52
|
+
isSmallerThenLarge: i
|
|
67
53
|
};
|
|
68
54
|
}
|
|
69
|
-
const
|
|
70
|
-
function
|
|
71
|
-
items = [],
|
|
72
|
-
max = 3,
|
|
73
|
-
avatarProps: { size } = {},
|
|
74
|
-
onClickAvatar,
|
|
75
|
-
hasAnimation =
|
|
76
|
-
nameExtractor,
|
|
77
|
-
renderItem,
|
|
78
|
-
itemLogoProps,
|
|
79
|
-
containerProps,
|
|
80
|
-
popoverProps
|
|
55
|
+
const Z = "PAGINATION_SIZE";
|
|
56
|
+
function br({
|
|
57
|
+
items: e = [],
|
|
58
|
+
max: t = 3,
|
|
59
|
+
avatarProps: { size: n } = {},
|
|
60
|
+
onClickAvatar: a,
|
|
61
|
+
hasAnimation: i = !0,
|
|
62
|
+
nameExtractor: l,
|
|
63
|
+
renderItem: d,
|
|
64
|
+
itemLogoProps: g,
|
|
65
|
+
containerProps: c,
|
|
66
|
+
popoverProps: f
|
|
81
67
|
}) {
|
|
82
|
-
if (
|
|
83
|
-
return /* @__PURE__ */
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
return /* @__PURE__ */ jsxs(Flex, { ...containerProps, children: [
|
|
89
|
-
items.slice(0, max).map((item, index) => /* @__PURE__ */ jsx(
|
|
90
|
-
Render,
|
|
68
|
+
if (e.length === 0)
|
|
69
|
+
return /* @__PURE__ */ r(m, { children: "-" });
|
|
70
|
+
const w = (p) => l?.(p) ?? (p.name || "--");
|
|
71
|
+
return /* @__PURE__ */ u(s, { ...c, children: [
|
|
72
|
+
e.slice(0, t).map((p, x) => /* @__PURE__ */ r(
|
|
73
|
+
ue,
|
|
91
74
|
{
|
|
92
|
-
when: !!
|
|
93
|
-
fallback: /* @__PURE__ */
|
|
94
|
-
|
|
75
|
+
when: !!d,
|
|
76
|
+
fallback: /* @__PURE__ */ r(
|
|
77
|
+
ae,
|
|
95
78
|
{
|
|
96
|
-
style: { marginInlineStart:
|
|
97
|
-
imageSrc:
|
|
98
|
-
hasToolTip:
|
|
99
|
-
toolTipTitle:
|
|
100
|
-
hasAnimation,
|
|
101
|
-
onClick: () =>
|
|
102
|
-
...
|
|
79
|
+
style: { marginInlineStart: x - 12, width: n, height: n },
|
|
80
|
+
imageSrc: p?.imageSrc,
|
|
81
|
+
hasToolTip: !0,
|
|
82
|
+
toolTipTitle: w(p),
|
|
83
|
+
hasAnimation: i,
|
|
84
|
+
onClick: () => a?.(p),
|
|
85
|
+
...g
|
|
103
86
|
},
|
|
104
|
-
|
|
87
|
+
p.id
|
|
105
88
|
),
|
|
106
|
-
children:
|
|
89
|
+
children: d?.(p)
|
|
107
90
|
}
|
|
108
91
|
)),
|
|
109
|
-
|
|
110
|
-
|
|
92
|
+
e.length > t && /* @__PURE__ */ r(
|
|
93
|
+
me,
|
|
111
94
|
{
|
|
112
|
-
arrow:
|
|
113
|
-
color:
|
|
95
|
+
arrow: !0,
|
|
96
|
+
color: o.primary_dark_1,
|
|
114
97
|
placement: "left",
|
|
115
98
|
overlayInnerStyle: {
|
|
116
|
-
backgroundColor:
|
|
99
|
+
backgroundColor: o.primary_dark_1,
|
|
117
100
|
borderRadius: 4
|
|
118
101
|
},
|
|
119
102
|
trigger: ["hover"],
|
|
120
|
-
content: /* @__PURE__ */
|
|
121
|
-
...
|
|
122
|
-
children: /* @__PURE__ */
|
|
123
|
-
|
|
103
|
+
content: /* @__PURE__ */ r(he, { vertical: !0, children: e.slice(t).map((p) => /* @__PURE__ */ r(m, { color: o.white_ff, children: w(p) }, p.id)) }),
|
|
104
|
+
...f,
|
|
105
|
+
children: /* @__PURE__ */ r(
|
|
106
|
+
s,
|
|
124
107
|
{
|
|
125
108
|
align: "center",
|
|
126
109
|
justify: "center",
|
|
127
110
|
className: "z-50 -ms-3 h-6 w-6 rounded-full border-2 border-primary-light-3 bg-light-7",
|
|
128
|
-
style: { width:
|
|
129
|
-
...
|
|
130
|
-
children: `${
|
|
111
|
+
style: { width: n, height: n },
|
|
112
|
+
...f?.containerProps,
|
|
113
|
+
children: `${e.length - t}+`
|
|
131
114
|
}
|
|
132
115
|
)
|
|
133
116
|
}
|
|
134
117
|
)
|
|
135
118
|
] });
|
|
136
119
|
}
|
|
137
|
-
const
|
|
138
|
-
discardTitle,
|
|
139
|
-
onDiscard,
|
|
140
|
-
onSubmit,
|
|
141
|
-
submitTitle,
|
|
142
|
-
isLoading,
|
|
143
|
-
isSubmitDisabled
|
|
120
|
+
const Pe = ({
|
|
121
|
+
discardTitle: e,
|
|
122
|
+
onDiscard: t,
|
|
123
|
+
onSubmit: n,
|
|
124
|
+
submitTitle: a,
|
|
125
|
+
isLoading: i,
|
|
126
|
+
isSubmitDisabled: l
|
|
144
127
|
}) => {
|
|
145
|
-
const { t } =
|
|
146
|
-
return /* @__PURE__ */
|
|
147
|
-
|
|
148
|
-
/* @__PURE__ */
|
|
128
|
+
const { t: d } = H();
|
|
129
|
+
return /* @__PURE__ */ u(s, { align: "center", gap: 16, justify: "flex-end", children: [
|
|
130
|
+
e && /* @__PURE__ */ r(_.Secondary, { disabled: i, onClick: t, children: e }),
|
|
131
|
+
/* @__PURE__ */ r(_.Primary, { disabled: l, isLoading: i, onClick: n, children: a || d("common.literal.apply") })
|
|
149
132
|
] });
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
Drawer$1,
|
|
186
|
-
{
|
|
187
|
-
onClose,
|
|
188
|
-
styles: {
|
|
189
|
-
...styles,
|
|
190
|
-
header: {
|
|
191
|
-
minHeight: headerHeight,
|
|
192
|
-
backgroundColor: colors.light_2,
|
|
193
|
-
borderColor: colors.light_7,
|
|
194
|
-
paddingBlock: 12,
|
|
195
|
-
paddingInline: 24
|
|
196
|
-
},
|
|
197
|
-
body: {
|
|
198
|
-
backgroundColor: transparent ? "transparent" : colors.white_ff,
|
|
199
|
-
// margin: transparent ? 0 : 24,
|
|
200
|
-
// borderRadius: 10,
|
|
201
|
-
padding: 0
|
|
202
|
-
},
|
|
203
|
-
content: {
|
|
204
|
-
backgroundColor: colors.light_2,
|
|
205
|
-
padding: 0
|
|
206
|
-
},
|
|
207
|
-
footer: {
|
|
208
|
-
minHeight: 60,
|
|
209
|
-
paddingBlock: 12,
|
|
210
|
-
borderColor: colors.light_7,
|
|
211
|
-
paddingInline: 24,
|
|
212
|
-
margin: 0
|
|
213
|
-
}
|
|
133
|
+
}, je = ({ title: e, closable: t, onClose: n }) => /* @__PURE__ */ u(s, { justify: "space-between", align: "center", children: [
|
|
134
|
+
typeof e != "string" ? e : /* @__PURE__ */ r(m, { size: 18, weight: "medium", color: o.primary, children: e }),
|
|
135
|
+
t && /* @__PURE__ */ r("div", { className: "cursor-pointer", onClick: n, children: /* @__PURE__ */ r(v, { name: "Close", size: 20, color: o.primary }) })
|
|
136
|
+
] }), wr = ({
|
|
137
|
+
title: e,
|
|
138
|
+
closable: t = !0,
|
|
139
|
+
transparent: n,
|
|
140
|
+
submitTitle: a,
|
|
141
|
+
discardTitle: i,
|
|
142
|
+
onClose: l,
|
|
143
|
+
onSubmit: d,
|
|
144
|
+
onDiscard: g,
|
|
145
|
+
classNames: c,
|
|
146
|
+
styles: f,
|
|
147
|
+
children: w,
|
|
148
|
+
isLoading: p,
|
|
149
|
+
headerHeight: x = 60,
|
|
150
|
+
wrapperClassName: R,
|
|
151
|
+
contentClassName: C,
|
|
152
|
+
noPadding: T,
|
|
153
|
+
isSubmitDisabled: P,
|
|
154
|
+
footer: N,
|
|
155
|
+
...A
|
|
156
|
+
}) => /* @__PURE__ */ r(
|
|
157
|
+
ye,
|
|
158
|
+
{
|
|
159
|
+
onClose: l,
|
|
160
|
+
styles: {
|
|
161
|
+
...f,
|
|
162
|
+
header: {
|
|
163
|
+
minHeight: x,
|
|
164
|
+
backgroundColor: o.light_2,
|
|
165
|
+
borderColor: o.light_7,
|
|
166
|
+
paddingBlock: 12,
|
|
167
|
+
paddingInline: 24
|
|
214
168
|
},
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
169
|
+
body: {
|
|
170
|
+
backgroundColor: n ? "transparent" : o.white_ff,
|
|
171
|
+
// margin: transparent ? 0 : 24,
|
|
172
|
+
// borderRadius: 10,
|
|
173
|
+
padding: 0
|
|
218
174
|
},
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
...{ onSubmit, onDiscard, submitTitle, discardTitle, isLoading, isSubmitDisabled }
|
|
223
|
-
}
|
|
224
|
-
),
|
|
225
|
-
closable: false,
|
|
226
|
-
title: /* @__PURE__ */ jsx(DrawerHeaderTitle, { title, closable, onClose }),
|
|
227
|
-
...rest,
|
|
228
|
-
children: /* @__PURE__ */ jsx(
|
|
229
|
-
Flex,
|
|
230
|
-
{
|
|
231
|
-
className: twMerge(
|
|
232
|
-
"small-custom-scrollbar h-full flex-1 overflow-y-auto bg-light-2 p-6",
|
|
233
|
-
wrapperClassName
|
|
234
|
-
),
|
|
235
|
-
vertical: true,
|
|
236
|
-
gap: 16,
|
|
237
|
-
children: /* @__PURE__ */ jsx(
|
|
238
|
-
Flex,
|
|
239
|
-
{
|
|
240
|
-
className: twMerge(
|
|
241
|
-
"bg-white-ff",
|
|
242
|
-
noPadding ? "rounded-lg" : "rounded p-6",
|
|
243
|
-
!transparent ? "" : "bg-transparent",
|
|
244
|
-
contentClassName
|
|
245
|
-
),
|
|
246
|
-
vertical: true,
|
|
247
|
-
children
|
|
248
|
-
}
|
|
249
|
-
)
|
|
250
|
-
}
|
|
251
|
-
)
|
|
252
|
-
}
|
|
253
|
-
);
|
|
254
|
-
};
|
|
255
|
-
const BaseModal = ({
|
|
256
|
-
children,
|
|
257
|
-
submitTitle,
|
|
258
|
-
discardTitle,
|
|
259
|
-
onSubmit,
|
|
260
|
-
onDiscard,
|
|
261
|
-
title,
|
|
262
|
-
onClose,
|
|
263
|
-
isLoadingSubmit,
|
|
264
|
-
renderFooter,
|
|
265
|
-
...rest
|
|
266
|
-
}) => {
|
|
267
|
-
return /* @__PURE__ */ jsx(
|
|
268
|
-
ConfigProvider,
|
|
269
|
-
{
|
|
270
|
-
theme: {
|
|
271
|
-
components: {
|
|
272
|
-
Modal: {
|
|
273
|
-
borderRadius: 4,
|
|
274
|
-
borderRadiusOuter: 4,
|
|
275
|
-
borderRadiusLG: 4,
|
|
276
|
-
paddingMD: 0,
|
|
277
|
-
paddingContentHorizontalLG: 0,
|
|
278
|
-
margin: 0
|
|
279
|
-
}
|
|
280
|
-
}
|
|
175
|
+
content: {
|
|
176
|
+
backgroundColor: o.light_2,
|
|
177
|
+
padding: 0
|
|
281
178
|
},
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
179
|
+
footer: {
|
|
180
|
+
minHeight: 60,
|
|
181
|
+
paddingBlock: 12,
|
|
182
|
+
borderColor: o.light_7,
|
|
183
|
+
paddingInline: 24,
|
|
184
|
+
margin: 0
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
classNames: {
|
|
188
|
+
...c,
|
|
189
|
+
body: "small-custom-scrollbar"
|
|
190
|
+
},
|
|
191
|
+
footer: N || /* @__PURE__ */ r(
|
|
192
|
+
Pe,
|
|
193
|
+
{
|
|
194
|
+
onSubmit: d,
|
|
195
|
+
onDiscard: g,
|
|
196
|
+
submitTitle: a,
|
|
197
|
+
discardTitle: i,
|
|
198
|
+
isLoading: p,
|
|
199
|
+
isSubmitDisabled: P
|
|
200
|
+
}
|
|
201
|
+
),
|
|
202
|
+
closable: !1,
|
|
203
|
+
title: /* @__PURE__ */ r(je, { title: e, closable: t, onClose: l }),
|
|
204
|
+
...A,
|
|
205
|
+
children: /* @__PURE__ */ r(
|
|
206
|
+
s,
|
|
207
|
+
{
|
|
208
|
+
className: S(
|
|
209
|
+
"small-custom-scrollbar h-full flex-1 overflow-y-auto bg-light-2 p-6",
|
|
210
|
+
R
|
|
211
|
+
),
|
|
212
|
+
vertical: !0,
|
|
213
|
+
gap: 16,
|
|
214
|
+
children: /* @__PURE__ */ r(
|
|
215
|
+
s,
|
|
216
|
+
{
|
|
217
|
+
className: S(
|
|
218
|
+
"bg-white-ff",
|
|
219
|
+
T ? "rounded-lg" : "rounded p-6",
|
|
220
|
+
n ? "bg-transparent" : "",
|
|
221
|
+
C
|
|
222
|
+
),
|
|
223
|
+
vertical: !0,
|
|
224
|
+
children: w
|
|
225
|
+
}
|
|
226
|
+
)
|
|
227
|
+
}
|
|
228
|
+
)
|
|
229
|
+
}
|
|
230
|
+
), G = ({
|
|
231
|
+
children: e,
|
|
232
|
+
submitTitle: t,
|
|
233
|
+
discardTitle: n,
|
|
234
|
+
onSubmit: a,
|
|
235
|
+
onDiscard: i,
|
|
236
|
+
title: l,
|
|
237
|
+
onClose: d,
|
|
238
|
+
isLoadingSubmit: g,
|
|
239
|
+
renderFooter: c,
|
|
240
|
+
...f
|
|
241
|
+
}) => /* @__PURE__ */ r(
|
|
242
|
+
Q,
|
|
243
|
+
{
|
|
244
|
+
theme: {
|
|
245
|
+
components: {
|
|
246
|
+
Modal: {
|
|
247
|
+
borderRadius: 4,
|
|
248
|
+
borderRadiusOuter: 4,
|
|
249
|
+
borderRadiusLG: 4,
|
|
250
|
+
paddingMD: 0,
|
|
251
|
+
paddingContentHorizontalLG: 0,
|
|
252
|
+
margin: 0
|
|
322
253
|
}
|
|
323
|
-
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
children: /* @__PURE__ */ r(
|
|
257
|
+
be,
|
|
258
|
+
{
|
|
259
|
+
closeIcon: !1,
|
|
260
|
+
classNames: { body: "!px-6 !py-4" },
|
|
261
|
+
footer: c !== void 0 ? c : t || n ? /* @__PURE__ */ u(
|
|
262
|
+
s,
|
|
263
|
+
{
|
|
264
|
+
justify: "end",
|
|
265
|
+
align: "center",
|
|
266
|
+
className: "h-[58px] rounded-b border-t border-solid border-light-7 bg-light-2 px-6",
|
|
267
|
+
gap: 16,
|
|
268
|
+
children: [
|
|
269
|
+
n && /* @__PURE__ */ r(_.Secondary, { onClick: i, children: n }),
|
|
270
|
+
t && /* @__PURE__ */ r(_.Primary, { isLoading: g, onClick: a, children: t })
|
|
271
|
+
]
|
|
272
|
+
}
|
|
273
|
+
) : null,
|
|
274
|
+
title: typeof l == "string" ? /* @__PURE__ */ u(
|
|
275
|
+
s,
|
|
276
|
+
{
|
|
277
|
+
className: "h-12 rounded-t border-b border-solid border-light-7 bg-light-2 px-6",
|
|
278
|
+
align: "center",
|
|
279
|
+
justify: "space-between",
|
|
280
|
+
children: [
|
|
281
|
+
/* @__PURE__ */ r(m, { size: 18, weight: "medium", color: o.primary_dark_1, children: l }),
|
|
282
|
+
/* @__PURE__ */ r(
|
|
283
|
+
v,
|
|
284
|
+
{
|
|
285
|
+
name: "Close",
|
|
286
|
+
color: o.primary,
|
|
287
|
+
onClick: d,
|
|
288
|
+
className: "cursor-pointer"
|
|
289
|
+
}
|
|
290
|
+
)
|
|
291
|
+
]
|
|
292
|
+
}
|
|
293
|
+
) : l,
|
|
294
|
+
...f,
|
|
295
|
+
children: e
|
|
296
|
+
}
|
|
297
|
+
)
|
|
298
|
+
}
|
|
299
|
+
), Me = ({
|
|
300
|
+
children: e,
|
|
301
|
+
title: t,
|
|
302
|
+
onSubmit: n,
|
|
303
|
+
onDiscard: a,
|
|
304
|
+
submitTitle: i,
|
|
305
|
+
discardTitle: l,
|
|
306
|
+
isLoadingSubmit: d,
|
|
307
|
+
renderFooter: g,
|
|
308
|
+
...c
|
|
337
309
|
}) => {
|
|
338
|
-
const
|
|
339
|
-
|
|
340
|
-
|
|
310
|
+
const f = g !== void 0 ? g : (i || l) && /* @__PURE__ */ u(s, { gap: 16, align: "center", justify: "flex-end", className: "px-6 py-4", children: [
|
|
311
|
+
l && /* @__PURE__ */ r(_.Secondary, { onClick: a, children: l }),
|
|
312
|
+
i && /* @__PURE__ */ r(_.Primary, { isLoading: d, onClick: n, children: i })
|
|
341
313
|
] });
|
|
342
|
-
return /* @__PURE__ */
|
|
343
|
-
/* @__PURE__ */
|
|
344
|
-
/* @__PURE__ */
|
|
314
|
+
return /* @__PURE__ */ r(G, { ...c, renderFooter: f, children: /* @__PURE__ */ u(s, { vertical: !0, children: [
|
|
315
|
+
/* @__PURE__ */ r(s, { vertical: !0, className: "mb-2 border-b-[2px] border-light-7 pb-3", children: typeof t == "string" ? /* @__PURE__ */ r(m, { size: 20, weight: "bold", color: o.primary_dark_1, children: t }) : t }),
|
|
316
|
+
/* @__PURE__ */ r(s, { className: "pb-10 pt-4", children: typeof e == "string" ? /* @__PURE__ */ r(m, { size: 16, weight: "normal", color: o.primary, children: e }) : e })
|
|
345
317
|
] }) });
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
})
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
/* @__PURE__ */
|
|
360
|
-
/* @__PURE__ */
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
})
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
})
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
Base: BaseModal,
|
|
406
|
-
Confirm: ConfirmModal,
|
|
407
|
-
Error: ErrorModal,
|
|
408
|
-
Delete: DeleteModal,
|
|
409
|
-
Info: InfoModal
|
|
410
|
-
});
|
|
411
|
-
const Column = (_props) => {
|
|
412
|
-
return /* @__PURE__ */ jsx(Fragment, {});
|
|
413
|
-
};
|
|
414
|
-
const CurrencyCell = ({ value, includeCurrency, ...rest }) => {
|
|
415
|
-
const { t } = useTranslation();
|
|
416
|
-
return /* @__PURE__ */ jsxs(Text, { className: "w-full", size: 14, weight: "normal", color: colors.primary, ...rest, children: [
|
|
417
|
-
value ? starkString(value).scientificNotationToDecimal().toCurrency().toString() : "",
|
|
418
|
-
includeCurrency && ` ${t("common.literal.rial")}`
|
|
318
|
+
}, Le = ({
|
|
319
|
+
children: e,
|
|
320
|
+
title: t,
|
|
321
|
+
onSubmit: n,
|
|
322
|
+
onDiscard: a,
|
|
323
|
+
submitTitle: i,
|
|
324
|
+
discardTitle: l,
|
|
325
|
+
isLoadingSubmit: d,
|
|
326
|
+
...g
|
|
327
|
+
}) => /* @__PURE__ */ r(G, { ...g, children: /* @__PURE__ */ u(s, { vertical: !0, children: [
|
|
328
|
+
/* @__PURE__ */ r(s, { vertical: !0, className: "border-b-[2px] border-light-7 pb-3", children: typeof t == "string" ? /* @__PURE__ */ r(m, { size: 20, weight: "bold", color: o.primary_dark_1, children: t }) : t }),
|
|
329
|
+
/* @__PURE__ */ r(s, { className: "pb-10 pt-4", children: typeof e == "string" ? /* @__PURE__ */ r(m, { size: 16, weight: "normal", color: o.primary, children: e }) : e }),
|
|
330
|
+
/* @__PURE__ */ u(s, { gap: 16, align: "center", justify: "flex-end", children: [
|
|
331
|
+
/* @__PURE__ */ r(_.Secondary, { onClick: a, children: l }),
|
|
332
|
+
/* @__PURE__ */ r(_.Negative, { iconName: "Delete", isLoading: d, onClick: n, children: i })
|
|
333
|
+
] })
|
|
334
|
+
] }) }), He = ({
|
|
335
|
+
children: e,
|
|
336
|
+
title: t,
|
|
337
|
+
onSubmit: n,
|
|
338
|
+
submitTitle: a,
|
|
339
|
+
isLoadingSubmit: i,
|
|
340
|
+
...l
|
|
341
|
+
}) => /* @__PURE__ */ r(G, { ...l, children: /* @__PURE__ */ u(s, { vertical: !0, children: [
|
|
342
|
+
/* @__PURE__ */ u(s, { className: "border-b-[2px] border-light-7 pb-3", align: "center", justify: "space-between", children: [
|
|
343
|
+
typeof t == "string" ? /* @__PURE__ */ r(m, { size: 20, weight: "bold", color: o.primary_dark_1, children: t }) : t,
|
|
344
|
+
/* @__PURE__ */ r(v, { name: "Alert", color: o.negative, size: 18 })
|
|
345
|
+
] }),
|
|
346
|
+
/* @__PURE__ */ r(s, { className: "pb-10 pt-4", children: typeof e == "string" ? /* @__PURE__ */ r(m, { size: 16, weight: "normal", color: o.primary, children: e }) : e }),
|
|
347
|
+
/* @__PURE__ */ r(s, { justify: "flex-end", children: /* @__PURE__ */ r(_.Primary, { isLoading: i, onClick: n, children: a }) })
|
|
348
|
+
] }) }), Ge = ({
|
|
349
|
+
children: e,
|
|
350
|
+
title: t,
|
|
351
|
+
onSubmit: n,
|
|
352
|
+
onDiscard: a,
|
|
353
|
+
submitTitle: i,
|
|
354
|
+
discardTitle: l,
|
|
355
|
+
isLoadingSubmit: d,
|
|
356
|
+
error: g,
|
|
357
|
+
...c
|
|
358
|
+
}) => /* @__PURE__ */ r(G, { ...c, children: /* @__PURE__ */ u(s, { vertical: !0, children: [
|
|
359
|
+
/* @__PURE__ */ r(s, { vertical: !0, className: "border-b-[2px] border-light-7 pb-3", children: typeof t == "string" ? /* @__PURE__ */ r(m, { size: 20, weight: "bold", color: o.primary_dark_1, children: t }) : t }),
|
|
360
|
+
/* @__PURE__ */ r(s, { className: "pb-10 pt-4", children: typeof e == "string" ? /* @__PURE__ */ r(m, { size: 16, weight: "normal", color: o.primary, children: e }) : e }),
|
|
361
|
+
/* @__PURE__ */ r(m, { size: 20, weight: "bold", color: o.negative, children: g }),
|
|
362
|
+
/* @__PURE__ */ u(s, { gap: 16, align: "center", justify: "flex-end", children: [
|
|
363
|
+
/* @__PURE__ */ r(_.SecondaryQuiet, { onClick: a, children: l }),
|
|
364
|
+
/* @__PURE__ */ r(_.Primary, { isLoading: d, onClick: n, children: i })
|
|
365
|
+
] })
|
|
366
|
+
] }) }), Cr = we({
|
|
367
|
+
Base: G,
|
|
368
|
+
Confirm: Me,
|
|
369
|
+
Error: He,
|
|
370
|
+
Delete: Le,
|
|
371
|
+
Info: Ge
|
|
372
|
+
}), K = (e) => /* @__PURE__ */ r(F, {}), $e = ({ value: e, includeCurrency: t, ...n }) => {
|
|
373
|
+
const { t: a } = H();
|
|
374
|
+
return /* @__PURE__ */ u(m, { className: "w-full", size: 14, weight: "normal", color: o.primary, ...n, children: [
|
|
375
|
+
e ? Ne(e).scientificNotationToDecimal().toCurrency().toString() : "",
|
|
376
|
+
t && ` ${a("common.literal.rial")}`
|
|
419
377
|
] });
|
|
420
|
-
}
|
|
421
|
-
const
|
|
422
|
-
return /* @__PURE__ */
|
|
423
|
-
|
|
424
|
-
const StatusCell = ({ value, activeTitle, disableTitle, ...rest }) => {
|
|
425
|
-
const { t } = useTranslation();
|
|
426
|
-
return /* @__PURE__ */ jsx(
|
|
427
|
-
Flex,
|
|
378
|
+
}, Fe = ({ value: e, ...t }) => /* @__PURE__ */ r(m, { className: "w-full", size: 14, weight: "normal", color: o.primary, ...t, children: e }), Oe = ({ value: e, activeTitle: t, disableTitle: n, ...a }) => {
|
|
379
|
+
const { t: i } = H();
|
|
380
|
+
return /* @__PURE__ */ r(
|
|
381
|
+
s,
|
|
428
382
|
{
|
|
429
|
-
className:
|
|
383
|
+
className: S(
|
|
430
384
|
"h-[26px] items-center justify-center rounded px-4",
|
|
431
|
-
|
|
385
|
+
e ? "bg-positive-light-2 bg-opacity-10" : "bg-light-6"
|
|
432
386
|
),
|
|
433
|
-
...
|
|
434
|
-
children:
|
|
387
|
+
...a,
|
|
388
|
+
children: e ? /* @__PURE__ */ r(m, { size: 12, weight: "medium", color: o.positive, children: t || i("common.literal.active") }) : /* @__PURE__ */ r(m, { size: 12, weight: "medium", color: o.primary_light_2, children: n || i("common.literal.disable") })
|
|
435
389
|
}
|
|
436
390
|
);
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
TableCell.Date = DateCell;
|
|
446
|
-
TableCell.StatusCell = StatusCell;
|
|
447
|
-
const ExpandIcon = ({ expandable, expanded, onExpand }) => {
|
|
448
|
-
const { i18n } = useTranslation();
|
|
449
|
-
if (!expandable) {
|
|
450
|
-
return null;
|
|
451
|
-
}
|
|
452
|
-
return /* @__PURE__ */ jsx("button", { className: "float-start h-full items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
453
|
-
Icon,
|
|
391
|
+
}, z = ({ children: e }) => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ r(m, { className: "w-full", size: 14, weight: "normal", color: o.primary, children: e }) : e;
|
|
392
|
+
z.Currency = $e;
|
|
393
|
+
z.Date = Fe;
|
|
394
|
+
z.StatusCell = Oe;
|
|
395
|
+
const We = ({ expandable: e, expanded: t, onExpand: n }) => {
|
|
396
|
+
const { i18n: a } = H();
|
|
397
|
+
return e ? /* @__PURE__ */ r("button", { className: "float-start h-full items-center justify-center", children: /* @__PURE__ */ r(
|
|
398
|
+
v,
|
|
454
399
|
{
|
|
455
|
-
onClick:
|
|
456
|
-
name:
|
|
400
|
+
onClick: n,
|
|
401
|
+
name: t ? "Chevron_Down" : a.language === "fa" ? "Chevron_Left" : "Chevron_Right"
|
|
457
402
|
}
|
|
458
|
-
) });
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
403
|
+
) }) : null;
|
|
404
|
+
}, Ve = ({ title: e, align: t, style: n, className: a }) => typeof e != "string" ? e : /* @__PURE__ */ r(
|
|
405
|
+
s,
|
|
406
|
+
{
|
|
407
|
+
style: n,
|
|
408
|
+
className: S(
|
|
409
|
+
"w-full",
|
|
410
|
+
t === "start" && "justify-start",
|
|
411
|
+
t === "center" && "justify-center",
|
|
412
|
+
t === "end" && "justify-end",
|
|
413
|
+
a
|
|
414
|
+
),
|
|
415
|
+
children: /* @__PURE__ */ r(m, { size: 14, weight: "normal", className: "whitespace-nowrap", color: o.primary, children: e })
|
|
463
416
|
}
|
|
464
|
-
|
|
465
|
-
Flex,
|
|
466
|
-
{
|
|
467
|
-
style,
|
|
468
|
-
className: twMerge(
|
|
469
|
-
"w-full",
|
|
470
|
-
align === "start" && "justify-start",
|
|
471
|
-
align === "center" && "justify-center",
|
|
472
|
-
align === "end" && "justify-end",
|
|
473
|
-
className
|
|
474
|
-
),
|
|
475
|
-
children: /* @__PURE__ */ jsx(Text, { size: 14, weight: "normal", className: "whitespace-nowrap", color: colors.primary, children: title })
|
|
476
|
-
}
|
|
477
|
-
);
|
|
478
|
-
};
|
|
479
|
-
const CustomizedAntTableConfig = (theme) => deepMerge(
|
|
417
|
+
), Je = (e) => ke(
|
|
480
418
|
{
|
|
481
419
|
components: {
|
|
482
420
|
Table: {
|
|
483
|
-
borderColor:
|
|
421
|
+
borderColor: o.light_7,
|
|
484
422
|
cellPaddingBlock: 0,
|
|
485
423
|
cellPaddingBlockMD: 0,
|
|
486
424
|
cellPaddingBlockSM: 0,
|
|
@@ -488,453 +426,408 @@ const CustomizedAntTableConfig = (theme) => deepMerge(
|
|
|
488
426
|
cellPaddingInlineMD: 8,
|
|
489
427
|
cellPaddingInlineSM: 8,
|
|
490
428
|
fixedHeaderSortActiveBg: "transparent",
|
|
491
|
-
footerBg:
|
|
492
|
-
headerBg:
|
|
429
|
+
footerBg: o.light_2,
|
|
430
|
+
headerBg: o.light_2,
|
|
493
431
|
headerBorderRadius: 0,
|
|
494
|
-
headerColor:
|
|
495
|
-
bodySortBg:
|
|
496
|
-
headerSortHoverBg:
|
|
497
|
-
headerSortActiveBg:
|
|
432
|
+
headerColor: o.primary,
|
|
433
|
+
bodySortBg: o.white_ff,
|
|
434
|
+
headerSortHoverBg: o.light_1,
|
|
435
|
+
headerSortActiveBg: o.light_1,
|
|
498
436
|
headerSplitColor: "transparent",
|
|
499
|
-
rowExpandedBg:
|
|
500
|
-
rowHoverBg:
|
|
501
|
-
rowSelectedBg:
|
|
502
|
-
rowSelectedHoverBg:
|
|
437
|
+
rowExpandedBg: o.light_3,
|
|
438
|
+
rowHoverBg: o.light_4,
|
|
439
|
+
rowSelectedBg: o.light_7,
|
|
440
|
+
rowSelectedHoverBg: o.light_7,
|
|
503
441
|
selectionColumnWidth: 56
|
|
504
442
|
/* here is your component tokens */
|
|
505
443
|
},
|
|
506
444
|
Pagination: {
|
|
507
|
-
itemActiveBg:
|
|
508
|
-
itemActiveBgDisabled:
|
|
509
|
-
itemActiveColorDisabled:
|
|
445
|
+
itemActiveBg: o.white_ff,
|
|
446
|
+
itemActiveBgDisabled: o.negative,
|
|
447
|
+
itemActiveColorDisabled: o.negative,
|
|
510
448
|
colorPrimaryBorderHover: "red",
|
|
511
449
|
colorInfoBorderHover: "yellow",
|
|
512
450
|
colorWarningBorderHover: "green",
|
|
513
|
-
itemBg:
|
|
514
|
-
itemInputBg:
|
|
515
|
-
itemLinkBg:
|
|
451
|
+
itemBg: o.white_ff,
|
|
452
|
+
itemInputBg: o.negative,
|
|
453
|
+
itemLinkBg: o.negative,
|
|
516
454
|
itemSize: 30,
|
|
517
455
|
itemSizeSM: 30,
|
|
518
456
|
miniOptionsSizeChangerTop: 40,
|
|
519
|
-
colorPrimary:
|
|
457
|
+
colorPrimary: o.primary,
|
|
520
458
|
fontFamily: "YekanBakhFaRegular"
|
|
521
459
|
}
|
|
522
460
|
}
|
|
523
461
|
},
|
|
524
|
-
|
|
525
|
-
)
|
|
526
|
-
const tailwindTableClasses = twMerge(
|
|
462
|
+
e ?? {}
|
|
463
|
+
), Ye = S(
|
|
527
464
|
"[&_th]:!border-t h-full [&_.ant-spin-nested-loading]:h-full [&_.ant-spin-container]:h-full [&_.ant-table]:h-full [&_.ant-spin-container]:flex [&_.ant-spin-container]:flex-col [&_.ant-spin-container]:justify-between [&_.ant-table-column-title]:flex-[0] [&_th]:!border-t-light-7 [&_th]:!pt-4 [&_th]:!pb-1 [&_.ant-table-selection-column]:!ps-4 [&_.ant-table-wrapper]:!p-0 [&_.ant-table-measure-row]:!h-[1px] [&_.ant-table-body]:h-full [&_.ant-table-container]:h-full"
|
|
528
|
-
)
|
|
529
|
-
const tableTransparentHeaderClasses = twMerge(
|
|
465
|
+
), Ue = S(
|
|
530
466
|
"[&_th]:!bg-transparent h-full [&_th]:!border-t-0 [&_td]:!bg-transparent "
|
|
531
|
-
)
|
|
532
|
-
const rowHeightClassName = {
|
|
467
|
+
), Ze = {
|
|
533
468
|
small: "h-[40px] max-h-[40px] min-h-[40px]",
|
|
534
469
|
middle: "h-[48px] max-h-[48px] min-h-[48px]",
|
|
535
470
|
large: "h-[56px] max-h-[56px] min-h-[56px]"
|
|
536
|
-
}
|
|
537
|
-
const
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
return /* @__PURE__ */ jsx("button", { style: { cursor: "move" }, ref: setActivatorNodeRef, ...listeners, children: /* @__PURE__ */ jsx(Icon, { name: "drag_and_drop", color: colors.primary_light_2 }) });
|
|
541
|
-
};
|
|
542
|
-
const restrictToVerticalAxis = (_ref) => {
|
|
471
|
+
}, q = Ce({}), Xe = () => {
|
|
472
|
+
const { setActivatorNodeRef: e, listeners: t } = _e(q);
|
|
473
|
+
return /* @__PURE__ */ r("button", { style: { cursor: "move" }, ref: e, ...t, children: /* @__PURE__ */ r(v, { name: "drag_and_drop", color: o.primary_light_2 }) });
|
|
474
|
+
}, Qe = (e) => {
|
|
543
475
|
let {
|
|
544
|
-
transform
|
|
545
|
-
} =
|
|
476
|
+
transform: t
|
|
477
|
+
} = e;
|
|
546
478
|
return {
|
|
547
|
-
...
|
|
479
|
+
...t,
|
|
548
480
|
x: 0
|
|
549
481
|
};
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
rowKey
|
|
482
|
+
}, Ke = ({
|
|
483
|
+
children: e,
|
|
484
|
+
onDragEnd: t,
|
|
485
|
+
dataSource: n = [],
|
|
486
|
+
rowKey: a
|
|
556
487
|
}) => {
|
|
557
|
-
const
|
|
558
|
-
() =>
|
|
559
|
-
[
|
|
560
|
-
)
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
const overIndex = dataSource.findIndex((record) => record[rowKey] === over?.id);
|
|
566
|
-
const newSort = arrayMove(dataSource, activeIndex, overIndex);
|
|
567
|
-
onDragEnd(newSort);
|
|
488
|
+
const i = V(
|
|
489
|
+
() => n.map((d) => d[a]),
|
|
490
|
+
[n, a]
|
|
491
|
+
), l = L(
|
|
492
|
+
({ active: d, over: g }) => {
|
|
493
|
+
if (d.id !== g?.id) {
|
|
494
|
+
const c = n.findIndex((p) => p[a] === d?.id), f = n.findIndex((p) => p[a] === g?.id), w = ie(n, c, f);
|
|
495
|
+
t(w);
|
|
568
496
|
}
|
|
569
497
|
},
|
|
570
|
-
[
|
|
498
|
+
[n, a, t]
|
|
571
499
|
);
|
|
572
|
-
return /* @__PURE__ */
|
|
573
|
-
}
|
|
574
|
-
const DndRow = (props) => {
|
|
500
|
+
return /* @__PURE__ */ r(F, { children: /* @__PURE__ */ r(le, { modifiers: [Qe], onDragEnd: l, children: /* @__PURE__ */ r(se, { items: i, strategy: ce, children: e }) }) });
|
|
501
|
+
}, qe = (e) => {
|
|
575
502
|
const {
|
|
576
|
-
attributes,
|
|
577
|
-
listeners,
|
|
578
|
-
setNodeRef,
|
|
579
|
-
setActivatorNodeRef,
|
|
580
|
-
transform,
|
|
581
|
-
transition,
|
|
582
|
-
isDragging
|
|
583
|
-
} =
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
transition,
|
|
503
|
+
attributes: t,
|
|
504
|
+
listeners: n,
|
|
505
|
+
setNodeRef: a,
|
|
506
|
+
setActivatorNodeRef: i,
|
|
507
|
+
transform: l,
|
|
508
|
+
transition: d,
|
|
509
|
+
isDragging: g
|
|
510
|
+
} = de({ id: e["data-row-key"] }), c = {
|
|
511
|
+
...e.style,
|
|
512
|
+
transform: ge.Translate.toString(l),
|
|
513
|
+
transition: d,
|
|
588
514
|
cursor: "default",
|
|
589
|
-
...
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
[setActivatorNodeRef, listeners]
|
|
515
|
+
...g ? { position: "relative", zIndex: 10 } : {}
|
|
516
|
+
}, f = V(
|
|
517
|
+
() => ({ setActivatorNodeRef: i, listeners: n }),
|
|
518
|
+
[i, n]
|
|
594
519
|
);
|
|
595
|
-
return /* @__PURE__ */
|
|
596
|
-
}
|
|
597
|
-
const
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
Text,
|
|
520
|
+
return /* @__PURE__ */ r(q.Provider, { value: f, children: /* @__PURE__ */ r("tr", { ...e, ref: a, style: c, ...t }) });
|
|
521
|
+
}, er = ({ page: e, type: t, current: n, isFa: a }) => {
|
|
522
|
+
const i = Number(e) === n;
|
|
523
|
+
return /* @__PURE__ */ r(s, { className: "h-[30px] items-center justify-center", children: t === "page" ? /* @__PURE__ */ r(
|
|
524
|
+
m,
|
|
601
525
|
{
|
|
602
|
-
weight:
|
|
603
|
-
size:
|
|
604
|
-
color:
|
|
605
|
-
children:
|
|
526
|
+
weight: i ? "bold" : "normal",
|
|
527
|
+
size: i ? 20 : 18,
|
|
528
|
+
color: i ? o.primary : o.primary_dark_1,
|
|
529
|
+
children: e
|
|
606
530
|
}
|
|
607
|
-
) :
|
|
608
|
-
}
|
|
609
|
-
const CHANGE_ORDER = "CHANGE_ORDER";
|
|
610
|
-
const CHANGE_PAGE = "CHANGE_PAGE";
|
|
611
|
-
const CHANGE = "CHANGE";
|
|
612
|
-
const PAGE_SEARCH_PARAM = "page";
|
|
613
|
-
const initialState = {
|
|
531
|
+
) : t === "next" ? /* @__PURE__ */ r(s, { className: "me-4 h-[30px] w-[30px] items-center justify-center rounded border border-light-7", children: /* @__PURE__ */ r(v, { name: a ? "Chevron_Right" : "Chevron_Left", color: o.primary }) }) : t === "prev" ? /* @__PURE__ */ r(s, { className: "h-[30px] w-[30px] items-center justify-center rounded border border-light-7", children: /* @__PURE__ */ r(v, { name: a ? "Chevron_Left" : "Chevron_Right", color: o.primary }) }) : /* @__PURE__ */ r(m, { size: 18, children: "..." }) });
|
|
532
|
+
}, rr = "CHANGE_ORDER", ee = "CHANGE_PAGE", re = "CHANGE", X = "page", tr = {
|
|
614
533
|
order: void 0,
|
|
615
534
|
orderBy: "",
|
|
616
535
|
pageSize: 10,
|
|
617
536
|
current: 1,
|
|
618
537
|
filters: {}
|
|
619
538
|
};
|
|
620
|
-
function
|
|
621
|
-
switch (
|
|
622
|
-
case
|
|
539
|
+
function nr(e, t) {
|
|
540
|
+
switch (t.type) {
|
|
541
|
+
case rr:
|
|
623
542
|
return {
|
|
624
|
-
...
|
|
625
|
-
orderBy:
|
|
626
|
-
order:
|
|
543
|
+
...e,
|
|
544
|
+
orderBy: t.payload.orderBy,
|
|
545
|
+
order: t.payload.order
|
|
627
546
|
};
|
|
628
|
-
case
|
|
547
|
+
case ee:
|
|
629
548
|
return {
|
|
630
|
-
...
|
|
631
|
-
current:
|
|
632
|
-
pageSize:
|
|
549
|
+
...e,
|
|
550
|
+
current: t.payload.current,
|
|
551
|
+
pageSize: t.payload.pageSize === void 0 ? e.pageSize : t.payload.pageSize
|
|
633
552
|
};
|
|
634
|
-
case
|
|
553
|
+
case re:
|
|
635
554
|
return {
|
|
636
|
-
...
|
|
637
|
-
current:
|
|
638
|
-
pageSize:
|
|
639
|
-
order:
|
|
640
|
-
orderBy:
|
|
641
|
-
filters:
|
|
555
|
+
...e,
|
|
556
|
+
current: t.payload.current,
|
|
557
|
+
pageSize: t.payload.pageSize ?? e.pageSize,
|
|
558
|
+
order: t.payload.order,
|
|
559
|
+
orderBy: t.payload.orderBy,
|
|
560
|
+
filters: t.payload.filters
|
|
642
561
|
};
|
|
643
562
|
default:
|
|
644
|
-
return
|
|
563
|
+
return e;
|
|
645
564
|
}
|
|
646
565
|
}
|
|
647
|
-
function
|
|
648
|
-
defaultCurrent = 1,
|
|
649
|
-
defaultPageSize = 10,
|
|
650
|
-
hasQueryParams =
|
|
651
|
-
hideOnSinglePage,
|
|
652
|
-
style,
|
|
653
|
-
...
|
|
566
|
+
function or({
|
|
567
|
+
defaultCurrent: e = 1,
|
|
568
|
+
defaultPageSize: t = 10,
|
|
569
|
+
hasQueryParams: n = !1,
|
|
570
|
+
hideOnSinglePage: a,
|
|
571
|
+
style: i,
|
|
572
|
+
...l
|
|
654
573
|
}) {
|
|
655
|
-
const { isSmallerThanMedium } =
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
defaultPageSize
|
|
661
|
-
);
|
|
662
|
-
const [total, setTotal] = useState(0);
|
|
663
|
-
const { i18n } = useTranslation();
|
|
664
|
-
const [{ current, order, orderBy, pageSize, filters }, dispatch] = useReducer(
|
|
665
|
-
reducer,
|
|
574
|
+
const { isSmallerThanMedium: d } = Te(), g = ze(), [c] = Be(), [f, w] = Ee(
|
|
575
|
+
Z,
|
|
576
|
+
t
|
|
577
|
+
), [p, x] = O(0), { i18n: R } = H(), [{ current: C, order: T, orderBy: P, pageSize: N, filters: A }, $] = xe(
|
|
578
|
+
nr,
|
|
666
579
|
{
|
|
667
|
-
...
|
|
668
|
-
pageSize:
|
|
669
|
-
current:
|
|
580
|
+
...tr,
|
|
581
|
+
pageSize: f,
|
|
582
|
+
current: n ? Number(c.get(X) || String(e)) : e
|
|
670
583
|
}
|
|
671
584
|
);
|
|
672
|
-
localStorage.removeItem(
|
|
673
|
-
const
|
|
674
|
-
(
|
|
675
|
-
const
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
type: CHANGE,
|
|
585
|
+
localStorage.removeItem(Z);
|
|
586
|
+
const y = L(
|
|
587
|
+
(b, B, j) => {
|
|
588
|
+
const D = Array.isArray(j) ? j[0] : j;
|
|
589
|
+
w(b.pageSize || t), $({
|
|
590
|
+
type: re,
|
|
679
591
|
payload: {
|
|
680
|
-
filters:
|
|
681
|
-
current:
|
|
682
|
-
pageSize:
|
|
683
|
-
orderBy: Array.isArray(
|
|
684
|
-
order:
|
|
592
|
+
filters: B,
|
|
593
|
+
current: b.current,
|
|
594
|
+
pageSize: b.pageSize,
|
|
595
|
+
orderBy: Array.isArray(D?.field) ? D?.field[0] : D?.field,
|
|
596
|
+
order: D?.order
|
|
685
597
|
}
|
|
686
598
|
});
|
|
687
599
|
},
|
|
688
|
-
[
|
|
689
|
-
)
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
pageSize,
|
|
703
|
-
defaultCurrent,
|
|
704
|
-
defaultPageSize,
|
|
705
|
-
onChange: handleInternalPagination,
|
|
600
|
+
[t, w]
|
|
601
|
+
), I = (b, B) => {
|
|
602
|
+
$({ type: ee, payload: { current: b, pageSize: B } });
|
|
603
|
+
}, h = (b) => x(b || t);
|
|
604
|
+
W(() => {
|
|
605
|
+
n && g({ search: `?${X}=${C}` }, { replace: !0 });
|
|
606
|
+
}, [C, n]);
|
|
607
|
+
const k = {
|
|
608
|
+
total: p,
|
|
609
|
+
current: C,
|
|
610
|
+
pageSize: N,
|
|
611
|
+
defaultCurrent: e,
|
|
612
|
+
defaultPageSize: t,
|
|
613
|
+
onChange: I,
|
|
706
614
|
pageSizeOptions: ["10", "20", "30"],
|
|
707
|
-
showSizeChanger:
|
|
708
|
-
hideOnSinglePage,
|
|
615
|
+
showSizeChanger: !0,
|
|
616
|
+
hideOnSinglePage: a,
|
|
709
617
|
className: "border border-negative",
|
|
710
618
|
style: {
|
|
711
|
-
backgroundColor:
|
|
712
|
-
paddingInline:
|
|
619
|
+
backgroundColor: o.white_ff,
|
|
620
|
+
paddingInline: d ? 4 : 24,
|
|
713
621
|
paddingBlock: 16,
|
|
714
622
|
margin: 0,
|
|
715
|
-
borderTop: `1px solid ${
|
|
623
|
+
borderTop: `1px solid ${o.light_7}`,
|
|
716
624
|
flexDirection: "row-reverse",
|
|
717
625
|
justifyContent: "flex-start",
|
|
718
626
|
border: "none",
|
|
719
|
-
...
|
|
627
|
+
...i
|
|
720
628
|
},
|
|
721
|
-
showPrevNextJumpers:
|
|
722
|
-
showQuickJumper:
|
|
629
|
+
showPrevNextJumpers: !0,
|
|
630
|
+
showQuickJumper: !0,
|
|
723
631
|
rootClassName: "flex items-center [&_.ant-select-dropdown]:!p-0 [&_.ant-pagination-options]:flex [&_.ant-pagination-options]:items-center [&_.ant-pagination-options]:justify-between [&_.ant-pagination-options]:flex-1",
|
|
724
632
|
// selectComponentClass: () => SelectComponentClass({ filters, onChange, pageSize, pagination }),
|
|
725
|
-
itemRender: (
|
|
726
|
-
...
|
|
633
|
+
itemRender: (b, B) => er({ current: C, page: b, type: B, isFa: R.language === "fa" }),
|
|
634
|
+
...l
|
|
727
635
|
};
|
|
728
636
|
return {
|
|
729
|
-
filters,
|
|
730
|
-
current,
|
|
731
|
-
pageSize,
|
|
732
|
-
pagination,
|
|
733
|
-
order,
|
|
734
|
-
orderBy,
|
|
735
|
-
onChange,
|
|
736
|
-
getTotal
|
|
637
|
+
filters: A,
|
|
638
|
+
current: C,
|
|
639
|
+
pageSize: N,
|
|
640
|
+
pagination: k,
|
|
641
|
+
order: T,
|
|
642
|
+
orderBy: P,
|
|
643
|
+
onChange: y,
|
|
644
|
+
getTotal: h
|
|
737
645
|
};
|
|
738
646
|
}
|
|
739
|
-
const
|
|
740
|
-
className,
|
|
741
|
-
children,
|
|
742
|
-
expandable,
|
|
743
|
-
rowSelection,
|
|
744
|
-
size,
|
|
745
|
-
pagination,
|
|
746
|
-
loading,
|
|
747
|
-
transparentHeader,
|
|
748
|
-
internalScroll =
|
|
749
|
-
extraHeight = 100,
|
|
750
|
-
footer,
|
|
751
|
-
theme,
|
|
752
|
-
dndSort,
|
|
753
|
-
components,
|
|
754
|
-
...
|
|
647
|
+
const E = ({
|
|
648
|
+
className: e,
|
|
649
|
+
children: t,
|
|
650
|
+
expandable: n,
|
|
651
|
+
rowSelection: a,
|
|
652
|
+
size: i,
|
|
653
|
+
pagination: l,
|
|
654
|
+
loading: d,
|
|
655
|
+
transparentHeader: g,
|
|
656
|
+
internalScroll: c = !0,
|
|
657
|
+
extraHeight: f = 100,
|
|
658
|
+
footer: w,
|
|
659
|
+
theme: p,
|
|
660
|
+
dndSort: x,
|
|
661
|
+
components: R,
|
|
662
|
+
...C
|
|
755
663
|
}) => {
|
|
756
|
-
const [
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
return;
|
|
761
|
-
}
|
|
762
|
-
setScrollY(
|
|
763
|
-
window.innerHeight - ref.current.offsetTop - 46 - (pagination ? 65 : 0) - extraHeight
|
|
664
|
+
const [T, P] = O(), N = Se(null);
|
|
665
|
+
W(() => {
|
|
666
|
+
N.current && P(
|
|
667
|
+
window.innerHeight - N.current.offsetTop - 46 - (l ? 65 : 0) - f
|
|
764
668
|
);
|
|
765
|
-
}, [
|
|
766
|
-
const
|
|
767
|
-
function
|
|
768
|
-
if (!
|
|
669
|
+
}, [l, p?.components?.Table?.headerBg]);
|
|
670
|
+
const A = V(() => {
|
|
671
|
+
function y(h) {
|
|
672
|
+
if (!h)
|
|
769
673
|
return [];
|
|
770
|
-
|
|
771
|
-
if (typeof _children === "boolean" || typeof _children === "undefined" || _children === null) {
|
|
674
|
+
if (typeof h == "boolean" || typeof h > "u" || h === null)
|
|
772
675
|
return [];
|
|
773
|
-
|
|
774
|
-
if (typeof _children !== "object") {
|
|
676
|
+
if (typeof h != "object")
|
|
775
677
|
throw new Error("Table children must be Column");
|
|
678
|
+
if (!Array.isArray(h)) {
|
|
679
|
+
if (h.type === K)
|
|
680
|
+
return [{
|
|
681
|
+
...h.props,
|
|
682
|
+
child: h
|
|
683
|
+
}];
|
|
684
|
+
if (h.type === ve)
|
|
685
|
+
return y(h.props?.children);
|
|
776
686
|
}
|
|
777
|
-
|
|
778
|
-
if (_children.type === Column) {
|
|
779
|
-
const result = {
|
|
780
|
-
..._children.props,
|
|
781
|
-
child: _children
|
|
782
|
-
};
|
|
783
|
-
return [result];
|
|
784
|
-
}
|
|
785
|
-
if (_children.type === Fragment$1) {
|
|
786
|
-
return getChildren(_children.props?.children);
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
return (_children || [])?.flatMap((child) => {
|
|
790
|
-
return getChildren(child);
|
|
791
|
-
});
|
|
687
|
+
return (h || [])?.flatMap((k) => y(k));
|
|
792
688
|
}
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
const Provider = ({ children: children2 }) => dndSort === void 0 ? /* @__PURE__ */ jsx(Fragment, { children: children2 }) : /* @__PURE__ */ jsx(
|
|
797
|
-
DndSortProvider,
|
|
689
|
+
return y(t);
|
|
690
|
+
}, [t]), $ = ({ children: y }) => x === void 0 ? /* @__PURE__ */ r(F, { children: y }) : /* @__PURE__ */ r(
|
|
691
|
+
Ke,
|
|
798
692
|
{
|
|
799
|
-
children:
|
|
800
|
-
onDragEnd:
|
|
801
|
-
dataSource:
|
|
802
|
-
rowKey:
|
|
693
|
+
children: y,
|
|
694
|
+
onDragEnd: x.onDragEnd,
|
|
695
|
+
dataSource: C.dataSource,
|
|
696
|
+
rowKey: C.rowKey
|
|
803
697
|
}
|
|
804
698
|
);
|
|
805
|
-
return /* @__PURE__ */
|
|
806
|
-
|
|
699
|
+
return /* @__PURE__ */ r(Q, { theme: Je(p), children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ u(
|
|
700
|
+
U,
|
|
807
701
|
{
|
|
808
|
-
ref,
|
|
702
|
+
ref: N,
|
|
809
703
|
loading: {
|
|
810
|
-
indicator: /* @__PURE__ */
|
|
811
|
-
spinning: !!
|
|
704
|
+
indicator: /* @__PURE__ */ r(s, { className: "items-center justify-center", children: /* @__PURE__ */ r(fe, { isLoading: !0, size: 32, thickness: 3 }) }),
|
|
705
|
+
spinning: !!d
|
|
812
706
|
},
|
|
813
|
-
scroll:
|
|
814
|
-
className:
|
|
815
|
-
|
|
707
|
+
scroll: c ? { y: T } : void 0,
|
|
708
|
+
className: S(
|
|
709
|
+
Ye,
|
|
816
710
|
"abrplus-table-custom-scroll-bar w-full !animate-none [&_.ant-table-thead_th]:!pt-2",
|
|
817
|
-
!!
|
|
818
|
-
|
|
819
|
-
|
|
711
|
+
!!n && !!a && "[&_.ant-table-selection-column]:!ps-0",
|
|
712
|
+
g && Ue,
|
|
713
|
+
e
|
|
820
714
|
),
|
|
821
|
-
rowSelection,
|
|
822
|
-
expandable:
|
|
823
|
-
...
|
|
715
|
+
rowSelection: a,
|
|
716
|
+
expandable: n ? {
|
|
717
|
+
...n,
|
|
824
718
|
expandedRowClassName: () => "[&_.ant-table-cell]:!p-0 [&_.ant-table-row-expand-icon-cell]:!p-0 ",
|
|
825
|
-
expandIcon: ({ expandable:
|
|
826
|
-
|
|
719
|
+
expandIcon: ({ expandable: y, expanded: I, onExpand: h, record: k }) => /* @__PURE__ */ r(
|
|
720
|
+
We,
|
|
827
721
|
{
|
|
828
|
-
|
|
829
|
-
|
|
722
|
+
expandable: y,
|
|
723
|
+
expanded: I,
|
|
724
|
+
onExpand: (b) => h?.(k, b)
|
|
830
725
|
}
|
|
831
726
|
)
|
|
832
727
|
} : void 0,
|
|
833
|
-
pagination,
|
|
834
|
-
footer,
|
|
835
|
-
components:
|
|
836
|
-
...
|
|
728
|
+
pagination: l,
|
|
729
|
+
footer: w,
|
|
730
|
+
components: x ? { body: { row: qe } } : R,
|
|
731
|
+
...C,
|
|
837
732
|
children: [
|
|
838
|
-
|
|
839
|
-
|
|
733
|
+
x && /* @__PURE__ */ r(E.Column, { align: "center", width: 80, render: () => /* @__PURE__ */ r(Xe, {}) }, "sort"),
|
|
734
|
+
A.map(
|
|
840
735
|
({
|
|
841
|
-
render,
|
|
842
|
-
children:
|
|
843
|
-
dataIndex,
|
|
844
|
-
align,
|
|
845
|
-
headerStyle,
|
|
846
|
-
headerClassName,
|
|
847
|
-
className:
|
|
848
|
-
filtersOptions,
|
|
849
|
-
sortIconOptions,
|
|
850
|
-
...
|
|
851
|
-
},
|
|
852
|
-
|
|
736
|
+
render: y,
|
|
737
|
+
children: I,
|
|
738
|
+
dataIndex: h,
|
|
739
|
+
align: k,
|
|
740
|
+
headerStyle: b,
|
|
741
|
+
headerClassName: B,
|
|
742
|
+
className: j,
|
|
743
|
+
filtersOptions: D,
|
|
744
|
+
sortIconOptions: J,
|
|
745
|
+
...te
|
|
746
|
+
}, Y) => /* @__PURE__ */ r(
|
|
747
|
+
U.Column,
|
|
853
748
|
{
|
|
854
|
-
...
|
|
855
|
-
dataIndex:
|
|
856
|
-
className:
|
|
857
|
-
title: /* @__PURE__ */
|
|
858
|
-
|
|
749
|
+
...te,
|
|
750
|
+
dataIndex: h?.toString(),
|
|
751
|
+
className: S("h-[56px] [&_.ant-table-column-title]:!flex-1", j),
|
|
752
|
+
title: /* @__PURE__ */ u(
|
|
753
|
+
s,
|
|
859
754
|
{
|
|
860
755
|
className: "ant-table-column-title-content items-center justify-between",
|
|
861
756
|
flex: 1,
|
|
862
757
|
children: [
|
|
863
|
-
/* @__PURE__ */
|
|
864
|
-
|
|
758
|
+
/* @__PURE__ */ r(
|
|
759
|
+
Ve,
|
|
865
760
|
{
|
|
866
|
-
title:
|
|
867
|
-
align,
|
|
868
|
-
style:
|
|
869
|
-
className:
|
|
761
|
+
title: I,
|
|
762
|
+
align: k,
|
|
763
|
+
style: b,
|
|
764
|
+
className: B
|
|
870
765
|
}
|
|
871
766
|
),
|
|
872
|
-
|
|
767
|
+
D?.renderFilter?.()
|
|
873
768
|
]
|
|
874
769
|
}
|
|
875
770
|
),
|
|
876
|
-
render: (
|
|
877
|
-
|
|
771
|
+
render: (M, ne, oe) => /* @__PURE__ */ r(
|
|
772
|
+
s,
|
|
878
773
|
{
|
|
879
|
-
className:
|
|
774
|
+
className: S("items-center", Ze[i || "large"]),
|
|
880
775
|
style: {
|
|
881
776
|
wordWrap: "break-word",
|
|
882
777
|
wordBreak: "break-word",
|
|
883
|
-
paddingInlineEnd:
|
|
778
|
+
paddingInlineEnd: Y === A.length - 1 ? 24 : void 0
|
|
884
779
|
},
|
|
885
|
-
children:
|
|
780
|
+
children: y ? y({ index: oe, row: ne, value: M }) : /* @__PURE__ */ r(z, { children: M })
|
|
886
781
|
}
|
|
887
782
|
),
|
|
888
|
-
showSorterTooltip:
|
|
889
|
-
sortIcon: ({ sortOrder }) =>
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
783
|
+
showSorterTooltip: !1,
|
|
784
|
+
sortIcon: ({ sortOrder: M }) => /* @__PURE__ */ u(
|
|
785
|
+
s,
|
|
786
|
+
{
|
|
787
|
+
vertical: !0,
|
|
788
|
+
...J,
|
|
789
|
+
className: S(
|
|
790
|
+
"table-filters-sort flex-[4] ps-2",
|
|
791
|
+
J?.className
|
|
792
|
+
),
|
|
793
|
+
children: [
|
|
794
|
+
/* @__PURE__ */ r(
|
|
795
|
+
v,
|
|
796
|
+
{
|
|
797
|
+
size: 12,
|
|
798
|
+
color: M === "ascend" ? o.primary : o.primary_light_3,
|
|
799
|
+
name: "Chevron_Up",
|
|
800
|
+
style: { marginBottom: -4 }
|
|
801
|
+
}
|
|
898
802
|
),
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
Icon,
|
|
911
|
-
{
|
|
912
|
-
size: 12,
|
|
913
|
-
color: sortOrder === "descend" ? colors.primary : colors.primary_light_3,
|
|
914
|
-
name: "Chevron_Down"
|
|
915
|
-
}
|
|
916
|
-
)
|
|
917
|
-
]
|
|
918
|
-
}
|
|
919
|
-
);
|
|
920
|
-
}
|
|
803
|
+
/* @__PURE__ */ r(
|
|
804
|
+
v,
|
|
805
|
+
{
|
|
806
|
+
size: 12,
|
|
807
|
+
color: M === "descend" ? o.primary : o.primary_light_3,
|
|
808
|
+
name: "Chevron_Down"
|
|
809
|
+
}
|
|
810
|
+
)
|
|
811
|
+
]
|
|
812
|
+
}
|
|
813
|
+
)
|
|
921
814
|
},
|
|
922
|
-
|
|
815
|
+
Y
|
|
923
816
|
)
|
|
924
817
|
)
|
|
925
818
|
]
|
|
926
819
|
}
|
|
927
820
|
) }) });
|
|
928
821
|
};
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
822
|
+
E.Cell = z;
|
|
823
|
+
E.Column = K;
|
|
824
|
+
E.Currency = z.Currency;
|
|
825
|
+
E.Date = z.Date;
|
|
826
|
+
E.Status = z.StatusCell;
|
|
827
|
+
E.usePagination = or;
|
|
935
828
|
export {
|
|
936
|
-
AvatarGroup,
|
|
937
|
-
Drawer,
|
|
938
|
-
Modal,
|
|
939
|
-
Table
|
|
829
|
+
br as AvatarGroup,
|
|
830
|
+
wr as Drawer,
|
|
831
|
+
Cr as Modal,
|
|
832
|
+
E as Table
|
|
940
833
|
};
|