@ahoo-wang/fetcher-viewer 3.13.2 → 3.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1079 -1077
- 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/viewer/Viewer.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/index.es.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
var
|
|
2
|
-
var r = (t, e) =>
|
|
1
|
+
var Fn = Object.defineProperty;
|
|
2
|
+
var r = (t, e) => Fn(t, "name", { value: e, configurable: !0 });
|
|
3
3
|
import { jsx as c, jsxs as J, Fragment as Ee } from "react/jsx-runtime";
|
|
4
4
|
import { c as G } from "react/compiler-runtime";
|
|
5
|
-
import { Select as
|
|
6
|
-
import
|
|
7
|
-
import { useDebouncedExecutePromise as
|
|
8
|
-
import { FullscreenOutlined as
|
|
9
|
-
import { ContentTypeValues as
|
|
10
|
-
import { post as
|
|
11
|
-
import { JsonEventStreamResultExtractor as
|
|
12
|
-
import { ResourceAttributionPathSpec as
|
|
13
|
-
import { SerialTypedEventBus as
|
|
14
|
-
import { KeyStorage as
|
|
15
|
-
const
|
|
5
|
+
import { Select as ut, InputNumber as at, Space as Ce, Input as Xe, Flex as pe, Spin as St, Empty as ot, Button as Te, Row as Ct, Col as yt, Checkbox as Jt, Divider as Ye, Modal as ft, theme as Pn, Typography as Ue, DatePicker as _t, Alert as xn, Dropdown as ke, Avatar as Tt, Tag as Ot, Image as vt, Badge as $n, Table as Vn, Popover as kn, Tooltip as Ze, message as Mn, Pagination as gn, Collapse as Un, Radio as Hn, Form as tt, Popconfirm as zn, Layout as It, ConfigProvider as Bn } from "antd";
|
|
6
|
+
import en, { useState as ee, useCallback as tn, useEffect as Ae, useRef as Le, useImperativeHandle as be, createElement as Pt } from "react";
|
|
7
|
+
import { useDebouncedExecutePromise as Yn, useFullscreen as nn, useSingleQuery as Wn, useFetcherListQuery as Kn, useFetcherPagedQuery as Gn, useKeyStorage as jn, useRefs as qn } from "@ahoo-wang/fetcher-react";
|
|
8
|
+
import { FullscreenOutlined as ln, FullscreenExitOutlined as rn, MinusOutlined as Qn, ClearOutlined as Xn, SearchOutlined as Zn, PlusOutlined as an, DownOutlined as Ke, DragOutlined as on, SettingOutlined as sn, ColumnHeightOutlined as Jn, FilterOutlined as el, ReloadOutlined as tl, LinkOutlined as nl, ExclamationCircleOutlined as ll, MenuUnfoldOutlined as il, MenuFoldOutlined as rl, EditOutlined as al, DeleteOutlined as ol } from "@ant-design/icons";
|
|
9
|
+
import { ContentTypeValues as sl, fetcherRegistrar as cl, TextResultExtractor as ul } from "@ahoo-wang/fetcher";
|
|
10
|
+
import { post as fl, path as je, request as dt, attribute as mt, del as dl, put as cn, api as un, autoGeneratedError as Je } from "@ahoo-wang/fetcher-decorator";
|
|
11
|
+
import { JsonEventStreamResultExtractor as ml } from "@ahoo-wang/fetcher-eventstream";
|
|
12
|
+
import { ResourceAttributionPathSpec as fn, QueryClientFactory as dn, aggregateId as hl, listQuery as _l, and as Rt, eq as xt, isIn as $t, all as qe, EMPTY_VALUE_OPERATORS as Tl, Operator as z } from "@ahoo-wang/fetcher-wow";
|
|
13
|
+
import { SerialTypedEventBus as El, BroadcastTypedEventBus as Sl } from "@ahoo-wang/fetcher-eventbus";
|
|
14
|
+
import { KeyStorage as Cl } from "@ahoo-wang/fetcher-storage";
|
|
15
|
+
const yl = {
|
|
16
16
|
serialize(t) {
|
|
17
17
|
return t;
|
|
18
18
|
},
|
|
19
19
|
deserialize(t) {
|
|
20
20
|
return t;
|
|
21
21
|
}
|
|
22
|
-
},
|
|
22
|
+
}, vl = {
|
|
23
23
|
serialize(t) {
|
|
24
24
|
return t.map((e) => e.toString());
|
|
25
25
|
},
|
|
26
26
|
deserialize(t) {
|
|
27
27
|
return t.map((e) => parseFloat(e));
|
|
28
28
|
}
|
|
29
|
-
},
|
|
30
|
-
function
|
|
29
|
+
}, Il = [",", ",", ";", ";", " "];
|
|
30
|
+
function ht(t) {
|
|
31
31
|
const e = G(22);
|
|
32
32
|
let l, n, i, a, o, s;
|
|
33
33
|
e[0] !== t ? ({
|
|
@@ -38,13 +38,13 @@ function mt(t) {
|
|
|
38
38
|
onChange: l,
|
|
39
39
|
...n
|
|
40
40
|
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = i, e[4] = a, e[5] = o, e[6] = s) : (l = e[1], n = e[2], i = e[3], a = e[4], o = e[5], s = e[6]);
|
|
41
|
-
const u = i === void 0 ?
|
|
41
|
+
const u = i === void 0 ? Il : i, d = a === void 0 ? !0 : a, f = o === void 0 ? yl : o;
|
|
42
42
|
let m;
|
|
43
43
|
e[7] !== l || e[8] !== f ? (m = /* @__PURE__ */ r((C) => {
|
|
44
44
|
if (!l)
|
|
45
45
|
return;
|
|
46
|
-
const
|
|
47
|
-
l(
|
|
46
|
+
const O = f.deserialize(C);
|
|
47
|
+
l(O);
|
|
48
48
|
}, "t3"), e[7] = l, e[8] = f, e[9] = m) : m = e[9];
|
|
49
49
|
const h = m;
|
|
50
50
|
let _ = null;
|
|
@@ -57,18 +57,18 @@ function mt(t) {
|
|
|
57
57
|
e[13] !== f || e[14] !== s ? (C = f.serialize([s]), e[13] = f, e[14] = s, e[15] = C) : C = e[15], _ = C;
|
|
58
58
|
}
|
|
59
59
|
let S;
|
|
60
|
-
return e[16] !== d || e[17] !== h || e[18] !== n || e[19] !== _ || e[20] !== u ? (S = /* @__PURE__ */ c(
|
|
60
|
+
return e[16] !== d || e[17] !== h || e[18] !== n || e[19] !== _ || e[20] !== u ? (S = /* @__PURE__ */ c(ut, { ...n, mode: "tags", open: !1, suffixIcon: null, allowClear: d, tokenSeparators: u, value: _, onChange: h }), e[16] = d, e[17] = h, e[18] = n, e[19] = _, e[20] = u, e[21] = S) : S = e[21], S;
|
|
61
61
|
}
|
|
62
|
-
r(
|
|
63
|
-
|
|
64
|
-
const
|
|
65
|
-
function
|
|
62
|
+
r(ht, "TagInput");
|
|
63
|
+
ht.displayName = "TagInput";
|
|
64
|
+
const Vt = /* @__PURE__ */ r((t) => Array.isArray(t) ? t : [t, void 0], "convertToRangeValue"), Et = ["最小值", "最大值"];
|
|
65
|
+
function Nl(t) {
|
|
66
66
|
const e = G(35), l = t.value !== void 0;
|
|
67
67
|
let n;
|
|
68
|
-
e[0] !== t.defaultValue ? (n =
|
|
68
|
+
e[0] !== t.defaultValue ? (n = Vt(t.defaultValue), e[0] = t.defaultValue, e[1] = n) : n = e[1];
|
|
69
69
|
const [i, a] = ee(n);
|
|
70
70
|
let o;
|
|
71
|
-
e[2] !== i || e[3] !== l || e[4] !== t.value ? (o = l ?
|
|
71
|
+
e[2] !== i || e[3] !== l || e[4] !== t.value ? (o = l ? Vt(t.value) : i, e[2] = i, e[3] = l, e[4] = t.value, e[5] = o) : o = e[5];
|
|
72
72
|
const s = o, [u, d] = s;
|
|
73
73
|
let f;
|
|
74
74
|
e[6] !== l || e[7] !== t ? (f = /* @__PURE__ */ r((M) => {
|
|
@@ -84,21 +84,21 @@ function vl(t) {
|
|
|
84
84
|
e[12] !== m || e[13] !== u ? (S = /* @__PURE__ */ r((M) => {
|
|
85
85
|
m([u, M ?? void 0]);
|
|
86
86
|
}, "t4"), e[12] = m, e[13] = u, e[14] = S) : S = e[14];
|
|
87
|
-
const C = S,
|
|
87
|
+
const C = S, O = d !== void 0 ? d : t.max, F = u !== void 0 ? u : t.min;
|
|
88
88
|
let A;
|
|
89
|
-
e[15] !== t.placeholder ? (A = t.placeholder ? [t.placeholder[0] ||
|
|
90
|
-
const
|
|
89
|
+
e[15] !== t.placeholder ? (A = t.placeholder ? [t.placeholder[0] || Et[0], t.placeholder[1] || Et[1]] : Et, e[15] = t.placeholder, e[16] = A) : A = e[16];
|
|
90
|
+
const b = A;
|
|
91
91
|
let P;
|
|
92
|
-
e[17] !== _ || e[18] !==
|
|
92
|
+
e[17] !== _ || e[18] !== b[0] || e[19] !== t.min || e[20] !== t.precision || e[21] !== u || e[22] !== O ? (P = /* @__PURE__ */ c(at, { value: u, min: t.min, max: O, precision: t.precision, placeholder: b[0], onChange: _ }), e[17] = _, e[18] = b[0], e[19] = t.min, e[20] = t.precision, e[21] = u, e[22] = O, e[23] = P) : P = e[23];
|
|
93
93
|
let R;
|
|
94
|
-
e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ c(
|
|
94
|
+
e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ c(Xe, { style: {
|
|
95
95
|
width: 30,
|
|
96
96
|
borderInlineStart: 0,
|
|
97
97
|
borderInlineEnd: 0,
|
|
98
98
|
pointerEvents: "none"
|
|
99
99
|
}, placeholder: "~", disabled: !0 }), e[24] = R) : R = e[24];
|
|
100
100
|
let w;
|
|
101
|
-
e[25] !== d || e[26] !== F || e[27] !== C || e[28] !==
|
|
101
|
+
e[25] !== d || e[26] !== F || e[27] !== C || e[28] !== b[1] || e[29] !== t.max || e[30] !== t.precision ? (w = /* @__PURE__ */ c(at, { value: d, min: F, max: t.max, precision: t.precision, placeholder: b[1], onChange: C }), e[25] = d, e[26] = F, e[27] = C, e[28] = b[1], e[29] = t.max, e[30] = t.precision, e[31] = w) : w = e[31];
|
|
102
102
|
let $;
|
|
103
103
|
return e[32] !== P || e[33] !== w ? ($ = /* @__PURE__ */ J(Ce.Compact, { block: !0, children: [
|
|
104
104
|
P,
|
|
@@ -106,21 +106,21 @@ function vl(t) {
|
|
|
106
106
|
w
|
|
107
107
|
] }), e[32] = P, e[33] = w, e[34] = $) : $ = e[34], $;
|
|
108
108
|
}
|
|
109
|
-
r(
|
|
110
|
-
const
|
|
109
|
+
r(Nl, "NumberRange");
|
|
110
|
+
const pl = {
|
|
111
111
|
delay: 300,
|
|
112
112
|
leading: !1,
|
|
113
113
|
trailing: !0
|
|
114
|
-
},
|
|
115
|
-
function
|
|
114
|
+
}, Al = [], Ll = [];
|
|
115
|
+
function bl(t, e) {
|
|
116
116
|
const l = /* @__PURE__ */ new Set();
|
|
117
117
|
return t.filter((n) => {
|
|
118
118
|
const i = e(n);
|
|
119
119
|
return l.has(i) ? !1 : (l.add(i), !0);
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
-
r(
|
|
123
|
-
function
|
|
122
|
+
r(bl, "uniqueBy");
|
|
123
|
+
function Ol(t) {
|
|
124
124
|
const e = G(32);
|
|
125
125
|
let l, n, i, a, o, s;
|
|
126
126
|
e[0] !== t ? ({
|
|
@@ -131,7 +131,7 @@ function Ll(t) {
|
|
|
131
131
|
additionalOptions: s,
|
|
132
132
|
...n
|
|
133
133
|
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = i, e[4] = a, e[5] = o, e[6] = s) : (l = e[1], n = e[2], i = e[3], a = e[4], o = e[5], s = e[6]);
|
|
134
|
-
const u = i === void 0 ?
|
|
134
|
+
const u = i === void 0 ? pl : i, d = a === void 0 ? Al : a, f = o === void 0 ? "value" : o, m = s === void 0 ? Ll : s;
|
|
135
135
|
let h;
|
|
136
136
|
e[7] !== u ? (h = {
|
|
137
137
|
debounce: u
|
|
@@ -140,20 +140,20 @@ function Ll(t) {
|
|
|
140
140
|
loading: _,
|
|
141
141
|
result: S,
|
|
142
142
|
run: C
|
|
143
|
-
} =
|
|
144
|
-
let b;
|
|
145
|
-
e[9] !== S || e[10] !== C || e[11] !== l ? (b = /* @__PURE__ */ r((H) => {
|
|
146
|
-
H.trim() === "" && S || C(() => l(H));
|
|
147
|
-
}, "t5"), e[9] = S, e[10] = C, e[11] = l, e[12] = b) : b = e[12];
|
|
148
|
-
const F = b, A = S ?? d;
|
|
143
|
+
} = Yn(h);
|
|
149
144
|
let O;
|
|
145
|
+
e[9] !== S || e[10] !== C || e[11] !== l ? (O = /* @__PURE__ */ r((H) => {
|
|
146
|
+
H.trim() === "" && S || C(() => l(H));
|
|
147
|
+
}, "t5"), e[9] = S, e[10] = C, e[11] = l, e[12] = O) : O = e[12];
|
|
148
|
+
const F = O, A = S ?? d;
|
|
149
|
+
let b;
|
|
150
150
|
if (e[13] !== m || e[14] !== A || e[15] !== f) {
|
|
151
151
|
const H = [...A, ...m];
|
|
152
152
|
let x;
|
|
153
|
-
e[17] !== f ? (x = /* @__PURE__ */ r((L) => L[f], "t82"), e[17] = f, e[18] = x) : x = e[18],
|
|
153
|
+
e[17] !== f ? (x = /* @__PURE__ */ r((L) => L[f], "t82"), e[17] = f, e[18] = x) : x = e[18], b = bl(H, x), e[13] = m, e[14] = A, e[15] = f, e[16] = b;
|
|
154
154
|
} else
|
|
155
|
-
|
|
156
|
-
const P =
|
|
155
|
+
b = e[16];
|
|
156
|
+
const P = b;
|
|
157
157
|
let R;
|
|
158
158
|
e[19] !== F ? (R = {
|
|
159
159
|
filterOption: !1,
|
|
@@ -161,155 +161,155 @@ function Ll(t) {
|
|
|
161
161
|
}, e[19] = F, e[20] = R) : R = e[20];
|
|
162
162
|
let w;
|
|
163
163
|
e[21] !== _ ? (w = _ ? /* @__PURE__ */ J(pe, { align: "center", gap: 4, children: [
|
|
164
|
-
/* @__PURE__ */ c(
|
|
164
|
+
/* @__PURE__ */ c(St, { size: "small", styles: {
|
|
165
165
|
indicator: {
|
|
166
166
|
color: "rgba(0, 0, 0, 0.25)"
|
|
167
167
|
}
|
|
168
168
|
} }),
|
|
169
169
|
/* @__PURE__ */ c("span", { children: "数据加载中..." })
|
|
170
|
-
] }) : /* @__PURE__ */ c(
|
|
170
|
+
] }) : /* @__PURE__ */ c(ot, { image: ot.PRESENTED_IMAGE_SIMPLE }), e[21] = _, e[22] = w) : w = e[22];
|
|
171
171
|
let $;
|
|
172
172
|
e[23] !== _ || e[24] !== P ? ($ = _ ? [] : P, e[23] = _, e[24] = P, e[25] = $) : $ = e[25];
|
|
173
173
|
let M;
|
|
174
|
-
return e[26] !== _ || e[27] !== n || e[28] !== $ || e[29] !== R || e[30] !== w ? (M = /* @__PURE__ */ c(
|
|
174
|
+
return e[26] !== _ || e[27] !== n || e[28] !== $ || e[29] !== R || e[30] !== w ? (M = /* @__PURE__ */ c(ut, { showSearch: R, loading: _, notFoundContent: w, options: $, ...n }), e[26] = _, e[27] = n, e[28] = $, e[29] = R, e[30] = w, e[31] = M) : M = e[31], M;
|
|
175
175
|
}
|
|
176
|
-
r(
|
|
177
|
-
|
|
178
|
-
function
|
|
176
|
+
r(Ol, "RemoteSelect");
|
|
177
|
+
Ol.displayName = "RemoteSelect";
|
|
178
|
+
function Rl(t) {
|
|
179
179
|
const {
|
|
180
180
|
target: e,
|
|
181
181
|
onChange: l,
|
|
182
|
-
enterIcon: n = /* @__PURE__ */ c(
|
|
183
|
-
exitIcon: i = /* @__PURE__ */ c(
|
|
182
|
+
enterIcon: n = /* @__PURE__ */ c(ln, {}),
|
|
183
|
+
exitIcon: i = /* @__PURE__ */ c(rn, {}),
|
|
184
184
|
...a
|
|
185
185
|
} = t, {
|
|
186
186
|
isFullscreen: o,
|
|
187
187
|
toggle: s
|
|
188
|
-
} =
|
|
188
|
+
} = nn({
|
|
189
189
|
target: e,
|
|
190
190
|
onChange: l
|
|
191
191
|
});
|
|
192
|
-
return /* @__PURE__ */ c(
|
|
192
|
+
return /* @__PURE__ */ c(Te, { ...a, icon: o ? i : n, onClick: s });
|
|
193
193
|
}
|
|
194
|
-
r(
|
|
195
|
-
|
|
196
|
-
const
|
|
197
|
-
var
|
|
198
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
194
|
+
r(Rl, "Fullscreen");
|
|
195
|
+
Rl.displayName = "FullScreen";
|
|
196
|
+
const Dt = "viewer";
|
|
197
|
+
var Dl = Object.defineProperty, wl = Object.getOwnPropertyDescriptor, He = /* @__PURE__ */ r((t, e, l, n) => {
|
|
198
|
+
for (var i = n > 1 ? void 0 : n ? wl(e, l) : e, a = t.length - 1, o; a >= 0; a--)
|
|
199
199
|
(o = t[a]) && (i = (n ? o(e, l, i) : o(i)) || i);
|
|
200
|
-
return n && i &&
|
|
201
|
-
}, "__decorateClass"), ve = /* @__PURE__ */ r((t, e) => (l, n) => e(l, n, t), "__decorateParam"),
|
|
202
|
-
const
|
|
203
|
-
basePath:
|
|
200
|
+
return n && i && Dl(e, l, i), i;
|
|
201
|
+
}, "__decorateClass"), ve = /* @__PURE__ */ r((t, e) => (l, n) => e(l, n, t), "__decorateParam"), Fl = /* @__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))(Fl || {});
|
|
202
|
+
const mn = {
|
|
203
|
+
basePath: Dt
|
|
204
204
|
};
|
|
205
|
-
var
|
|
206
|
-
let De = (
|
|
207
|
-
constructor(e =
|
|
205
|
+
var Me;
|
|
206
|
+
let De = (Me = class {
|
|
207
|
+
constructor(e = mn) {
|
|
208
208
|
this.apiMetadata = e;
|
|
209
209
|
}
|
|
210
210
|
createView(e, l, n) {
|
|
211
|
-
throw
|
|
211
|
+
throw Je(e, l, n);
|
|
212
212
|
}
|
|
213
213
|
defaultDeleteAggregate(e, l, n) {
|
|
214
|
-
throw
|
|
214
|
+
throw Je(e, l, n);
|
|
215
215
|
}
|
|
216
216
|
defaultRecoverAggregate(e, l, n) {
|
|
217
|
-
throw
|
|
217
|
+
throw Je(e, l, n);
|
|
218
218
|
}
|
|
219
219
|
editView(e, l, n, i) {
|
|
220
|
-
throw
|
|
220
|
+
throw Je(e, l, n, i);
|
|
221
221
|
}
|
|
222
|
-
}, r(
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
}, r(Me, "ViewCommandClient"), Me);
|
|
223
|
+
He([
|
|
224
|
+
fl(
|
|
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, je("type")),
|
|
229
|
+
ve(1, dt()),
|
|
230
|
+
ve(2, mt())
|
|
231
231
|
], De.prototype, "createView", 1);
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
He([
|
|
233
|
+
dl(
|
|
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, je("id")),
|
|
238
|
+
ve(1, dt()),
|
|
239
|
+
ve(2, mt())
|
|
240
240
|
], De.prototype, "defaultDeleteAggregate", 1);
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
He([
|
|
242
|
+
cn(
|
|
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, je("id")),
|
|
247
|
+
ve(1, dt()),
|
|
248
|
+
ve(2, mt())
|
|
249
249
|
], De.prototype, "defaultRecoverAggregate", 1);
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
He([
|
|
251
|
+
cn(
|
|
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, je("type")),
|
|
256
|
+
ve(1, je("id")),
|
|
257
|
+
ve(2, dt()),
|
|
258
|
+
ve(3, mt())
|
|
259
259
|
], De.prototype, "editView", 1);
|
|
260
|
-
De =
|
|
261
|
-
|
|
260
|
+
De = He([
|
|
261
|
+
un()
|
|
262
262
|
], De);
|
|
263
|
-
var
|
|
264
|
-
let
|
|
265
|
-
constructor(e =
|
|
263
|
+
var ge;
|
|
264
|
+
let kt = (ge = class extends De {
|
|
265
|
+
constructor(e = mn) {
|
|
266
266
|
super(e);
|
|
267
267
|
}
|
|
268
|
-
}, r(
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
headers: { Accept:
|
|
272
|
-
resultExtractor:
|
|
268
|
+
}, r(ge, "ViewStreamCommandClient"), ge);
|
|
269
|
+
kt = He([
|
|
270
|
+
un("", {
|
|
271
|
+
headers: { Accept: sl.TEXT_EVENT_STREAM },
|
|
272
|
+
resultExtractor: ml
|
|
273
273
|
})
|
|
274
|
-
],
|
|
275
|
-
const
|
|
276
|
-
contextAlias:
|
|
274
|
+
], kt);
|
|
275
|
+
const Pl = {
|
|
276
|
+
contextAlias: Dt,
|
|
277
277
|
aggregateName: "view",
|
|
278
|
-
resourceAttribution:
|
|
278
|
+
resourceAttribution: fn.TENANT
|
|
279
279
|
};
|
|
280
|
-
var
|
|
281
|
-
const
|
|
282
|
-
var
|
|
283
|
-
const
|
|
284
|
-
contextAlias:
|
|
280
|
+
var xl = /* @__PURE__ */ ((t) => (t.view_created = "视图已创建", t.view_edited = "视图已修改", t))(xl || {});
|
|
281
|
+
const Xa = new dn(Pl);
|
|
282
|
+
var We = /* @__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))(We || {});
|
|
283
|
+
const $l = {
|
|
284
|
+
contextAlias: Dt,
|
|
285
285
|
aggregateName: "viewer_definition",
|
|
286
|
-
resourceAttribution:
|
|
286
|
+
resourceAttribution: fn.NONE
|
|
287
287
|
};
|
|
288
|
-
var
|
|
289
|
-
const
|
|
290
|
-
var
|
|
291
|
-
const
|
|
292
|
-
function
|
|
293
|
-
const { result: e, loading: l, error: n } =
|
|
294
|
-
initialQuery: { condition:
|
|
295
|
-
execute: /* @__PURE__ */ r((i) =>
|
|
288
|
+
var Vl = /* @__PURE__ */ ((t) => (t.viewer_definition_saved = "viewer_definition_saved", t))(Vl || {});
|
|
289
|
+
const kl = new dn($l);
|
|
290
|
+
var Ml = /* @__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))(Ml || {});
|
|
291
|
+
const gl = kl.createSnapshotQueryClient();
|
|
292
|
+
function Ul(t) {
|
|
293
|
+
const { result: e, loading: l, error: n } = Wn({
|
|
294
|
+
initialQuery: { condition: hl(t) },
|
|
295
|
+
execute: /* @__PURE__ */ r((i) => gl.singleState(i), "execute")
|
|
296
296
|
});
|
|
297
297
|
return { viewerDefinition: e, loading: l, error: n };
|
|
298
298
|
}
|
|
299
|
-
r(
|
|
300
|
-
function
|
|
299
|
+
r(Ul, "useViewerDefinition");
|
|
300
|
+
function Hl(t, e, l) {
|
|
301
301
|
const {
|
|
302
302
|
loading: n,
|
|
303
303
|
result: i,
|
|
304
304
|
error: a
|
|
305
|
-
} =
|
|
305
|
+
} = Kn({
|
|
306
306
|
url: "/viewer/view/snapshot/list/state",
|
|
307
|
-
initialQuery:
|
|
308
|
-
condition:
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
307
|
+
initialQuery: _l({
|
|
308
|
+
condition: Rt(
|
|
309
|
+
xt(We.DELETED, !1),
|
|
310
|
+
$t(We.TENANT_ID, "(0)", e),
|
|
311
|
+
$t(We.OWNER_ID, "(shared)", l),
|
|
312
|
+
xt(We.STATE_DEFINITION_ID, t)
|
|
313
313
|
),
|
|
314
314
|
limit: 999
|
|
315
315
|
}),
|
|
@@ -317,15 +317,15 @@ function gl(t, e, l) {
|
|
|
317
317
|
});
|
|
318
318
|
return { views: i, loading: n, error: a };
|
|
319
319
|
}
|
|
320
|
-
r(
|
|
321
|
-
function
|
|
322
|
-
const { viewerDefinition: e, defaultView: l } = t, { result: n, loading: i, error: a, setQuery: o, execute: s } =
|
|
320
|
+
r(Hl, "useViewerViews");
|
|
321
|
+
function zl(t) {
|
|
322
|
+
const { viewerDefinition: e, defaultView: l } = t, { result: n, loading: i, error: a, setQuery: o, execute: s } = Gn({
|
|
323
323
|
url: e?.dataUrl || "",
|
|
324
324
|
autoExecute: !0
|
|
325
|
-
}), u =
|
|
325
|
+
}), u = tn(
|
|
326
326
|
(d, f, m, h) => {
|
|
327
327
|
o({
|
|
328
|
-
condition: l?.internalCondition ?
|
|
328
|
+
condition: l?.internalCondition ? Rt(l.internalCondition, d) : d,
|
|
329
329
|
pagination: {
|
|
330
330
|
index: f,
|
|
331
331
|
size: m
|
|
@@ -337,7 +337,7 @@ function Ul(t) {
|
|
|
337
337
|
);
|
|
338
338
|
return Ae(() => {
|
|
339
339
|
l && e && u(
|
|
340
|
-
l?.condition ||
|
|
340
|
+
l?.condition || qe(),
|
|
341
341
|
1,
|
|
342
342
|
l?.pageSize || 10,
|
|
343
343
|
l?.sorter
|
|
@@ -350,9 +350,9 @@ function Ul(t) {
|
|
|
350
350
|
reload: s
|
|
351
351
|
};
|
|
352
352
|
}
|
|
353
|
-
r(
|
|
354
|
-
const
|
|
355
|
-
function
|
|
353
|
+
r(zl, "useFetchData");
|
|
354
|
+
const wt = new De();
|
|
355
|
+
function Za(t) {
|
|
356
356
|
const e = G(44);
|
|
357
357
|
let l, n, i;
|
|
358
358
|
e[0] !== t ? ({
|
|
@@ -370,25 +370,25 @@ function Qa(t) {
|
|
|
370
370
|
enableRowSelection: _,
|
|
371
371
|
onSwitchView: S,
|
|
372
372
|
viewTableSetting: C,
|
|
373
|
-
primaryAction:
|
|
373
|
+
primaryAction: O,
|
|
374
374
|
secondaryActions: F,
|
|
375
375
|
batchActions: A
|
|
376
376
|
} = l;
|
|
377
|
-
let
|
|
378
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
377
|
+
let b;
|
|
378
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = new Cl({
|
|
379
379
|
key: "fetcher-viewer-local-default-view-id",
|
|
380
380
|
defaultValue: void 0
|
|
381
|
-
}), e[4] =
|
|
382
|
-
const P =
|
|
381
|
+
}), e[4] = b) : b = e[4];
|
|
382
|
+
const P = b, [R, w] = jn(P), {
|
|
383
383
|
viewerDefinition: $,
|
|
384
384
|
loading: M,
|
|
385
385
|
error: H
|
|
386
|
-
} =
|
|
386
|
+
} = Ul(u), {
|
|
387
387
|
views: x,
|
|
388
388
|
loading: L
|
|
389
|
-
} =
|
|
389
|
+
} = Hl(u, o, a);
|
|
390
390
|
let W;
|
|
391
|
-
e[5] !== d || e[6] !== R || e[7] !== x ? (W =
|
|
391
|
+
e[5] !== d || e[6] !== R || e[7] !== x ? (W = Gl(x, R, d), e[5] = d, e[6] = R, e[7] = x, e[8] = W) : W = e[8];
|
|
392
392
|
const g = W;
|
|
393
393
|
let v;
|
|
394
394
|
e[9] !== g || e[10] !== $ ? (v = {
|
|
@@ -400,20 +400,20 @@ function Qa(t) {
|
|
|
400
400
|
loading: E,
|
|
401
401
|
setQuery: N,
|
|
402
402
|
reload: I
|
|
403
|
-
} =
|
|
403
|
+
} = zl(v), D = Le(null);
|
|
404
404
|
let p;
|
|
405
|
-
e[12] !== N ? (p = /* @__PURE__ */ r((Y, Q,
|
|
406
|
-
N?.(Y, Q,
|
|
405
|
+
e[12] !== N ? (p = /* @__PURE__ */ r((Y, Q, de, se) => {
|
|
406
|
+
N?.(Y, Q, de, se);
|
|
407
407
|
}, "t6"), e[12] = N, e[13] = p) : p = e[13];
|
|
408
408
|
const U = p;
|
|
409
409
|
let y;
|
|
410
410
|
e[14] !== S || e[15] !== w ? (y = /* @__PURE__ */ r((Y) => {
|
|
411
411
|
S?.(Y), w(Y.id);
|
|
412
412
|
}, "t7"), e[14] = S, e[15] = w, e[16] = y) : y = e[16];
|
|
413
|
-
const B = y, V =
|
|
413
|
+
const B = y, V = Kl, k = Wl, K = Yl, q = Bl, {
|
|
414
414
|
publish: te,
|
|
415
415
|
subscribe: X
|
|
416
|
-
} =
|
|
416
|
+
} = Ft();
|
|
417
417
|
let j;
|
|
418
418
|
if (e[17] !== te ? (j = /* @__PURE__ */ r(() => ({
|
|
419
419
|
refreshData: te,
|
|
@@ -433,7 +433,7 @@ function Qa(t) {
|
|
|
433
433
|
justifyContent: "center",
|
|
434
434
|
alignItems: "center",
|
|
435
435
|
height: "100vh"
|
|
436
|
-
}, children: /* @__PURE__ */ c(
|
|
436
|
+
}, children: /* @__PURE__ */ c(St, { size: "large" }) }), e[19] = Y) : Y = e[19], Y;
|
|
437
437
|
}
|
|
438
438
|
if (H) {
|
|
439
439
|
let Y;
|
|
@@ -466,7 +466,7 @@ function Qa(t) {
|
|
|
466
466
|
total: 0
|
|
467
467
|
}, e[25] = T, e[26] = Y) : Y = e[26];
|
|
468
468
|
let Q;
|
|
469
|
-
return e[27] !== m || e[28] !== A || e[29] !== g || e[30] !== _ || e[31] !== E || e[32] !== U || e[33] !== B || e[34] !== h || e[35] !== f || e[36] !==
|
|
469
|
+
return e[27] !== m || e[28] !== A || e[29] !== g || e[30] !== _ || e[31] !== E || e[32] !== U || e[33] !== B || e[34] !== h || e[35] !== f || e[36] !== O || e[37] !== F || e[38] !== Y || e[39] !== C || e[40] !== $ || e[41] !== x ? (Q = /* @__PURE__ */ c(Va, { ref: D, defaultViews: x, defaultView: g, definition: $, loading: E, dataSource: Y, pagination: f, actionColumn: m, onClickPrimaryKey: h, enableRowSelection: _, primaryAction: O, secondaryActions: F, batchActions: A, onGetRecordCount: V, onSwitchView: B, onLoadData: U, viewTableSetting: C, onCreateView: k, onUpdateView: K, onDeleteView: q }), e[27] = m, e[28] = A, e[29] = g, e[30] = _, e[31] = E, e[32] = U, e[33] = B, e[34] = h, e[35] = f, e[36] = O, e[37] = F, e[38] = Y, e[39] = C, e[40] = $, e[41] = x, e[42] = Q) : Q = e[42], Q;
|
|
470
470
|
}
|
|
471
471
|
let Z;
|
|
472
472
|
return e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ c("div", { style: {
|
|
@@ -474,33 +474,33 @@ function Qa(t) {
|
|
|
474
474
|
justifyContent: "center",
|
|
475
475
|
alignItems: "center",
|
|
476
476
|
height: "100vh"
|
|
477
|
-
}, children: /* @__PURE__ */ c(
|
|
477
|
+
}, children: /* @__PURE__ */ c(St, { size: "large" }) }), e[43] = Z) : Z = e[43], Z;
|
|
478
478
|
}
|
|
479
|
-
r(
|
|
480
|
-
function
|
|
481
|
-
|
|
479
|
+
r(Za, "FetcherViewer");
|
|
480
|
+
function Bl(t, e) {
|
|
481
|
+
wt.defaultDeleteAggregate(t.id, {
|
|
482
482
|
body: {}
|
|
483
483
|
}).then(() => {
|
|
484
484
|
e?.(t);
|
|
485
485
|
});
|
|
486
486
|
}
|
|
487
|
-
r(
|
|
488
|
-
function
|
|
487
|
+
r(Bl, "_temp4$1");
|
|
488
|
+
function Yl(t, e) {
|
|
489
489
|
const l = {
|
|
490
490
|
...t
|
|
491
491
|
};
|
|
492
|
-
|
|
492
|
+
wt.editView(t.type, t.id, {
|
|
493
493
|
body: l
|
|
494
494
|
}).then(() => {
|
|
495
495
|
e?.(t);
|
|
496
496
|
});
|
|
497
497
|
}
|
|
498
|
-
r(
|
|
499
|
-
function
|
|
498
|
+
r(Yl, "_temp3$2");
|
|
499
|
+
function Wl(t, e) {
|
|
500
500
|
const l = {
|
|
501
501
|
...t
|
|
502
502
|
};
|
|
503
|
-
|
|
503
|
+
wt.createView(t.type, {
|
|
504
504
|
body: l
|
|
505
505
|
}).then((n) => {
|
|
506
506
|
const i = {
|
|
@@ -510,22 +510,22 @@ function Bl(t, e) {
|
|
|
510
510
|
e?.(i);
|
|
511
511
|
});
|
|
512
512
|
}
|
|
513
|
-
r(
|
|
514
|
-
function
|
|
515
|
-
return
|
|
513
|
+
r(Wl, "_temp2$3");
|
|
514
|
+
function Kl(t, e) {
|
|
515
|
+
return cl.default.post(t, {
|
|
516
516
|
body: e
|
|
517
517
|
}, {
|
|
518
|
-
resultExtractor:
|
|
518
|
+
resultExtractor: ul
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
|
-
r(
|
|
522
|
-
function
|
|
521
|
+
r(Kl, "_temp$a");
|
|
522
|
+
function Gl(t, e, l) {
|
|
523
523
|
if (!t || t.length === 0) return;
|
|
524
524
|
let n;
|
|
525
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];
|
|
526
526
|
}
|
|
527
|
-
r(
|
|
528
|
-
const
|
|
527
|
+
r(Gl, "getDefaultView");
|
|
528
|
+
const jl = {
|
|
529
529
|
AND: "与",
|
|
530
530
|
OR: "或",
|
|
531
531
|
NOR: "非或",
|
|
@@ -570,29 +570,29 @@ const Kl = {
|
|
|
570
570
|
RAW: "原始查询",
|
|
571
571
|
UNDEFINED: "未设置"
|
|
572
572
|
};
|
|
573
|
-
var
|
|
574
|
-
const
|
|
575
|
-
filterContent:
|
|
576
|
-
filterGroupLabel:
|
|
577
|
-
},
|
|
578
|
-
function
|
|
573
|
+
var Qe = /* @__PURE__ */ ((t) => (t.UNDEFINED = "UNDEFINED", t))(Qe || {});
|
|
574
|
+
const ql = "_filterContent_goy0q_1", Ql = "_filterGroupLabel_goy0q_6", Mt = {
|
|
575
|
+
filterContent: ql,
|
|
576
|
+
filterGroupLabel: Ql
|
|
577
|
+
}, Xl = [];
|
|
578
|
+
function Zl(t) {
|
|
579
579
|
const e = G(23), {
|
|
580
580
|
filters: l,
|
|
581
581
|
activeFilters: n,
|
|
582
582
|
ref: i
|
|
583
|
-
} = t, a = n === void 0 ?
|
|
583
|
+
} = t, a = n === void 0 ? Xl : n;
|
|
584
584
|
let o;
|
|
585
|
-
e[0] !== a ? (o = a?.map(
|
|
585
|
+
e[0] !== a ? (o = a?.map(Jl).sort(), e[0] = a, e[1] = o) : o = e[1];
|
|
586
586
|
const s = o, [u, d] = ee(s);
|
|
587
587
|
let f;
|
|
588
588
|
e[2] !== a || e[3] !== t.filters || e[4] !== u ? (f = /* @__PURE__ */ r(() => ({
|
|
589
589
|
getValue() {
|
|
590
|
-
return t.filters.flatMap((F) => F.filters.filter((A) => u.includes(A.key) && !a.some((
|
|
590
|
+
return t.filters.flatMap((F) => F.filters.filter((A) => u.includes(A.key) && !a.some((b) => b.key === A.key)));
|
|
591
591
|
}
|
|
592
592
|
}), "t2"), e[2] = a, e[3] = t.filters, e[4] = u, e[5] = f) : f = e[5], be(i, f);
|
|
593
593
|
let m;
|
|
594
594
|
e[6] !== u ? (m = /* @__PURE__ */ r((F, A) => {
|
|
595
|
-
d(A ? [...u, F.key] : u.filter((
|
|
595
|
+
d(A ? [...u, F.key] : u.filter((b) => b !== F.key));
|
|
596
596
|
}, "t3"), e[6] = u, e[7] = m) : m = e[7];
|
|
597
597
|
const h = m;
|
|
598
598
|
let _, S;
|
|
@@ -602,52 +602,52 @@ function Ql(t) {
|
|
|
602
602
|
let C;
|
|
603
603
|
if (e[11] !== a || e[12] !== l || e[13] !== h || e[14] !== u) {
|
|
604
604
|
let F;
|
|
605
|
-
e[16] !== a || e[17] !== l.length || e[18] !== h || e[19] !== u ? (F = /* @__PURE__ */ r((A,
|
|
606
|
-
/* @__PURE__ */ c("span", { className:
|
|
607
|
-
/* @__PURE__ */ c(
|
|
605
|
+
e[16] !== a || e[17] !== l.length || e[18] !== h || e[19] !== u ? (F = /* @__PURE__ */ r((A, b) => /* @__PURE__ */ J("div", { children: [
|
|
606
|
+
/* @__PURE__ */ c("span", { className: Mt.filterGroupLabel, children: A.label }),
|
|
607
|
+
/* @__PURE__ */ c(Ct, { wrap: !0, gutter: [16, 16], children: A.filters.map((P) => /* @__PURE__ */ c(yt, { span: 6, children: /* @__PURE__ */ c(Jt, { checked: u.includes(P.key), onChange: /* @__PURE__ */ r((R) => {
|
|
608
608
|
h(P, R.target.checked);
|
|
609
|
-
}, "onChange"), disabled: a.some((R) => R.key === P.key), children: P.field.label }) }, P.key)) },
|
|
610
|
-
|
|
609
|
+
}, "onChange"), disabled: a.some((R) => R.key === P.key), children: P.field.label }) }, P.key)) }, b),
|
|
610
|
+
b < l.length - 1 && /* @__PURE__ */ c(Ye, { size: "middle" })
|
|
611
611
|
] }, A.label), "t72"), e[16] = a, e[17] = l.length, e[18] = h, e[19] = u, e[20] = F) : F = e[20], C = l.map(F), e[11] = a, e[12] = l, e[13] = h, e[14] = u, e[15] = C;
|
|
612
612
|
} else
|
|
613
613
|
C = e[15];
|
|
614
|
-
let
|
|
615
|
-
return e[21] !== C ? (
|
|
614
|
+
let O;
|
|
615
|
+
return e[21] !== C ? (O = /* @__PURE__ */ c("div", { className: Mt.filterContent, children: C }), e[21] = C, e[22] = O) : O = e[22], O;
|
|
616
616
|
}
|
|
617
|
-
r(
|
|
618
|
-
function
|
|
617
|
+
r(Zl, "AvailableFilterSelect");
|
|
618
|
+
function Jl(t) {
|
|
619
619
|
return t.key;
|
|
620
620
|
}
|
|
621
|
-
r(
|
|
622
|
-
function
|
|
623
|
-
const e = G(8), l =
|
|
621
|
+
r(Jl, "_temp$9");
|
|
622
|
+
function ei(t) {
|
|
623
|
+
const e = G(8), l = Le(null);
|
|
624
624
|
let n;
|
|
625
625
|
e[0] !== t ? (n = /* @__PURE__ */ r(() => {
|
|
626
626
|
t?.onSave?.(l.current?.getValue() ?? []);
|
|
627
627
|
}, "t0"), e[0] = t, e[1] = n) : n = e[1];
|
|
628
628
|
const i = n;
|
|
629
629
|
let a;
|
|
630
|
-
e[2] !== t.availableFilters ? (a = /* @__PURE__ */ c(
|
|
630
|
+
e[2] !== t.availableFilters ? (a = /* @__PURE__ */ c(Zl, { ...t.availableFilters, ref: l }), e[2] = t.availableFilters, e[3] = a) : a = e[3];
|
|
631
631
|
let o;
|
|
632
|
-
return e[4] !== i || e[5] !== t || e[6] !== a ? (o = /* @__PURE__ */ c(
|
|
632
|
+
return e[4] !== i || e[5] !== t || e[6] !== a ? (o = /* @__PURE__ */ c(ft, { ...t, onOk: i, width: 880, children: a }), e[4] = i, e[5] = t, e[6] = a, e[7] = o) : o = e[7], o;
|
|
633
633
|
}
|
|
634
|
-
r(
|
|
635
|
-
function
|
|
636
|
-
return !Array.isArray(t) || t.length !== 2 ? !1 :
|
|
634
|
+
r(ei, "AvailableFilterSelectModal");
|
|
635
|
+
function ti(t) {
|
|
636
|
+
return !Array.isArray(t) || t.length !== 2 ? !1 : gt(t[0]) && gt(t[1]);
|
|
637
637
|
}
|
|
638
|
-
r(
|
|
639
|
-
function
|
|
638
|
+
r(ti, "isValidBetweenValue");
|
|
639
|
+
function gt(t) {
|
|
640
640
|
return t != null;
|
|
641
641
|
}
|
|
642
|
-
r(
|
|
643
|
-
function
|
|
642
|
+
r(gt, "isValidValue");
|
|
643
|
+
function Ja() {
|
|
644
644
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
645
645
|
}
|
|
646
|
-
r(
|
|
647
|
-
const
|
|
648
|
-
function
|
|
649
|
-
const [e, l] = ee(t.operator), [n, i] = ee(t.value), a = t.validate ??
|
|
650
|
-
if (_ ===
|
|
646
|
+
r(Ja, "currentTimeZone");
|
|
647
|
+
const ni = /* @__PURE__ */ r(() => !0, "TrueValidateValue"), li = /* @__PURE__ */ r((t, e) => t ? Tl.has(t) ? !0 : e == null || e === "" || Array.isArray(e) && e.length === 0 ? !1 : t === z.BETWEEN ? ti(e) : !0 : !1, "defaultValidateValue"), ii = /* @__PURE__ */ r((t, e) => e, "defaultConditionValueParser"), ri = /* @__PURE__ */ r((t, e, l) => l, "defaultValueConverter"), ai = /* @__PURE__ */ r((t) => t, "defaultFilterValueConverter");
|
|
648
|
+
function oi(t) {
|
|
649
|
+
const [e, l] = ee(t.operator), [n, i] = ee(t.value), a = t.validate ?? li, o = t.conditionValueParser ?? ii, s = t.onOperatorChangeValueConverter ?? ri, u = t.filterValueConverter ?? ai, d = /* @__PURE__ */ r((_, S) => {
|
|
650
|
+
if (_ === Qe.UNDEFINED || !a(_, S))
|
|
651
651
|
return;
|
|
652
652
|
const C = o(_, S), F = {
|
|
653
653
|
condition: {
|
|
@@ -685,21 +685,21 @@ function ri(t) {
|
|
|
685
685
|
reset: h
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
|
-
r(
|
|
688
|
+
r(oi, "useFilterState");
|
|
689
689
|
const {
|
|
690
|
-
useToken:
|
|
691
|
-
} =
|
|
692
|
-
function
|
|
690
|
+
useToken: si
|
|
691
|
+
} = Pn;
|
|
692
|
+
function ze(t) {
|
|
693
693
|
const e = G(26), {
|
|
694
694
|
ref: l,
|
|
695
695
|
...n
|
|
696
696
|
} = t, i = n.operator?.supportedOperators ?? n.supportedOperators;
|
|
697
697
|
if (!i || i.length === 0)
|
|
698
698
|
throw new Error("supportedOperators must be a non-empty array");
|
|
699
|
-
const a = n.operator?.locale ??
|
|
699
|
+
const a = n.operator?.locale ?? jl;
|
|
700
700
|
let o = n.operator?.defaultValue;
|
|
701
701
|
(!o || !i.includes(o)) && (o = i[0]);
|
|
702
|
-
const s =
|
|
702
|
+
const s = oi({
|
|
703
703
|
field: n.field.name,
|
|
704
704
|
operator: o,
|
|
705
705
|
value: n.value?.defaultValue,
|
|
@@ -728,14 +728,14 @@ function He(t) {
|
|
|
728
728
|
m = e[3];
|
|
729
729
|
const {
|
|
730
730
|
token: h
|
|
731
|
-
} =
|
|
731
|
+
} = si();
|
|
732
732
|
let _;
|
|
733
733
|
e[4] !== n.style ? (_ = {
|
|
734
734
|
...n.style
|
|
735
735
|
}, e[4] = n.style, e[5] = _) : _ = e[5];
|
|
736
736
|
const S = `1px solid ${h.colorBorder}`, C = n.label?.style;
|
|
737
|
-
let
|
|
738
|
-
e[6] !== S || e[7] !== C || e[8] !== h.colorBgContainer ? (
|
|
737
|
+
let O;
|
|
738
|
+
e[6] !== S || e[7] !== C || e[8] !== h.colorBgContainer ? (O = {
|
|
739
739
|
minWidth: 140,
|
|
740
740
|
height: "32px",
|
|
741
741
|
lineHeight: "32px",
|
|
@@ -745,16 +745,16 @@ function He(t) {
|
|
|
745
745
|
borderRight: "none",
|
|
746
746
|
whiteSpace: "nowrap",
|
|
747
747
|
...C
|
|
748
|
-
}, e[6] = S, e[7] = C, e[8] = h.colorBgContainer, e[9] =
|
|
748
|
+
}, e[6] = S, e[7] = C, e[8] = h.colorBgContainer, e[9] = O) : O = e[9];
|
|
749
749
|
const F = n.label?.className;
|
|
750
750
|
let A;
|
|
751
|
-
e[10] !== n.field.label || e[11] !==
|
|
752
|
-
let
|
|
753
|
-
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
751
|
+
e[10] !== n.field.label || e[11] !== O || e[12] !== F ? (A = /* @__PURE__ */ c(Ue, { style: O, className: F, children: n.field.label }), e[10] = n.field.label, e[11] = O, e[12] = F, e[13] = A) : A = e[13];
|
|
752
|
+
let b;
|
|
753
|
+
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
|
|
754
754
|
minWidth: 120
|
|
755
|
-
}, e[14] =
|
|
755
|
+
}, e[14] = b) : b = e[14];
|
|
756
756
|
let P;
|
|
757
|
-
e[15] !== s.operator || e[16] !== s.setOperator || e[17] !== m || e[18] !== d ? (P = /* @__PURE__ */ c(
|
|
757
|
+
e[15] !== s.operator || e[16] !== s.setOperator || e[17] !== m || e[18] !== d ? (P = /* @__PURE__ */ c(ut, { style: b, ...m, onChange: s.setOperator, value: s.operator, options: d }), e[15] = s.operator, e[16] = s.setOperator, e[17] = m, e[18] = d, e[19] = P) : P = e[19];
|
|
758
758
|
let R;
|
|
759
759
|
return e[20] !== n.className || e[21] !== _ || e[22] !== A || e[23] !== P || e[24] !== u ? (R = /* @__PURE__ */ J(Ce.Compact, { block: !0, style: _, className: n.className, children: [
|
|
760
760
|
A,
|
|
@@ -762,8 +762,8 @@ function He(t) {
|
|
|
762
762
|
u
|
|
763
763
|
] }), e[20] = n.className, e[21] = _, e[22] = A, e[23] = P, e[24] = u, e[25] = R) : R = e[25], R;
|
|
764
764
|
}
|
|
765
|
-
r(
|
|
766
|
-
const
|
|
765
|
+
r(ze, "AssemblyFilter");
|
|
766
|
+
const ci = "text", ui = /* @__PURE__ */ r((t, e, l) => {
|
|
767
767
|
if (l == null)
|
|
768
768
|
return l;
|
|
769
769
|
const n = Array.isArray(l);
|
|
@@ -775,7 +775,7 @@ const oi = "text", si = /* @__PURE__ */ r((t, e, l) => {
|
|
|
775
775
|
}
|
|
776
776
|
return n ? l[0] : l;
|
|
777
777
|
}, "TextOnOperatorChangeValueConverter");
|
|
778
|
-
function
|
|
778
|
+
function hn(t) {
|
|
779
779
|
const e = G(6);
|
|
780
780
|
let l;
|
|
781
781
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [z.EQ, z.NE, z.CONTAINS, z.STARTS_WITH, z.ENDS_WITH, z.IN, z.NOT_IN], e[0] = l) : l = e[0];
|
|
@@ -784,9 +784,9 @@ function mn(t) {
|
|
|
784
784
|
switch (a.operator) {
|
|
785
785
|
case z.IN:
|
|
786
786
|
case z.NOT_IN:
|
|
787
|
-
return /* @__PURE__ */ c(
|
|
787
|
+
return /* @__PURE__ */ c(ht, { value: a.value, onChange: a.setValue, ...t.value });
|
|
788
788
|
default:
|
|
789
|
-
return /* @__PURE__ */ c(
|
|
789
|
+
return /* @__PURE__ */ c(Xe, { style: {
|
|
790
790
|
width: "100%"
|
|
791
791
|
}, value: a.value, onChange: /* @__PURE__ */ r((o) => a.setValue(o.target.value), "onChange"), allowClear: !0, ...t.value });
|
|
792
792
|
}
|
|
@@ -796,17 +796,17 @@ function mn(t) {
|
|
|
796
796
|
const a = {
|
|
797
797
|
...t,
|
|
798
798
|
supportedOperators: l,
|
|
799
|
-
onOperatorChangeValueConverter:
|
|
799
|
+
onOperatorChangeValueConverter: ui,
|
|
800
800
|
valueInputRender: n
|
|
801
801
|
};
|
|
802
|
-
i = /* @__PURE__ */ c(
|
|
802
|
+
i = /* @__PURE__ */ c(ze, { ...a }), e[3] = t, e[4] = n, e[5] = i;
|
|
803
803
|
} else
|
|
804
804
|
i = e[5];
|
|
805
805
|
return i;
|
|
806
806
|
}
|
|
807
|
-
r(
|
|
808
|
-
|
|
809
|
-
const
|
|
807
|
+
r(hn, "TextFilter");
|
|
808
|
+
hn.displayName = "TextFilter";
|
|
809
|
+
const fi = "id", di = /* @__PURE__ */ r((t, e, l) => {
|
|
810
810
|
if (l == null)
|
|
811
811
|
return l;
|
|
812
812
|
if (e === z.ID)
|
|
@@ -816,34 +816,34 @@ const ci = "id", ui = /* @__PURE__ */ r((t, e, l) => {
|
|
|
816
816
|
const n = l.trim();
|
|
817
817
|
return n ? [n] : [];
|
|
818
818
|
}, "IdOnOperatorChangeValueConverter");
|
|
819
|
-
function
|
|
819
|
+
function _n(t) {
|
|
820
820
|
const e = G(6);
|
|
821
821
|
let l;
|
|
822
822
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [z.ID, z.IDS], e[0] = l) : l = e[0];
|
|
823
823
|
let n;
|
|
824
|
-
e[1] !== t.value ? (n = /* @__PURE__ */ r((a) => a.operator === z.ID ? /* @__PURE__ */ c(
|
|
824
|
+
e[1] !== t.value ? (n = /* @__PURE__ */ r((a) => a.operator === z.ID ? /* @__PURE__ */ c(Xe, { value: a.value, onChange: /* @__PURE__ */ r((o) => a.setValue(o.target.value), "onChange"), allowClear: !0, ...t.value }) : /* @__PURE__ */ c(ht, { value: a.value, onChange: a.setValue, ...t.value }), "t1"), e[1] = t.value, e[2] = n) : n = e[2];
|
|
825
825
|
let i;
|
|
826
826
|
if (e[3] !== t || e[4] !== n) {
|
|
827
827
|
const a = {
|
|
828
828
|
...t,
|
|
829
829
|
supportedOperators: l,
|
|
830
|
-
onOperatorChangeValueConverter:
|
|
830
|
+
onOperatorChangeValueConverter: di,
|
|
831
831
|
valueInputRender: n
|
|
832
832
|
};
|
|
833
|
-
i = /* @__PURE__ */ c(
|
|
833
|
+
i = /* @__PURE__ */ c(ze, { ...a }), e[3] = t, e[4] = n, e[5] = i;
|
|
834
834
|
} else
|
|
835
835
|
i = e[5];
|
|
836
836
|
return i;
|
|
837
837
|
}
|
|
838
|
-
r(
|
|
839
|
-
|
|
840
|
-
const
|
|
838
|
+
r(_n, "IdFilter");
|
|
839
|
+
_n.displayName = "IdConditionFilter";
|
|
840
|
+
const mi = "number", hi = /* @__PURE__ */ r((t, e) => e ? [t[0], t[1]] : [t, void 0], "ensureBetweenValue"), _i = /* @__PURE__ */ r((t, e) => e ? t : [t], "ensureMultiValue"), Ti = /* @__PURE__ */ r((t, e) => e ? t[0] : t, "ensureSingleValue"), Ei = /* @__PURE__ */ r((t, e, l) => {
|
|
841
841
|
if (l == null)
|
|
842
842
|
return l;
|
|
843
843
|
const n = Array.isArray(l);
|
|
844
|
-
return e === z.BETWEEN ?
|
|
844
|
+
return e === z.BETWEEN ? hi(l, n) : e === z.IN || e === z.NOT_IN ? _i(l, n) : Ti(l, n);
|
|
845
845
|
}, "NumberOnOperatorChangeValueConverter");
|
|
846
|
-
function
|
|
846
|
+
function Tn(t) {
|
|
847
847
|
const e = G(6);
|
|
848
848
|
let l;
|
|
849
849
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [z.EQ, z.NE, z.GT, z.LT, z.GTE, z.LTE, z.BETWEEN, z.IN, z.NOT_IN], e[0] = l) : l = e[0];
|
|
@@ -852,20 +852,20 @@ function _n(t) {
|
|
|
852
852
|
switch (a.operator) {
|
|
853
853
|
case z.IN:
|
|
854
854
|
case z.NOT_IN:
|
|
855
|
-
return /* @__PURE__ */ c(
|
|
855
|
+
return /* @__PURE__ */ c(ht, { value: a.value, serializer: vl, onChange: /* @__PURE__ */ r((o) => a.setValue(o), "onChange"), ...t.value });
|
|
856
856
|
case z.BETWEEN: {
|
|
857
857
|
const {
|
|
858
858
|
placeholder: o,
|
|
859
859
|
...s
|
|
860
860
|
} = t.value ?? {};
|
|
861
|
-
return /* @__PURE__ */ c(
|
|
861
|
+
return /* @__PURE__ */ c(Nl, { value: a.value, onChange: a.setValue, ...s });
|
|
862
862
|
}
|
|
863
863
|
default: {
|
|
864
864
|
const {
|
|
865
865
|
defaultValue: o,
|
|
866
866
|
...s
|
|
867
867
|
} = t.value ?? {}, u = Array.isArray(o) ? o[0] : o, d = Array.isArray(a.value) ? a.value[0] : a.value;
|
|
868
|
-
return /* @__PURE__ */ c(
|
|
868
|
+
return /* @__PURE__ */ c(at, { value: d, defaultValue: u, onChange: /* @__PURE__ */ r((f) => {
|
|
869
869
|
a.setValue(f ?? void 0);
|
|
870
870
|
}, "onChange"), ...s });
|
|
871
871
|
}
|
|
@@ -876,83 +876,83 @@ function _n(t) {
|
|
|
876
876
|
const a = {
|
|
877
877
|
...t,
|
|
878
878
|
supportedOperators: l,
|
|
879
|
-
validate:
|
|
880
|
-
onOperatorChangeValueConverter:
|
|
879
|
+
validate: Si,
|
|
880
|
+
onOperatorChangeValueConverter: Ei,
|
|
881
881
|
valueInputRender: n
|
|
882
882
|
};
|
|
883
|
-
i = /* @__PURE__ */ c(
|
|
883
|
+
i = /* @__PURE__ */ c(ze, { ...a }), e[3] = t, e[4] = n, e[5] = i;
|
|
884
884
|
} else
|
|
885
885
|
i = e[5];
|
|
886
886
|
return i;
|
|
887
887
|
}
|
|
888
|
-
r(
|
|
889
|
-
function
|
|
888
|
+
r(Tn, "NumberFilter");
|
|
889
|
+
function Si(t, e) {
|
|
890
890
|
return t === z.BETWEEN ? Array.isArray(e) ? e[0] !== void 0 && e[1] !== void 0 : !1 : e != null;
|
|
891
891
|
}
|
|
892
|
-
r(
|
|
893
|
-
|
|
894
|
-
const
|
|
895
|
-
function
|
|
892
|
+
r(Si, "_temp$8");
|
|
893
|
+
Tn.displayName = "NumberFilter";
|
|
894
|
+
const Ci = "select", yi = /* @__PURE__ */ r((t, e, l) => l == null || Array.isArray(l) ? l : [l], "SelectOnOperatorChangeValueConverter");
|
|
895
|
+
function En(t) {
|
|
896
896
|
const e = G(6);
|
|
897
897
|
let l;
|
|
898
898
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [z.IN, z.NOT_IN], e[0] = l) : l = e[0];
|
|
899
899
|
let n;
|
|
900
|
-
e[1] !== t.value ? (n = /* @__PURE__ */ r((a) => /* @__PURE__ */ c(
|
|
900
|
+
e[1] !== t.value ? (n = /* @__PURE__ */ r((a) => /* @__PURE__ */ c(ut, { mode: "multiple", value: a.value, onChange: a.setValue, allowClear: !0, ...t.value }), "t1"), e[1] = t.value, e[2] = n) : n = e[2];
|
|
901
901
|
let i;
|
|
902
902
|
if (e[3] !== t || e[4] !== n) {
|
|
903
903
|
const a = {
|
|
904
904
|
...t,
|
|
905
905
|
supportedOperators: l,
|
|
906
|
-
onOperatorChangeValueConverter:
|
|
906
|
+
onOperatorChangeValueConverter: yi,
|
|
907
907
|
valueInputRender: n
|
|
908
908
|
};
|
|
909
|
-
i = /* @__PURE__ */ c(
|
|
909
|
+
i = /* @__PURE__ */ c(ze, { ...a }), e[3] = t, e[4] = n, e[5] = i;
|
|
910
910
|
} else
|
|
911
911
|
i = e[5];
|
|
912
912
|
return i;
|
|
913
913
|
}
|
|
914
|
-
r(
|
|
915
|
-
|
|
916
|
-
const
|
|
914
|
+
r(En, "SelectFilter");
|
|
915
|
+
En.displayName = "SelectFilter";
|
|
916
|
+
const vi = "bool", Ii = /* @__PURE__ */ r(() => {
|
|
917
917
|
}, "BoolConditionValueParser");
|
|
918
|
-
function
|
|
918
|
+
function Sn(t) {
|
|
919
919
|
const e = G(3);
|
|
920
920
|
let l;
|
|
921
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [
|
|
921
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [Qe.UNDEFINED, z.TRUE, z.FALSE], e[0] = l) : l = e[0];
|
|
922
922
|
let n;
|
|
923
923
|
if (e[1] !== t) {
|
|
924
924
|
const i = {
|
|
925
925
|
...t,
|
|
926
926
|
supportedOperators: l,
|
|
927
|
-
validate:
|
|
928
|
-
conditionValueParser:
|
|
927
|
+
validate: ni,
|
|
928
|
+
conditionValueParser: Ii
|
|
929
929
|
};
|
|
930
|
-
n = /* @__PURE__ */ c(
|
|
930
|
+
n = /* @__PURE__ */ c(ze, { ...i }), e[1] = t, e[2] = n;
|
|
931
931
|
} else
|
|
932
932
|
n = e[2];
|
|
933
933
|
return n;
|
|
934
934
|
}
|
|
935
|
-
r(
|
|
936
|
-
|
|
937
|
-
function
|
|
935
|
+
r(Sn, "BoolFilter");
|
|
936
|
+
Sn.displayName = "BoolFilter";
|
|
937
|
+
function Cn(t) {
|
|
938
938
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
939
939
|
}
|
|
940
|
-
r(
|
|
941
|
-
var
|
|
942
|
-
function
|
|
943
|
-
return
|
|
940
|
+
r(Cn, "getDefaultExportFromCjs");
|
|
941
|
+
var nt = { exports: {} }, Ni = nt.exports, Ut;
|
|
942
|
+
function pi() {
|
|
943
|
+
return Ut || (Ut = 1, (function(t, e) {
|
|
944
944
|
(function(l, n) {
|
|
945
945
|
t.exports = n();
|
|
946
|
-
})(
|
|
947
|
-
var l = 1e3, n = 6e4, i = 36e5, a = "millisecond", o = "second", s = "minute", u = "hour", d = "day", f = "week", m = "month", h = "quarter", _ = "year", S = "date", C = "Invalid Date",
|
|
946
|
+
})(Ni, (function() {
|
|
947
|
+
var l = 1e3, n = 6e4, i = 36e5, a = "millisecond", o = "second", s = "minute", u = "hour", d = "day", f = "week", m = "month", h = "quarter", _ = "year", S = "date", C = "Invalid Date", O = /^(\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, A = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: /* @__PURE__ */ r(function(v) {
|
|
948
948
|
var T = ["th", "st", "nd", "rd"], E = v % 100;
|
|
949
949
|
return "[" + v + (T[(E - 20) % 10] || T[E] || T[0]) + "]";
|
|
950
|
-
}, "ordinal") },
|
|
950
|
+
}, "ordinal") }, b = /* @__PURE__ */ r(function(v, T, E) {
|
|
951
951
|
var N = String(v);
|
|
952
952
|
return !N || N.length >= T ? v : "" + Array(T + 1 - N.length).join(E) + v;
|
|
953
|
-
}, "m"), P = { s:
|
|
953
|
+
}, "m"), P = { s: b, z: /* @__PURE__ */ r(function(v) {
|
|
954
954
|
var T = -v.utcOffset(), E = Math.abs(T), N = Math.floor(E / 60), I = E % 60;
|
|
955
|
-
return (T <= 0 ? "+" : "-") +
|
|
955
|
+
return (T <= 0 ? "+" : "-") + b(N, 2, "0") + ":" + b(I, 2, "0");
|
|
956
956
|
}, "z"), m: /* @__PURE__ */ r(function v(T, E) {
|
|
957
957
|
if (T.date() < E.date()) return -v(E, T);
|
|
958
958
|
var N = 12 * (E.year() - T.year()) + (E.month() - T.month()), I = T.clone().add(N, m), D = E - I < 0, p = T.clone().add(N + (D ? -1 : 1), m);
|
|
@@ -1001,7 +1001,7 @@ function Ii() {
|
|
|
1001
1001
|
if (L.u(I)) return /* @__PURE__ */ new Date();
|
|
1002
1002
|
if (I instanceof Date) return new Date(I);
|
|
1003
1003
|
if (typeof I == "string" && !/Z$/i.test(I)) {
|
|
1004
|
-
var p = I.match(
|
|
1004
|
+
var p = I.match(O);
|
|
1005
1005
|
if (p) {
|
|
1006
1006
|
var U = p[2] - 1 || 0, y = (p[7] || "0").substring(0, 3);
|
|
1007
1007
|
return D ? new Date(Date.UTC(p[1], U, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, y)) : new Date(p[1], U, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, y);
|
|
@@ -1215,37 +1215,37 @@ function Ii() {
|
|
|
1215
1215
|
return x(1e3 * v);
|
|
1216
1216
|
}, x.en = w[R], x.Ls = w, x.p = {}, x;
|
|
1217
1217
|
}));
|
|
1218
|
-
})(
|
|
1218
|
+
})(nt)), nt.exports;
|
|
1219
1219
|
}
|
|
1220
|
-
r(
|
|
1221
|
-
var
|
|
1222
|
-
const
|
|
1223
|
-
if (t ===
|
|
1220
|
+
r(pi, "requireDayjs_min");
|
|
1221
|
+
var Nt = pi();
|
|
1222
|
+
const pt = /* @__PURE__ */ Cn(Nt), Ai = "datetime", Li = "HH:mm:ss", Ht = "day", At = /* @__PURE__ */ new Set([z.RECENT_DAYS, z.EARLIER_DAYS]), zt = /* @__PURE__ */ new Set([z.GT, z.LT, z.GTE, z.LTE]), bi = /* @__PURE__ */ r((t, e, l) => {
|
|
1223
|
+
if (t === Qe.UNDEFINED || e === Qe.UNDEFINED || At.has(t) && At.has(e))
|
|
1224
1224
|
return l;
|
|
1225
|
-
if (
|
|
1226
|
-
if (
|
|
1225
|
+
if (zt.has(t)) {
|
|
1226
|
+
if (zt.has(e))
|
|
1227
1227
|
return l;
|
|
1228
1228
|
if (e === z.BETWEEN)
|
|
1229
1229
|
return [l, void 0];
|
|
1230
1230
|
}
|
|
1231
|
-
}, "DateTimeOnOperatorChangeValueConverter"),
|
|
1231
|
+
}, "DateTimeOnOperatorChangeValueConverter"), Oi = /* @__PURE__ */ r((t, e) => {
|
|
1232
1232
|
if (e) {
|
|
1233
1233
|
if (t === z.BETWEEN) {
|
|
1234
1234
|
if (!Array.isArray(e) || e.length !== 2)
|
|
1235
1235
|
return;
|
|
1236
1236
|
const l = e[0];
|
|
1237
1237
|
let n = e[1];
|
|
1238
|
-
return n.startOf(
|
|
1238
|
+
return n.startOf(Ht).isSame(n) && (n = n.endOf(Ht)), [l.valueOf(), n.valueOf()];
|
|
1239
1239
|
}
|
|
1240
|
-
if (
|
|
1240
|
+
if (At.has(t))
|
|
1241
1241
|
return e;
|
|
1242
1242
|
if (t === z.BEFORE_TODAY)
|
|
1243
|
-
return
|
|
1244
|
-
if (
|
|
1243
|
+
return Nt.isDayjs(e) ? e.format(Li) : void 0;
|
|
1244
|
+
if (Nt.isDayjs(e))
|
|
1245
1245
|
return e.valueOf();
|
|
1246
1246
|
}
|
|
1247
1247
|
}, "TimestampConditionValueParser");
|
|
1248
|
-
function
|
|
1248
|
+
function yn(t) {
|
|
1249
1249
|
const e = G(6);
|
|
1250
1250
|
let l;
|
|
1251
1251
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [z.GT, z.LT, z.GTE, z.LTE, z.BETWEEN, z.TODAY, z.BEFORE_TODAY, z.TOMORROW, z.THIS_WEEK, z.NEXT_WEEK, z.LAST_WEEK, z.THIS_MONTH, z.LAST_MONTH, z.RECENT_DAYS, z.EARLIER_DAYS], e[0] = l) : l = e[0];
|
|
@@ -1257,7 +1257,7 @@ function Cn(t) {
|
|
|
1257
1257
|
placeholder: o,
|
|
1258
1258
|
...s
|
|
1259
1259
|
} = t.value || {};
|
|
1260
|
-
return /* @__PURE__ */ c(
|
|
1260
|
+
return /* @__PURE__ */ c(_t.RangePicker, { value: a.value, onChange: a.setValue, ...s });
|
|
1261
1261
|
}
|
|
1262
1262
|
case z.TODAY:
|
|
1263
1263
|
case z.TOMORROW:
|
|
@@ -1269,11 +1269,11 @@ function Cn(t) {
|
|
|
1269
1269
|
return null;
|
|
1270
1270
|
case z.RECENT_DAYS:
|
|
1271
1271
|
case z.EARLIER_DAYS:
|
|
1272
|
-
return /* @__PURE__ */ c(
|
|
1272
|
+
return /* @__PURE__ */ c(at, { value: a.value, min: 1, onChange: a.setValue, ...t.value });
|
|
1273
1273
|
case z.BEFORE_TODAY:
|
|
1274
|
-
return /* @__PURE__ */ c(
|
|
1274
|
+
return /* @__PURE__ */ c(_t, { picker: "time", value: a.value, onChange: a.setValue, ...t.value });
|
|
1275
1275
|
default:
|
|
1276
|
-
return /* @__PURE__ */ c(
|
|
1276
|
+
return /* @__PURE__ */ c(_t, { value: a.value, picker: "date", showNow: !1, onChange: a.setValue, ...t.value });
|
|
1277
1277
|
}
|
|
1278
1278
|
}, "t1"), e[1] = t.value, e[2] = n) : n = e[2];
|
|
1279
1279
|
let i;
|
|
@@ -1281,18 +1281,18 @@ function Cn(t) {
|
|
|
1281
1281
|
const a = {
|
|
1282
1282
|
...t,
|
|
1283
1283
|
supportedOperators: l,
|
|
1284
|
-
onOperatorChangeValueConverter:
|
|
1285
|
-
conditionValueParser:
|
|
1284
|
+
onOperatorChangeValueConverter: bi,
|
|
1285
|
+
conditionValueParser: Oi,
|
|
1286
1286
|
valueInputRender: n
|
|
1287
1287
|
};
|
|
1288
|
-
i = /* @__PURE__ */ c(
|
|
1288
|
+
i = /* @__PURE__ */ c(ze, { ...a }), e[3] = t, e[4] = n, e[5] = i;
|
|
1289
1289
|
} else
|
|
1290
1290
|
i = e[5];
|
|
1291
1291
|
return i;
|
|
1292
1292
|
}
|
|
1293
|
-
r(
|
|
1294
|
-
|
|
1295
|
-
const
|
|
1293
|
+
r(yn, "DateTimeFilter");
|
|
1294
|
+
yn.displayName = "DateTimeFilter";
|
|
1295
|
+
const ct = class ct {
|
|
1296
1296
|
constructor() {
|
|
1297
1297
|
this.registry = /* @__PURE__ */ new Map();
|
|
1298
1298
|
}
|
|
@@ -1389,34 +1389,34 @@ const st = class st {
|
|
|
1389
1389
|
* ```
|
|
1390
1390
|
*/
|
|
1391
1391
|
static create(e = []) {
|
|
1392
|
-
const l = new
|
|
1392
|
+
const l = new ct();
|
|
1393
1393
|
return e.forEach(
|
|
1394
1394
|
([n, i]) => l.register(n, i)
|
|
1395
1395
|
), l;
|
|
1396
1396
|
}
|
|
1397
1397
|
};
|
|
1398
|
-
r(
|
|
1399
|
-
let
|
|
1400
|
-
const
|
|
1401
|
-
[ci, hn],
|
|
1402
|
-
[oi, mn],
|
|
1398
|
+
r(ct, "TypedComponentRegistry");
|
|
1399
|
+
let st = ct;
|
|
1400
|
+
const Ri = st.create([
|
|
1403
1401
|
[fi, _n],
|
|
1404
|
-
[
|
|
1402
|
+
[ci, hn],
|
|
1403
|
+
[mi, Tn],
|
|
1405
1404
|
[Ci, En],
|
|
1406
|
-
[
|
|
1405
|
+
[vi, Sn],
|
|
1406
|
+
[Ai, yn]
|
|
1407
1407
|
]);
|
|
1408
|
-
function
|
|
1408
|
+
function vn(t) {
|
|
1409
1409
|
const e = G(2), {
|
|
1410
1410
|
type: l,
|
|
1411
1411
|
ref: n
|
|
1412
1412
|
} = t;
|
|
1413
|
-
be(n,
|
|
1413
|
+
be(n, Di);
|
|
1414
1414
|
const i = `Unsupported filter type:[${l}]`;
|
|
1415
1415
|
let a;
|
|
1416
|
-
return e[0] !== i ? (a = /* @__PURE__ */ c(
|
|
1416
|
+
return e[0] !== i ? (a = /* @__PURE__ */ c(xn, { title: i, type: "warning", showIcon: !0 }), e[0] = i, e[1] = a) : a = e[1], a;
|
|
1417
1417
|
}
|
|
1418
|
-
r(
|
|
1419
|
-
function
|
|
1418
|
+
r(vn, "FallbackFilter");
|
|
1419
|
+
function Di() {
|
|
1420
1420
|
return {
|
|
1421
1421
|
getValue() {
|
|
1422
1422
|
},
|
|
@@ -1424,20 +1424,20 @@ function bi() {
|
|
|
1424
1424
|
}
|
|
1425
1425
|
};
|
|
1426
1426
|
}
|
|
1427
|
-
r(
|
|
1428
|
-
|
|
1429
|
-
const
|
|
1427
|
+
r(Di, "_temp$7");
|
|
1428
|
+
vn.displayName = "FallbackFilter";
|
|
1429
|
+
const wi = {
|
|
1430
1430
|
flex: "auto",
|
|
1431
1431
|
width: "100%"
|
|
1432
1432
|
};
|
|
1433
|
-
function
|
|
1433
|
+
function Lt(t) {
|
|
1434
1434
|
const e = G(10);
|
|
1435
1435
|
let l;
|
|
1436
|
-
e[0] !== t.type ? (l =
|
|
1436
|
+
e[0] !== t.type ? (l = Ri.get(t.type) || vn, e[0] = t.type, e[1] = l) : l = e[1];
|
|
1437
1437
|
const n = l;
|
|
1438
1438
|
let i;
|
|
1439
1439
|
e[2] !== t.value ? (i = {
|
|
1440
|
-
style:
|
|
1440
|
+
style: wi,
|
|
1441
1441
|
...t.value
|
|
1442
1442
|
}, e[2] = t.value, e[3] = i) : i = e[3];
|
|
1443
1443
|
const a = i;
|
|
@@ -1448,14 +1448,14 @@ function At(t) {
|
|
|
1448
1448
|
}, e[4] = t, e[5] = a, e[6] = o) : o = e[6];
|
|
1449
1449
|
const s = o;
|
|
1450
1450
|
let u;
|
|
1451
|
-
return e[7] !== n || e[8] !== s ? (u =
|
|
1451
|
+
return e[7] !== n || e[8] !== s ? (u = en.createElement(n, s), e[7] = n, e[8] = s, e[9] = u) : u = e[9], u;
|
|
1452
1452
|
}
|
|
1453
|
-
r(
|
|
1454
|
-
|
|
1455
|
-
const
|
|
1456
|
-
fullWidthItem:
|
|
1453
|
+
r(Lt, "TypedFilter");
|
|
1454
|
+
Lt.displayName = "TypedFilter";
|
|
1455
|
+
const Fi = "_fullWidthItem_tosqa_1", Pi = {
|
|
1456
|
+
fullWidthItem: Fi
|
|
1457
1457
|
};
|
|
1458
|
-
function
|
|
1458
|
+
function xi(t) {
|
|
1459
1459
|
const e = G(16);
|
|
1460
1460
|
let l, n;
|
|
1461
1461
|
e[0] !== t ? ({
|
|
@@ -1465,24 +1465,24 @@ function Fi(t) {
|
|
|
1465
1465
|
const [i, a] = ee(!1);
|
|
1466
1466
|
if (!l) {
|
|
1467
1467
|
let h;
|
|
1468
|
-
return e[3] !== n ? (h = /* @__PURE__ */ c(
|
|
1468
|
+
return e[3] !== n ? (h = /* @__PURE__ */ c(Lt, { ...n }), e[3] = n, e[4] = h) : h = e[4], h;
|
|
1469
1469
|
}
|
|
1470
1470
|
let o, s, u;
|
|
1471
1471
|
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ r(() => a(!0), "t0"), s = /* @__PURE__ */ r(() => a(!1), "t1"), u = {
|
|
1472
1472
|
width: "100%"
|
|
1473
1473
|
}, e[5] = o, e[6] = s, e[7] = u) : (o = e[5], s = e[6], u = e[7]);
|
|
1474
1474
|
let d;
|
|
1475
|
-
e[8] !== n ? (d = /* @__PURE__ */ c(
|
|
1475
|
+
e[8] !== n ? (d = /* @__PURE__ */ c(Lt, { ...n }), e[8] = n, e[9] = d) : d = e[9];
|
|
1476
1476
|
let f;
|
|
1477
|
-
e[10] !== l || e[11] !== i ? (f = i && /* @__PURE__ */ c(
|
|
1477
|
+
e[10] !== l || e[11] !== i ? (f = i && /* @__PURE__ */ c(Te, { type: "dashed", shape: "circle", size: "small", onClick: l, icon: /* @__PURE__ */ c(Qn, {}) }), e[10] = l, e[11] = i, e[12] = f) : f = e[12];
|
|
1478
1478
|
let m;
|
|
1479
|
-
return e[13] !== d || e[14] !== f ? (m = /* @__PURE__ */ J(Ce, { onMouseOver: o, onMouseOut: s, style: u, className:
|
|
1479
|
+
return e[13] !== d || e[14] !== f ? (m = /* @__PURE__ */ J(Ce, { onMouseOver: o, onMouseOut: s, style: u, className: Pi.fullWidthItem, children: [
|
|
1480
1480
|
d,
|
|
1481
1481
|
f
|
|
1482
1482
|
] }), e[13] = d, e[14] = f, e[15] = m) : m = e[15], m;
|
|
1483
1483
|
}
|
|
1484
|
-
r(
|
|
1485
|
-
const
|
|
1484
|
+
r(xi, "RemovableTypedFilter");
|
|
1485
|
+
const $i = {
|
|
1486
1486
|
personalView: "个人视图",
|
|
1487
1487
|
sharedView: "共享视图",
|
|
1488
1488
|
view: {
|
|
@@ -1515,11 +1515,11 @@ const Pi = {
|
|
|
1515
1515
|
saveButton: "保存",
|
|
1516
1516
|
cancelButton: "取消"
|
|
1517
1517
|
}
|
|
1518
|
-
},
|
|
1518
|
+
}, Bt = $i;
|
|
1519
1519
|
function we() {
|
|
1520
|
-
const [t, e] = ee(
|
|
1520
|
+
const [t, e] = ee(Bt), l = tn(
|
|
1521
1521
|
(n) => {
|
|
1522
|
-
e(
|
|
1522
|
+
e(Vi(Bt, n));
|
|
1523
1523
|
},
|
|
1524
1524
|
[e]
|
|
1525
1525
|
);
|
|
@@ -1529,26 +1529,26 @@ function we() {
|
|
|
1529
1529
|
};
|
|
1530
1530
|
}
|
|
1531
1531
|
r(we, "useLocale");
|
|
1532
|
-
function
|
|
1532
|
+
function Vi(t, e) {
|
|
1533
1533
|
const l = Object.fromEntries(
|
|
1534
1534
|
// Object.entries把对象转成[key, value]数组,再过滤掉value=undefined的项
|
|
1535
1535
|
Object.entries(e).filter(([, n]) => n !== void 0)
|
|
1536
1536
|
);
|
|
1537
1537
|
return Object.assign({}, t, l);
|
|
1538
1538
|
}
|
|
1539
|
-
r(
|
|
1540
|
-
const
|
|
1539
|
+
r(Vi, "mergeWithAssign");
|
|
1540
|
+
const ki = {
|
|
1541
1541
|
gutter: [8, 8],
|
|
1542
1542
|
wrap: !0
|
|
1543
|
-
},
|
|
1543
|
+
}, In = {
|
|
1544
1544
|
xxl: 6,
|
|
1545
1545
|
xl: 8,
|
|
1546
1546
|
lg: 12,
|
|
1547
1547
|
md: 12,
|
|
1548
1548
|
sm: 24,
|
|
1549
1549
|
xs: 24
|
|
1550
|
-
},
|
|
1551
|
-
function
|
|
1550
|
+
}, Mi = In;
|
|
1551
|
+
function Nn(t) {
|
|
1552
1552
|
const e = G(48), {
|
|
1553
1553
|
ref: l,
|
|
1554
1554
|
row: n,
|
|
@@ -1559,22 +1559,22 @@ function In(t) {
|
|
|
1559
1559
|
actions: u,
|
|
1560
1560
|
resetButton: d,
|
|
1561
1561
|
searchButton: f
|
|
1562
|
-
} = t, m = n === void 0 ?
|
|
1562
|
+
} = t, m = n === void 0 ? ki : n, h = i === void 0 ? In : i, _ = a === void 0 ? Mi : a, S = qn(), {
|
|
1563
1563
|
locale: C
|
|
1564
1564
|
} = we();
|
|
1565
|
-
let
|
|
1566
|
-
e[0] !== S ? (
|
|
1565
|
+
let O;
|
|
1566
|
+
e[0] !== S ? (O = /* @__PURE__ */ r(() => {
|
|
1567
1567
|
const V = [], k = /* @__PURE__ */ new Map();
|
|
1568
1568
|
for (const q of S.entries()) {
|
|
1569
1569
|
const te = q[0], X = q[1].getValue()?.condition;
|
|
1570
1570
|
X && (V.push(X), k.set(te, X));
|
|
1571
1571
|
}
|
|
1572
1572
|
return {
|
|
1573
|
-
finalCondition:
|
|
1573
|
+
finalCondition: Rt(...V),
|
|
1574
1574
|
activeFilterValues: k
|
|
1575
1575
|
};
|
|
1576
|
-
}, "t3"), e[0] = S, e[1] =
|
|
1577
|
-
const F =
|
|
1576
|
+
}, "t3"), e[0] = S, e[1] = O) : O = e[1];
|
|
1577
|
+
const F = O;
|
|
1578
1578
|
let A;
|
|
1579
1579
|
e[2] !== F || e[3] !== s ? (A = /* @__PURE__ */ r(() => {
|
|
1580
1580
|
if (!s)
|
|
@@ -1585,7 +1585,7 @@ function In(t) {
|
|
|
1585
1585
|
} = F();
|
|
1586
1586
|
s(V, k);
|
|
1587
1587
|
}, "t4"), e[2] = F, e[3] = s, e[4] = A) : A = e[4];
|
|
1588
|
-
const
|
|
1588
|
+
const b = A;
|
|
1589
1589
|
let P;
|
|
1590
1590
|
e[5] !== S ? (P = /* @__PURE__ */ r(() => {
|
|
1591
1591
|
for (const V of S.values())
|
|
@@ -1593,8 +1593,8 @@ function In(t) {
|
|
|
1593
1593
|
}, "t5"), e[5] = S, e[6] = P) : P = e[6];
|
|
1594
1594
|
const R = P;
|
|
1595
1595
|
let w;
|
|
1596
|
-
e[7] !== F || e[8] !== R || e[9] !==
|
|
1597
|
-
search:
|
|
1596
|
+
e[7] !== F || e[8] !== R || e[9] !== b ? (w = /* @__PURE__ */ r(() => ({
|
|
1597
|
+
search: b,
|
|
1598
1598
|
reset: R,
|
|
1599
1599
|
getCondition() {
|
|
1600
1600
|
const {
|
|
@@ -1602,11 +1602,11 @@ function In(t) {
|
|
|
1602
1602
|
} = F();
|
|
1603
1603
|
return V;
|
|
1604
1604
|
}
|
|
1605
|
-
}), "t6"), e[7] = F, e[8] = R, e[9] =
|
|
1605
|
+
}), "t6"), e[7] = F, e[8] = R, e[9] = b, e[10] = w) : w = e[10], be(l, w);
|
|
1606
1606
|
let $;
|
|
1607
|
-
e[11] !==
|
|
1608
|
-
V.nativeEvent.isComposing || V.key === "Enter" &&
|
|
1609
|
-
}, "t7"), e[11] =
|
|
1607
|
+
e[11] !== b ? ($ = /* @__PURE__ */ r((V) => {
|
|
1608
|
+
V.nativeEvent.isComposing || V.key === "Enter" && b();
|
|
1609
|
+
}, "t7"), e[11] = b, e[12] = $) : $ = e[12];
|
|
1610
1610
|
const M = $, H = d !== !1;
|
|
1611
1611
|
let x;
|
|
1612
1612
|
e[13] !== d ? (x = typeof d == "object" ? d : {}, e[13] = d, e[14] = x) : x = e[14];
|
|
@@ -1619,11 +1619,11 @@ function In(t) {
|
|
|
1619
1619
|
let g;
|
|
1620
1620
|
if (e[16] !== h || e[17] !== S || e[18] !== o) {
|
|
1621
1621
|
let V;
|
|
1622
|
-
e[20] !== h || e[21] !== S ? (V = /* @__PURE__ */ r((k) => /* @__PURE__ */
|
|
1622
|
+
e[20] !== h || e[21] !== S ? (V = /* @__PURE__ */ r((k) => /* @__PURE__ */ Pt(yt, { ...h, key: k.key }, /* @__PURE__ */ Pt(xi, { ...k, key: k.key, ref: S.register(k.key) })), "t112"), e[20] = h, e[21] = S, e[22] = V) : V = e[22], g = o.map(V), e[16] = h, e[17] = S, e[18] = o, e[19] = g;
|
|
1623
1623
|
} else
|
|
1624
1624
|
g = e[19];
|
|
1625
1625
|
let v;
|
|
1626
|
-
e[23] !== M || e[24] !== m || e[25] !== g ? (v = /* @__PURE__ */ c(
|
|
1626
|
+
e[23] !== M || e[24] !== m || e[25] !== g ? (v = /* @__PURE__ */ c(Ct, { style: W, onKeyUp: M, ...m, children: g }), e[23] = M, e[24] = m, e[25] = g, e[26] = v) : v = e[26];
|
|
1627
1627
|
let T;
|
|
1628
1628
|
e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
|
|
1629
1629
|
marginTop: "16px"
|
|
@@ -1633,12 +1633,12 @@ function In(t) {
|
|
|
1633
1633
|
textAlign: "right"
|
|
1634
1634
|
}, e[28] = E) : E = e[28];
|
|
1635
1635
|
let N;
|
|
1636
|
-
e[29] !== R || e[30] !== L || e[31] !== H ? (N = H && /* @__PURE__ */ c(
|
|
1636
|
+
e[29] !== R || e[30] !== L || e[31] !== H ? (N = H && /* @__PURE__ */ c(Te, { icon: /* @__PURE__ */ c(Xn, {}), onClick: R, ...L, children: L?.children || "Reset" }), e[29] = R, e[30] = L, e[31] = H, e[32] = N) : N = e[32];
|
|
1637
1637
|
let I;
|
|
1638
|
-
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ c(
|
|
1638
|
+
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ c(Zn, {}), e[33] = I) : I = e[33];
|
|
1639
1639
|
const D = f?.children || C.filterPanel?.searchButtonTitle || "Search";
|
|
1640
1640
|
let p;
|
|
1641
|
-
e[34] !==
|
|
1641
|
+
e[34] !== b || e[35] !== f || e[36] !== D ? (p = /* @__PURE__ */ c(Te, { type: "primary", icon: I, onClick: b, ...f, children: D }), e[34] = b, e[35] = f, e[36] = D, e[37] = p) : p = e[37];
|
|
1642
1642
|
let U;
|
|
1643
1643
|
e[38] !== u || e[39] !== N || e[40] !== p ? (U = /* @__PURE__ */ J(Ce.Compact, { children: [
|
|
1644
1644
|
u,
|
|
@@ -1646,15 +1646,15 @@ function In(t) {
|
|
|
1646
1646
|
p
|
|
1647
1647
|
] }), e[38] = u, e[39] = N, e[40] = p, e[41] = U) : U = e[41];
|
|
1648
1648
|
let y;
|
|
1649
|
-
e[42] !== _ || e[43] !== U ? (y = /* @__PURE__ */ c(
|
|
1649
|
+
e[42] !== _ || e[43] !== U ? (y = /* @__PURE__ */ c(Ct, { justify: "end", style: T, children: /* @__PURE__ */ c(yt, { style: E, ..._, children: U }) }), e[42] = _, e[43] = U, e[44] = y) : y = e[44];
|
|
1650
1650
|
let B;
|
|
1651
1651
|
return e[45] !== v || e[46] !== y ? (B = /* @__PURE__ */ J(Ee, { children: [
|
|
1652
1652
|
v,
|
|
1653
1653
|
y
|
|
1654
1654
|
] }), e[45] = v, e[46] = y, e[47] = B) : B = e[47], B;
|
|
1655
1655
|
}
|
|
1656
|
-
r(
|
|
1657
|
-
function
|
|
1656
|
+
r(Nn, "FilterPanel");
|
|
1657
|
+
function gi(t) {
|
|
1658
1658
|
const e = G(35), {
|
|
1659
1659
|
ref: l,
|
|
1660
1660
|
row: n,
|
|
@@ -1673,33 +1673,33 @@ function ki(t) {
|
|
|
1673
1673
|
_(!1);
|
|
1674
1674
|
return;
|
|
1675
1675
|
}
|
|
1676
|
-
const E = T.map(
|
|
1676
|
+
const E = T.map(Ui), N = [...f, ...E];
|
|
1677
1677
|
m(N), d && d(N), _(!1);
|
|
1678
1678
|
}, "t0"), e[0] = f, e[1] = d, e[2] = C) : C = e[2];
|
|
1679
|
-
const
|
|
1679
|
+
const O = C;
|
|
1680
1680
|
let F;
|
|
1681
1681
|
e[3] !== f || e[4] !== d ? (F = /* @__PURE__ */ r((T) => {
|
|
1682
1682
|
const E = f.filter((N) => N.key !== T);
|
|
1683
1683
|
m(E), d && d(E);
|
|
1684
1684
|
}, "t1"), e[3] = f, e[4] = d, e[5] = F) : F = e[5];
|
|
1685
1685
|
const A = F;
|
|
1686
|
-
let
|
|
1686
|
+
let b;
|
|
1687
1687
|
if (e[6] !== f || e[7] !== A) {
|
|
1688
1688
|
let T;
|
|
1689
1689
|
e[9] !== A ? (T = /* @__PURE__ */ r((E) => ({
|
|
1690
1690
|
...E,
|
|
1691
1691
|
onRemove: /* @__PURE__ */ r(() => A(E.key), "onRemove")
|
|
1692
|
-
}), "t32"), e[9] = A, e[10] = T) : T = e[10],
|
|
1692
|
+
}), "t32"), e[9] = A, e[10] = T) : T = e[10], b = f.map(T), e[6] = f, e[7] = A, e[8] = b;
|
|
1693
1693
|
} else
|
|
1694
|
-
|
|
1695
|
-
const P =
|
|
1694
|
+
b = e[8];
|
|
1695
|
+
const P = b;
|
|
1696
1696
|
let R, w;
|
|
1697
|
-
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ r(() => _(!0), "t3"), w = /* @__PURE__ */ c(
|
|
1697
|
+
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ r(() => _(!0), "t3"), w = /* @__PURE__ */ c(an, {}), e[11] = R, e[12] = w) : (R = e[11], w = e[12]);
|
|
1698
1698
|
const $ = S.filterPanel?.addFilterTitle || "Add Filter";
|
|
1699
1699
|
let M;
|
|
1700
|
-
e[13] !== $ ? (M = /* @__PURE__ */ c(
|
|
1700
|
+
e[13] !== $ ? (M = /* @__PURE__ */ c(Te, { onClick: R, icon: w, children: $ }), e[13] = $, e[14] = M) : M = e[14];
|
|
1701
1701
|
let H;
|
|
1702
|
-
e[15] !== i || e[16] !== P || e[17] !== u || e[18] !== l || e[19] !== s || e[20] !== n || e[21] !== M ? (H = /* @__PURE__ */ c(
|
|
1702
|
+
e[15] !== i || e[16] !== P || e[17] !== u || e[18] !== l || e[19] !== s || e[20] !== n || e[21] !== M ? (H = /* @__PURE__ */ c(Nn, { ref: l, filters: P, onSearch: u, actions: M, resetButton: s, row: n, col: i }), e[15] = i, e[16] = P, e[17] = u, e[18] = l, e[19] = s, e[20] = n, e[21] = M, e[22] = H) : H = e[22];
|
|
1703
1703
|
const x = S.filterPanel?.addFilterTitle || "Add Filter";
|
|
1704
1704
|
let L;
|
|
1705
1705
|
e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ r(() => _(!1), "t9"), e[23] = L) : L = e[23];
|
|
@@ -1709,15 +1709,15 @@ function ki(t) {
|
|
|
1709
1709
|
activeFilters: f
|
|
1710
1710
|
}, e[24] = f, e[25] = a, e[26] = W) : W = e[26];
|
|
1711
1711
|
let g;
|
|
1712
|
-
e[27] !==
|
|
1712
|
+
e[27] !== O || e[28] !== h || e[29] !== W || e[30] !== x ? (g = /* @__PURE__ */ c(ei, { title: x, open: h, onCancel: L, onSave: O, availableFilters: W }), e[27] = O, e[28] = h, e[29] = W, e[30] = x, e[31] = g) : g = e[31];
|
|
1713
1713
|
let v;
|
|
1714
1714
|
return e[32] !== g || e[33] !== H ? (v = /* @__PURE__ */ J(Ee, { children: [
|
|
1715
1715
|
H,
|
|
1716
1716
|
g
|
|
1717
1717
|
] }), e[32] = g, e[33] = H, e[34] = v) : v = e[34], v;
|
|
1718
1718
|
}
|
|
1719
|
-
r(
|
|
1720
|
-
function
|
|
1719
|
+
r(gi, "EditableFilterPanel");
|
|
1720
|
+
function Ui(t) {
|
|
1721
1721
|
return {
|
|
1722
1722
|
key: t.key,
|
|
1723
1723
|
type: t.component,
|
|
@@ -1728,31 +1728,31 @@ function Mi(t) {
|
|
|
1728
1728
|
attributes: t.attributes
|
|
1729
1729
|
};
|
|
1730
1730
|
}
|
|
1731
|
-
r(
|
|
1732
|
-
const
|
|
1733
|
-
function
|
|
1734
|
-
const t = /* @__PURE__ */ r(() =>
|
|
1731
|
+
r(Ui, "_temp$6");
|
|
1732
|
+
const Hi = "REFRESH_DATA_EVENTS", zi = new El(Hi), Be = new Sl({ delegate: zi });
|
|
1733
|
+
function Ft() {
|
|
1734
|
+
const t = /* @__PURE__ */ r(() => Be.emit("REFRESH"), "publish"), e = /* @__PURE__ */ r((l) => Be.on(l), "subscribe");
|
|
1735
1735
|
return Ae(() => () => {
|
|
1736
|
-
|
|
1737
|
-
|
|
1736
|
+
Be.handlers.forEach((l) => {
|
|
1737
|
+
Be.off(l.name);
|
|
1738
1738
|
});
|
|
1739
1739
|
}, []), {
|
|
1740
|
-
bus:
|
|
1740
|
+
bus: Be,
|
|
1741
1741
|
publish: t,
|
|
1742
1742
|
subscribe: e
|
|
1743
1743
|
};
|
|
1744
1744
|
}
|
|
1745
|
-
r(
|
|
1746
|
-
const
|
|
1747
|
-
function
|
|
1745
|
+
r(Ft, "useRefreshDataEventBus");
|
|
1746
|
+
const pn = qe();
|
|
1747
|
+
function An({
|
|
1748
1748
|
defaultPage: t = 1,
|
|
1749
1749
|
defaultPageSize: e = 10,
|
|
1750
1750
|
defaultTableSize: l = "middle",
|
|
1751
|
-
defaultCondition: n =
|
|
1751
|
+
defaultCondition: n = pn,
|
|
1752
1752
|
defaultSorter: i = [],
|
|
1753
1753
|
...a
|
|
1754
1754
|
}) {
|
|
1755
|
-
const { defaultColumns: o, defaultActiveFilters: s } = a, [u, d] = ee(o), [f, m] = ee(s), [h, _] = ee(t), [S, C] = ee(e), [
|
|
1755
|
+
const { defaultColumns: o, defaultActiveFilters: s } = a, [u, d] = ee(o), [f, m] = ee(s), [h, _] = ee(t), [S, C] = ee(e), [O, F] = ee(l), [A, b] = ee(i), [P, R] = ee(n);
|
|
1756
1756
|
return {
|
|
1757
1757
|
columns: u,
|
|
1758
1758
|
setColumns: /* @__PURE__ */ r((L) => {
|
|
@@ -1772,22 +1772,22 @@ function pn({
|
|
|
1772
1772
|
}, "setConditionFn"),
|
|
1773
1773
|
sorter: A,
|
|
1774
1774
|
setSorter: /* @__PURE__ */ r((L) => {
|
|
1775
|
-
|
|
1775
|
+
b(L.map((W) => ({ ...W })));
|
|
1776
1776
|
}, "setSorterFn"),
|
|
1777
|
-
tableSize:
|
|
1777
|
+
tableSize: O,
|
|
1778
1778
|
setTableSize: F,
|
|
1779
1779
|
reset: /* @__PURE__ */ r(() => {
|
|
1780
|
-
d(o), m(s), _(t), C(e), R(n),
|
|
1780
|
+
d(o), m(s), _(t), C(e), R(n), b(i), F(l);
|
|
1781
1781
|
}, "resetFn")
|
|
1782
1782
|
};
|
|
1783
1783
|
}
|
|
1784
|
-
r(
|
|
1785
|
-
const
|
|
1786
|
-
function
|
|
1784
|
+
r(An, "useActiveViewState");
|
|
1785
|
+
const Bi = "action";
|
|
1786
|
+
function Yt(t) {
|
|
1787
1787
|
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");
|
|
1788
1788
|
}
|
|
1789
|
-
r(
|
|
1790
|
-
function
|
|
1789
|
+
r(Yt, "isActionCellProps");
|
|
1790
|
+
function lt(t) {
|
|
1791
1791
|
const e = G(8), {
|
|
1792
1792
|
data: l,
|
|
1793
1793
|
attributes: n
|
|
@@ -1803,55 +1803,55 @@ function nt(t) {
|
|
|
1803
1803
|
}, e[3] = a) : a = e[3];
|
|
1804
1804
|
const o = t.attributes?.children ?? l.value;
|
|
1805
1805
|
let s;
|
|
1806
|
-
return e[4] !== n || e[5] !== i || e[6] !== o ? (s = /* @__PURE__ */ c(
|
|
1806
|
+
return e[4] !== n || e[5] !== i || e[6] !== o ? (s = /* @__PURE__ */ c(Te, { type: "link", ...n, onClick: i, style: a, children: o }), e[4] = n, e[5] = i, e[6] = o, e[7] = s) : s = e[7], s;
|
|
1807
1807
|
}
|
|
1808
|
-
r(
|
|
1809
|
-
const
|
|
1810
|
-
function
|
|
1808
|
+
r(lt, "ActionCell");
|
|
1809
|
+
const Yi = "actions";
|
|
1810
|
+
function Wi(t) {
|
|
1811
1811
|
const {
|
|
1812
1812
|
data: e
|
|
1813
1813
|
} = t;
|
|
1814
1814
|
let l = [];
|
|
1815
1815
|
return Array.isArray(e.value.secondaryActions) && e.value.secondaryActions.length > 0 && (l = e.value.secondaryActions.map((i) => ({
|
|
1816
1816
|
key: i.data.index,
|
|
1817
|
-
label: /* @__PURE__ */ c(
|
|
1817
|
+
label: /* @__PURE__ */ c(lt, { ...i })
|
|
1818
1818
|
}))), typeof e.value.secondaryActions == "function" && (l = e.value.secondaryActions(e.record).map((n, i) => ({
|
|
1819
1819
|
key: i,
|
|
1820
1820
|
label: /* @__PURE__ */ c(Ee, { children: n })
|
|
1821
1821
|
}))), l.length > 0 ? /* @__PURE__ */ J(Ce, { children: [
|
|
1822
|
-
|
|
1823
|
-
/* @__PURE__ */ c(
|
|
1822
|
+
Yt(e.value.primaryAction) ? /* @__PURE__ */ c(lt, { ...e.value.primaryAction }) : /* @__PURE__ */ c(Ee, { children: e.value.primaryAction(e.record) }),
|
|
1823
|
+
/* @__PURE__ */ c(ke, { menu: {
|
|
1824
1824
|
items: l
|
|
1825
|
-
}, children: /* @__PURE__ */ c(
|
|
1825
|
+
}, children: /* @__PURE__ */ c(Te, { type: "link", style: {
|
|
1826
1826
|
padding: 0
|
|
1827
1827
|
}, children: /* @__PURE__ */ J(Ce, { children: [
|
|
1828
1828
|
e.value.moreActionTitle || "More",
|
|
1829
|
-
/* @__PURE__ */ c(
|
|
1829
|
+
/* @__PURE__ */ c(Ke, {})
|
|
1830
1830
|
] }) }) })
|
|
1831
|
-
] }) : /* @__PURE__ */ c(Ee, { children:
|
|
1831
|
+
] }) : /* @__PURE__ */ c(Ee, { children: Yt(e.value.primaryAction) ? /* @__PURE__ */ c(lt, { ...e.value.primaryAction }) : /* @__PURE__ */ c(Ee, { children: e.value.primaryAction(e.record) }) });
|
|
1832
1832
|
}
|
|
1833
|
-
r(
|
|
1834
|
-
function
|
|
1835
|
-
return
|
|
1833
|
+
r(Wi, "renderActions");
|
|
1834
|
+
function Ln(t) {
|
|
1835
|
+
return Wi(t);
|
|
1836
1836
|
}
|
|
1837
|
-
r(
|
|
1838
|
-
function
|
|
1839
|
-
return
|
|
1837
|
+
r(Ln, "ActionsCell");
|
|
1838
|
+
function Ki(t) {
|
|
1839
|
+
return pt.isDayjs(t) ? t : pt(t);
|
|
1840
1840
|
}
|
|
1841
|
-
r(
|
|
1842
|
-
function
|
|
1841
|
+
r(Ki, "parseDayjs");
|
|
1842
|
+
function Gi(t) {
|
|
1843
1843
|
return t == null;
|
|
1844
1844
|
}
|
|
1845
|
-
r(
|
|
1846
|
-
function
|
|
1845
|
+
r(Gi, "isNullOrUndefined");
|
|
1846
|
+
function ji(t) {
|
|
1847
1847
|
if (typeof t != "string" || t.trim() === "")
|
|
1848
1848
|
return !1;
|
|
1849
1849
|
const e = t.trim().toLowerCase();
|
|
1850
1850
|
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;
|
|
1851
1851
|
}
|
|
1852
|
-
r(
|
|
1853
|
-
const
|
|
1854
|
-
function
|
|
1852
|
+
r(ji, "isValidImageSrc");
|
|
1853
|
+
const qi = "avatar";
|
|
1854
|
+
function Qi(t) {
|
|
1855
1855
|
const e = G(10), {
|
|
1856
1856
|
data: l,
|
|
1857
1857
|
attributes: n
|
|
@@ -1861,22 +1861,22 @@ function ji(t) {
|
|
|
1861
1861
|
const a = i;
|
|
1862
1862
|
if (!l.value) {
|
|
1863
1863
|
let s;
|
|
1864
|
-
return e[2] !== a ? (s = /* @__PURE__ */ c(
|
|
1864
|
+
return e[2] !== a ? (s = /* @__PURE__ */ c(Tt, { ...a }), e[2] = a, e[3] = s) : s = e[3], s;
|
|
1865
1865
|
}
|
|
1866
|
-
if (
|
|
1866
|
+
if (ji(l.value)) {
|
|
1867
1867
|
let s;
|
|
1868
|
-
return e[4] !== a || e[5] !== l.value ? (s = /* @__PURE__ */ c(
|
|
1868
|
+
return e[4] !== a || e[5] !== l.value ? (s = /* @__PURE__ */ c(Tt, { src: l.value, ...a }), e[4] = a, e[5] = l.value, e[6] = s) : s = e[6], s;
|
|
1869
1869
|
}
|
|
1870
1870
|
let o;
|
|
1871
|
-
return e[7] !== a || e[8] !== l.value ? (o = /* @__PURE__ */ c(
|
|
1871
|
+
return e[7] !== a || e[8] !== l.value ? (o = /* @__PURE__ */ c(Tt, { ...a, children: l.value }), e[7] = a, e[8] = l.value, e[9] = o) : o = e[9], o;
|
|
1872
1872
|
}
|
|
1873
|
-
r(
|
|
1874
|
-
var
|
|
1875
|
-
function
|
|
1876
|
-
return
|
|
1873
|
+
r(Qi, "AvatarCell");
|
|
1874
|
+
var it = { exports: {} }, Xi = it.exports, Wt;
|
|
1875
|
+
function Zi() {
|
|
1876
|
+
return Wt || (Wt = 1, (function(t, e) {
|
|
1877
1877
|
(function(l, n) {
|
|
1878
1878
|
t.exports = n();
|
|
1879
|
-
})(
|
|
1879
|
+
})(Xi, (function() {
|
|
1880
1880
|
return function(l, n, i) {
|
|
1881
1881
|
var a = "h:mm A", o = { lastDay: "[Yesterday at] " + a, sameDay: "[Today at] " + a, nextDay: "[Tomorrow at] " + a, nextWeek: "dddd [at] " + a, lastWeek: "[Last] dddd [at] " + a, sameElse: "MM/DD/YYYY" };
|
|
1882
1882
|
n.prototype.calendar = function(s, u) {
|
|
@@ -1885,14 +1885,14 @@ function Qi() {
|
|
|
1885
1885
|
};
|
|
1886
1886
|
};
|
|
1887
1887
|
}));
|
|
1888
|
-
})(
|
|
1888
|
+
})(it)), it.exports;
|
|
1889
1889
|
}
|
|
1890
|
-
r(
|
|
1891
|
-
var
|
|
1892
|
-
const
|
|
1893
|
-
Text:
|
|
1894
|
-
} =
|
|
1895
|
-
function
|
|
1890
|
+
r(Zi, "requireCalendar");
|
|
1891
|
+
var Ji = Zi();
|
|
1892
|
+
const er = /* @__PURE__ */ Cn(Ji), {
|
|
1893
|
+
Text: et
|
|
1894
|
+
} = Ue, tr = "datetime", rt = "YYYY-MM-DD HH:mm:ss";
|
|
1895
|
+
function bn(t) {
|
|
1896
1896
|
const e = G(10), {
|
|
1897
1897
|
data: l,
|
|
1898
1898
|
attributes: n
|
|
@@ -1904,21 +1904,21 @@ function Ln(t) {
|
|
|
1904
1904
|
const d = n === void 0 ? {} : n, {
|
|
1905
1905
|
format: f,
|
|
1906
1906
|
...m
|
|
1907
|
-
} = d, h = f === void 0 ?
|
|
1907
|
+
} = d, h = f === void 0 ? rt : f;
|
|
1908
1908
|
if (!l.value) {
|
|
1909
|
-
s = /* @__PURE__ */ c(
|
|
1909
|
+
s = /* @__PURE__ */ c(et, { ...m, children: "-" });
|
|
1910
1910
|
break e;
|
|
1911
1911
|
}
|
|
1912
|
-
const _ =
|
|
1912
|
+
const _ = Ki(l.value);
|
|
1913
1913
|
if (!_.isValid()) {
|
|
1914
|
-
s = /* @__PURE__ */ c(
|
|
1914
|
+
s = /* @__PURE__ */ c(et, { ...m, children: "-" });
|
|
1915
1915
|
break e;
|
|
1916
1916
|
}
|
|
1917
1917
|
if (typeof h == "function") {
|
|
1918
|
-
s = /* @__PURE__ */ c(
|
|
1918
|
+
s = /* @__PURE__ */ c(et, { ...m, children: h(_) });
|
|
1919
1919
|
break e;
|
|
1920
1920
|
}
|
|
1921
|
-
i =
|
|
1921
|
+
i = et, a = m, o = _.format(h);
|
|
1922
1922
|
}
|
|
1923
1923
|
e[0] = l.value, e[1] = n, e[2] = i, e[3] = a, e[4] = o, e[5] = s;
|
|
1924
1924
|
} else
|
|
@@ -1928,17 +1928,17 @@ function Ln(t) {
|
|
|
1928
1928
|
let u;
|
|
1929
1929
|
return e[6] !== i || e[7] !== a || e[8] !== o ? (u = /* @__PURE__ */ c(i, { ...a, children: o }), e[6] = i, e[7] = a, e[8] = o, e[9] = u) : u = e[9], u;
|
|
1930
1930
|
}
|
|
1931
|
-
r(
|
|
1932
|
-
|
|
1933
|
-
const
|
|
1931
|
+
r(bn, "DateTimeCell");
|
|
1932
|
+
pt.extend(er);
|
|
1933
|
+
const nr = "calendar-time", lr = {
|
|
1934
1934
|
sameDay: "[今天] HH:mm",
|
|
1935
1935
|
nextDay: "[明天] HH:mm",
|
|
1936
1936
|
lastDay: "[昨天] HH:mm",
|
|
1937
|
-
nextWeek:
|
|
1938
|
-
lastWeek:
|
|
1939
|
-
sameElse:
|
|
1937
|
+
nextWeek: rt,
|
|
1938
|
+
lastWeek: rt,
|
|
1939
|
+
sameElse: rt
|
|
1940
1940
|
};
|
|
1941
|
-
function
|
|
1941
|
+
function ir(t) {
|
|
1942
1942
|
const e = G(13), {
|
|
1943
1943
|
data: l,
|
|
1944
1944
|
attributes: n
|
|
@@ -1951,7 +1951,7 @@ function nr(t) {
|
|
|
1951
1951
|
formats: o,
|
|
1952
1952
|
...s
|
|
1953
1953
|
} = a, e[2] = a, e[3] = o, e[4] = s) : (o = e[3], s = e[4]);
|
|
1954
|
-
const u = o === void 0 ?
|
|
1954
|
+
const u = o === void 0 ? lr : o;
|
|
1955
1955
|
let d;
|
|
1956
1956
|
e[5] !== u ? (d = /* @__PURE__ */ r((_) => _.calendar(null, u), "t3"), e[5] = u, e[6] = d) : d = e[6];
|
|
1957
1957
|
const f = d;
|
|
@@ -1961,20 +1961,20 @@ function nr(t) {
|
|
|
1961
1961
|
...s
|
|
1962
1962
|
}, e[7] = f, e[8] = s, e[9] = m) : m = e[9];
|
|
1963
1963
|
let h;
|
|
1964
|
-
return e[10] !== l || e[11] !== m ? (h = /* @__PURE__ */ c(
|
|
1964
|
+
return e[10] !== l || e[11] !== m ? (h = /* @__PURE__ */ c(bn, { data: l, attributes: m }), e[10] = l, e[11] = m, e[12] = h) : h = e[12], h;
|
|
1965
1965
|
}
|
|
1966
|
-
r(
|
|
1966
|
+
r(ir, "CalendarTimeCell");
|
|
1967
1967
|
const {
|
|
1968
|
-
Text:
|
|
1969
|
-
} =
|
|
1968
|
+
Text: rr
|
|
1969
|
+
} = Ue, ar = "text";
|
|
1970
1970
|
function On(t) {
|
|
1971
1971
|
const e = G(3), l = t.attributes?.children ?? (t.data.value || "-");
|
|
1972
1972
|
let n;
|
|
1973
|
-
return e[0] !== t.attributes || e[1] !== l ? (n = /* @__PURE__ */ c(
|
|
1973
|
+
return e[0] !== t.attributes || e[1] !== l ? (n = /* @__PURE__ */ c(rr, { ...t.attributes, children: l }), e[0] = t.attributes, e[1] = l, e[2] = n) : n = e[2], n;
|
|
1974
1974
|
}
|
|
1975
1975
|
r(On, "TextCell");
|
|
1976
|
-
const
|
|
1977
|
-
function
|
|
1976
|
+
const or = "tag";
|
|
1977
|
+
function Rn(t) {
|
|
1978
1978
|
const e = G(3), {
|
|
1979
1979
|
data: l,
|
|
1980
1980
|
attributes: n
|
|
@@ -1985,9 +1985,9 @@ function bn(t) {
|
|
|
1985
1985
|
let a;
|
|
1986
1986
|
return e[0] !== n || e[1] !== i ? (a = /* @__PURE__ */ c(Ot, { ...n, children: i }), e[0] = n, e[1] = i, e[2] = a) : a = e[2], a;
|
|
1987
1987
|
}
|
|
1988
|
-
r(
|
|
1989
|
-
const
|
|
1990
|
-
function
|
|
1988
|
+
r(Rn, "TagCell");
|
|
1989
|
+
const sr = "tags";
|
|
1990
|
+
function cr(t) {
|
|
1991
1991
|
const e = G(14), {
|
|
1992
1992
|
space: l,
|
|
1993
1993
|
data: n,
|
|
@@ -2003,7 +2003,7 @@ function or(t) {
|
|
|
2003
2003
|
let d;
|
|
2004
2004
|
e[7] !== o || e[8] !== n.index || e[9] !== n.record ? (d = /* @__PURE__ */ r((f, m) => {
|
|
2005
2005
|
const h = o[f];
|
|
2006
|
-
return /* @__PURE__ */ c(
|
|
2006
|
+
return /* @__PURE__ */ c(Rn, { data: {
|
|
2007
2007
|
value: f,
|
|
2008
2008
|
record: n.record,
|
|
2009
2009
|
index: n.index
|
|
@@ -2014,9 +2014,9 @@ function or(t) {
|
|
|
2014
2014
|
let u;
|
|
2015
2015
|
return e[11] !== l || e[12] !== s ? (u = /* @__PURE__ */ c(Ce, { ...l, children: s }), e[11] = l, e[12] = s, e[13] = u) : u = e[13], u;
|
|
2016
2016
|
}
|
|
2017
|
-
r(
|
|
2018
|
-
const
|
|
2019
|
-
function
|
|
2017
|
+
r(cr, "TagsCell");
|
|
2018
|
+
const ur = "image";
|
|
2019
|
+
function fr(t) {
|
|
2020
2020
|
const e = G(6), {
|
|
2021
2021
|
data: l,
|
|
2022
2022
|
attributes: n
|
|
@@ -2026,14 +2026,14 @@ function cr(t) {
|
|
|
2026
2026
|
const a = i;
|
|
2027
2027
|
if (!l.value) {
|
|
2028
2028
|
let s;
|
|
2029
|
-
return e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ c(
|
|
2029
|
+
return e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ c(ot, { description: null }), e[2] = s) : s = e[2], s;
|
|
2030
2030
|
}
|
|
2031
2031
|
let o;
|
|
2032
|
-
return e[3] !== a || e[4] !== l.value ? (o = /* @__PURE__ */ c(
|
|
2032
|
+
return e[3] !== a || e[4] !== l.value ? (o = /* @__PURE__ */ c(vt, { src: l.value, ...a }), e[3] = a, e[4] = l.value, e[5] = o) : o = e[5], o;
|
|
2033
2033
|
}
|
|
2034
|
-
r(
|
|
2035
|
-
const
|
|
2036
|
-
function
|
|
2034
|
+
r(fr, "ImageCell");
|
|
2035
|
+
const dr = "image-group";
|
|
2036
|
+
function mr(t) {
|
|
2037
2037
|
const e = G(14), {
|
|
2038
2038
|
data: l,
|
|
2039
2039
|
attributes: n
|
|
@@ -2043,26 +2043,26 @@ function fr(t) {
|
|
|
2043
2043
|
const a = i;
|
|
2044
2044
|
if (!l.value || !Array.isArray(l.value) || l.value.length === 0) {
|
|
2045
2045
|
let h;
|
|
2046
|
-
return e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ c(
|
|
2046
|
+
return e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ c(ot, { description: null }), e[2] = h) : h = e[2], h;
|
|
2047
2047
|
}
|
|
2048
2048
|
const o = l.value.length > 1, s = a;
|
|
2049
2049
|
let u;
|
|
2050
|
-
e[3] !== l.value[0] || e[4] !== s ? (u = /* @__PURE__ */ c(
|
|
2050
|
+
e[3] !== l.value[0] || e[4] !== s ? (u = /* @__PURE__ */ c(vt, { src: l.value[0], ...s }), e[3] = l.value[0], e[4] = s, e[5] = u) : u = e[5];
|
|
2051
2051
|
const d = u;
|
|
2052
2052
|
let f;
|
|
2053
|
-
e[6] !== l.value.length || e[7] !== o || e[8] !== d ? (f = o ? /* @__PURE__ */ c(
|
|
2053
|
+
e[6] !== l.value.length || e[7] !== o || e[8] !== d ? (f = o ? /* @__PURE__ */ c($n, { count: l.value.length, children: d }) : d, e[6] = l.value.length, e[7] = o, e[8] = d, e[9] = f) : f = e[9];
|
|
2054
2054
|
let m;
|
|
2055
|
-
return e[10] !== a || e[11] !== l.value || e[12] !== f ? (m = /* @__PURE__ */ c(
|
|
2055
|
+
return e[10] !== a || e[11] !== l.value || e[12] !== f ? (m = /* @__PURE__ */ c(vt.PreviewGroup, { items: l.value, ...a, children: f }), e[10] = a, e[11] = l.value, e[12] = f, e[13] = m) : m = e[13], m;
|
|
2056
2056
|
}
|
|
2057
|
-
r(
|
|
2057
|
+
r(mr, "ImageGroupCell");
|
|
2058
2058
|
const {
|
|
2059
|
-
Link:
|
|
2060
|
-
} =
|
|
2061
|
-
function
|
|
2059
|
+
Link: hr
|
|
2060
|
+
} = Ue, _r = "link", Tr = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, Er = "mailto:";
|
|
2061
|
+
function Sr(t) {
|
|
2062
2062
|
const e = G(9);
|
|
2063
2063
|
let l;
|
|
2064
|
-
e[0] !== t.data.value ? (l = t.data.value &&
|
|
2065
|
-
const n = l, i = t.attributes?.href ?? (n ? `${
|
|
2064
|
+
e[0] !== t.data.value ? (l = t.data.value && Tr.test(t.data.value), e[0] = t.data.value, e[1] = l) : l = e[1];
|
|
2065
|
+
const n = l, i = t.attributes?.href ?? (n ? `${Er}${t.data.value}` : t.data.value);
|
|
2066
2066
|
let a;
|
|
2067
2067
|
e[2] !== n || e[3] !== t.attributes ? (a = n ? t.attributes : {
|
|
2068
2068
|
...t.attributes,
|
|
@@ -2072,28 +2072,28 @@ function Tr(t) {
|
|
|
2072
2072
|
}, e[2] = n, e[3] = t.attributes, e[4] = a) : a = e[4];
|
|
2073
2073
|
const o = a, s = t.attributes?.children ?? t.data.value;
|
|
2074
2074
|
let u;
|
|
2075
|
-
return e[5] !== i || e[6] !== o || e[7] !== s ? (u = /* @__PURE__ */ c(
|
|
2075
|
+
return e[5] !== i || e[6] !== o || e[7] !== s ? (u = /* @__PURE__ */ c(hr, { href: i, ...o, children: s }), e[5] = i, e[6] = o, e[7] = s, e[8] = u) : u = e[8], u;
|
|
2076
2076
|
}
|
|
2077
|
-
r(
|
|
2078
|
-
const
|
|
2077
|
+
r(Sr, "LinkCell");
|
|
2078
|
+
const Pe = {
|
|
2079
2079
|
currency: "CNY",
|
|
2080
2080
|
currencyDisplay: "symbol",
|
|
2081
2081
|
decimals: 2,
|
|
2082
2082
|
locale: "zh-CN",
|
|
2083
2083
|
useGrouping: !0,
|
|
2084
2084
|
fallback: "-"
|
|
2085
|
-
},
|
|
2086
|
-
function
|
|
2085
|
+
}, Cr = "currency";
|
|
2086
|
+
function yr(t, e = Pe) {
|
|
2087
2087
|
const {
|
|
2088
|
-
currency: l =
|
|
2089
|
-
currencyDisplay: n =
|
|
2090
|
-
decimals: i =
|
|
2091
|
-
locale: a =
|
|
2092
|
-
useGrouping: o =
|
|
2093
|
-
fallback: s =
|
|
2094
|
-
} = e, u =
|
|
2088
|
+
currency: l = Pe.currency,
|
|
2089
|
+
currencyDisplay: n = Pe.currencyDisplay,
|
|
2090
|
+
decimals: i = Pe.decimals,
|
|
2091
|
+
locale: a = Pe.locale,
|
|
2092
|
+
useGrouping: o = Pe.useGrouping,
|
|
2093
|
+
fallback: s = Pe.fallback
|
|
2094
|
+
} = e, u = vr(t);
|
|
2095
2095
|
return isNaN(u) || !isFinite(u) ? s : new Intl.NumberFormat(a, {
|
|
2096
|
-
style:
|
|
2096
|
+
style: Cr,
|
|
2097
2097
|
currency: l,
|
|
2098
2098
|
currencyDisplay: n,
|
|
2099
2099
|
minimumFractionDigits: i,
|
|
@@ -2101,20 +2101,20 @@ function Sr(t, e = Fe) {
|
|
|
2101
2101
|
useGrouping: o
|
|
2102
2102
|
}).format(u);
|
|
2103
2103
|
}
|
|
2104
|
-
r(
|
|
2105
|
-
function
|
|
2104
|
+
r(yr, "formatCurrency");
|
|
2105
|
+
function vr(t) {
|
|
2106
2106
|
if (typeof t == "number")
|
|
2107
2107
|
return t;
|
|
2108
|
-
if (
|
|
2108
|
+
if (Gi(t))
|
|
2109
2109
|
return NaN;
|
|
2110
2110
|
const e = t.replace(/[^\d.-]/g, "");
|
|
2111
2111
|
return parseFloat(e);
|
|
2112
2112
|
}
|
|
2113
|
-
r(
|
|
2113
|
+
r(vr, "parseAmount");
|
|
2114
2114
|
const {
|
|
2115
|
-
Text:
|
|
2116
|
-
} =
|
|
2117
|
-
function
|
|
2115
|
+
Text: Ir
|
|
2116
|
+
} = Ue, Nr = "currency";
|
|
2117
|
+
function pr(t) {
|
|
2118
2118
|
const e = G(11), {
|
|
2119
2119
|
data: l,
|
|
2120
2120
|
attributes: n
|
|
@@ -2128,16 +2128,16 @@ function Ir(t) {
|
|
|
2128
2128
|
...s
|
|
2129
2129
|
} = a, e[2] = a, e[3] = o, e[4] = s) : (o = e[3], s = e[4]);
|
|
2130
2130
|
let u;
|
|
2131
|
-
e[5] !== l.value || e[6] !== o ? (u =
|
|
2131
|
+
e[5] !== l.value || e[6] !== o ? (u = yr(l.value, o), e[5] = l.value, e[6] = o, e[7] = u) : u = e[7];
|
|
2132
2132
|
const d = u, f = s.children ?? d;
|
|
2133
2133
|
let m;
|
|
2134
|
-
return e[8] !== f || e[9] !== s ? (m = /* @__PURE__ */ c(
|
|
2134
|
+
return e[8] !== f || e[9] !== s ? (m = /* @__PURE__ */ c(Ir, { ...s, children: f }), e[8] = f, e[9] = s, e[10] = m) : m = e[10], m;
|
|
2135
2135
|
}
|
|
2136
|
-
r(
|
|
2136
|
+
r(pr, "CurrencyCell");
|
|
2137
2137
|
const {
|
|
2138
|
-
Link:
|
|
2139
|
-
} =
|
|
2140
|
-
function
|
|
2138
|
+
Link: Ar
|
|
2139
|
+
} = Ue, Lr = "primary-key";
|
|
2140
|
+
function Dn(t) {
|
|
2141
2141
|
const e = G(7), {
|
|
2142
2142
|
data: l,
|
|
2143
2143
|
attributes: n
|
|
@@ -2145,26 +2145,26 @@ function Rn(t) {
|
|
|
2145
2145
|
let i;
|
|
2146
2146
|
e[0] !== n || e[1] !== l.record ? (i = /* @__PURE__ */ r(() => n?.onClick?.(l.record), "t0"), e[0] = n, e[1] = l.record, e[2] = i) : i = e[2];
|
|
2147
2147
|
let a;
|
|
2148
|
-
return e[3] !== n || e[4] !== l.value || e[5] !== i ? (a = /* @__PURE__ */ c(
|
|
2149
|
-
}
|
|
2150
|
-
r(
|
|
2151
|
-
const
|
|
2152
|
-
[
|
|
2153
|
-
[
|
|
2154
|
-
[
|
|
2155
|
-
[
|
|
2156
|
-
[ar, or],
|
|
2157
|
-
[Ji, Ln],
|
|
2158
|
-
[er, nr],
|
|
2148
|
+
return e[3] !== n || e[4] !== l.value || e[5] !== i ? (a = /* @__PURE__ */ c(Ar, { copyable: !0, ...n, onClick: i, children: l.value }), e[3] = n, e[4] = l.value, e[5] = i, e[6] = a) : a = e[6], a;
|
|
2149
|
+
}
|
|
2150
|
+
r(Dn, "PrimaryKeyCell");
|
|
2151
|
+
const br = st.create([
|
|
2152
|
+
[Bi, lt],
|
|
2153
|
+
[Yi, Ln],
|
|
2154
|
+
[ar, On],
|
|
2155
|
+
[or, Rn],
|
|
2159
2156
|
[sr, cr],
|
|
2157
|
+
[tr, bn],
|
|
2158
|
+
[nr, ir],
|
|
2160
2159
|
[ur, fr],
|
|
2161
|
-
[
|
|
2162
|
-
[
|
|
2163
|
-
[
|
|
2164
|
-
[
|
|
2160
|
+
[dr, mr],
|
|
2161
|
+
[_r, Sr],
|
|
2162
|
+
[Nr, pr],
|
|
2163
|
+
[qi, Qi],
|
|
2164
|
+
[Lr, Dn]
|
|
2165
2165
|
]);
|
|
2166
|
-
function
|
|
2167
|
-
const l =
|
|
2166
|
+
function Or(t, e) {
|
|
2167
|
+
const l = br.get(t);
|
|
2168
2168
|
if (l)
|
|
2169
2169
|
return (n, i, a) => {
|
|
2170
2170
|
const o = {
|
|
@@ -2172,14 +2172,14 @@ function Lr(t, e) {
|
|
|
2172
2172
|
record: i,
|
|
2173
2173
|
index: a
|
|
2174
2174
|
};
|
|
2175
|
-
return
|
|
2175
|
+
return en.createElement(l, {
|
|
2176
2176
|
attributes: e,
|
|
2177
2177
|
data: o
|
|
2178
2178
|
});
|
|
2179
2179
|
};
|
|
2180
2180
|
}
|
|
2181
|
-
r(
|
|
2182
|
-
function
|
|
2181
|
+
r(Or, "typedCellRender");
|
|
2182
|
+
function Kt(t) {
|
|
2183
2183
|
const e = G(11);
|
|
2184
2184
|
let l;
|
|
2185
2185
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
|
|
@@ -2189,23 +2189,23 @@ function Wt(t) {
|
|
|
2189
2189
|
let i;
|
|
2190
2190
|
e[1] !== t ? (i = /* @__PURE__ */ r((u) => t.onVisibleChange(!u.target.checked), "t2"), e[1] = t, e[2] = i) : i = e[2];
|
|
2191
2191
|
let a;
|
|
2192
|
-
e[3] !== t.columnDefinition.label || e[4] !== t.columnDefinition.primaryKey || e[5] !== n || e[6] !== i ? (a = /* @__PURE__ */ c(
|
|
2192
|
+
e[3] !== t.columnDefinition.label || e[4] !== t.columnDefinition.primaryKey || e[5] !== n || e[6] !== i ? (a = /* @__PURE__ */ c(Jt, { checked: n, disabled: t.columnDefinition.primaryKey, onChange: i, children: t.columnDefinition.label }), e[3] = t.columnDefinition.label, e[4] = t.columnDefinition.primaryKey, e[5] = n, e[6] = i, e[7] = a) : a = e[7];
|
|
2193
2193
|
let o;
|
|
2194
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ c(
|
|
2194
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ c(on, {}), e[8] = o) : o = e[8];
|
|
2195
2195
|
let s;
|
|
2196
2196
|
return e[9] !== a ? (s = /* @__PURE__ */ J(pe, { align: "center", justify: "space-between", style: l, children: [
|
|
2197
2197
|
a,
|
|
2198
2198
|
o
|
|
2199
2199
|
] }), e[9] = a, e[10] = s) : s = e[10], s;
|
|
2200
2200
|
}
|
|
2201
|
-
r(
|
|
2202
|
-
const
|
|
2203
|
-
item:
|
|
2204
|
-
dragging:
|
|
2205
|
-
tips:
|
|
2206
|
-
groupTitle:
|
|
2201
|
+
r(Kt, "TableFieldItem");
|
|
2202
|
+
const Rr = "_item_59wbi_1", Dr = "_dragging_59wbi_9", wr = "_tips_59wbi_31", Fr = "_groupTitle_59wbi_38", Ve = {
|
|
2203
|
+
item: Rr,
|
|
2204
|
+
dragging: Dr,
|
|
2205
|
+
tips: wr,
|
|
2206
|
+
groupTitle: Fr
|
|
2207
2207
|
};
|
|
2208
|
-
function
|
|
2208
|
+
function Pr(t) {
|
|
2209
2209
|
const e = G(21), {
|
|
2210
2210
|
ref: l,
|
|
2211
2211
|
fields: n,
|
|
@@ -2217,7 +2217,7 @@ function wr(t) {
|
|
|
2217
2217
|
e[0] !== i ? (m = /* @__PURE__ */ r(() => {
|
|
2218
2218
|
f(i);
|
|
2219
2219
|
}, "t0"), h = [i], e[0] = i, e[1] = m, e[2] = h) : (m = e[1], h = e[2]), Ae(m, h);
|
|
2220
|
-
const _ = d.map(
|
|
2220
|
+
const _ = d.map(gr), S = _.filter(Mr), C = _.filter(kr), O = _.filter(Vr), F = /* @__PURE__ */ r((y, B) => {
|
|
2221
2221
|
const V = _.map((k, K) => K === y ? {
|
|
2222
2222
|
...k,
|
|
2223
2223
|
hidden: B
|
|
@@ -2232,7 +2232,7 @@ function wr(t) {
|
|
|
2232
2232
|
group: B
|
|
2233
2233
|
});
|
|
2234
2234
|
}, "t2"), e[3] = A) : A = e[3];
|
|
2235
|
-
const
|
|
2235
|
+
const b = A, P = $r;
|
|
2236
2236
|
let R;
|
|
2237
2237
|
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ r(() => {
|
|
2238
2238
|
u(null);
|
|
@@ -2241,13 +2241,13 @@ function wr(t) {
|
|
|
2241
2241
|
if (!s || s.index === V || B === "fixed" && S.length >= 3)
|
|
2242
2242
|
return;
|
|
2243
2243
|
const k = B === "fixed" ? V + 1 : V, K = [..._], [q] = K.splice(s.index, 1);
|
|
2244
|
-
q.fixed = B === "fixed", K.splice(k, 0, q), K.forEach(
|
|
2244
|
+
q.fixed = B === "fixed", K.splice(k, 0, q), K.forEach(xr), f(K), a?.(K);
|
|
2245
2245
|
}, "handleDrop"), M = /* @__PURE__ */ r((y, B) => {
|
|
2246
2246
|
const V = n.find((k) => k.name === y.name);
|
|
2247
|
-
return V ? /* @__PURE__ */ c("div", { className: `${
|
|
2247
|
+
return V ? /* @__PURE__ */ c("div", { className: `${Ve.item} ${s?.index === y.index ? Ve.dragging : ""}`, draggable: !V.primaryKey, onDragStart: /* @__PURE__ */ r((k) => b(k, B, y.index), "onDragStart"), onDragOver: P, onDragEnd: w, onDrop: /* @__PURE__ */ r((k) => $(k, B, y.index), "onDrop"), children: /* @__PURE__ */ c(Kt, { columnDefinition: V, fixed: y.fixed || !1, hidden: y.hidden, onVisibleChange: /* @__PURE__ */ r((k) => F(y.index, k), "onVisibleChange") }) }, V.name) : /* @__PURE__ */ c(Ee, {});
|
|
2248
2248
|
}, "renderDraggableItem"), H = /* @__PURE__ */ r((y) => {
|
|
2249
2249
|
const B = n.find((V) => V.name === y.name);
|
|
2250
|
-
return B ? /* @__PURE__ */ c("div", { className:
|
|
2250
|
+
return B ? /* @__PURE__ */ c("div", { className: Ve.item, children: /* @__PURE__ */ c(Kt, { columnDefinition: B, fixed: y.fixed || !1, hidden: y.hidden, onVisibleChange: /* @__PURE__ */ r((V) => F(y.index, V), "onVisibleChange") }) }, B.name) : /* @__PURE__ */ c(Ee, {});
|
|
2251
2251
|
}, "renderStaticItem");
|
|
2252
2252
|
let x;
|
|
2253
2253
|
e[5] !== t.initialColumns ? (x = /* @__PURE__ */ r(() => ({
|
|
@@ -2261,14 +2261,14 @@ function wr(t) {
|
|
|
2261
2261
|
display: "flex"
|
|
2262
2262
|
}, e[7] = v) : v = e[7];
|
|
2263
2263
|
let T;
|
|
2264
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ c("div", { className:
|
|
2264
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ c("div", { className: Ve.groupTitle, children: "已显示字段" }), e[8] = T) : T = e[8];
|
|
2265
2265
|
const E = S.map((y) => M(y, "fixed"));
|
|
2266
2266
|
let N;
|
|
2267
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ c("div", { className:
|
|
2267
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ c("div", { className: Ve.tips, children: "请将需要锁定的字段拖至上方(最多支持3列)" }), e[9] = N) : N = e[9];
|
|
2268
2268
|
const I = C.map((y) => M(y, "visible"));
|
|
2269
2269
|
let D;
|
|
2270
|
-
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ c("div", { className:
|
|
2271
|
-
const p =
|
|
2270
|
+
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ c("div", { className: Ve.groupTitle, children: "未显示字段" }), e[10] = D) : D = e[10];
|
|
2271
|
+
const p = O.map((y) => H(y));
|
|
2272
2272
|
let U;
|
|
2273
2273
|
return e[11] !== L || e[12] !== o || e[13] !== N || e[14] !== I || e[15] !== D || e[16] !== p || e[17] !== v || e[18] !== T || e[19] !== E ? (U = /* @__PURE__ */ J(L, { size: W, orientation: g, style: v, className: o, children: [
|
|
2274
2274
|
T,
|
|
@@ -2279,68 +2279,68 @@ function wr(t) {
|
|
|
2279
2279
|
p
|
|
2280
2280
|
] }), e[11] = L, e[12] = o, e[13] = N, e[14] = I, e[15] = D, e[16] = p, e[17] = v, e[18] = T, e[19] = E, e[20] = U) : U = e[20], U;
|
|
2281
2281
|
}
|
|
2282
|
-
r(
|
|
2283
|
-
function
|
|
2282
|
+
r(Pr, "TableSettingPanel");
|
|
2283
|
+
function xr(t, e) {
|
|
2284
2284
|
return t.index = e;
|
|
2285
2285
|
}
|
|
2286
|
-
r(
|
|
2287
|
-
function
|
|
2286
|
+
r(xr, "_temp6");
|
|
2287
|
+
function $r(t) {
|
|
2288
2288
|
t.preventDefault(), t.dataTransfer.dropEffect = "move";
|
|
2289
2289
|
}
|
|
2290
|
-
r(
|
|
2291
|
-
function
|
|
2290
|
+
r($r, "_temp5");
|
|
2291
|
+
function Vr(t) {
|
|
2292
2292
|
return t.hidden;
|
|
2293
2293
|
}
|
|
2294
|
-
r(
|
|
2295
|
-
function
|
|
2294
|
+
r(Vr, "_temp4");
|
|
2295
|
+
function kr(t) {
|
|
2296
2296
|
return !t.hidden && !t.fixed;
|
|
2297
2297
|
}
|
|
2298
|
-
r(
|
|
2299
|
-
function
|
|
2298
|
+
r(kr, "_temp3$1");
|
|
2299
|
+
function Mr(t) {
|
|
2300
2300
|
return t.fixed;
|
|
2301
2301
|
}
|
|
2302
|
-
r(
|
|
2303
|
-
function
|
|
2302
|
+
r(Mr, "_temp2$2");
|
|
2303
|
+
function gr(t, e) {
|
|
2304
2304
|
return {
|
|
2305
2305
|
...t,
|
|
2306
2306
|
index: e
|
|
2307
2307
|
};
|
|
2308
2308
|
}
|
|
2309
|
-
r(
|
|
2310
|
-
const
|
|
2311
|
-
configurableColumnHeader:
|
|
2309
|
+
r(gr, "_temp$5");
|
|
2310
|
+
const Ur = "_configurableColumnHeader_1gpsi_1", Hr = {
|
|
2311
|
+
configurableColumnHeader: Ur
|
|
2312
2312
|
};
|
|
2313
|
-
function
|
|
2313
|
+
function bt(t, e) {
|
|
2314
2314
|
if (t === e)
|
|
2315
2315
|
return !0;
|
|
2316
2316
|
if (t == null || e == null)
|
|
2317
2317
|
return !1;
|
|
2318
2318
|
if (Array.isArray(t) && Array.isArray(e))
|
|
2319
|
-
return t.length !== e.length ? !1 : t.every((l, n) =>
|
|
2319
|
+
return t.length !== e.length ? !1 : t.every((l, n) => bt(l, e[n]));
|
|
2320
2320
|
if (typeof t == "object" && typeof e == "object") {
|
|
2321
2321
|
if (t.constructor !== e.constructor) return !1;
|
|
2322
2322
|
const l = Object.keys(t), n = Object.keys(e);
|
|
2323
|
-
return l.length !== n.length ? !1 : l.every((i) =>
|
|
2323
|
+
return l.length !== n.length ? !1 : l.every((i) => bt(t[i], e[i]));
|
|
2324
2324
|
}
|
|
2325
2325
|
return !1;
|
|
2326
2326
|
}
|
|
2327
|
-
r(
|
|
2328
|
-
function
|
|
2327
|
+
r(bt, "deepEqual");
|
|
2328
|
+
function zr(t) {
|
|
2329
2329
|
return t && t.length > 0 ? t.map((e, l) => ({
|
|
2330
2330
|
...e,
|
|
2331
2331
|
key: l
|
|
2332
2332
|
})) : [];
|
|
2333
2333
|
}
|
|
2334
|
-
r(
|
|
2335
|
-
function
|
|
2334
|
+
r(zr, "mapToTableRecord");
|
|
2335
|
+
function Br(t, ...e) {
|
|
2336
2336
|
let l = 0;
|
|
2337
2337
|
return t.replace(/%@/g, () => e[l++] ?? "");
|
|
2338
2338
|
}
|
|
2339
|
-
r(
|
|
2339
|
+
r(Br, "format");
|
|
2340
2340
|
String.prototype.format = function(...t) {
|
|
2341
|
-
return
|
|
2341
|
+
return Br(this.toString(), ...t);
|
|
2342
2342
|
};
|
|
2343
|
-
function
|
|
2343
|
+
function Yr(t) {
|
|
2344
2344
|
const e = G(41), {
|
|
2345
2345
|
ref: l,
|
|
2346
2346
|
fields: n,
|
|
@@ -2357,11 +2357,11 @@ function zr(t) {
|
|
|
2357
2357
|
loading: S,
|
|
2358
2358
|
attributes: C
|
|
2359
2359
|
} = t, {
|
|
2360
|
-
selectedRowKeys:
|
|
2360
|
+
selectedRowKeys: O,
|
|
2361
2361
|
setSelectedRowKeys: F,
|
|
2362
2362
|
reset: A,
|
|
2363
|
-
clearSelectedRowKeys:
|
|
2364
|
-
} =
|
|
2363
|
+
clearSelectedRowKeys: b
|
|
2364
|
+
} = Kr();
|
|
2365
2365
|
let P;
|
|
2366
2366
|
if (e[0] !== o || e[1] !== i || e[2] !== n || e[3] !== h || e[4] !== a || e[5] !== t.actionColumn || e[6] !== _) {
|
|
2367
2367
|
let g;
|
|
@@ -2380,7 +2380,7 @@ function zr(t) {
|
|
|
2380
2380
|
if (T?.render)
|
|
2381
2381
|
return T.render(E, N, I);
|
|
2382
2382
|
if (T?.primaryKey)
|
|
2383
|
-
return /* @__PURE__ */ c(
|
|
2383
|
+
return /* @__PURE__ */ c(Dn, { data: {
|
|
2384
2384
|
value: E,
|
|
2385
2385
|
record: N,
|
|
2386
2386
|
index: I
|
|
@@ -2391,7 +2391,7 @@ function zr(t) {
|
|
|
2391
2391
|
copyable: !0,
|
|
2392
2392
|
...T.attributes
|
|
2393
2393
|
} });
|
|
2394
|
-
const D =
|
|
2394
|
+
const D = Or(T?.type || "text", T?.attributes || {});
|
|
2395
2395
|
return D ? D(E, N, I) : /* @__PURE__ */ c(On, { data: {
|
|
2396
2396
|
value: String(E),
|
|
2397
2397
|
record: N,
|
|
@@ -2401,14 +2401,14 @@ function zr(t) {
|
|
|
2401
2401
|
...T?.attributes || {}
|
|
2402
2402
|
};
|
|
2403
2403
|
}, "t02"), e[8] = n, e[9] = h, e[10] = g) : g = e[10], P = i.map(g), o) {
|
|
2404
|
-
const v = o.dataIndex || n.find(
|
|
2404
|
+
const v = o.dataIndex || n.find(Wr)?.name || "id";
|
|
2405
2405
|
let T;
|
|
2406
2406
|
e[11] !== o.title || e[12] !== i || e[13] !== n || e[14] !== a || e[15] !== _ ? (T = /* @__PURE__ */ r(() => {
|
|
2407
2407
|
if (_) {
|
|
2408
|
-
const N = /* @__PURE__ */ c(
|
|
2409
|
-
return /* @__PURE__ */ J("div", { className:
|
|
2408
|
+
const N = /* @__PURE__ */ c(Pr, { fields: n, initialColumns: i, onChange: a });
|
|
2409
|
+
return /* @__PURE__ */ J("div", { className: Hr.configurableColumnHeader, children: [
|
|
2410
2410
|
/* @__PURE__ */ c("span", { children: o.title }),
|
|
2411
|
-
/* @__PURE__ */ c(
|
|
2411
|
+
/* @__PURE__ */ c(kn, { content: N, title: _.title || "Setting", placement: "bottomRight", trigger: "click", children: /* @__PURE__ */ c(sn, {}) })
|
|
2412
2412
|
] });
|
|
2413
2413
|
}
|
|
2414
2414
|
return o.title;
|
|
@@ -2420,7 +2420,7 @@ function zr(t) {
|
|
|
2420
2420
|
record: I,
|
|
2421
2421
|
index: i.length + 1
|
|
2422
2422
|
};
|
|
2423
|
-
return /* @__PURE__ */ c(
|
|
2423
|
+
return /* @__PURE__ */ c(Ln, { data: p });
|
|
2424
2424
|
}, "t22"), e[17] = i.length, e[18] = t.actionColumn, e[19] = E) : E = e[19], P.push({
|
|
2425
2425
|
key: "action",
|
|
2426
2426
|
title: T,
|
|
@@ -2434,21 +2434,21 @@ function zr(t) {
|
|
|
2434
2434
|
} else
|
|
2435
2435
|
P = e[7];
|
|
2436
2436
|
let R;
|
|
2437
|
-
e[20] !== d || e[21] !== m || e[22] !==
|
|
2438
|
-
selectedRowKeys:
|
|
2437
|
+
e[20] !== d || e[21] !== m || e[22] !== O || e[23] !== F ? (R = d ? {
|
|
2438
|
+
selectedRowKeys: O,
|
|
2439
2439
|
fixed: !0,
|
|
2440
2440
|
onChange: /* @__PURE__ */ r((g, v) => {
|
|
2441
2441
|
F(g), m?.(v);
|
|
2442
2442
|
}, "onChange")
|
|
2443
|
-
} : void 0, e[20] = d, e[21] = m, e[22] =
|
|
2443
|
+
} : void 0, e[20] = d, e[21] = m, e[22] = O, e[23] = F, e[24] = R) : R = e[24];
|
|
2444
2444
|
const w = R;
|
|
2445
2445
|
let $;
|
|
2446
|
-
e[25] !==
|
|
2447
|
-
clearSelectedRowKeys:
|
|
2446
|
+
e[25] !== b || e[26] !== A ? ($ = /* @__PURE__ */ r(() => ({
|
|
2447
|
+
clearSelectedRowKeys: b,
|
|
2448
2448
|
reset: A
|
|
2449
|
-
}), "t1"), e[25] =
|
|
2449
|
+
}), "t1"), e[25] = b, e[26] = A, e[27] = $) : $ = e[27], be(l, $);
|
|
2450
2450
|
let M;
|
|
2451
|
-
e[28] !== u ? (M =
|
|
2451
|
+
e[28] !== u ? (M = zr(u), e[28] = u, e[29] = M) : M = e[29];
|
|
2452
2452
|
let H;
|
|
2453
2453
|
e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = {
|
|
2454
2454
|
x: "max-content"
|
|
@@ -2459,14 +2459,14 @@ function zr(t) {
|
|
|
2459
2459
|
E.action === "sort" && f && (Array.isArray(T) ? f(T) : f([T]));
|
|
2460
2460
|
}, "t5"), e[31] = f, e[32] = L) : L = e[32];
|
|
2461
2461
|
let W;
|
|
2462
|
-
return e[33] !== C || e[34] !== S || e[35] !== w || e[36] !== M || e[37] !== x || e[38] !== L || e[39] !== P ? (W = /* @__PURE__ */ c(
|
|
2462
|
+
return e[33] !== C || e[34] !== S || e[35] !== w || e[36] !== M || e[37] !== x || e[38] !== L || e[39] !== P ? (W = /* @__PURE__ */ c(Vn, { loading: S, dataSource: M, rowSelection: w, columns: P, ...C, scroll: H, size: x, onChange: L }), e[33] = C, e[34] = S, e[35] = w, e[36] = M, e[37] = x, e[38] = L, e[39] = P, e[40] = W) : W = e[40], W;
|
|
2463
2463
|
}
|
|
2464
|
-
r(
|
|
2465
|
-
function
|
|
2464
|
+
r(Yr, "ViewTable");
|
|
2465
|
+
function Wr(t) {
|
|
2466
2466
|
return t.primaryKey;
|
|
2467
2467
|
}
|
|
2468
|
-
r(
|
|
2469
|
-
function
|
|
2468
|
+
r(Wr, "_temp$4");
|
|
2469
|
+
function Kr() {
|
|
2470
2470
|
const [t, e] = ee([]), l = /* @__PURE__ */ r(() => {
|
|
2471
2471
|
e([]);
|
|
2472
2472
|
}, "clearSelectedRowKeysFn");
|
|
@@ -2479,8 +2479,8 @@ function Yr() {
|
|
|
2479
2479
|
}, "resetFn")
|
|
2480
2480
|
};
|
|
2481
2481
|
}
|
|
2482
|
-
r(
|
|
2483
|
-
const
|
|
2482
|
+
r(Kr, "useViewTableState");
|
|
2483
|
+
const Gr = [{
|
|
2484
2484
|
label: "1 分钟",
|
|
2485
2485
|
key: "1",
|
|
2486
2486
|
refreshInterval: 60 * 1e3
|
|
@@ -2492,20 +2492,20 @@ const Wr = [{
|
|
|
2492
2492
|
label: "5 分钟",
|
|
2493
2493
|
key: "5",
|
|
2494
2494
|
refreshInterval: 300 * 1e3
|
|
2495
|
-
}],
|
|
2495
|
+
}], Gt = {
|
|
2496
2496
|
label: "从不",
|
|
2497
2497
|
key: "0",
|
|
2498
2498
|
refreshInterval: 0
|
|
2499
2499
|
};
|
|
2500
|
-
function
|
|
2500
|
+
function jr(t) {
|
|
2501
2501
|
const e = G(26), {
|
|
2502
2502
|
items: l
|
|
2503
|
-
} = t, n = l === void 0 ?
|
|
2503
|
+
} = t, n = l === void 0 ? Gr : l;
|
|
2504
2504
|
let i;
|
|
2505
|
-
e[0] !== n ? (i = [...n,
|
|
2506
|
-
const a = i, [o, s] = ee(
|
|
2505
|
+
e[0] !== n ? (i = [...n, Gt], e[0] = n, e[1] = i) : i = e[1];
|
|
2506
|
+
const a = i, [o, s] = ee(Gt), u = Le(null), {
|
|
2507
2507
|
publish: d
|
|
2508
|
-
} =
|
|
2508
|
+
} = Ft(), {
|
|
2509
2509
|
locale: f
|
|
2510
2510
|
} = we();
|
|
2511
2511
|
let m;
|
|
@@ -2523,54 +2523,54 @@ function Kr(t) {
|
|
|
2523
2523
|
let S;
|
|
2524
2524
|
e[7] !== d || e[8] !== o ? (S = [o, d], e[7] = d, e[8] = o, e[9] = S) : S = e[9], Ae(_, S);
|
|
2525
2525
|
let C;
|
|
2526
|
-
e[10] !== a ? (C = a.map(
|
|
2527
|
-
const
|
|
2526
|
+
e[10] !== a ? (C = a.map(qr), e[10] = a, e[11] = C) : C = e[11];
|
|
2527
|
+
const O = C;
|
|
2528
2528
|
let F;
|
|
2529
2529
|
e[12] !== o.key ? (F = [o.key], e[12] = o.key, e[13] = F) : F = e[13];
|
|
2530
2530
|
let A;
|
|
2531
|
-
e[14] !== h || e[15] !==
|
|
2532
|
-
items:
|
|
2531
|
+
e[14] !== h || e[15] !== O || e[16] !== F ? (A = {
|
|
2532
|
+
items: O,
|
|
2533
2533
|
onClick: h,
|
|
2534
2534
|
selectable: !0,
|
|
2535
2535
|
defaultSelectedKeys: F
|
|
2536
|
-
}, e[14] = h, e[15] =
|
|
2537
|
-
const
|
|
2536
|
+
}, e[14] = h, e[15] = O, e[16] = F, e[17] = A) : A = e[17];
|
|
2537
|
+
const b = A;
|
|
2538
2538
|
let P;
|
|
2539
2539
|
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = ["click"], e[18] = P) : P = e[18];
|
|
2540
2540
|
let R;
|
|
2541
|
-
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ c(
|
|
2541
|
+
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ c(Ke, {}), e[19] = R) : R = e[19];
|
|
2542
2542
|
const w = f.topBar?.autoRefresh?.title || "刷新率";
|
|
2543
2543
|
let $;
|
|
2544
|
-
e[20] !== o.label || e[21] !== w ? ($ = /* @__PURE__ */ J(
|
|
2544
|
+
e[20] !== o.label || e[21] !== w ? ($ = /* @__PURE__ */ J(Te, { icon: R, iconPlacement: "end", children: [
|
|
2545
2545
|
w,
|
|
2546
2546
|
" :",
|
|
2547
2547
|
o.label
|
|
2548
2548
|
] }), e[20] = o.label, e[21] = w, e[22] = $) : $ = e[22];
|
|
2549
2549
|
let M;
|
|
2550
|
-
return e[23] !==
|
|
2550
|
+
return e[23] !== b || e[24] !== $ ? (M = /* @__PURE__ */ c(ke, { menu: b, trigger: P, children: $ }), e[23] = b, e[24] = $, e[25] = M) : M = e[25], M;
|
|
2551
2551
|
}
|
|
2552
|
-
r(
|
|
2553
|
-
function
|
|
2552
|
+
r(jr, "AutoRefreshBarItem");
|
|
2553
|
+
function qr(t) {
|
|
2554
2554
|
return {
|
|
2555
2555
|
key: t.key,
|
|
2556
2556
|
label: t.label
|
|
2557
2557
|
};
|
|
2558
2558
|
}
|
|
2559
|
-
r(
|
|
2560
|
-
const
|
|
2561
|
-
item:
|
|
2562
|
-
active:
|
|
2559
|
+
r(qr, "_temp$3");
|
|
2560
|
+
const Qr = "_item_1c27u_1", Xr = "_active_1c27u_16", jt = {
|
|
2561
|
+
item: Qr,
|
|
2562
|
+
active: Xr
|
|
2563
2563
|
};
|
|
2564
|
-
function
|
|
2564
|
+
function xe(t) {
|
|
2565
2565
|
const e = G(3), {
|
|
2566
2566
|
icon: l,
|
|
2567
2567
|
active: n
|
|
2568
|
-
} = t, i = `${
|
|
2568
|
+
} = t, i = `${jt.item} ${n ? jt.active : ""}`;
|
|
2569
2569
|
let a;
|
|
2570
2570
|
return e[0] !== l || e[1] !== i ? (a = /* @__PURE__ */ c("div", { className: i, children: l }), e[0] = l, e[1] = i, e[2] = a) : a = e[2], a;
|
|
2571
2571
|
}
|
|
2572
|
-
r(
|
|
2573
|
-
function
|
|
2572
|
+
r(xe, "BarItem");
|
|
2573
|
+
function Zr(t) {
|
|
2574
2574
|
const e = G(23), {
|
|
2575
2575
|
className: l,
|
|
2576
2576
|
defaultTableSize: n,
|
|
@@ -2597,36 +2597,36 @@ function Qr(t) {
|
|
|
2597
2597
|
let S;
|
|
2598
2598
|
e[7] !== m || e[8] !== _ ? (S = [m, _], e[7] = m, e[8] = _, e[9] = S) : S = e[9];
|
|
2599
2599
|
const C = S;
|
|
2600
|
-
let
|
|
2601
|
-
e[10] !== i ? (
|
|
2600
|
+
let O;
|
|
2601
|
+
e[10] !== i ? (O = /* @__PURE__ */ r((M) => {
|
|
2602
2602
|
const {
|
|
2603
2603
|
key: H
|
|
2604
2604
|
} = M;
|
|
2605
2605
|
o(H), i?.(H);
|
|
2606
|
-
}, "t7"), e[10] = i, e[11] =
|
|
2607
|
-
const F =
|
|
2608
|
-
let
|
|
2609
|
-
e[12] !== A ? (
|
|
2606
|
+
}, "t7"), e[10] = i, e[11] = O) : O = e[11];
|
|
2607
|
+
const F = O, A = a || "middle";
|
|
2608
|
+
let b;
|
|
2609
|
+
e[12] !== A ? (b = [A], e[12] = A, e[13] = b) : b = e[13];
|
|
2610
2610
|
let P;
|
|
2611
|
-
e[14] !== F || e[15] !== C || e[16] !==
|
|
2611
|
+
e[14] !== F || e[15] !== C || e[16] !== b ? (P = {
|
|
2612
2612
|
items: C,
|
|
2613
2613
|
selectable: !0,
|
|
2614
|
-
defaultSelectedKeys:
|
|
2614
|
+
defaultSelectedKeys: b,
|
|
2615
2615
|
onSelect: F
|
|
2616
|
-
}, e[14] = F, e[15] = C, e[16] =
|
|
2616
|
+
}, e[14] = F, e[15] = C, e[16] = b, e[17] = P) : P = e[17];
|
|
2617
2617
|
let R;
|
|
2618
2618
|
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = ["click"], e[18] = R) : R = e[18];
|
|
2619
2619
|
let w;
|
|
2620
|
-
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ c("div", { onClick:
|
|
2620
|
+
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ c("div", { onClick: Jr, children: /* @__PURE__ */ c(xe, { icon: /* @__PURE__ */ c(Jn, {}), active: !1 }) }), e[19] = w) : w = e[19];
|
|
2621
2621
|
let $;
|
|
2622
|
-
return e[20] !== l || e[21] !== P ? ($ = /* @__PURE__ */ c(
|
|
2622
|
+
return e[20] !== l || e[21] !== P ? ($ = /* @__PURE__ */ c(Ze, { placement: "top", title: "行高", children: /* @__PURE__ */ c(ke, { className: l, menu: P, trigger: R, placement: "bottom", children: w }) }), e[20] = l, e[21] = P, e[22] = $) : $ = e[22], $;
|
|
2623
2623
|
}
|
|
2624
|
-
r(
|
|
2625
|
-
function
|
|
2624
|
+
r(Zr, "ColumnHeightBarItem");
|
|
2625
|
+
function Jr(t) {
|
|
2626
2626
|
return t.preventDefault();
|
|
2627
2627
|
}
|
|
2628
|
-
r(
|
|
2629
|
-
function
|
|
2628
|
+
r(Jr, "_temp$2");
|
|
2629
|
+
function ea(t) {
|
|
2630
2630
|
const e = G(14), {
|
|
2631
2631
|
style: l,
|
|
2632
2632
|
className: n,
|
|
@@ -2643,15 +2643,15 @@ function Zr(t) {
|
|
|
2643
2643
|
}, "t2"), e[3] = o, e[4] = a, e[5] = f) : f = e[5];
|
|
2644
2644
|
const m = f;
|
|
2645
2645
|
let h;
|
|
2646
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ c(
|
|
2646
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ c(el, {}), e[6] = h) : h = e[6];
|
|
2647
2647
|
const _ = o || !1;
|
|
2648
2648
|
let S;
|
|
2649
|
-
e[7] !== _ ? (S = /* @__PURE__ */ c(
|
|
2649
|
+
e[7] !== _ ? (S = /* @__PURE__ */ c(xe, { icon: h, active: _ }), e[7] = _, e[8] = S) : S = e[8];
|
|
2650
2650
|
let C;
|
|
2651
|
-
return e[9] !== n || e[10] !== m || e[11] !== l || e[12] !== S ? (C = /* @__PURE__ */ c(
|
|
2651
|
+
return e[9] !== n || e[10] !== m || e[11] !== l || e[12] !== S ? (C = /* @__PURE__ */ c(Ze, { 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;
|
|
2652
2652
|
}
|
|
2653
|
-
r(
|
|
2654
|
-
function
|
|
2653
|
+
r(ea, "FilterBarItem");
|
|
2654
|
+
function ta(t) {
|
|
2655
2655
|
const e = G(13), {
|
|
2656
2656
|
style: l,
|
|
2657
2657
|
className: n,
|
|
@@ -2666,16 +2666,16 @@ function Jr(t) {
|
|
|
2666
2666
|
const {
|
|
2667
2667
|
isFullscreen: s,
|
|
2668
2668
|
toggle: u
|
|
2669
|
-
} =
|
|
2669
|
+
} = nn(o);
|
|
2670
2670
|
let d;
|
|
2671
|
-
e[3] !== s ? (d = s ? /* @__PURE__ */ c(
|
|
2671
|
+
e[3] !== s ? (d = s ? /* @__PURE__ */ c(rn, {}) : /* @__PURE__ */ c(ln, {}), e[3] = s, e[4] = d) : d = e[4];
|
|
2672
2672
|
let f;
|
|
2673
|
-
e[5] !== s || e[6] !== d ? (f = /* @__PURE__ */ c(
|
|
2673
|
+
e[5] !== s || e[6] !== d ? (f = /* @__PURE__ */ c(xe, { icon: d, active: s }), e[5] = s, e[6] = d, e[7] = f) : f = e[7];
|
|
2674
2674
|
let m;
|
|
2675
|
-
return e[8] !== n || e[9] !== l || e[10] !== f || e[11] !== u ? (m = /* @__PURE__ */ c(
|
|
2675
|
+
return e[8] !== n || e[9] !== l || e[10] !== f || e[11] !== u ? (m = /* @__PURE__ */ c(Ze, { placement: "top", title: "全屏", children: /* @__PURE__ */ c("div", { className: n, style: l, onClick: u, children: f }) }), e[8] = n, e[9] = l, e[10] = f, e[11] = u, e[12] = m) : m = e[12], m;
|
|
2676
2676
|
}
|
|
2677
|
-
r(
|
|
2678
|
-
function
|
|
2677
|
+
r(ta, "FullscreenBarItem");
|
|
2678
|
+
function na() {
|
|
2679
2679
|
const t = G(1);
|
|
2680
2680
|
let e;
|
|
2681
2681
|
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ c("div", { style: {
|
|
@@ -2685,30 +2685,30 @@ function ea() {
|
|
|
2685
2685
|
borderRadius: "50%"
|
|
2686
2686
|
} }), t[0] = e) : e = t[0], e;
|
|
2687
2687
|
}
|
|
2688
|
-
r(
|
|
2689
|
-
function
|
|
2688
|
+
r(na, "Point");
|
|
2689
|
+
function la(t) {
|
|
2690
2690
|
const e = G(7), {
|
|
2691
2691
|
style: l,
|
|
2692
2692
|
className: n
|
|
2693
2693
|
} = t, {
|
|
2694
2694
|
publish: i
|
|
2695
|
-
} =
|
|
2695
|
+
} = Ft();
|
|
2696
2696
|
let a;
|
|
2697
2697
|
e[0] !== i ? (a = /* @__PURE__ */ r(async () => {
|
|
2698
2698
|
await i();
|
|
2699
2699
|
}, "t0"), e[0] = i, e[1] = a) : a = e[1];
|
|
2700
2700
|
const o = a;
|
|
2701
2701
|
let s;
|
|
2702
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ c(
|
|
2702
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ c(xe, { icon: /* @__PURE__ */ c(tl, {}), active: !1 }), e[2] = s) : s = e[2];
|
|
2703
2703
|
let u;
|
|
2704
|
-
return e[3] !== n || e[4] !== o || e[5] !== l ? (u = /* @__PURE__ */ c(
|
|
2704
|
+
return e[3] !== n || e[4] !== o || e[5] !== l ? (u = /* @__PURE__ */ c(Ze, { placement: "top", title: "刷新", children: /* @__PURE__ */ c("div", { className: n, style: l, onClick: o, children: s }) }), e[3] = n, e[4] = o, e[5] = l, e[6] = u) : u = e[6], u;
|
|
2705
2705
|
}
|
|
2706
|
-
r(
|
|
2707
|
-
function
|
|
2706
|
+
r(la, "RefreshDataBarItem");
|
|
2707
|
+
function ia(t) {
|
|
2708
2708
|
const e = G(10), {
|
|
2709
2709
|
className: l,
|
|
2710
2710
|
style: n
|
|
2711
|
-
} = t, [i, a] =
|
|
2711
|
+
} = t, [i, a] = Mn.useMessage();
|
|
2712
2712
|
let o;
|
|
2713
2713
|
e[0] !== i ? (o = /* @__PURE__ */ r(async () => {
|
|
2714
2714
|
const m = window.location.href;
|
|
@@ -2720,38 +2720,38 @@ function na(t) {
|
|
|
2720
2720
|
}, "t0"), e[0] = i, e[1] = o) : o = e[1];
|
|
2721
2721
|
const s = o;
|
|
2722
2722
|
let u;
|
|
2723
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ c(
|
|
2723
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ c(xe, { icon: /* @__PURE__ */ c(nl, {}), active: !1 }), e[2] = u) : u = e[2];
|
|
2724
2724
|
let d;
|
|
2725
|
-
e[3] !== l || e[4] !== s || e[5] !== n ? (d = /* @__PURE__ */ c(
|
|
2725
|
+
e[3] !== l || e[4] !== s || e[5] !== n ? (d = /* @__PURE__ */ c(Ze, { placement: "top", title: "分享视图", children: /* @__PURE__ */ c("div", { className: l, style: n, onClick: s, children: u }) }), e[3] = l, e[4] = s, e[5] = n, e[6] = d) : d = e[6];
|
|
2726
2726
|
let f;
|
|
2727
2727
|
return e[7] !== a || e[8] !== d ? (f = /* @__PURE__ */ J(Ee, { children: [
|
|
2728
2728
|
a,
|
|
2729
2729
|
d
|
|
2730
2730
|
] }), e[7] = a, e[8] = d, e[9] = f) : f = e[9], f;
|
|
2731
2731
|
}
|
|
2732
|
-
r(
|
|
2733
|
-
const
|
|
2734
|
-
leftItems:
|
|
2735
|
-
rightItems:
|
|
2732
|
+
r(ia, "ShareLinkBarItem");
|
|
2733
|
+
const ra = "_leftItems_1hvhw_1", aa = "_rightItems_1hvhw_6", qt = {
|
|
2734
|
+
leftItems: ra,
|
|
2735
|
+
rightItems: aa
|
|
2736
2736
|
};
|
|
2737
|
-
function
|
|
2737
|
+
function Qt(t, e, l) {
|
|
2738
2738
|
return t.render ? {
|
|
2739
2739
|
key: e,
|
|
2740
2740
|
label: t.render(l)
|
|
2741
2741
|
} : {
|
|
2742
2742
|
key: e,
|
|
2743
|
-
label: /* @__PURE__ */ c(
|
|
2743
|
+
label: /* @__PURE__ */ c(Te, { type: "link", ...t.attributes, onClick: /* @__PURE__ */ r(() => t.onClick?.(l), "onClick"), children: t.title })
|
|
2744
2744
|
};
|
|
2745
2745
|
}
|
|
2746
|
-
r(
|
|
2747
|
-
const
|
|
2746
|
+
r(Qt, "renderMenuItem");
|
|
2747
|
+
const oa = [{
|
|
2748
2748
|
label: "覆盖当前视图",
|
|
2749
2749
|
key: "Update"
|
|
2750
2750
|
}, {
|
|
2751
2751
|
label: "另存为新视图",
|
|
2752
2752
|
key: "SaveAs"
|
|
2753
2753
|
}];
|
|
2754
|
-
function
|
|
2754
|
+
function sa(t) {
|
|
2755
2755
|
const e = G(82), {
|
|
2756
2756
|
title: l,
|
|
2757
2757
|
activeView: n,
|
|
@@ -2767,42 +2767,42 @@ function aa(t) {
|
|
|
2767
2767
|
onShowFilterChange: _,
|
|
2768
2768
|
defaultTableSize: S,
|
|
2769
2769
|
onTableSizeChange: C,
|
|
2770
|
-
onCreateView:
|
|
2770
|
+
onCreateView: O,
|
|
2771
2771
|
onUpdateView: F,
|
|
2772
2772
|
fullscreenTarget: A
|
|
2773
|
-
} = t, [
|
|
2773
|
+
} = t, [b, P] = ee("Create"), [R, w] = ee(!1), [$] = ee("PERSONAL");
|
|
2774
2774
|
let M;
|
|
2775
2775
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = [], e[0] = M) : M = e[0];
|
|
2776
2776
|
let H = M;
|
|
2777
2777
|
if (o?.enabled) {
|
|
2778
|
-
let
|
|
2778
|
+
let ce;
|
|
2779
2779
|
if (e[1] !== o.actions || e[2] !== s) {
|
|
2780
|
-
let
|
|
2781
|
-
e[4] !== s ? (
|
|
2780
|
+
let re;
|
|
2781
|
+
e[4] !== s ? (re = /* @__PURE__ */ r((le, me) => Qt(le, me, s), "t26"), e[4] = s, e[5] = re) : re = e[5], ce = o.actions.map(re), e[1] = o.actions, e[2] = s, e[3] = ce;
|
|
2782
2782
|
} else
|
|
2783
|
-
|
|
2784
|
-
H =
|
|
2783
|
+
ce = e[3];
|
|
2784
|
+
H = ce;
|
|
2785
2785
|
}
|
|
2786
2786
|
let x;
|
|
2787
2787
|
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = [], e[6] = x) : x = e[6];
|
|
2788
2788
|
let L = x;
|
|
2789
2789
|
if (a?.length) {
|
|
2790
|
-
let
|
|
2790
|
+
let ce;
|
|
2791
2791
|
if (e[7] !== a || e[8] !== s) {
|
|
2792
|
-
let
|
|
2793
|
-
e[10] !== s ? (
|
|
2792
|
+
let re;
|
|
2793
|
+
e[10] !== s ? (re = /* @__PURE__ */ r((le, me) => Qt(le, me, s), "t32"), e[10] = s, e[11] = re) : re = e[11], ce = a.map(re), e[7] = a, e[8] = s, e[9] = ce;
|
|
2794
2794
|
} else
|
|
2795
|
-
|
|
2796
|
-
L =
|
|
2795
|
+
ce = e[9];
|
|
2796
|
+
L = ce;
|
|
2797
2797
|
}
|
|
2798
|
-
const [W, g] =
|
|
2798
|
+
const [W, g] = ft.useModal();
|
|
2799
2799
|
let v;
|
|
2800
|
-
e[12] !== n || e[13] !== W || e[14] !== F ? (v = /* @__PURE__ */ r((
|
|
2801
|
-
e: switch (
|
|
2800
|
+
e[12] !== n || e[13] !== W || e[14] !== F ? (v = /* @__PURE__ */ r((ce) => {
|
|
2801
|
+
e: switch (ce) {
|
|
2802
2802
|
case "Update": {
|
|
2803
2803
|
W.confirm({
|
|
2804
2804
|
title: "确认覆盖当前视图?",
|
|
2805
|
-
icon: /* @__PURE__ */ c(
|
|
2805
|
+
icon: /* @__PURE__ */ c(ll, {}),
|
|
2806
2806
|
content: "确认后将覆盖原筛选条件",
|
|
2807
2807
|
okText: "确认",
|
|
2808
2808
|
cancelText: "取消",
|
|
@@ -2818,23 +2818,23 @@ function aa(t) {
|
|
|
2818
2818
|
}, "t2"), e[12] = n, e[13] = W, e[14] = F, e[15] = v) : v = e[15];
|
|
2819
2819
|
const T = v;
|
|
2820
2820
|
let E;
|
|
2821
|
-
e[16] !== n || e[17] !==
|
|
2822
|
-
|
|
2821
|
+
e[16] !== n || e[17] !== O ? (E = /* @__PURE__ */ r((ce, re) => {
|
|
2822
|
+
O?.({
|
|
2823
2823
|
...n,
|
|
2824
|
-
name:
|
|
2825
|
-
type:
|
|
2824
|
+
name: ce,
|
|
2825
|
+
type: re,
|
|
2826
2826
|
source: "CUSTOM",
|
|
2827
2827
|
isDefault: !1
|
|
2828
2828
|
}, () => {
|
|
2829
2829
|
w(!1);
|
|
2830
2830
|
});
|
|
2831
|
-
}, "t3"), e[16] = n, e[17] =
|
|
2831
|
+
}, "t3"), e[16] = n, e[17] = O, e[18] = E) : E = e[18];
|
|
2832
2832
|
const N = E;
|
|
2833
2833
|
let I;
|
|
2834
2834
|
e[19] !== T ? (I = {
|
|
2835
|
-
items:
|
|
2836
|
-
onClick: /* @__PURE__ */ r((
|
|
2837
|
-
T(
|
|
2835
|
+
items: oa,
|
|
2836
|
+
onClick: /* @__PURE__ */ r((re) => {
|
|
2837
|
+
T(re.key);
|
|
2838
2838
|
}, "handleMenuClick")
|
|
2839
2839
|
}, e[19] = T, e[20] = I) : I = e[20];
|
|
2840
2840
|
const D = I;
|
|
@@ -2850,12 +2850,12 @@ function aa(t) {
|
|
|
2850
2850
|
const B = y;
|
|
2851
2851
|
let V;
|
|
2852
2852
|
e[25] !== B || e[26] !== u || e[27] !== l ? (V = !u && /* @__PURE__ */ J(Ee, { children: [
|
|
2853
|
-
/* @__PURE__ */ c("div", { onClick: B, children: /* @__PURE__ */ c(
|
|
2854
|
-
/* @__PURE__ */ c(
|
|
2853
|
+
/* @__PURE__ */ c("div", { onClick: B, children: /* @__PURE__ */ c(xe, { icon: /* @__PURE__ */ c(il, {}), active: !1 }) }),
|
|
2854
|
+
/* @__PURE__ */ c(Ye, { orientation: "vertical" }),
|
|
2855
2855
|
/* @__PURE__ */ c("span", { style: {
|
|
2856
2856
|
fontSize: "16px"
|
|
2857
2857
|
}, children: l }),
|
|
2858
|
-
/* @__PURE__ */ c(
|
|
2858
|
+
/* @__PURE__ */ c(na, {})
|
|
2859
2859
|
] }), e[25] = B, e[26] = u, e[27] = l, e[28] = V) : V = e[28];
|
|
2860
2860
|
let k;
|
|
2861
2861
|
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = {
|
|
@@ -2868,80 +2868,80 @@ function aa(t) {
|
|
|
2868
2868
|
/* @__PURE__ */ c("div", { style: {
|
|
2869
2869
|
color: "rgba(0,0,0,0.45)"
|
|
2870
2870
|
}, children: "(已编辑)" }),
|
|
2871
|
-
n.source === "SYSTEM" ? /* @__PURE__ */ c(
|
|
2872
|
-
/* @__PURE__ */ c(
|
|
2871
|
+
n.source === "SYSTEM" ? /* @__PURE__ */ c(Te, { type: "default", size: "small", onClick: /* @__PURE__ */ r(() => T("SaveAs"), "onClick"), children: "另存为" }) : /* @__PURE__ */ c(ke, { menu: D, trigger: ["click"], children: /* @__PURE__ */ c(Te, { size: "small", icon: /* @__PURE__ */ c(Ke, {}), iconPlacement: "end", children: "保存" }) }),
|
|
2872
|
+
/* @__PURE__ */ c(Te, { type: "default", size: "small", onClick: U, children: "重置" })
|
|
2873
2873
|
] }), e[32] = n.source, e[33] = U, e[34] = D, e[35] = T, e[36] = f, e[37] = q) : q = e[37];
|
|
2874
2874
|
let te;
|
|
2875
|
-
e[38] !== q || e[39] !== V || e[40] !== K ? (te = /* @__PURE__ */ J(pe, { gap: "8px", align: "center", className:
|
|
2875
|
+
e[38] !== q || e[39] !== V || e[40] !== K ? (te = /* @__PURE__ */ J(pe, { gap: "8px", align: "center", className: qt.leftItems, children: [
|
|
2876
2876
|
V,
|
|
2877
2877
|
K,
|
|
2878
2878
|
q
|
|
2879
2879
|
] }), e[38] = q, e[39] = V, e[40] = K, e[41] = te) : te = e[41];
|
|
2880
2880
|
let X;
|
|
2881
|
-
e[42] !== _ || e[43] !== h ? (X = /* @__PURE__ */ c(
|
|
2881
|
+
e[42] !== _ || e[43] !== h ? (X = /* @__PURE__ */ c(ea, { defaultShowFilter: h, onChange: _ }), e[42] = _, e[43] = h, e[44] = X) : X = e[44];
|
|
2882
2882
|
let j;
|
|
2883
|
-
e[45] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ c(
|
|
2883
|
+
e[45] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ c(la, {}), e[45] = j) : j = e[45];
|
|
2884
2884
|
let Z;
|
|
2885
|
-
e[46] !== S || e[47] !== C ? (Z = /* @__PURE__ */ c(
|
|
2885
|
+
e[46] !== S || e[47] !== C ? (Z = /* @__PURE__ */ c(Zr, { defaultTableSize: S, onChange: C }), e[46] = S, e[47] = C, e[48] = Z) : Z = e[48];
|
|
2886
2886
|
let Y;
|
|
2887
|
-
e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ c(
|
|
2887
|
+
e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ c(ia, {}), e[49] = Y) : Y = e[49];
|
|
2888
2888
|
let Q;
|
|
2889
|
-
e[50] !== A ? (Q = A && /* @__PURE__ */ c(
|
|
2890
|
-
let
|
|
2891
|
-
e[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2892
|
-
let
|
|
2893
|
-
e[54] !== o?.enabled || e[55] !== o?.title || e[56] !== H ? (
|
|
2894
|
-
/* @__PURE__ */ c(
|
|
2895
|
-
/* @__PURE__ */ c(
|
|
2889
|
+
e[50] !== A ? (Q = A && /* @__PURE__ */ c(ta, { target: A }), e[50] = A, e[51] = Q) : Q = e[51];
|
|
2890
|
+
let de, se;
|
|
2891
|
+
e[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ c(Ye, { orientation: "vertical" }), se = /* @__PURE__ */ c(jr, {}), e[52] = de, e[53] = se) : (de = e[52], se = e[53]);
|
|
2892
|
+
let oe;
|
|
2893
|
+
e[54] !== o?.enabled || e[55] !== o?.title || e[56] !== H ? (oe = o?.enabled && /* @__PURE__ */ J(Ee, { children: [
|
|
2894
|
+
/* @__PURE__ */ c(Ye, { orientation: "vertical" }),
|
|
2895
|
+
/* @__PURE__ */ c(ke, { menu: {
|
|
2896
2896
|
items: H
|
|
2897
|
-
}, trigger: ["click"], children: /* @__PURE__ */ c(
|
|
2898
|
-
] }), e[54] = o?.enabled, e[55] = o?.title, e[56] = H, e[57] =
|
|
2897
|
+
}, trigger: ["click"], children: /* @__PURE__ */ c(Te, { icon: /* @__PURE__ */ c(Ke, {}), iconPlacement: "end", children: o?.title && "批量操作" }) })
|
|
2898
|
+
] }), e[54] = o?.enabled, e[55] = o?.title, e[56] = H, e[57] = oe) : oe = e[57];
|
|
2899
2899
|
let ue;
|
|
2900
2900
|
e[58] !== i || e[59] !== L || e[60] !== s ? (ue = i && /* @__PURE__ */ J(Ee, { children: [
|
|
2901
|
-
/* @__PURE__ */ c(
|
|
2901
|
+
/* @__PURE__ */ c(Ye, { orientation: "vertical" }),
|
|
2902
2902
|
/* @__PURE__ */ J(Ce.Compact, { children: [
|
|
2903
|
-
i.render ? i.render(s) : /* @__PURE__ */ c(
|
|
2904
|
-
L.length > 0 && /* @__PURE__ */ c(
|
|
2903
|
+
i.render ? i.render(s) : /* @__PURE__ */ c(Te, { type: "primary", ...i.attributes, onClick: /* @__PURE__ */ r(() => i.onClick?.(s), "onClick"), children: i.title }),
|
|
2904
|
+
L.length > 0 && /* @__PURE__ */ c(ke, { menu: {
|
|
2905
2905
|
items: L
|
|
2906
|
-
}, trigger: ["click"], placement: "bottomRight", children: /* @__PURE__ */ c(
|
|
2906
|
+
}, trigger: ["click"], placement: "bottomRight", children: /* @__PURE__ */ c(Te, { type: "primary", icon: /* @__PURE__ */ c(Ke, {}) }) })
|
|
2907
2907
|
] })
|
|
2908
2908
|
] }), e[58] = i, e[59] = L, e[60] = s, e[61] = ue) : ue = e[61];
|
|
2909
2909
|
let ne;
|
|
2910
|
-
e[62] !== X || e[63] !== Z || e[64] !== Q || e[65] !==
|
|
2910
|
+
e[62] !== X || e[63] !== Z || e[64] !== Q || e[65] !== oe || e[66] !== ue ? (ne = /* @__PURE__ */ J(pe, { gap: "8px", align: "center", className: qt.rightItems, children: [
|
|
2911
2911
|
X,
|
|
2912
2912
|
j,
|
|
2913
2913
|
Z,
|
|
2914
2914
|
Y,
|
|
2915
2915
|
Q,
|
|
2916
|
-
|
|
2916
|
+
de,
|
|
2917
2917
|
se,
|
|
2918
|
-
|
|
2918
|
+
oe,
|
|
2919
2919
|
ue
|
|
2920
|
-
] }), e[62] = X, e[63] = Z, e[64] = Q, e[65] =
|
|
2921
|
-
let
|
|
2922
|
-
e[68] !== te || e[69] !== ne ? (
|
|
2920
|
+
] }), e[62] = X, e[63] = Z, e[64] = Q, e[65] = oe, e[66] = ue, e[67] = ne) : ne = e[67];
|
|
2921
|
+
let ie;
|
|
2922
|
+
e[68] !== te || e[69] !== ne ? (ie = /* @__PURE__ */ J(pe, { align: "center", justify: "space-between", children: [
|
|
2923
2923
|
te,
|
|
2924
2924
|
ne
|
|
2925
|
-
] }), e[68] = te, e[69] = ne, e[70] =
|
|
2925
|
+
] }), e[68] = te, e[69] = ne, e[70] = ie) : ie = e[70];
|
|
2926
2926
|
let Se;
|
|
2927
2927
|
e[71] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = /* @__PURE__ */ r(() => w(!1), "t23"), e[71] = Se) : Se = e[71];
|
|
2928
|
-
let me;
|
|
2929
|
-
e[72] !== n.name || e[73] !== $ || e[74] !== N || e[75] !== R || e[76] !== O ? (me = /* @__PURE__ */ c(Dn, { mode: O, open: R, defaultViewType: $, defaultViewName: n.name, onSaveView: N, onCancel: Se }), e[72] = n.name, e[73] = $, e[74] = N, e[75] = R, e[76] = O, e[77] = me) : me = e[77];
|
|
2930
2928
|
let he;
|
|
2931
|
-
|
|
2932
|
-
|
|
2929
|
+
e[72] !== n.name || e[73] !== $ || e[74] !== N || e[75] !== R || e[76] !== b ? (he = /* @__PURE__ */ c(wn, { mode: b, open: R, defaultViewType: $, defaultViewName: n.name, onSaveView: N, onCancel: Se }), e[72] = n.name, e[73] = $, e[74] = N, e[75] = R, e[76] = b, e[77] = he) : he = e[77];
|
|
2930
|
+
let _e;
|
|
2931
|
+
return e[78] !== g || e[79] !== ie || e[80] !== he ? (_e = /* @__PURE__ */ J(Ee, { children: [
|
|
2932
|
+
ie,
|
|
2933
2933
|
g,
|
|
2934
|
-
|
|
2935
|
-
] }), e[78] = g, e[79] =
|
|
2936
|
-
}
|
|
2937
|
-
r(
|
|
2938
|
-
const
|
|
2939
|
-
userViews:
|
|
2940
|
-
container:
|
|
2941
|
-
topBar:
|
|
2942
|
-
filterPanel:
|
|
2934
|
+
he
|
|
2935
|
+
] }), e[78] = g, e[79] = ie, e[80] = he, e[81] = _e) : _e = e[81], _e;
|
|
2936
|
+
}
|
|
2937
|
+
r(sa, "TopBar");
|
|
2938
|
+
const ca = "_userViews_1rq5j_1", ua = "_container_1rq5j_7", fa = "_topBar_1rq5j_12", da = "_filterPanel_1rq5j_27", Ge = {
|
|
2939
|
+
userViews: ca,
|
|
2940
|
+
container: ua,
|
|
2941
|
+
topBar: fa,
|
|
2942
|
+
filterPanel: da
|
|
2943
2943
|
};
|
|
2944
|
-
function
|
|
2944
|
+
function ma(t) {
|
|
2945
2945
|
const e = G(77);
|
|
2946
2946
|
let l, n, i, a, o, s, u, d, f, m, h, _, S, C;
|
|
2947
2947
|
e[0] !== t ? ({
|
|
@@ -2961,10 +2961,10 @@ function fa(t) {
|
|
|
2961
2961
|
...S
|
|
2962
2962
|
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = i, e[4] = a, e[5] = o, e[6] = s, e[7] = u, e[8] = d, e[9] = f, e[10] = m, e[11] = h, e[12] = _, e[13] = S, e[14] = C) : (l = e[1], n = e[2], i = e[3], a = e[4], o = e[5], s = e[6], u = e[7], d = e[8], f = e[9], m = e[10], h = e[11], _ = e[12], S = e[13], C = e[14]);
|
|
2963
2963
|
const {
|
|
2964
|
-
page:
|
|
2964
|
+
page: O,
|
|
2965
2965
|
setPage: F,
|
|
2966
2966
|
activeFilters: A,
|
|
2967
|
-
setActiveFilters:
|
|
2967
|
+
setActiveFilters: b,
|
|
2968
2968
|
columns: P,
|
|
2969
2969
|
setColumns: R,
|
|
2970
2970
|
pageSize: w,
|
|
@@ -2975,18 +2975,18 @@ function fa(t) {
|
|
|
2975
2975
|
setSorter: L,
|
|
2976
2976
|
selectedCount: W,
|
|
2977
2977
|
updateSelectedCount: g
|
|
2978
|
-
} =
|
|
2978
|
+
} = Ca(S), {
|
|
2979
2979
|
locale: v
|
|
2980
2980
|
} = we();
|
|
2981
2981
|
let T;
|
|
2982
|
-
e[15] !== x ? (T = /* @__PURE__ */ r((ne,
|
|
2983
|
-
x(ne,
|
|
2982
|
+
e[15] !== x ? (T = /* @__PURE__ */ r((ne, ie) => {
|
|
2983
|
+
x(ne, ie);
|
|
2984
2984
|
}, "t1"), e[15] = x, e[16] = T) : T = e[16];
|
|
2985
2985
|
const E = T;
|
|
2986
2986
|
let N;
|
|
2987
|
-
e[17] !==
|
|
2988
|
-
|
|
2989
|
-
}, "t2"), e[17] =
|
|
2987
|
+
e[17] !== O || e[18] !== w || e[19] !== F || e[20] !== $ ? (N = /* @__PURE__ */ r((ne, ie) => {
|
|
2988
|
+
O !== ne && F(ne), w !== ie && $(ie);
|
|
2989
|
+
}, "t2"), e[17] = O, e[18] = w, e[19] = F, e[20] = $, e[21] = N) : N = e[21];
|
|
2990
2990
|
const I = N;
|
|
2991
2991
|
let D;
|
|
2992
2992
|
e[22] !== f || e[23] !== g ? (D = /* @__PURE__ */ r((ne) => {
|
|
@@ -2995,13 +2995,13 @@ function fa(t) {
|
|
|
2995
2995
|
const p = D;
|
|
2996
2996
|
let U;
|
|
2997
2997
|
e[25] !== L ? (U = /* @__PURE__ */ r((ne) => {
|
|
2998
|
-
let
|
|
2999
|
-
Array.isArray(ne) ?
|
|
2998
|
+
let ie;
|
|
2999
|
+
Array.isArray(ne) ? ie = ne.filter(Ta).map(_a) : ne.field ? ie = [{
|
|
3000
3000
|
field: Array.isArray(ne.field) ? [...ne.field].join(".") : ne.field,
|
|
3001
3001
|
direction: ne.order === "ascend" ? "ASC" : "DESC"
|
|
3002
|
-
}] :
|
|
3002
|
+
}] : ie = [], L(ie);
|
|
3003
3003
|
}, "t4"), e[25] = L, e[26] = U) : U = e[26];
|
|
3004
|
-
const y = U, B =
|
|
3004
|
+
const y = U, B = Le(null), V = Le(null);
|
|
3005
3005
|
let k;
|
|
3006
3006
|
e[27] !== f || e[28] !== g ? (k = /* @__PURE__ */ r(() => {
|
|
3007
3007
|
V.current?.clearSelectedRowKeys(), f?.([]), g(0);
|
|
@@ -3024,9 +3024,9 @@ function fa(t) {
|
|
|
3024
3024
|
display: "flex"
|
|
3025
3025
|
}, e[36] = j) : j = e[36];
|
|
3026
3026
|
let Z;
|
|
3027
|
-
e[37] !== A || e[38] !== n || e[39] !== s || e[40] !== E || e[41] !==
|
|
3027
|
+
e[37] !== A || e[38] !== n || e[39] !== s || e[40] !== E || e[41] !== b || e[42] !== _ ? (Z = s === "editable" && /* @__PURE__ */ c("div", { className: Ge.filterPanel, style: {
|
|
3028
3028
|
display: _ ? "block" : "none"
|
|
3029
|
-
}, children: /* @__PURE__ */ c(
|
|
3029
|
+
}, children: /* @__PURE__ */ c(gi, { row: {
|
|
3030
3030
|
gutter: [24, 16],
|
|
3031
3031
|
wrap: !0
|
|
3032
3032
|
}, col: {
|
|
@@ -3036,55 +3036,55 @@ function fa(t) {
|
|
|
3036
3036
|
md: 12,
|
|
3037
3037
|
sm: 24,
|
|
3038
3038
|
xs: 24
|
|
3039
|
-
}, ref: B, filters: A, availableFilters: n, resetButton: !1, onSearch: E, onChange:
|
|
3039
|
+
}, ref: B, filters: A, availableFilters: n, resetButton: !1, onSearch: E, onChange: b }) }), e[37] = A, e[38] = n, e[39] = s, e[40] = E, e[41] = b, e[42] = _, e[43] = Z) : Z = e[43];
|
|
3040
3040
|
let Y;
|
|
3041
|
-
e[44] !== A || e[45] !== s || e[46] !== E || e[47] !== _ ? (Y = s === "normal" && /* @__PURE__ */ c("div", { className:
|
|
3041
|
+
e[44] !== A || e[45] !== s || e[46] !== E || e[47] !== _ ? (Y = s === "normal" && /* @__PURE__ */ c("div", { className: Ge.filterPanel, style: {
|
|
3042
3042
|
display: _ ? "block" : "none"
|
|
3043
|
-
}, children: /* @__PURE__ */ c(
|
|
3043
|
+
}, children: /* @__PURE__ */ c(Nn, { ref: B, filters: A, resetButton: !1, onSearch: E }) }), e[44] = A, e[45] = s, e[46] = E, e[47] = _, e[48] = Y) : Y = e[48];
|
|
3044
3044
|
let Q;
|
|
3045
3045
|
e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = {
|
|
3046
3046
|
pagination: !1
|
|
3047
3047
|
}, e[49] = Q) : Q = e[49];
|
|
3048
|
-
const
|
|
3048
|
+
const de = C || !1;
|
|
3049
3049
|
let se;
|
|
3050
|
-
e[50] !== l || e[51] !== P || e[52] !== i.list || e[53] !== a || e[54] !== o || e[55] !== y || e[56] !== p || e[57] !== u || e[58] !== d || e[59] !== R || e[60] !==
|
|
3051
|
-
let
|
|
3052
|
-
e[63] !== i.total || e[64] !== a || e[65] !== I || e[66] !== v || e[67] !==
|
|
3050
|
+
e[50] !== l || e[51] !== P || e[52] !== i.list || e[53] !== a || e[54] !== o || e[55] !== y || e[56] !== p || e[57] !== u || e[58] !== d || e[59] !== R || e[60] !== de || e[61] !== M ? (se = /* @__PURE__ */ c(Yr, { ref: V, loading: u, dataSource: i.list, fields: o, columns: P, onColumnsChange: R, tableSize: M, actionColumn: l, onSortChanged: y, onSelectChange: p, attributes: Q, enableRowSelection: a, onClickPrimaryKey: d, viewTableSetting: de }), e[50] = l, e[51] = P, e[52] = i.list, e[53] = a, e[54] = o, e[55] = y, e[56] = p, e[57] = u, e[58] = d, e[59] = R, e[60] = de, e[61] = M, e[62] = se) : se = e[62];
|
|
3051
|
+
let oe;
|
|
3052
|
+
e[63] !== i.total || e[64] !== a || e[65] !== I || e[66] !== v || e[67] !== O || e[68] !== w || e[69] !== m || e[70] !== W ? (oe = (m !== !1 || a) && /* @__PURE__ */ J("div", { style: {
|
|
3053
3053
|
display: "flex",
|
|
3054
3054
|
alignItems: "center",
|
|
3055
3055
|
justifyContent: "space-between"
|
|
3056
3056
|
}, children: [
|
|
3057
3057
|
/* @__PURE__ */ c("span", { children: W ? v.selectedCountLabel ? v.selectedCountLabel.format(W) : `已选择 ${W} 条数据` : "" }),
|
|
3058
|
-
/* @__PURE__ */ c(
|
|
3059
|
-
] }), e[63] = i.total, e[64] = a, e[65] = I, e[66] = v, e[67] =
|
|
3058
|
+
/* @__PURE__ */ c(gn, { showTotal: ha, defaultCurrent: O, current: O, pageSize: w || 10, total: i.total, pageSizeOptions: ["10", "20", "50", "100"], ...m, onChange: I })
|
|
3059
|
+
] }), e[63] = i.total, e[64] = a, e[65] = I, e[66] = v, e[67] = O, e[68] = w, e[69] = m, e[70] = W, e[71] = oe) : oe = e[71];
|
|
3060
3060
|
let ue;
|
|
3061
|
-
return e[72] !== Y || e[73] !== se || e[74] !==
|
|
3061
|
+
return e[72] !== Y || e[73] !== se || e[74] !== oe || e[75] !== Z ? (ue = /* @__PURE__ */ J(Ce, { orientation: "vertical", style: j, size: "small", children: [
|
|
3062
3062
|
Z,
|
|
3063
3063
|
Y,
|
|
3064
3064
|
se,
|
|
3065
|
-
|
|
3066
|
-
] }), e[72] = Y, e[73] = se, e[74] =
|
|
3065
|
+
oe
|
|
3066
|
+
] }), e[72] = Y, e[73] = se, e[74] = oe, e[75] = Z, e[76] = ue) : ue = e[76], ue;
|
|
3067
3067
|
}
|
|
3068
|
-
r(
|
|
3069
|
-
function
|
|
3068
|
+
r(ma, "View");
|
|
3069
|
+
function ha(t) {
|
|
3070
3070
|
return `共 ${t} 条数据`;
|
|
3071
3071
|
}
|
|
3072
|
-
r(
|
|
3073
|
-
function
|
|
3072
|
+
r(ha, "_temp3");
|
|
3073
|
+
function _a(t) {
|
|
3074
3074
|
return {
|
|
3075
3075
|
field: Array.isArray(t.field) ? [...t.field].join(".") : t.field,
|
|
3076
3076
|
direction: t.order === "ascend" ? "ASC" : "DESC"
|
|
3077
3077
|
};
|
|
3078
3078
|
}
|
|
3079
|
-
r(
|
|
3080
|
-
function
|
|
3079
|
+
r(_a, "_temp2$1");
|
|
3080
|
+
function Ta(t) {
|
|
3081
3081
|
return t.field;
|
|
3082
3082
|
}
|
|
3083
|
-
r(
|
|
3084
|
-
const
|
|
3085
|
-
function
|
|
3086
|
-
defaultPage: t =
|
|
3087
|
-
defaultPageSize: e =
|
|
3083
|
+
r(Ta, "_temp$1");
|
|
3084
|
+
const Ea = 1, Sa = 10;
|
|
3085
|
+
function Ca({
|
|
3086
|
+
defaultPage: t = Ea,
|
|
3087
|
+
defaultPageSize: e = Sa,
|
|
3088
3088
|
...l
|
|
3089
3089
|
}) {
|
|
3090
3090
|
const {
|
|
@@ -3101,10 +3101,10 @@ function Ea({
|
|
|
3101
3101
|
defaultTableSize: _,
|
|
3102
3102
|
externalTableSize: S,
|
|
3103
3103
|
externalUpdateTableSize: C,
|
|
3104
|
-
defaultSorter:
|
|
3104
|
+
defaultSorter: O,
|
|
3105
3105
|
externalSorter: F,
|
|
3106
3106
|
externalUpdateSorter: A,
|
|
3107
|
-
defaultCondition:
|
|
3107
|
+
defaultCondition: b,
|
|
3108
3108
|
externalCondition: P,
|
|
3109
3109
|
externalUpdateCondition: R,
|
|
3110
3110
|
onChange: w
|
|
@@ -3124,65 +3124,65 @@ function Ea({
|
|
|
3124
3124
|
sorter: D,
|
|
3125
3125
|
setSorter: p,
|
|
3126
3126
|
reset: U
|
|
3127
|
-
} =
|
|
3127
|
+
} = An({
|
|
3128
3128
|
defaultColumns: n,
|
|
3129
3129
|
defaultPageSize: e,
|
|
3130
3130
|
defaultActiveFilters: o || [],
|
|
3131
3131
|
defaultTableSize: _,
|
|
3132
|
-
defaultCondition:
|
|
3133
|
-
defaultSorter:
|
|
3134
|
-
}), y = i ?? $, B = a ?? M, V = s ?? H, k = u ?? x, K = d ?? L, q = f ?? W, te = m ?? g, X = h ?? v, j = P ?? N, Z = R ?? I, Y = F ?? D, Q = A ?? p,
|
|
3132
|
+
defaultCondition: b,
|
|
3133
|
+
defaultSorter: O
|
|
3134
|
+
}), y = i ?? $, B = a ?? M, V = s ?? H, k = u ?? x, K = d ?? L, q = f ?? W, te = m ?? g, X = h ?? v, j = P ?? N, Z = R ?? I, Y = F ?? D, Q = A ?? p, de = S ?? T, se = C ?? E, [oe, ue] = ee(0);
|
|
3135
3135
|
return {
|
|
3136
3136
|
page: K,
|
|
3137
|
-
setPage: /* @__PURE__ */ r((
|
|
3138
|
-
q(
|
|
3137
|
+
setPage: /* @__PURE__ */ r((le) => {
|
|
3138
|
+
q(le), w?.(j, le, te, Y);
|
|
3139
3139
|
}, "setPageFn"),
|
|
3140
3140
|
pageSize: te,
|
|
3141
|
-
setPageSize: /* @__PURE__ */ r((
|
|
3142
|
-
X(
|
|
3141
|
+
setPageSize: /* @__PURE__ */ r((le) => {
|
|
3142
|
+
X(le), w?.(j, K, le, Y);
|
|
3143
3143
|
}, "setPageSizeFn"),
|
|
3144
3144
|
columns: y,
|
|
3145
3145
|
setColumns: B,
|
|
3146
3146
|
activeFilters: V,
|
|
3147
3147
|
setActiveFilters: k,
|
|
3148
|
-
tableSize:
|
|
3149
|
-
setTableSize: /* @__PURE__ */ r((
|
|
3150
|
-
se(
|
|
3148
|
+
tableSize: de,
|
|
3149
|
+
setTableSize: /* @__PURE__ */ r((le) => {
|
|
3150
|
+
se(le);
|
|
3151
3151
|
}, "setTableSizeFn"),
|
|
3152
3152
|
condition: j,
|
|
3153
|
-
setCondition: /* @__PURE__ */ r((
|
|
3154
|
-
Z(
|
|
3153
|
+
setCondition: /* @__PURE__ */ r((le, me) => {
|
|
3154
|
+
Z(le, me), q(1), w?.(le, 1, te, Y);
|
|
3155
3155
|
}, "setConditionFn"),
|
|
3156
3156
|
sorter: Y,
|
|
3157
|
-
setSorter: /* @__PURE__ */ r((
|
|
3158
|
-
Q(
|
|
3157
|
+
setSorter: /* @__PURE__ */ r((le) => {
|
|
3158
|
+
Q(le), q(1), w?.(j, 1, te, le);
|
|
3159
3159
|
}, "setSorterFn"),
|
|
3160
|
-
selectedCount:
|
|
3161
|
-
updateSelectedCount: /* @__PURE__ */ r((
|
|
3162
|
-
ue(
|
|
3160
|
+
selectedCount: oe,
|
|
3161
|
+
updateSelectedCount: /* @__PURE__ */ r((le) => {
|
|
3162
|
+
ue(le);
|
|
3163
3163
|
}, "updateSelectedCountFn"),
|
|
3164
3164
|
reset: /* @__PURE__ */ r(() => {
|
|
3165
3165
|
U(), w?.(
|
|
3166
|
-
|
|
3166
|
+
b || pn,
|
|
3167
3167
|
t,
|
|
3168
3168
|
e,
|
|
3169
|
-
|
|
3169
|
+
O
|
|
3170
3170
|
);
|
|
3171
3171
|
}, "resetFn")
|
|
3172
3172
|
};
|
|
3173
3173
|
}
|
|
3174
|
-
r(
|
|
3175
|
-
const
|
|
3176
|
-
top:
|
|
3177
|
-
title:
|
|
3178
|
-
customCollapse:
|
|
3179
|
-
viewItem:
|
|
3180
|
-
active:
|
|
3181
|
-
viewName:
|
|
3182
|
-
viewNameText:
|
|
3183
|
-
viewNameTag:
|
|
3174
|
+
r(Ca, "useViewState");
|
|
3175
|
+
const ya = "_top_1wlaq_1", va = "_title_1wlaq_4", Ia = "_customCollapse_1wlaq_8", Na = "_viewItem_1wlaq_24", pa = "_active_1wlaq_32", Aa = "_viewName_1wlaq_36", La = "_viewNameText_1wlaq_48", ba = "_viewNameTag_1wlaq_85", Re = {
|
|
3176
|
+
top: ya,
|
|
3177
|
+
title: va,
|
|
3178
|
+
customCollapse: Ia,
|
|
3179
|
+
viewItem: Na,
|
|
3180
|
+
active: pa,
|
|
3181
|
+
viewName: Aa,
|
|
3182
|
+
viewNameText: La,
|
|
3183
|
+
viewNameTag: ba
|
|
3184
3184
|
};
|
|
3185
|
-
function
|
|
3185
|
+
function Oa(t) {
|
|
3186
3186
|
const e = G(19), {
|
|
3187
3187
|
view: l,
|
|
3188
3188
|
countUrl: n,
|
|
@@ -3191,8 +3191,8 @@ function La(t) {
|
|
|
3191
3191
|
} = t, [o, s] = ee(0);
|
|
3192
3192
|
let u, d;
|
|
3193
3193
|
e[0] !== n || e[1] !== a || e[2] !== l.condition ? (u = /* @__PURE__ */ r(() => {
|
|
3194
|
-
a && a(n, l.condition ||
|
|
3195
|
-
s(
|
|
3194
|
+
a && a(n, l.condition || qe()).then((O) => {
|
|
3195
|
+
s(O || 0);
|
|
3196
3196
|
});
|
|
3197
3197
|
}, "t0"), d = [n, a, l.condition], e[0] = n, e[1] = a, e[2] = l.condition, e[3] = u, e[4] = d) : (u = e[3], d = e[4]), Ae(u, d);
|
|
3198
3198
|
const f = `${Re.viewItem} ${i ? Re.active : ""}`;
|
|
@@ -3213,8 +3213,8 @@ function La(t) {
|
|
|
3213
3213
|
S
|
|
3214
3214
|
] }), e[15] = f, e[16] = _, e[17] = S, e[18] = C) : C = e[18], C;
|
|
3215
3215
|
}
|
|
3216
|
-
r(
|
|
3217
|
-
function
|
|
3216
|
+
r(Oa, "ViewItem");
|
|
3217
|
+
function Xt(t) {
|
|
3218
3218
|
const e = G(13), {
|
|
3219
3219
|
views: l,
|
|
3220
3220
|
activeView: n,
|
|
@@ -3228,14 +3228,14 @@ function Qt(t) {
|
|
|
3228
3228
|
e[6] !== n || e[7] !== i || e[8] !== o || e[9] !== a ? (d = /* @__PURE__ */ r((f) => /* @__PURE__ */ c("div", { onClick: /* @__PURE__ */ r(() => a(f), "onClick"), style: {
|
|
3229
3229
|
width: "100%",
|
|
3230
3230
|
cursor: "pointer"
|
|
3231
|
-
}, children: /* @__PURE__ */ c(
|
|
3231
|
+
}, children: /* @__PURE__ */ c(Oa, { active: f.id === n.id, countUrl: i, view: f, onGetRecordCount: o }) }, f.id), "t12"), e[6] = n, e[7] = i, e[8] = o, e[9] = a, e[10] = d) : d = e[10], s = l.map(d), e[0] = n, e[1] = i, e[2] = o, e[3] = a, e[4] = l, e[5] = s;
|
|
3232
3232
|
} else
|
|
3233
3233
|
s = e[5];
|
|
3234
3234
|
let u;
|
|
3235
3235
|
return e[11] !== s ? (u = /* @__PURE__ */ c(pe, { vertical: !0, align: "start", children: s }), e[11] = s, e[12] = u) : u = e[12], u;
|
|
3236
3236
|
}
|
|
3237
|
-
r(
|
|
3238
|
-
function
|
|
3237
|
+
r(Xt, "ViewItemGroup");
|
|
3238
|
+
function Ra(t) {
|
|
3239
3239
|
const e = G(80), {
|
|
3240
3240
|
name: l,
|
|
3241
3241
|
views: n,
|
|
@@ -3249,37 +3249,37 @@ function Oa(t) {
|
|
|
3249
3249
|
onGetRecordCount: m
|
|
3250
3250
|
} = t;
|
|
3251
3251
|
let h;
|
|
3252
|
-
e[0] !== n ? (h = n.filter(
|
|
3252
|
+
e[0] !== n ? (h = n.filter(wa), e[0] = n, e[1] = h) : h = e[1];
|
|
3253
3253
|
const _ = h;
|
|
3254
3254
|
let S;
|
|
3255
|
-
e[2] !== n ? (S = n.filter(
|
|
3256
|
-
const C = S, [
|
|
3255
|
+
e[2] !== n ? (S = n.filter(Da), e[2] = n, e[3] = S) : S = e[3];
|
|
3256
|
+
const C = S, [O, F] = ee(!1), [A, b] = ee(!1), [P, R] = ee("Create"), [w, $] = ee(!1), [M, H] = ee("PERSONAL"), {
|
|
3257
3257
|
locale: x
|
|
3258
3258
|
} = we();
|
|
3259
3259
|
let L;
|
|
3260
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ r((
|
|
3261
|
-
|
|
3262
|
-
e: switch (
|
|
3260
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ r((fe, ae) => {
|
|
3261
|
+
fe.preventDefault(), fe.stopPropagation();
|
|
3262
|
+
e: switch (ae) {
|
|
3263
3263
|
case "PERSONAL": {
|
|
3264
3264
|
F(!0);
|
|
3265
3265
|
break e;
|
|
3266
3266
|
}
|
|
3267
3267
|
case "SHARED":
|
|
3268
|
-
|
|
3268
|
+
b(!0);
|
|
3269
3269
|
}
|
|
3270
3270
|
}, "t2"), e[4] = L) : L = e[4];
|
|
3271
3271
|
const W = L;
|
|
3272
3272
|
let g;
|
|
3273
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ r((
|
|
3274
|
-
|
|
3273
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ r((fe, ae) => {
|
|
3274
|
+
fe.stopPropagation(), H(ae), R("Create"), $(!0);
|
|
3275
3275
|
}, "t3"), e[5] = g) : g = e[5];
|
|
3276
3276
|
const v = g;
|
|
3277
3277
|
let T;
|
|
3278
|
-
e[6] !== i || e[7] !== u ? (T = /* @__PURE__ */ r((
|
|
3278
|
+
e[6] !== i || e[7] !== u ? (T = /* @__PURE__ */ r((fe, ae) => {
|
|
3279
3279
|
u?.({
|
|
3280
3280
|
...i,
|
|
3281
|
-
name:
|
|
3282
|
-
type:
|
|
3281
|
+
name: fe,
|
|
3282
|
+
type: ae,
|
|
3283
3283
|
source: "CUSTOM",
|
|
3284
3284
|
isDefault: !1
|
|
3285
3285
|
}, () => {
|
|
@@ -3288,25 +3288,25 @@ function Oa(t) {
|
|
|
3288
3288
|
}, "t4"), e[6] = i, e[7] = u, e[8] = T) : T = e[8];
|
|
3289
3289
|
const E = T;
|
|
3290
3290
|
let N;
|
|
3291
|
-
e[9] !== d ? (N = /* @__PURE__ */ r((
|
|
3292
|
-
d?.(
|
|
3291
|
+
e[9] !== d ? (N = /* @__PURE__ */ r((fe, ae) => {
|
|
3292
|
+
d?.(fe, ae);
|
|
3293
3293
|
}, "t5"), e[9] = d, e[10] = N) : N = e[10];
|
|
3294
3294
|
const I = N;
|
|
3295
3295
|
let D;
|
|
3296
|
-
e[11] !== f ? (D = /* @__PURE__ */ r((
|
|
3297
|
-
f?.(
|
|
3296
|
+
e[11] !== f ? (D = /* @__PURE__ */ r((fe) => {
|
|
3297
|
+
f?.(fe);
|
|
3298
3298
|
}, "t6"), e[11] = f, e[12] = D) : D = e[12];
|
|
3299
3299
|
const p = D;
|
|
3300
3300
|
let U;
|
|
3301
|
-
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ r((
|
|
3302
|
-
/* @__PURE__ */ c(
|
|
3303
|
-
/* @__PURE__ */ c(
|
|
3301
|
+
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ r((fe) => /* @__PURE__ */ J(Ce, { children: [
|
|
3302
|
+
/* @__PURE__ */ c(sn, { onClick: /* @__PURE__ */ r((ae) => W(ae, fe), "onClick") }),
|
|
3303
|
+
/* @__PURE__ */ c(an, { onClick: /* @__PURE__ */ r((ae) => v(ae, fe), "onClick") })
|
|
3304
3304
|
] }), "t7"), e[13] = U) : U = e[13];
|
|
3305
3305
|
const y = U, B = x.view?.viewType?.personal || "个人";
|
|
3306
3306
|
let V;
|
|
3307
|
-
e[14] !== o ? (V = /* @__PURE__ */ r((
|
|
3307
|
+
e[14] !== o ? (V = /* @__PURE__ */ r((fe) => o(fe), "t9"), e[14] = o, e[15] = V) : V = e[15];
|
|
3308
3308
|
let k;
|
|
3309
|
-
e[16] !== i || e[17] !== a || e[18] !== m || e[19] !== _ || e[20] !== V ? (k = /* @__PURE__ */ c(
|
|
3309
|
+
e[16] !== i || e[17] !== a || e[18] !== m || e[19] !== _ || e[20] !== V ? (k = /* @__PURE__ */ c(Xt, { views: _, activeView: i, countUrl: a, onSwitchView: V, onGetRecordCount: m }), e[16] = i, e[17] = a, e[18] = m, e[19] = _, e[20] = V, e[21] = k) : k = e[21];
|
|
3310
3310
|
let K;
|
|
3311
3311
|
e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = y("PERSONAL"), e[22] = K) : K = e[22];
|
|
3312
3312
|
let q;
|
|
@@ -3318,9 +3318,9 @@ function Oa(t) {
|
|
|
3318
3318
|
}, e[23] = k, e[24] = B, e[25] = q) : q = e[25];
|
|
3319
3319
|
const te = x.view?.viewType?.shared || "公共";
|
|
3320
3320
|
let X;
|
|
3321
|
-
e[26] !== o ? (X = /* @__PURE__ */ r((
|
|
3321
|
+
e[26] !== o ? (X = /* @__PURE__ */ r((fe) => o(fe), "t14"), e[26] = o, e[27] = X) : X = e[27];
|
|
3322
3322
|
let j;
|
|
3323
|
-
e[28] !== i || e[29] !== a || e[30] !== m || e[31] !== C || e[32] !== X ? (j = /* @__PURE__ */ c(
|
|
3323
|
+
e[28] !== i || e[29] !== a || e[30] !== m || e[31] !== C || e[32] !== X ? (j = /* @__PURE__ */ c(Xt, { views: C, activeView: i, countUrl: a, onSwitchView: X, onGetRecordCount: m }), e[28] = i, e[29] = a, e[30] = m, e[31] = C, e[32] = X, e[33] = j) : j = e[33];
|
|
3324
3324
|
let Z;
|
|
3325
3325
|
e[34] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = y("SHARED"), e[34] = Z) : Z = e[34];
|
|
3326
3326
|
let Y;
|
|
@@ -3332,61 +3332,61 @@ function Oa(t) {
|
|
|
3332
3332
|
}, e[35] = te, e[36] = j, e[37] = Y) : Y = e[37];
|
|
3333
3333
|
let Q;
|
|
3334
3334
|
e[38] !== q || e[39] !== Y ? (Q = [q, Y], e[38] = q, e[39] = Y, e[40] = Q) : Q = e[40];
|
|
3335
|
-
const
|
|
3335
|
+
const de = Q;
|
|
3336
3336
|
let se;
|
|
3337
3337
|
e[41] !== l ? (se = /* @__PURE__ */ c("div", { className: Re.title, children: l }), e[41] = l, e[42] = se) : se = e[42];
|
|
3338
|
-
let
|
|
3339
|
-
e[43] !== s ? (
|
|
3338
|
+
let oe;
|
|
3339
|
+
e[43] !== s ? (oe = /* @__PURE__ */ r(() => {
|
|
3340
3340
|
s(!1);
|
|
3341
|
-
}, "t20"), e[43] = s, e[44] =
|
|
3341
|
+
}, "t20"), e[43] = s, e[44] = oe) : oe = e[44];
|
|
3342
3342
|
let ue;
|
|
3343
|
-
e[45] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ue = /* @__PURE__ */ c(
|
|
3343
|
+
e[45] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ue = /* @__PURE__ */ c(xe, { icon: /* @__PURE__ */ c(rl, {}), active: !1 }), e[45] = ue) : ue = e[45];
|
|
3344
3344
|
let ne;
|
|
3345
|
-
e[46] !==
|
|
3346
|
-
let
|
|
3347
|
-
e[48] !== se || e[49] !== ne ? (
|
|
3345
|
+
e[46] !== oe ? (ne = /* @__PURE__ */ c("div", { onClick: oe, children: ue }), e[46] = oe, e[47] = ne) : ne = e[47];
|
|
3346
|
+
let ie;
|
|
3347
|
+
e[48] !== se || e[49] !== ne ? (ie = /* @__PURE__ */ J(pe, { align: "center", justify: "space-between", className: Re.top, children: [
|
|
3348
3348
|
se,
|
|
3349
3349
|
ne
|
|
3350
|
-
] }), e[48] = se, e[49] = ne, e[50] =
|
|
3350
|
+
] }), e[48] = se, e[49] = ne, e[50] = ie) : ie = e[50];
|
|
3351
3351
|
let Se;
|
|
3352
3352
|
e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = ["1", "2"], e[51] = Se) : Se = e[51];
|
|
3353
|
-
let me;
|
|
3354
|
-
e[52] !== fe ? (me = /* @__PURE__ */ c(gn, { items: fe, defaultActiveKey: Se, className: Re.customCollapse }), e[52] = fe, e[53] = me) : me = e[53];
|
|
3355
3353
|
let he;
|
|
3356
|
-
e[
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3354
|
+
e[52] !== de ? (he = /* @__PURE__ */ c(Un, { items: de, defaultActiveKey: Se, className: Re.customCollapse }), e[52] = de, e[53] = he) : he = e[53];
|
|
3355
|
+
let _e;
|
|
3356
|
+
e[54] !== ie || e[55] !== he ? (_e = /* @__PURE__ */ J(pe, { vertical: !0, gap: "16px", children: [
|
|
3357
|
+
ie,
|
|
3358
|
+
he
|
|
3359
|
+
] }), e[54] = ie, e[55] = he, e[56] = _e) : _e = e[56];
|
|
3362
3360
|
let ce;
|
|
3363
|
-
e[
|
|
3364
|
-
let
|
|
3365
|
-
e[
|
|
3366
|
-
let
|
|
3367
|
-
e[
|
|
3368
|
-
let
|
|
3369
|
-
e[
|
|
3361
|
+
e[57] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ce = /* @__PURE__ */ r(() => F(!1), "t27"), e[57] = ce) : ce = e[57];
|
|
3362
|
+
let re;
|
|
3363
|
+
e[58] !== p || e[59] !== I || e[60] !== O || e[61] !== _ ? (re = /* @__PURE__ */ c(Zt, { viewType: "PERSONAL", views: _, open: O, onCancel: ce, onEditViewName: I, onDeleteView: p }), e[58] = p, e[59] = I, e[60] = O, e[61] = _, e[62] = re) : re = e[62];
|
|
3364
|
+
let le;
|
|
3365
|
+
e[63] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (le = /* @__PURE__ */ r(() => b(!1), "t29"), e[63] = le) : le = e[63];
|
|
3366
|
+
let me;
|
|
3367
|
+
e[64] !== p || e[65] !== I || e[66] !== A || e[67] !== C ? (me = /* @__PURE__ */ c(Zt, { viewType: "SHARED", views: C, open: A, onCancel: le, onEditViewName: I, onDeleteView: p }), e[64] = p, e[65] = I, e[66] = A, e[67] = C, e[68] = me) : me = e[68];
|
|
3368
|
+
let Oe;
|
|
3369
|
+
e[69] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Oe = /* @__PURE__ */ r(() => $(!1), "t31"), e[69] = Oe) : Oe = e[69];
|
|
3370
3370
|
let ye;
|
|
3371
|
-
e[70] !== M || e[71] !== E || e[72] !== w || e[73] !== P ? (ye = /* @__PURE__ */ c(
|
|
3372
|
-
let
|
|
3373
|
-
return e[75] !==
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3371
|
+
e[70] !== M || e[71] !== E || e[72] !== w || e[73] !== P ? (ye = /* @__PURE__ */ c(wn, { mode: P, open: w, defaultViewType: M, onSaveView: E, onCancel: Oe }), e[70] = M, e[71] = E, e[72] = w, e[73] = P, e[74] = ye) : ye = e[74];
|
|
3372
|
+
let Ne;
|
|
3373
|
+
return e[75] !== _e || e[76] !== re || e[77] !== me || e[78] !== ye ? (Ne = /* @__PURE__ */ J(Ee, { children: [
|
|
3374
|
+
_e,
|
|
3375
|
+
re,
|
|
3376
|
+
me,
|
|
3377
3377
|
ye
|
|
3378
|
-
] }), e[75] =
|
|
3378
|
+
] }), e[75] = _e, e[76] = re, e[77] = me, e[78] = ye, e[79] = Ne) : Ne = e[79], Ne;
|
|
3379
3379
|
}
|
|
3380
|
-
r(
|
|
3381
|
-
function
|
|
3380
|
+
r(Ra, "ViewPanel");
|
|
3381
|
+
function Da(t) {
|
|
3382
3382
|
return t.type === "SHARED";
|
|
3383
3383
|
}
|
|
3384
|
-
r(
|
|
3385
|
-
function
|
|
3384
|
+
r(Da, "_temp2");
|
|
3385
|
+
function wa(t) {
|
|
3386
3386
|
return t.type === "PERSONAL";
|
|
3387
3387
|
}
|
|
3388
|
-
r(
|
|
3389
|
-
function
|
|
3388
|
+
r(wa, "_temp");
|
|
3389
|
+
function wn(t) {
|
|
3390
3390
|
const e = G(39), {
|
|
3391
3391
|
mode: l,
|
|
3392
3392
|
open: n,
|
|
@@ -3411,20 +3411,20 @@ function Dn(t) {
|
|
|
3411
3411
|
s?.();
|
|
3412
3412
|
}, "t3"), e[5] = s, e[6] = _) : _ = e[6];
|
|
3413
3413
|
const S = _, C = u.personalView || "个人视图";
|
|
3414
|
-
let
|
|
3415
|
-
e[7] !== C ? (
|
|
3414
|
+
let O;
|
|
3415
|
+
e[7] !== C ? (O = {
|
|
3416
3416
|
label: C,
|
|
3417
3417
|
value: "PERSONAL"
|
|
3418
|
-
}, e[7] = C, e[8] =
|
|
3418
|
+
}, e[7] = C, e[8] = O) : O = e[8];
|
|
3419
3419
|
const F = u.sharedView || "公共视图";
|
|
3420
3420
|
let A;
|
|
3421
3421
|
e[9] !== F ? (A = {
|
|
3422
3422
|
label: F,
|
|
3423
3423
|
value: "SHARED"
|
|
3424
3424
|
}, e[9] = F, e[10] = A) : A = e[10];
|
|
3425
|
-
let
|
|
3426
|
-
e[11] !==
|
|
3427
|
-
const P =
|
|
3425
|
+
let b;
|
|
3426
|
+
e[11] !== O || e[12] !== A ? (b = [O, A], e[11] = O, e[12] = A, e[13] = b) : b = e[13];
|
|
3427
|
+
const P = b, R = Le(null);
|
|
3428
3428
|
let w;
|
|
3429
3429
|
e[14] !== o ? (w = /* @__PURE__ */ r((y) => {
|
|
3430
3430
|
o?.(y.name, y.type);
|
|
@@ -3445,9 +3445,9 @@ function Dn(t) {
|
|
|
3445
3445
|
required: !0
|
|
3446
3446
|
}], e[19] = g) : g = e[19];
|
|
3447
3447
|
let v;
|
|
3448
|
-
e[20] !== P ? (v = /* @__PURE__ */ c(
|
|
3448
|
+
e[20] !== P ? (v = /* @__PURE__ */ c(Hn.Group, { options: P, optionType: "button" }), e[20] = P, e[21] = v) : v = e[21];
|
|
3449
3449
|
let T;
|
|
3450
|
-
e[22] !== W || e[23] !== v ? (T = /* @__PURE__ */ c(
|
|
3450
|
+
e[22] !== W || e[23] !== v ? (T = /* @__PURE__ */ c(tt.Item, { label: W, name: "type", rules: g, children: v }), e[22] = W, e[23] = v, e[24] = T) : T = e[24];
|
|
3451
3451
|
const E = u.view?.viewName || "视图名称";
|
|
3452
3452
|
let N, I;
|
|
3453
3453
|
e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = [{
|
|
@@ -3455,19 +3455,19 @@ function Dn(t) {
|
|
|
3455
3455
|
}, {
|
|
3456
3456
|
type: "string",
|
|
3457
3457
|
min: 1
|
|
3458
|
-
}], I = /* @__PURE__ */ c(
|
|
3458
|
+
}], I = /* @__PURE__ */ c(Xe, {}), e[25] = N, e[26] = I) : (N = e[25], I = e[26]);
|
|
3459
3459
|
let D;
|
|
3460
|
-
e[27] !== E ? (D = /* @__PURE__ */ c(
|
|
3460
|
+
e[27] !== E ? (D = /* @__PURE__ */ c(tt.Item, { label: E, name: "name", rules: N, children: I }), e[27] = E, e[28] = D) : D = e[28];
|
|
3461
3461
|
let p;
|
|
3462
|
-
e[29] !== $ || e[30] !== L || e[31] !== T || e[32] !== D ? (p = /* @__PURE__ */ J(
|
|
3462
|
+
e[29] !== $ || e[30] !== L || e[31] !== T || e[32] !== D ? (p = /* @__PURE__ */ J(tt, { ref: R, name: "basic", labelCol: H, initialValues: L, onFinish: $, autoComplete: "off", children: [
|
|
3463
3463
|
T,
|
|
3464
3464
|
D
|
|
3465
3465
|
] }), e[29] = $, e[30] = L, e[31] = T, e[32] = D, e[33] = p) : p = e[33];
|
|
3466
3466
|
let U;
|
|
3467
|
-
return e[34] !== S || e[35] !== n || e[36] !== M || e[37] !== p ? (U = /* @__PURE__ */ c(
|
|
3467
|
+
return e[34] !== S || e[35] !== n || e[36] !== M || e[37] !== p ? (U = /* @__PURE__ */ c(ft, { 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;
|
|
3468
3468
|
}
|
|
3469
|
-
r(
|
|
3470
|
-
function
|
|
3469
|
+
r(wn, "SaveViewModal");
|
|
3470
|
+
function Fa(t) {
|
|
3471
3471
|
const e = G(16), {
|
|
3472
3472
|
view: l,
|
|
3473
3473
|
editing: n,
|
|
@@ -3495,18 +3495,18 @@ function Da(t) {
|
|
|
3495
3495
|
return e[7] !== n || e[8] !== h || e[9] !== S || e[10] !== f || e[11] !== s || e[12] !== i || e[13] !== l || e[14] !== u ? (C = /* @__PURE__ */ c(Ee, { children: n ? /* @__PURE__ */ J(pe, { align: "baseline", justify: "space-between", gap: 12, style: {
|
|
3496
3496
|
width: "100%"
|
|
3497
3497
|
}, children: [
|
|
3498
|
-
/* @__PURE__ */ c(
|
|
3498
|
+
/* @__PURE__ */ c(tt.Item, { required: !1, validateStatus: u.trim() === "" ? "error" : "", help: u.trim() === "" ? "请输入视图名称" : "", style: {
|
|
3499
3499
|
marginBottom: 0,
|
|
3500
3500
|
flex: 1
|
|
3501
|
-
}, children: /* @__PURE__ */ c(
|
|
3501
|
+
}, children: /* @__PURE__ */ c(Xe, { value: u, onChange: /* @__PURE__ */ r((O) => d(O.target.value), "onChange") }) }),
|
|
3502
3502
|
/* @__PURE__ */ J(Ce, { orientation: "horizontal", children: [
|
|
3503
|
-
/* @__PURE__ */ c(
|
|
3504
|
-
/* @__PURE__ */ c(
|
|
3503
|
+
/* @__PURE__ */ c(Te, { type: "default", size: "small", onClick: h, children: f.viewPanel?.cancelButton || "取消" }),
|
|
3504
|
+
/* @__PURE__ */ c(Te, { type: "primary", size: "small", onClick: S, children: f.viewPanel?.saveButton || "保存" })
|
|
3505
3505
|
] })
|
|
3506
3506
|
] }) : /* @__PURE__ */ J(pe, { align: "center", justify: "space-between", gap: 12, style: {
|
|
3507
3507
|
width: "100%"
|
|
3508
3508
|
}, children: [
|
|
3509
|
-
/* @__PURE__ */ c(
|
|
3509
|
+
/* @__PURE__ */ c(on, { style: {
|
|
3510
3510
|
color: l.source === "SYSTEM" ? "rgba(0,0,0,0.25)" : ""
|
|
3511
3511
|
} }),
|
|
3512
3512
|
/* @__PURE__ */ c("span", { style: {
|
|
@@ -3514,13 +3514,13 @@ function Da(t) {
|
|
|
3514
3514
|
textAlign: "left"
|
|
3515
3515
|
}, children: u }),
|
|
3516
3516
|
l.source === "CUSTOM" ? /* @__PURE__ */ J(Ce, { orientation: "horizontal", children: [
|
|
3517
|
-
/* @__PURE__ */ c(
|
|
3518
|
-
/* @__PURE__ */ c(
|
|
3517
|
+
/* @__PURE__ */ c(al, { onClick: /* @__PURE__ */ r(() => i(l), "onClick") }),
|
|
3518
|
+
/* @__PURE__ */ c(zn, { title: "确认删除此视图?", description: "视图删除后不可恢复,其数据不受影响,是否确认删除?", onConfirm: /* @__PURE__ */ r(() => s(l), "onConfirm"), okText: "确认", cancelText: "取消", children: /* @__PURE__ */ c(ol, {}) })
|
|
3519
3519
|
] }) : /* @__PURE__ */ c(Ot, { children: "系统" })
|
|
3520
3520
|
] }) }), e[7] = n, e[8] = h, e[9] = S, e[10] = f, e[11] = s, e[12] = i, e[13] = l, e[14] = u, e[15] = C) : C = e[15], C;
|
|
3521
3521
|
}
|
|
3522
|
-
r(
|
|
3523
|
-
function
|
|
3522
|
+
r(Fa, "ViewManageItem");
|
|
3523
|
+
function Zt(t) {
|
|
3524
3524
|
const e = G(30), {
|
|
3525
3525
|
viewType: l,
|
|
3526
3526
|
views: n,
|
|
@@ -3542,16 +3542,16 @@ function Xt(t) {
|
|
|
3542
3542
|
a?.();
|
|
3543
3543
|
}, "t2"), e[4] = a, e[5] = S) : S = e[5];
|
|
3544
3544
|
const C = S;
|
|
3545
|
-
let
|
|
3546
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3545
|
+
let O;
|
|
3546
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ r(() => {
|
|
3547
3547
|
d(null);
|
|
3548
|
-
}, "t3"), e[6] =
|
|
3549
|
-
const F =
|
|
3548
|
+
}, "t3"), e[6] = O) : O = e[6];
|
|
3549
|
+
const F = O;
|
|
3550
3550
|
let A;
|
|
3551
3551
|
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ r((g) => {
|
|
3552
3552
|
d(g);
|
|
3553
3553
|
}, "t4"), e[7] = A) : A = e[7];
|
|
3554
|
-
const
|
|
3554
|
+
const b = A;
|
|
3555
3555
|
let P;
|
|
3556
3556
|
e[8] !== s ? (P = /* @__PURE__ */ r((g) => {
|
|
3557
3557
|
s?.(g, () => {
|
|
@@ -3573,22 +3573,22 @@ function Xt(t) {
|
|
|
3573
3573
|
let x;
|
|
3574
3574
|
if (e[13] !== R || e[14] !== $ || e[15] !== m || e[16] !== n) {
|
|
3575
3575
|
let g;
|
|
3576
|
-
e[18] !== R || e[19] !== $ || e[20] !== m ? (g = /* @__PURE__ */ r((v) => /* @__PURE__ */ c(
|
|
3576
|
+
e[18] !== R || e[19] !== $ || e[20] !== m ? (g = /* @__PURE__ */ r((v) => /* @__PURE__ */ c(Fa, { editing: m(v), onCancel: F, onDelete: R, onEdit: b, onSave: $, view: v }, v.id), "t102"), e[18] = R, e[19] = $, e[20] = m, e[21] = g) : g = e[21], x = n.map(g), e[13] = R, e[14] = $, e[15] = m, e[16] = n, e[17] = x;
|
|
3577
3577
|
} else
|
|
3578
3578
|
x = e[17];
|
|
3579
3579
|
let L;
|
|
3580
3580
|
e[22] !== x ? (L = /* @__PURE__ */ c(Ce, { orientation: "vertical", size: 12, style: H, children: x }), e[22] = x, e[23] = L) : L = e[23];
|
|
3581
3581
|
let W;
|
|
3582
|
-
return e[24] !== C || e[25] !== _ || e[26] !== i || e[27] !== L || e[28] !== M ? (W = /* @__PURE__ */ c(
|
|
3582
|
+
return e[24] !== C || e[25] !== _ || e[26] !== i || e[27] !== L || e[28] !== M ? (W = /* @__PURE__ */ c(ft, { title: M, open: i, onOk: _, okText: "确定", cancelText: "取消", onCancel: C, children: L }), e[24] = C, e[25] = _, e[26] = i, e[27] = L, e[28] = M, e[29] = W) : W = e[29], W;
|
|
3583
3583
|
}
|
|
3584
|
-
r(
|
|
3584
|
+
r(Zt, "ViewManageModal");
|
|
3585
3585
|
const {
|
|
3586
|
-
Header:
|
|
3587
|
-
Sider:
|
|
3588
|
-
Content:
|
|
3589
|
-
} =
|
|
3590
|
-
function
|
|
3591
|
-
const e = G(
|
|
3586
|
+
Header: Pa,
|
|
3587
|
+
Sider: xa,
|
|
3588
|
+
Content: $a
|
|
3589
|
+
} = It;
|
|
3590
|
+
function Va(t) {
|
|
3591
|
+
const e = G(113);
|
|
3592
3592
|
let l;
|
|
3593
3593
|
e[0] !== t ? ({
|
|
3594
3594
|
...l
|
|
@@ -3615,10 +3615,10 @@ function xa(t) {
|
|
|
3615
3615
|
}, e[14] = n, e[15] = i, e[16] = a, e[17] = S) : S = e[17];
|
|
3616
3616
|
const {
|
|
3617
3617
|
activeView: C,
|
|
3618
|
-
showFilter:
|
|
3618
|
+
showFilter: O,
|
|
3619
3619
|
setShowFilter: F,
|
|
3620
3620
|
showViewPanel: A,
|
|
3621
|
-
setShowViewPanel:
|
|
3621
|
+
setShowViewPanel: b,
|
|
3622
3622
|
viewChanged: P,
|
|
3623
3623
|
columns: R,
|
|
3624
3624
|
setColumns: w,
|
|
@@ -3638,103 +3638,105 @@ function xa(t) {
|
|
|
3638
3638
|
views: p,
|
|
3639
3639
|
setViews: U,
|
|
3640
3640
|
reset: y
|
|
3641
|
-
} =
|
|
3641
|
+
} = ka(S);
|
|
3642
3642
|
let B;
|
|
3643
3643
|
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = [], e[18] = B) : B = e[18];
|
|
3644
|
-
const [V, k] = ee(B), K =
|
|
3644
|
+
const [V, k] = ee(B), K = Le(null), q = Le(null);
|
|
3645
3645
|
let te;
|
|
3646
|
-
e[19] !== o || e[20] !== f || e[21] !== U || e[22] !== D || e[23] !== p ? (te = /* @__PURE__ */ r((
|
|
3647
|
-
o?.(
|
|
3648
|
-
U([...p, Ie]), D(Ie), f?.(Ie),
|
|
3646
|
+
e[19] !== o || e[20] !== f || e[21] !== U || e[22] !== D || e[23] !== p ? (te = /* @__PURE__ */ r((ae, Fe) => {
|
|
3647
|
+
o?.(ae, (Ie) => {
|
|
3648
|
+
U([...p, Ie]), D(Ie), f?.(Ie), Fe?.();
|
|
3649
3649
|
});
|
|
3650
3650
|
}, "t3"), e[19] = o, e[20] = f, e[21] = U, e[22] = D, e[23] = p, e[24] = te) : te = e[24];
|
|
3651
3651
|
const X = te;
|
|
3652
3652
|
let j;
|
|
3653
|
-
e[25] !== m || e[26] !== U || e[27] !== D || e[28] !== p ? (j = /* @__PURE__ */ r((
|
|
3654
|
-
m?.(
|
|
3655
|
-
U(p.map((
|
|
3653
|
+
e[25] !== m || e[26] !== U || e[27] !== D || e[28] !== p ? (j = /* @__PURE__ */ r((ae, Fe) => {
|
|
3654
|
+
m?.(ae, (Ie) => {
|
|
3655
|
+
U(p.map(($e) => $e.id === Ie.id ? Ie : $e)), D(Ie), Fe?.();
|
|
3656
3656
|
});
|
|
3657
3657
|
}, "t4"), e[25] = m, e[26] = U, e[27] = D, e[28] = p, e[29] = j) : j = e[29];
|
|
3658
3658
|
const Z = j;
|
|
3659
3659
|
let Y;
|
|
3660
|
-
e[30] !== C.id || e[31] !== s || e[32] !== f || e[33] !== U || e[34] !== D || e[35] !== p ? (Y = /* @__PURE__ */ r((
|
|
3661
|
-
s?.(
|
|
3662
|
-
U(p.filter((
|
|
3660
|
+
e[30] !== C.id || e[31] !== s || e[32] !== f || e[33] !== U || e[34] !== D || e[35] !== p ? (Y = /* @__PURE__ */ r((ae, Fe) => {
|
|
3661
|
+
s?.(ae, (Ie) => {
|
|
3662
|
+
U(p.filter(($e) => $e.id !== Ie.id)), C.id === Ie.id && (D(p[0]), f?.(p[0])), Fe?.();
|
|
3663
3663
|
});
|
|
3664
3664
|
}, "t5"), e[30] = C.id, e[31] = s, e[32] = f, e[33] = U, e[34] = D, e[35] = p, e[36] = Y) : Y = e[36];
|
|
3665
3665
|
const Q = Y;
|
|
3666
|
-
let
|
|
3667
|
-
e[37] !==
|
|
3668
|
-
|
|
3669
|
-
}, "t6"), e[37] =
|
|
3670
|
-
const se =
|
|
3671
|
-
let
|
|
3672
|
-
e[39] !== f || e[40] !== D ? (
|
|
3673
|
-
D(
|
|
3674
|
-
}, "t7"), e[39] = f, e[40] = D, e[41] =
|
|
3675
|
-
const ue =
|
|
3666
|
+
let de;
|
|
3667
|
+
e[37] !== b ? (de = /* @__PURE__ */ r((ae) => {
|
|
3668
|
+
b(ae);
|
|
3669
|
+
}, "t6"), e[37] = b, e[38] = de) : de = e[38];
|
|
3670
|
+
const se = de;
|
|
3671
|
+
let oe;
|
|
3672
|
+
e[39] !== f || e[40] !== D ? (oe = /* @__PURE__ */ r((ae) => {
|
|
3673
|
+
D(ae), f?.(ae);
|
|
3674
|
+
}, "t7"), e[39] = f, e[40] = D, e[41] = oe) : oe = e[41];
|
|
3675
|
+
const ue = oe;
|
|
3676
3676
|
let ne;
|
|
3677
3677
|
e[42] !== d || e[43] !== y ? (ne = /* @__PURE__ */ r(() => {
|
|
3678
|
-
const
|
|
3679
|
-
K.current?.reset(), d?.(
|
|
3678
|
+
const ae = y();
|
|
3679
|
+
K.current?.reset(), d?.(ae.condition, 1, ae.pageSize, ae.sorter);
|
|
3680
3680
|
}, "t8"), e[42] = d, e[43] = y, e[44] = ne) : ne = e[44];
|
|
3681
|
-
const
|
|
3681
|
+
const ie = ne;
|
|
3682
3682
|
let Se;
|
|
3683
|
-
e[45] !== d ? (Se = /* @__PURE__ */ r((
|
|
3684
|
-
d?.(
|
|
3683
|
+
e[45] !== d ? (Se = /* @__PURE__ */ r((ae, Fe, Ie, $e) => {
|
|
3684
|
+
d?.(ae, Fe, Ie, $e), K.current?.clearSelectedRowKeys();
|
|
3685
3685
|
}, "t9"), e[45] = d, e[46] = Se) : Se = e[46];
|
|
3686
|
-
const
|
|
3687
|
-
let
|
|
3688
|
-
e[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3686
|
+
const he = Se;
|
|
3687
|
+
let _e;
|
|
3688
|
+
e[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ r(() => ({
|
|
3689
3689
|
clearSelectedRowKeys: /* @__PURE__ */ r(() => {
|
|
3690
3690
|
K.current?.clearSelectedRowKeys();
|
|
3691
3691
|
}, "clearSelectedRowKeys"),
|
|
3692
3692
|
getCondition: /* @__PURE__ */ r(() => K.current?.getCondition(), "getCondition")
|
|
3693
|
-
}), "t10"), e[47] =
|
|
3694
|
-
let oe;
|
|
3695
|
-
e[48] !== C || e[49] !== a.countUrl || e[50] !== a.name || e[51] !== X || e[52] !== Q || e[53] !== se || e[54] !== ue || e[55] !== Z || e[56] !== u || e[57] !== A || e[58] !== p ? (oe = A && /* @__PURE__ */ c(Fa, { className: Ke.userViews, width: 220, children: /* @__PURE__ */ c(Oa, { name: a.name, views: p, activeView: C, countUrl: a.countUrl, onSwitchView: ue, onShowViewPanelChange: se, onGetRecordCount: u, onCreateView: X, onUpdateView: Z, onDeleteView: Q }) }), e[48] = C, e[49] = a.countUrl, e[50] = a.name, e[51] = X, e[52] = Q, e[53] = se, e[54] = ue, e[55] = Z, e[56] = u, e[57] = A, e[58] = p, e[59] = oe) : oe = e[59];
|
|
3693
|
+
}), "t10"), e[47] = _e) : _e = e[47], be(_, _e);
|
|
3696
3694
|
let ce;
|
|
3697
|
-
e[
|
|
3695
|
+
e[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ce = /* @__PURE__ */ r(() => q.current || document.body, "t11"), e[48] = ce) : ce = e[48];
|
|
3696
|
+
let re;
|
|
3697
|
+
e[49] !== C || e[50] !== a.countUrl || e[51] !== a.name || e[52] !== X || e[53] !== Q || e[54] !== se || e[55] !== ue || e[56] !== Z || e[57] !== u || e[58] !== A || e[59] !== p ? (re = A && /* @__PURE__ */ c(xa, { className: Ge.userViews, width: 220, children: /* @__PURE__ */ c(Ra, { name: a.name, views: p, activeView: C, countUrl: a.countUrl, onSwitchView: ue, onShowViewPanelChange: se, onGetRecordCount: u, onCreateView: X, onUpdateView: Z, onDeleteView: Q }) }), e[49] = C, e[50] = a.countUrl, e[51] = a.name, e[52] = X, e[53] = Q, e[54] = se, e[55] = ue, e[56] = Z, e[57] = u, e[58] = A, e[59] = p, e[60] = re) : re = e[60];
|
|
3698
|
+
let le;
|
|
3699
|
+
e[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (le = {
|
|
3698
3700
|
display: "flex"
|
|
3699
|
-
}, e[
|
|
3700
|
-
let
|
|
3701
|
-
e[
|
|
3702
|
-
const
|
|
3703
|
-
let Ne;
|
|
3704
|
-
e[79] !== $ || e[80] !== C.id || e[81] !== R || e[82] !== T || e[83] !== a.availableFilters || e[84] !== a.fields || e[85] !== me || 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] !== H || e[93] !== L || e[94] !== M || e[95] !== w || e[96] !== E || e[97] !== x || e[98] !== W || e[99] !== I || e[100] !== v || e[101] !== b || e[102] !== N || e[103] !== Te || e[104] !== g ? (Ne = /* @__PURE__ */ c(fa, { ref: K, fields: a.fields, availableFilters: a.availableFilters, dataSource: h.dataSource, enableRowSelection: Te, loading: h.loading, filterMode: "editable", pagination: h.pagination, showFilter: b, viewTableSetting: h.viewTableSetting, actionColumn: h.actionColumn, onClickPrimaryKey: h.onClickPrimaryKey, onSelectedDataChange: k, defaultActiveFilters: $, externalActiveFilters: $, externalUpdateActiveFilters: M, defaultColumns: R, externalColumns: R, externalUpdateColumns: w, defaultPage: H, externalPage: H, externalUpdatePage: x, defaultPageSize: L, externalPageSize: L, externalUpdatePageSize: W, defaultTableSize: g, externalTableSize: g, externalUpdateTableSize: v, defaultCondition: T, externalCondition: T, externalUpdateCondition: E, defaultSorter: N, externalSorter: N, externalUpdateSorter: I, onChange: me }, C.id), e[79] = $, e[80] = C.id, e[81] = R, e[82] = T, e[83] = a.availableFilters, e[84] = a.fields, e[85] = me, 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] = H, e[93] = L, e[94] = M, e[95] = w, e[96] = E, e[97] = x, e[98] = W, e[99] = I, e[100] = v, e[101] = b, e[102] = N, e[103] = Te, e[104] = g, e[105] = Ne) : Ne = e[105];
|
|
3701
|
+
}, e[61] = le) : le = e[61];
|
|
3702
|
+
let me;
|
|
3703
|
+
e[62] !== C || e[63] !== a.name || e[64] !== X || e[65] !== Q || e[66] !== ie || e[67] !== Z || e[68] !== h.batchActions || e[69] !== h.primaryAction || e[70] !== h.secondaryActions || e[71] !== F || e[72] !== b || e[73] !== v || e[74] !== O || e[75] !== A || e[76] !== V || e[77] !== P || e[78] !== p ? (me = /* @__PURE__ */ c(Pa, { className: Ge.topBar, children: /* @__PURE__ */ c(sa, { tableSelectedItems: V, title: a.name, activeView: C, views: p, defaultTableSize: C.tableSize, primaryAction: h.primaryAction, secondaryActions: h.secondaryActions, batchActions: h.batchActions, viewChanged: P, onReset: ie, showViewPanel: A, showFilter: O, onShowFilterChange: F, onShowViewPanelChange: b, onTableSizeChange: v, onCreateView: X, onUpdateView: Z, onDeleteView: Q, fullscreenTarget: q }) }), e[62] = C, e[63] = a.name, e[64] = X, e[65] = Q, e[66] = ie, e[67] = Z, e[68] = h.batchActions, e[69] = h.primaryAction, e[70] = h.secondaryActions, e[71] = F, e[72] = b, e[73] = v, e[74] = O, e[75] = A, e[76] = V, e[77] = P, e[78] = p, e[79] = me) : me = e[79];
|
|
3704
|
+
const Oe = h.enableRowSelection ?? !0;
|
|
3705
3705
|
let ye;
|
|
3706
|
-
e[
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
let Le;
|
|
3711
|
-
return e[109] !== oe || e[110] !== ye ? (Le = /* @__PURE__ */ J(vt, { ref: q, children: [
|
|
3712
|
-
oe,
|
|
3706
|
+
e[80] !== $ || e[81] !== C.id || e[82] !== R || e[83] !== T || e[84] !== a.availableFilters || e[85] !== a.fields || e[86] !== he || e[87] !== h.actionColumn || e[88] !== h.dataSource || e[89] !== h.loading || e[90] !== h.onClickPrimaryKey || e[91] !== h.pagination || e[92] !== h.viewTableSetting || e[93] !== H || e[94] !== L || e[95] !== M || e[96] !== w || e[97] !== E || e[98] !== x || e[99] !== W || e[100] !== I || e[101] !== v || e[102] !== O || e[103] !== N || e[104] !== Oe || e[105] !== g ? (ye = /* @__PURE__ */ c(ma, { ref: K, fields: a.fields, availableFilters: a.availableFilters, dataSource: h.dataSource, enableRowSelection: Oe, loading: h.loading, filterMode: "editable", pagination: h.pagination, showFilter: O, viewTableSetting: h.viewTableSetting, actionColumn: h.actionColumn, onClickPrimaryKey: h.onClickPrimaryKey, onSelectedDataChange: k, defaultActiveFilters: $, externalActiveFilters: $, externalUpdateActiveFilters: M, defaultColumns: R, externalColumns: R, externalUpdateColumns: w, defaultPage: H, externalPage: H, externalUpdatePage: x, defaultPageSize: L, externalPageSize: L, externalUpdatePageSize: W, defaultTableSize: g, externalTableSize: g, externalUpdateTableSize: v, defaultCondition: T, externalCondition: T, externalUpdateCondition: E, defaultSorter: N, externalSorter: N, externalUpdateSorter: I, onChange: he }, C.id), e[80] = $, e[81] = C.id, e[82] = R, e[83] = T, e[84] = a.availableFilters, e[85] = a.fields, e[86] = he, e[87] = h.actionColumn, e[88] = h.dataSource, e[89] = h.loading, e[90] = h.onClickPrimaryKey, e[91] = h.pagination, e[92] = h.viewTableSetting, e[93] = H, e[94] = L, e[95] = M, e[96] = w, e[97] = E, e[98] = x, e[99] = W, e[100] = I, e[101] = v, e[102] = O, e[103] = N, e[104] = Oe, e[105] = g, e[106] = ye) : ye = e[106];
|
|
3707
|
+
let Ne;
|
|
3708
|
+
e[107] !== me || e[108] !== ye ? (Ne = /* @__PURE__ */ c(It, { className: Ge.container, children: /* @__PURE__ */ c($a, { children: /* @__PURE__ */ J(Ce, { orientation: "vertical", style: le, size: "small", children: [
|
|
3709
|
+
me,
|
|
3713
3710
|
ye
|
|
3714
|
-
] }), e[
|
|
3711
|
+
] }) }) }), e[107] = me, e[108] = ye, e[109] = Ne) : Ne = e[109];
|
|
3712
|
+
let fe;
|
|
3713
|
+
return e[110] !== re || e[111] !== Ne ? (fe = /* @__PURE__ */ c(Bn, { getPopupContainer: ce, children: /* @__PURE__ */ J(It, { ref: q, children: [
|
|
3714
|
+
re,
|
|
3715
|
+
Ne
|
|
3716
|
+
] }) }), e[110] = re, e[111] = Ne, e[112] = fe) : fe = e[112], fe;
|
|
3715
3717
|
}
|
|
3716
|
-
r(
|
|
3717
|
-
function
|
|
3718
|
+
r(Va, "Viewer");
|
|
3719
|
+
function ka({
|
|
3718
3720
|
defaultShowFilter: t = !0,
|
|
3719
3721
|
defaultShowViewPanel: e = !0,
|
|
3720
3722
|
...l
|
|
3721
3723
|
}) {
|
|
3722
|
-
const n =
|
|
3724
|
+
const n = Le(l.defaultView), [i, a] = ee(l.views), [o, s] = ee(l.defaultView), [u, d] = ee(t), [f, m] = ee(e), {
|
|
3723
3725
|
columns: h,
|
|
3724
3726
|
setColumns: _,
|
|
3725
3727
|
page: S,
|
|
3726
3728
|
setPage: C,
|
|
3727
|
-
pageSize:
|
|
3729
|
+
pageSize: O,
|
|
3728
3730
|
setPageSize: F,
|
|
3729
3731
|
activeFilters: A,
|
|
3730
|
-
setActiveFilters:
|
|
3732
|
+
setActiveFilters: b,
|
|
3731
3733
|
tableSize: P,
|
|
3732
3734
|
setTableSize: R,
|
|
3733
3735
|
condition: w,
|
|
3734
3736
|
setCondition: $,
|
|
3735
3737
|
sorter: M,
|
|
3736
3738
|
setSorter: H
|
|
3737
|
-
} =
|
|
3739
|
+
} = An({
|
|
3738
3740
|
defaultColumns: o.columns,
|
|
3739
3741
|
defaultPageSize: o.pageSize,
|
|
3740
3742
|
defaultActiveFilters: o.filters,
|
|
@@ -3743,7 +3745,7 @@ function $a({
|
|
|
3743
3745
|
defaultSorter: o.sorter
|
|
3744
3746
|
}), [x, L] = ee(!1);
|
|
3745
3747
|
return Ae(() => {
|
|
3746
|
-
L(!
|
|
3748
|
+
L(!bt(o, n.current));
|
|
3747
3749
|
}, [o]), {
|
|
3748
3750
|
activeView: o,
|
|
3749
3751
|
showFilter: u,
|
|
@@ -3763,7 +3765,7 @@ function $a({
|
|
|
3763
3765
|
}, "setColumnsFn"),
|
|
3764
3766
|
page: S,
|
|
3765
3767
|
setPage: C,
|
|
3766
|
-
pageSize:
|
|
3768
|
+
pageSize: O,
|
|
3767
3769
|
setPageSize: /* @__PURE__ */ r((y) => {
|
|
3768
3770
|
F(y), s({
|
|
3769
3771
|
...o,
|
|
@@ -3772,7 +3774,7 @@ function $a({
|
|
|
3772
3774
|
}, "setPageSizeFn"),
|
|
3773
3775
|
activeFilters: A,
|
|
3774
3776
|
setActiveFilters: /* @__PURE__ */ r((y) => {
|
|
3775
|
-
|
|
3777
|
+
b(y), s({
|
|
3776
3778
|
...o,
|
|
3777
3779
|
filters: y
|
|
3778
3780
|
});
|
|
@@ -3799,7 +3801,7 @@ function $a({
|
|
|
3799
3801
|
operator: null
|
|
3800
3802
|
};
|
|
3801
3803
|
});
|
|
3802
|
-
|
|
3804
|
+
b(V), s({
|
|
3803
3805
|
...o,
|
|
3804
3806
|
condition: y,
|
|
3805
3807
|
filters: V
|
|
@@ -3827,126 +3829,126 @@ function $a({
|
|
|
3827
3829
|
views: i,
|
|
3828
3830
|
setViews: a,
|
|
3829
3831
|
onSwitchView: /* @__PURE__ */ r((y) => {
|
|
3830
|
-
n.current = y, s(y), C(1), F(y.pageSize), _(y.columns), $(y.condition ||
|
|
3832
|
+
n.current = y, s(y), C(1), F(y.pageSize), _(y.columns), $(y.condition || qe()), b(y.filters), R(y.tableSize), H(y.sorter || []);
|
|
3831
3833
|
}, "onSwitchViewFn"),
|
|
3832
|
-
reset: /* @__PURE__ */ r(() => (s(n.current), C(1), F(n.current.pageSize), _(n.current.columns),
|
|
3834
|
+
reset: /* @__PURE__ */ r(() => (s(n.current), C(1), F(n.current.pageSize), _(n.current.columns), b(n.current.filters), $(n.current.condition || qe()), R(n.current.tableSize), H(n.current.sorter || []), n.current), "resetFn")
|
|
3833
3835
|
};
|
|
3834
3836
|
}
|
|
3835
|
-
r(
|
|
3837
|
+
r(ka, "useViewerState");
|
|
3836
3838
|
export {
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3839
|
+
Yi as ACTIONS_CELL_TYPE,
|
|
3840
|
+
Bi as ACTION_CELL_TYPE,
|
|
3841
|
+
qi as AVATAR_CELL_TYPE,
|
|
3842
|
+
lt as ActionCell,
|
|
3843
|
+
Ln as ActionsCell,
|
|
3844
|
+
ze as AssemblyFilter,
|
|
3845
|
+
jr as AutoRefreshBarItem,
|
|
3846
|
+
Zl as AvailableFilterSelect,
|
|
3847
|
+
ei as AvailableFilterSelectModal,
|
|
3848
|
+
Qi as AvatarCell,
|
|
3849
|
+
vi as BOOL_FILTER,
|
|
3850
|
+
xe as BarItem,
|
|
3851
|
+
Sn as BoolFilter,
|
|
3852
|
+
nr as CALENDAR_CELL_TYPE,
|
|
3853
|
+
Nr as CURRENCY_CELL_TYPE,
|
|
3854
|
+
ir as CalendarTimeCell,
|
|
3855
|
+
Zr as ColumnHeightBarItem,
|
|
3856
|
+
pr as CurrencyCell,
|
|
3857
|
+
tr as DATETIME_CELL_TYPE,
|
|
3858
|
+
lr as DEFAULT_CALENDAR_FORMATS,
|
|
3859
|
+
pn as DEFAULT_CONDITION,
|
|
3860
|
+
Pe as DEFAULT_CURRENCY_FORMAT_OPTIONS,
|
|
3861
|
+
rt as DEFAULT_DATE_TIME_FORMAT,
|
|
3862
|
+
bn as DateTimeCell,
|
|
3863
|
+
gi as EditableFilterPanel,
|
|
3864
|
+
Qe as ExtendedOperator,
|
|
3865
|
+
vn as FallbackFilter,
|
|
3866
|
+
Za as FetcherViewer,
|
|
3867
|
+
ea as FilterBarItem,
|
|
3868
|
+
Nn as FilterPanel,
|
|
3869
|
+
Rl as Fullscreen,
|
|
3870
|
+
ta as FullscreenBarItem,
|
|
3871
|
+
fi as ID_FILTER,
|
|
3872
|
+
ur as IMAGE_CELL_TYPE,
|
|
3873
|
+
dr as IMAGE_GROUP_CELL_TYPE,
|
|
3874
|
+
_n as IdFilter,
|
|
3875
|
+
di as IdOnOperatorChangeValueConverter,
|
|
3876
|
+
fr as ImageCell,
|
|
3877
|
+
mr as ImageGroupCell,
|
|
3878
|
+
_r as LINK_CELL_TYPE,
|
|
3879
|
+
Sr as LinkCell,
|
|
3880
|
+
mi as NUMBER_FILTER,
|
|
3881
|
+
Tn as NumberFilter,
|
|
3882
|
+
Ei as NumberOnOperatorChangeValueConverter,
|
|
3883
|
+
Nl as NumberRange,
|
|
3884
|
+
vl as NumberTagValueItemSerializer,
|
|
3885
|
+
jl as OPERATOR_zh_CN,
|
|
3886
|
+
na as Point,
|
|
3887
|
+
la as RefreshDataBarItem,
|
|
3888
|
+
Ol as RemoteSelect,
|
|
3889
|
+
xi as RemovableTypedFilter,
|
|
3890
|
+
Ci as SELECT_FILTER,
|
|
3891
|
+
wn as SaveViewModal,
|
|
3892
|
+
En as SelectFilter,
|
|
3893
|
+
yi as SelectOnOperatorChangeValueConverter,
|
|
3894
|
+
ia as ShareLinkBarItem,
|
|
3895
|
+
yl as StringTagValueItemSerializer,
|
|
3896
|
+
sr as TAGS_CELL_TYPE,
|
|
3897
|
+
or as TAG_CELL_TYPE,
|
|
3898
|
+
ar as TEXT_CELL_TYPE,
|
|
3899
|
+
ci as TEXT_FILTER,
|
|
3900
|
+
Kt as TableFieldItem,
|
|
3901
|
+
Pr as TableSettingPanel,
|
|
3902
|
+
Rn as TagCell,
|
|
3903
|
+
ht as TagInput,
|
|
3904
|
+
cr as TagsCell,
|
|
3903
3905
|
On as TextCell,
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3906
|
+
hn as TextFilter,
|
|
3907
|
+
ui as TextOnOperatorChangeValueConverter,
|
|
3908
|
+
sa as TopBar,
|
|
3909
|
+
ni as TrueValidateValue,
|
|
3910
|
+
st as TypedComponentRegistry,
|
|
3911
|
+
Lt as TypedFilter,
|
|
3912
|
+
Dt as VIEWER_BOUNDED_CONTEXT_ALIAS,
|
|
3913
|
+
ma as View,
|
|
3914
|
+
We as ViewAggregatedFields,
|
|
3913
3915
|
De as ViewCommandClient,
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3916
|
+
Fl as ViewCommandEndpointPaths,
|
|
3917
|
+
xl as ViewDomainEventTypeMapTitle,
|
|
3918
|
+
Oa as ViewItem,
|
|
3919
|
+
Xt as ViewItemGroup,
|
|
3920
|
+
Fa as ViewManageItem,
|
|
3921
|
+
Zt as ViewManageModal,
|
|
3922
|
+
Ra as ViewPanel,
|
|
3923
|
+
kt as ViewStreamCommandClient,
|
|
3924
|
+
Yr as ViewTable,
|
|
3925
|
+
Va as Viewer,
|
|
3926
|
+
Ml as ViewerDefinitionAggregatedFields,
|
|
3927
|
+
Vl as ViewerDefinitionDomainEventTypeMapTitle,
|
|
3928
|
+
br as cellRegistry,
|
|
3929
|
+
Ja as currentTimeZone,
|
|
3930
|
+
bt as deepEqual,
|
|
3931
|
+
Ri as filterRegistry,
|
|
3932
|
+
yr as formatCurrency,
|
|
3933
|
+
Yt as isActionCellProps,
|
|
3934
|
+
Gi as isNullOrUndefined,
|
|
3935
|
+
ti as isValidBetweenValue,
|
|
3936
|
+
ji as isValidImageSrc,
|
|
3937
|
+
gt as isValidValue,
|
|
3938
|
+
zr as mapToTableRecord,
|
|
3939
|
+
Ki as parseDayjs,
|
|
3940
|
+
Or as typedCellRender,
|
|
3941
|
+
An as useActiveViewState,
|
|
3942
|
+
zl as useFetchData,
|
|
3943
|
+
oi as useFilterState,
|
|
3942
3944
|
we as useLocale,
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3945
|
+
Ft as useRefreshDataEventBus,
|
|
3946
|
+
Ca as useViewState,
|
|
3947
|
+
Kr as useViewTableState,
|
|
3948
|
+
Ul as useViewerDefinition,
|
|
3949
|
+
ka as useViewerState,
|
|
3950
|
+
Hl as useViewerViews,
|
|
3951
|
+
Xa as viewQueryClientFactory,
|
|
3952
|
+
kl as viewerDefinitionQueryClientFactory
|
|
3951
3953
|
};
|
|
3952
3954
|
//# sourceMappingURL=index.es.js.map
|