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