@ahoo-wang/fetcher-viewer 3.12.15 → 3.12.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsx as c, jsxs as
|
|
1
|
+
var An = Object.defineProperty;
|
|
2
|
+
var r = (t, e) => An(t, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { jsx as c, jsxs as Q, Fragment as Ee } from "react/jsx-runtime";
|
|
4
4
|
import { c as j } from "react/compiler-runtime";
|
|
5
|
-
import { Select as st, InputNumber as nt, Space as Se, Input as qe, Flex as pe, Spin as _t, Empty as lt, Button as Te, Row as St, Col as yt, Checkbox as Xt, Divider as Be, Modal as ot, theme as
|
|
6
|
-
import Zt, { useState as
|
|
7
|
-
import { useDebouncedExecutePromise as
|
|
8
|
-
import { FullscreenOutlined as Wn, FullscreenExitOutlined as Kn, MinusOutlined as Gn, ClearOutlined as jn, SearchOutlined as qn, PlusOutlined as
|
|
9
|
-
import { ContentTypeValues as
|
|
10
|
-
import { post as
|
|
11
|
-
import { JsonEventStreamResultExtractor as
|
|
12
|
-
import { ResourceAttributionPathSpec as
|
|
13
|
-
import { SerialTypedEventBus as
|
|
14
|
-
import { KeyStorage as
|
|
15
|
-
const
|
|
5
|
+
import { Select as st, InputNumber as nt, Space as Se, Input as qe, Flex as pe, Spin as _t, Empty as lt, Button as Te, Row as St, Col as yt, Checkbox as Xt, Divider as Be, Modal as ot, theme as bn, Typography as Me, DatePicker as mt, Alert as Rn, Dropdown as xe, Avatar as ht, Tag as bt, Image as Ct, Badge as On, Table as Dn, Popover as wn, Tooltip as ct, message as Fn, Pagination as Pn, Collapse as xn, Radio as $n, Form as Tt, Popconfirm as kn, Layout as vt } from "antd";
|
|
6
|
+
import Zt, { useState as X, useEffect as Le, useRef as Re, useImperativeHandle as Ae, useCallback as Vn, createElement as wt } from "react";
|
|
7
|
+
import { useDebouncedExecutePromise as Mn, useFullscreen as Hn, useSingleQuery as Un, useFetcherListQuery as zn, useFetcherPagedQuery as gn, useKeyStorage as Bn, useRefs as Yn } from "@ahoo-wang/fetcher-react";
|
|
8
|
+
import { FullscreenOutlined as Wn, FullscreenExitOutlined as Kn, MinusOutlined as Gn, ClearOutlined as jn, SearchOutlined as qn, PlusOutlined as Jt, DownOutlined as We, DragOutlined as en, SettingOutlined as tn, ColumnHeightOutlined as Qn, FilterOutlined as Xn, ReloadOutlined as Zn, LinkOutlined as Jn, ExclamationCircleOutlined as el, MenuUnfoldOutlined as tl, MenuFoldOutlined as nl, EditOutlined as ll, DeleteOutlined as il } from "@ant-design/icons";
|
|
9
|
+
import { ContentTypeValues as al, fetcherRegistrar as rl, TextResultExtractor as sl } from "@ahoo-wang/fetcher";
|
|
10
|
+
import { post as ol, path as Ge, request as ut, attribute as ft, del as cl, put as nn, api as ln, autoGeneratedError as Qe } from "@ahoo-wang/fetcher-decorator";
|
|
11
|
+
import { JsonEventStreamResultExtractor as ul } from "@ahoo-wang/fetcher-eventstream";
|
|
12
|
+
import { ResourceAttributionPathSpec as an, QueryClientFactory as rn, aggregateId as fl, listQuery as dl, and as it, eq as Ft, isIn as Pt, all as Ve, EMPTY_VALUE_OPERATORS as ml, Operator as B } from "@ahoo-wang/fetcher-wow";
|
|
13
|
+
import { SerialTypedEventBus as hl, BroadcastTypedEventBus as Tl } from "@ahoo-wang/fetcher-eventbus";
|
|
14
|
+
import { KeyStorage as El } from "@ahoo-wang/fetcher-storage";
|
|
15
|
+
const _l = {
|
|
16
16
|
serialize(t) {
|
|
17
17
|
return t;
|
|
18
18
|
},
|
|
19
19
|
deserialize(t) {
|
|
20
20
|
return t;
|
|
21
21
|
}
|
|
22
|
-
},
|
|
22
|
+
}, Sl = {
|
|
23
23
|
serialize(t) {
|
|
24
24
|
return t.map((e) => e.toString());
|
|
25
25
|
},
|
|
26
26
|
deserialize(t) {
|
|
27
27
|
return t.map((e) => parseFloat(e));
|
|
28
28
|
}
|
|
29
|
-
},
|
|
29
|
+
}, yl = [",", ",", ";", ";", " "];
|
|
30
30
|
function dt(t) {
|
|
31
31
|
const e = j(22);
|
|
32
|
-
let l, n, i,
|
|
32
|
+
let l, n, i, a, s, o;
|
|
33
33
|
e[0] !== t ? ({
|
|
34
34
|
tokenSeparators: i,
|
|
35
|
-
allowClear:
|
|
35
|
+
allowClear: a,
|
|
36
36
|
serializer: s,
|
|
37
37
|
value: o,
|
|
38
38
|
onChange: l,
|
|
39
39
|
...n
|
|
40
|
-
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = i, e[4] =
|
|
41
|
-
const u = i === void 0 ?
|
|
40
|
+
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = i, e[4] = a, e[5] = s, e[6] = o) : (l = e[1], n = e[2], i = e[3], a = e[4], s = e[5], o = e[6]);
|
|
41
|
+
const u = i === void 0 ? yl : i, d = a === void 0 ? !0 : a, f = s === void 0 ? _l : s;
|
|
42
42
|
let m;
|
|
43
|
-
e[7] !== l || e[8] !== f ? (m = /* @__PURE__ */
|
|
43
|
+
e[7] !== l || e[8] !== f ? (m = /* @__PURE__ */ r((y) => {
|
|
44
44
|
if (!l)
|
|
45
45
|
return;
|
|
46
46
|
const R = f.deserialize(y);
|
|
@@ -59,29 +59,29 @@ function dt(t) {
|
|
|
59
59
|
let S;
|
|
60
60
|
return e[16] !== d || e[17] !== h || e[18] !== n || e[19] !== T || e[20] !== u ? (S = /* @__PURE__ */ c(st, { ...n, mode: "tags", open: !1, suffixIcon: null, allowClear: d, tokenSeparators: u, value: T, onChange: h }), e[16] = d, e[17] = h, e[18] = n, e[19] = T, e[20] = u, e[21] = S) : S = e[21], S;
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
r(dt, "TagInput");
|
|
63
63
|
dt.displayName = "TagInput";
|
|
64
|
-
const xt = /* @__PURE__ */
|
|
65
|
-
function
|
|
64
|
+
const xt = /* @__PURE__ */ r((t) => Array.isArray(t) ? t : [t, void 0], "convertToRangeValue"), Et = ["最小值", "最大值"];
|
|
65
|
+
function Cl(t) {
|
|
66
66
|
const e = j(35), l = t.value !== void 0;
|
|
67
67
|
let n;
|
|
68
68
|
e[0] !== t.defaultValue ? (n = xt(t.defaultValue), e[0] = t.defaultValue, e[1] = n) : n = e[1];
|
|
69
|
-
const [i,
|
|
69
|
+
const [i, a] = X(n);
|
|
70
70
|
let s;
|
|
71
71
|
e[2] !== i || e[3] !== l || e[4] !== t.value ? (s = l ? xt(t.value) : i, e[2] = i, e[3] = l, e[4] = t.value, e[5] = s) : s = e[5];
|
|
72
72
|
const o = s, [u, d] = o;
|
|
73
73
|
let f;
|
|
74
|
-
e[6] !== l || e[7] !== t ? (f = /* @__PURE__ */
|
|
75
|
-
l ||
|
|
74
|
+
e[6] !== l || e[7] !== t ? (f = /* @__PURE__ */ r((k) => {
|
|
75
|
+
l || a(k), t.onChange?.(k);
|
|
76
76
|
}, "t2"), e[6] = l, e[7] = t, e[8] = f) : f = e[8];
|
|
77
77
|
const m = f;
|
|
78
78
|
let h;
|
|
79
|
-
e[9] !== d || e[10] !== m ? (h = /* @__PURE__ */
|
|
79
|
+
e[9] !== d || e[10] !== m ? (h = /* @__PURE__ */ r((k) => {
|
|
80
80
|
m([k ?? void 0, d]);
|
|
81
81
|
}, "t3"), e[9] = d, e[10] = m, e[11] = h) : h = e[11];
|
|
82
82
|
const T = h;
|
|
83
83
|
let S;
|
|
84
|
-
e[12] !== m || e[13] !== u ? (S = /* @__PURE__ */
|
|
84
|
+
e[12] !== m || e[13] !== u ? (S = /* @__PURE__ */ r((k) => {
|
|
85
85
|
m([u, k ?? void 0]);
|
|
86
86
|
}, "t4"), e[12] = m, e[13] = u, e[14] = S) : S = e[14];
|
|
87
87
|
const y = S, R = d !== void 0 ? d : t.max, w = u !== void 0 ? u : t.min;
|
|
@@ -100,38 +100,38 @@ function Sl(t) {
|
|
|
100
100
|
let F;
|
|
101
101
|
e[25] !== d || e[26] !== w || e[27] !== y || e[28] !== O[1] || e[29] !== t.max || e[30] !== t.precision ? (F = /* @__PURE__ */ c(nt, { value: d, min: w, max: t.max, precision: t.precision, placeholder: O[1], onChange: y }), e[25] = d, e[26] = w, e[27] = y, e[28] = O[1], e[29] = t.max, e[30] = t.precision, e[31] = F) : F = e[31];
|
|
102
102
|
let $;
|
|
103
|
-
return e[32] !== P || e[33] !== F ? ($ = /* @__PURE__ */
|
|
103
|
+
return e[32] !== P || e[33] !== F ? ($ = /* @__PURE__ */ Q(Se.Compact, { block: !0, children: [
|
|
104
104
|
P,
|
|
105
105
|
D,
|
|
106
106
|
F
|
|
107
107
|
] }), e[32] = P, e[33] = F, e[34] = $) : $ = e[34], $;
|
|
108
108
|
}
|
|
109
|
-
|
|
110
|
-
const
|
|
109
|
+
r(Cl, "NumberRange");
|
|
110
|
+
const vl = {
|
|
111
111
|
delay: 300,
|
|
112
112
|
leading: !1,
|
|
113
113
|
trailing: !0
|
|
114
|
-
},
|
|
115
|
-
function
|
|
114
|
+
}, Il = [], Nl = [];
|
|
115
|
+
function pl(t, e) {
|
|
116
116
|
const l = /* @__PURE__ */ new Set();
|
|
117
117
|
return t.filter((n) => {
|
|
118
118
|
const i = e(n);
|
|
119
119
|
return l.has(i) ? !1 : (l.add(i), !0);
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
-
|
|
123
|
-
function
|
|
122
|
+
r(pl, "uniqueBy");
|
|
123
|
+
function Ll(t) {
|
|
124
124
|
const e = j(32);
|
|
125
|
-
let l, n, i,
|
|
125
|
+
let l, n, i, a, s, o;
|
|
126
126
|
e[0] !== t ? ({
|
|
127
127
|
debounce: i,
|
|
128
128
|
search: l,
|
|
129
|
-
options:
|
|
129
|
+
options: a,
|
|
130
130
|
uniqueKey: s,
|
|
131
131
|
additionalOptions: o,
|
|
132
132
|
...n
|
|
133
|
-
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = i, e[4] =
|
|
134
|
-
const u = i === void 0 ?
|
|
133
|
+
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = i, e[4] = a, e[5] = s, e[6] = o) : (l = e[1], n = e[2], i = e[3], a = e[4], s = e[5], o = e[6]);
|
|
134
|
+
const u = i === void 0 ? vl : i, d = a === void 0 ? Il : a, f = s === void 0 ? "value" : s, m = o === void 0 ? Nl : o;
|
|
135
135
|
let h;
|
|
136
136
|
e[7] !== u ? (h = {
|
|
137
137
|
debounce: u
|
|
@@ -140,9 +140,9 @@ function Nl(t) {
|
|
|
140
140
|
loading: T,
|
|
141
141
|
result: S,
|
|
142
142
|
run: y
|
|
143
|
-
} =
|
|
143
|
+
} = Mn(h);
|
|
144
144
|
let R;
|
|
145
|
-
e[9] !== S || e[10] !== y || e[11] !== l ? (R = /* @__PURE__ */
|
|
145
|
+
e[9] !== S || e[10] !== y || e[11] !== l ? (R = /* @__PURE__ */ r((M) => {
|
|
146
146
|
M.trim() === "" && S || y(() => l(M));
|
|
147
147
|
}, "t5"), e[9] = S, e[10] = y, e[11] = l, e[12] = R) : R = e[12];
|
|
148
148
|
const w = R, A = S ?? d;
|
|
@@ -150,7 +150,7 @@ function Nl(t) {
|
|
|
150
150
|
if (e[13] !== m || e[14] !== A || e[15] !== f) {
|
|
151
151
|
const M = [...A, ...m];
|
|
152
152
|
let x;
|
|
153
|
-
e[17] !== f ? (x = /* @__PURE__ */
|
|
153
|
+
e[17] !== f ? (x = /* @__PURE__ */ r((L) => L[f], "t82"), e[17] = f, e[18] = x) : x = e[18], O = pl(M, x), e[13] = m, e[14] = A, e[15] = f, e[16] = O;
|
|
154
154
|
} else
|
|
155
155
|
O = e[16];
|
|
156
156
|
const P = O;
|
|
@@ -160,7 +160,7 @@ function Nl(t) {
|
|
|
160
160
|
onSearch: w
|
|
161
161
|
}, e[19] = w, e[20] = D) : D = e[20];
|
|
162
162
|
let F;
|
|
163
|
-
e[21] !== T ? (F = T ? /* @__PURE__ */
|
|
163
|
+
e[21] !== T ? (F = T ? /* @__PURE__ */ Q(pe, { align: "center", gap: 4, children: [
|
|
164
164
|
/* @__PURE__ */ c(_t, { size: "small", styles: {
|
|
165
165
|
indicator: {
|
|
166
166
|
color: "rgba(0, 0, 0, 0.25)"
|
|
@@ -173,38 +173,38 @@ function Nl(t) {
|
|
|
173
173
|
let k;
|
|
174
174
|
return e[26] !== T || e[27] !== n || e[28] !== $ || e[29] !== D || e[30] !== F ? (k = /* @__PURE__ */ c(st, { showSearch: D, loading: T, notFoundContent: F, options: $, ...n }), e[26] = T, e[27] = n, e[28] = $, e[29] = D, e[30] = F, e[31] = k) : k = e[31], k;
|
|
175
175
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
function
|
|
176
|
+
r(Ll, "RemoteSelect");
|
|
177
|
+
Ll.displayName = "RemoteSelect";
|
|
178
|
+
function Al(t) {
|
|
179
179
|
const {
|
|
180
180
|
target: e,
|
|
181
181
|
onChange: l,
|
|
182
182
|
enterIcon: n = /* @__PURE__ */ c(Wn, {}),
|
|
183
183
|
exitIcon: i = /* @__PURE__ */ c(Kn, {}),
|
|
184
|
-
...
|
|
184
|
+
...a
|
|
185
185
|
} = t, {
|
|
186
186
|
isFullscreen: s,
|
|
187
187
|
toggle: o
|
|
188
|
-
} =
|
|
188
|
+
} = Hn({
|
|
189
189
|
target: e,
|
|
190
190
|
onChange: l
|
|
191
191
|
});
|
|
192
|
-
return /* @__PURE__ */ c(Te, { ...
|
|
192
|
+
return /* @__PURE__ */ c(Te, { ...a, icon: s ? i : n, onClick: o });
|
|
193
193
|
}
|
|
194
|
-
|
|
195
|
-
|
|
194
|
+
r(Al, "Fullscreen");
|
|
195
|
+
Al.displayName = "FullScreen";
|
|
196
196
|
const Rt = "viewer";
|
|
197
|
-
var
|
|
198
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
199
|
-
(s = t[
|
|
200
|
-
return n && i &&
|
|
201
|
-
}, "__decorateClass"), ve = /* @__PURE__ */
|
|
202
|
-
const
|
|
197
|
+
var bl = Object.defineProperty, Rl = Object.getOwnPropertyDescriptor, He = /* @__PURE__ */ r((t, e, l, n) => {
|
|
198
|
+
for (var i = n > 1 ? void 0 : n ? Rl(e, l) : e, a = t.length - 1, s; a >= 0; a--)
|
|
199
|
+
(s = t[a]) && (i = (n ? s(e, l, i) : s(i)) || i);
|
|
200
|
+
return n && i && bl(e, l, i), i;
|
|
201
|
+
}, "__decorateClass"), ve = /* @__PURE__ */ r((t, e) => (l, n) => e(l, n, t), "__decorateParam"), Ol = /* @__PURE__ */ ((t) => (t.CREATE_VIEW = "/tenant/{tenantId}/owner/{ownerId}/view/type/{type}", t.DEFAULT_DELETE_AGGREGATE = "/tenant/{tenantId}/owner/{ownerId}/view/{id}", t.DEFAULT_RECOVER_AGGREGATE = "/tenant/{tenantId}/owner/{ownerId}/view/{id}/recover", t.EDIT_VIEW = "/tenant/{tenantId}/owner/{ownerId}/view/{id}/type/{type}", t))(Ol || {});
|
|
202
|
+
const sn = {
|
|
203
203
|
basePath: Rt
|
|
204
204
|
};
|
|
205
205
|
var $e;
|
|
206
206
|
let Oe = ($e = class {
|
|
207
|
-
constructor(e =
|
|
207
|
+
constructor(e = sn) {
|
|
208
208
|
this.apiMetadata = e;
|
|
209
209
|
}
|
|
210
210
|
createView(e, l, n) {
|
|
@@ -219,9 +219,9 @@ let Oe = ($e = class {
|
|
|
219
219
|
editView(e, l, n, i) {
|
|
220
220
|
throw Qe(e, l, n, i);
|
|
221
221
|
}
|
|
222
|
-
},
|
|
222
|
+
}, r($e, "ViewCommandClient"), $e);
|
|
223
223
|
He([
|
|
224
|
-
|
|
224
|
+
ol(
|
|
225
225
|
"/tenant/{tenantId}/owner/{ownerId}/view/type/{type}"
|
|
226
226
|
/* CREATE_VIEW */
|
|
227
227
|
),
|
|
@@ -230,7 +230,7 @@ He([
|
|
|
230
230
|
ve(2, ft())
|
|
231
231
|
], Oe.prototype, "createView", 1);
|
|
232
232
|
He([
|
|
233
|
-
|
|
233
|
+
cl(
|
|
234
234
|
"/tenant/{tenantId}/owner/{ownerId}/view/{id}"
|
|
235
235
|
/* DEFAULT_DELETE_AGGREGATE */
|
|
236
236
|
),
|
|
@@ -239,7 +239,7 @@ He([
|
|
|
239
239
|
ve(2, ft())
|
|
240
240
|
], Oe.prototype, "defaultDeleteAggregate", 1);
|
|
241
241
|
He([
|
|
242
|
-
|
|
242
|
+
nn(
|
|
243
243
|
"/tenant/{tenantId}/owner/{ownerId}/view/{id}/recover"
|
|
244
244
|
/* DEFAULT_RECOVER_AGGREGATE */
|
|
245
245
|
),
|
|
@@ -248,7 +248,7 @@ He([
|
|
|
248
248
|
ve(2, ft())
|
|
249
249
|
], Oe.prototype, "defaultRecoverAggregate", 1);
|
|
250
250
|
He([
|
|
251
|
-
|
|
251
|
+
nn(
|
|
252
252
|
"/tenant/{tenantId}/owner/{ownerId}/view/{id}/type/{type}"
|
|
253
253
|
/* EDIT_VIEW */
|
|
254
254
|
),
|
|
@@ -258,62 +258,53 @@ He([
|
|
|
258
258
|
ve(3, ft())
|
|
259
259
|
], Oe.prototype, "editView", 1);
|
|
260
260
|
Oe = He([
|
|
261
|
-
|
|
261
|
+
ln()
|
|
262
262
|
], Oe);
|
|
263
263
|
var ke;
|
|
264
264
|
let $t = (ke = class extends Oe {
|
|
265
|
-
constructor(e =
|
|
265
|
+
constructor(e = sn) {
|
|
266
266
|
super(e);
|
|
267
267
|
}
|
|
268
|
-
},
|
|
268
|
+
}, r(ke, "ViewStreamCommandClient"), ke);
|
|
269
269
|
$t = He([
|
|
270
|
-
|
|
271
|
-
headers: { Accept:
|
|
272
|
-
resultExtractor:
|
|
270
|
+
ln("", {
|
|
271
|
+
headers: { Accept: al.TEXT_EVENT_STREAM },
|
|
272
|
+
resultExtractor: ul
|
|
273
273
|
})
|
|
274
274
|
], $t);
|
|
275
|
-
const
|
|
275
|
+
const Dl = {
|
|
276
276
|
contextAlias: Rt,
|
|
277
277
|
aggregateName: "view",
|
|
278
|
-
resourceAttribution:
|
|
278
|
+
resourceAttribution: an.TENANT
|
|
279
279
|
};
|
|
280
|
-
var
|
|
281
|
-
const
|
|
280
|
+
var wl = /* @__PURE__ */ ((t) => (t.view_created = "视图已创建", t.view_edited = "视图已修改", t))(wl || {});
|
|
281
|
+
const zr = new rn(Dl);
|
|
282
282
|
var Ye = /* @__PURE__ */ ((t) => (t.AGGREGATE_ID = "aggregateId", t.TENANT_ID = "tenantId", t.OWNER_ID = "ownerId", t.VERSION = "version", t.EVENT_ID = "eventId", t.FIRST_OPERATOR = "firstOperator", t.OPERATOR = "operator", t.FIRST_EVENT_TIME = "firstEventTime", t.EVENT_TIME = "eventTime", t.DELETED = "deleted", t.STATE = "state", t.STATE_COLUMNS = "state.columns", t.STATE_COLUMNS_FIXED = "state.columns.fixed", t.STATE_COLUMNS_HIDDEN = "state.columns.hidden", t.STATE_COLUMNS_NAME = "state.columns.name", t.STATE_COLUMNS_SORT_ORDER = "state.columns.sortOrder", t.STATE_COLUMNS_WIDTH = "state.columns.width", t.STATE_CONDITION = "state.condition", t.STATE_CONDITION_CHILDREN = "state.condition.children", t.STATE_CONDITION_CHILDREN_CHILDREN = "state.condition.children.children", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN = "state.condition.children.children.children", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN_CHILDREN = "state.condition.children.children.children.children", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN_FIELD = "state.condition.children.children.children.field", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN_OPERATOR = "state.condition.children.children.children.operator", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN_OPTIONS = "state.condition.children.children.children.options", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN_VALUE = "state.condition.children.children.children.value", t.STATE_CONDITION_CHILDREN_CHILDREN_FIELD = "state.condition.children.children.field", t.STATE_CONDITION_CHILDREN_CHILDREN_OPERATOR = "state.condition.children.children.operator", t.STATE_CONDITION_CHILDREN_CHILDREN_OPTIONS = "state.condition.children.children.options", t.STATE_CONDITION_CHILDREN_CHILDREN_VALUE = "state.condition.children.children.value", t.STATE_CONDITION_CHILDREN_FIELD = "state.condition.children.field", t.STATE_CONDITION_CHILDREN_OPERATOR = "state.condition.children.operator", t.STATE_CONDITION_CHILDREN_OPTIONS = "state.condition.children.options", t.STATE_CONDITION_CHILDREN_VALUE = "state.condition.children.value", t.STATE_CONDITION_FIELD = "state.condition.field", t.STATE_CONDITION_OPERATOR = "state.condition.operator", t.STATE_CONDITION_OPTIONS = "state.condition.options", t.STATE_CONDITION_VALUE = "state.condition.value", t.STATE_DEFINITION_ID = "state.definitionId", t.STATE_FILTERS = "state.filters", t.STATE_FILTERS_CONDITION_OPTIONS = "state.filters.conditionOptions", t.STATE_FILTERS_FIELD = "state.filters.field", t.STATE_FILTERS_FIELD_FORMAT = "state.filters.field.format", t.STATE_FILTERS_FIELD_LABEL = "state.filters.field.label", t.STATE_FILTERS_FIELD_NAME = "state.filters.field.name", t.STATE_FILTERS_FIELD_TYPE = "state.filters.field.type", t.STATE_FILTERS_KEY = "state.filters.key", t.STATE_FILTERS_LABEL = "state.filters.label", t.STATE_FILTERS_LABEL_CLASS_NAME = "state.filters.label.className", t.STATE_FILTERS_LABEL_STYLE = "state.filters.label.style", t.STATE_FILTERS_OPERATOR = "state.filters.operator", t.STATE_FILTERS_OPERATOR_DEFAULT_OPERATOR = "state.filters.operator.defaultOperator", t.STATE_FILTERS_OPERATOR_LOCALE = "state.filters.operator.locale", t.STATE_FILTERS_OPERATOR_SUPPORTED_OPERATORS = "state.filters.operator.supportedOperators", t.STATE_FILTERS_TYPE = "state.filters.type", t.STATE_FILTERS_VALUE = "state.filters.value", t.STATE_FILTERS_VALUE_CLASS_NAME = "state.filters.value.className", t.STATE_FILTERS_VALUE_DEFAULT_VALUE = "state.filters.value.defaultValue", t.STATE_FILTERS_VALUE_PLACEHOLDER = "state.filters.value.placeholder", t.STATE_FILTERS_VALUE_STYLE = "state.filters.value.style", t.STATE_ID = "state.id", t.STATE_INTERNAL_CONDITION = "state.internalCondition", t.STATE_INTERNAL_CONDITION_CHILDREN = "state.internalCondition.children", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN = "state.internalCondition.children.children", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN = "state.internalCondition.children.children.children", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN_CHILDREN = "state.internalCondition.children.children.children.children", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN_FIELD = "state.internalCondition.children.children.children.field", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN_OPERATOR = "state.internalCondition.children.children.children.operator", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN_OPTIONS = "state.internalCondition.children.children.children.options", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN_VALUE = "state.internalCondition.children.children.children.value", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_FIELD = "state.internalCondition.children.children.field", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_OPERATOR = "state.internalCondition.children.children.operator", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_OPTIONS = "state.internalCondition.children.children.options", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_VALUE = "state.internalCondition.children.children.value", t.STATE_INTERNAL_CONDITION_CHILDREN_FIELD = "state.internalCondition.children.field", t.STATE_INTERNAL_CONDITION_CHILDREN_OPERATOR = "state.internalCondition.children.operator", t.STATE_INTERNAL_CONDITION_CHILDREN_OPTIONS = "state.internalCondition.children.options", t.STATE_INTERNAL_CONDITION_CHILDREN_VALUE = "state.internalCondition.children.value", t.STATE_INTERNAL_CONDITION_FIELD = "state.internalCondition.field", t.STATE_INTERNAL_CONDITION_OPERATOR = "state.internalCondition.operator", t.STATE_INTERNAL_CONDITION_OPTIONS = "state.internalCondition.options", t.STATE_INTERNAL_CONDITION_VALUE = "state.internalCondition.value", t.STATE_IS_DEFAULT = "state.isDefault", t.STATE_NAME = "state.name", t.STATE_PAGE_SIZE = "state.pageSize", t.STATE_SORTER = "state.sorter", t.STATE_SORTER_COLUMN_KEY = "state.sorter.columnKey", t.STATE_SORTER_FIELD = "state.sorter.field", t.STATE_SORTER_ORDER = "state.sorter.order", t.STATE_SOURCE = "state.source", t.STATE_TABLE_SIZE = "state.tableSize", t.STATE_TYPE = "state.type", t))(Ye || {});
|
|
283
|
-
const
|
|
283
|
+
const Fl = {
|
|
284
284
|
contextAlias: Rt,
|
|
285
285
|
aggregateName: "viewer_definition",
|
|
286
|
-
resourceAttribution:
|
|
286
|
+
resourceAttribution: an.NONE
|
|
287
287
|
};
|
|
288
|
-
var
|
|
289
|
-
const
|
|
290
|
-
var
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
fetcher: m
|
|
299
|
-
}).getStateById(t, {}, f).then((T) => {
|
|
300
|
-
f.signal.aborted || (l(T), i(!1));
|
|
301
|
-
}).catch((T) => {
|
|
302
|
-
f.signal.aborted || (s(T), i(!1));
|
|
303
|
-
}), () => {
|
|
304
|
-
f.abort();
|
|
305
|
-
};
|
|
306
|
-
}, [t, o]), { viewerDefinition: e, loading: n, error: r, refetch: d };
|
|
288
|
+
var Pl = /* @__PURE__ */ ((t) => (t.viewer_definition_saved = "viewer_definition_saved", t))(Pl || {});
|
|
289
|
+
const xl = new rn(Fl);
|
|
290
|
+
var $l = /* @__PURE__ */ ((t) => (t.AGGREGATE_ID = "aggregateId", t.TENANT_ID = "tenantId", t.OWNER_ID = "ownerId", t.VERSION = "version", t.EVENT_ID = "eventId", t.FIRST_OPERATOR = "firstOperator", t.OPERATOR = "operator", t.FIRST_EVENT_TIME = "firstEventTime", t.EVENT_TIME = "eventTime", t.DELETED = "deleted", t.STATE = "state", t.STATE_AVAILABLE_FILTERS = "state.availableFilters", t.STATE_AVAILABLE_FILTERS_FILTERS = "state.availableFilters.filters", t.STATE_AVAILABLE_FILTERS_FILTERS_COMPONENT = "state.availableFilters.filters.component", t.STATE_AVAILABLE_FILTERS_FILTERS_FIELD = "state.availableFilters.filters.field", t.STATE_AVAILABLE_FILTERS_FILTERS_FIELD_FORMAT = "state.availableFilters.filters.field.format", t.STATE_AVAILABLE_FILTERS_FILTERS_FIELD_LABEL = "state.availableFilters.filters.field.label", t.STATE_AVAILABLE_FILTERS_FILTERS_FIELD_NAME = "state.availableFilters.filters.field.name", t.STATE_AVAILABLE_FILTERS_FILTERS_FIELD_TYPE = "state.availableFilters.filters.field.type", t.STATE_AVAILABLE_FILTERS_FILTERS_OPERATOR = "state.availableFilters.filters.operator", t.STATE_AVAILABLE_FILTERS_FILTERS_OPERATOR_DEFAULT_OPERATOR = "state.availableFilters.filters.operator.defaultOperator", t.STATE_AVAILABLE_FILTERS_FILTERS_OPERATOR_LOCALE = "state.availableFilters.filters.operator.locale", t.STATE_AVAILABLE_FILTERS_FILTERS_OPERATOR_SUPPORTED_OPERATORS = "state.availableFilters.filters.operator.supportedOperators", t.STATE_AVAILABLE_FILTERS_FILTERS_VALUE = "state.availableFilters.filters.value", t.STATE_AVAILABLE_FILTERS_FILTERS_VALUE_CLASS_NAME = "state.availableFilters.filters.value.className", t.STATE_AVAILABLE_FILTERS_FILTERS_VALUE_DEFAULT_VALUE = "state.availableFilters.filters.value.defaultValue", t.STATE_AVAILABLE_FILTERS_FILTERS_VALUE_PLACEHOLDER = "state.availableFilters.filters.value.placeholder", t.STATE_AVAILABLE_FILTERS_FILTERS_VALUE_STYLE = "state.availableFilters.filters.value.style", t.STATE_AVAILABLE_FILTERS_LABEL = "state.availableFilters.label", t.STATE_CHECKABLE = "state.checkable", t.STATE_COUNT_URL = "state.countUrl", t.STATE_DATA_URL = "state.dataUrl", t.STATE_FIELDS = "state.fields", t.STATE_FIELDS_ATTRIBUTES = "state.fields.attributes", t.STATE_FIELDS_LABEL = "state.fields.label", t.STATE_FIELDS_NAME = "state.fields.name", t.STATE_FIELDS_PRIMARY_KEY = "state.fields.primaryKey", t.STATE_FIELDS_SORTER = "state.fields.sorter", t.STATE_FIELDS_SORTER_MULTIPLE = "state.fields.sorter.multiple", t.STATE_ID = "state.id", t.STATE_NAME = "state.name", t))($l || {});
|
|
291
|
+
const kl = xl.createSnapshotQueryClient();
|
|
292
|
+
function Vl(t) {
|
|
293
|
+
const { result: e, loading: l, error: n } = Un({
|
|
294
|
+
initialQuery: { condition: fl(t) },
|
|
295
|
+
execute: /* @__PURE__ */ r((i) => kl.singleState(i), "execute")
|
|
296
|
+
});
|
|
297
|
+
return { viewerDefinition: e, loading: l, error: n };
|
|
307
298
|
}
|
|
308
|
-
|
|
309
|
-
function
|
|
299
|
+
r(Vl, "useViewerDefinition");
|
|
300
|
+
function Ml(t, e, l) {
|
|
310
301
|
const {
|
|
311
302
|
loading: n,
|
|
312
303
|
result: i,
|
|
313
|
-
error:
|
|
304
|
+
error: a
|
|
314
305
|
} = zn({
|
|
315
306
|
url: "/viewer/view/snapshot/list/state",
|
|
316
|
-
initialQuery:
|
|
307
|
+
initialQuery: dl({
|
|
317
308
|
condition: it(
|
|
318
309
|
Ft(Ye.DELETED, !1),
|
|
319
310
|
Pt(Ye.TENANT_ID, "(0)", e),
|
|
@@ -324,11 +315,11 @@ function $l(t, e, l) {
|
|
|
324
315
|
}),
|
|
325
316
|
autoExecute: !0
|
|
326
317
|
});
|
|
327
|
-
return { views: i, loading: n, error:
|
|
318
|
+
return { views: i, loading: n, error: a };
|
|
328
319
|
}
|
|
329
|
-
|
|
330
|
-
function
|
|
331
|
-
const { viewerDefinition: e, defaultView: l } = t, { result: n, loading: i, error:
|
|
320
|
+
r(Ml, "useViewerViews");
|
|
321
|
+
function Hl(t) {
|
|
322
|
+
const { viewerDefinition: e, defaultView: l } = t, { result: n, loading: i, error: a, setQuery: s, execute: o } = gn({
|
|
332
323
|
url: e?.dataUrl || "",
|
|
333
324
|
autoExecute: !0
|
|
334
325
|
});
|
|
@@ -344,7 +335,7 @@ function kl(t) {
|
|
|
344
335
|
}, [e, l, s]), {
|
|
345
336
|
dataSource: n,
|
|
346
337
|
loading: i,
|
|
347
|
-
setQuery: /* @__PURE__ */
|
|
338
|
+
setQuery: /* @__PURE__ */ r((d, f, m, h) => {
|
|
348
339
|
s({
|
|
349
340
|
condition: l?.internalCondition ? it(l.internalCondition, d) : d,
|
|
350
341
|
pagination: {
|
|
@@ -354,13 +345,13 @@ function kl(t) {
|
|
|
354
345
|
sort: h
|
|
355
346
|
});
|
|
356
347
|
}, "setQueryFn"),
|
|
357
|
-
error:
|
|
348
|
+
error: a,
|
|
358
349
|
reload: o
|
|
359
350
|
};
|
|
360
351
|
}
|
|
361
|
-
|
|
352
|
+
r(Hl, "useFetchData");
|
|
362
353
|
const Ot = new Oe();
|
|
363
|
-
function
|
|
354
|
+
function gr(t) {
|
|
364
355
|
const e = j(44);
|
|
365
356
|
let l, n, i;
|
|
366
357
|
e[0] !== t ? ({
|
|
@@ -368,7 +359,7 @@ function Ha(t) {
|
|
|
368
359
|
tenantId: i,
|
|
369
360
|
...l
|
|
370
361
|
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = i) : (l = e[1], n = e[2], i = e[3]);
|
|
371
|
-
const
|
|
362
|
+
const a = n === void 0 ? "(0)" : n, s = i === void 0 ? "(0)" : i, {
|
|
372
363
|
ref: o,
|
|
373
364
|
viewerDefinitionId: u,
|
|
374
365
|
defaultViewId: d,
|
|
@@ -383,7 +374,7 @@ function Ha(t) {
|
|
|
383
374
|
batchActions: A
|
|
384
375
|
} = l;
|
|
385
376
|
let O;
|
|
386
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = new
|
|
377
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = new El({
|
|
387
378
|
key: "fetcher-viewer-local-default-view-id",
|
|
388
379
|
defaultValue: void 0
|
|
389
380
|
}), e[4] = O) : O = e[4];
|
|
@@ -391,12 +382,12 @@ function Ha(t) {
|
|
|
391
382
|
viewerDefinition: $,
|
|
392
383
|
loading: k,
|
|
393
384
|
error: M
|
|
394
|
-
} =
|
|
385
|
+
} = Vl(u), {
|
|
395
386
|
views: x,
|
|
396
387
|
loading: L
|
|
397
|
-
} =
|
|
388
|
+
} = Ml(u, s, a);
|
|
398
389
|
let Y;
|
|
399
|
-
e[5] !== d || e[6] !== D || e[7] !== x ? (Y =
|
|
390
|
+
e[5] !== d || e[6] !== D || e[7] !== x ? (Y = Yl(x, D, d), e[5] = d, e[6] = D, e[7] = x, e[8] = Y) : Y = e[8];
|
|
400
391
|
const V = Y;
|
|
401
392
|
let I;
|
|
402
393
|
e[9] !== V || e[10] !== $ ? (I = {
|
|
@@ -408,29 +399,29 @@ function Ha(t) {
|
|
|
408
399
|
loading: _,
|
|
409
400
|
setQuery: N,
|
|
410
401
|
reload: v
|
|
411
|
-
} =
|
|
402
|
+
} = Hl(I), b = Re(null);
|
|
412
403
|
let p;
|
|
413
|
-
e[12] !== N ? (p = /* @__PURE__ */
|
|
404
|
+
e[12] !== N ? (p = /* @__PURE__ */ r((g, Z, me, le) => {
|
|
414
405
|
N?.(g, Z, me, le);
|
|
415
406
|
}, "t6"), e[12] = N, e[13] = p) : p = e[13];
|
|
416
407
|
const H = p;
|
|
417
408
|
let C;
|
|
418
|
-
e[14] !== S || e[15] !== F ? (C = /* @__PURE__ */
|
|
409
|
+
e[14] !== S || e[15] !== F ? (C = /* @__PURE__ */ r((g) => {
|
|
419
410
|
S?.(g), F(g.id);
|
|
420
411
|
}, "t7"), e[14] = S, e[15] = F, e[16] = C) : C = e[16];
|
|
421
|
-
const z = C, W =
|
|
412
|
+
const z = C, W = Bl, U = gl, K = zl, q = Ul, {
|
|
422
413
|
publish: ee,
|
|
423
414
|
subscribe: te
|
|
424
415
|
} = Dt();
|
|
425
416
|
let G;
|
|
426
|
-
if (e[17] !== ee ? (G = /* @__PURE__ */
|
|
417
|
+
if (e[17] !== ee ? (G = /* @__PURE__ */ r(() => ({
|
|
427
418
|
refreshData: ee,
|
|
428
|
-
clearSelectedRowKeys: /* @__PURE__ */
|
|
419
|
+
clearSelectedRowKeys: /* @__PURE__ */ r(() => {
|
|
429
420
|
b.current?.clearSelectedRowKeys();
|
|
430
421
|
}, "clearSelectedRowKeys")
|
|
431
422
|
}), "t8"), e[17] = ee, e[18] = G) : G = e[18], Ae(o, G), te({
|
|
432
423
|
name: "Viewer-Refresh-Data",
|
|
433
|
-
handle: /* @__PURE__ */
|
|
424
|
+
handle: /* @__PURE__ */ r(async () => {
|
|
434
425
|
await v();
|
|
435
426
|
}, "handle")
|
|
436
427
|
}), k || L) {
|
|
@@ -449,7 +440,7 @@ function Ha(t) {
|
|
|
449
440
|
color: "#ff4d4f"
|
|
450
441
|
}, e[20] = g) : g = e[20];
|
|
451
442
|
let Z;
|
|
452
|
-
return e[21] !== M.message ? (Z = /* @__PURE__ */
|
|
443
|
+
return e[21] !== M.message ? (Z = /* @__PURE__ */ Q("div", { style: g, children: [
|
|
453
444
|
"加载视图定义失败: ",
|
|
454
445
|
M.message
|
|
455
446
|
] }), e[21] = M.message, e[22] = Z) : Z = e[22], Z;
|
|
@@ -473,7 +464,7 @@ function Ha(t) {
|
|
|
473
464
|
total: 0
|
|
474
465
|
}, e[25] = E, e[26] = g) : g = e[26];
|
|
475
466
|
let Z;
|
|
476
|
-
return e[27] !== m || e[28] !== A || e[29] !== V || e[30] !== T || e[31] !== _ || e[32] !== H || e[33] !== z || e[34] !== h || e[35] !== f || e[36] !== R || e[37] !== w || e[38] !== g || e[39] !== y || e[40] !== $ || e[41] !== x ? (Z = /* @__PURE__ */ c(
|
|
467
|
+
return e[27] !== m || e[28] !== A || e[29] !== V || e[30] !== T || e[31] !== _ || e[32] !== H || e[33] !== z || e[34] !== h || e[35] !== f || e[36] !== R || e[37] !== w || e[38] !== g || e[39] !== y || e[40] !== $ || e[41] !== x ? (Z = /* @__PURE__ */ c(Ar, { ref: b, defaultViews: x, defaultView: V, definition: $, loading: _, dataSource: g, pagination: f, actionColumn: m, onClickPrimaryKey: h, enableRowSelection: T, primaryAction: R, secondaryActions: w, batchActions: A, onGetRecordCount: W, onSwitchView: z, onLoadData: H, viewTableSetting: y, onCreateView: U, onUpdateView: K, onDeleteView: q }), e[27] = m, e[28] = A, e[29] = V, e[30] = T, e[31] = _, e[32] = H, e[33] = z, e[34] = h, e[35] = f, e[36] = R, e[37] = w, e[38] = g, e[39] = y, e[40] = $, e[41] = x, e[42] = Z) : Z = e[42], Z;
|
|
477
468
|
}
|
|
478
469
|
let J;
|
|
479
470
|
return e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ c("div", { style: {
|
|
@@ -483,16 +474,16 @@ function Ha(t) {
|
|
|
483
474
|
height: "100vh"
|
|
484
475
|
}, children: /* @__PURE__ */ c(_t, { size: "large" }) }), e[43] = J) : J = e[43], J;
|
|
485
476
|
}
|
|
486
|
-
|
|
487
|
-
function
|
|
477
|
+
r(gr, "FetcherViewer");
|
|
478
|
+
function Ul(t, e) {
|
|
488
479
|
Ot.defaultDeleteAggregate(t.id, {
|
|
489
480
|
body: {}
|
|
490
481
|
}).then(() => {
|
|
491
482
|
e?.(t);
|
|
492
483
|
});
|
|
493
484
|
}
|
|
494
|
-
|
|
495
|
-
function
|
|
485
|
+
r(Ul, "_temp4$1");
|
|
486
|
+
function zl(t, e) {
|
|
496
487
|
const l = {
|
|
497
488
|
...t
|
|
498
489
|
};
|
|
@@ -502,8 +493,8 @@ function Ml(t, e) {
|
|
|
502
493
|
e?.(t);
|
|
503
494
|
});
|
|
504
495
|
}
|
|
505
|
-
|
|
506
|
-
function
|
|
496
|
+
r(zl, "_temp3$2");
|
|
497
|
+
function gl(t, e) {
|
|
507
498
|
const l = {
|
|
508
499
|
...t
|
|
509
500
|
};
|
|
@@ -517,22 +508,22 @@ function Hl(t, e) {
|
|
|
517
508
|
e?.(i);
|
|
518
509
|
});
|
|
519
510
|
}
|
|
520
|
-
|
|
521
|
-
function
|
|
522
|
-
return
|
|
511
|
+
r(gl, "_temp2$3");
|
|
512
|
+
function Bl(t, e) {
|
|
513
|
+
return rl.default.post(t, {
|
|
523
514
|
body: e
|
|
524
515
|
}, {
|
|
525
|
-
resultExtractor:
|
|
516
|
+
resultExtractor: sl
|
|
526
517
|
});
|
|
527
518
|
}
|
|
528
|
-
|
|
529
|
-
function
|
|
519
|
+
r(Bl, "_temp$a");
|
|
520
|
+
function Yl(t, e, l) {
|
|
530
521
|
if (!t || t.length === 0) return;
|
|
531
522
|
let n;
|
|
532
523
|
return l && (n = t.find((i) => i.id === l), n) || e && (n = t.find((i) => i.id === e), n) || (n = t.find((i) => i.isDefault), n) ? n : t[0];
|
|
533
524
|
}
|
|
534
|
-
|
|
535
|
-
const
|
|
525
|
+
r(Yl, "getDefaultView");
|
|
526
|
+
const Wl = {
|
|
536
527
|
AND: "与",
|
|
537
528
|
OR: "或",
|
|
538
529
|
NOR: "非或",
|
|
@@ -578,83 +569,83 @@ const gl = {
|
|
|
578
569
|
UNDEFINED: "未设置"
|
|
579
570
|
};
|
|
580
571
|
var je = /* @__PURE__ */ ((t) => (t.UNDEFINED = "UNDEFINED", t))(je || {});
|
|
581
|
-
const
|
|
582
|
-
filterContent:
|
|
583
|
-
filterGroupLabel:
|
|
584
|
-
},
|
|
585
|
-
function
|
|
572
|
+
const Kl = "_filterContent_goy0q_1", Gl = "_filterGroupLabel_goy0q_6", kt = {
|
|
573
|
+
filterContent: Kl,
|
|
574
|
+
filterGroupLabel: Gl
|
|
575
|
+
}, jl = [];
|
|
576
|
+
function ql(t) {
|
|
586
577
|
const e = j(23), {
|
|
587
578
|
filters: l,
|
|
588
579
|
activeFilters: n,
|
|
589
580
|
ref: i
|
|
590
|
-
} = t,
|
|
581
|
+
} = t, a = n === void 0 ? jl : n;
|
|
591
582
|
let s;
|
|
592
|
-
e[0] !==
|
|
593
|
-
const o = s, [u, d] =
|
|
583
|
+
e[0] !== a ? (s = a?.map(Ql).sort(), e[0] = a, e[1] = s) : s = e[1];
|
|
584
|
+
const o = s, [u, d] = X(o);
|
|
594
585
|
let f;
|
|
595
|
-
e[2] !==
|
|
586
|
+
e[2] !== a || e[3] !== t.filters || e[4] !== u ? (f = /* @__PURE__ */ r(() => ({
|
|
596
587
|
getValue() {
|
|
597
|
-
return t.filters.flatMap((w) => w.filters.filter((A) => u.includes(A.key) && !
|
|
588
|
+
return t.filters.flatMap((w) => w.filters.filter((A) => u.includes(A.key) && !a.some((O) => O.key === A.key)));
|
|
598
589
|
}
|
|
599
|
-
}), "t2"), e[2] =
|
|
590
|
+
}), "t2"), e[2] = a, e[3] = t.filters, e[4] = u, e[5] = f) : f = e[5], Ae(i, f);
|
|
600
591
|
let m;
|
|
601
|
-
e[6] !== u ? (m = /* @__PURE__ */
|
|
592
|
+
e[6] !== u ? (m = /* @__PURE__ */ r((w, A) => {
|
|
602
593
|
d(A ? [...u, w.key] : u.filter((O) => O !== w.key));
|
|
603
594
|
}, "t3"), e[6] = u, e[7] = m) : m = e[7];
|
|
604
595
|
const h = m;
|
|
605
596
|
let T, S;
|
|
606
|
-
e[8] !== o ? (T = /* @__PURE__ */
|
|
597
|
+
e[8] !== o ? (T = /* @__PURE__ */ r(() => {
|
|
607
598
|
d(o);
|
|
608
599
|
}, "t4"), S = [o], e[8] = o, e[9] = T, e[10] = S) : (T = e[9], S = e[10]), Le(T, S);
|
|
609
600
|
let y;
|
|
610
|
-
if (e[11] !==
|
|
601
|
+
if (e[11] !== a || e[12] !== l || e[13] !== h || e[14] !== u) {
|
|
611
602
|
let w;
|
|
612
|
-
e[16] !==
|
|
603
|
+
e[16] !== a || e[17] !== l.length || e[18] !== h || e[19] !== u ? (w = /* @__PURE__ */ r((A, O) => /* @__PURE__ */ Q("div", { children: [
|
|
613
604
|
/* @__PURE__ */ c("span", { className: kt.filterGroupLabel, children: A.label }),
|
|
614
|
-
/* @__PURE__ */ c(St, { wrap: !0, gutter: [16, 16], children: A.filters.map((P) => /* @__PURE__ */ c(yt, { span: 6, children: /* @__PURE__ */ c(Xt, { checked: u.includes(P.key), onChange: /* @__PURE__ */
|
|
605
|
+
/* @__PURE__ */ c(St, { wrap: !0, gutter: [16, 16], children: A.filters.map((P) => /* @__PURE__ */ c(yt, { span: 6, children: /* @__PURE__ */ c(Xt, { checked: u.includes(P.key), onChange: /* @__PURE__ */ r((D) => {
|
|
615
606
|
h(P, D.target.checked);
|
|
616
|
-
}, "onChange"), disabled:
|
|
607
|
+
}, "onChange"), disabled: a.some((D) => D.key === P.key), children: P.field.label }) }, P.key)) }, O),
|
|
617
608
|
O < l.length - 1 && /* @__PURE__ */ c(Be, { size: "middle" })
|
|
618
|
-
] }, A.label), "t72"), e[16] =
|
|
609
|
+
] }, A.label), "t72"), e[16] = a, e[17] = l.length, e[18] = h, e[19] = u, e[20] = w) : w = e[20], y = l.map(w), e[11] = a, e[12] = l, e[13] = h, e[14] = u, e[15] = y;
|
|
619
610
|
} else
|
|
620
611
|
y = e[15];
|
|
621
612
|
let R;
|
|
622
613
|
return e[21] !== y ? (R = /* @__PURE__ */ c("div", { className: kt.filterContent, children: y }), e[21] = y, e[22] = R) : R = e[22], R;
|
|
623
614
|
}
|
|
624
|
-
|
|
625
|
-
function
|
|
615
|
+
r(ql, "AvailableFilterSelect");
|
|
616
|
+
function Ql(t) {
|
|
626
617
|
return t.key;
|
|
627
618
|
}
|
|
628
|
-
|
|
629
|
-
function
|
|
619
|
+
r(Ql, "_temp$9");
|
|
620
|
+
function Xl(t) {
|
|
630
621
|
const e = j(8), l = Re(null);
|
|
631
622
|
let n;
|
|
632
|
-
e[0] !== t ? (n = /* @__PURE__ */
|
|
623
|
+
e[0] !== t ? (n = /* @__PURE__ */ r(() => {
|
|
633
624
|
t?.onSave?.(l.current?.getValue() ?? []);
|
|
634
625
|
}, "t0"), e[0] = t, e[1] = n) : n = e[1];
|
|
635
626
|
const i = n;
|
|
636
|
-
let
|
|
637
|
-
e[2] !== t.availableFilters ? (
|
|
627
|
+
let a;
|
|
628
|
+
e[2] !== t.availableFilters ? (a = /* @__PURE__ */ c(ql, { ...t.availableFilters, ref: l }), e[2] = t.availableFilters, e[3] = a) : a = e[3];
|
|
638
629
|
let s;
|
|
639
|
-
return e[4] !== i || e[5] !== t || e[6] !==
|
|
630
|
+
return e[4] !== i || e[5] !== t || e[6] !== a ? (s = /* @__PURE__ */ c(ot, { ...t, onOk: i, width: 880, children: a }), e[4] = i, e[5] = t, e[6] = a, e[7] = s) : s = e[7], s;
|
|
640
631
|
}
|
|
641
|
-
|
|
642
|
-
function
|
|
632
|
+
r(Xl, "AvailableFilterSelectModal");
|
|
633
|
+
function Zl(t) {
|
|
643
634
|
return !Array.isArray(t) || t.length !== 2 ? !1 : Vt(t[0]) && Vt(t[1]);
|
|
644
635
|
}
|
|
645
|
-
|
|
636
|
+
r(Zl, "isValidBetweenValue");
|
|
646
637
|
function Vt(t) {
|
|
647
638
|
return t != null;
|
|
648
639
|
}
|
|
649
|
-
|
|
650
|
-
function
|
|
640
|
+
r(Vt, "isValidValue");
|
|
641
|
+
function Br() {
|
|
651
642
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
652
643
|
}
|
|
653
|
-
|
|
654
|
-
const
|
|
655
|
-
function
|
|
656
|
-
const [e, l] =
|
|
657
|
-
if (T === je.UNDEFINED || !
|
|
644
|
+
r(Br, "currentTimeZone");
|
|
645
|
+
const Jl = /* @__PURE__ */ r(() => !0, "TrueValidateValue"), ei = /* @__PURE__ */ r((t, e) => t ? ml.has(t) ? !0 : e == null || e === "" || Array.isArray(e) && e.length === 0 ? !1 : t === B.BETWEEN ? Zl(e) : !0 : !1, "defaultValidateValue"), ti = /* @__PURE__ */ r((t, e) => e, "defaultConditionValueParser"), ni = /* @__PURE__ */ r((t, e, l) => l, "defaultValueConverter"), li = /* @__PURE__ */ r((t) => t, "defaultFilterValueConverter");
|
|
646
|
+
function ii(t) {
|
|
647
|
+
const [e, l] = X(t.operator), [n, i] = X(t.value), a = t.validate ?? ei, s = t.conditionValueParser ?? ti, o = t.onOperatorChangeValueConverter ?? ni, u = t.filterValueConverter ?? li, d = /* @__PURE__ */ r((T, S) => {
|
|
648
|
+
if (T === je.UNDEFINED || !a(T, S))
|
|
658
649
|
return;
|
|
659
650
|
const y = s(T, S), w = {
|
|
660
651
|
condition: {
|
|
@@ -665,16 +656,16 @@ function ti(t) {
|
|
|
665
656
|
}
|
|
666
657
|
};
|
|
667
658
|
return u(w);
|
|
668
|
-
}, "resolveFilterValue"), f = /* @__PURE__ */
|
|
659
|
+
}, "resolveFilterValue"), f = /* @__PURE__ */ r((T) => {
|
|
669
660
|
const S = o(e, T, n);
|
|
670
661
|
l(T), i(S);
|
|
671
662
|
const y = d(T, S);
|
|
672
663
|
t.onChange?.(y);
|
|
673
|
-
}, "setOperatorFn"), m = /* @__PURE__ */
|
|
664
|
+
}, "setOperatorFn"), m = /* @__PURE__ */ r((T) => {
|
|
674
665
|
i(T);
|
|
675
666
|
const S = d(e, T);
|
|
676
667
|
t.onChange?.(S);
|
|
677
|
-
}, "setValueFn"), h = /* @__PURE__ */
|
|
668
|
+
}, "setValueFn"), h = /* @__PURE__ */ r(() => {
|
|
678
669
|
l(t.operator), i(t.value);
|
|
679
670
|
const T = d(t.operator, t.value);
|
|
680
671
|
t.onChange?.(T);
|
|
@@ -692,10 +683,10 @@ function ti(t) {
|
|
|
692
683
|
reset: h
|
|
693
684
|
};
|
|
694
685
|
}
|
|
695
|
-
|
|
686
|
+
r(ii, "useFilterState");
|
|
696
687
|
const {
|
|
697
|
-
useToken:
|
|
698
|
-
} =
|
|
688
|
+
useToken: ai
|
|
689
|
+
} = bn;
|
|
699
690
|
function Ue(t) {
|
|
700
691
|
const e = j(26), {
|
|
701
692
|
ref: l,
|
|
@@ -703,10 +694,10 @@ function Ue(t) {
|
|
|
703
694
|
} = t, i = n.operator?.supportedOperators ?? n.supportedOperators;
|
|
704
695
|
if (!i || i.length === 0)
|
|
705
696
|
throw new Error("supportedOperators must be a non-empty array");
|
|
706
|
-
const
|
|
697
|
+
const a = n.operator?.locale ?? Wl;
|
|
707
698
|
let s = n.operator?.defaultValue;
|
|
708
699
|
(!s || !i.includes(s)) && (s = i[0]);
|
|
709
|
-
const o =
|
|
700
|
+
const o = ii({
|
|
710
701
|
field: n.field.name,
|
|
711
702
|
operator: s,
|
|
712
703
|
value: n.value?.defaultValue,
|
|
@@ -719,7 +710,7 @@ function Ue(t) {
|
|
|
719
710
|
conditionOptions: n.conditionOptions
|
|
720
711
|
}), u = n.valueInputRender?.(o), d = i.map((F) => ({
|
|
721
712
|
value: F,
|
|
722
|
-
label:
|
|
713
|
+
label: a[F]
|
|
723
714
|
}));
|
|
724
715
|
let f;
|
|
725
716
|
e[0] !== n.operator ? (f = n.operator ?? {}, e[0] = n.operator, e[1] = f) : f = e[1];
|
|
@@ -735,7 +726,7 @@ function Ue(t) {
|
|
|
735
726
|
m = e[3];
|
|
736
727
|
const {
|
|
737
728
|
token: h
|
|
738
|
-
} =
|
|
729
|
+
} = ai();
|
|
739
730
|
let T;
|
|
740
731
|
e[4] !== n.style ? (T = {
|
|
741
732
|
...n.style
|
|
@@ -763,45 +754,45 @@ function Ue(t) {
|
|
|
763
754
|
let P;
|
|
764
755
|
e[15] !== o.operator || e[16] !== o.setOperator || e[17] !== m || e[18] !== d ? (P = /* @__PURE__ */ c(st, { style: O, ...m, onChange: o.setOperator, value: o.operator, options: d }), e[15] = o.operator, e[16] = o.setOperator, e[17] = m, e[18] = d, e[19] = P) : P = e[19];
|
|
765
756
|
let D;
|
|
766
|
-
return e[20] !== n.className || e[21] !== T || e[22] !== A || e[23] !== P || e[24] !== u ? (D = /* @__PURE__ */
|
|
757
|
+
return e[20] !== n.className || e[21] !== T || e[22] !== A || e[23] !== P || e[24] !== u ? (D = /* @__PURE__ */ Q(Se.Compact, { block: !0, style: T, className: n.className, children: [
|
|
767
758
|
A,
|
|
768
759
|
P,
|
|
769
760
|
u
|
|
770
761
|
] }), e[20] = n.className, e[21] = T, e[22] = A, e[23] = P, e[24] = u, e[25] = D) : D = e[25], D;
|
|
771
762
|
}
|
|
772
|
-
|
|
773
|
-
const
|
|
774
|
-
function
|
|
763
|
+
r(Ue, "AssemblyFilter");
|
|
764
|
+
const ri = "text";
|
|
765
|
+
function on(t) {
|
|
775
766
|
const e = j(6);
|
|
776
767
|
let l;
|
|
777
768
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [B.EQ, B.NE, B.CONTAINS, B.STARTS_WITH, B.ENDS_WITH, B.IN, B.NOT_IN], e[0] = l) : l = e[0];
|
|
778
769
|
let n;
|
|
779
|
-
e[1] !== t.value ? (n = /* @__PURE__ */
|
|
780
|
-
switch (
|
|
770
|
+
e[1] !== t.value ? (n = /* @__PURE__ */ r((a) => {
|
|
771
|
+
switch (a.operator) {
|
|
781
772
|
case B.IN:
|
|
782
773
|
case B.NOT_IN:
|
|
783
|
-
return /* @__PURE__ */ c(dt, { value:
|
|
774
|
+
return /* @__PURE__ */ c(dt, { value: a.value, onChange: a.setValue, ...t.value });
|
|
784
775
|
default:
|
|
785
776
|
return /* @__PURE__ */ c(qe, { style: {
|
|
786
777
|
width: "100%"
|
|
787
|
-
}, value:
|
|
778
|
+
}, value: a.value, onChange: /* @__PURE__ */ r((s) => a.setValue(s.target.value), "onChange"), allowClear: !0, ...t.value });
|
|
788
779
|
}
|
|
789
780
|
}, "t1"), e[1] = t.value, e[2] = n) : n = e[2];
|
|
790
781
|
let i;
|
|
791
782
|
if (e[3] !== t || e[4] !== n) {
|
|
792
|
-
const
|
|
783
|
+
const a = {
|
|
793
784
|
...t,
|
|
794
785
|
supportedOperators: l,
|
|
795
786
|
valueInputRender: n
|
|
796
787
|
};
|
|
797
|
-
i = /* @__PURE__ */ c(Ue, { ...
|
|
788
|
+
i = /* @__PURE__ */ c(Ue, { ...a }), e[3] = t, e[4] = n, e[5] = i;
|
|
798
789
|
} else
|
|
799
790
|
i = e[5];
|
|
800
791
|
return i;
|
|
801
792
|
}
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
const
|
|
793
|
+
r(on, "TextFilter");
|
|
794
|
+
on.displayName = "TextFilter";
|
|
795
|
+
const si = "id", oi = /* @__PURE__ */ r((t, e, l) => {
|
|
805
796
|
if (l == null)
|
|
806
797
|
return l;
|
|
807
798
|
if (e === B.ID)
|
|
@@ -811,99 +802,99 @@ const ii = "id", ri = /* @__PURE__ */ a((t, e, l) => {
|
|
|
811
802
|
const n = l.trim();
|
|
812
803
|
return n ? [n] : [];
|
|
813
804
|
}, "IdOnOperatorChangeValueConverter");
|
|
814
|
-
function
|
|
805
|
+
function cn(t) {
|
|
815
806
|
const e = j(6);
|
|
816
807
|
let l;
|
|
817
808
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [B.ID, B.IDS], e[0] = l) : l = e[0];
|
|
818
809
|
let n;
|
|
819
|
-
e[1] !== t.value ? (n = /* @__PURE__ */
|
|
810
|
+
e[1] !== t.value ? (n = /* @__PURE__ */ r((a) => a.operator === B.ID ? /* @__PURE__ */ c(qe, { value: a.value, onChange: /* @__PURE__ */ r((s) => a.setValue(s.target.value), "onChange"), allowClear: !0, ...t.value }) : /* @__PURE__ */ c(dt, { value: a.value, onChange: a.setValue, ...t.value }), "t1"), e[1] = t.value, e[2] = n) : n = e[2];
|
|
820
811
|
let i;
|
|
821
812
|
if (e[3] !== t || e[4] !== n) {
|
|
822
|
-
const
|
|
813
|
+
const a = {
|
|
823
814
|
...t,
|
|
824
815
|
supportedOperators: l,
|
|
825
|
-
onOperatorChangeValueConverter:
|
|
816
|
+
onOperatorChangeValueConverter: oi,
|
|
826
817
|
valueInputRender: n
|
|
827
818
|
};
|
|
828
|
-
i = /* @__PURE__ */ c(Ue, { ...
|
|
819
|
+
i = /* @__PURE__ */ c(Ue, { ...a }), e[3] = t, e[4] = n, e[5] = i;
|
|
829
820
|
} else
|
|
830
821
|
i = e[5];
|
|
831
822
|
return i;
|
|
832
823
|
}
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
const
|
|
836
|
-
function
|
|
824
|
+
r(cn, "IdFilter");
|
|
825
|
+
cn.displayName = "IdConditionFilter";
|
|
826
|
+
const ci = "number";
|
|
827
|
+
function un(t) {
|
|
837
828
|
const e = j(6);
|
|
838
829
|
let l;
|
|
839
830
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [B.EQ, B.NE, B.GT, B.LT, B.GTE, B.LTE, B.BETWEEN, B.IN, B.NOT_IN], e[0] = l) : l = e[0];
|
|
840
831
|
let n;
|
|
841
|
-
e[1] !== t.value ? (n = /* @__PURE__ */
|
|
842
|
-
switch (
|
|
832
|
+
e[1] !== t.value ? (n = /* @__PURE__ */ r((a) => {
|
|
833
|
+
switch (a.operator) {
|
|
843
834
|
case B.IN:
|
|
844
835
|
case B.NOT_IN:
|
|
845
|
-
return /* @__PURE__ */ c(dt, { value:
|
|
836
|
+
return /* @__PURE__ */ c(dt, { value: a.value, serializer: Sl, onChange: /* @__PURE__ */ r((s) => a.setValue(s), "onChange"), ...t.value });
|
|
846
837
|
case B.BETWEEN: {
|
|
847
838
|
const {
|
|
848
839
|
placeholder: s,
|
|
849
840
|
...o
|
|
850
841
|
} = t.value ?? {};
|
|
851
|
-
return /* @__PURE__ */ c(
|
|
842
|
+
return /* @__PURE__ */ c(Cl, { value: a.value, onChange: a.setValue, ...o });
|
|
852
843
|
}
|
|
853
844
|
default: {
|
|
854
845
|
const {
|
|
855
846
|
defaultValue: s,
|
|
856
847
|
...o
|
|
857
|
-
} = t.value ?? {}, u = Array.isArray(s) ? s[0] : s, d = Array.isArray(
|
|
858
|
-
return /* @__PURE__ */ c(nt, { value: d, defaultValue: u, onChange: /* @__PURE__ */
|
|
859
|
-
|
|
848
|
+
} = t.value ?? {}, u = Array.isArray(s) ? s[0] : s, d = Array.isArray(a.value) ? a.value[0] : a.value;
|
|
849
|
+
return /* @__PURE__ */ c(nt, { value: d, defaultValue: u, onChange: /* @__PURE__ */ r((f) => {
|
|
850
|
+
a.setValue(f ?? void 0);
|
|
860
851
|
}, "onChange"), ...o });
|
|
861
852
|
}
|
|
862
853
|
}
|
|
863
854
|
}, "t1"), e[1] = t.value, e[2] = n) : n = e[2];
|
|
864
855
|
let i;
|
|
865
856
|
if (e[3] !== t || e[4] !== n) {
|
|
866
|
-
const
|
|
857
|
+
const a = {
|
|
867
858
|
...t,
|
|
868
859
|
supportedOperators: l,
|
|
869
|
-
validate:
|
|
860
|
+
validate: ui,
|
|
870
861
|
valueInputRender: n
|
|
871
862
|
};
|
|
872
|
-
i = /* @__PURE__ */ c(Ue, { ...
|
|
863
|
+
i = /* @__PURE__ */ c(Ue, { ...a }), e[3] = t, e[4] = n, e[5] = i;
|
|
873
864
|
} else
|
|
874
865
|
i = e[5];
|
|
875
866
|
return i;
|
|
876
867
|
}
|
|
877
|
-
|
|
878
|
-
function
|
|
868
|
+
r(un, "NumberFilter");
|
|
869
|
+
function ui(t, e) {
|
|
879
870
|
return t === B.BETWEEN ? Array.isArray(e) ? e[0] !== void 0 && e[1] !== void 0 : !1 : e != null;
|
|
880
871
|
}
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
const
|
|
884
|
-
function
|
|
872
|
+
r(ui, "_temp$8");
|
|
873
|
+
un.displayName = "NumberFilter";
|
|
874
|
+
const fi = "select";
|
|
875
|
+
function fn(t) {
|
|
885
876
|
const e = j(6);
|
|
886
877
|
let l;
|
|
887
878
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [B.IN, B.NOT_IN], e[0] = l) : l = e[0];
|
|
888
879
|
let n;
|
|
889
|
-
e[1] !== t.value ? (n = /* @__PURE__ */
|
|
880
|
+
e[1] !== t.value ? (n = /* @__PURE__ */ r((a) => /* @__PURE__ */ c(st, { mode: "multiple", value: a.value, onChange: a.setValue, allowClear: !0, ...t.value }), "t1"), e[1] = t.value, e[2] = n) : n = e[2];
|
|
890
881
|
let i;
|
|
891
882
|
if (e[3] !== t || e[4] !== n) {
|
|
892
|
-
const
|
|
883
|
+
const a = {
|
|
893
884
|
...t,
|
|
894
885
|
supportedOperators: l,
|
|
895
886
|
valueInputRender: n
|
|
896
887
|
};
|
|
897
|
-
i = /* @__PURE__ */ c(Ue, { ...
|
|
888
|
+
i = /* @__PURE__ */ c(Ue, { ...a }), e[3] = t, e[4] = n, e[5] = i;
|
|
898
889
|
} else
|
|
899
890
|
i = e[5];
|
|
900
891
|
return i;
|
|
901
892
|
}
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
const
|
|
893
|
+
r(fn, "SelectFilter");
|
|
894
|
+
fn.displayName = "SelectFilter";
|
|
895
|
+
const di = "bool", mi = /* @__PURE__ */ r(() => {
|
|
905
896
|
}, "BoolConditionValueParser");
|
|
906
|
-
function
|
|
897
|
+
function dn(t) {
|
|
907
898
|
const e = j(3);
|
|
908
899
|
let l;
|
|
909
900
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [je.UNDEFINED, B.TRUE, B.FALSE], e[0] = l) : l = e[0];
|
|
@@ -912,50 +903,50 @@ function hn(t) {
|
|
|
912
903
|
const i = {
|
|
913
904
|
...t,
|
|
914
905
|
supportedOperators: l,
|
|
915
|
-
validate:
|
|
916
|
-
conditionValueParser:
|
|
906
|
+
validate: Jl,
|
|
907
|
+
conditionValueParser: mi
|
|
917
908
|
};
|
|
918
909
|
n = /* @__PURE__ */ c(Ue, { ...i }), e[1] = t, e[2] = n;
|
|
919
910
|
} else
|
|
920
911
|
n = e[2];
|
|
921
912
|
return n;
|
|
922
913
|
}
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
function
|
|
914
|
+
r(dn, "BoolFilter");
|
|
915
|
+
dn.displayName = "BoolFilter";
|
|
916
|
+
function mn(t) {
|
|
926
917
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
927
918
|
}
|
|
928
|
-
|
|
929
|
-
var Ze = { exports: {} },
|
|
930
|
-
function
|
|
919
|
+
r(mn, "getDefaultExportFromCjs");
|
|
920
|
+
var Ze = { exports: {} }, hi = Ze.exports, Mt;
|
|
921
|
+
function Ti() {
|
|
931
922
|
return Mt || (Mt = 1, (function(t, e) {
|
|
932
923
|
(function(l, n) {
|
|
933
924
|
t.exports = n();
|
|
934
|
-
})(
|
|
935
|
-
var l = 1e3, n = 6e4, i = 36e5,
|
|
925
|
+
})(hi, (function() {
|
|
926
|
+
var l = 1e3, n = 6e4, i = 36e5, a = "millisecond", s = "second", o = "minute", u = "hour", d = "day", f = "week", m = "month", h = "quarter", T = "year", S = "date", y = "Invalid Date", R = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, A = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: /* @__PURE__ */ r(function(I) {
|
|
936
927
|
var E = ["th", "st", "nd", "rd"], _ = I % 100;
|
|
937
928
|
return "[" + I + (E[(_ - 20) % 10] || E[_] || E[0]) + "]";
|
|
938
|
-
}, "ordinal") }, O = /* @__PURE__ */
|
|
929
|
+
}, "ordinal") }, O = /* @__PURE__ */ r(function(I, E, _) {
|
|
939
930
|
var N = String(I);
|
|
940
931
|
return !N || N.length >= E ? I : "" + Array(E + 1 - N.length).join(_) + I;
|
|
941
|
-
}, "m"), P = { s: O, z: /* @__PURE__ */
|
|
932
|
+
}, "m"), P = { s: O, z: /* @__PURE__ */ r(function(I) {
|
|
942
933
|
var E = -I.utcOffset(), _ = Math.abs(E), N = Math.floor(_ / 60), v = _ % 60;
|
|
943
934
|
return (E <= 0 ? "+" : "-") + O(N, 2, "0") + ":" + O(v, 2, "0");
|
|
944
|
-
}, "z"), m: /* @__PURE__ */
|
|
935
|
+
}, "z"), m: /* @__PURE__ */ r(function I(E, _) {
|
|
945
936
|
if (E.date() < _.date()) return -I(_, E);
|
|
946
937
|
var N = 12 * (_.year() - E.year()) + (_.month() - E.month()), v = E.clone().add(N, m), b = _ - v < 0, p = E.clone().add(N + (b ? -1 : 1), m);
|
|
947
938
|
return +(-(N + (_ - v) / (b ? v - p : p - v)) || 0);
|
|
948
|
-
}, "t"), a: /* @__PURE__ */
|
|
939
|
+
}, "t"), a: /* @__PURE__ */ r(function(I) {
|
|
949
940
|
return I < 0 ? Math.ceil(I) || 0 : Math.floor(I);
|
|
950
|
-
}, "a"), p: /* @__PURE__ */
|
|
951
|
-
return { M: m, y: T, w: f, d, D: S, h: u, m: o, s, ms:
|
|
952
|
-
}, "p"), u: /* @__PURE__ */
|
|
941
|
+
}, "a"), p: /* @__PURE__ */ r(function(I) {
|
|
942
|
+
return { M: m, y: T, w: f, d, D: S, h: u, m: o, s, ms: a, Q: h }[I] || String(I || "").toLowerCase().replace(/s$/, "");
|
|
943
|
+
}, "p"), u: /* @__PURE__ */ r(function(I) {
|
|
953
944
|
return I === void 0;
|
|
954
945
|
}, "u") }, D = "en", F = {};
|
|
955
946
|
F[D] = A;
|
|
956
|
-
var $ = "$isDayjsObject", k = /* @__PURE__ */
|
|
947
|
+
var $ = "$isDayjsObject", k = /* @__PURE__ */ r(function(I) {
|
|
957
948
|
return I instanceof Y || !(!I || !I[$]);
|
|
958
|
-
}, "S"), M = /* @__PURE__ */
|
|
949
|
+
}, "S"), M = /* @__PURE__ */ r(function I(E, _, N) {
|
|
959
950
|
var v;
|
|
960
951
|
if (!E) return D;
|
|
961
952
|
if (typeof E == "string") {
|
|
@@ -968,7 +959,7 @@ function di() {
|
|
|
968
959
|
F[H] = E, v = H;
|
|
969
960
|
}
|
|
970
961
|
return !N && v && (D = v), v || !N && D;
|
|
971
|
-
}, "t"), x = /* @__PURE__ */
|
|
962
|
+
}, "t"), x = /* @__PURE__ */ r(function(I, E) {
|
|
972
963
|
if (k(I)) return I.clone();
|
|
973
964
|
var _ = typeof E == "object" ? E : {};
|
|
974
965
|
return _.date = I, _.args = arguments, new Y(_);
|
|
@@ -980,7 +971,7 @@ function di() {
|
|
|
980
971
|
function I(_) {
|
|
981
972
|
this.$L = M(_.locale, null, !0), this.parse(_), this.$x = this.$x || _.x || {}, this[$] = !0;
|
|
982
973
|
}
|
|
983
|
-
|
|
974
|
+
r(I, "M");
|
|
984
975
|
var E = I.prototype;
|
|
985
976
|
return E.parse = function(_) {
|
|
986
977
|
this.$d = (function(N) {
|
|
@@ -1018,10 +1009,10 @@ function di() {
|
|
|
1018
1009
|
}, E.valueOf = function() {
|
|
1019
1010
|
return this.$d.getTime();
|
|
1020
1011
|
}, E.startOf = function(_, N) {
|
|
1021
|
-
var v = this, b = !!L.u(N) || N, p = L.p(_), H = /* @__PURE__ */
|
|
1012
|
+
var v = this, b = !!L.u(N) || N, p = L.p(_), H = /* @__PURE__ */ r(function(te, G) {
|
|
1022
1013
|
var J = L.w(v.$u ? Date.UTC(v.$y, G, te) : new Date(v.$y, G, te), v);
|
|
1023
1014
|
return b ? J : J.endOf(d);
|
|
1024
|
-
}, "l"), C = /* @__PURE__ */
|
|
1015
|
+
}, "l"), C = /* @__PURE__ */ r(function(te, G) {
|
|
1025
1016
|
return L.w(v.toDate()[te].apply(v.toDate("s"), (b ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), v);
|
|
1026
1017
|
}, "$"), z = this.$W, W = this.$M, U = this.$D, K = "set" + (this.$u ? "UTC" : "");
|
|
1027
1018
|
switch (p) {
|
|
@@ -1047,7 +1038,7 @@ function di() {
|
|
|
1047
1038
|
}, E.endOf = function(_) {
|
|
1048
1039
|
return this.startOf(_, !1);
|
|
1049
1040
|
}, E.$set = function(_, N) {
|
|
1050
|
-
var v, b = L.p(_), p = "set" + (this.$u ? "UTC" : ""), H = (v = {}, v[d] = p + "Date", v[S] = p + "Date", v[m] = p + "Month", v[T] = p + "FullYear", v[u] = p + "Hours", v[o] = p + "Minutes", v[s] = p + "Seconds", v[
|
|
1041
|
+
var v, b = L.p(_), p = "set" + (this.$u ? "UTC" : ""), H = (v = {}, v[d] = p + "Date", v[S] = p + "Date", v[m] = p + "Month", v[T] = p + "FullYear", v[u] = p + "Hours", v[o] = p + "Minutes", v[s] = p + "Seconds", v[a] = p + "Milliseconds", v)[b], C = b === d ? this.$D + (N - this.$W) : N;
|
|
1051
1042
|
if (b === m || b === T) {
|
|
1052
1043
|
var z = this.clone().set(S, 1);
|
|
1053
1044
|
z.$d[H](C), z.init(), this.$d = z.set(S, Math.min(this.$D, z.daysInMonth())).$d;
|
|
@@ -1060,7 +1051,7 @@ function di() {
|
|
|
1060
1051
|
}, E.add = function(_, N) {
|
|
1061
1052
|
var v, b = this;
|
|
1062
1053
|
_ = Number(_);
|
|
1063
|
-
var p = L.p(N), H = /* @__PURE__ */
|
|
1054
|
+
var p = L.p(N), H = /* @__PURE__ */ r(function(W) {
|
|
1064
1055
|
var U = x(b);
|
|
1065
1056
|
return L.w(U.date(U.date() + Math.round(W * _)), b);
|
|
1066
1057
|
}, "y");
|
|
@@ -1075,9 +1066,9 @@ function di() {
|
|
|
1075
1066
|
}, E.format = function(_) {
|
|
1076
1067
|
var N = this, v = this.$locale();
|
|
1077
1068
|
if (!this.isValid()) return v.invalidDate || y;
|
|
1078
|
-
var b = _ || "YYYY-MM-DDTHH:mm:ssZ", p = L.z(this), H = this.$H, C = this.$m, z = this.$M, W = v.weekdays, U = v.months, K = v.meridiem, q = /* @__PURE__ */
|
|
1069
|
+
var b = _ || "YYYY-MM-DDTHH:mm:ssZ", p = L.z(this), H = this.$H, C = this.$m, z = this.$M, W = v.weekdays, U = v.months, K = v.meridiem, q = /* @__PURE__ */ r(function(G, J, g, Z) {
|
|
1079
1070
|
return G && (G[J] || G(N, b)) || g[J].slice(0, Z);
|
|
1080
|
-
}, "h"), ee = /* @__PURE__ */
|
|
1071
|
+
}, "h"), ee = /* @__PURE__ */ r(function(G) {
|
|
1081
1072
|
return L.s(H % 12 || 12, G, "0");
|
|
1082
1073
|
}, "d"), te = K || function(G, J, g) {
|
|
1083
1074
|
var Z = G < 12 ? "AM" : "PM";
|
|
@@ -1141,7 +1132,7 @@ function di() {
|
|
|
1141
1132
|
}, E.utcOffset = function() {
|
|
1142
1133
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1143
1134
|
}, E.diff = function(_, N, v) {
|
|
1144
|
-
var b, p = this, H = L.p(N), C = x(_), z = (C.utcOffset() - this.utcOffset()) * n, W = this - C, U = /* @__PURE__ */
|
|
1135
|
+
var b, p = this, H = L.p(N), C = x(_), z = (C.utcOffset() - this.utcOffset()) * n, W = this - C, U = /* @__PURE__ */ r(function() {
|
|
1145
1136
|
return L.m(p, C);
|
|
1146
1137
|
}, "D");
|
|
1147
1138
|
switch (H) {
|
|
@@ -1193,7 +1184,7 @@ function di() {
|
|
|
1193
1184
|
return this.$d.toUTCString();
|
|
1194
1185
|
}, I;
|
|
1195
1186
|
})(), V = Y.prototype;
|
|
1196
|
-
return x.prototype = V, [["$ms",
|
|
1187
|
+
return x.prototype = V, [["$ms", a], ["$s", s], ["$m", o], ["$H", u], ["$W", d], ["$M", m], ["$y", T], ["$D", S]].forEach((function(I) {
|
|
1197
1188
|
V[I[1]] = function(E) {
|
|
1198
1189
|
return this.$g(E, I[0], I[1]);
|
|
1199
1190
|
};
|
|
@@ -1205,9 +1196,9 @@ function di() {
|
|
|
1205
1196
|
}));
|
|
1206
1197
|
})(Ze)), Ze.exports;
|
|
1207
1198
|
}
|
|
1208
|
-
|
|
1209
|
-
var It =
|
|
1210
|
-
const Nt = /* @__PURE__ */
|
|
1199
|
+
r(Ti, "requireDayjs_min");
|
|
1200
|
+
var It = Ti();
|
|
1201
|
+
const Nt = /* @__PURE__ */ mn(It), Ei = "datetime", _i = "HH:mm:ss", Ht = "day", pt = /* @__PURE__ */ new Set([B.RECENT_DAYS, B.EARLIER_DAYS]), Ut = /* @__PURE__ */ new Set([B.GT, B.LT, B.GTE, B.LTE]), Si = /* @__PURE__ */ r((t, e, l) => {
|
|
1211
1202
|
if (t === je.UNDEFINED || e === je.UNDEFINED || pt.has(t) && pt.has(e))
|
|
1212
1203
|
return l;
|
|
1213
1204
|
if (Ut.has(t)) {
|
|
@@ -1216,7 +1207,7 @@ const Nt = /* @__PURE__ */ Tn(It), mi = "datetime", hi = "HH:mm:ss", Ht = "day",
|
|
|
1216
1207
|
if (e === B.BETWEEN)
|
|
1217
1208
|
return [l, void 0];
|
|
1218
1209
|
}
|
|
1219
|
-
}, "DateTimeOnOperatorChangeValueConverter"),
|
|
1210
|
+
}, "DateTimeOnOperatorChangeValueConverter"), yi = /* @__PURE__ */ r((t, e) => {
|
|
1220
1211
|
if (e) {
|
|
1221
1212
|
if (t === B.BETWEEN) {
|
|
1222
1213
|
if (!Array.isArray(e) || e.length !== 2)
|
|
@@ -1228,24 +1219,24 @@ const Nt = /* @__PURE__ */ Tn(It), mi = "datetime", hi = "HH:mm:ss", Ht = "day",
|
|
|
1228
1219
|
if (pt.has(t))
|
|
1229
1220
|
return e;
|
|
1230
1221
|
if (t === B.BEFORE_TODAY)
|
|
1231
|
-
return It.isDayjs(e) ? e.format(
|
|
1222
|
+
return It.isDayjs(e) ? e.format(_i) : void 0;
|
|
1232
1223
|
if (It.isDayjs(e))
|
|
1233
1224
|
return e.valueOf();
|
|
1234
1225
|
}
|
|
1235
1226
|
}, "TimestampConditionValueParser");
|
|
1236
|
-
function
|
|
1227
|
+
function hn(t) {
|
|
1237
1228
|
const e = j(6);
|
|
1238
1229
|
let l;
|
|
1239
1230
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [B.GT, B.LT, B.GTE, B.LTE, B.BETWEEN, B.TODAY, B.BEFORE_TODAY, B.TOMORROW, B.THIS_WEEK, B.NEXT_WEEK, B.LAST_WEEK, B.THIS_MONTH, B.LAST_MONTH, B.RECENT_DAYS, B.EARLIER_DAYS], e[0] = l) : l = e[0];
|
|
1240
1231
|
let n;
|
|
1241
|
-
e[1] !== t.value ? (n = /* @__PURE__ */
|
|
1242
|
-
switch (
|
|
1232
|
+
e[1] !== t.value ? (n = /* @__PURE__ */ r((a) => {
|
|
1233
|
+
switch (a.operator) {
|
|
1243
1234
|
case B.BETWEEN: {
|
|
1244
1235
|
const {
|
|
1245
1236
|
placeholder: s,
|
|
1246
1237
|
...o
|
|
1247
1238
|
} = t.value || {};
|
|
1248
|
-
return /* @__PURE__ */ c(mt.RangePicker, { value:
|
|
1239
|
+
return /* @__PURE__ */ c(mt.RangePicker, { value: a.value, onChange: a.setValue, ...o });
|
|
1249
1240
|
}
|
|
1250
1241
|
case B.TODAY:
|
|
1251
1242
|
case B.TOMORROW:
|
|
@@ -1257,30 +1248,30 @@ function En(t) {
|
|
|
1257
1248
|
return null;
|
|
1258
1249
|
case B.RECENT_DAYS:
|
|
1259
1250
|
case B.EARLIER_DAYS:
|
|
1260
|
-
return /* @__PURE__ */ c(nt, { value:
|
|
1251
|
+
return /* @__PURE__ */ c(nt, { value: a.value, min: 1, onChange: a.setValue, ...t.value });
|
|
1261
1252
|
case B.BEFORE_TODAY:
|
|
1262
|
-
return /* @__PURE__ */ c(mt, { picker: "time", value:
|
|
1253
|
+
return /* @__PURE__ */ c(mt, { picker: "time", value: a.value, onChange: a.setValue, ...t.value });
|
|
1263
1254
|
default:
|
|
1264
|
-
return /* @__PURE__ */ c(mt, { value:
|
|
1255
|
+
return /* @__PURE__ */ c(mt, { value: a.value, picker: "date", showNow: !1, onChange: a.setValue, ...t.value });
|
|
1265
1256
|
}
|
|
1266
1257
|
}, "t1"), e[1] = t.value, e[2] = n) : n = e[2];
|
|
1267
1258
|
let i;
|
|
1268
1259
|
if (e[3] !== t || e[4] !== n) {
|
|
1269
|
-
const
|
|
1260
|
+
const a = {
|
|
1270
1261
|
...t,
|
|
1271
1262
|
supportedOperators: l,
|
|
1272
|
-
onOperatorChangeValueConverter:
|
|
1273
|
-
conditionValueParser:
|
|
1263
|
+
onOperatorChangeValueConverter: Si,
|
|
1264
|
+
conditionValueParser: yi,
|
|
1274
1265
|
valueInputRender: n
|
|
1275
1266
|
};
|
|
1276
|
-
i = /* @__PURE__ */ c(Ue, { ...
|
|
1267
|
+
i = /* @__PURE__ */ c(Ue, { ...a }), e[3] = t, e[4] = n, e[5] = i;
|
|
1277
1268
|
} else
|
|
1278
1269
|
i = e[5];
|
|
1279
1270
|
return i;
|
|
1280
1271
|
}
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
const
|
|
1272
|
+
r(hn, "DateTimeFilter");
|
|
1273
|
+
hn.displayName = "DateTimeFilter";
|
|
1274
|
+
const rt = class rt {
|
|
1284
1275
|
constructor() {
|
|
1285
1276
|
this.registry = /* @__PURE__ */ new Map();
|
|
1286
1277
|
}
|
|
@@ -1377,34 +1368,34 @@ const at = class at {
|
|
|
1377
1368
|
* ```
|
|
1378
1369
|
*/
|
|
1379
1370
|
static create(e = []) {
|
|
1380
|
-
const l = new
|
|
1371
|
+
const l = new rt();
|
|
1381
1372
|
return e.forEach(
|
|
1382
1373
|
([n, i]) => l.register(n, i)
|
|
1383
1374
|
), l;
|
|
1384
1375
|
}
|
|
1385
1376
|
};
|
|
1386
|
-
|
|
1387
|
-
let
|
|
1388
|
-
const
|
|
1389
|
-
[
|
|
1390
|
-
[
|
|
1391
|
-
[
|
|
1392
|
-
[
|
|
1393
|
-
[
|
|
1394
|
-
[
|
|
1377
|
+
r(rt, "TypedComponentRegistry");
|
|
1378
|
+
let at = rt;
|
|
1379
|
+
const Ci = at.create([
|
|
1380
|
+
[si, cn],
|
|
1381
|
+
[ri, on],
|
|
1382
|
+
[ci, un],
|
|
1383
|
+
[fi, fn],
|
|
1384
|
+
[di, dn],
|
|
1385
|
+
[Ei, hn]
|
|
1395
1386
|
]);
|
|
1396
|
-
function
|
|
1387
|
+
function Tn(t) {
|
|
1397
1388
|
const e = j(2), {
|
|
1398
1389
|
type: l,
|
|
1399
1390
|
ref: n
|
|
1400
1391
|
} = t;
|
|
1401
|
-
Ae(n,
|
|
1392
|
+
Ae(n, vi);
|
|
1402
1393
|
const i = `Unsupported filter type:[${l}]`;
|
|
1403
|
-
let
|
|
1404
|
-
return e[0] !== i ? (
|
|
1394
|
+
let a;
|
|
1395
|
+
return e[0] !== i ? (a = /* @__PURE__ */ c(Rn, { title: i, type: "warning", showIcon: !0 }), e[0] = i, e[1] = a) : a = e[1], a;
|
|
1405
1396
|
}
|
|
1406
|
-
|
|
1407
|
-
function
|
|
1397
|
+
r(Tn, "FallbackFilter");
|
|
1398
|
+
function vi() {
|
|
1408
1399
|
return {
|
|
1409
1400
|
getValue() {
|
|
1410
1401
|
},
|
|
@@ -1412,51 +1403,51 @@ function Si() {
|
|
|
1412
1403
|
}
|
|
1413
1404
|
};
|
|
1414
1405
|
}
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
const
|
|
1406
|
+
r(vi, "_temp$7");
|
|
1407
|
+
Tn.displayName = "FallbackFilter";
|
|
1408
|
+
const Ii = {
|
|
1418
1409
|
flex: "auto",
|
|
1419
1410
|
width: "100%"
|
|
1420
1411
|
};
|
|
1421
1412
|
function Lt(t) {
|
|
1422
1413
|
const e = j(10);
|
|
1423
1414
|
let l;
|
|
1424
|
-
e[0] !== t.type ? (l =
|
|
1415
|
+
e[0] !== t.type ? (l = Ci.get(t.type) || Tn, e[0] = t.type, e[1] = l) : l = e[1];
|
|
1425
1416
|
const n = l;
|
|
1426
1417
|
let i;
|
|
1427
1418
|
e[2] !== t.value ? (i = {
|
|
1428
|
-
style:
|
|
1419
|
+
style: Ii,
|
|
1429
1420
|
...t.value
|
|
1430
1421
|
}, e[2] = t.value, e[3] = i) : i = e[3];
|
|
1431
|
-
const
|
|
1422
|
+
const a = i;
|
|
1432
1423
|
let s;
|
|
1433
|
-
e[4] !== t || e[5] !==
|
|
1424
|
+
e[4] !== t || e[5] !== a ? (s = {
|
|
1434
1425
|
...t,
|
|
1435
|
-
value:
|
|
1436
|
-
}, e[4] = t, e[5] =
|
|
1426
|
+
value: a
|
|
1427
|
+
}, e[4] = t, e[5] = a, e[6] = s) : s = e[6];
|
|
1437
1428
|
const o = s;
|
|
1438
1429
|
let u;
|
|
1439
1430
|
return e[7] !== n || e[8] !== o ? (u = Zt.createElement(n, o), e[7] = n, e[8] = o, e[9] = u) : u = e[9], u;
|
|
1440
1431
|
}
|
|
1441
|
-
|
|
1432
|
+
r(Lt, "TypedFilter");
|
|
1442
1433
|
Lt.displayName = "TypedFilter";
|
|
1443
|
-
const
|
|
1444
|
-
fullWidthItem:
|
|
1434
|
+
const Ni = "_fullWidthItem_tosqa_1", pi = {
|
|
1435
|
+
fullWidthItem: Ni
|
|
1445
1436
|
};
|
|
1446
|
-
function
|
|
1437
|
+
function Li(t) {
|
|
1447
1438
|
const e = j(16);
|
|
1448
1439
|
let l, n;
|
|
1449
1440
|
e[0] !== t ? ({
|
|
1450
1441
|
onRemove: l,
|
|
1451
1442
|
...n
|
|
1452
1443
|
} = t, e[0] = t, e[1] = l, e[2] = n) : (l = e[1], n = e[2]);
|
|
1453
|
-
const [i,
|
|
1444
|
+
const [i, a] = X(!1);
|
|
1454
1445
|
if (!l) {
|
|
1455
1446
|
let h;
|
|
1456
1447
|
return e[3] !== n ? (h = /* @__PURE__ */ c(Lt, { ...n }), e[3] = n, e[4] = h) : h = e[4], h;
|
|
1457
1448
|
}
|
|
1458
1449
|
let s, o, u;
|
|
1459
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */
|
|
1450
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(() => a(!0), "t0"), o = /* @__PURE__ */ r(() => a(!1), "t1"), u = {
|
|
1460
1451
|
width: "100%"
|
|
1461
1452
|
}, e[5] = s, e[6] = o, e[7] = u) : (s = e[5], o = e[6], u = e[7]);
|
|
1462
1453
|
let d;
|
|
@@ -1464,13 +1455,13 @@ function Ii(t) {
|
|
|
1464
1455
|
let f;
|
|
1465
1456
|
e[10] !== l || e[11] !== i ? (f = i && /* @__PURE__ */ c(Te, { type: "dashed", shape: "circle", size: "small", onClick: l, icon: /* @__PURE__ */ c(Gn, {}) }), e[10] = l, e[11] = i, e[12] = f) : f = e[12];
|
|
1466
1457
|
let m;
|
|
1467
|
-
return e[13] !== d || e[14] !== f ? (m = /* @__PURE__ */
|
|
1458
|
+
return e[13] !== d || e[14] !== f ? (m = /* @__PURE__ */ Q(Se, { onMouseOver: s, onMouseOut: o, style: u, className: pi.fullWidthItem, children: [
|
|
1468
1459
|
d,
|
|
1469
1460
|
f
|
|
1470
1461
|
] }), e[13] = d, e[14] = f, e[15] = m) : m = e[15], m;
|
|
1471
1462
|
}
|
|
1472
|
-
|
|
1473
|
-
const
|
|
1463
|
+
r(Li, "RemovableTypedFilter");
|
|
1464
|
+
const Ai = {
|
|
1474
1465
|
personalView: "个人视图",
|
|
1475
1466
|
sharedView: "共享视图",
|
|
1476
1467
|
view: {
|
|
@@ -1503,11 +1494,11 @@ const Ni = {
|
|
|
1503
1494
|
saveButton: "保存",
|
|
1504
1495
|
cancelButton: "取消"
|
|
1505
1496
|
}
|
|
1506
|
-
}, zt =
|
|
1497
|
+
}, zt = Ai;
|
|
1507
1498
|
function De() {
|
|
1508
|
-
const [t, e] =
|
|
1499
|
+
const [t, e] = X(zt), l = Vn(
|
|
1509
1500
|
(n) => {
|
|
1510
|
-
e(
|
|
1501
|
+
e(bi(zt, n));
|
|
1511
1502
|
},
|
|
1512
1503
|
[e]
|
|
1513
1504
|
);
|
|
@@ -1516,42 +1507,42 @@ function De() {
|
|
|
1516
1507
|
setLocale: l
|
|
1517
1508
|
};
|
|
1518
1509
|
}
|
|
1519
|
-
|
|
1520
|
-
function
|
|
1510
|
+
r(De, "useLocale");
|
|
1511
|
+
function bi(t, e) {
|
|
1521
1512
|
const l = Object.fromEntries(
|
|
1522
1513
|
// Object.entries把对象转成[key, value]数组,再过滤掉value=undefined的项
|
|
1523
1514
|
Object.entries(e).filter(([, n]) => n !== void 0)
|
|
1524
1515
|
);
|
|
1525
1516
|
return Object.assign({}, t, l);
|
|
1526
1517
|
}
|
|
1527
|
-
|
|
1528
|
-
const
|
|
1518
|
+
r(bi, "mergeWithAssign");
|
|
1519
|
+
const Ri = {
|
|
1529
1520
|
gutter: [8, 8],
|
|
1530
1521
|
wrap: !0
|
|
1531
|
-
},
|
|
1522
|
+
}, En = {
|
|
1532
1523
|
xxl: 6,
|
|
1533
1524
|
xl: 8,
|
|
1534
1525
|
lg: 12,
|
|
1535
1526
|
md: 12,
|
|
1536
1527
|
sm: 24,
|
|
1537
1528
|
xs: 24
|
|
1538
|
-
},
|
|
1539
|
-
function
|
|
1529
|
+
}, Oi = En;
|
|
1530
|
+
function _n(t) {
|
|
1540
1531
|
const e = j(45), {
|
|
1541
1532
|
ref: l,
|
|
1542
1533
|
row: n,
|
|
1543
1534
|
col: i,
|
|
1544
|
-
actionsCol:
|
|
1535
|
+
actionsCol: a,
|
|
1545
1536
|
filters: s,
|
|
1546
1537
|
onSearch: o,
|
|
1547
1538
|
actions: u,
|
|
1548
1539
|
resetButton: d,
|
|
1549
1540
|
searchButton: f
|
|
1550
|
-
} = t, m = n === void 0 ?
|
|
1541
|
+
} = t, m = n === void 0 ? Ri : n, h = i === void 0 ? En : i, T = a === void 0 ? Oi : a, S = Yn(), {
|
|
1551
1542
|
locale: y
|
|
1552
1543
|
} = De();
|
|
1553
1544
|
let R;
|
|
1554
|
-
e[0] !== S || e[1] !== o ? (R = /* @__PURE__ */
|
|
1545
|
+
e[0] !== S || e[1] !== o ? (R = /* @__PURE__ */ r(() => {
|
|
1555
1546
|
if (!o)
|
|
1556
1547
|
return;
|
|
1557
1548
|
const C = [], z = /* @__PURE__ */ new Map();
|
|
@@ -1564,18 +1555,18 @@ function yn(t) {
|
|
|
1564
1555
|
}, "t3"), e[0] = S, e[1] = o, e[2] = R) : R = e[2];
|
|
1565
1556
|
const w = R;
|
|
1566
1557
|
let A;
|
|
1567
|
-
e[3] !== S ? (A = /* @__PURE__ */
|
|
1558
|
+
e[3] !== S ? (A = /* @__PURE__ */ r(() => {
|
|
1568
1559
|
for (const C of S.values())
|
|
1569
1560
|
C.reset();
|
|
1570
1561
|
}, "t4"), e[3] = S, e[4] = A) : A = e[4];
|
|
1571
1562
|
const O = A;
|
|
1572
1563
|
let P;
|
|
1573
|
-
e[5] !== O || e[6] !== w ? (P = /* @__PURE__ */
|
|
1564
|
+
e[5] !== O || e[6] !== w ? (P = /* @__PURE__ */ r(() => ({
|
|
1574
1565
|
search: w,
|
|
1575
1566
|
reset: O
|
|
1576
1567
|
}), "t5"), e[5] = O, e[6] = w, e[7] = P) : P = e[7], Ae(l, P);
|
|
1577
1568
|
let D;
|
|
1578
|
-
e[8] !== w ? (D = /* @__PURE__ */
|
|
1569
|
+
e[8] !== w ? (D = /* @__PURE__ */ r((C) => {
|
|
1579
1570
|
C.key === "Enter" && w();
|
|
1580
1571
|
}, "t6"), e[8] = w, e[9] = D) : D = e[9];
|
|
1581
1572
|
const F = D, $ = d !== !1;
|
|
@@ -1590,7 +1581,7 @@ function yn(t) {
|
|
|
1590
1581
|
let L;
|
|
1591
1582
|
if (e[13] !== h || e[14] !== S || e[15] !== s) {
|
|
1592
1583
|
let C;
|
|
1593
|
-
e[17] !== h || e[18] !== S ? (C = /* @__PURE__ */
|
|
1584
|
+
e[17] !== h || e[18] !== S ? (C = /* @__PURE__ */ r((z) => /* @__PURE__ */ wt(yt, { ...h, key: z.key }, /* @__PURE__ */ wt(Li, { ...z, key: z.key, ref: S.register(z.key) })), "t102"), e[17] = h, e[18] = S, e[19] = C) : C = e[19], L = s.map(C), e[13] = h, e[14] = S, e[15] = s, e[16] = L;
|
|
1594
1585
|
} else
|
|
1595
1586
|
L = e[16];
|
|
1596
1587
|
let Y;
|
|
@@ -1611,7 +1602,7 @@ function yn(t) {
|
|
|
1611
1602
|
let v;
|
|
1612
1603
|
e[31] !== w || e[32] !== f || e[33] !== N ? (v = /* @__PURE__ */ c(Te, { type: "primary", icon: _, onClick: w, ...f, children: N }), e[31] = w, e[32] = f, e[33] = N, e[34] = v) : v = e[34];
|
|
1613
1604
|
let b;
|
|
1614
|
-
e[35] !== u || e[36] !== E || e[37] !== v ? (b = /* @__PURE__ */
|
|
1605
|
+
e[35] !== u || e[36] !== E || e[37] !== v ? (b = /* @__PURE__ */ Q(Se.Compact, { children: [
|
|
1615
1606
|
u,
|
|
1616
1607
|
E,
|
|
1617
1608
|
v
|
|
@@ -1619,37 +1610,37 @@ function yn(t) {
|
|
|
1619
1610
|
let p;
|
|
1620
1611
|
e[39] !== T || e[40] !== b ? (p = /* @__PURE__ */ c(St, { justify: "end", style: V, children: /* @__PURE__ */ c(yt, { style: I, ...T, children: b }) }), e[39] = T, e[40] = b, e[41] = p) : p = e[41];
|
|
1621
1612
|
let H;
|
|
1622
|
-
return e[42] !== Y || e[43] !== p ? (H = /* @__PURE__ */
|
|
1613
|
+
return e[42] !== Y || e[43] !== p ? (H = /* @__PURE__ */ Q(Ee, { children: [
|
|
1623
1614
|
Y,
|
|
1624
1615
|
p
|
|
1625
1616
|
] }), e[42] = Y, e[43] = p, e[44] = H) : H = e[44], H;
|
|
1626
1617
|
}
|
|
1627
|
-
|
|
1628
|
-
function
|
|
1618
|
+
r(_n, "FilterPanel");
|
|
1619
|
+
function Di(t) {
|
|
1629
1620
|
const e = j(35), {
|
|
1630
1621
|
ref: l,
|
|
1631
1622
|
row: n,
|
|
1632
1623
|
col: i,
|
|
1633
|
-
availableFilters:
|
|
1624
|
+
availableFilters: a,
|
|
1634
1625
|
filters: s,
|
|
1635
1626
|
resetButton: o,
|
|
1636
1627
|
onSearch: u,
|
|
1637
1628
|
onChange: d
|
|
1638
|
-
} = t, [f, m] =
|
|
1629
|
+
} = t, [f, m] = X(s), [h, T] = X(!1), {
|
|
1639
1630
|
locale: S
|
|
1640
1631
|
} = De();
|
|
1641
1632
|
let y;
|
|
1642
|
-
e[0] !== f || e[1] !== d ? (y = /* @__PURE__ */
|
|
1633
|
+
e[0] !== f || e[1] !== d ? (y = /* @__PURE__ */ r((E) => {
|
|
1643
1634
|
if (E.length === 0) {
|
|
1644
1635
|
T(!1);
|
|
1645
1636
|
return;
|
|
1646
1637
|
}
|
|
1647
|
-
const _ = E.map(
|
|
1638
|
+
const _ = E.map(wi), N = [...f, ..._];
|
|
1648
1639
|
m(N), d && d(N), T(!1);
|
|
1649
1640
|
}, "t0"), e[0] = f, e[1] = d, e[2] = y) : y = e[2];
|
|
1650
1641
|
const R = y;
|
|
1651
1642
|
let w;
|
|
1652
|
-
e[3] !== f || e[4] !== d ? (w = /* @__PURE__ */
|
|
1643
|
+
e[3] !== f || e[4] !== d ? (w = /* @__PURE__ */ r((E) => {
|
|
1653
1644
|
const _ = f.filter((N) => N.key !== E);
|
|
1654
1645
|
m(_), d && d(_);
|
|
1655
1646
|
}, "t1"), e[3] = f, e[4] = d, e[5] = w) : w = e[5];
|
|
@@ -1657,38 +1648,38 @@ function bi(t) {
|
|
|
1657
1648
|
let O;
|
|
1658
1649
|
if (e[6] !== f || e[7] !== A) {
|
|
1659
1650
|
let E;
|
|
1660
|
-
e[9] !== A ? (E = /* @__PURE__ */
|
|
1651
|
+
e[9] !== A ? (E = /* @__PURE__ */ r((_) => ({
|
|
1661
1652
|
..._,
|
|
1662
|
-
onRemove: /* @__PURE__ */
|
|
1653
|
+
onRemove: /* @__PURE__ */ r(() => A(_.key), "onRemove")
|
|
1663
1654
|
}), "t32"), e[9] = A, e[10] = E) : E = e[10], O = f.map(E), e[6] = f, e[7] = A, e[8] = O;
|
|
1664
1655
|
} else
|
|
1665
1656
|
O = e[8];
|
|
1666
1657
|
const P = O;
|
|
1667
1658
|
let D, F;
|
|
1668
|
-
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */
|
|
1659
|
+
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ r(() => T(!0), "t3"), F = /* @__PURE__ */ c(Jt, {}), e[11] = D, e[12] = F) : (D = e[11], F = e[12]);
|
|
1669
1660
|
const $ = S.filterPanel?.addFilterTitle || "Add Filter";
|
|
1670
1661
|
let k;
|
|
1671
1662
|
e[13] !== $ ? (k = /* @__PURE__ */ c(Te, { onClick: D, icon: F, children: $ }), e[13] = $, e[14] = k) : k = e[14];
|
|
1672
1663
|
let M;
|
|
1673
|
-
e[15] !== i || e[16] !== P || e[17] !== u || e[18] !== l || e[19] !== o || e[20] !== n || e[21] !== k ? (M = /* @__PURE__ */ c(
|
|
1664
|
+
e[15] !== i || e[16] !== P || e[17] !== u || e[18] !== l || e[19] !== o || e[20] !== n || e[21] !== k ? (M = /* @__PURE__ */ c(_n, { ref: l, filters: P, onSearch: u, actions: k, resetButton: o, row: n, col: i }), e[15] = i, e[16] = P, e[17] = u, e[18] = l, e[19] = o, e[20] = n, e[21] = k, e[22] = M) : M = e[22];
|
|
1674
1665
|
const x = S.filterPanel?.addFilterTitle || "Add Filter";
|
|
1675
1666
|
let L;
|
|
1676
|
-
e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */
|
|
1667
|
+
e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ r(() => T(!1), "t9"), e[23] = L) : L = e[23];
|
|
1677
1668
|
let Y;
|
|
1678
|
-
e[24] !== f || e[25] !==
|
|
1679
|
-
filters:
|
|
1669
|
+
e[24] !== f || e[25] !== a ? (Y = {
|
|
1670
|
+
filters: a,
|
|
1680
1671
|
activeFilters: f
|
|
1681
|
-
}, e[24] = f, e[25] =
|
|
1672
|
+
}, e[24] = f, e[25] = a, e[26] = Y) : Y = e[26];
|
|
1682
1673
|
let V;
|
|
1683
|
-
e[27] !== R || e[28] !== h || e[29] !== Y || e[30] !== x ? (V = /* @__PURE__ */ c(
|
|
1674
|
+
e[27] !== R || e[28] !== h || e[29] !== Y || e[30] !== x ? (V = /* @__PURE__ */ c(Xl, { title: x, open: h, onCancel: L, onSave: R, availableFilters: Y }), e[27] = R, e[28] = h, e[29] = Y, e[30] = x, e[31] = V) : V = e[31];
|
|
1684
1675
|
let I;
|
|
1685
|
-
return e[32] !== V || e[33] !== M ? (I = /* @__PURE__ */
|
|
1676
|
+
return e[32] !== V || e[33] !== M ? (I = /* @__PURE__ */ Q(Ee, { children: [
|
|
1686
1677
|
M,
|
|
1687
1678
|
V
|
|
1688
1679
|
] }), e[32] = V, e[33] = M, e[34] = I) : I = e[34], I;
|
|
1689
1680
|
}
|
|
1690
|
-
|
|
1691
|
-
function
|
|
1681
|
+
r(Di, "EditableFilterPanel");
|
|
1682
|
+
function wi(t) {
|
|
1692
1683
|
return {
|
|
1693
1684
|
key: t.key,
|
|
1694
1685
|
type: t.component,
|
|
@@ -1699,10 +1690,10 @@ function Ri(t) {
|
|
|
1699
1690
|
attributes: t.attributes
|
|
1700
1691
|
};
|
|
1701
1692
|
}
|
|
1702
|
-
|
|
1703
|
-
const
|
|
1693
|
+
r(wi, "_temp$6");
|
|
1694
|
+
const Fi = "REFRESH_DATA_EVENTS", Pi = new hl(Fi), ge = new Tl({ delegate: Pi });
|
|
1704
1695
|
function Dt() {
|
|
1705
|
-
const t = /* @__PURE__ */
|
|
1696
|
+
const t = /* @__PURE__ */ r(() => ge.emit("REFRESH"), "publish"), e = /* @__PURE__ */ r((l) => ge.on(l), "subscribe");
|
|
1706
1697
|
return Le(() => () => {
|
|
1707
1698
|
ge.handlers.forEach((l) => {
|
|
1708
1699
|
ge.off(l.name);
|
|
@@ -1713,24 +1704,24 @@ function Dt() {
|
|
|
1713
1704
|
subscribe: e
|
|
1714
1705
|
};
|
|
1715
1706
|
}
|
|
1716
|
-
|
|
1717
|
-
const
|
|
1718
|
-
function
|
|
1707
|
+
r(Dt, "useRefreshDataEventBus");
|
|
1708
|
+
const Sn = Ve();
|
|
1709
|
+
function yn({
|
|
1719
1710
|
defaultPage: t = 1,
|
|
1720
1711
|
defaultPageSize: e = 10,
|
|
1721
1712
|
defaultTableSize: l = "middle",
|
|
1722
|
-
defaultCondition: n =
|
|
1713
|
+
defaultCondition: n = Sn,
|
|
1723
1714
|
defaultSorter: i = [],
|
|
1724
|
-
...
|
|
1715
|
+
...a
|
|
1725
1716
|
}) {
|
|
1726
|
-
const { defaultColumns: s, defaultActiveFilters: o } =
|
|
1717
|
+
const { defaultColumns: s, defaultActiveFilters: o } = a, [u, d] = X(s), [f, m] = X(o), [h, T] = X(t), [S, y] = X(e), [R, w] = X(l), [A, O] = X(i), [P, D] = X(n);
|
|
1727
1718
|
return {
|
|
1728
1719
|
columns: u,
|
|
1729
|
-
setColumns: /* @__PURE__ */
|
|
1720
|
+
setColumns: /* @__PURE__ */ r((L) => {
|
|
1730
1721
|
d(L.map((Y) => ({ ...Y })));
|
|
1731
1722
|
}, "setColumnsFn"),
|
|
1732
1723
|
activeFilters: f,
|
|
1733
|
-
setActiveFilters: /* @__PURE__ */
|
|
1724
|
+
setActiveFilters: /* @__PURE__ */ r((L) => {
|
|
1734
1725
|
m(L.map((Y) => ({ ...Y })));
|
|
1735
1726
|
}, "setActiveFiltersFn"),
|
|
1736
1727
|
page: h,
|
|
@@ -1738,26 +1729,26 @@ function vn({
|
|
|
1738
1729
|
pageSize: S,
|
|
1739
1730
|
setPageSize: y,
|
|
1740
1731
|
condition: P,
|
|
1741
|
-
setCondition: /* @__PURE__ */
|
|
1732
|
+
setCondition: /* @__PURE__ */ r((L) => {
|
|
1742
1733
|
D({ ...L });
|
|
1743
1734
|
}, "setConditionFn"),
|
|
1744
1735
|
sorter: A,
|
|
1745
|
-
setSorter: /* @__PURE__ */
|
|
1736
|
+
setSorter: /* @__PURE__ */ r((L) => {
|
|
1746
1737
|
O(L.map((Y) => ({ ...Y })));
|
|
1747
1738
|
}, "setSorterFn"),
|
|
1748
1739
|
tableSize: R,
|
|
1749
1740
|
setTableSize: w,
|
|
1750
|
-
reset: /* @__PURE__ */
|
|
1741
|
+
reset: /* @__PURE__ */ r(() => {
|
|
1751
1742
|
d(s), m(o), T(t), y(e), D(n), O(i), w(l);
|
|
1752
1743
|
}, "resetFn")
|
|
1753
1744
|
};
|
|
1754
1745
|
}
|
|
1755
|
-
|
|
1756
|
-
const
|
|
1746
|
+
r(yn, "useActiveViewState");
|
|
1747
|
+
const xi = "action";
|
|
1757
1748
|
function gt(t) {
|
|
1758
1749
|
return typeof t.data == "object" && typeof t.data.value == "string" && typeof t.data.record == "object" && typeof t.data.index == "number" && (t.attributes === void 0 || typeof t.attributes == "object");
|
|
1759
1750
|
}
|
|
1760
|
-
|
|
1751
|
+
r(gt, "isActionCellProps");
|
|
1761
1752
|
function Je(t) {
|
|
1762
1753
|
const e = j(8), {
|
|
1763
1754
|
data: l,
|
|
@@ -1766,19 +1757,19 @@ function Je(t) {
|
|
|
1766
1757
|
if (!l.value)
|
|
1767
1758
|
return null;
|
|
1768
1759
|
let i;
|
|
1769
|
-
e[0] !== n || e[1] !== l.record ? (i = /* @__PURE__ */
|
|
1770
|
-
let
|
|
1771
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1760
|
+
e[0] !== n || e[1] !== l.record ? (i = /* @__PURE__ */ r(() => n?.onClick?.(l.record), "t0"), e[0] = n, e[1] = l.record, e[2] = i) : i = e[2];
|
|
1761
|
+
let a;
|
|
1762
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
1772
1763
|
padding: 0,
|
|
1773
1764
|
height: "22px"
|
|
1774
|
-
}, e[3] =
|
|
1765
|
+
}, e[3] = a) : a = e[3];
|
|
1775
1766
|
const s = t.attributes?.children ?? l.value;
|
|
1776
1767
|
let o;
|
|
1777
|
-
return e[4] !== n || e[5] !== i || e[6] !== s ? (o = /* @__PURE__ */ c(Te, { type: "link", ...n, onClick: i, style:
|
|
1768
|
+
return e[4] !== n || e[5] !== i || e[6] !== s ? (o = /* @__PURE__ */ c(Te, { type: "link", ...n, onClick: i, style: a, children: s }), e[4] = n, e[5] = i, e[6] = s, e[7] = o) : o = e[7], o;
|
|
1778
1769
|
}
|
|
1779
|
-
|
|
1780
|
-
const
|
|
1781
|
-
function
|
|
1770
|
+
r(Je, "ActionCell");
|
|
1771
|
+
const $i = "actions";
|
|
1772
|
+
function ki(t) {
|
|
1782
1773
|
const {
|
|
1783
1774
|
data: e
|
|
1784
1775
|
} = t;
|
|
@@ -1789,67 +1780,67 @@ function Pi(t) {
|
|
|
1789
1780
|
}))), typeof e.value.secondaryActions == "function" && (l = e.value.secondaryActions(e.record).map((n, i) => ({
|
|
1790
1781
|
key: i,
|
|
1791
1782
|
label: /* @__PURE__ */ c(Ee, { children: n })
|
|
1792
|
-
}))), l.length > 0 ? /* @__PURE__ */
|
|
1783
|
+
}))), l.length > 0 ? /* @__PURE__ */ Q(Se, { children: [
|
|
1793
1784
|
gt(e.value.primaryAction) ? /* @__PURE__ */ c(Je, { ...e.value.primaryAction }) : /* @__PURE__ */ c(Ee, { children: e.value.primaryAction(e.record) }),
|
|
1794
1785
|
/* @__PURE__ */ c(xe, { menu: {
|
|
1795
1786
|
items: l
|
|
1796
1787
|
}, children: /* @__PURE__ */ c(Te, { type: "link", style: {
|
|
1797
1788
|
padding: 0
|
|
1798
|
-
}, children: /* @__PURE__ */
|
|
1789
|
+
}, children: /* @__PURE__ */ Q(Se, { children: [
|
|
1799
1790
|
e.value.moreActionTitle || "More",
|
|
1800
1791
|
/* @__PURE__ */ c(We, {})
|
|
1801
1792
|
] }) }) })
|
|
1802
1793
|
] }) : /* @__PURE__ */ c(Ee, { children: gt(e.value.primaryAction) ? /* @__PURE__ */ c(Je, { ...e.value.primaryAction }) : /* @__PURE__ */ c(Ee, { children: e.value.primaryAction(e.record) }) });
|
|
1803
1794
|
}
|
|
1804
|
-
|
|
1805
|
-
function
|
|
1806
|
-
return
|
|
1795
|
+
r(ki, "renderActions");
|
|
1796
|
+
function Cn(t) {
|
|
1797
|
+
return ki(t);
|
|
1807
1798
|
}
|
|
1808
|
-
|
|
1809
|
-
function
|
|
1799
|
+
r(Cn, "ActionsCell");
|
|
1800
|
+
function Vi(t) {
|
|
1810
1801
|
return Nt.isDayjs(t) ? t : Nt(t);
|
|
1811
1802
|
}
|
|
1812
|
-
|
|
1813
|
-
function
|
|
1803
|
+
r(Vi, "parseDayjs");
|
|
1804
|
+
function Mi(t) {
|
|
1814
1805
|
return t == null;
|
|
1815
1806
|
}
|
|
1816
|
-
|
|
1817
|
-
function
|
|
1807
|
+
r(Mi, "isNullOrUndefined");
|
|
1808
|
+
function Hi(t) {
|
|
1818
1809
|
if (typeof t != "string" || t.trim() === "")
|
|
1819
1810
|
return !1;
|
|
1820
1811
|
const e = t.trim().toLowerCase();
|
|
1821
1812
|
return e.startsWith("http://") || e.startsWith("https://") || t.trim().startsWith("/") ? !0 : e.startsWith("data:image/") ? /^data:image\/[a-z]+(;[a-z0-9]+)?,/i.test(t.trim()) : !1;
|
|
1822
1813
|
}
|
|
1823
|
-
|
|
1824
|
-
const
|
|
1825
|
-
function
|
|
1814
|
+
r(Hi, "isValidImageSrc");
|
|
1815
|
+
const Ui = "avatar";
|
|
1816
|
+
function zi(t) {
|
|
1826
1817
|
const e = j(10), {
|
|
1827
1818
|
data: l,
|
|
1828
1819
|
attributes: n
|
|
1829
1820
|
} = t;
|
|
1830
1821
|
let i;
|
|
1831
1822
|
e[0] !== n ? (i = n === void 0 ? {} : n, e[0] = n, e[1] = i) : i = e[1];
|
|
1832
|
-
const
|
|
1823
|
+
const a = i;
|
|
1833
1824
|
if (!l.value) {
|
|
1834
1825
|
let o;
|
|
1835
|
-
return e[2] !==
|
|
1826
|
+
return e[2] !== a ? (o = /* @__PURE__ */ c(ht, { ...a }), e[2] = a, e[3] = o) : o = e[3], o;
|
|
1836
1827
|
}
|
|
1837
|
-
if (
|
|
1828
|
+
if (Hi(l.value)) {
|
|
1838
1829
|
let o;
|
|
1839
|
-
return e[4] !==
|
|
1830
|
+
return e[4] !== a || e[5] !== l.value ? (o = /* @__PURE__ */ c(ht, { src: l.value, ...a }), e[4] = a, e[5] = l.value, e[6] = o) : o = e[6], o;
|
|
1840
1831
|
}
|
|
1841
1832
|
let s;
|
|
1842
|
-
return e[7] !==
|
|
1833
|
+
return e[7] !== a || e[8] !== l.value ? (s = /* @__PURE__ */ c(ht, { ...a, children: l.value }), e[7] = a, e[8] = l.value, e[9] = s) : s = e[9], s;
|
|
1843
1834
|
}
|
|
1844
|
-
|
|
1845
|
-
var et = { exports: {} },
|
|
1846
|
-
function
|
|
1835
|
+
r(zi, "AvatarCell");
|
|
1836
|
+
var et = { exports: {} }, gi = et.exports, Bt;
|
|
1837
|
+
function Bi() {
|
|
1847
1838
|
return Bt || (Bt = 1, (function(t, e) {
|
|
1848
1839
|
(function(l, n) {
|
|
1849
1840
|
t.exports = n();
|
|
1850
|
-
})(
|
|
1841
|
+
})(gi, (function() {
|
|
1851
1842
|
return function(l, n, i) {
|
|
1852
|
-
var
|
|
1843
|
+
var a = "h:mm A", s = { lastDay: "[Yesterday at] " + a, sameDay: "[Today at] " + a, nextDay: "[Tomorrow at] " + a, nextWeek: "dddd [at] " + a, lastWeek: "[Last] dddd [at] " + a, sameElse: "MM/DD/YYYY" };
|
|
1853
1844
|
n.prototype.calendar = function(o, u) {
|
|
1854
1845
|
var d = u || this.$locale().calendar || s, f = i(o || void 0).startOf("d"), m = this.diff(f, "d", !0), h = "sameElse", T = m < -6 ? h : m < -1 ? "lastWeek" : m < 0 ? "lastDay" : m < 1 ? "sameDay" : m < 2 ? "nextDay" : m < 7 ? "nextWeek" : h, S = d[T] || s[T];
|
|
1855
1846
|
return typeof S == "function" ? S.call(this, i()) : this.format(S);
|
|
@@ -1858,17 +1849,17 @@ function Ui() {
|
|
|
1858
1849
|
}));
|
|
1859
1850
|
})(et)), et.exports;
|
|
1860
1851
|
}
|
|
1861
|
-
|
|
1862
|
-
var
|
|
1863
|
-
const
|
|
1852
|
+
r(Bi, "requireCalendar");
|
|
1853
|
+
var Yi = Bi();
|
|
1854
|
+
const Wi = /* @__PURE__ */ mn(Yi), {
|
|
1864
1855
|
Text: Xe
|
|
1865
|
-
} = Me,
|
|
1866
|
-
function
|
|
1856
|
+
} = Me, Ki = "datetime", tt = "YYYY-MM-DD HH:mm:ss";
|
|
1857
|
+
function vn(t) {
|
|
1867
1858
|
const e = j(10), {
|
|
1868
1859
|
data: l,
|
|
1869
1860
|
attributes: n
|
|
1870
1861
|
} = t;
|
|
1871
|
-
let i,
|
|
1862
|
+
let i, a, s, o;
|
|
1872
1863
|
if (e[0] !== l.value || e[1] !== n) {
|
|
1873
1864
|
o = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
1874
1865
|
e: {
|
|
@@ -1880,7 +1871,7 @@ function Nn(t) {
|
|
|
1880
1871
|
o = /* @__PURE__ */ c(Xe, { ...m, children: "-" });
|
|
1881
1872
|
break e;
|
|
1882
1873
|
}
|
|
1883
|
-
const T =
|
|
1874
|
+
const T = Vi(l.value);
|
|
1884
1875
|
if (!T.isValid()) {
|
|
1885
1876
|
o = /* @__PURE__ */ c(Xe, { ...m, children: "-" });
|
|
1886
1877
|
break e;
|
|
@@ -1889,19 +1880,19 @@ function Nn(t) {
|
|
|
1889
1880
|
o = /* @__PURE__ */ c(Xe, { ...m, children: h(T) });
|
|
1890
1881
|
break e;
|
|
1891
1882
|
}
|
|
1892
|
-
i = Xe,
|
|
1883
|
+
i = Xe, a = m, s = T.format(h);
|
|
1893
1884
|
}
|
|
1894
|
-
e[0] = l.value, e[1] = n, e[2] = i, e[3] =
|
|
1885
|
+
e[0] = l.value, e[1] = n, e[2] = i, e[3] = a, e[4] = s, e[5] = o;
|
|
1895
1886
|
} else
|
|
1896
|
-
i = e[2],
|
|
1887
|
+
i = e[2], a = e[3], s = e[4], o = e[5];
|
|
1897
1888
|
if (o !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
|
|
1898
1889
|
return o;
|
|
1899
1890
|
let u;
|
|
1900
|
-
return e[6] !== i || e[7] !==
|
|
1891
|
+
return e[6] !== i || e[7] !== a || e[8] !== s ? (u = /* @__PURE__ */ c(i, { ...a, children: s }), e[6] = i, e[7] = a, e[8] = s, e[9] = u) : u = e[9], u;
|
|
1901
1892
|
}
|
|
1902
|
-
|
|
1903
|
-
Nt.extend(
|
|
1904
|
-
const
|
|
1893
|
+
r(vn, "DateTimeCell");
|
|
1894
|
+
Nt.extend(Wi);
|
|
1895
|
+
const Gi = "calendar-time", ji = {
|
|
1905
1896
|
sameDay: "[今天] HH:mm",
|
|
1906
1897
|
nextDay: "[明天] HH:mm",
|
|
1907
1898
|
lastDay: "[昨天] HH:mm",
|
|
@@ -1909,22 +1900,22 @@ const Yi = "calendar-time", Wi = {
|
|
|
1909
1900
|
lastWeek: tt,
|
|
1910
1901
|
sameElse: tt
|
|
1911
1902
|
};
|
|
1912
|
-
function
|
|
1903
|
+
function qi(t) {
|
|
1913
1904
|
const e = j(13), {
|
|
1914
1905
|
data: l,
|
|
1915
1906
|
attributes: n
|
|
1916
1907
|
} = t;
|
|
1917
1908
|
let i;
|
|
1918
1909
|
e[0] !== n ? (i = n === void 0 ? {} : n, e[0] = n, e[1] = i) : i = e[1];
|
|
1919
|
-
const
|
|
1910
|
+
const a = i;
|
|
1920
1911
|
let s, o;
|
|
1921
|
-
e[2] !==
|
|
1912
|
+
e[2] !== a ? ({
|
|
1922
1913
|
formats: s,
|
|
1923
1914
|
...o
|
|
1924
|
-
} =
|
|
1925
|
-
const u = s === void 0 ?
|
|
1915
|
+
} = a, e[2] = a, e[3] = s, e[4] = o) : (s = e[3], o = e[4]);
|
|
1916
|
+
const u = s === void 0 ? ji : s;
|
|
1926
1917
|
let d;
|
|
1927
|
-
e[5] !== u ? (d = /* @__PURE__ */
|
|
1918
|
+
e[5] !== u ? (d = /* @__PURE__ */ r((T) => T.calendar(null, u), "t3"), e[5] = u, e[6] = d) : d = e[6];
|
|
1928
1919
|
const f = d;
|
|
1929
1920
|
let m;
|
|
1930
1921
|
e[7] !== f || e[8] !== o ? (m = {
|
|
@@ -1932,20 +1923,20 @@ function Ki(t) {
|
|
|
1932
1923
|
...o
|
|
1933
1924
|
}, e[7] = f, e[8] = o, e[9] = m) : m = e[9];
|
|
1934
1925
|
let h;
|
|
1935
|
-
return e[10] !== l || e[11] !== m ? (h = /* @__PURE__ */ c(
|
|
1926
|
+
return e[10] !== l || e[11] !== m ? (h = /* @__PURE__ */ c(vn, { data: l, attributes: m }), e[10] = l, e[11] = m, e[12] = h) : h = e[12], h;
|
|
1936
1927
|
}
|
|
1937
|
-
|
|
1928
|
+
r(qi, "CalendarTimeCell");
|
|
1938
1929
|
const {
|
|
1939
|
-
Text:
|
|
1940
|
-
} = Me,
|
|
1941
|
-
function
|
|
1930
|
+
Text: Qi
|
|
1931
|
+
} = Me, Xi = "text";
|
|
1932
|
+
function In(t) {
|
|
1942
1933
|
const e = j(3), l = t.attributes?.children ?? (t.data.value || "-");
|
|
1943
1934
|
let n;
|
|
1944
|
-
return e[0] !== t.attributes || e[1] !== l ? (n = /* @__PURE__ */ c(
|
|
1935
|
+
return e[0] !== t.attributes || e[1] !== l ? (n = /* @__PURE__ */ c(Qi, { ...t.attributes, children: l }), e[0] = t.attributes, e[1] = l, e[2] = n) : n = e[2], n;
|
|
1945
1936
|
}
|
|
1946
|
-
|
|
1947
|
-
const
|
|
1948
|
-
function
|
|
1937
|
+
r(In, "TextCell");
|
|
1938
|
+
const Zi = "tag";
|
|
1939
|
+
function Nn(t) {
|
|
1949
1940
|
const e = j(3), {
|
|
1950
1941
|
data: l,
|
|
1951
1942
|
attributes: n
|
|
@@ -1953,28 +1944,28 @@ function Ln(t) {
|
|
|
1953
1944
|
if (!l.value?.trim())
|
|
1954
1945
|
return null;
|
|
1955
1946
|
const i = n?.children ?? l.value;
|
|
1956
|
-
let
|
|
1957
|
-
return e[0] !== n || e[1] !== i ? (
|
|
1947
|
+
let a;
|
|
1948
|
+
return e[0] !== n || e[1] !== i ? (a = /* @__PURE__ */ c(bt, { ...n, children: i }), e[0] = n, e[1] = i, e[2] = a) : a = e[2], a;
|
|
1958
1949
|
}
|
|
1959
|
-
|
|
1960
|
-
const
|
|
1961
|
-
function
|
|
1950
|
+
r(Nn, "TagCell");
|
|
1951
|
+
const Ji = "tags";
|
|
1952
|
+
function ea(t) {
|
|
1962
1953
|
const e = j(14), {
|
|
1963
1954
|
space: l,
|
|
1964
1955
|
data: n,
|
|
1965
1956
|
attributes: i
|
|
1966
1957
|
} = t;
|
|
1967
|
-
let
|
|
1968
|
-
e[0] !== i ? (
|
|
1969
|
-
const s =
|
|
1958
|
+
let a;
|
|
1959
|
+
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
1960
|
+
const s = a;
|
|
1970
1961
|
if (!n.value?.length)
|
|
1971
1962
|
return null;
|
|
1972
1963
|
let o;
|
|
1973
1964
|
if (e[2] !== s || e[3] !== n.index || e[4] !== n.record || e[5] !== n.value) {
|
|
1974
1965
|
let d;
|
|
1975
|
-
e[7] !== s || e[8] !== n.index || e[9] !== n.record ? (d = /* @__PURE__ */
|
|
1966
|
+
e[7] !== s || e[8] !== n.index || e[9] !== n.record ? (d = /* @__PURE__ */ r((f, m) => {
|
|
1976
1967
|
const h = s[f];
|
|
1977
|
-
return /* @__PURE__ */ c(
|
|
1968
|
+
return /* @__PURE__ */ c(Nn, { data: {
|
|
1978
1969
|
value: f,
|
|
1979
1970
|
record: n.record,
|
|
1980
1971
|
index: n.index
|
|
@@ -1985,67 +1976,67 @@ function Xi(t) {
|
|
|
1985
1976
|
let u;
|
|
1986
1977
|
return e[11] !== l || e[12] !== o ? (u = /* @__PURE__ */ c(Se, { ...l, children: o }), e[11] = l, e[12] = o, e[13] = u) : u = e[13], u;
|
|
1987
1978
|
}
|
|
1988
|
-
|
|
1989
|
-
const
|
|
1990
|
-
function
|
|
1979
|
+
r(ea, "TagsCell");
|
|
1980
|
+
const ta = "image";
|
|
1981
|
+
function na(t) {
|
|
1991
1982
|
const e = j(6), {
|
|
1992
1983
|
data: l,
|
|
1993
1984
|
attributes: n
|
|
1994
1985
|
} = t;
|
|
1995
1986
|
let i;
|
|
1996
1987
|
e[0] !== n ? (i = n === void 0 ? {} : n, e[0] = n, e[1] = i) : i = e[1];
|
|
1997
|
-
const
|
|
1988
|
+
const a = i;
|
|
1998
1989
|
if (!l.value) {
|
|
1999
1990
|
let o;
|
|
2000
1991
|
return e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ c(lt, { description: null }), e[2] = o) : o = e[2], o;
|
|
2001
1992
|
}
|
|
2002
1993
|
let s;
|
|
2003
|
-
return e[3] !==
|
|
1994
|
+
return e[3] !== a || e[4] !== l.value ? (s = /* @__PURE__ */ c(Ct, { src: l.value, ...a }), e[3] = a, e[4] = l.value, e[5] = s) : s = e[5], s;
|
|
2004
1995
|
}
|
|
2005
|
-
|
|
2006
|
-
const
|
|
2007
|
-
function
|
|
1996
|
+
r(na, "ImageCell");
|
|
1997
|
+
const la = "image-group";
|
|
1998
|
+
function ia(t) {
|
|
2008
1999
|
const e = j(14), {
|
|
2009
2000
|
data: l,
|
|
2010
2001
|
attributes: n
|
|
2011
2002
|
} = t;
|
|
2012
2003
|
let i;
|
|
2013
2004
|
e[0] !== n ? (i = n === void 0 ? {} : n, e[0] = n, e[1] = i) : i = e[1];
|
|
2014
|
-
const
|
|
2005
|
+
const a = i;
|
|
2015
2006
|
if (!l.value || !Array.isArray(l.value) || l.value.length === 0) {
|
|
2016
2007
|
let h;
|
|
2017
2008
|
return e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ c(lt, { description: null }), e[2] = h) : h = e[2], h;
|
|
2018
2009
|
}
|
|
2019
|
-
const s = l.value.length > 1, o =
|
|
2010
|
+
const s = l.value.length > 1, o = a;
|
|
2020
2011
|
let u;
|
|
2021
2012
|
e[3] !== l.value[0] || e[4] !== o ? (u = /* @__PURE__ */ c(Ct, { src: l.value[0], ...o }), e[3] = l.value[0], e[4] = o, e[5] = u) : u = e[5];
|
|
2022
2013
|
const d = u;
|
|
2023
2014
|
let f;
|
|
2024
|
-
e[6] !== l.value.length || e[7] !== s || e[8] !== d ? (f = s ? /* @__PURE__ */ c(
|
|
2015
|
+
e[6] !== l.value.length || e[7] !== s || e[8] !== d ? (f = s ? /* @__PURE__ */ c(On, { count: l.value.length, children: d }) : d, e[6] = l.value.length, e[7] = s, e[8] = d, e[9] = f) : f = e[9];
|
|
2025
2016
|
let m;
|
|
2026
|
-
return e[10] !==
|
|
2017
|
+
return e[10] !== a || e[11] !== l.value || e[12] !== f ? (m = /* @__PURE__ */ c(Ct.PreviewGroup, { items: l.value, ...a, children: f }), e[10] = a, e[11] = l.value, e[12] = f, e[13] = m) : m = e[13], m;
|
|
2027
2018
|
}
|
|
2028
|
-
|
|
2019
|
+
r(ia, "ImageGroupCell");
|
|
2029
2020
|
const {
|
|
2030
|
-
Link:
|
|
2031
|
-
} = Me,
|
|
2032
|
-
function
|
|
2021
|
+
Link: aa
|
|
2022
|
+
} = Me, ra = "link", sa = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, oa = "mailto:";
|
|
2023
|
+
function ca(t) {
|
|
2033
2024
|
const e = j(9);
|
|
2034
2025
|
let l;
|
|
2035
|
-
e[0] !== t.data.value ? (l = t.data.value &&
|
|
2036
|
-
const n = l, i = t.attributes?.href ?? (n ? `${
|
|
2037
|
-
let
|
|
2038
|
-
e[2] !== n || e[3] !== t.attributes ? (
|
|
2026
|
+
e[0] !== t.data.value ? (l = t.data.value && sa.test(t.data.value), e[0] = t.data.value, e[1] = l) : l = e[1];
|
|
2027
|
+
const n = l, i = t.attributes?.href ?? (n ? `${oa}${t.data.value}` : t.data.value);
|
|
2028
|
+
let a;
|
|
2029
|
+
e[2] !== n || e[3] !== t.attributes ? (a = n ? t.attributes : {
|
|
2039
2030
|
...t.attributes,
|
|
2040
2031
|
...t.attributes?.target === void 0 ? {
|
|
2041
2032
|
target: "_blank"
|
|
2042
2033
|
} : {}
|
|
2043
|
-
}, e[2] = n, e[3] = t.attributes, e[4] =
|
|
2044
|
-
const s =
|
|
2034
|
+
}, e[2] = n, e[3] = t.attributes, e[4] = a) : a = e[4];
|
|
2035
|
+
const s = a, o = t.attributes?.children ?? t.data.value;
|
|
2045
2036
|
let u;
|
|
2046
|
-
return e[5] !== i || e[6] !== s || e[7] !== o ? (u = /* @__PURE__ */ c(
|
|
2037
|
+
return e[5] !== i || e[6] !== s || e[7] !== o ? (u = /* @__PURE__ */ c(aa, { href: i, ...s, children: o }), e[5] = i, e[6] = s, e[7] = o, e[8] = u) : u = e[8], u;
|
|
2047
2038
|
}
|
|
2048
|
-
|
|
2039
|
+
r(ca, "LinkCell");
|
|
2049
2040
|
const we = {
|
|
2050
2041
|
currency: "CNY",
|
|
2051
2042
|
currencyDisplay: "symbol",
|
|
@@ -2053,18 +2044,18 @@ const we = {
|
|
|
2053
2044
|
locale: "zh-CN",
|
|
2054
2045
|
useGrouping: !0,
|
|
2055
2046
|
fallback: "-"
|
|
2056
|
-
},
|
|
2057
|
-
function
|
|
2047
|
+
}, ua = "currency";
|
|
2048
|
+
function fa(t, e = we) {
|
|
2058
2049
|
const {
|
|
2059
2050
|
currency: l = we.currency,
|
|
2060
2051
|
currencyDisplay: n = we.currencyDisplay,
|
|
2061
2052
|
decimals: i = we.decimals,
|
|
2062
|
-
locale:
|
|
2053
|
+
locale: a = we.locale,
|
|
2063
2054
|
useGrouping: s = we.useGrouping,
|
|
2064
2055
|
fallback: o = we.fallback
|
|
2065
|
-
} = e, u =
|
|
2066
|
-
return isNaN(u) || !isFinite(u) ? o : new Intl.NumberFormat(
|
|
2067
|
-
style:
|
|
2056
|
+
} = e, u = da(t);
|
|
2057
|
+
return isNaN(u) || !isFinite(u) ? o : new Intl.NumberFormat(a, {
|
|
2058
|
+
style: ua,
|
|
2068
2059
|
currency: l,
|
|
2069
2060
|
currencyDisplay: n,
|
|
2070
2061
|
minimumFractionDigits: i,
|
|
@@ -2072,76 +2063,76 @@ function or(t, e = we) {
|
|
|
2072
2063
|
useGrouping: s
|
|
2073
2064
|
}).format(u);
|
|
2074
2065
|
}
|
|
2075
|
-
|
|
2076
|
-
function
|
|
2066
|
+
r(fa, "formatCurrency");
|
|
2067
|
+
function da(t) {
|
|
2077
2068
|
if (typeof t == "number")
|
|
2078
2069
|
return t;
|
|
2079
|
-
if (
|
|
2070
|
+
if (Mi(t))
|
|
2080
2071
|
return NaN;
|
|
2081
2072
|
const e = t.replace(/[^\d.-]/g, "");
|
|
2082
2073
|
return parseFloat(e);
|
|
2083
2074
|
}
|
|
2084
|
-
|
|
2075
|
+
r(da, "parseAmount");
|
|
2085
2076
|
const {
|
|
2086
|
-
Text:
|
|
2087
|
-
} = Me,
|
|
2088
|
-
function
|
|
2077
|
+
Text: ma
|
|
2078
|
+
} = Me, ha = "currency";
|
|
2079
|
+
function Ta(t) {
|
|
2089
2080
|
const e = j(11), {
|
|
2090
2081
|
data: l,
|
|
2091
2082
|
attributes: n
|
|
2092
2083
|
} = t;
|
|
2093
2084
|
let i;
|
|
2094
2085
|
e[0] !== n ? (i = n === void 0 ? {} : n, e[0] = n, e[1] = i) : i = e[1];
|
|
2095
|
-
const
|
|
2086
|
+
const a = i;
|
|
2096
2087
|
let s, o;
|
|
2097
|
-
e[2] !==
|
|
2088
|
+
e[2] !== a ? ({
|
|
2098
2089
|
format: s,
|
|
2099
2090
|
...o
|
|
2100
|
-
} =
|
|
2091
|
+
} = a, e[2] = a, e[3] = s, e[4] = o) : (s = e[3], o = e[4]);
|
|
2101
2092
|
let u;
|
|
2102
|
-
e[5] !== l.value || e[6] !== s ? (u =
|
|
2093
|
+
e[5] !== l.value || e[6] !== s ? (u = fa(l.value, s), e[5] = l.value, e[6] = s, e[7] = u) : u = e[7];
|
|
2103
2094
|
const d = u, f = o.children ?? d;
|
|
2104
2095
|
let m;
|
|
2105
|
-
return e[8] !== f || e[9] !== o ? (m = /* @__PURE__ */ c(
|
|
2096
|
+
return e[8] !== f || e[9] !== o ? (m = /* @__PURE__ */ c(ma, { ...o, children: f }), e[8] = f, e[9] = o, e[10] = m) : m = e[10], m;
|
|
2106
2097
|
}
|
|
2107
|
-
|
|
2098
|
+
r(Ta, "CurrencyCell");
|
|
2108
2099
|
const {
|
|
2109
|
-
Link:
|
|
2110
|
-
} = Me,
|
|
2111
|
-
function
|
|
2100
|
+
Link: Ea
|
|
2101
|
+
} = Me, _a = "primary-key";
|
|
2102
|
+
function pn(t) {
|
|
2112
2103
|
const e = j(7), {
|
|
2113
2104
|
data: l,
|
|
2114
2105
|
attributes: n
|
|
2115
2106
|
} = t;
|
|
2116
2107
|
let i;
|
|
2117
|
-
e[0] !== n || e[1] !== l.record ? (i = /* @__PURE__ */
|
|
2118
|
-
let
|
|
2119
|
-
return e[3] !== n || e[4] !== l.value || e[5] !== i ? (
|
|
2120
|
-
}
|
|
2121
|
-
|
|
2122
|
-
const
|
|
2123
|
-
[
|
|
2124
|
-
[
|
|
2125
|
-
[
|
|
2126
|
-
[
|
|
2127
|
-
[
|
|
2128
|
-
[
|
|
2129
|
-
[
|
|
2130
|
-
[
|
|
2131
|
-
[
|
|
2132
|
-
[
|
|
2133
|
-
[
|
|
2134
|
-
[
|
|
2135
|
-
[
|
|
2108
|
+
e[0] !== n || e[1] !== l.record ? (i = /* @__PURE__ */ r(() => n?.onClick?.(l.record), "t0"), e[0] = n, e[1] = l.record, e[2] = i) : i = e[2];
|
|
2109
|
+
let a;
|
|
2110
|
+
return e[3] !== n || e[4] !== l.value || e[5] !== i ? (a = /* @__PURE__ */ c(Ea, { copyable: !0, ...n, onClick: i, children: l.value }), e[3] = n, e[4] = l.value, e[5] = i, e[6] = a) : a = e[6], a;
|
|
2111
|
+
}
|
|
2112
|
+
r(pn, "PrimaryKeyCell");
|
|
2113
|
+
const Sa = at.create([
|
|
2114
|
+
[xi, Je],
|
|
2115
|
+
[$i, Cn],
|
|
2116
|
+
[Xi, In],
|
|
2117
|
+
[Zi, Nn],
|
|
2118
|
+
[Ji, ea],
|
|
2119
|
+
[Ki, vn],
|
|
2120
|
+
[Gi, qi],
|
|
2121
|
+
[ta, na],
|
|
2122
|
+
[la, ia],
|
|
2123
|
+
[ra, ca],
|
|
2124
|
+
[ha, Ta],
|
|
2125
|
+
[Ui, zi],
|
|
2126
|
+
[_a, pn]
|
|
2136
2127
|
]);
|
|
2137
|
-
function
|
|
2138
|
-
const l =
|
|
2128
|
+
function ya(t, e) {
|
|
2129
|
+
const l = Sa.get(t);
|
|
2139
2130
|
if (l)
|
|
2140
|
-
return (n, i,
|
|
2131
|
+
return (n, i, a) => {
|
|
2141
2132
|
const s = {
|
|
2142
2133
|
value: n,
|
|
2143
2134
|
record: i,
|
|
2144
|
-
index:
|
|
2135
|
+
index: a
|
|
2145
2136
|
};
|
|
2146
2137
|
return Zt.createElement(l, {
|
|
2147
2138
|
attributes: e,
|
|
@@ -2149,7 +2140,7 @@ function Er(t, e) {
|
|
|
2149
2140
|
});
|
|
2150
2141
|
};
|
|
2151
2142
|
}
|
|
2152
|
-
|
|
2143
|
+
r(ya, "typedCellRender");
|
|
2153
2144
|
function Yt(t) {
|
|
2154
2145
|
const e = j(11);
|
|
2155
2146
|
let l;
|
|
@@ -2158,71 +2149,71 @@ function Yt(t) {
|
|
|
2158
2149
|
}, e[0] = l) : l = e[0];
|
|
2159
2150
|
const n = !t.hidden;
|
|
2160
2151
|
let i;
|
|
2161
|
-
e[1] !== t ? (i = /* @__PURE__ */
|
|
2162
|
-
let
|
|
2163
|
-
e[3] !== t.columnDefinition.label || e[4] !== t.columnDefinition.primaryKey || e[5] !== n || e[6] !== i ? (
|
|
2152
|
+
e[1] !== t ? (i = /* @__PURE__ */ r((u) => t.onVisibleChange(!u.target.checked), "t2"), e[1] = t, e[2] = i) : i = e[2];
|
|
2153
|
+
let a;
|
|
2154
|
+
e[3] !== t.columnDefinition.label || e[4] !== t.columnDefinition.primaryKey || e[5] !== n || e[6] !== i ? (a = /* @__PURE__ */ c(Xt, { checked: n, disabled: t.columnDefinition.primaryKey, onChange: i, children: t.columnDefinition.label }), e[3] = t.columnDefinition.label, e[4] = t.columnDefinition.primaryKey, e[5] = n, e[6] = i, e[7] = a) : a = e[7];
|
|
2164
2155
|
let s;
|
|
2165
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ c(
|
|
2156
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ c(en, {}), e[8] = s) : s = e[8];
|
|
2166
2157
|
let o;
|
|
2167
|
-
return e[9] !==
|
|
2168
|
-
|
|
2158
|
+
return e[9] !== a ? (o = /* @__PURE__ */ Q(pe, { align: "center", justify: "space-between", style: l, children: [
|
|
2159
|
+
a,
|
|
2169
2160
|
s
|
|
2170
|
-
] }), e[9] =
|
|
2171
|
-
}
|
|
2172
|
-
|
|
2173
|
-
const
|
|
2174
|
-
item:
|
|
2175
|
-
dragging:
|
|
2176
|
-
tips:
|
|
2177
|
-
groupTitle:
|
|
2161
|
+
] }), e[9] = a, e[10] = o) : o = e[10], o;
|
|
2162
|
+
}
|
|
2163
|
+
r(Yt, "TableFieldItem");
|
|
2164
|
+
const Ca = "_item_59wbi_1", va = "_dragging_59wbi_9", Ia = "_tips_59wbi_31", Na = "_groupTitle_59wbi_38", Pe = {
|
|
2165
|
+
item: Ca,
|
|
2166
|
+
dragging: va,
|
|
2167
|
+
tips: Ia,
|
|
2168
|
+
groupTitle: Na
|
|
2178
2169
|
};
|
|
2179
|
-
function
|
|
2170
|
+
function pa(t) {
|
|
2180
2171
|
const e = j(21), {
|
|
2181
2172
|
ref: l,
|
|
2182
2173
|
fields: n,
|
|
2183
2174
|
initialColumns: i,
|
|
2184
|
-
onChange:
|
|
2175
|
+
onChange: a,
|
|
2185
2176
|
className: s
|
|
2186
|
-
} = t, [o, u] =
|
|
2177
|
+
} = t, [o, u] = X(null), [d, f] = X(i);
|
|
2187
2178
|
let m, h;
|
|
2188
|
-
e[0] !== i ? (m = /* @__PURE__ */
|
|
2179
|
+
e[0] !== i ? (m = /* @__PURE__ */ r(() => {
|
|
2189
2180
|
f(i);
|
|
2190
2181
|
}, "t0"), h = [i], e[0] = i, e[1] = m, e[2] = h) : (m = e[1], h = e[2]), Le(m, h);
|
|
2191
|
-
const T = d.map(
|
|
2182
|
+
const T = d.map(Da), S = T.filter(Oa), y = T.filter(Ra), R = T.filter(ba), w = /* @__PURE__ */ r((C, z) => {
|
|
2192
2183
|
const W = T.map((U, K) => K === C ? {
|
|
2193
2184
|
...U,
|
|
2194
2185
|
hidden: z
|
|
2195
2186
|
} : U);
|
|
2196
|
-
f(W),
|
|
2187
|
+
f(W), a?.(W);
|
|
2197
2188
|
}, "handleVisibilityChange");
|
|
2198
2189
|
let A;
|
|
2199
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */
|
|
2190
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ r((C, z, W) => {
|
|
2200
2191
|
const U = C.currentTarget.cloneNode(!0);
|
|
2201
2192
|
U.style.backgroundColor = "#F5F5F5", U.style.transform = "scale(1.02)", U.style.opacity = "1.0", U.style.boxShadow = "0 2px 8px rgba(0, 0, 0, 0.15)", U.style.position = "absolute", U.style.top = "-1000px", U.style.width = `${C.currentTarget.clientWidth}px`, U.style.height = `${C.currentTarget.clientHeight}px`, document.body.appendChild(U), C.dataTransfer.setDragImage(U, C.nativeEvent.offsetX, C.nativeEvent.offsetY), setTimeout(() => document.body.removeChild(U), 0), C.dataTransfer.effectAllowed = "move", u({
|
|
2202
2193
|
index: W,
|
|
2203
2194
|
group: z
|
|
2204
2195
|
});
|
|
2205
2196
|
}, "t2"), e[3] = A) : A = e[3];
|
|
2206
|
-
const O = A, P =
|
|
2197
|
+
const O = A, P = Aa;
|
|
2207
2198
|
let D;
|
|
2208
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */
|
|
2199
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ r(() => {
|
|
2209
2200
|
u(null);
|
|
2210
2201
|
}, "t3"), e[4] = D) : D = e[4];
|
|
2211
|
-
const F = D, $ = /* @__PURE__ */
|
|
2202
|
+
const F = D, $ = /* @__PURE__ */ r((C, z, W) => {
|
|
2212
2203
|
if (!o || o.index === W || z === "fixed" && S.length >= 3)
|
|
2213
2204
|
return;
|
|
2214
2205
|
const U = z === "fixed" ? W + 1 : W, K = [...T], [q] = K.splice(o.index, 1);
|
|
2215
|
-
q.fixed = z === "fixed", K.splice(U, 0, q), K.forEach(
|
|
2216
|
-
}, "handleDrop"), k = /* @__PURE__ */
|
|
2206
|
+
q.fixed = z === "fixed", K.splice(U, 0, q), K.forEach(La), f(K), a?.(K);
|
|
2207
|
+
}, "handleDrop"), k = /* @__PURE__ */ r((C, z) => {
|
|
2217
2208
|
const W = n.find((U) => U.name === C.name);
|
|
2218
|
-
return W ? /* @__PURE__ */ c("div", { className: `${Pe.item} ${o?.index === C.index ? Pe.dragging : ""}`, draggable: !W.primaryKey, onDragStart: /* @__PURE__ */
|
|
2219
|
-
}, "renderDraggableItem"), M = /* @__PURE__ */
|
|
2209
|
+
return W ? /* @__PURE__ */ c("div", { className: `${Pe.item} ${o?.index === C.index ? Pe.dragging : ""}`, draggable: !W.primaryKey, onDragStart: /* @__PURE__ */ r((U) => O(U, z, C.index), "onDragStart"), onDragOver: P, onDragEnd: F, onDrop: /* @__PURE__ */ r((U) => $(U, z, C.index), "onDrop"), children: /* @__PURE__ */ c(Yt, { columnDefinition: W, fixed: C.fixed || !1, hidden: C.hidden, onVisibleChange: /* @__PURE__ */ r((U) => w(C.index, U), "onVisibleChange") }) }, W.name) : /* @__PURE__ */ c(Ee, {});
|
|
2210
|
+
}, "renderDraggableItem"), M = /* @__PURE__ */ r((C) => {
|
|
2220
2211
|
const z = n.find((W) => W.name === C.name);
|
|
2221
|
-
return z ? /* @__PURE__ */ c("div", { className: Pe.item, children: /* @__PURE__ */ c(Yt, { columnDefinition: z, fixed: C.fixed || !1, hidden: C.hidden, onVisibleChange: /* @__PURE__ */
|
|
2212
|
+
return z ? /* @__PURE__ */ c("div", { className: Pe.item, children: /* @__PURE__ */ c(Yt, { columnDefinition: z, fixed: C.fixed || !1, hidden: C.hidden, onVisibleChange: /* @__PURE__ */ r((W) => w(C.index, W), "onVisibleChange") }) }, z.name) : /* @__PURE__ */ c(Ee, {});
|
|
2222
2213
|
}, "renderStaticItem");
|
|
2223
2214
|
let x;
|
|
2224
|
-
e[5] !== t.initialColumns ? (x = /* @__PURE__ */
|
|
2225
|
-
reset: /* @__PURE__ */
|
|
2215
|
+
e[5] !== t.initialColumns ? (x = /* @__PURE__ */ r(() => ({
|
|
2216
|
+
reset: /* @__PURE__ */ r(() => {
|
|
2226
2217
|
f(t.initialColumns);
|
|
2227
2218
|
}, "reset")
|
|
2228
2219
|
}), "t4"), e[5] = t.initialColumns, e[6] = x) : x = e[6], Ae(l, x);
|
|
@@ -2241,7 +2232,7 @@ function vr(t) {
|
|
|
2241
2232
|
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ c("div", { className: Pe.groupTitle, children: "未显示字段" }), e[10] = b) : b = e[10];
|
|
2242
2233
|
const p = R.map((C) => M(C));
|
|
2243
2234
|
let H;
|
|
2244
|
-
return e[11] !== L || e[12] !== s || e[13] !== N || e[14] !== v || e[15] !== b || e[16] !== p || e[17] !== I || e[18] !== E || e[19] !== _ ? (H = /* @__PURE__ */
|
|
2235
|
+
return e[11] !== L || e[12] !== s || e[13] !== N || e[14] !== v || e[15] !== b || e[16] !== p || e[17] !== I || e[18] !== E || e[19] !== _ ? (H = /* @__PURE__ */ Q(L, { size: Y, orientation: V, style: I, className: s, children: [
|
|
2245
2236
|
E,
|
|
2246
2237
|
_,
|
|
2247
2238
|
N,
|
|
@@ -2250,36 +2241,36 @@ function vr(t) {
|
|
|
2250
2241
|
p
|
|
2251
2242
|
] }), e[11] = L, e[12] = s, e[13] = N, e[14] = v, e[15] = b, e[16] = p, e[17] = I, e[18] = E, e[19] = _, e[20] = H) : H = e[20], H;
|
|
2252
2243
|
}
|
|
2253
|
-
|
|
2254
|
-
function
|
|
2244
|
+
r(pa, "TableSettingPanel");
|
|
2245
|
+
function La(t, e) {
|
|
2255
2246
|
return t.index = e;
|
|
2256
2247
|
}
|
|
2257
|
-
|
|
2258
|
-
function
|
|
2248
|
+
r(La, "_temp6");
|
|
2249
|
+
function Aa(t) {
|
|
2259
2250
|
t.preventDefault(), t.dataTransfer.dropEffect = "move";
|
|
2260
2251
|
}
|
|
2261
|
-
|
|
2262
|
-
function
|
|
2252
|
+
r(Aa, "_temp5");
|
|
2253
|
+
function ba(t) {
|
|
2263
2254
|
return t.hidden;
|
|
2264
2255
|
}
|
|
2265
|
-
|
|
2266
|
-
function
|
|
2256
|
+
r(ba, "_temp4");
|
|
2257
|
+
function Ra(t) {
|
|
2267
2258
|
return !t.hidden && !t.fixed;
|
|
2268
2259
|
}
|
|
2269
|
-
|
|
2270
|
-
function
|
|
2260
|
+
r(Ra, "_temp3$1");
|
|
2261
|
+
function Oa(t) {
|
|
2271
2262
|
return t.fixed;
|
|
2272
2263
|
}
|
|
2273
|
-
|
|
2274
|
-
function
|
|
2264
|
+
r(Oa, "_temp2$2");
|
|
2265
|
+
function Da(t, e) {
|
|
2275
2266
|
return {
|
|
2276
2267
|
...t,
|
|
2277
2268
|
index: e
|
|
2278
2269
|
};
|
|
2279
2270
|
}
|
|
2280
|
-
|
|
2281
|
-
const
|
|
2282
|
-
configurableColumnHeader:
|
|
2271
|
+
r(Da, "_temp$5");
|
|
2272
|
+
const wa = "_configurableColumnHeader_1gpsi_1", Fa = {
|
|
2273
|
+
configurableColumnHeader: wa
|
|
2283
2274
|
};
|
|
2284
2275
|
function At(t, e) {
|
|
2285
2276
|
if (t === e)
|
|
@@ -2295,28 +2286,28 @@ function At(t, e) {
|
|
|
2295
2286
|
}
|
|
2296
2287
|
return !1;
|
|
2297
2288
|
}
|
|
2298
|
-
|
|
2299
|
-
function
|
|
2289
|
+
r(At, "deepEqual");
|
|
2290
|
+
function Pa(t) {
|
|
2300
2291
|
return t && t.length > 0 ? t.map((e, l) => ({
|
|
2301
2292
|
...e,
|
|
2302
2293
|
key: l
|
|
2303
2294
|
})) : [];
|
|
2304
2295
|
}
|
|
2305
|
-
|
|
2306
|
-
function
|
|
2296
|
+
r(Pa, "mapToTableRecord");
|
|
2297
|
+
function xa(t, ...e) {
|
|
2307
2298
|
let l = 0;
|
|
2308
2299
|
return t.replace(/%@/g, () => e[l++] ?? "");
|
|
2309
2300
|
}
|
|
2310
|
-
|
|
2301
|
+
r(xa, "format");
|
|
2311
2302
|
String.prototype.format = function(...t) {
|
|
2312
|
-
return
|
|
2303
|
+
return xa(this.toString(), ...t);
|
|
2313
2304
|
};
|
|
2314
|
-
function
|
|
2305
|
+
function $a(t) {
|
|
2315
2306
|
const e = j(41), {
|
|
2316
2307
|
ref: l,
|
|
2317
2308
|
fields: n,
|
|
2318
2309
|
columns: i,
|
|
2319
|
-
onColumnsChange:
|
|
2310
|
+
onColumnsChange: a,
|
|
2320
2311
|
actionColumn: s,
|
|
2321
2312
|
tableSize: o,
|
|
2322
2313
|
dataSource: u,
|
|
@@ -2332,11 +2323,11 @@ function Fr(t) {
|
|
|
2332
2323
|
setSelectedRowKeys: w,
|
|
2333
2324
|
reset: A,
|
|
2334
2325
|
clearSelectedRowKeys: O
|
|
2335
|
-
} =
|
|
2326
|
+
} = Va();
|
|
2336
2327
|
let P;
|
|
2337
|
-
if (e[0] !== s || e[1] !== i || e[2] !== n || e[3] !== h || e[4] !==
|
|
2328
|
+
if (e[0] !== s || e[1] !== i || e[2] !== n || e[3] !== h || e[4] !== a || e[5] !== t.actionColumn || e[6] !== T) {
|
|
2338
2329
|
let V;
|
|
2339
|
-
if (e[8] !== n || e[9] !== h ? (V = /* @__PURE__ */
|
|
2330
|
+
if (e[8] !== n || e[9] !== h ? (V = /* @__PURE__ */ r((I) => {
|
|
2340
2331
|
const E = n.find((_) => _.name === I.name);
|
|
2341
2332
|
return {
|
|
2342
2333
|
key: I.key,
|
|
@@ -2347,22 +2338,22 @@ function Fr(t) {
|
|
|
2347
2338
|
sortOrder: I.sortOrder,
|
|
2348
2339
|
width: I.width,
|
|
2349
2340
|
hidden: I.hidden,
|
|
2350
|
-
render: /* @__PURE__ */
|
|
2341
|
+
render: /* @__PURE__ */ r((_, N, v) => {
|
|
2351
2342
|
if (E?.render)
|
|
2352
2343
|
return E.render(_, N, v);
|
|
2353
2344
|
if (E?.primaryKey)
|
|
2354
|
-
return /* @__PURE__ */ c(
|
|
2345
|
+
return /* @__PURE__ */ c(pn, { data: {
|
|
2355
2346
|
value: _,
|
|
2356
2347
|
record: N,
|
|
2357
2348
|
index: v
|
|
2358
2349
|
}, attributes: {
|
|
2359
|
-
onClick: /* @__PURE__ */
|
|
2350
|
+
onClick: /* @__PURE__ */ r((p) => {
|
|
2360
2351
|
h?.(_, p);
|
|
2361
2352
|
}, "onClick"),
|
|
2362
2353
|
...E.attributes
|
|
2363
2354
|
} });
|
|
2364
|
-
const b =
|
|
2365
|
-
return b ? b(_, N, v) : /* @__PURE__ */ c(
|
|
2355
|
+
const b = ya(E?.type || "text", E?.attributes || {});
|
|
2356
|
+
return b ? b(_, N, v) : /* @__PURE__ */ c(In, { data: {
|
|
2366
2357
|
value: String(_),
|
|
2367
2358
|
record: N,
|
|
2368
2359
|
index: v
|
|
@@ -2371,26 +2362,26 @@ function Fr(t) {
|
|
|
2371
2362
|
...E?.attributes || {}
|
|
2372
2363
|
};
|
|
2373
2364
|
}, "t02"), e[8] = n, e[9] = h, e[10] = V) : V = e[10], P = i.map(V), s) {
|
|
2374
|
-
const I = s.dataIndex || n.find(
|
|
2365
|
+
const I = s.dataIndex || n.find(ka)?.name || "id";
|
|
2375
2366
|
let E;
|
|
2376
|
-
e[11] !== s.title || e[12] !== i || e[13] !== n || e[14] !==
|
|
2367
|
+
e[11] !== s.title || e[12] !== i || e[13] !== n || e[14] !== a || e[15] !== T ? (E = /* @__PURE__ */ r(() => {
|
|
2377
2368
|
if (T) {
|
|
2378
|
-
const N = /* @__PURE__ */ c(
|
|
2379
|
-
return /* @__PURE__ */
|
|
2369
|
+
const N = /* @__PURE__ */ c(pa, { fields: n, initialColumns: i, onChange: a });
|
|
2370
|
+
return /* @__PURE__ */ Q("div", { className: Fa.configurableColumnHeader, children: [
|
|
2380
2371
|
/* @__PURE__ */ c("span", { children: s.title }),
|
|
2381
|
-
/* @__PURE__ */ c(
|
|
2372
|
+
/* @__PURE__ */ c(wn, { content: N, title: T.title || "Setting", placement: "bottomRight", trigger: "click", children: /* @__PURE__ */ c(tn, {}) })
|
|
2382
2373
|
] });
|
|
2383
2374
|
}
|
|
2384
2375
|
return s.title;
|
|
2385
|
-
}, "t12"), e[11] = s.title, e[12] = i, e[13] = n, e[14] =
|
|
2376
|
+
}, "t12"), e[11] = s.title, e[12] = i, e[13] = n, e[14] = a, e[15] = T, e[16] = E) : E = e[16];
|
|
2386
2377
|
let _;
|
|
2387
|
-
e[17] !== i.length || e[18] !== t.actionColumn ? (_ = /* @__PURE__ */
|
|
2378
|
+
e[17] !== i.length || e[18] !== t.actionColumn ? (_ = /* @__PURE__ */ r((N, v) => {
|
|
2388
2379
|
const p = {
|
|
2389
2380
|
value: t.actionColumn.actions(v),
|
|
2390
2381
|
record: v,
|
|
2391
2382
|
index: i.length + 1
|
|
2392
2383
|
};
|
|
2393
|
-
return /* @__PURE__ */ c(
|
|
2384
|
+
return /* @__PURE__ */ c(Cn, { data: p });
|
|
2394
2385
|
}, "t22"), e[17] = i.length, e[18] = t.actionColumn, e[19] = _) : _ = e[19], P.push({
|
|
2395
2386
|
key: "action",
|
|
2396
2387
|
title: E,
|
|
@@ -2400,57 +2391,57 @@ function Fr(t) {
|
|
|
2400
2391
|
render: _
|
|
2401
2392
|
});
|
|
2402
2393
|
}
|
|
2403
|
-
e[0] = s, e[1] = i, e[2] = n, e[3] = h, e[4] =
|
|
2394
|
+
e[0] = s, e[1] = i, e[2] = n, e[3] = h, e[4] = a, e[5] = t.actionColumn, e[6] = T, e[7] = P;
|
|
2404
2395
|
} else
|
|
2405
2396
|
P = e[7];
|
|
2406
2397
|
let D;
|
|
2407
2398
|
e[20] !== d || e[21] !== m || e[22] !== R || e[23] !== w ? (D = d ? {
|
|
2408
2399
|
selectedRowKeys: R,
|
|
2409
2400
|
fixed: !0,
|
|
2410
|
-
onChange: /* @__PURE__ */
|
|
2401
|
+
onChange: /* @__PURE__ */ r((V, I) => {
|
|
2411
2402
|
w(V), m?.(I);
|
|
2412
2403
|
}, "onChange")
|
|
2413
2404
|
} : void 0, e[20] = d, e[21] = m, e[22] = R, e[23] = w, e[24] = D) : D = e[24];
|
|
2414
2405
|
const F = D;
|
|
2415
2406
|
let $;
|
|
2416
|
-
e[25] !== O || e[26] !== A ? ($ = /* @__PURE__ */
|
|
2407
|
+
e[25] !== O || e[26] !== A ? ($ = /* @__PURE__ */ r(() => ({
|
|
2417
2408
|
clearSelectedRowKeys: O,
|
|
2418
2409
|
reset: A
|
|
2419
2410
|
}), "t1"), e[25] = O, e[26] = A, e[27] = $) : $ = e[27], Ae(l, $);
|
|
2420
2411
|
let k;
|
|
2421
|
-
e[28] !== u ? (k =
|
|
2412
|
+
e[28] !== u ? (k = Pa(u), e[28] = u, e[29] = k) : k = e[29];
|
|
2422
2413
|
let M;
|
|
2423
2414
|
e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
|
|
2424
2415
|
x: "max-content"
|
|
2425
2416
|
}, e[30] = M) : M = e[30];
|
|
2426
2417
|
const x = o || "middle";
|
|
2427
2418
|
let L;
|
|
2428
|
-
e[31] !== f ? (L = /* @__PURE__ */
|
|
2419
|
+
e[31] !== f ? (L = /* @__PURE__ */ r((V, I, E, _) => {
|
|
2429
2420
|
_.action === "sort" && f && (Array.isArray(E) ? f(E) : f([E]));
|
|
2430
2421
|
}, "t5"), e[31] = f, e[32] = L) : L = e[32];
|
|
2431
2422
|
let Y;
|
|
2432
|
-
return e[33] !== y || e[34] !== S || e[35] !== F || e[36] !== k || e[37] !== x || e[38] !== L || e[39] !== P ? (Y = /* @__PURE__ */ c(
|
|
2423
|
+
return e[33] !== y || e[34] !== S || e[35] !== F || e[36] !== k || e[37] !== x || e[38] !== L || e[39] !== P ? (Y = /* @__PURE__ */ c(Dn, { loading: S, dataSource: k, rowSelection: F, columns: P, ...y, scroll: M, size: x, onChange: L }), e[33] = y, e[34] = S, e[35] = F, e[36] = k, e[37] = x, e[38] = L, e[39] = P, e[40] = Y) : Y = e[40], Y;
|
|
2433
2424
|
}
|
|
2434
|
-
a
|
|
2435
|
-
function
|
|
2425
|
+
r($a, "ViewTable");
|
|
2426
|
+
function ka(t) {
|
|
2436
2427
|
return t.primaryKey;
|
|
2437
2428
|
}
|
|
2438
|
-
|
|
2439
|
-
function
|
|
2440
|
-
const [t, e] =
|
|
2429
|
+
r(ka, "_temp$4");
|
|
2430
|
+
function Va() {
|
|
2431
|
+
const [t, e] = X([]), l = /* @__PURE__ */ r(() => {
|
|
2441
2432
|
e([]);
|
|
2442
2433
|
}, "clearSelectedRowKeysFn");
|
|
2443
2434
|
return {
|
|
2444
2435
|
selectedRowKeys: t,
|
|
2445
2436
|
setSelectedRowKeys: e,
|
|
2446
2437
|
clearSelectedRowKeys: l,
|
|
2447
|
-
reset: /* @__PURE__ */
|
|
2438
|
+
reset: /* @__PURE__ */ r(() => {
|
|
2448
2439
|
l();
|
|
2449
2440
|
}, "resetFn")
|
|
2450
2441
|
};
|
|
2451
2442
|
}
|
|
2452
|
-
|
|
2453
|
-
const
|
|
2443
|
+
r(Va, "useViewTableState");
|
|
2444
|
+
const Ma = [{
|
|
2454
2445
|
label: "1 分钟",
|
|
2455
2446
|
key: "1",
|
|
2456
2447
|
refreshInterval: 60 * 1e3
|
|
@@ -2467,25 +2458,25 @@ const $r = [{
|
|
|
2467
2458
|
key: "0",
|
|
2468
2459
|
refreshInterval: 0
|
|
2469
2460
|
};
|
|
2470
|
-
function
|
|
2461
|
+
function Ha(t) {
|
|
2471
2462
|
const e = j(26), {
|
|
2472
2463
|
items: l
|
|
2473
|
-
} = t, n = l === void 0 ?
|
|
2464
|
+
} = t, n = l === void 0 ? Ma : l;
|
|
2474
2465
|
let i;
|
|
2475
2466
|
e[0] !== n ? (i = [...n, Wt], e[0] = n, e[1] = i) : i = e[1];
|
|
2476
|
-
const
|
|
2467
|
+
const a = i, [s, o] = X(Wt), u = Re(null), {
|
|
2477
2468
|
publish: d
|
|
2478
2469
|
} = Dt(), {
|
|
2479
2470
|
locale: f
|
|
2480
2471
|
} = De();
|
|
2481
2472
|
let m;
|
|
2482
|
-
e[2] !==
|
|
2483
|
-
const x =
|
|
2473
|
+
e[2] !== a ? (m = /* @__PURE__ */ r((M) => {
|
|
2474
|
+
const x = a.find((L) => L.key === M.key);
|
|
2484
2475
|
x && o(x);
|
|
2485
|
-
}, "t3"), e[2] =
|
|
2476
|
+
}, "t3"), e[2] = a, e[3] = m) : m = e[3];
|
|
2486
2477
|
const h = m;
|
|
2487
2478
|
let T;
|
|
2488
|
-
e[4] !== d || e[5] !== s.refreshInterval ? (T = /* @__PURE__ */
|
|
2479
|
+
e[4] !== d || e[5] !== s.refreshInterval ? (T = /* @__PURE__ */ r(() => (u.current && (clearInterval(u.current), u.current = null), s.refreshInterval > 0 && (u.current = setInterval(async () => {
|
|
2489
2480
|
await d();
|
|
2490
2481
|
}, s.refreshInterval)), () => {
|
|
2491
2482
|
u.current && clearInterval(u.current);
|
|
@@ -2493,7 +2484,7 @@ function kr(t) {
|
|
|
2493
2484
|
let S;
|
|
2494
2485
|
e[7] !== d || e[8] !== s ? (S = [s, d], e[7] = d, e[8] = s, e[9] = S) : S = e[9], Le(T, S);
|
|
2495
2486
|
let y;
|
|
2496
|
-
e[10] !==
|
|
2487
|
+
e[10] !== a ? (y = a.map(Ua), e[10] = a, e[11] = y) : y = e[11];
|
|
2497
2488
|
const R = y;
|
|
2498
2489
|
let w;
|
|
2499
2490
|
e[12] !== s.key ? (w = [s.key], e[12] = s.key, e[13] = w) : w = e[13];
|
|
@@ -2511,7 +2502,7 @@ function kr(t) {
|
|
|
2511
2502
|
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ c(We, {}), e[19] = D) : D = e[19];
|
|
2512
2503
|
const F = f.topBar?.autoRefresh?.title || "刷新率";
|
|
2513
2504
|
let $;
|
|
2514
|
-
e[20] !== s.label || e[21] !== F ? ($ = /* @__PURE__ */
|
|
2505
|
+
e[20] !== s.label || e[21] !== F ? ($ = /* @__PURE__ */ Q(Te, { icon: D, iconPlacement: "end", children: [
|
|
2515
2506
|
F,
|
|
2516
2507
|
" :",
|
|
2517
2508
|
s.label
|
|
@@ -2519,37 +2510,37 @@ function kr(t) {
|
|
|
2519
2510
|
let k;
|
|
2520
2511
|
return e[23] !== O || e[24] !== $ ? (k = /* @__PURE__ */ c(xe, { menu: O, trigger: P, children: $ }), e[23] = O, e[24] = $, e[25] = k) : k = e[25], k;
|
|
2521
2512
|
}
|
|
2522
|
-
|
|
2523
|
-
function
|
|
2513
|
+
r(Ha, "AutoRefreshBarItem");
|
|
2514
|
+
function Ua(t) {
|
|
2524
2515
|
return {
|
|
2525
2516
|
key: t.key,
|
|
2526
2517
|
label: t.label
|
|
2527
2518
|
};
|
|
2528
2519
|
}
|
|
2529
|
-
|
|
2530
|
-
const
|
|
2531
|
-
item:
|
|
2532
|
-
active:
|
|
2520
|
+
r(Ua, "_temp$3");
|
|
2521
|
+
const za = "_item_1c27u_1", ga = "_active_1c27u_16", Kt = {
|
|
2522
|
+
item: za,
|
|
2523
|
+
active: ga
|
|
2533
2524
|
};
|
|
2534
2525
|
function ze(t) {
|
|
2535
2526
|
const e = j(3), {
|
|
2536
2527
|
icon: l,
|
|
2537
2528
|
active: n
|
|
2538
2529
|
} = t, i = `${Kt.item} ${n ? Kt.active : ""}`;
|
|
2539
|
-
let
|
|
2540
|
-
return e[0] !== l || e[1] !== i ? (
|
|
2530
|
+
let a;
|
|
2531
|
+
return e[0] !== l || e[1] !== i ? (a = /* @__PURE__ */ c("div", { className: i, children: l }), e[0] = l, e[1] = i, e[2] = a) : a = e[2], a;
|
|
2541
2532
|
}
|
|
2542
|
-
|
|
2543
|
-
function
|
|
2533
|
+
r(ze, "BarItem");
|
|
2534
|
+
function Ba(t) {
|
|
2544
2535
|
const e = j(23), {
|
|
2545
2536
|
className: l,
|
|
2546
2537
|
defaultTableSize: n,
|
|
2547
2538
|
onChange: i
|
|
2548
|
-
} = t, [
|
|
2539
|
+
} = t, [a, s] = X(n), {
|
|
2549
2540
|
locale: o
|
|
2550
2541
|
} = De();
|
|
2551
2542
|
let u, d;
|
|
2552
|
-
e[0] !== n ? (u = /* @__PURE__ */
|
|
2543
|
+
e[0] !== n ? (u = /* @__PURE__ */ r(() => {
|
|
2553
2544
|
s(n);
|
|
2554
2545
|
}, "t0"), d = [n], e[0] = n, e[1] = u, e[2] = d) : (u = e[1], d = e[2]), Le(u, d);
|
|
2555
2546
|
const f = o.topBar?.tableSize?.middle || "标准";
|
|
@@ -2568,13 +2559,13 @@ function Ur(t) {
|
|
|
2568
2559
|
e[7] !== m || e[8] !== T ? (S = [m, T], e[7] = m, e[8] = T, e[9] = S) : S = e[9];
|
|
2569
2560
|
const y = S;
|
|
2570
2561
|
let R;
|
|
2571
|
-
e[10] !== i ? (R = /* @__PURE__ */
|
|
2562
|
+
e[10] !== i ? (R = /* @__PURE__ */ r((k) => {
|
|
2572
2563
|
const {
|
|
2573
2564
|
key: M
|
|
2574
2565
|
} = k;
|
|
2575
2566
|
s(M), i?.(M);
|
|
2576
2567
|
}, "t7"), e[10] = i, e[11] = R) : R = e[11];
|
|
2577
|
-
const w = R, A =
|
|
2568
|
+
const w = R, A = a || "middle";
|
|
2578
2569
|
let O;
|
|
2579
2570
|
e[12] !== A ? (O = [A], e[12] = A, e[13] = O) : O = e[13];
|
|
2580
2571
|
let P;
|
|
@@ -2587,30 +2578,30 @@ function Ur(t) {
|
|
|
2587
2578
|
let D;
|
|
2588
2579
|
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = ["click"], e[18] = D) : D = e[18];
|
|
2589
2580
|
let F;
|
|
2590
|
-
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ c("div", { onClick:
|
|
2581
|
+
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ c("div", { onClick: Ya, children: /* @__PURE__ */ c(ze, { icon: /* @__PURE__ */ c(Qn, {}), active: !1 }) }), e[19] = F) : F = e[19];
|
|
2591
2582
|
let $;
|
|
2592
2583
|
return e[20] !== l || e[21] !== P ? ($ = /* @__PURE__ */ c(ct, { placement: "top", title: "行高", children: /* @__PURE__ */ c(xe, { className: l, menu: P, trigger: D, placement: "bottom", children: F }) }), e[20] = l, e[21] = P, e[22] = $) : $ = e[22], $;
|
|
2593
2584
|
}
|
|
2594
|
-
|
|
2595
|
-
function
|
|
2585
|
+
r(Ba, "ColumnHeightBarItem");
|
|
2586
|
+
function Ya(t) {
|
|
2596
2587
|
return t.preventDefault();
|
|
2597
2588
|
}
|
|
2598
|
-
|
|
2599
|
-
function
|
|
2589
|
+
r(Ya, "_temp$2");
|
|
2590
|
+
function Wa(t) {
|
|
2600
2591
|
const e = j(14), {
|
|
2601
2592
|
style: l,
|
|
2602
2593
|
className: n,
|
|
2603
2594
|
defaultShowFilter: i,
|
|
2604
|
-
onChange:
|
|
2605
|
-
} = t, [s, o] =
|
|
2595
|
+
onChange: a
|
|
2596
|
+
} = t, [s, o] = X(i);
|
|
2606
2597
|
let u, d;
|
|
2607
|
-
e[0] !== i ? (u = /* @__PURE__ */
|
|
2598
|
+
e[0] !== i ? (u = /* @__PURE__ */ r(() => {
|
|
2608
2599
|
o(i);
|
|
2609
2600
|
}, "t0"), d = [i], e[0] = i, e[1] = u, e[2] = d) : (u = e[1], d = e[2]), Le(u, d);
|
|
2610
2601
|
let f;
|
|
2611
|
-
e[3] !== s || e[4] !==
|
|
2612
|
-
o(!s),
|
|
2613
|
-
}, "t2"), e[3] = s, e[4] =
|
|
2602
|
+
e[3] !== s || e[4] !== a ? (f = /* @__PURE__ */ r(() => {
|
|
2603
|
+
o(!s), a?.(!s);
|
|
2604
|
+
}, "t2"), e[3] = s, e[4] = a, e[5] = f) : f = e[5];
|
|
2614
2605
|
const m = f;
|
|
2615
2606
|
let h;
|
|
2616
2607
|
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ c(Xn, {}), e[6] = h) : h = e[6];
|
|
@@ -2620,8 +2611,8 @@ function gr(t) {
|
|
|
2620
2611
|
let y;
|
|
2621
2612
|
return e[9] !== n || e[10] !== m || e[11] !== l || e[12] !== S ? (y = /* @__PURE__ */ c(ct, { placement: "top", title: "过滤器", children: /* @__PURE__ */ c("div", { className: n, style: l, onClick: m, children: S }) }), e[9] = n, e[10] = m, e[11] = l, e[12] = S, e[13] = y) : y = e[13], y;
|
|
2622
2613
|
}
|
|
2623
|
-
|
|
2624
|
-
function
|
|
2614
|
+
r(Wa, "FilterBarItem");
|
|
2615
|
+
function Ka() {
|
|
2625
2616
|
const t = j(1);
|
|
2626
2617
|
let e;
|
|
2627
2618
|
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ c("div", { style: {
|
|
@@ -2631,32 +2622,32 @@ function Br() {
|
|
|
2631
2622
|
borderRadius: "50%"
|
|
2632
2623
|
} }), t[0] = e) : e = t[0], e;
|
|
2633
2624
|
}
|
|
2634
|
-
|
|
2635
|
-
function
|
|
2625
|
+
r(Ka, "Point");
|
|
2626
|
+
function Ga(t) {
|
|
2636
2627
|
const e = j(7), {
|
|
2637
2628
|
style: l,
|
|
2638
2629
|
className: n
|
|
2639
2630
|
} = t, {
|
|
2640
2631
|
publish: i
|
|
2641
2632
|
} = Dt();
|
|
2642
|
-
let
|
|
2643
|
-
e[0] !== i ? (
|
|
2633
|
+
let a;
|
|
2634
|
+
e[0] !== i ? (a = /* @__PURE__ */ r(async () => {
|
|
2644
2635
|
await i();
|
|
2645
|
-
}, "t0"), e[0] = i, e[1] =
|
|
2646
|
-
const s =
|
|
2636
|
+
}, "t0"), e[0] = i, e[1] = a) : a = e[1];
|
|
2637
|
+
const s = a;
|
|
2647
2638
|
let o;
|
|
2648
2639
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ c(ze, { icon: /* @__PURE__ */ c(Zn, {}), active: !1 }), e[2] = o) : o = e[2];
|
|
2649
2640
|
let u;
|
|
2650
2641
|
return e[3] !== n || e[4] !== s || e[5] !== l ? (u = /* @__PURE__ */ c(ct, { placement: "top", title: "刷新", children: /* @__PURE__ */ c("div", { className: n, style: l, onClick: s, children: o }) }), e[3] = n, e[4] = s, e[5] = l, e[6] = u) : u = e[6], u;
|
|
2651
2642
|
}
|
|
2652
|
-
|
|
2653
|
-
function
|
|
2643
|
+
r(Ga, "RefreshDataBarItem");
|
|
2644
|
+
function ja(t) {
|
|
2654
2645
|
const e = j(10), {
|
|
2655
2646
|
className: l,
|
|
2656
2647
|
style: n
|
|
2657
|
-
} = t, [i,
|
|
2648
|
+
} = t, [i, a] = Fn.useMessage();
|
|
2658
2649
|
let s;
|
|
2659
|
-
e[0] !== i ? (s = /* @__PURE__ */
|
|
2650
|
+
e[0] !== i ? (s = /* @__PURE__ */ r(async () => {
|
|
2660
2651
|
const m = window.location.href;
|
|
2661
2652
|
try {
|
|
2662
2653
|
await navigator.clipboard.writeText(m), i.success("链接复制成功");
|
|
@@ -2670,15 +2661,15 @@ function Wr(t) {
|
|
|
2670
2661
|
let d;
|
|
2671
2662
|
e[3] !== l || e[4] !== o || e[5] !== n ? (d = /* @__PURE__ */ c(ct, { placement: "top", title: "分享视图", children: /* @__PURE__ */ c("div", { className: l, style: n, onClick: o, children: u }) }), e[3] = l, e[4] = o, e[5] = n, e[6] = d) : d = e[6];
|
|
2672
2663
|
let f;
|
|
2673
|
-
return e[7] !==
|
|
2674
|
-
|
|
2664
|
+
return e[7] !== a || e[8] !== d ? (f = /* @__PURE__ */ Q(Ee, { children: [
|
|
2665
|
+
a,
|
|
2675
2666
|
d
|
|
2676
|
-
] }), e[7] =
|
|
2667
|
+
] }), e[7] = a, e[8] = d, e[9] = f) : f = e[9], f;
|
|
2677
2668
|
}
|
|
2678
|
-
|
|
2679
|
-
const
|
|
2680
|
-
leftItems:
|
|
2681
|
-
rightItems:
|
|
2669
|
+
r(ja, "ShareLinkBarItem");
|
|
2670
|
+
const qa = "_leftItems_1hvhw_1", Qa = "_rightItems_1hvhw_6", Gt = {
|
|
2671
|
+
leftItems: qa,
|
|
2672
|
+
rightItems: Qa
|
|
2682
2673
|
};
|
|
2683
2674
|
function jt(t, e, l) {
|
|
2684
2675
|
return t.render ? {
|
|
@@ -2686,23 +2677,23 @@ function jt(t, e, l) {
|
|
|
2686
2677
|
label: t.render(l)
|
|
2687
2678
|
} : {
|
|
2688
2679
|
key: e,
|
|
2689
|
-
label: /* @__PURE__ */ c(Te, { type: "link", ...t.attributes, onClick: /* @__PURE__ */
|
|
2680
|
+
label: /* @__PURE__ */ c(Te, { type: "link", ...t.attributes, onClick: /* @__PURE__ */ r(() => t.onClick?.(l), "onClick"), children: t.title })
|
|
2690
2681
|
};
|
|
2691
2682
|
}
|
|
2692
|
-
|
|
2693
|
-
const
|
|
2683
|
+
r(jt, "renderMenuItem");
|
|
2684
|
+
const Xa = [{
|
|
2694
2685
|
label: "覆盖当前视图",
|
|
2695
2686
|
key: "Update"
|
|
2696
2687
|
}, {
|
|
2697
2688
|
label: "另存为新视图",
|
|
2698
2689
|
key: "SaveAs"
|
|
2699
2690
|
}];
|
|
2700
|
-
function
|
|
2691
|
+
function Za(t) {
|
|
2701
2692
|
const e = j(79), {
|
|
2702
2693
|
title: l,
|
|
2703
2694
|
activeView: n,
|
|
2704
2695
|
primaryAction: i,
|
|
2705
|
-
secondaryActions:
|
|
2696
|
+
secondaryActions: a,
|
|
2706
2697
|
batchActions: s,
|
|
2707
2698
|
tableSelectedItems: o,
|
|
2708
2699
|
showViewPanel: u,
|
|
@@ -2715,35 +2706,35 @@ function qr(t) {
|
|
|
2715
2706
|
onTableSizeChange: y,
|
|
2716
2707
|
onCreateView: R,
|
|
2717
2708
|
onUpdateView: w
|
|
2718
|
-
} = t, [A, O] =
|
|
2709
|
+
} = t, [A, O] = X("Create"), [P, D] = X(!1), [F] = X("PERSONAL");
|
|
2719
2710
|
let $;
|
|
2720
2711
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = [], e[0] = $) : $ = e[0];
|
|
2721
2712
|
let k = $;
|
|
2722
2713
|
if (s?.enabled) {
|
|
2723
|
-
let
|
|
2714
|
+
let re;
|
|
2724
2715
|
if (e[1] !== s.actions || e[2] !== o) {
|
|
2725
|
-
let
|
|
2726
|
-
e[4] !== o ? (
|
|
2716
|
+
let ae;
|
|
2717
|
+
e[4] !== o ? (ae = /* @__PURE__ */ r((Ce, he) => jt(Ce, he, o), "t25"), e[4] = o, e[5] = ae) : ae = e[5], re = s.actions.map(ae), e[1] = s.actions, e[2] = o, e[3] = re;
|
|
2727
2718
|
} else
|
|
2728
|
-
|
|
2729
|
-
k =
|
|
2719
|
+
re = e[3];
|
|
2720
|
+
k = re;
|
|
2730
2721
|
}
|
|
2731
2722
|
let M;
|
|
2732
2723
|
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = [], e[6] = M) : M = e[6];
|
|
2733
2724
|
let x = M;
|
|
2734
|
-
if (
|
|
2735
|
-
let
|
|
2736
|
-
if (e[7] !==
|
|
2737
|
-
let
|
|
2738
|
-
e[10] !== o ? (
|
|
2725
|
+
if (a?.length) {
|
|
2726
|
+
let re;
|
|
2727
|
+
if (e[7] !== a || e[8] !== o) {
|
|
2728
|
+
let ae;
|
|
2729
|
+
e[10] !== o ? (ae = /* @__PURE__ */ r((Ce, he) => jt(Ce, he, o), "t32"), e[10] = o, e[11] = ae) : ae = e[11], re = a.map(ae), e[7] = a, e[8] = o, e[9] = re;
|
|
2739
2730
|
} else
|
|
2740
|
-
|
|
2741
|
-
x =
|
|
2731
|
+
re = e[9];
|
|
2732
|
+
x = re;
|
|
2742
2733
|
}
|
|
2743
2734
|
const [L, Y] = ot.useModal();
|
|
2744
2735
|
let V;
|
|
2745
|
-
e[12] !== n || e[13] !== L || e[14] !== w ? (V = /* @__PURE__ */
|
|
2746
|
-
e: switch (
|
|
2736
|
+
e[12] !== n || e[13] !== L || e[14] !== w ? (V = /* @__PURE__ */ r((re) => {
|
|
2737
|
+
e: switch (re) {
|
|
2747
2738
|
case "Update": {
|
|
2748
2739
|
L.confirm({
|
|
2749
2740
|
title: "确认覆盖当前视图?",
|
|
@@ -2751,7 +2742,7 @@ function qr(t) {
|
|
|
2751
2742
|
content: "确认后将覆盖原筛选条件",
|
|
2752
2743
|
okText: "确认",
|
|
2753
2744
|
cancelText: "取消",
|
|
2754
|
-
onOk: /* @__PURE__ */
|
|
2745
|
+
onOk: /* @__PURE__ */ r(() => {
|
|
2755
2746
|
w?.(n);
|
|
2756
2747
|
}, "onOk")
|
|
2757
2748
|
});
|
|
@@ -2763,11 +2754,11 @@ function qr(t) {
|
|
|
2763
2754
|
}, "t2"), e[12] = n, e[13] = L, e[14] = w, e[15] = V) : V = e[15];
|
|
2764
2755
|
const I = V;
|
|
2765
2756
|
let E;
|
|
2766
|
-
e[16] !== n || e[17] !== R ? (E = /* @__PURE__ */
|
|
2757
|
+
e[16] !== n || e[17] !== R ? (E = /* @__PURE__ */ r((re, ae) => {
|
|
2767
2758
|
R?.({
|
|
2768
2759
|
...n,
|
|
2769
|
-
name:
|
|
2770
|
-
type:
|
|
2760
|
+
name: re,
|
|
2761
|
+
type: ae,
|
|
2771
2762
|
source: "CUSTOM",
|
|
2772
2763
|
isDefault: !1
|
|
2773
2764
|
}, () => {
|
|
@@ -2777,30 +2768,30 @@ function qr(t) {
|
|
|
2777
2768
|
const _ = E;
|
|
2778
2769
|
let N;
|
|
2779
2770
|
e[19] !== I ? (N = {
|
|
2780
|
-
items:
|
|
2781
|
-
onClick: /* @__PURE__ */
|
|
2782
|
-
I(
|
|
2771
|
+
items: Xa,
|
|
2772
|
+
onClick: /* @__PURE__ */ r((ae) => {
|
|
2773
|
+
I(ae.key);
|
|
2783
2774
|
}, "handleMenuClick")
|
|
2784
2775
|
}, e[19] = I, e[20] = N) : N = e[20];
|
|
2785
2776
|
const v = N;
|
|
2786
2777
|
let b;
|
|
2787
|
-
e[21] !== m ? (b = /* @__PURE__ */
|
|
2778
|
+
e[21] !== m ? (b = /* @__PURE__ */ r(() => {
|
|
2788
2779
|
m?.();
|
|
2789
2780
|
}, "t5"), e[21] = m, e[22] = b) : b = e[22];
|
|
2790
2781
|
const p = b;
|
|
2791
2782
|
let H;
|
|
2792
|
-
e[23] !== d ? (H = /* @__PURE__ */
|
|
2783
|
+
e[23] !== d ? (H = /* @__PURE__ */ r(() => {
|
|
2793
2784
|
d?.(!0);
|
|
2794
2785
|
}, "t6"), e[23] = d, e[24] = H) : H = e[24];
|
|
2795
2786
|
const C = H;
|
|
2796
2787
|
let z;
|
|
2797
|
-
e[25] !== C || e[26] !== u || e[27] !== l ? (z = !u && /* @__PURE__ */
|
|
2788
|
+
e[25] !== C || e[26] !== u || e[27] !== l ? (z = !u && /* @__PURE__ */ Q(Ee, { children: [
|
|
2798
2789
|
/* @__PURE__ */ c("div", { onClick: C, children: /* @__PURE__ */ c(ze, { icon: /* @__PURE__ */ c(tl, {}), active: !1 }) }),
|
|
2799
2790
|
/* @__PURE__ */ c(Be, { orientation: "vertical" }),
|
|
2800
2791
|
/* @__PURE__ */ c("span", { style: {
|
|
2801
2792
|
fontSize: "16px"
|
|
2802
2793
|
}, children: l }),
|
|
2803
|
-
/* @__PURE__ */ c(
|
|
2794
|
+
/* @__PURE__ */ c(Ka, {})
|
|
2804
2795
|
] }), e[25] = C, e[26] = u, e[27] = l, e[28] = z) : z = e[28];
|
|
2805
2796
|
let W;
|
|
2806
2797
|
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = {
|
|
@@ -2809,46 +2800,46 @@ function qr(t) {
|
|
|
2809
2800
|
let U;
|
|
2810
2801
|
e[30] !== n.name ? (U = /* @__PURE__ */ c("span", { style: W, children: n.name }), e[30] = n.name, e[31] = U) : U = e[31];
|
|
2811
2802
|
let K;
|
|
2812
|
-
e[32] !== n.source || e[33] !== p || e[34] !== v || e[35] !== I || e[36] !== f ? (K = f && /* @__PURE__ */
|
|
2803
|
+
e[32] !== n.source || e[33] !== p || e[34] !== v || e[35] !== I || e[36] !== f ? (K = f && /* @__PURE__ */ Q(Ee, { children: [
|
|
2813
2804
|
/* @__PURE__ */ c("div", { style: {
|
|
2814
2805
|
color: "rgba(0,0,0,0.45)"
|
|
2815
2806
|
}, children: "(已编辑)" }),
|
|
2816
|
-
n.source === "SYSTEM" ? /* @__PURE__ */ c(Te, { type: "default", size: "small", onClick: /* @__PURE__ */
|
|
2807
|
+
n.source === "SYSTEM" ? /* @__PURE__ */ c(Te, { type: "default", size: "small", onClick: /* @__PURE__ */ r(() => I("SaveAs"), "onClick"), children: "另存为" }) : /* @__PURE__ */ c(xe, { menu: v, trigger: ["click"], children: /* @__PURE__ */ c(Te, { size: "small", icon: /* @__PURE__ */ c(We, {}), iconPlacement: "end", children: "保存" }) }),
|
|
2817
2808
|
/* @__PURE__ */ c(Te, { type: "default", size: "small", onClick: p, children: "重置" })
|
|
2818
2809
|
] }), e[32] = n.source, e[33] = p, e[34] = v, e[35] = I, e[36] = f, e[37] = K) : K = e[37];
|
|
2819
2810
|
let q;
|
|
2820
|
-
e[38] !== K || e[39] !== z || e[40] !== U ? (q = /* @__PURE__ */
|
|
2811
|
+
e[38] !== K || e[39] !== z || e[40] !== U ? (q = /* @__PURE__ */ Q(pe, { gap: "8px", align: "center", className: Gt.leftItems, children: [
|
|
2821
2812
|
z,
|
|
2822
2813
|
U,
|
|
2823
2814
|
K
|
|
2824
2815
|
] }), e[38] = K, e[39] = z, e[40] = U, e[41] = q) : q = e[41];
|
|
2825
2816
|
let ee;
|
|
2826
|
-
e[42] !== T || e[43] !== h ? (ee = /* @__PURE__ */ c(
|
|
2817
|
+
e[42] !== T || e[43] !== h ? (ee = /* @__PURE__ */ c(Wa, { defaultShowFilter: h, onChange: T }), e[42] = T, e[43] = h, e[44] = ee) : ee = e[44];
|
|
2827
2818
|
let te;
|
|
2828
|
-
e[45] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = /* @__PURE__ */ c(
|
|
2819
|
+
e[45] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = /* @__PURE__ */ c(Ga, {}), e[45] = te) : te = e[45];
|
|
2829
2820
|
let G;
|
|
2830
|
-
e[46] !== S || e[47] !== y ? (G = /* @__PURE__ */ c(
|
|
2821
|
+
e[46] !== S || e[47] !== y ? (G = /* @__PURE__ */ c(Ba, { defaultTableSize: S, onChange: y }), e[46] = S, e[47] = y, e[48] = G) : G = e[48];
|
|
2831
2822
|
let J, g, Z;
|
|
2832
|
-
e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ c(
|
|
2823
|
+
e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ c(ja, {}), g = /* @__PURE__ */ c(Be, { orientation: "vertical" }), Z = /* @__PURE__ */ c(Ha, {}), e[49] = J, e[50] = g, e[51] = Z) : (J = e[49], g = e[50], Z = e[51]);
|
|
2833
2824
|
let me;
|
|
2834
|
-
e[52] !== s?.enabled || e[53] !== s?.title || e[54] !== k ? (me = s?.enabled && /* @__PURE__ */
|
|
2825
|
+
e[52] !== s?.enabled || e[53] !== s?.title || e[54] !== k ? (me = s?.enabled && /* @__PURE__ */ Q(Ee, { children: [
|
|
2835
2826
|
/* @__PURE__ */ c(Be, { orientation: "vertical" }),
|
|
2836
2827
|
/* @__PURE__ */ c(xe, { menu: {
|
|
2837
2828
|
items: k
|
|
2838
2829
|
}, trigger: ["click"], children: /* @__PURE__ */ c(Te, { icon: /* @__PURE__ */ c(We, {}), iconPlacement: "end", children: s?.title && "批量操作" }) })
|
|
2839
2830
|
] }), e[52] = s?.enabled, e[53] = s?.title, e[54] = k, e[55] = me) : me = e[55];
|
|
2840
2831
|
let le;
|
|
2841
|
-
e[56] !== i || e[57] !== x || e[58] !== o ? (le = i && /* @__PURE__ */
|
|
2832
|
+
e[56] !== i || e[57] !== x || e[58] !== o ? (le = i && /* @__PURE__ */ Q(Ee, { children: [
|
|
2842
2833
|
/* @__PURE__ */ c(Be, { orientation: "vertical" }),
|
|
2843
|
-
/* @__PURE__ */
|
|
2844
|
-
i.render ? i.render(o) : /* @__PURE__ */ c(Te, { type: "primary", ...i.attributes, onClick: /* @__PURE__ */
|
|
2834
|
+
/* @__PURE__ */ Q(Se.Compact, { children: [
|
|
2835
|
+
i.render ? i.render(o) : /* @__PURE__ */ c(Te, { type: "primary", ...i.attributes, onClick: /* @__PURE__ */ r(() => i.onClick?.(o), "onClick"), children: i.title }),
|
|
2845
2836
|
x.length > 0 && /* @__PURE__ */ c(xe, { menu: {
|
|
2846
2837
|
items: x
|
|
2847
2838
|
}, trigger: ["click"], placement: "bottomRight", children: /* @__PURE__ */ c(Te, { type: "primary", icon: /* @__PURE__ */ c(We, {}) }) })
|
|
2848
2839
|
] })
|
|
2849
2840
|
] }), e[56] = i, e[57] = x, e[58] = o, e[59] = le) : le = e[59];
|
|
2850
2841
|
let se;
|
|
2851
|
-
e[60] !== ee || e[61] !== G || e[62] !== me || e[63] !== le ? (se = /* @__PURE__ */
|
|
2842
|
+
e[60] !== ee || e[61] !== G || e[62] !== me || e[63] !== le ? (se = /* @__PURE__ */ Q(pe, { gap: "8px", align: "center", className: Gt.rightItems, children: [
|
|
2852
2843
|
ee,
|
|
2853
2844
|
te,
|
|
2854
2845
|
G,
|
|
@@ -2859,31 +2850,31 @@ function qr(t) {
|
|
|
2859
2850
|
le
|
|
2860
2851
|
] }), e[60] = ee, e[61] = G, e[62] = me, e[63] = le, e[64] = se) : se = e[64];
|
|
2861
2852
|
let de;
|
|
2862
|
-
e[65] !== q || e[66] !== se ? (de = /* @__PURE__ */
|
|
2853
|
+
e[65] !== q || e[66] !== se ? (de = /* @__PURE__ */ Q(pe, { align: "center", justify: "space-between", children: [
|
|
2863
2854
|
q,
|
|
2864
2855
|
se
|
|
2865
2856
|
] }), e[65] = q, e[66] = se, e[67] = de) : de = e[67];
|
|
2866
2857
|
let ne;
|
|
2867
|
-
e[68] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */
|
|
2858
|
+
e[68] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ r(() => D(!1), "t22"), e[68] = ne) : ne = e[68];
|
|
2868
2859
|
let ie;
|
|
2869
|
-
e[69] !== n.name || e[70] !== F || e[71] !== _ || e[72] !== P || e[73] !== A ? (ie = /* @__PURE__ */ c(
|
|
2860
|
+
e[69] !== n.name || e[70] !== F || e[71] !== _ || e[72] !== P || e[73] !== A ? (ie = /* @__PURE__ */ c(Ln, { mode: A, open: P, defaultViewType: F, defaultViewName: n.name, onSaveView: _, onCancel: ne }), e[69] = n.name, e[70] = F, e[71] = _, e[72] = P, e[73] = A, e[74] = ie) : ie = e[74];
|
|
2870
2861
|
let ye;
|
|
2871
|
-
return e[75] !== Y || e[76] !== de || e[77] !== ie ? (ye = /* @__PURE__ */
|
|
2862
|
+
return e[75] !== Y || e[76] !== de || e[77] !== ie ? (ye = /* @__PURE__ */ Q(Ee, { children: [
|
|
2872
2863
|
de,
|
|
2873
2864
|
Y,
|
|
2874
2865
|
ie
|
|
2875
2866
|
] }), e[75] = Y, e[76] = de, e[77] = ie, e[78] = ye) : ye = e[78], ye;
|
|
2876
2867
|
}
|
|
2877
|
-
|
|
2878
|
-
const
|
|
2879
|
-
userViews:
|
|
2880
|
-
container:
|
|
2881
|
-
topBar:
|
|
2882
|
-
filterPanel:
|
|
2868
|
+
r(Za, "TopBar");
|
|
2869
|
+
const Ja = "_userViews_1rq5j_1", er = "_container_1rq5j_7", tr = "_topBar_1rq5j_12", nr = "_filterPanel_1rq5j_27", Ke = {
|
|
2870
|
+
userViews: Ja,
|
|
2871
|
+
container: er,
|
|
2872
|
+
topBar: tr,
|
|
2873
|
+
filterPanel: nr
|
|
2883
2874
|
};
|
|
2884
|
-
function
|
|
2875
|
+
function lr(t) {
|
|
2885
2876
|
const e = j(77);
|
|
2886
|
-
let l, n, i,
|
|
2877
|
+
let l, n, i, a, s, o, u, d, f, m, h, T, S, y;
|
|
2887
2878
|
e[0] !== t ? ({
|
|
2888
2879
|
ref: h,
|
|
2889
2880
|
fields: s,
|
|
@@ -2893,13 +2884,13 @@ function ea(t) {
|
|
|
2893
2884
|
showFilter: T,
|
|
2894
2885
|
filterMode: o,
|
|
2895
2886
|
pagination: m,
|
|
2896
|
-
enableRowSelection:
|
|
2887
|
+
enableRowSelection: a,
|
|
2897
2888
|
viewTableSetting: y,
|
|
2898
2889
|
onClickPrimaryKey: d,
|
|
2899
2890
|
onSelectedDataChange: f,
|
|
2900
2891
|
loading: u,
|
|
2901
2892
|
...S
|
|
2902
|
-
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = i, e[4] =
|
|
2893
|
+
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = i, e[4] = a, e[5] = s, e[6] = o, e[7] = u, e[8] = d, e[9] = f, e[10] = m, e[11] = h, e[12] = T, e[13] = S, e[14] = y) : (l = e[1], n = e[2], i = e[3], a = e[4], s = e[5], o = e[6], u = e[7], d = e[8], f = e[9], m = e[10], h = e[11], T = e[12], S = e[13], y = e[14]);
|
|
2903
2894
|
const {
|
|
2904
2895
|
page: R,
|
|
2905
2896
|
setPage: w,
|
|
@@ -2915,45 +2906,45 @@ function ea(t) {
|
|
|
2915
2906
|
setSorter: L,
|
|
2916
2907
|
selectedCount: Y,
|
|
2917
2908
|
updateSelectedCount: V
|
|
2918
|
-
} =
|
|
2909
|
+
} = cr(S), {
|
|
2919
2910
|
locale: I
|
|
2920
2911
|
} = De();
|
|
2921
2912
|
let E;
|
|
2922
|
-
e[15] !== x ? (E = /* @__PURE__ */
|
|
2913
|
+
e[15] !== x ? (E = /* @__PURE__ */ r((ne, ie) => {
|
|
2923
2914
|
x(ne, ie);
|
|
2924
2915
|
}, "t1"), e[15] = x, e[16] = E) : E = e[16];
|
|
2925
2916
|
const _ = E;
|
|
2926
2917
|
let N;
|
|
2927
|
-
e[17] !== R || e[18] !== F || e[19] !== w || e[20] !== $ ? (N = /* @__PURE__ */
|
|
2918
|
+
e[17] !== R || e[18] !== F || e[19] !== w || e[20] !== $ ? (N = /* @__PURE__ */ r((ne, ie) => {
|
|
2928
2919
|
R !== ne && w(ne), F !== ie && $(ie);
|
|
2929
2920
|
}, "t2"), e[17] = R, e[18] = F, e[19] = w, e[20] = $, e[21] = N) : N = e[21];
|
|
2930
2921
|
const v = N;
|
|
2931
2922
|
let b;
|
|
2932
|
-
e[22] !== f || e[23] !== V ? (b = /* @__PURE__ */
|
|
2923
|
+
e[22] !== f || e[23] !== V ? (b = /* @__PURE__ */ r((ne) => {
|
|
2933
2924
|
f?.(ne), V(ne.length);
|
|
2934
2925
|
}, "t3"), e[22] = f, e[23] = V, e[24] = b) : b = e[24];
|
|
2935
2926
|
const p = b;
|
|
2936
2927
|
let H;
|
|
2937
|
-
e[25] !== L ? (H = /* @__PURE__ */
|
|
2928
|
+
e[25] !== L ? (H = /* @__PURE__ */ r((ne) => {
|
|
2938
2929
|
let ie;
|
|
2939
|
-
Array.isArray(ne) ? ie = ne.filter(
|
|
2930
|
+
Array.isArray(ne) ? ie = ne.filter(rr).map(ar) : ne.field ? ie = [{
|
|
2940
2931
|
field: Array.isArray(ne.field) ? [...ne.field].join(".") : ne.field,
|
|
2941
2932
|
direction: ne.order === "ascend" ? "ASC" : "DESC"
|
|
2942
2933
|
}] : ie = [], L(ie);
|
|
2943
2934
|
}, "t4"), e[25] = L, e[26] = H) : H = e[26];
|
|
2944
2935
|
const C = H, z = Re(null), W = Re(null);
|
|
2945
2936
|
let U;
|
|
2946
|
-
e[27] !== f || e[28] !== V ? (U = /* @__PURE__ */
|
|
2937
|
+
e[27] !== f || e[28] !== V ? (U = /* @__PURE__ */ r(() => {
|
|
2947
2938
|
W.current?.clearSelectedRowKeys(), f?.([]), V(0);
|
|
2948
2939
|
}, "t5"), e[27] = f, e[28] = V, e[29] = U) : U = e[29];
|
|
2949
2940
|
const K = U;
|
|
2950
2941
|
let q;
|
|
2951
|
-
e[30] !== K ? (q = /* @__PURE__ */
|
|
2942
|
+
e[30] !== K ? (q = /* @__PURE__ */ r(() => {
|
|
2952
2943
|
z.current?.reset(), K();
|
|
2953
2944
|
}, "t6"), e[30] = K, e[31] = q) : q = e[31];
|
|
2954
2945
|
const ee = q;
|
|
2955
2946
|
let te;
|
|
2956
|
-
e[32] !== K || e[33] !== ee || e[34] !== M ? (te = /* @__PURE__ */
|
|
2947
|
+
e[32] !== K || e[33] !== ee || e[34] !== M ? (te = /* @__PURE__ */ r(() => ({
|
|
2957
2948
|
clearSelectedRowKeys: K,
|
|
2958
2949
|
updateTableSize: M,
|
|
2959
2950
|
reset: ee
|
|
@@ -2965,7 +2956,7 @@ function ea(t) {
|
|
|
2965
2956
|
let J;
|
|
2966
2957
|
e[37] !== A || e[38] !== n || e[39] !== o || e[40] !== _ || e[41] !== O || e[42] !== T ? (J = o === "editable" && /* @__PURE__ */ c("div", { className: Ke.filterPanel, style: {
|
|
2967
2958
|
display: T ? "block" : "none"
|
|
2968
|
-
}, children: /* @__PURE__ */ c(
|
|
2959
|
+
}, children: /* @__PURE__ */ c(Di, { row: {
|
|
2969
2960
|
gutter: [24, 16],
|
|
2970
2961
|
wrap: !0
|
|
2971
2962
|
}, col: {
|
|
@@ -2979,57 +2970,57 @@ function ea(t) {
|
|
|
2979
2970
|
let g;
|
|
2980
2971
|
e[44] !== A || e[45] !== o || e[46] !== _ || e[47] !== T ? (g = o === "normal" && /* @__PURE__ */ c("div", { className: Ke.filterPanel, style: {
|
|
2981
2972
|
display: T ? "block" : "none"
|
|
2982
|
-
}, children: /* @__PURE__ */ c(
|
|
2973
|
+
}, children: /* @__PURE__ */ c(_n, { ref: z, filters: A, resetButton: !1, onSearch: _ }) }), e[44] = A, e[45] = o, e[46] = _, e[47] = T, e[48] = g) : g = e[48];
|
|
2983
2974
|
let Z;
|
|
2984
2975
|
e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = {
|
|
2985
2976
|
pagination: !1
|
|
2986
2977
|
}, e[49] = Z) : Z = e[49];
|
|
2987
2978
|
const me = y || !1;
|
|
2988
2979
|
let le;
|
|
2989
|
-
e[50] !== l || e[51] !== P || e[52] !== i.list || e[53] !==
|
|
2980
|
+
e[50] !== l || e[51] !== P || e[52] !== i.list || e[53] !== a || e[54] !== s || e[55] !== C || e[56] !== p || e[57] !== u || e[58] !== d || e[59] !== D || e[60] !== me || e[61] !== k ? (le = /* @__PURE__ */ c($a, { ref: W, loading: u, dataSource: i.list, fields: s, columns: P, onColumnsChange: D, tableSize: k, actionColumn: l, onSortChanged: C, onSelectChange: p, attributes: Z, enableRowSelection: a, onClickPrimaryKey: d, viewTableSetting: me }), e[50] = l, e[51] = P, e[52] = i.list, e[53] = a, e[54] = s, e[55] = C, e[56] = p, e[57] = u, e[58] = d, e[59] = D, e[60] = me, e[61] = k, e[62] = le) : le = e[62];
|
|
2990
2981
|
let se;
|
|
2991
|
-
e[63] !== i.total || e[64] !==
|
|
2982
|
+
e[63] !== i.total || e[64] !== a || e[65] !== v || e[66] !== I || e[67] !== R || e[68] !== F || e[69] !== m || e[70] !== Y ? (se = (m !== !1 || a) && /* @__PURE__ */ Q("div", { style: {
|
|
2992
2983
|
display: "flex",
|
|
2993
2984
|
alignItems: "center",
|
|
2994
2985
|
justifyContent: "space-between"
|
|
2995
2986
|
}, children: [
|
|
2996
2987
|
/* @__PURE__ */ c("span", { children: Y ? I.selectedCountLabel ? I.selectedCountLabel.format(Y) : `已选择 ${Y} 条数据` : "" }),
|
|
2997
|
-
/* @__PURE__ */ c(
|
|
2998
|
-
] }), e[63] = i.total, e[64] =
|
|
2988
|
+
/* @__PURE__ */ c(Pn, { showTotal: ir, defaultCurrent: R, current: R, pageSize: F || 10, total: i.total, pageSizeOptions: ["10", "20", "50", "100"], ...m, onChange: v })
|
|
2989
|
+
] }), e[63] = i.total, e[64] = a, e[65] = v, e[66] = I, e[67] = R, e[68] = F, e[69] = m, e[70] = Y, e[71] = se) : se = e[71];
|
|
2999
2990
|
let de;
|
|
3000
|
-
return e[72] !== g || e[73] !== le || e[74] !== se || e[75] !== J ? (de = /* @__PURE__ */
|
|
2991
|
+
return e[72] !== g || e[73] !== le || e[74] !== se || e[75] !== J ? (de = /* @__PURE__ */ Q(Se, { orientation: "vertical", style: G, size: "small", children: [
|
|
3001
2992
|
J,
|
|
3002
2993
|
g,
|
|
3003
2994
|
le,
|
|
3004
2995
|
se
|
|
3005
2996
|
] }), e[72] = g, e[73] = le, e[74] = se, e[75] = J, e[76] = de) : de = e[76], de;
|
|
3006
2997
|
}
|
|
3007
|
-
|
|
3008
|
-
function
|
|
2998
|
+
r(lr, "View");
|
|
2999
|
+
function ir(t) {
|
|
3009
3000
|
return `共 ${t} 条数据`;
|
|
3010
3001
|
}
|
|
3011
|
-
|
|
3012
|
-
function
|
|
3002
|
+
r(ir, "_temp3");
|
|
3003
|
+
function ar(t) {
|
|
3013
3004
|
return {
|
|
3014
3005
|
field: Array.isArray(t.field) ? [...t.field].join(".") : t.field,
|
|
3015
3006
|
direction: t.order === "ascend" ? "ASC" : "DESC"
|
|
3016
3007
|
};
|
|
3017
3008
|
}
|
|
3018
|
-
|
|
3019
|
-
function
|
|
3009
|
+
r(ar, "_temp2$1");
|
|
3010
|
+
function rr(t) {
|
|
3020
3011
|
return t.field;
|
|
3021
3012
|
}
|
|
3022
|
-
|
|
3023
|
-
const
|
|
3024
|
-
function
|
|
3025
|
-
defaultPage: t =
|
|
3026
|
-
defaultPageSize: e =
|
|
3013
|
+
r(rr, "_temp$1");
|
|
3014
|
+
const sr = 1, or = 10;
|
|
3015
|
+
function cr({
|
|
3016
|
+
defaultPage: t = sr,
|
|
3017
|
+
defaultPageSize: e = or,
|
|
3027
3018
|
...l
|
|
3028
3019
|
}) {
|
|
3029
3020
|
const {
|
|
3030
3021
|
defaultColumns: n,
|
|
3031
3022
|
externalColumns: i,
|
|
3032
|
-
externalUpdateColumns:
|
|
3023
|
+
externalUpdateColumns: a,
|
|
3033
3024
|
defaultActiveFilters: s,
|
|
3034
3025
|
externalActiveFilters: o,
|
|
3035
3026
|
externalUpdateActiveFilters: u,
|
|
@@ -3063,21 +3054,21 @@ function aa({
|
|
|
3063
3054
|
sorter: b,
|
|
3064
3055
|
setSorter: p,
|
|
3065
3056
|
reset: H
|
|
3066
|
-
} =
|
|
3057
|
+
} = yn({
|
|
3067
3058
|
defaultColumns: n,
|
|
3068
3059
|
defaultPageSize: e,
|
|
3069
3060
|
defaultActiveFilters: s || [],
|
|
3070
3061
|
defaultTableSize: T,
|
|
3071
3062
|
defaultCondition: O,
|
|
3072
3063
|
defaultSorter: R
|
|
3073
|
-
}), C = i ?? $, z =
|
|
3064
|
+
}), C = i ?? $, z = a ?? k, W = o ?? M, U = u ?? x, K = d ?? L, q = f ?? Y, ee = m ?? V, te = h ?? I, G = P ?? N, J = D ?? v, g = w ?? b, Z = A ?? p, me = S ?? E, le = y ?? _, [se, de] = X(0);
|
|
3074
3065
|
return {
|
|
3075
3066
|
page: K,
|
|
3076
|
-
setPage: /* @__PURE__ */
|
|
3067
|
+
setPage: /* @__PURE__ */ r((ce) => {
|
|
3077
3068
|
q(ce), F?.(G, ce, ee, g);
|
|
3078
3069
|
}, "setPageFn"),
|
|
3079
3070
|
pageSize: ee,
|
|
3080
|
-
setPageSize: /* @__PURE__ */
|
|
3071
|
+
setPageSize: /* @__PURE__ */ r((ce) => {
|
|
3081
3072
|
te(ce), F?.(G, K, ce, g);
|
|
3082
3073
|
}, "setPageSizeFn"),
|
|
3083
3074
|
columns: C,
|
|
@@ -3085,24 +3076,24 @@ function aa({
|
|
|
3085
3076
|
activeFilters: W,
|
|
3086
3077
|
setActiveFilters: U,
|
|
3087
3078
|
tableSize: me,
|
|
3088
|
-
setTableSize: /* @__PURE__ */
|
|
3079
|
+
setTableSize: /* @__PURE__ */ r((ce) => {
|
|
3089
3080
|
le(ce);
|
|
3090
3081
|
}, "setTableSizeFn"),
|
|
3091
3082
|
condition: G,
|
|
3092
|
-
setCondition: /* @__PURE__ */
|
|
3083
|
+
setCondition: /* @__PURE__ */ r((ce, _e) => {
|
|
3093
3084
|
J(ce, _e), q(1), F?.(ce, 1, ee, g);
|
|
3094
3085
|
}, "setConditionFn"),
|
|
3095
3086
|
sorter: g,
|
|
3096
|
-
setSorter: /* @__PURE__ */
|
|
3087
|
+
setSorter: /* @__PURE__ */ r((ce) => {
|
|
3097
3088
|
Z(ce), q(1), F?.(G, 1, ee, ce);
|
|
3098
3089
|
}, "setSorterFn"),
|
|
3099
3090
|
selectedCount: se,
|
|
3100
|
-
updateSelectedCount: /* @__PURE__ */
|
|
3091
|
+
updateSelectedCount: /* @__PURE__ */ r((ce) => {
|
|
3101
3092
|
de(ce);
|
|
3102
3093
|
}, "updateSelectedCountFn"),
|
|
3103
|
-
reset: /* @__PURE__ */
|
|
3094
|
+
reset: /* @__PURE__ */ r(() => {
|
|
3104
3095
|
H(), F?.(
|
|
3105
|
-
O ||
|
|
3096
|
+
O || Sn,
|
|
3106
3097
|
t,
|
|
3107
3098
|
e,
|
|
3108
3099
|
R
|
|
@@ -3110,76 +3101,76 @@ function aa({
|
|
|
3110
3101
|
}, "resetFn")
|
|
3111
3102
|
};
|
|
3112
3103
|
}
|
|
3113
|
-
|
|
3114
|
-
const
|
|
3115
|
-
top:
|
|
3116
|
-
title:
|
|
3117
|
-
customCollapse:
|
|
3118
|
-
viewItem:
|
|
3119
|
-
active:
|
|
3120
|
-
viewName:
|
|
3121
|
-
viewNameText:
|
|
3122
|
-
viewNameTag:
|
|
3104
|
+
r(cr, "useViewState");
|
|
3105
|
+
const ur = "_top_1wlaq_1", fr = "_title_1wlaq_4", dr = "_customCollapse_1wlaq_8", mr = "_viewItem_1wlaq_24", hr = "_active_1wlaq_32", Tr = "_viewName_1wlaq_36", Er = "_viewNameText_1wlaq_48", _r = "_viewNameTag_1wlaq_85", be = {
|
|
3106
|
+
top: ur,
|
|
3107
|
+
title: fr,
|
|
3108
|
+
customCollapse: dr,
|
|
3109
|
+
viewItem: mr,
|
|
3110
|
+
active: hr,
|
|
3111
|
+
viewName: Tr,
|
|
3112
|
+
viewNameText: Er,
|
|
3113
|
+
viewNameTag: _r
|
|
3123
3114
|
};
|
|
3124
|
-
function
|
|
3115
|
+
function Sr(t) {
|
|
3125
3116
|
const e = j(19), {
|
|
3126
3117
|
view: l,
|
|
3127
3118
|
countUrl: n,
|
|
3128
3119
|
active: i,
|
|
3129
|
-
onGetRecordCount:
|
|
3130
|
-
} = t, [s, o] =
|
|
3120
|
+
onGetRecordCount: a
|
|
3121
|
+
} = t, [s, o] = X(0);
|
|
3131
3122
|
let u, d;
|
|
3132
|
-
e[0] !== n || e[1] !==
|
|
3133
|
-
|
|
3123
|
+
e[0] !== n || e[1] !== a || e[2] !== l.condition ? (u = /* @__PURE__ */ r(() => {
|
|
3124
|
+
a && a(n, l.condition || Ve()).then((R) => {
|
|
3134
3125
|
o(R || 0);
|
|
3135
3126
|
});
|
|
3136
|
-
}, "t0"), d = [n,
|
|
3127
|
+
}, "t0"), d = [n, a, l.condition], e[0] = n, e[1] = a, e[2] = l.condition, e[3] = u, e[4] = d) : (u = e[3], d = e[4]), Le(u, d);
|
|
3137
3128
|
const f = `${be.viewItem} ${i ? be.active : ""}`;
|
|
3138
3129
|
let m;
|
|
3139
3130
|
e[5] !== l.name ? (m = /* @__PURE__ */ c("span", { className: be.viewNameText, "data-tooltip": l.name, children: l.name }), e[5] = l.name, e[6] = m) : m = e[6];
|
|
3140
3131
|
let h;
|
|
3141
3132
|
e[7] !== l.source ? (h = l.source === "SYSTEM" && /* @__PURE__ */ c(bt, { className: be.viewNameTag, children: "系统" }), e[7] = l.source, e[8] = h) : h = e[8];
|
|
3142
3133
|
let T;
|
|
3143
|
-
e[9] !== m || e[10] !== h ? (T = /* @__PURE__ */
|
|
3134
|
+
e[9] !== m || e[10] !== h ? (T = /* @__PURE__ */ Q("div", { className: be.viewName, children: [
|
|
3144
3135
|
m,
|
|
3145
3136
|
h
|
|
3146
3137
|
] }), e[9] = m, e[10] = h, e[11] = T) : T = e[11];
|
|
3147
3138
|
let S;
|
|
3148
3139
|
e[12] !== i || e[13] !== s ? (S = !i && /* @__PURE__ */ c("div", { children: s && s > 999 ? "999+" : s || 0 }), e[12] = i, e[13] = s, e[14] = S) : S = e[14];
|
|
3149
3140
|
let y;
|
|
3150
|
-
return e[15] !== f || e[16] !== T || e[17] !== S ? (y = /* @__PURE__ */
|
|
3141
|
+
return e[15] !== f || e[16] !== T || e[17] !== S ? (y = /* @__PURE__ */ Q(pe, { align: "center", justify: "space-between", className: f, children: [
|
|
3151
3142
|
T,
|
|
3152
3143
|
S
|
|
3153
3144
|
] }), e[15] = f, e[16] = T, e[17] = S, e[18] = y) : y = e[18], y;
|
|
3154
3145
|
}
|
|
3155
|
-
|
|
3146
|
+
r(Sr, "ViewItem");
|
|
3156
3147
|
function qt(t) {
|
|
3157
3148
|
const e = j(13), {
|
|
3158
3149
|
views: l,
|
|
3159
3150
|
activeView: n,
|
|
3160
3151
|
countUrl: i,
|
|
3161
|
-
onSwitchView:
|
|
3152
|
+
onSwitchView: a,
|
|
3162
3153
|
onGetRecordCount: s
|
|
3163
3154
|
} = t;
|
|
3164
3155
|
let o;
|
|
3165
|
-
if (e[0] !== n || e[1] !== i || e[2] !== s || e[3] !==
|
|
3156
|
+
if (e[0] !== n || e[1] !== i || e[2] !== s || e[3] !== a || e[4] !== l) {
|
|
3166
3157
|
let d;
|
|
3167
|
-
e[6] !== n || e[7] !== i || e[8] !== s || e[9] !==
|
|
3158
|
+
e[6] !== n || e[7] !== i || e[8] !== s || e[9] !== a ? (d = /* @__PURE__ */ r((f) => /* @__PURE__ */ c("div", { onClick: /* @__PURE__ */ r(() => a(f), "onClick"), style: {
|
|
3168
3159
|
width: "100%",
|
|
3169
3160
|
cursor: "pointer"
|
|
3170
|
-
}, children: /* @__PURE__ */ c(
|
|
3161
|
+
}, children: /* @__PURE__ */ c(Sr, { active: f.id === n.id, countUrl: i, view: f, onGetRecordCount: s }) }, f.id), "t12"), e[6] = n, e[7] = i, e[8] = s, e[9] = a, e[10] = d) : d = e[10], o = l.map(d), e[0] = n, e[1] = i, e[2] = s, e[3] = a, e[4] = l, e[5] = o;
|
|
3171
3162
|
} else
|
|
3172
3163
|
o = e[5];
|
|
3173
3164
|
let u;
|
|
3174
3165
|
return e[11] !== o ? (u = /* @__PURE__ */ c(pe, { vertical: !0, align: "start", children: o }), e[11] = o, e[12] = u) : u = e[12], u;
|
|
3175
3166
|
}
|
|
3176
|
-
|
|
3177
|
-
function
|
|
3167
|
+
r(qt, "ViewItemGroup");
|
|
3168
|
+
function yr(t) {
|
|
3178
3169
|
const e = j(80), {
|
|
3179
3170
|
name: l,
|
|
3180
3171
|
views: n,
|
|
3181
3172
|
activeView: i,
|
|
3182
|
-
countUrl:
|
|
3173
|
+
countUrl: a,
|
|
3183
3174
|
onSwitchView: s,
|
|
3184
3175
|
onShowViewPanelChange: o,
|
|
3185
3176
|
onCreateView: u,
|
|
@@ -3188,15 +3179,15 @@ function Ea(t) {
|
|
|
3188
3179
|
onGetRecordCount: m
|
|
3189
3180
|
} = t;
|
|
3190
3181
|
let h;
|
|
3191
|
-
e[0] !== n ? (h = n.filter(
|
|
3182
|
+
e[0] !== n ? (h = n.filter(vr), e[0] = n, e[1] = h) : h = e[1];
|
|
3192
3183
|
const T = h;
|
|
3193
3184
|
let S;
|
|
3194
|
-
e[2] !== n ? (S = n.filter(
|
|
3195
|
-
const y = S, [R, w] =
|
|
3185
|
+
e[2] !== n ? (S = n.filter(Cr), e[2] = n, e[3] = S) : S = e[3];
|
|
3186
|
+
const y = S, [R, w] = X(!1), [A, O] = X(!1), [P, D] = X("Create"), [F, $] = X(!1), [k, M] = X("PERSONAL"), {
|
|
3196
3187
|
locale: x
|
|
3197
3188
|
} = De();
|
|
3198
3189
|
let L;
|
|
3199
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */
|
|
3190
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ r((oe, fe) => {
|
|
3200
3191
|
oe.preventDefault(), oe.stopPropagation();
|
|
3201
3192
|
e: switch (fe) {
|
|
3202
3193
|
case "PERSONAL": {
|
|
@@ -3209,12 +3200,12 @@ function Ea(t) {
|
|
|
3209
3200
|
}, "t2"), e[4] = L) : L = e[4];
|
|
3210
3201
|
const Y = L;
|
|
3211
3202
|
let V;
|
|
3212
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */
|
|
3203
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ r((oe, fe) => {
|
|
3213
3204
|
oe.stopPropagation(), M(fe), D("Create"), $(!0);
|
|
3214
3205
|
}, "t3"), e[5] = V) : V = e[5];
|
|
3215
3206
|
const I = V;
|
|
3216
3207
|
let E;
|
|
3217
|
-
e[6] !== i || e[7] !== u ? (E = /* @__PURE__ */
|
|
3208
|
+
e[6] !== i || e[7] !== u ? (E = /* @__PURE__ */ r((oe, fe) => {
|
|
3218
3209
|
u?.({
|
|
3219
3210
|
...i,
|
|
3220
3211
|
name: oe,
|
|
@@ -3227,25 +3218,25 @@ function Ea(t) {
|
|
|
3227
3218
|
}, "t4"), e[6] = i, e[7] = u, e[8] = E) : E = e[8];
|
|
3228
3219
|
const _ = E;
|
|
3229
3220
|
let N;
|
|
3230
|
-
e[9] !== d ? (N = /* @__PURE__ */
|
|
3221
|
+
e[9] !== d ? (N = /* @__PURE__ */ r((oe, fe) => {
|
|
3231
3222
|
d?.(oe, fe);
|
|
3232
3223
|
}, "t5"), e[9] = d, e[10] = N) : N = e[10];
|
|
3233
3224
|
const v = N;
|
|
3234
3225
|
let b;
|
|
3235
|
-
e[11] !== f ? (b = /* @__PURE__ */
|
|
3226
|
+
e[11] !== f ? (b = /* @__PURE__ */ r((oe) => {
|
|
3236
3227
|
f?.(oe);
|
|
3237
3228
|
}, "t6"), e[11] = f, e[12] = b) : b = e[12];
|
|
3238
3229
|
const p = b;
|
|
3239
3230
|
let H;
|
|
3240
|
-
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */
|
|
3241
|
-
/* @__PURE__ */ c(
|
|
3242
|
-
/* @__PURE__ */ c(
|
|
3231
|
+
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ r((oe) => /* @__PURE__ */ Q(Se, { children: [
|
|
3232
|
+
/* @__PURE__ */ c(tn, { onClick: /* @__PURE__ */ r((fe) => Y(fe, oe), "onClick") }),
|
|
3233
|
+
/* @__PURE__ */ c(Jt, { onClick: /* @__PURE__ */ r((fe) => I(fe, oe), "onClick") })
|
|
3243
3234
|
] }), "t7"), e[13] = H) : H = e[13];
|
|
3244
3235
|
const C = H, z = x.view?.viewType?.personal || "个人";
|
|
3245
3236
|
let W;
|
|
3246
|
-
e[14] !== s ? (W = /* @__PURE__ */
|
|
3237
|
+
e[14] !== s ? (W = /* @__PURE__ */ r((oe) => s(oe), "t9"), e[14] = s, e[15] = W) : W = e[15];
|
|
3247
3238
|
let U;
|
|
3248
|
-
e[16] !== i || e[17] !==
|
|
3239
|
+
e[16] !== i || e[17] !== a || e[18] !== m || e[19] !== T || e[20] !== W ? (U = /* @__PURE__ */ c(qt, { views: T, activeView: i, countUrl: a, onSwitchView: W, onGetRecordCount: m }), e[16] = i, e[17] = a, e[18] = m, e[19] = T, e[20] = W, e[21] = U) : U = e[21];
|
|
3249
3240
|
let K;
|
|
3250
3241
|
e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = C("PERSONAL"), e[22] = K) : K = e[22];
|
|
3251
3242
|
let q;
|
|
@@ -3257,9 +3248,9 @@ function Ea(t) {
|
|
|
3257
3248
|
}, e[23] = U, e[24] = z, e[25] = q) : q = e[25];
|
|
3258
3249
|
const ee = x.view?.viewType?.shared || "公共";
|
|
3259
3250
|
let te;
|
|
3260
|
-
e[26] !== s ? (te = /* @__PURE__ */
|
|
3251
|
+
e[26] !== s ? (te = /* @__PURE__ */ r((oe) => s(oe), "t14"), e[26] = s, e[27] = te) : te = e[27];
|
|
3261
3252
|
let G;
|
|
3262
|
-
e[28] !== i || e[29] !==
|
|
3253
|
+
e[28] !== i || e[29] !== a || e[30] !== m || e[31] !== y || e[32] !== te ? (G = /* @__PURE__ */ c(qt, { views: y, activeView: i, countUrl: a, onSwitchView: te, onGetRecordCount: m }), e[28] = i, e[29] = a, e[30] = m, e[31] = y, e[32] = te, e[33] = G) : G = e[33];
|
|
3263
3254
|
let J;
|
|
3264
3255
|
e[34] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = C("SHARED"), e[34] = J) : J = e[34];
|
|
3265
3256
|
let g;
|
|
@@ -3275,7 +3266,7 @@ function Ea(t) {
|
|
|
3275
3266
|
let le;
|
|
3276
3267
|
e[41] !== l ? (le = /* @__PURE__ */ c("div", { className: be.title, children: l }), e[41] = l, e[42] = le) : le = e[42];
|
|
3277
3268
|
let se;
|
|
3278
|
-
e[43] !== o ? (se = /* @__PURE__ */
|
|
3269
|
+
e[43] !== o ? (se = /* @__PURE__ */ r(() => {
|
|
3279
3270
|
o(!1);
|
|
3280
3271
|
}, "t20"), e[43] = o, e[44] = se) : se = e[44];
|
|
3281
3272
|
let de;
|
|
@@ -3283,70 +3274,70 @@ function Ea(t) {
|
|
|
3283
3274
|
let ne;
|
|
3284
3275
|
e[46] !== se ? (ne = /* @__PURE__ */ c("div", { onClick: se, children: de }), e[46] = se, e[47] = ne) : ne = e[47];
|
|
3285
3276
|
let ie;
|
|
3286
|
-
e[48] !== le || e[49] !== ne ? (ie = /* @__PURE__ */
|
|
3277
|
+
e[48] !== le || e[49] !== ne ? (ie = /* @__PURE__ */ Q(pe, { align: "center", justify: "space-between", className: be.top, children: [
|
|
3287
3278
|
le,
|
|
3288
3279
|
ne
|
|
3289
3280
|
] }), e[48] = le, e[49] = ne, e[50] = ie) : ie = e[50];
|
|
3290
3281
|
let ye;
|
|
3291
3282
|
e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = ["1", "2"], e[51] = ye) : ye = e[51];
|
|
3292
|
-
let ae;
|
|
3293
|
-
e[52] !== me ? (ae = /* @__PURE__ */ c(kn, { items: me, defaultActiveKey: ye, className: be.customCollapse }), e[52] = me, e[53] = ae) : ae = e[53];
|
|
3294
3283
|
let re;
|
|
3295
|
-
e[
|
|
3284
|
+
e[52] !== me ? (re = /* @__PURE__ */ c(xn, { items: me, defaultActiveKey: ye, className: be.customCollapse }), e[52] = me, e[53] = re) : re = e[53];
|
|
3285
|
+
let ae;
|
|
3286
|
+
e[54] !== ie || e[55] !== re ? (ae = /* @__PURE__ */ Q(pe, { vertical: !0, gap: "16px", children: [
|
|
3296
3287
|
ie,
|
|
3297
|
-
|
|
3298
|
-
] }), e[54] = ie, e[55] =
|
|
3288
|
+
re
|
|
3289
|
+
] }), e[54] = ie, e[55] = re, e[56] = ae) : ae = e[56];
|
|
3299
3290
|
let Ce;
|
|
3300
|
-
e[57] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ce = /* @__PURE__ */
|
|
3291
|
+
e[57] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ce = /* @__PURE__ */ r(() => w(!1), "t27"), e[57] = Ce) : Ce = e[57];
|
|
3301
3292
|
let he;
|
|
3302
3293
|
e[58] !== p || e[59] !== v || e[60] !== R || e[61] !== T ? (he = /* @__PURE__ */ c(Qt, { viewType: "PERSONAL", views: T, open: R, onCancel: Ce, onEditViewName: v, onDeleteView: p }), e[58] = p, e[59] = v, e[60] = R, e[61] = T, e[62] = he) : he = e[62];
|
|
3303
3294
|
let ce;
|
|
3304
|
-
e[63] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ce = /* @__PURE__ */
|
|
3295
|
+
e[63] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ce = /* @__PURE__ */ r(() => O(!1), "t29"), e[63] = ce) : ce = e[63];
|
|
3305
3296
|
let _e;
|
|
3306
3297
|
e[64] !== p || e[65] !== v || e[66] !== A || e[67] !== y ? (_e = /* @__PURE__ */ c(Qt, { viewType: "SHARED", views: y, open: A, onCancel: ce, onEditViewName: v, onDeleteView: p }), e[64] = p, e[65] = v, e[66] = A, e[67] = y, e[68] = _e) : _e = e[68];
|
|
3307
3298
|
let Ie;
|
|
3308
|
-
e[69] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ie = /* @__PURE__ */
|
|
3299
|
+
e[69] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ie = /* @__PURE__ */ r(() => $(!1), "t31"), e[69] = Ie) : Ie = e[69];
|
|
3309
3300
|
let Ne;
|
|
3310
|
-
e[70] !== k || e[71] !== _ || e[72] !== F || e[73] !== P ? (Ne = /* @__PURE__ */ c(
|
|
3301
|
+
e[70] !== k || e[71] !== _ || e[72] !== F || e[73] !== P ? (Ne = /* @__PURE__ */ c(Ln, { mode: P, open: F, defaultViewType: k, onSaveView: _, onCancel: Ie }), e[70] = k, e[71] = _, e[72] = F, e[73] = P, e[74] = Ne) : Ne = e[74];
|
|
3311
3302
|
let ue;
|
|
3312
|
-
return e[75] !==
|
|
3313
|
-
|
|
3303
|
+
return e[75] !== ae || e[76] !== he || e[77] !== _e || e[78] !== Ne ? (ue = /* @__PURE__ */ Q(Ee, { children: [
|
|
3304
|
+
ae,
|
|
3314
3305
|
he,
|
|
3315
3306
|
_e,
|
|
3316
3307
|
Ne
|
|
3317
|
-
] }), e[75] =
|
|
3308
|
+
] }), e[75] = ae, e[76] = he, e[77] = _e, e[78] = Ne, e[79] = ue) : ue = e[79], ue;
|
|
3318
3309
|
}
|
|
3319
|
-
|
|
3320
|
-
function
|
|
3310
|
+
r(yr, "ViewPanel");
|
|
3311
|
+
function Cr(t) {
|
|
3321
3312
|
return t.type === "SHARED";
|
|
3322
3313
|
}
|
|
3323
|
-
|
|
3324
|
-
function
|
|
3314
|
+
r(Cr, "_temp2");
|
|
3315
|
+
function vr(t) {
|
|
3325
3316
|
return t.type === "PERSONAL";
|
|
3326
3317
|
}
|
|
3327
|
-
|
|
3328
|
-
function
|
|
3318
|
+
r(vr, "_temp");
|
|
3319
|
+
function Ln(t) {
|
|
3329
3320
|
const e = j(39), {
|
|
3330
3321
|
mode: l,
|
|
3331
3322
|
open: n,
|
|
3332
3323
|
defaultViewType: i,
|
|
3333
|
-
defaultViewName:
|
|
3324
|
+
defaultViewName: a,
|
|
3334
3325
|
onSaveView: s,
|
|
3335
3326
|
onCancel: o
|
|
3336
3327
|
} = t, {
|
|
3337
3328
|
locale: u
|
|
3338
3329
|
} = De();
|
|
3339
3330
|
let d;
|
|
3340
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */
|
|
3331
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ r(() => {
|
|
3341
3332
|
D.current?.submit();
|
|
3342
3333
|
}, "t0"), e[0] = d) : d = e[0];
|
|
3343
3334
|
const f = d;
|
|
3344
3335
|
let m, h;
|
|
3345
|
-
e[1] !==
|
|
3346
|
-
D.current?.setFieldValue("type", i || "PERSONAL"), D.current?.setFieldValue("name",
|
|
3347
|
-
}, "t1"), h = [i,
|
|
3336
|
+
e[1] !== a || e[2] !== i ? (m = /* @__PURE__ */ r(() => {
|
|
3337
|
+
D.current?.setFieldValue("type", i || "PERSONAL"), D.current?.setFieldValue("name", a || "");
|
|
3338
|
+
}, "t1"), h = [i, a], e[1] = a, e[2] = i, e[3] = m, e[4] = h) : (m = e[3], h = e[4]), Le(m, h);
|
|
3348
3339
|
let T;
|
|
3349
|
-
e[5] !== o ? (T = /* @__PURE__ */
|
|
3340
|
+
e[5] !== o ? (T = /* @__PURE__ */ r(() => {
|
|
3350
3341
|
o?.();
|
|
3351
3342
|
}, "t3"), e[5] = o, e[6] = T) : T = e[6];
|
|
3352
3343
|
const S = T, y = u.personalView || "个人视图";
|
|
@@ -3365,7 +3356,7 @@ function bn(t) {
|
|
|
3365
3356
|
e[11] !== R || e[12] !== A ? (O = [R, A], e[11] = R, e[12] = A, e[13] = O) : O = e[13];
|
|
3366
3357
|
const P = O, D = Re(null);
|
|
3367
3358
|
let F;
|
|
3368
|
-
e[14] !== s ? (F = /* @__PURE__ */
|
|
3359
|
+
e[14] !== s ? (F = /* @__PURE__ */ r((C) => {
|
|
3369
3360
|
s?.(C.name, C.type);
|
|
3370
3361
|
}, "t9"), e[14] = s, e[15] = F) : F = e[15];
|
|
3371
3362
|
const $ = F, k = l === "Create" ? u.createViewMethod?.create || "创建视图" : u.createViewMethod?.saveAs || "另存为新视图";
|
|
@@ -3384,7 +3375,7 @@ function bn(t) {
|
|
|
3384
3375
|
required: !0
|
|
3385
3376
|
}], e[19] = V) : V = e[19];
|
|
3386
3377
|
let I;
|
|
3387
|
-
e[20] !== P ? (I = /* @__PURE__ */ c(
|
|
3378
|
+
e[20] !== P ? (I = /* @__PURE__ */ c($n.Group, { options: P, optionType: "button" }), e[20] = P, e[21] = I) : I = e[21];
|
|
3388
3379
|
let E;
|
|
3389
3380
|
e[22] !== Y || e[23] !== I ? (E = /* @__PURE__ */ c(Tt.Item, { label: Y, name: "type", rules: V, children: I }), e[22] = Y, e[23] = I, e[24] = E) : E = e[24];
|
|
3390
3381
|
const _ = u.view?.viewName || "视图名称";
|
|
@@ -3398,32 +3389,32 @@ function bn(t) {
|
|
|
3398
3389
|
let b;
|
|
3399
3390
|
e[27] !== _ ? (b = /* @__PURE__ */ c(Tt.Item, { label: _, name: "name", rules: N, children: v }), e[27] = _, e[28] = b) : b = e[28];
|
|
3400
3391
|
let p;
|
|
3401
|
-
e[29] !== $ || e[30] !== L || e[31] !== E || e[32] !== b ? (p = /* @__PURE__ */
|
|
3392
|
+
e[29] !== $ || e[30] !== L || e[31] !== E || e[32] !== b ? (p = /* @__PURE__ */ Q(Tt, { ref: D, name: "basic", labelCol: M, initialValues: L, onFinish: $, autoComplete: "off", children: [
|
|
3402
3393
|
E,
|
|
3403
3394
|
b
|
|
3404
3395
|
] }), e[29] = $, e[30] = L, e[31] = E, e[32] = b, e[33] = p) : p = e[33];
|
|
3405
3396
|
let H;
|
|
3406
3397
|
return e[34] !== S || e[35] !== n || e[36] !== k || e[37] !== p ? (H = /* @__PURE__ */ c(ot, { title: k, open: n, onOk: f, okText: "确认", onCancel: S, cancelText: "取消", children: p }), e[34] = S, e[35] = n, e[36] = k, e[37] = p, e[38] = H) : H = e[38], H;
|
|
3407
3398
|
}
|
|
3408
|
-
|
|
3409
|
-
function
|
|
3399
|
+
r(Ln, "SaveViewModal");
|
|
3400
|
+
function Ir(t) {
|
|
3410
3401
|
const e = j(16), {
|
|
3411
3402
|
view: l,
|
|
3412
3403
|
editing: n,
|
|
3413
3404
|
onEdit: i,
|
|
3414
|
-
onCancel:
|
|
3405
|
+
onCancel: a,
|
|
3415
3406
|
onSave: s,
|
|
3416
3407
|
onDelete: o
|
|
3417
|
-
} = t, [u, d] =
|
|
3408
|
+
} = t, [u, d] = X(l.name), {
|
|
3418
3409
|
locale: f
|
|
3419
3410
|
} = De();
|
|
3420
3411
|
let m;
|
|
3421
|
-
e[0] !==
|
|
3422
|
-
d(l.name),
|
|
3423
|
-
}, "t0"), e[0] =
|
|
3412
|
+
e[0] !== a || e[1] !== l.name ? (m = /* @__PURE__ */ r(() => {
|
|
3413
|
+
d(l.name), a();
|
|
3414
|
+
}, "t0"), e[0] = a, e[1] = l.name, e[2] = m) : m = e[2];
|
|
3424
3415
|
const h = m;
|
|
3425
3416
|
let T;
|
|
3426
|
-
e[3] !== s || e[4] !== l || e[5] !== u ? (T = /* @__PURE__ */
|
|
3417
|
+
e[3] !== s || e[4] !== l || e[5] !== u ? (T = /* @__PURE__ */ r(() => {
|
|
3427
3418
|
u.trim() !== "" && s({
|
|
3428
3419
|
...l,
|
|
3429
3420
|
name: u
|
|
@@ -3431,72 +3422,72 @@ function ya(t) {
|
|
|
3431
3422
|
}, "t1"), e[3] = s, e[4] = l, e[5] = u, e[6] = T) : T = e[6];
|
|
3432
3423
|
const S = T;
|
|
3433
3424
|
let y;
|
|
3434
|
-
return e[7] !== n || e[8] !== h || e[9] !== S || e[10] !== f || e[11] !== o || e[12] !== i || e[13] !== l || e[14] !== u ? (y = /* @__PURE__ */ c(Ee, { children: n ? /* @__PURE__ */
|
|
3425
|
+
return e[7] !== n || e[8] !== h || e[9] !== S || e[10] !== f || e[11] !== o || e[12] !== i || e[13] !== l || e[14] !== u ? (y = /* @__PURE__ */ c(Ee, { children: n ? /* @__PURE__ */ Q(pe, { align: "center", justify: "space-between", gap: 12, style: {
|
|
3435
3426
|
width: "100%"
|
|
3436
3427
|
}, children: [
|
|
3437
|
-
/* @__PURE__ */ c(qe, { value: u, onChange: /* @__PURE__ */
|
|
3438
|
-
/* @__PURE__ */
|
|
3428
|
+
/* @__PURE__ */ c(qe, { value: u, onChange: /* @__PURE__ */ r((R) => d(R.target.value), "onChange") }),
|
|
3429
|
+
/* @__PURE__ */ Q(Se, { orientation: "horizontal", children: [
|
|
3439
3430
|
/* @__PURE__ */ c(Te, { type: "default", size: "small", onClick: h, children: f.viewPanel?.cancelButton || "取消" }),
|
|
3440
3431
|
/* @__PURE__ */ c(Te, { type: "primary", size: "small", onClick: S, children: f.viewPanel?.saveButton || "保存" })
|
|
3441
3432
|
] })
|
|
3442
|
-
] }) : /* @__PURE__ */
|
|
3433
|
+
] }) : /* @__PURE__ */ Q(pe, { align: "center", justify: "space-between", gap: 12, style: {
|
|
3443
3434
|
width: "100%"
|
|
3444
3435
|
}, children: [
|
|
3445
|
-
/* @__PURE__ */ c(
|
|
3436
|
+
/* @__PURE__ */ c(en, { style: {
|
|
3446
3437
|
color: l.source === "SYSTEM" ? "rgba(0,0,0,0.25)" : ""
|
|
3447
3438
|
} }),
|
|
3448
3439
|
/* @__PURE__ */ c("span", { style: {
|
|
3449
3440
|
width: "100%",
|
|
3450
3441
|
textAlign: "left"
|
|
3451
3442
|
}, children: u }),
|
|
3452
|
-
l.source === "CUSTOM" ? /* @__PURE__ */
|
|
3453
|
-
/* @__PURE__ */ c(ll, { onClick: /* @__PURE__ */
|
|
3454
|
-
/* @__PURE__ */ c(
|
|
3443
|
+
l.source === "CUSTOM" ? /* @__PURE__ */ Q(Se, { orientation: "horizontal", children: [
|
|
3444
|
+
/* @__PURE__ */ c(ll, { onClick: /* @__PURE__ */ r(() => i(l), "onClick") }),
|
|
3445
|
+
/* @__PURE__ */ c(kn, { title: "确认删除此视图?", description: "视图删除后不可恢复,其数据不受影响,是否确认删除?", onConfirm: /* @__PURE__ */ r(() => o(l), "onConfirm"), okText: "确认", cancelText: "取消", children: /* @__PURE__ */ c(il, {}) })
|
|
3455
3446
|
] }) : /* @__PURE__ */ c(bt, { children: "系统" })
|
|
3456
3447
|
] }) }), e[7] = n, e[8] = h, e[9] = S, e[10] = f, e[11] = o, e[12] = i, e[13] = l, e[14] = u, e[15] = y) : y = e[15], y;
|
|
3457
3448
|
}
|
|
3458
|
-
|
|
3449
|
+
r(Ir, "ViewManageItem");
|
|
3459
3450
|
function Qt(t) {
|
|
3460
3451
|
const e = j(30), {
|
|
3461
3452
|
viewType: l,
|
|
3462
3453
|
views: n,
|
|
3463
3454
|
open: i,
|
|
3464
|
-
onCancel:
|
|
3455
|
+
onCancel: a,
|
|
3465
3456
|
onEditViewName: s,
|
|
3466
3457
|
onDeleteView: o
|
|
3467
|
-
} = t, [u, d] =
|
|
3458
|
+
} = t, [u, d] = X(null);
|
|
3468
3459
|
let f;
|
|
3469
|
-
e[0] !== u?.id ? (f = /* @__PURE__ */
|
|
3460
|
+
e[0] !== u?.id ? (f = /* @__PURE__ */ r((V) => u?.id === V.id, "t0"), e[0] = u?.id, e[1] = f) : f = e[1];
|
|
3470
3461
|
const m = f;
|
|
3471
3462
|
let h;
|
|
3472
|
-
e[2] !==
|
|
3473
|
-
|
|
3474
|
-
}, "t1"), e[2] =
|
|
3463
|
+
e[2] !== a ? (h = /* @__PURE__ */ r(() => {
|
|
3464
|
+
a?.();
|
|
3465
|
+
}, "t1"), e[2] = a, e[3] = h) : h = e[3];
|
|
3475
3466
|
const T = h;
|
|
3476
3467
|
let S;
|
|
3477
|
-
e[4] !==
|
|
3478
|
-
|
|
3479
|
-
}, "t2"), e[4] =
|
|
3468
|
+
e[4] !== a ? (S = /* @__PURE__ */ r(() => {
|
|
3469
|
+
a?.();
|
|
3470
|
+
}, "t2"), e[4] = a, e[5] = S) : S = e[5];
|
|
3480
3471
|
const y = S;
|
|
3481
3472
|
let R;
|
|
3482
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */
|
|
3473
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ r(() => {
|
|
3483
3474
|
d(null);
|
|
3484
3475
|
}, "t3"), e[6] = R) : R = e[6];
|
|
3485
3476
|
const w = R;
|
|
3486
3477
|
let A;
|
|
3487
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */
|
|
3478
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ r((V) => {
|
|
3488
3479
|
d(V);
|
|
3489
3480
|
}, "t4"), e[7] = A) : A = e[7];
|
|
3490
3481
|
const O = A;
|
|
3491
3482
|
let P;
|
|
3492
|
-
e[8] !== o ? (P = /* @__PURE__ */
|
|
3483
|
+
e[8] !== o ? (P = /* @__PURE__ */ r((V) => {
|
|
3493
3484
|
o?.(V, () => {
|
|
3494
3485
|
d(null);
|
|
3495
3486
|
});
|
|
3496
3487
|
}, "t5"), e[8] = o, e[9] = P) : P = e[9];
|
|
3497
3488
|
const D = P;
|
|
3498
3489
|
let F;
|
|
3499
|
-
e[10] !== s ? (F = /* @__PURE__ */
|
|
3490
|
+
e[10] !== s ? (F = /* @__PURE__ */ r((V) => {
|
|
3500
3491
|
s?.(V, () => {
|
|
3501
3492
|
d(null);
|
|
3502
3493
|
});
|
|
@@ -3509,7 +3500,7 @@ function Qt(t) {
|
|
|
3509
3500
|
let x;
|
|
3510
3501
|
if (e[13] !== D || e[14] !== $ || e[15] !== m || e[16] !== n) {
|
|
3511
3502
|
let V;
|
|
3512
|
-
e[18] !== D || e[19] !== $ || e[20] !== m ? (V = /* @__PURE__ */
|
|
3503
|
+
e[18] !== D || e[19] !== $ || e[20] !== m ? (V = /* @__PURE__ */ r((I) => /* @__PURE__ */ c(Ir, { editing: m(I), onCancel: w, onDelete: D, onEdit: O, onSave: $, view: I }), "t102"), e[18] = D, e[19] = $, e[20] = m, e[21] = V) : V = e[21], x = n.map(V), e[13] = D, e[14] = $, e[15] = m, e[16] = n, e[17] = x;
|
|
3513
3504
|
} else
|
|
3514
3505
|
x = e[17];
|
|
3515
3506
|
let L;
|
|
@@ -3517,24 +3508,24 @@ function Qt(t) {
|
|
|
3517
3508
|
let Y;
|
|
3518
3509
|
return e[24] !== y || e[25] !== T || e[26] !== i || e[27] !== L || e[28] !== k ? (Y = /* @__PURE__ */ c(ot, { title: k, open: i, onOk: T, okText: "确定", cancelText: "取消", onCancel: y, children: L }), e[24] = y, e[25] = T, e[26] = i, e[27] = L, e[28] = k, e[29] = Y) : Y = e[29], Y;
|
|
3519
3510
|
}
|
|
3520
|
-
|
|
3511
|
+
r(Qt, "ViewManageModal");
|
|
3521
3512
|
const {
|
|
3522
|
-
Header:
|
|
3523
|
-
Sider:
|
|
3524
|
-
Content:
|
|
3513
|
+
Header: Nr,
|
|
3514
|
+
Sider: pr,
|
|
3515
|
+
Content: Lr
|
|
3525
3516
|
} = vt;
|
|
3526
|
-
function
|
|
3517
|
+
function Ar(t) {
|
|
3527
3518
|
const e = j(113);
|
|
3528
3519
|
let l;
|
|
3529
3520
|
e[0] !== t ? ({
|
|
3530
3521
|
...l
|
|
3531
3522
|
} = t, e[0] = t, e[1] = l) : l = e[1];
|
|
3532
|
-
let n, i,
|
|
3523
|
+
let n, i, a, s, o, u, d, f, m, h, T;
|
|
3533
3524
|
e[2] !== l ? ({
|
|
3534
3525
|
ref: T,
|
|
3535
3526
|
defaultViews: i,
|
|
3536
3527
|
defaultView: n,
|
|
3537
|
-
definition:
|
|
3528
|
+
definition: a,
|
|
3538
3529
|
onLoadData: d,
|
|
3539
3530
|
onGetRecordCount: u,
|
|
3540
3531
|
onCreateView: s,
|
|
@@ -3542,13 +3533,13 @@ function Na(t) {
|
|
|
3542
3533
|
onDeleteView: o,
|
|
3543
3534
|
onSwitchView: f,
|
|
3544
3535
|
...h
|
|
3545
|
-
} = l, e[2] = l, e[3] = n, e[4] = i, e[5] =
|
|
3536
|
+
} = l, e[2] = l, e[3] = n, e[4] = i, e[5] = a, e[6] = s, e[7] = o, e[8] = u, e[9] = d, e[10] = f, e[11] = m, e[12] = h, e[13] = T) : (n = e[3], i = e[4], a = e[5], s = e[6], o = e[7], u = e[8], d = e[9], f = e[10], m = e[11], h = e[12], T = e[13]);
|
|
3546
3537
|
let S;
|
|
3547
|
-
e[14] !== n || e[15] !== i || e[16] !==
|
|
3538
|
+
e[14] !== n || e[15] !== i || e[16] !== a ? (S = {
|
|
3548
3539
|
views: i,
|
|
3549
3540
|
defaultView: n,
|
|
3550
|
-
definition:
|
|
3551
|
-
}, e[14] = n, e[15] = i, e[16] =
|
|
3541
|
+
definition: a
|
|
3542
|
+
}, e[14] = n, e[15] = i, e[16] = a, e[17] = S) : S = e[17];
|
|
3552
3543
|
const {
|
|
3553
3544
|
activeView: y,
|
|
3554
3545
|
showFilter: R,
|
|
@@ -3574,87 +3565,87 @@ function Na(t) {
|
|
|
3574
3565
|
views: p,
|
|
3575
3566
|
setViews: H,
|
|
3576
3567
|
reset: C
|
|
3577
|
-
} =
|
|
3568
|
+
} = br(S);
|
|
3578
3569
|
let z;
|
|
3579
3570
|
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = [], e[18] = z) : z = e[18];
|
|
3580
|
-
const [W, U] =
|
|
3571
|
+
const [W, U] = X(z), K = Re(null);
|
|
3581
3572
|
let q;
|
|
3582
|
-
e[19] !== s || e[20] !== f || e[21] !== H || e[22] !== b || e[23] !== p ? (q = /* @__PURE__ */
|
|
3573
|
+
e[19] !== s || e[20] !== f || e[21] !== H || e[22] !== b || e[23] !== p ? (q = /* @__PURE__ */ r((ue, oe) => {
|
|
3583
3574
|
s?.(ue, (fe) => {
|
|
3584
3575
|
H([...p, fe]), b(fe), f?.(fe), oe?.();
|
|
3585
3576
|
});
|
|
3586
3577
|
}, "t3"), e[19] = s, e[20] = f, e[21] = H, e[22] = b, e[23] = p, e[24] = q) : q = e[24];
|
|
3587
3578
|
const ee = q;
|
|
3588
3579
|
let te;
|
|
3589
|
-
e[25] !== m || e[26] !== H || e[27] !== b || e[28] !== p ? (te = /* @__PURE__ */
|
|
3580
|
+
e[25] !== m || e[26] !== H || e[27] !== b || e[28] !== p ? (te = /* @__PURE__ */ r((ue, oe) => {
|
|
3590
3581
|
m?.(ue, (fe) => {
|
|
3591
3582
|
H(p.map((Fe) => Fe.id === fe.id ? fe : Fe)), b(fe), oe?.();
|
|
3592
3583
|
});
|
|
3593
3584
|
}, "t4"), e[25] = m, e[26] = H, e[27] = b, e[28] = p, e[29] = te) : te = e[29];
|
|
3594
3585
|
const G = te;
|
|
3595
3586
|
let J;
|
|
3596
|
-
e[30] !== y.id || e[31] !== o || e[32] !== f || e[33] !== H || e[34] !== b || e[35] !== p ? (J = /* @__PURE__ */
|
|
3587
|
+
e[30] !== y.id || e[31] !== o || e[32] !== f || e[33] !== H || e[34] !== b || e[35] !== p ? (J = /* @__PURE__ */ r((ue, oe) => {
|
|
3597
3588
|
o?.(ue, (fe) => {
|
|
3598
3589
|
H(p.filter((Fe) => Fe.id !== fe.id)), y.id === fe.id && (b(p[0]), f?.(p[0])), oe?.();
|
|
3599
3590
|
});
|
|
3600
3591
|
}, "t5"), e[30] = y.id, e[31] = o, e[32] = f, e[33] = H, e[34] = b, e[35] = p, e[36] = J) : J = e[36];
|
|
3601
3592
|
const g = J;
|
|
3602
3593
|
let Z;
|
|
3603
|
-
e[37] !== O ? (Z = /* @__PURE__ */
|
|
3594
|
+
e[37] !== O ? (Z = /* @__PURE__ */ r((ue) => {
|
|
3604
3595
|
O(ue);
|
|
3605
3596
|
}, "t6"), e[37] = O, e[38] = Z) : Z = e[38];
|
|
3606
3597
|
const me = Z;
|
|
3607
3598
|
let le;
|
|
3608
|
-
e[39] !== d || e[40] !== f || e[41] !== b ? (le = /* @__PURE__ */
|
|
3599
|
+
e[39] !== d || e[40] !== f || e[41] !== b ? (le = /* @__PURE__ */ r((ue) => {
|
|
3609
3600
|
b(ue), d?.(ue.condition, 1, ue.pageSize, ue.sorter), f?.(ue);
|
|
3610
3601
|
}, "t7"), e[39] = d, e[40] = f, e[41] = b, e[42] = le) : le = e[42];
|
|
3611
3602
|
const se = le;
|
|
3612
3603
|
let de;
|
|
3613
|
-
e[43] !== d || e[44] !== C ? (de = /* @__PURE__ */
|
|
3604
|
+
e[43] !== d || e[44] !== C ? (de = /* @__PURE__ */ r(() => {
|
|
3614
3605
|
const ue = C();
|
|
3615
3606
|
K.current?.reset(), d?.(ue.condition, 1, ue.pageSize, ue.sorter);
|
|
3616
3607
|
}, "t8"), e[43] = d, e[44] = C, e[45] = de) : de = e[45];
|
|
3617
3608
|
const ne = de;
|
|
3618
3609
|
let ie;
|
|
3619
|
-
e[46] !== d ? (ie = /* @__PURE__ */
|
|
3610
|
+
e[46] !== d ? (ie = /* @__PURE__ */ r((ue, oe, fe, Fe) => {
|
|
3620
3611
|
d?.(ue, oe, fe, Fe), K.current?.clearSelectedRowKeys();
|
|
3621
3612
|
}, "t9"), e[46] = d, e[47] = ie) : ie = e[47];
|
|
3622
3613
|
const ye = ie;
|
|
3623
|
-
let
|
|
3624
|
-
e[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3625
|
-
clearSelectedRowKeys: /* @__PURE__ */
|
|
3614
|
+
let re;
|
|
3615
|
+
e[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ r(() => ({
|
|
3616
|
+
clearSelectedRowKeys: /* @__PURE__ */ r(() => {
|
|
3626
3617
|
K.current?.clearSelectedRowKeys();
|
|
3627
3618
|
}, "clearSelectedRowKeys")
|
|
3628
|
-
}), "t10"), e[48] =
|
|
3629
|
-
let
|
|
3630
|
-
e[49] !== y || e[50] !==
|
|
3619
|
+
}), "t10"), e[48] = re) : re = e[48], Ae(T, re);
|
|
3620
|
+
let ae;
|
|
3621
|
+
e[49] !== y || e[50] !== a.countUrl || e[51] !== a.name || e[52] !== ee || e[53] !== g || e[54] !== me || e[55] !== se || e[56] !== G || e[57] !== u || e[58] !== A || e[59] !== p ? (ae = A && /* @__PURE__ */ c(pr, { className: Ke.userViews, width: 220, children: /* @__PURE__ */ c(yr, { name: a.name, views: p, activeView: y, countUrl: a.countUrl, onSwitchView: se, onShowViewPanelChange: me, onGetRecordCount: u, onCreateView: ee, onUpdateView: G, onDeleteView: g }) }), e[49] = y, e[50] = a.countUrl, e[51] = a.name, e[52] = ee, e[53] = g, e[54] = me, e[55] = se, e[56] = G, e[57] = u, e[58] = A, e[59] = p, e[60] = ae) : ae = e[60];
|
|
3631
3622
|
let Ce;
|
|
3632
3623
|
e[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ce = {
|
|
3633
3624
|
display: "flex"
|
|
3634
3625
|
}, e[61] = Ce) : Ce = e[61];
|
|
3635
3626
|
let he;
|
|
3636
|
-
e[62] !== y || e[63] !==
|
|
3627
|
+
e[62] !== y || e[63] !== a.name || e[64] !== ee || e[65] !== g || e[66] !== ne || e[67] !== G || e[68] !== h.batchActions || e[69] !== h.primaryAction || e[70] !== h.secondaryActions || e[71] !== w || e[72] !== O || e[73] !== I || e[74] !== R || e[75] !== A || e[76] !== W || e[77] !== P || e[78] !== p ? (he = /* @__PURE__ */ c(Nr, { className: Ke.topBar, children: /* @__PURE__ */ c(Za, { tableSelectedItems: W, title: a.name, activeView: y, views: p, defaultTableSize: y.tableSize, primaryAction: h.primaryAction, secondaryActions: h.secondaryActions, batchActions: h.batchActions, viewChanged: P, onReset: ne, showViewPanel: A, showFilter: R, onShowFilterChange: w, onShowViewPanelChange: O, onTableSizeChange: I, onCreateView: ee, onUpdateView: G, onDeleteView: g }) }), e[62] = y, e[63] = a.name, e[64] = ee, e[65] = g, e[66] = ne, e[67] = G, e[68] = h.batchActions, e[69] = h.primaryAction, e[70] = h.secondaryActions, e[71] = w, e[72] = O, e[73] = I, e[74] = R, e[75] = A, e[76] = W, e[77] = P, e[78] = p, e[79] = he) : he = e[79];
|
|
3637
3628
|
const ce = h.enableRowSelection ?? !0;
|
|
3638
3629
|
let _e;
|
|
3639
|
-
e[80] !== $ || e[81] !== y.id || e[82] !== D || e[83] !== E || e[84] !==
|
|
3630
|
+
e[80] !== $ || e[81] !== y.id || e[82] !== D || e[83] !== E || e[84] !== a.availableFilters || e[85] !== a.fields || e[86] !== ye || e[87] !== h.actionColumn || e[88] !== h.dataSource || e[89] !== h.loading || e[90] !== h.onClickPrimaryKey || e[91] !== h.pagination || e[92] !== h.viewTableSetting || e[93] !== M || e[94] !== L || e[95] !== k || e[96] !== F || e[97] !== _ || e[98] !== x || e[99] !== Y || e[100] !== v || e[101] !== I || e[102] !== R || e[103] !== N || e[104] !== ce || e[105] !== V ? (_e = /* @__PURE__ */ c(lr, { ref: K, fields: a.fields, availableFilters: a.availableFilters, dataSource: h.dataSource, enableRowSelection: ce, loading: h.loading, filterMode: "editable", pagination: h.pagination, showFilter: R, viewTableSetting: h.viewTableSetting, actionColumn: h.actionColumn, onClickPrimaryKey: h.onClickPrimaryKey, onSelectedDataChange: U, defaultActiveFilters: $, externalActiveFilters: $, externalUpdateActiveFilters: k, defaultColumns: D, externalColumns: D, externalUpdateColumns: F, defaultPage: M, externalPage: M, externalUpdatePage: x, defaultPageSize: L, externalPageSize: L, externalUpdatePageSize: Y, defaultTableSize: V, externalTableSize: V, externalUpdateTableSize: I, defaultCondition: E, externalCondition: E, externalUpdateCondition: _, defaultSorter: N, externalSorter: N, externalUpdateSorter: v, onChange: ye }, y.id), e[80] = $, e[81] = y.id, e[82] = D, e[83] = E, e[84] = a.availableFilters, e[85] = a.fields, e[86] = ye, e[87] = h.actionColumn, e[88] = h.dataSource, e[89] = h.loading, e[90] = h.onClickPrimaryKey, e[91] = h.pagination, e[92] = h.viewTableSetting, e[93] = M, e[94] = L, e[95] = k, e[96] = F, e[97] = _, e[98] = x, e[99] = Y, e[100] = v, e[101] = I, e[102] = R, e[103] = N, e[104] = ce, e[105] = V, e[106] = _e) : _e = e[106];
|
|
3640
3631
|
let Ie;
|
|
3641
|
-
e[107] !== he || e[108] !== _e ? (Ie = /* @__PURE__ */ c(vt, { className: Ke.container, children: /* @__PURE__ */ c(
|
|
3632
|
+
e[107] !== he || e[108] !== _e ? (Ie = /* @__PURE__ */ c(vt, { className: Ke.container, children: /* @__PURE__ */ c(Lr, { children: /* @__PURE__ */ Q(Se, { orientation: "vertical", style: Ce, size: "small", children: [
|
|
3642
3633
|
he,
|
|
3643
3634
|
_e
|
|
3644
3635
|
] }) }) }), e[107] = he, e[108] = _e, e[109] = Ie) : Ie = e[109];
|
|
3645
3636
|
let Ne;
|
|
3646
|
-
return e[110] !==
|
|
3647
|
-
|
|
3637
|
+
return e[110] !== ae || e[111] !== Ie ? (Ne = /* @__PURE__ */ Q(vt, { children: [
|
|
3638
|
+
ae,
|
|
3648
3639
|
Ie
|
|
3649
|
-
] }), e[110] =
|
|
3640
|
+
] }), e[110] = ae, e[111] = Ie, e[112] = Ne) : Ne = e[112], Ne;
|
|
3650
3641
|
}
|
|
3651
|
-
|
|
3652
|
-
function
|
|
3642
|
+
r(Ar, "Viewer");
|
|
3643
|
+
function br({
|
|
3653
3644
|
defaultShowFilter: t = !0,
|
|
3654
3645
|
defaultShowViewPanel: e = !0,
|
|
3655
3646
|
...l
|
|
3656
3647
|
}) {
|
|
3657
|
-
const n = Re(l.defaultView), [i,
|
|
3648
|
+
const n = Re(l.defaultView), [i, a] = X(l.views), [s, o] = X(l.defaultView), [u, d] = X(t), [f, m] = X(e), {
|
|
3658
3649
|
columns: h,
|
|
3659
3650
|
setColumns: T,
|
|
3660
3651
|
page: S,
|
|
@@ -3669,28 +3660,28 @@ function pa({
|
|
|
3669
3660
|
setCondition: $,
|
|
3670
3661
|
sorter: k,
|
|
3671
3662
|
setSorter: M
|
|
3672
|
-
} =
|
|
3663
|
+
} = yn({
|
|
3673
3664
|
defaultColumns: s.columns,
|
|
3674
3665
|
defaultPageSize: s.pageSize,
|
|
3675
3666
|
defaultActiveFilters: s.filters,
|
|
3676
3667
|
defaultTableSize: s.tableSize,
|
|
3677
3668
|
defaultCondition: s.condition,
|
|
3678
3669
|
defaultSorter: s.sorter
|
|
3679
|
-
}), [x, L] =
|
|
3670
|
+
}), [x, L] = X(!1);
|
|
3680
3671
|
return Le(() => {
|
|
3681
3672
|
L(!At(s, n.current));
|
|
3682
3673
|
}, [s]), {
|
|
3683
3674
|
activeView: s,
|
|
3684
3675
|
showFilter: u,
|
|
3685
|
-
setShowFilter: /* @__PURE__ */
|
|
3676
|
+
setShowFilter: /* @__PURE__ */ r((C) => {
|
|
3686
3677
|
d(C);
|
|
3687
3678
|
}, "setShowFilterFn"),
|
|
3688
3679
|
showViewPanel: f,
|
|
3689
|
-
setShowViewPanel: /* @__PURE__ */
|
|
3680
|
+
setShowViewPanel: /* @__PURE__ */ r((C) => {
|
|
3690
3681
|
m(C);
|
|
3691
3682
|
}, "setShowViewPanelFn"),
|
|
3692
3683
|
columns: h,
|
|
3693
|
-
setColumns: /* @__PURE__ */
|
|
3684
|
+
setColumns: /* @__PURE__ */ r((C) => {
|
|
3694
3685
|
T(C), o({
|
|
3695
3686
|
...s,
|
|
3696
3687
|
columns: C
|
|
@@ -3699,28 +3690,28 @@ function pa({
|
|
|
3699
3690
|
page: S,
|
|
3700
3691
|
setPage: y,
|
|
3701
3692
|
pageSize: R,
|
|
3702
|
-
setPageSize: /* @__PURE__ */
|
|
3693
|
+
setPageSize: /* @__PURE__ */ r((C) => {
|
|
3703
3694
|
w(C), o({
|
|
3704
3695
|
...s,
|
|
3705
3696
|
pageSize: C
|
|
3706
3697
|
});
|
|
3707
3698
|
}, "setPageSizeFn"),
|
|
3708
3699
|
activeFilters: A,
|
|
3709
|
-
setActiveFilters: /* @__PURE__ */
|
|
3700
|
+
setActiveFilters: /* @__PURE__ */ r((C) => {
|
|
3710
3701
|
O(C), o({
|
|
3711
3702
|
...s,
|
|
3712
3703
|
filters: C
|
|
3713
3704
|
});
|
|
3714
3705
|
}, "setActiveFiltersFn"),
|
|
3715
3706
|
tableSize: P,
|
|
3716
|
-
setTableSize: /* @__PURE__ */
|
|
3707
|
+
setTableSize: /* @__PURE__ */ r((C) => {
|
|
3717
3708
|
D(C), o({
|
|
3718
3709
|
...s,
|
|
3719
3710
|
tableSize: C
|
|
3720
3711
|
});
|
|
3721
3712
|
}, "setTableSizeFn"),
|
|
3722
3713
|
condition: F,
|
|
3723
|
-
setCondition: /* @__PURE__ */
|
|
3714
|
+
setCondition: /* @__PURE__ */ r((C, z) => {
|
|
3724
3715
|
$(C);
|
|
3725
3716
|
const W = A.map((U) => {
|
|
3726
3717
|
const K = z.get(U.key);
|
|
@@ -3741,7 +3732,7 @@ function pa({
|
|
|
3741
3732
|
});
|
|
3742
3733
|
}, "setConditionFn"),
|
|
3743
3734
|
sorter: k,
|
|
3744
|
-
setSorter: /* @__PURE__ */
|
|
3735
|
+
setSorter: /* @__PURE__ */ r((C) => {
|
|
3745
3736
|
M(C);
|
|
3746
3737
|
const z = h.map((U) => {
|
|
3747
3738
|
const K = C.find((q) => q.field == U.name);
|
|
@@ -3760,124 +3751,124 @@ function pa({
|
|
|
3760
3751
|
}, "setSorterFn"),
|
|
3761
3752
|
viewChanged: x,
|
|
3762
3753
|
views: i,
|
|
3763
|
-
setViews:
|
|
3764
|
-
onSwitchView: /* @__PURE__ */
|
|
3754
|
+
setViews: a,
|
|
3755
|
+
onSwitchView: /* @__PURE__ */ r((C) => {
|
|
3765
3756
|
n.current = C, o(C), y(1), w(C.pageSize), T(C.columns), $(C.condition || Ve()), O(C.filters), D(C.tableSize), M(C.sorter || []);
|
|
3766
3757
|
}, "onSwitchViewFn"),
|
|
3767
|
-
reset: /* @__PURE__ */
|
|
3758
|
+
reset: /* @__PURE__ */ r(() => (o(n.current), y(1), w(n.current.pageSize), T(n.current.columns), O(n.current.filters), $(n.current.condition || Ve()), D(n.current.tableSize), M(n.current.sorter || []), n.current), "resetFn")
|
|
3768
3759
|
};
|
|
3769
3760
|
}
|
|
3770
|
-
|
|
3761
|
+
r(br, "useViewerState");
|
|
3771
3762
|
export {
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3763
|
+
$i as ACTIONS_CELL_TYPE,
|
|
3764
|
+
xi as ACTION_CELL_TYPE,
|
|
3765
|
+
Ui as AVATAR_CELL_TYPE,
|
|
3775
3766
|
Je as ActionCell,
|
|
3776
|
-
|
|
3767
|
+
Cn as ActionsCell,
|
|
3777
3768
|
Ue as AssemblyFilter,
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3769
|
+
Ha as AutoRefreshBarItem,
|
|
3770
|
+
ql as AvailableFilterSelect,
|
|
3771
|
+
Xl as AvailableFilterSelectModal,
|
|
3772
|
+
zi as AvatarCell,
|
|
3773
|
+
di as BOOL_FILTER,
|
|
3783
3774
|
ze as BarItem,
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3775
|
+
dn as BoolFilter,
|
|
3776
|
+
Gi as CALENDAR_CELL_TYPE,
|
|
3777
|
+
ha as CURRENCY_CELL_TYPE,
|
|
3778
|
+
qi as CalendarTimeCell,
|
|
3779
|
+
Ba as ColumnHeightBarItem,
|
|
3780
|
+
Ta as CurrencyCell,
|
|
3781
|
+
Ki as DATETIME_CELL_TYPE,
|
|
3782
|
+
ji as DEFAULT_CALENDAR_FORMATS,
|
|
3783
|
+
Sn as DEFAULT_CONDITION,
|
|
3793
3784
|
we as DEFAULT_CURRENCY_FORMAT_OPTIONS,
|
|
3794
3785
|
tt as DEFAULT_DATE_TIME_FORMAT,
|
|
3795
|
-
|
|
3796
|
-
|
|
3786
|
+
vn as DateTimeCell,
|
|
3787
|
+
Di as EditableFilterPanel,
|
|
3797
3788
|
je as ExtendedOperator,
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3789
|
+
Tn as FallbackFilter,
|
|
3790
|
+
gr as FetcherViewer,
|
|
3791
|
+
Wa as FilterBarItem,
|
|
3792
|
+
_n as FilterPanel,
|
|
3793
|
+
Al as Fullscreen,
|
|
3794
|
+
si as ID_FILTER,
|
|
3795
|
+
ta as IMAGE_CELL_TYPE,
|
|
3796
|
+
la as IMAGE_GROUP_CELL_TYPE,
|
|
3797
|
+
cn as IdFilter,
|
|
3798
|
+
oi as IdOnOperatorChangeValueConverter,
|
|
3799
|
+
na as ImageCell,
|
|
3800
|
+
ia as ImageGroupCell,
|
|
3801
|
+
ra as LINK_CELL_TYPE,
|
|
3802
|
+
ca as LinkCell,
|
|
3803
|
+
ci as NUMBER_FILTER,
|
|
3804
|
+
un as NumberFilter,
|
|
3805
|
+
Cl as NumberRange,
|
|
3806
|
+
Sl as NumberTagValueItemSerializer,
|
|
3807
|
+
Wl as OPERATOR_zh_CN,
|
|
3808
|
+
Ka as Point,
|
|
3809
|
+
Ga as RefreshDataBarItem,
|
|
3810
|
+
Ll as RemoteSelect,
|
|
3811
|
+
Li as RemovableTypedFilter,
|
|
3812
|
+
fi as SELECT_FILTER,
|
|
3813
|
+
Ln as SaveViewModal,
|
|
3814
|
+
fn as SelectFilter,
|
|
3815
|
+
ja as ShareLinkBarItem,
|
|
3816
|
+
_l as StringTagValueItemSerializer,
|
|
3817
|
+
Ji as TAGS_CELL_TYPE,
|
|
3818
|
+
Zi as TAG_CELL_TYPE,
|
|
3819
|
+
Xi as TEXT_CELL_TYPE,
|
|
3820
|
+
ri as TEXT_FILTER,
|
|
3830
3821
|
Yt as TableFieldItem,
|
|
3831
|
-
|
|
3832
|
-
|
|
3822
|
+
pa as TableSettingPanel,
|
|
3823
|
+
Nn as TagCell,
|
|
3833
3824
|
dt as TagInput,
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3825
|
+
ea as TagsCell,
|
|
3826
|
+
In as TextCell,
|
|
3827
|
+
on as TextFilter,
|
|
3828
|
+
Za as TopBar,
|
|
3829
|
+
Jl as TrueValidateValue,
|
|
3830
|
+
at as TypedComponentRegistry,
|
|
3840
3831
|
Lt as TypedFilter,
|
|
3841
3832
|
Rt as VIEWER_BOUNDED_CONTEXT_ALIAS,
|
|
3842
|
-
|
|
3833
|
+
lr as View,
|
|
3843
3834
|
Ye as ViewAggregatedFields,
|
|
3844
3835
|
Oe as ViewCommandClient,
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3836
|
+
Ol as ViewCommandEndpointPaths,
|
|
3837
|
+
wl as ViewDomainEventTypeMapTitle,
|
|
3838
|
+
Sr as ViewItem,
|
|
3848
3839
|
qt as ViewItemGroup,
|
|
3849
|
-
|
|
3840
|
+
Ir as ViewManageItem,
|
|
3850
3841
|
Qt as ViewManageModal,
|
|
3851
|
-
|
|
3842
|
+
yr as ViewPanel,
|
|
3852
3843
|
$t as ViewStreamCommandClient,
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3844
|
+
$a as ViewTable,
|
|
3845
|
+
Ar as Viewer,
|
|
3846
|
+
$l as ViewerDefinitionAggregatedFields,
|
|
3847
|
+
Pl as ViewerDefinitionDomainEventTypeMapTitle,
|
|
3848
|
+
Sa as cellRegistry,
|
|
3849
|
+
Br as currentTimeZone,
|
|
3859
3850
|
At as deepEqual,
|
|
3860
|
-
|
|
3861
|
-
|
|
3851
|
+
Ci as filterRegistry,
|
|
3852
|
+
fa as formatCurrency,
|
|
3862
3853
|
gt as isActionCellProps,
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3854
|
+
Mi as isNullOrUndefined,
|
|
3855
|
+
Zl as isValidBetweenValue,
|
|
3856
|
+
Hi as isValidImageSrc,
|
|
3866
3857
|
Vt as isValidValue,
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3858
|
+
Pa as mapToTableRecord,
|
|
3859
|
+
Vi as parseDayjs,
|
|
3860
|
+
ya as typedCellRender,
|
|
3861
|
+
yn as useActiveViewState,
|
|
3862
|
+
Hl as useFetchData,
|
|
3863
|
+
ii as useFilterState,
|
|
3873
3864
|
De as useLocale,
|
|
3874
3865
|
Dt as useRefreshDataEventBus,
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3866
|
+
cr as useViewState,
|
|
3867
|
+
Va as useViewTableState,
|
|
3868
|
+
Vl as useViewerDefinition,
|
|
3869
|
+
br as useViewerState,
|
|
3870
|
+
Ml as useViewerViews,
|
|
3871
|
+
zr as viewQueryClientFactory,
|
|
3872
|
+
xl as viewerDefinitionQueryClientFactory
|
|
3882
3873
|
};
|
|
3883
3874
|
//# sourceMappingURL=index.es.js.map
|