@ahoo-wang/fetcher-viewer 3.10.2 → 3.10.5
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/components/RemoteSelect.d.ts.map +1 -1
- package/dist/index.es.js +873 -857
- 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/index.d.ts.map +1 -1
- package/package.json +9 -9
package/dist/index.es.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
var Cn = Object.defineProperty;
|
|
2
2
|
var a = (t, e) => Cn(t, "name", { value: e, configurable: !0 });
|
|
3
|
-
import { jsx as u, jsxs as
|
|
3
|
+
import { jsx as u, jsxs as Y, Fragment as ne } from "react/jsx-runtime";
|
|
4
4
|
import { c as U } from "react/compiler-runtime";
|
|
5
|
-
import { Select as
|
|
6
|
-
import Gt, { useState as q, useImperativeHandle as
|
|
7
|
-
import { useDebouncedExecutePromise as
|
|
8
|
-
import { FullscreenOutlined as Xt, FullscreenExitOutlined as Jt, MinusOutlined as
|
|
9
|
-
import { EMPTY_VALUE_OPERATORS as
|
|
10
|
-
import { BroadcastTypedEventBus as
|
|
11
|
-
const
|
|
5
|
+
import { Select as it, InputNumber as tt, Space as ae, Input as xe, Flex as ce, Spin as wn, Empty as nt, Button as le, Typography as ke, Checkbox as jt, Modal as Me, DatePicker as vt, Alert as An, Col as $t, Row as Dn, Dropdown as De, Avatar as _t, Tag as Dt, Image as bt, Badge as Nn, message as In, Divider as Ve, Popconfirm as Vn, Collapse as $n, Form as gt, Radio as On, Layout as pt, Pagination as Fn, Table as Rn, Popover as Pn } from "antd";
|
|
6
|
+
import Gt, { useState as q, useImperativeHandle as rt, useEffect as me, useRef as Le, createElement as xn, createContext as Kt, useContext as Qt, useReducer as qt } from "react";
|
|
7
|
+
import { useDebouncedExecutePromise as kn, useFullscreen as Zt, useRefs as Mn, useRequestId as Ln, useDebouncedFetcherQuery as Un } from "@ahoo-wang/fetcher-react";
|
|
8
|
+
import { FullscreenOutlined as Xt, FullscreenExitOutlined as Jt, MinusOutlined as Hn, ClearOutlined as Yn, SearchOutlined as zn, DownOutlined as Oe, DragOutlined as en, FilterOutlined as Bn, ReloadOutlined as Wn, ColumnHeightOutlined as jn, LinkOutlined as Gn, MenuUnfoldOutlined as Kn, EditOutlined as Qn, DeleteOutlined as qn, SettingOutlined as tn, PlusOutlined as Zn, MenuFoldOutlined as Xn, ExclamationCircleOutlined as Jn } from "@ant-design/icons";
|
|
9
|
+
import { EMPTY_VALUE_OPERATORS as el, Operator as P, and as tl } from "@ahoo-wang/fetcher-wow";
|
|
10
|
+
import { BroadcastTypedEventBus as nl, SerialTypedEventBus as ll } from "@ahoo-wang/fetcher-eventbus";
|
|
11
|
+
const il = {
|
|
12
12
|
serialize(t) {
|
|
13
13
|
return t;
|
|
14
14
|
},
|
|
15
15
|
deserialize(t) {
|
|
16
16
|
return t;
|
|
17
17
|
}
|
|
18
|
-
},
|
|
18
|
+
}, rl = {
|
|
19
19
|
serialize(t) {
|
|
20
20
|
return t.map((e) => e.toString());
|
|
21
21
|
},
|
|
22
22
|
deserialize(t) {
|
|
23
23
|
return t.map((e) => parseFloat(e));
|
|
24
24
|
}
|
|
25
|
-
},
|
|
26
|
-
function
|
|
25
|
+
}, al = [",", ",", ";", ";", " "];
|
|
26
|
+
function at(t) {
|
|
27
27
|
const e = U(22);
|
|
28
28
|
let n, l, i, r, s, c;
|
|
29
29
|
e[0] !== t ? ({
|
|
@@ -34,13 +34,13 @@ function rt(t) {
|
|
|
34
34
|
onChange: n,
|
|
35
35
|
...l
|
|
36
36
|
} = t, e[0] = t, e[1] = n, e[2] = l, e[3] = i, e[4] = r, e[5] = s, e[6] = c) : (n = e[1], l = e[2], i = e[3], r = e[4], s = e[5], c = e[6]);
|
|
37
|
-
const o = i === void 0 ?
|
|
37
|
+
const o = i === void 0 ? al : i, f = r === void 0 ? !0 : r, m = s === void 0 ? il : s;
|
|
38
38
|
let d;
|
|
39
39
|
e[7] !== n || e[8] !== m ? (d = /* @__PURE__ */ a((S) => {
|
|
40
40
|
if (!n)
|
|
41
41
|
return;
|
|
42
|
-
const
|
|
43
|
-
n(
|
|
42
|
+
const I = m.deserialize(S);
|
|
43
|
+
n(I);
|
|
44
44
|
}, "t3"), e[7] = n, e[8] = m, e[9] = d) : d = e[9];
|
|
45
45
|
const h = d;
|
|
46
46
|
let y = null;
|
|
@@ -53,18 +53,18 @@ function rt(t) {
|
|
|
53
53
|
e[13] !== m || e[14] !== c ? (S = m.serialize([c]), e[13] = m, e[14] = c, e[15] = S) : S = e[15], y = S;
|
|
54
54
|
}
|
|
55
55
|
let v;
|
|
56
|
-
return e[16] !== f || e[17] !== h || e[18] !== l || e[19] !== y || e[20] !== o ? (v = /* @__PURE__ */ u(
|
|
56
|
+
return e[16] !== f || e[17] !== h || e[18] !== l || e[19] !== y || e[20] !== o ? (v = /* @__PURE__ */ u(it, { ...l, mode: "tags", open: !1, suffixIcon: null, allowClear: f, tokenSeparators: o, value: y, onChange: h }), e[16] = f, e[17] = h, e[18] = l, e[19] = y, e[20] = o, e[21] = v) : v = e[21], v;
|
|
57
57
|
}
|
|
58
|
-
a(
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
function
|
|
58
|
+
a(at, "TagInput");
|
|
59
|
+
at.displayName = "TagInput";
|
|
60
|
+
const Ot = /* @__PURE__ */ a((t) => Array.isArray(t) ? t : [t, void 0], "convertToRangeValue"), Et = ["最小值", "最大值"];
|
|
61
|
+
function sl(t) {
|
|
62
62
|
const e = U(35), n = t.value !== void 0;
|
|
63
63
|
let l;
|
|
64
|
-
e[0] !== t.defaultValue ? (l =
|
|
64
|
+
e[0] !== t.defaultValue ? (l = Ot(t.defaultValue), e[0] = t.defaultValue, e[1] = l) : l = e[1];
|
|
65
65
|
const [i, r] = q(l);
|
|
66
66
|
let s;
|
|
67
|
-
e[2] !== i || e[3] !== n || e[4] !== t.value ? (s = n ?
|
|
67
|
+
e[2] !== i || e[3] !== n || e[4] !== t.value ? (s = n ? Ot(t.value) : i, e[2] = i, e[3] = n, e[4] = t.value, e[5] = s) : s = e[5];
|
|
68
68
|
const c = s, [o, f] = c;
|
|
69
69
|
let m;
|
|
70
70
|
e[6] !== n || e[7] !== t ? (m = /* @__PURE__ */ a((T) => {
|
|
@@ -80,36 +80,36 @@ function al(t) {
|
|
|
80
80
|
e[12] !== d || e[13] !== o ? (v = /* @__PURE__ */ a((T) => {
|
|
81
81
|
d([o, T ?? void 0]);
|
|
82
82
|
}, "t4"), e[12] = d, e[13] = o, e[14] = v) : v = e[14];
|
|
83
|
-
const S = v,
|
|
83
|
+
const S = v, I = f !== void 0 ? f : t.max, $ = o !== void 0 ? o : t.min;
|
|
84
84
|
let k;
|
|
85
|
-
e[15] !== t.placeholder ? (k = t.placeholder ? [t.placeholder[0] ||
|
|
85
|
+
e[15] !== t.placeholder ? (k = t.placeholder ? [t.placeholder[0] || Et[0], t.placeholder[1] || Et[1]] : Et, e[15] = t.placeholder, e[16] = k) : k = e[16];
|
|
86
86
|
const _ = k;
|
|
87
87
|
let w;
|
|
88
|
-
e[17] !== y || e[18] !== _[0] || e[19] !== t.min || e[20] !== t.precision || e[21] !== o || e[22] !==
|
|
88
|
+
e[17] !== y || e[18] !== _[0] || e[19] !== t.min || e[20] !== t.precision || e[21] !== o || e[22] !== I ? (w = /* @__PURE__ */ u(tt, { value: o, min: t.min, max: I, precision: t.precision, placeholder: _[0], onChange: y }), e[17] = y, e[18] = _[0], e[19] = t.min, e[20] = t.precision, e[21] = o, e[22] = I, e[23] = w) : w = e[23];
|
|
89
89
|
let D;
|
|
90
|
-
e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ u(
|
|
90
|
+
e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ u(xe, { style: {
|
|
91
91
|
width: 30,
|
|
92
92
|
borderInlineStart: 0,
|
|
93
93
|
borderInlineEnd: 0,
|
|
94
94
|
pointerEvents: "none"
|
|
95
95
|
}, placeholder: "~", disabled: !0 }), e[24] = D) : D = e[24];
|
|
96
|
-
let
|
|
97
|
-
e[25] !== f || e[26] !==
|
|
98
|
-
let
|
|
99
|
-
return e[32] !== w || e[33] !==
|
|
96
|
+
let V;
|
|
97
|
+
e[25] !== f || e[26] !== $ || e[27] !== S || e[28] !== _[1] || e[29] !== t.max || e[30] !== t.precision ? (V = /* @__PURE__ */ u(tt, { value: f, min: $, max: t.max, precision: t.precision, placeholder: _[1], onChange: S }), e[25] = f, e[26] = $, e[27] = S, e[28] = _[1], e[29] = t.max, e[30] = t.precision, e[31] = V) : V = e[31];
|
|
98
|
+
let x;
|
|
99
|
+
return e[32] !== w || e[33] !== V ? (x = /* @__PURE__ */ Y(ae.Compact, { block: !0, children: [
|
|
100
100
|
w,
|
|
101
101
|
D,
|
|
102
|
-
|
|
103
|
-
] }), e[32] = w, e[33] =
|
|
102
|
+
V
|
|
103
|
+
] }), e[32] = w, e[33] = V, e[34] = x) : x = e[34], x;
|
|
104
104
|
}
|
|
105
|
-
a(
|
|
106
|
-
const
|
|
105
|
+
a(sl, "NumberRange");
|
|
106
|
+
const ol = {
|
|
107
107
|
delay: 300,
|
|
108
108
|
leading: !1,
|
|
109
109
|
trailing: !0
|
|
110
110
|
};
|
|
111
|
-
function
|
|
112
|
-
const e = U(
|
|
111
|
+
function cl(t) {
|
|
112
|
+
const e = U(25);
|
|
113
113
|
let n, l, i, r;
|
|
114
114
|
e[0] !== t ? ({
|
|
115
115
|
debounce: r,
|
|
@@ -117,7 +117,7 @@ function ol(t) {
|
|
|
117
117
|
options: n,
|
|
118
118
|
...i
|
|
119
119
|
} = t, e[0] = t, e[1] = n, e[2] = l, e[3] = i, e[4] = r) : (n = e[1], l = e[2], i = e[3], r = e[4]);
|
|
120
|
-
const s = r === void 0 ?
|
|
120
|
+
const s = r === void 0 ? ol : r;
|
|
121
121
|
let c;
|
|
122
122
|
e[5] !== s ? (c = {
|
|
123
123
|
debounce: s
|
|
@@ -126,18 +126,34 @@ function ol(t) {
|
|
|
126
126
|
loading: o,
|
|
127
127
|
result: f,
|
|
128
128
|
run: m
|
|
129
|
-
} =
|
|
129
|
+
} = kn(c);
|
|
130
130
|
let d;
|
|
131
|
-
e[7] !== f || e[8] !== m || e[9] !== l ? (d = /* @__PURE__ */ a((
|
|
132
|
-
|
|
131
|
+
e[7] !== f || e[8] !== m || e[9] !== l ? (d = /* @__PURE__ */ a(($) => {
|
|
132
|
+
$.trim() === "" && f || m(() => l($));
|
|
133
133
|
}, "t2"), e[7] = f, e[8] = m, e[9] = l, e[10] = d) : d = e[10];
|
|
134
|
-
const h = d
|
|
134
|
+
const h = d;
|
|
135
|
+
let y;
|
|
136
|
+
e[11] !== h ? (y = {
|
|
137
|
+
filterOption: !1,
|
|
138
|
+
onSearch: h
|
|
139
|
+
}, e[11] = h, e[12] = y) : y = e[12];
|
|
135
140
|
let v;
|
|
136
|
-
|
|
141
|
+
e[13] !== o ? (v = o ? /* @__PURE__ */ Y(ce, { align: "center", gap: 4, children: [
|
|
142
|
+
/* @__PURE__ */ u(wn, { size: "small", styles: {
|
|
143
|
+
indicator: {
|
|
144
|
+
color: "rgba(0, 0, 0, 0.25)"
|
|
145
|
+
}
|
|
146
|
+
} }),
|
|
147
|
+
/* @__PURE__ */ u("span", { children: "数据加载中..." })
|
|
148
|
+
] }) : /* @__PURE__ */ u(nt, { image: nt.PRESENTED_IMAGE_SIMPLE }), e[13] = o, e[14] = v) : v = e[14];
|
|
149
|
+
let S;
|
|
150
|
+
e[15] !== o || e[16] !== n || e[17] !== f ? (S = o ? [] : f ?? n, e[15] = o, e[16] = n, e[17] = f, e[18] = S) : S = e[18];
|
|
151
|
+
let I;
|
|
152
|
+
return e[19] !== o || e[20] !== i || e[21] !== y || e[22] !== v || e[23] !== S ? (I = /* @__PURE__ */ u(it, { showSearch: y, loading: o, notFoundContent: v, options: S, ...i }), e[19] = o, e[20] = i, e[21] = y, e[22] = v, e[23] = S, e[24] = I) : I = e[24], I;
|
|
137
153
|
}
|
|
138
|
-
a(
|
|
139
|
-
|
|
140
|
-
function
|
|
154
|
+
a(cl, "RemoteSelect");
|
|
155
|
+
cl.displayName = "RemoteSelect";
|
|
156
|
+
function ul(t) {
|
|
141
157
|
const {
|
|
142
158
|
target: e,
|
|
143
159
|
onChange: n,
|
|
@@ -153,9 +169,9 @@ function cl(t) {
|
|
|
153
169
|
});
|
|
154
170
|
return /* @__PURE__ */ u(le, { ...r, icon: s ? i : l, onClick: c });
|
|
155
171
|
}
|
|
156
|
-
a(
|
|
157
|
-
|
|
158
|
-
const
|
|
172
|
+
a(ul, "Fullscreen");
|
|
173
|
+
ul.displayName = "FullScreen";
|
|
174
|
+
const fl = {
|
|
159
175
|
AND: "与",
|
|
160
176
|
OR: "或",
|
|
161
177
|
NOR: "非或",
|
|
@@ -201,25 +217,25 @@ const ul = {
|
|
|
201
217
|
UNDEFINED: "未设置"
|
|
202
218
|
};
|
|
203
219
|
var Re = /* @__PURE__ */ ((t) => (t.UNDEFINED = "UNDEFINED", t))(Re || {});
|
|
204
|
-
const
|
|
205
|
-
function
|
|
220
|
+
const dl = [];
|
|
221
|
+
function ml(t) {
|
|
206
222
|
const e = U(22), {
|
|
207
223
|
filters: n,
|
|
208
224
|
activeFilters: l,
|
|
209
225
|
ref: i
|
|
210
|
-
} = t, r = l === void 0 ?
|
|
226
|
+
} = t, r = l === void 0 ? dl : l;
|
|
211
227
|
let s;
|
|
212
|
-
e[0] !== r ? (s = r?.map(
|
|
228
|
+
e[0] !== r ? (s = r?.map(hl).sort(), e[0] = r, e[1] = s) : s = e[1];
|
|
213
229
|
const c = s, [o, f] = q(c);
|
|
214
230
|
let m;
|
|
215
231
|
e[2] !== r || e[3] !== t.filters || e[4] !== o ? (m = /* @__PURE__ */ a(() => ({
|
|
216
232
|
getValue() {
|
|
217
|
-
return t.filters.flatMap((
|
|
233
|
+
return t.filters.flatMap(($) => $.filters.filter((k) => o.includes(k.field.name) && !r.some((_) => _.field.name === k.field.name)));
|
|
218
234
|
}
|
|
219
|
-
}), "t2"), e[2] = r, e[3] = t.filters, e[4] = o, e[5] = m) : m = e[5],
|
|
235
|
+
}), "t2"), e[2] = r, e[3] = t.filters, e[4] = o, e[5] = m) : m = e[5], rt(i, m);
|
|
220
236
|
let d;
|
|
221
|
-
e[6] !== o ? (d = /* @__PURE__ */ a((
|
|
222
|
-
f(k ? [...o,
|
|
237
|
+
e[6] !== o ? (d = /* @__PURE__ */ a(($, k) => {
|
|
238
|
+
f(k ? [...o, $.field.name] : o.filter((_) => _ !== $.field.name));
|
|
223
239
|
}, "t3"), e[6] = o, e[7] = d) : d = e[7];
|
|
224
240
|
const h = d;
|
|
225
241
|
let y, v;
|
|
@@ -228,24 +244,24 @@ function dl(t) {
|
|
|
228
244
|
}, "t4"), v = [c], e[8] = c, e[9] = y, e[10] = v) : (y = e[9], v = e[10]), me(y, v);
|
|
229
245
|
let S;
|
|
230
246
|
if (e[11] !== r || e[12] !== n || e[13] !== h || e[14] !== o) {
|
|
231
|
-
let
|
|
232
|
-
e[16] !== r || e[17] !== h || e[18] !== o ? (
|
|
247
|
+
let $;
|
|
248
|
+
e[16] !== r || e[17] !== h || e[18] !== o ? ($ = /* @__PURE__ */ a((k) => /* @__PURE__ */ Y("div", { children: [
|
|
233
249
|
/* @__PURE__ */ u(ke.Title, { level: 5, children: k.label }),
|
|
234
|
-
/* @__PURE__ */ u(ce, { gap: "middle", wrap: !0, children: k.filters.map((_) => /* @__PURE__ */ u(
|
|
250
|
+
/* @__PURE__ */ u(ce, { gap: "middle", wrap: !0, children: k.filters.map((_) => /* @__PURE__ */ u(jt, { checked: o.includes(_.field.name), onChange: /* @__PURE__ */ a((w) => {
|
|
235
251
|
h(_, w.target.checked);
|
|
236
252
|
}, "onChange"), disabled: r.some((w) => w.field.name === _.field.name), children: _.field.label }, _.field.name)) })
|
|
237
|
-
] }, k.label), "t72"), e[16] = r, e[17] = h, e[18] = o, e[19] =
|
|
253
|
+
] }, k.label), "t72"), e[16] = r, e[17] = h, e[18] = o, e[19] = $) : $ = e[19], S = n.map($), e[11] = r, e[12] = n, e[13] = h, e[14] = o, e[15] = S;
|
|
238
254
|
} else
|
|
239
255
|
S = e[15];
|
|
240
|
-
let
|
|
241
|
-
return e[20] !== S ? (
|
|
256
|
+
let I;
|
|
257
|
+
return e[20] !== S ? (I = /* @__PURE__ */ u(ne, { children: S }), e[20] = S, e[21] = I) : I = e[21], I;
|
|
242
258
|
}
|
|
243
|
-
a(
|
|
244
|
-
function
|
|
259
|
+
a(ml, "AvailableFilterSelect");
|
|
260
|
+
function hl(t) {
|
|
245
261
|
return t.field.name;
|
|
246
262
|
}
|
|
247
|
-
a(
|
|
248
|
-
function
|
|
263
|
+
a(hl, "_temp$c");
|
|
264
|
+
function yl(t) {
|
|
249
265
|
const e = U(8), n = Le(null);
|
|
250
266
|
let l;
|
|
251
267
|
e[0] !== t ? (l = /* @__PURE__ */ a(() => {
|
|
@@ -253,35 +269,35 @@ function hl(t) {
|
|
|
253
269
|
}, "t0"), e[0] = t, e[1] = l) : l = e[1];
|
|
254
270
|
const i = l;
|
|
255
271
|
let r;
|
|
256
|
-
e[2] !== t.availableFilters ? (r = /* @__PURE__ */ u(
|
|
272
|
+
e[2] !== t.availableFilters ? (r = /* @__PURE__ */ u(ml, { ...t.availableFilters, ref: n }), e[2] = t.availableFilters, e[3] = r) : r = e[3];
|
|
257
273
|
let s;
|
|
258
274
|
return e[4] !== i || e[5] !== t || e[6] !== r ? (s = /* @__PURE__ */ u(Me, { ...t, onOk: i, children: r }), e[4] = i, e[5] = t, e[6] = r, e[7] = s) : s = e[7], s;
|
|
259
275
|
}
|
|
260
|
-
a(
|
|
261
|
-
function
|
|
262
|
-
return !Array.isArray(t) || t.length !== 2 ? !1 :
|
|
276
|
+
a(yl, "AvailableFilterSelectModal");
|
|
277
|
+
function vl(t) {
|
|
278
|
+
return !Array.isArray(t) || t.length !== 2 ? !1 : Ft(t[0]) && Ft(t[1]);
|
|
263
279
|
}
|
|
264
|
-
a(
|
|
265
|
-
function
|
|
280
|
+
a(vl, "isValidBetweenValue");
|
|
281
|
+
function Ft(t) {
|
|
266
282
|
return t != null;
|
|
267
283
|
}
|
|
268
|
-
a(
|
|
269
|
-
function
|
|
284
|
+
a(Ft, "isValidValue");
|
|
285
|
+
function oa() {
|
|
270
286
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
271
287
|
}
|
|
272
|
-
a(
|
|
273
|
-
const
|
|
274
|
-
function
|
|
275
|
-
const e = U(30), [n, l] = q(t.operator), [i, r] = q(t.value), s = t.validate ??
|
|
288
|
+
a(oa, "currentTimeZone");
|
|
289
|
+
const _l = /* @__PURE__ */ a(() => !0, "TrueValidateValue"), gl = /* @__PURE__ */ a((t, e) => t ? el.has(t) ? !0 : e == null || e === "" || Array.isArray(e) && e.length === 0 ? !1 : t === P.BETWEEN ? vl(e) : !0 : !1, "defaultValidateValue"), El = /* @__PURE__ */ a((t, e) => e, "defaultConditionValueParser"), bl = /* @__PURE__ */ a((t, e, n) => n, "defaultValueConverter"), pl = /* @__PURE__ */ a((t) => t, "defaultFilterValueConverter");
|
|
290
|
+
function Sl(t) {
|
|
291
|
+
const e = U(30), [n, l] = q(t.operator), [i, r] = q(t.value), s = t.validate ?? gl, c = t.conditionValueParser ?? El, o = t.onOperatorChangeValueConverter ?? bl, f = t.filterValueConverter ?? pl;
|
|
276
292
|
let m;
|
|
277
293
|
e[0] !== f || e[1] !== t.conditionOptions || e[2] !== t.field || e[3] !== s || e[4] !== c ? (m = /* @__PURE__ */ a((w, D) => {
|
|
278
294
|
if (w === Re.UNDEFINED || !s(w, D))
|
|
279
295
|
return;
|
|
280
|
-
const
|
|
296
|
+
const V = c(w, D), T = {
|
|
281
297
|
condition: {
|
|
282
298
|
field: t.field,
|
|
283
299
|
operator: w,
|
|
284
|
-
value:
|
|
300
|
+
value: V,
|
|
285
301
|
options: t.conditionOptions
|
|
286
302
|
}
|
|
287
303
|
};
|
|
@@ -292,8 +308,8 @@ function pl(t) {
|
|
|
292
308
|
e[6] !== n || e[7] !== t || e[8] !== d || e[9] !== i || e[10] !== o ? (h = /* @__PURE__ */ a((w) => {
|
|
293
309
|
const D = o(n, w, i);
|
|
294
310
|
l(w), r(D);
|
|
295
|
-
const
|
|
296
|
-
t.onChange?.(
|
|
311
|
+
const V = d(w, D);
|
|
312
|
+
t.onChange?.(V);
|
|
297
313
|
}, "t1"), e[6] = n, e[7] = t, e[8] = d, e[9] = i, e[10] = o, e[11] = h) : h = e[11];
|
|
298
314
|
const y = h;
|
|
299
315
|
let v;
|
|
@@ -303,30 +319,30 @@ function pl(t) {
|
|
|
303
319
|
t.onChange?.(D);
|
|
304
320
|
}, "t2"), e[12] = n, e[13] = t, e[14] = d, e[15] = v) : v = e[15];
|
|
305
321
|
const S = v;
|
|
306
|
-
let
|
|
307
|
-
e[16] !== t || e[17] !== d ? (
|
|
322
|
+
let I;
|
|
323
|
+
e[16] !== t || e[17] !== d ? (I = /* @__PURE__ */ a(() => {
|
|
308
324
|
l(t.operator), r(t.value);
|
|
309
325
|
const w = d(t.operator, t.value);
|
|
310
326
|
t.onChange?.(w);
|
|
311
|
-
}, "t3"), e[16] = t, e[17] = d, e[18] =
|
|
312
|
-
const
|
|
327
|
+
}, "t3"), e[16] = t, e[17] = d, e[18] = I) : I = e[18];
|
|
328
|
+
const $ = I;
|
|
313
329
|
let k;
|
|
314
|
-
e[19] !== n || e[20] !==
|
|
330
|
+
e[19] !== n || e[20] !== $ || e[21] !== d || e[22] !== i ? (k = /* @__PURE__ */ a(() => ({
|
|
315
331
|
getValue() {
|
|
316
332
|
return d(n, i);
|
|
317
333
|
},
|
|
318
|
-
reset:
|
|
319
|
-
}), "t4"), e[19] = n, e[20] =
|
|
334
|
+
reset: $
|
|
335
|
+
}), "t4"), e[19] = n, e[20] = $, e[21] = d, e[22] = i, e[23] = k) : k = e[23], rt(t.ref, k);
|
|
320
336
|
let _;
|
|
321
|
-
return e[24] !== n || e[25] !==
|
|
337
|
+
return e[24] !== n || e[25] !== $ || e[26] !== y || e[27] !== S || e[28] !== i ? (_ = {
|
|
322
338
|
operator: n,
|
|
323
339
|
value: i,
|
|
324
340
|
setOperator: y,
|
|
325
341
|
setValue: S,
|
|
326
|
-
reset:
|
|
327
|
-
}, e[24] = n, e[25] =
|
|
342
|
+
reset: $
|
|
343
|
+
}, e[24] = n, e[25] = $, e[26] = y, e[27] = S, e[28] = i, e[29] = _) : _ = e[29], _;
|
|
328
344
|
}
|
|
329
|
-
a(
|
|
345
|
+
a(Sl, "useFilterState");
|
|
330
346
|
function Ne(t) {
|
|
331
347
|
const e = U(15), {
|
|
332
348
|
ref: n,
|
|
@@ -334,10 +350,10 @@ function Ne(t) {
|
|
|
334
350
|
} = t, i = l.operator?.supportedOperators ?? l.supportedOperators;
|
|
335
351
|
if (!i || i.length === 0)
|
|
336
352
|
throw new Error("supportedOperators must be a non-empty array");
|
|
337
|
-
const r = l.operator?.locale ??
|
|
353
|
+
const r = l.operator?.locale ?? fl;
|
|
338
354
|
let s = l.operator?.defaultValue;
|
|
339
355
|
(!s || !i.includes(s)) && (s = i[0]);
|
|
340
|
-
const c =
|
|
356
|
+
const c = Sl({
|
|
341
357
|
field: l.field.name,
|
|
342
358
|
operator: s,
|
|
343
359
|
value: l.value?.defaultValue,
|
|
@@ -358,28 +374,28 @@ function Ne(t) {
|
|
|
358
374
|
minWidth: 120
|
|
359
375
|
}, e[3] = d) : d = e[3];
|
|
360
376
|
let h;
|
|
361
|
-
e[4] !== c.operator || e[5] !== c.setOperator || e[6] !== f || e[7] !== l.operator ? (h = /* @__PURE__ */ u(
|
|
377
|
+
e[4] !== c.operator || e[5] !== c.setOperator || e[6] !== f || e[7] !== l.operator ? (h = /* @__PURE__ */ u(it, { style: d, onChange: c.setOperator, ...l.operator, value: c.operator, options: f }), e[4] = c.operator, e[5] = c.setOperator, e[6] = f, e[7] = l.operator, e[8] = h) : h = e[8];
|
|
362
378
|
let y;
|
|
363
|
-
return e[9] !== l.className || e[10] !== l.style || e[11] !== m || e[12] !== h || e[13] !== o ? (y = /* @__PURE__ */
|
|
379
|
+
return e[9] !== l.className || e[10] !== l.style || e[11] !== m || e[12] !== h || e[13] !== o ? (y = /* @__PURE__ */ Y(ae.Compact, { block: !0, style: l.style, className: l.className, children: [
|
|
364
380
|
m,
|
|
365
381
|
h,
|
|
366
382
|
o
|
|
367
383
|
] }), e[9] = l.className, e[10] = l.style, e[11] = m, e[12] = h, e[13] = o, e[14] = y) : y = e[14], y;
|
|
368
384
|
}
|
|
369
385
|
a(Ne, "AssemblyFilter");
|
|
370
|
-
const
|
|
386
|
+
const Tl = "text";
|
|
371
387
|
function nn(t) {
|
|
372
388
|
const e = U(6);
|
|
373
389
|
let n;
|
|
374
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = [
|
|
390
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = [P.EQ, P.NE, P.CONTAINS, P.STARTS_WITH, P.ENDS_WITH, P.IN, P.NOT_IN], e[0] = n) : n = e[0];
|
|
375
391
|
let l;
|
|
376
392
|
e[1] !== t.value ? (l = /* @__PURE__ */ a((r) => {
|
|
377
393
|
switch (r.operator) {
|
|
378
|
-
case
|
|
379
|
-
case
|
|
380
|
-
return /* @__PURE__ */ u(
|
|
394
|
+
case P.IN:
|
|
395
|
+
case P.NOT_IN:
|
|
396
|
+
return /* @__PURE__ */ u(at, { value: r.value, onChange: r.setValue, ...t.value });
|
|
381
397
|
default:
|
|
382
|
-
return /* @__PURE__ */ u(
|
|
398
|
+
return /* @__PURE__ */ u(xe, { value: r.value, onChange: /* @__PURE__ */ a((s) => r.setValue(s.target.value), "onChange"), allowClear: !0, ...t.value });
|
|
383
399
|
}
|
|
384
400
|
}, "t1"), e[1] = t.value, e[2] = l) : l = e[2];
|
|
385
401
|
let i;
|
|
@@ -396,10 +412,10 @@ function nn(t) {
|
|
|
396
412
|
}
|
|
397
413
|
a(nn, "TextFilter");
|
|
398
414
|
nn.displayName = "TextFilter";
|
|
399
|
-
const
|
|
415
|
+
const Cl = "id", wl = /* @__PURE__ */ a((t, e, n) => {
|
|
400
416
|
if (n == null)
|
|
401
417
|
return n;
|
|
402
|
-
if (e ===
|
|
418
|
+
if (e === P.ID)
|
|
403
419
|
return Array.isArray(n) ? n[0] : n;
|
|
404
420
|
if (Array.isArray(n))
|
|
405
421
|
return n;
|
|
@@ -409,15 +425,15 @@ const Tl = "id", Cl = /* @__PURE__ */ a((t, e, n) => {
|
|
|
409
425
|
function ln(t) {
|
|
410
426
|
const e = U(6);
|
|
411
427
|
let n;
|
|
412
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = [
|
|
428
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = [P.ID, P.IDS], e[0] = n) : n = e[0];
|
|
413
429
|
let l;
|
|
414
|
-
e[1] !== t.value ? (l = /* @__PURE__ */ a((r) => r.operator ===
|
|
430
|
+
e[1] !== t.value ? (l = /* @__PURE__ */ a((r) => r.operator === P.ID ? /* @__PURE__ */ u(xe, { value: r.value, onChange: /* @__PURE__ */ a((s) => r.setValue(s.target.value), "onChange"), allowClear: !0, ...t.value }) : /* @__PURE__ */ u(at, { value: r.value, onChange: r.setValue, ...t.value }), "t1"), e[1] = t.value, e[2] = l) : l = e[2];
|
|
415
431
|
let i;
|
|
416
432
|
if (e[3] !== t || e[4] !== l) {
|
|
417
433
|
const r = {
|
|
418
434
|
...t,
|
|
419
435
|
supportedOperators: n,
|
|
420
|
-
onOperatorChangeValueConverter:
|
|
436
|
+
onOperatorChangeValueConverter: wl,
|
|
421
437
|
valueInputRender: l
|
|
422
438
|
};
|
|
423
439
|
i = /* @__PURE__ */ u(Ne, { ...r }), e[3] = t, e[4] = l, e[5] = i;
|
|
@@ -427,23 +443,23 @@ function ln(t) {
|
|
|
427
443
|
}
|
|
428
444
|
a(ln, "IdFilter");
|
|
429
445
|
ln.displayName = "IdConditionFilter";
|
|
430
|
-
const
|
|
446
|
+
const Al = "number";
|
|
431
447
|
function rn(t) {
|
|
432
448
|
const e = U(6);
|
|
433
449
|
let n;
|
|
434
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = [
|
|
450
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = [P.EQ, P.NE, P.GT, P.LT, P.GTE, P.LTE, P.BETWEEN, P.IN, P.NOT_IN], e[0] = n) : n = e[0];
|
|
435
451
|
let l;
|
|
436
452
|
e[1] !== t.value ? (l = /* @__PURE__ */ a((r) => {
|
|
437
453
|
switch (r.operator) {
|
|
438
|
-
case
|
|
439
|
-
case
|
|
440
|
-
return /* @__PURE__ */ u(
|
|
441
|
-
case
|
|
454
|
+
case P.IN:
|
|
455
|
+
case P.NOT_IN:
|
|
456
|
+
return /* @__PURE__ */ u(at, { value: r.value, serializer: rl, onChange: /* @__PURE__ */ a((s) => r.setValue(s), "onChange"), ...t.value });
|
|
457
|
+
case P.BETWEEN: {
|
|
442
458
|
const {
|
|
443
459
|
placeholder: s,
|
|
444
460
|
...c
|
|
445
461
|
} = t.value ?? {};
|
|
446
|
-
return /* @__PURE__ */ u(
|
|
462
|
+
return /* @__PURE__ */ u(sl, { value: r.value, onChange: r.setValue, ...c });
|
|
447
463
|
}
|
|
448
464
|
default: {
|
|
449
465
|
const {
|
|
@@ -461,7 +477,7 @@ function rn(t) {
|
|
|
461
477
|
const r = {
|
|
462
478
|
...t,
|
|
463
479
|
supportedOperators: n,
|
|
464
|
-
validate:
|
|
480
|
+
validate: Dl,
|
|
465
481
|
valueInputRender: l
|
|
466
482
|
};
|
|
467
483
|
i = /* @__PURE__ */ u(Ne, { ...r }), e[3] = t, e[4] = l, e[5] = i;
|
|
@@ -470,18 +486,18 @@ function rn(t) {
|
|
|
470
486
|
return i;
|
|
471
487
|
}
|
|
472
488
|
a(rn, "NumberFilter");
|
|
473
|
-
function
|
|
474
|
-
return t ===
|
|
489
|
+
function Dl(t, e) {
|
|
490
|
+
return t === P.BETWEEN ? Array.isArray(e) ? e[0] !== void 0 && e[1] !== void 0 : !1 : e != null;
|
|
475
491
|
}
|
|
476
|
-
a(
|
|
492
|
+
a(Dl, "_temp$b");
|
|
477
493
|
rn.displayName = "NumberFilter";
|
|
478
|
-
const
|
|
494
|
+
const Nl = "select";
|
|
479
495
|
function an(t) {
|
|
480
496
|
const e = U(6);
|
|
481
497
|
let n;
|
|
482
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = [
|
|
498
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = [P.IN, P.NOT_IN], e[0] = n) : n = e[0];
|
|
483
499
|
let l;
|
|
484
|
-
e[1] !== t.value ? (l = /* @__PURE__ */ a((r) => /* @__PURE__ */ u(
|
|
500
|
+
e[1] !== t.value ? (l = /* @__PURE__ */ a((r) => /* @__PURE__ */ u(it, { mode: "multiple", value: r.value, onChange: r.setValue, allowClear: !0, ...t.value }), "t1"), e[1] = t.value, e[2] = l) : l = e[2];
|
|
485
501
|
let i;
|
|
486
502
|
if (e[3] !== t || e[4] !== l) {
|
|
487
503
|
const r = {
|
|
@@ -496,17 +512,17 @@ function an(t) {
|
|
|
496
512
|
}
|
|
497
513
|
a(an, "SelectFilter");
|
|
498
514
|
an.displayName = "SelectFilter";
|
|
499
|
-
const
|
|
515
|
+
const Il = "bool";
|
|
500
516
|
function sn(t) {
|
|
501
517
|
const e = U(3);
|
|
502
518
|
let n;
|
|
503
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = [Re.UNDEFINED,
|
|
519
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = [Re.UNDEFINED, P.TRUE, P.FALSE], e[0] = n) : n = e[0];
|
|
504
520
|
let l;
|
|
505
521
|
if (e[1] !== t) {
|
|
506
522
|
const i = {
|
|
507
523
|
...t,
|
|
508
524
|
supportedOperators: n,
|
|
509
|
-
validate:
|
|
525
|
+
validate: _l
|
|
510
526
|
};
|
|
511
527
|
l = /* @__PURE__ */ u(Ne, { ...i }), e[1] = t, e[2] = l;
|
|
512
528
|
} else
|
|
@@ -519,13 +535,13 @@ function on(t) {
|
|
|
519
535
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
520
536
|
}
|
|
521
537
|
a(on, "getDefaultExportFromCjs");
|
|
522
|
-
var Xe = { exports: {} },
|
|
523
|
-
function
|
|
524
|
-
return
|
|
538
|
+
var Xe = { exports: {} }, Vl = Xe.exports, Rt;
|
|
539
|
+
function $l() {
|
|
540
|
+
return Rt || (Rt = 1, (function(t, e) {
|
|
525
541
|
(function(n, l) {
|
|
526
542
|
t.exports = l();
|
|
527
|
-
})(
|
|
528
|
-
var n = 1e3, l = 6e4, i = 36e5, r = "millisecond", s = "second", c = "minute", o = "hour", f = "day", m = "week", d = "month", h = "quarter", y = "year", v = "date", S = "Invalid Date",
|
|
543
|
+
})(Vl, (function() {
|
|
544
|
+
var n = 1e3, l = 6e4, i = 36e5, r = "millisecond", s = "second", c = "minute", o = "hour", f = "day", m = "week", d = "month", h = "quarter", y = "year", v = "date", S = "Invalid Date", I = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, $ = /\[([^\]]+)]|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, k = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: /* @__PURE__ */ a(function(A) {
|
|
529
545
|
var b = ["th", "st", "nd", "rd"], p = A % 100;
|
|
530
546
|
return "[" + A + (b[(p - 20) % 10] || b[p] || b[0]) + "]";
|
|
531
547
|
}, "ordinal") }, _ = /* @__PURE__ */ a(function(A, b, p) {
|
|
@@ -544,34 +560,34 @@ function Vl() {
|
|
|
544
560
|
return { M: d, y, w: m, d: f, D: v, h: o, m: c, s, ms: r, Q: h }[A] || String(A || "").toLowerCase().replace(/s$/, "");
|
|
545
561
|
}, "p"), u: /* @__PURE__ */ a(function(A) {
|
|
546
562
|
return A === void 0;
|
|
547
|
-
}, "u") }, D = "en",
|
|
548
|
-
|
|
549
|
-
var
|
|
550
|
-
return A instanceof
|
|
551
|
-
}, "S"),
|
|
563
|
+
}, "u") }, D = "en", V = {};
|
|
564
|
+
V[D] = k;
|
|
565
|
+
var x = "$isDayjsObject", T = /* @__PURE__ */ a(function(A) {
|
|
566
|
+
return A instanceof F || !(!A || !A[x]);
|
|
567
|
+
}, "S"), O = /* @__PURE__ */ a(function A(b, p, N) {
|
|
552
568
|
var C;
|
|
553
569
|
if (!b) return D;
|
|
554
570
|
if (typeof b == "string") {
|
|
555
571
|
var M = b.toLowerCase();
|
|
556
|
-
|
|
572
|
+
V[M] && (C = M), p && (V[M] = p, C = M);
|
|
557
573
|
var L = b.split("-");
|
|
558
574
|
if (!C && L.length > 1) return A(L[0]);
|
|
559
575
|
} else {
|
|
560
576
|
var H = b.name;
|
|
561
|
-
|
|
577
|
+
V[H] = b, C = H;
|
|
562
578
|
}
|
|
563
579
|
return !N && C && (D = C), C || !N && D;
|
|
564
580
|
}, "t"), E = /* @__PURE__ */ a(function(A, b) {
|
|
565
581
|
if (T(A)) return A.clone();
|
|
566
582
|
var p = typeof b == "object" ? b : {};
|
|
567
|
-
return p.date = A, p.args = arguments, new
|
|
583
|
+
return p.date = A, p.args = arguments, new F(p);
|
|
568
584
|
}, "O"), g = w;
|
|
569
|
-
g.l =
|
|
585
|
+
g.l = O, g.i = T, g.w = function(A, b) {
|
|
570
586
|
return E(A, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
|
|
571
587
|
};
|
|
572
|
-
var
|
|
588
|
+
var F = (function() {
|
|
573
589
|
function A(p) {
|
|
574
|
-
this.$L =
|
|
590
|
+
this.$L = O(p.locale, null, !0), this.parse(p), this.$x = this.$x || p.x || {}, this[x] = !0;
|
|
575
591
|
}
|
|
576
592
|
a(A, "M");
|
|
577
593
|
var b = A.prototype;
|
|
@@ -582,7 +598,7 @@ function Vl() {
|
|
|
582
598
|
if (g.u(C)) return /* @__PURE__ */ new Date();
|
|
583
599
|
if (C instanceof Date) return new Date(C);
|
|
584
600
|
if (typeof C == "string" && !/Z$/i.test(C)) {
|
|
585
|
-
var L = C.match(
|
|
601
|
+
var L = C.match(I);
|
|
586
602
|
if (L) {
|
|
587
603
|
var H = L[2] - 1 || 0, W = (L[7] || "0").substring(0, 3);
|
|
588
604
|
return M ? new Date(Date.UTC(L[1], H, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, W)) : new Date(L[1], H, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, W);
|
|
@@ -616,14 +632,14 @@ function Vl() {
|
|
|
616
632
|
return M ? Z : Z.endOf(f);
|
|
617
633
|
}, "l"), W = /* @__PURE__ */ a(function(ee, Q) {
|
|
618
634
|
return g.w(C.toDate()[ee].apply(C.toDate("s"), (M ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Q)), C);
|
|
619
|
-
}, "$"),
|
|
635
|
+
}, "$"), z = this.$W, j = this.$M, B = this.$D, G = "set" + (this.$u ? "UTC" : "");
|
|
620
636
|
switch (L) {
|
|
621
637
|
case y:
|
|
622
638
|
return M ? H(1, 0) : H(31, 11);
|
|
623
639
|
case d:
|
|
624
640
|
return M ? H(1, j) : H(0, j + 1);
|
|
625
641
|
case m:
|
|
626
|
-
var te = this.$locale().weekStart || 0, J = (
|
|
642
|
+
var te = this.$locale().weekStart || 0, J = (z < te ? z + 7 : z) - te;
|
|
627
643
|
return H(M ? B - J : B + (6 - J), j);
|
|
628
644
|
case f:
|
|
629
645
|
case v:
|
|
@@ -642,8 +658,8 @@ function Vl() {
|
|
|
642
658
|
}, b.$set = function(p, N) {
|
|
643
659
|
var C, M = g.p(p), L = "set" + (this.$u ? "UTC" : ""), H = (C = {}, C[f] = L + "Date", C[v] = L + "Date", C[d] = L + "Month", C[y] = L + "FullYear", C[o] = L + "Hours", C[c] = L + "Minutes", C[s] = L + "Seconds", C[r] = L + "Milliseconds", C)[M], W = M === f ? this.$D + (N - this.$W) : N;
|
|
644
660
|
if (M === d || M === y) {
|
|
645
|
-
var
|
|
646
|
-
|
|
661
|
+
var z = this.clone().set(v, 1);
|
|
662
|
+
z.$d[H](W), z.init(), this.$d = z.set(v, Math.min(this.$D, z.daysInMonth())).$d;
|
|
647
663
|
} else H && this.$d[H](W);
|
|
648
664
|
return this.init(), this;
|
|
649
665
|
}, b.set = function(p, N) {
|
|
@@ -661,14 +677,14 @@ function Vl() {
|
|
|
661
677
|
if (L === y) return this.set(y, this.$y + p);
|
|
662
678
|
if (L === f) return H(1);
|
|
663
679
|
if (L === m) return H(7);
|
|
664
|
-
var W = (C = {}, C[c] = l, C[o] = i, C[s] = n, C)[L] || 1,
|
|
665
|
-
return g.w(
|
|
680
|
+
var W = (C = {}, C[c] = l, C[o] = i, C[s] = n, C)[L] || 1, z = this.$d.getTime() + p * W;
|
|
681
|
+
return g.w(z, this);
|
|
666
682
|
}, b.subtract = function(p, N) {
|
|
667
683
|
return this.add(-1 * p, N);
|
|
668
684
|
}, b.format = function(p) {
|
|
669
685
|
var N = this, C = this.$locale();
|
|
670
686
|
if (!this.isValid()) return C.invalidDate || S;
|
|
671
|
-
var M = p || "YYYY-MM-DDTHH:mm:ssZ", L = g.z(this), H = this.$H, W = this.$m,
|
|
687
|
+
var M = p || "YYYY-MM-DDTHH:mm:ssZ", L = g.z(this), H = this.$H, W = this.$m, z = this.$M, j = C.weekdays, B = C.months, G = C.meridiem, te = /* @__PURE__ */ a(function(Q, Z, se, ie) {
|
|
672
688
|
return Q && (Q[Z] || Q(N, M)) || se[Z].slice(0, ie);
|
|
673
689
|
}, "h"), J = /* @__PURE__ */ a(function(Q) {
|
|
674
690
|
return g.s(H % 12 || 12, Q, "0");
|
|
@@ -676,7 +692,7 @@ function Vl() {
|
|
|
676
692
|
var ie = Q < 12 ? "AM" : "PM";
|
|
677
693
|
return se ? ie.toLowerCase() : ie;
|
|
678
694
|
};
|
|
679
|
-
return M.replace(
|
|
695
|
+
return M.replace($, (function(Q, Z) {
|
|
680
696
|
return Z || (function(se) {
|
|
681
697
|
switch (se) {
|
|
682
698
|
case "YY":
|
|
@@ -684,13 +700,13 @@ function Vl() {
|
|
|
684
700
|
case "YYYY":
|
|
685
701
|
return g.s(N.$y, 4, "0");
|
|
686
702
|
case "M":
|
|
687
|
-
return
|
|
703
|
+
return z + 1;
|
|
688
704
|
case "MM":
|
|
689
|
-
return g.s(
|
|
705
|
+
return g.s(z + 1, 2, "0");
|
|
690
706
|
case "MMM":
|
|
691
|
-
return te(C.monthsShort,
|
|
707
|
+
return te(C.monthsShort, z, B, 3);
|
|
692
708
|
case "MMMM":
|
|
693
|
-
return te(B,
|
|
709
|
+
return te(B, z);
|
|
694
710
|
case "D":
|
|
695
711
|
return N.$D;
|
|
696
712
|
case "DD":
|
|
@@ -734,7 +750,7 @@ function Vl() {
|
|
|
734
750
|
}, b.utcOffset = function() {
|
|
735
751
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
736
752
|
}, b.diff = function(p, N, C) {
|
|
737
|
-
var M, L = this, H = g.p(N), W = E(p),
|
|
753
|
+
var M, L = this, H = g.p(N), W = E(p), z = (W.utcOffset() - this.utcOffset()) * l, j = this - W, B = /* @__PURE__ */ a(function() {
|
|
738
754
|
return g.m(L, W);
|
|
739
755
|
}, "D");
|
|
740
756
|
switch (H) {
|
|
@@ -748,10 +764,10 @@ function Vl() {
|
|
|
748
764
|
M = B() / 3;
|
|
749
765
|
break;
|
|
750
766
|
case m:
|
|
751
|
-
M = (j -
|
|
767
|
+
M = (j - z) / 6048e5;
|
|
752
768
|
break;
|
|
753
769
|
case f:
|
|
754
|
-
M = (j -
|
|
770
|
+
M = (j - z) / 864e5;
|
|
755
771
|
break;
|
|
756
772
|
case o:
|
|
757
773
|
M = j / i;
|
|
@@ -769,10 +785,10 @@ function Vl() {
|
|
|
769
785
|
}, b.daysInMonth = function() {
|
|
770
786
|
return this.endOf(d).$D;
|
|
771
787
|
}, b.$locale = function() {
|
|
772
|
-
return
|
|
788
|
+
return V[this.$L];
|
|
773
789
|
}, b.locale = function(p, N) {
|
|
774
790
|
if (!p) return this.$L;
|
|
775
|
-
var C = this.clone(), M =
|
|
791
|
+
var C = this.clone(), M = O(p, N, !0);
|
|
776
792
|
return M && (C.$L = M), C;
|
|
777
793
|
}, b.clone = function() {
|
|
778
794
|
return g.w(this.$d, this);
|
|
@@ -785,76 +801,76 @@ function Vl() {
|
|
|
785
801
|
}, b.toString = function() {
|
|
786
802
|
return this.$d.toUTCString();
|
|
787
803
|
}, A;
|
|
788
|
-
})(), R =
|
|
804
|
+
})(), R = F.prototype;
|
|
789
805
|
return E.prototype = R, [["$ms", r], ["$s", s], ["$m", c], ["$H", o], ["$W", f], ["$M", d], ["$y", y], ["$D", v]].forEach((function(A) {
|
|
790
806
|
R[A[1]] = function(b) {
|
|
791
807
|
return this.$g(b, A[0], A[1]);
|
|
792
808
|
};
|
|
793
809
|
})), E.extend = function(A, b) {
|
|
794
|
-
return A.$i || (A(b,
|
|
795
|
-
}, E.locale =
|
|
810
|
+
return A.$i || (A(b, F, E), A.$i = !0), E;
|
|
811
|
+
}, E.locale = O, E.isDayjs = T, E.unix = function(A) {
|
|
796
812
|
return E(1e3 * A);
|
|
797
|
-
}, E.en =
|
|
813
|
+
}, E.en = V[D], E.Ls = V, E.p = {}, E;
|
|
798
814
|
}));
|
|
799
815
|
})(Xe)), Xe.exports;
|
|
800
816
|
}
|
|
801
|
-
a(
|
|
802
|
-
var
|
|
803
|
-
const
|
|
804
|
-
if (t === Re.UNDEFINED || e === Re.UNDEFINED ||
|
|
817
|
+
a($l, "requireDayjs_min");
|
|
818
|
+
var St = $l();
|
|
819
|
+
const Tt = /* @__PURE__ */ on(St), Ol = "datetime", Fl = "HH:mm:ss", Pt = "day", Ct = /* @__PURE__ */ new Set([P.RECENT_DAYS, P.EARLIER_DAYS]), xt = /* @__PURE__ */ new Set([P.GT, P.LT, P.GTE, P.LTE]), Rl = /* @__PURE__ */ a((t, e, n) => {
|
|
820
|
+
if (t === Re.UNDEFINED || e === Re.UNDEFINED || Ct.has(t) && Ct.has(e))
|
|
805
821
|
return n;
|
|
806
822
|
if (xt.has(t)) {
|
|
807
823
|
if (xt.has(e))
|
|
808
824
|
return n;
|
|
809
|
-
if (e ===
|
|
825
|
+
if (e === P.BETWEEN)
|
|
810
826
|
return [n, void 0];
|
|
811
827
|
}
|
|
812
|
-
}, "DateTimeOnOperatorChangeValueConverter"),
|
|
828
|
+
}, "DateTimeOnOperatorChangeValueConverter"), Pl = /* @__PURE__ */ a((t, e) => {
|
|
813
829
|
if (e) {
|
|
814
|
-
if (t ===
|
|
830
|
+
if (t === P.BETWEEN) {
|
|
815
831
|
if (!Array.isArray(e) || e.length !== 2)
|
|
816
832
|
return;
|
|
817
833
|
const n = e[0];
|
|
818
834
|
let l = e[1];
|
|
819
|
-
return l.startOf(
|
|
835
|
+
return l.startOf(Pt).isSame(l) && (l = l.endOf(Pt)), [n.valueOf(), l.valueOf()];
|
|
820
836
|
}
|
|
821
|
-
if (
|
|
837
|
+
if (Ct.has(t))
|
|
822
838
|
return e;
|
|
823
|
-
if (t ===
|
|
824
|
-
return
|
|
825
|
-
if (
|
|
839
|
+
if (t === P.BEFORE_TODAY)
|
|
840
|
+
return St.isDayjs(e) ? e.format(Fl) : void 0;
|
|
841
|
+
if (St.isDayjs(e))
|
|
826
842
|
return e.valueOf();
|
|
827
843
|
}
|
|
828
844
|
}, "TimestampConditionValueParser");
|
|
829
845
|
function cn(t) {
|
|
830
846
|
const e = U(6);
|
|
831
847
|
let n;
|
|
832
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = [
|
|
848
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = [P.GT, P.LT, P.GTE, P.LTE, P.BETWEEN, P.TODAY, P.BEFORE_TODAY, P.TOMORROW, P.THIS_WEEK, P.NEXT_WEEK, P.LAST_WEEK, P.THIS_MONTH, P.LAST_MONTH, P.RECENT_DAYS, P.EARLIER_DAYS], e[0] = n) : n = e[0];
|
|
833
849
|
let l;
|
|
834
850
|
e[1] !== t.value ? (l = /* @__PURE__ */ a((r) => {
|
|
835
851
|
switch (r.operator) {
|
|
836
|
-
case
|
|
852
|
+
case P.BETWEEN: {
|
|
837
853
|
const {
|
|
838
854
|
placeholder: s,
|
|
839
855
|
...c
|
|
840
856
|
} = t.value || {};
|
|
841
|
-
return /* @__PURE__ */ u(
|
|
857
|
+
return /* @__PURE__ */ u(vt.RangePicker, { value: r.value, onChange: r.setValue, ...c });
|
|
842
858
|
}
|
|
843
|
-
case
|
|
844
|
-
case
|
|
845
|
-
case
|
|
846
|
-
case
|
|
847
|
-
case
|
|
848
|
-
case
|
|
849
|
-
case
|
|
859
|
+
case P.TODAY:
|
|
860
|
+
case P.TOMORROW:
|
|
861
|
+
case P.THIS_WEEK:
|
|
862
|
+
case P.NEXT_WEEK:
|
|
863
|
+
case P.LAST_WEEK:
|
|
864
|
+
case P.THIS_MONTH:
|
|
865
|
+
case P.LAST_MONTH:
|
|
850
866
|
return null;
|
|
851
|
-
case
|
|
852
|
-
case
|
|
867
|
+
case P.RECENT_DAYS:
|
|
868
|
+
case P.EARLIER_DAYS:
|
|
853
869
|
return /* @__PURE__ */ u(tt, { value: r.value, min: 1, onChange: r.setValue, ...t.value });
|
|
854
|
-
case
|
|
855
|
-
return /* @__PURE__ */ u(
|
|
870
|
+
case P.BEFORE_TODAY:
|
|
871
|
+
return /* @__PURE__ */ u(vt, { picker: "time", value: r.value, onChange: r.setValue, ...t.value });
|
|
856
872
|
default:
|
|
857
|
-
return /* @__PURE__ */ u(
|
|
873
|
+
return /* @__PURE__ */ u(vt, { value: r.value, picker: "date", showNow: !1, onChange: r.setValue, ...t.value });
|
|
858
874
|
}
|
|
859
875
|
}, "t1"), e[1] = t.value, e[2] = l) : l = e[2];
|
|
860
876
|
let i;
|
|
@@ -862,8 +878,8 @@ function cn(t) {
|
|
|
862
878
|
const r = {
|
|
863
879
|
...t,
|
|
864
880
|
supportedOperators: n,
|
|
865
|
-
onOperatorChangeValueConverter:
|
|
866
|
-
conditionValueParser:
|
|
881
|
+
onOperatorChangeValueConverter: Rl,
|
|
882
|
+
conditionValueParser: Pl,
|
|
867
883
|
valueInputRender: l
|
|
868
884
|
};
|
|
869
885
|
i = /* @__PURE__ */ u(Ne, { ...r }), e[3] = t, e[4] = l, e[5] = i;
|
|
@@ -873,7 +889,7 @@ function cn(t) {
|
|
|
873
889
|
}
|
|
874
890
|
a(cn, "DateTimeFilter");
|
|
875
891
|
cn.displayName = "DateTimeFilter";
|
|
876
|
-
const
|
|
892
|
+
const lt = class lt {
|
|
877
893
|
constructor() {
|
|
878
894
|
this.registry = /* @__PURE__ */ new Map();
|
|
879
895
|
}
|
|
@@ -970,25 +986,25 @@ const nt = class nt {
|
|
|
970
986
|
* ```
|
|
971
987
|
*/
|
|
972
988
|
static create(e = []) {
|
|
973
|
-
const n = new
|
|
989
|
+
const n = new lt();
|
|
974
990
|
return e.forEach(([l, i]) => n.register(l, i)), n;
|
|
975
991
|
}
|
|
976
992
|
};
|
|
977
|
-
a(
|
|
978
|
-
let
|
|
979
|
-
const xl =
|
|
993
|
+
a(lt, "TypedComponentRegistry");
|
|
994
|
+
let Pe = lt;
|
|
995
|
+
const xl = Pe.create([[Cl, ln], [Tl, nn], [Al, rn], [Nl, an], [Il, sn], [Ol, cn]]);
|
|
980
996
|
function un(t) {
|
|
981
997
|
const e = U(2), {
|
|
982
998
|
type: n,
|
|
983
999
|
ref: l
|
|
984
1000
|
} = t;
|
|
985
|
-
|
|
1001
|
+
rt(l, kl);
|
|
986
1002
|
const i = `Unsupported filter type:[${n}]`;
|
|
987
1003
|
let r;
|
|
988
|
-
return e[0] !== i ? (r = /* @__PURE__ */ u(
|
|
1004
|
+
return e[0] !== i ? (r = /* @__PURE__ */ u(An, { title: i, type: "warning", showIcon: !0 }), e[0] = i, e[1] = r) : r = e[1], r;
|
|
989
1005
|
}
|
|
990
1006
|
a(un, "FallbackFilter");
|
|
991
|
-
function
|
|
1007
|
+
function kl() {
|
|
992
1008
|
return {
|
|
993
1009
|
getValue() {
|
|
994
1010
|
},
|
|
@@ -996,19 +1012,19 @@ function Pl() {
|
|
|
996
1012
|
}
|
|
997
1013
|
};
|
|
998
1014
|
}
|
|
999
|
-
a(
|
|
1015
|
+
a(kl, "_temp$a");
|
|
1000
1016
|
un.displayName = "FallbackFilter";
|
|
1001
|
-
const
|
|
1017
|
+
const Ml = {
|
|
1002
1018
|
flex: "auto"
|
|
1003
1019
|
};
|
|
1004
|
-
function
|
|
1020
|
+
function wt(t) {
|
|
1005
1021
|
const e = U(10);
|
|
1006
1022
|
let n;
|
|
1007
1023
|
e[0] !== t.type ? (n = xl.get(t.type) || un, e[0] = t.type, e[1] = n) : n = e[1];
|
|
1008
1024
|
const l = n;
|
|
1009
1025
|
let i;
|
|
1010
1026
|
e[2] !== t.value ? (i = {
|
|
1011
|
-
style:
|
|
1027
|
+
style: Ml,
|
|
1012
1028
|
...t.value
|
|
1013
1029
|
}, e[2] = t.value, e[3] = i) : i = e[3];
|
|
1014
1030
|
const r = i;
|
|
@@ -1021,9 +1037,9 @@ function Ct(t) {
|
|
|
1021
1037
|
let o;
|
|
1022
1038
|
return e[7] !== l || e[8] !== c ? (o = Gt.createElement(l, c), e[7] = l, e[8] = c, e[9] = o) : o = e[9], o;
|
|
1023
1039
|
}
|
|
1024
|
-
a(
|
|
1025
|
-
|
|
1026
|
-
function
|
|
1040
|
+
a(wt, "TypedFilter");
|
|
1041
|
+
wt.displayName = "TypedFilter";
|
|
1042
|
+
function Ll(t) {
|
|
1027
1043
|
const e = U(15);
|
|
1028
1044
|
let n, l;
|
|
1029
1045
|
e[0] !== t ? ({
|
|
@@ -1033,22 +1049,22 @@ function Ml(t) {
|
|
|
1033
1049
|
const [i, r] = q(!1);
|
|
1034
1050
|
if (!n) {
|
|
1035
1051
|
let d;
|
|
1036
|
-
return e[3] !== l ? (d = /* @__PURE__ */ u(
|
|
1052
|
+
return e[3] !== l ? (d = /* @__PURE__ */ u(wt, { ...l }), e[3] = l, e[4] = d) : d = e[4], d;
|
|
1037
1053
|
}
|
|
1038
1054
|
let s, c;
|
|
1039
1055
|
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ a(() => r(!0), "t0"), c = /* @__PURE__ */ a(() => r(!1), "t1"), e[5] = s, e[6] = c) : (s = e[5], c = e[6]);
|
|
1040
1056
|
let o;
|
|
1041
|
-
e[7] !== l ? (o = /* @__PURE__ */ u(
|
|
1057
|
+
e[7] !== l ? (o = /* @__PURE__ */ u(wt, { ...l }), e[7] = l, e[8] = o) : o = e[8];
|
|
1042
1058
|
let f;
|
|
1043
|
-
e[9] !== n || e[10] !== i ? (f = i && /* @__PURE__ */ u(le, { type: "dashed", shape: "circle", size: "small", onClick: n, icon: /* @__PURE__ */ u(
|
|
1059
|
+
e[9] !== n || e[10] !== i ? (f = i && /* @__PURE__ */ u(le, { type: "dashed", shape: "circle", size: "small", onClick: n, icon: /* @__PURE__ */ u(Hn, {}) }), e[9] = n, e[10] = i, e[11] = f) : f = e[11];
|
|
1044
1060
|
let m;
|
|
1045
|
-
return e[12] !== o || e[13] !== f ? (m = /* @__PURE__ */
|
|
1061
|
+
return e[12] !== o || e[13] !== f ? (m = /* @__PURE__ */ Y(ae, { onMouseOver: s, onMouseOut: c, children: [
|
|
1046
1062
|
o,
|
|
1047
1063
|
f
|
|
1048
1064
|
] }), e[12] = o, e[13] = f, e[14] = m) : m = e[14], m;
|
|
1049
1065
|
}
|
|
1050
|
-
a(
|
|
1051
|
-
const
|
|
1066
|
+
a(Ll, "RemovableTypedFilter");
|
|
1067
|
+
const Ul = {
|
|
1052
1068
|
gutter: [8, 8],
|
|
1053
1069
|
wrap: !0
|
|
1054
1070
|
}, fn = {
|
|
@@ -1058,8 +1074,8 @@ const Ll = {
|
|
|
1058
1074
|
md: 12,
|
|
1059
1075
|
sm: 24,
|
|
1060
1076
|
xs: 24
|
|
1061
|
-
},
|
|
1062
|
-
function
|
|
1077
|
+
}, Hl = fn;
|
|
1078
|
+
function Yl(t) {
|
|
1063
1079
|
const e = U(37), {
|
|
1064
1080
|
ref: n,
|
|
1065
1081
|
row: l,
|
|
@@ -1070,63 +1086,63 @@ function Hl(t) {
|
|
|
1070
1086
|
actions: o,
|
|
1071
1087
|
resetButton: f,
|
|
1072
1088
|
searchButton: m
|
|
1073
|
-
} = t, d = l === void 0 ?
|
|
1089
|
+
} = t, d = l === void 0 ? Ul : l, h = i === void 0 ? fn : i, y = r === void 0 ? Hl : r, v = Mn();
|
|
1074
1090
|
let S;
|
|
1075
1091
|
e[0] !== v || e[1] !== c ? (S = /* @__PURE__ */ a(() => {
|
|
1076
1092
|
if (!c)
|
|
1077
1093
|
return;
|
|
1078
|
-
const b = Array.from(v.values()).map(
|
|
1094
|
+
const b = Array.from(v.values()).map(zl).filter(Boolean), p = tl(...b);
|
|
1079
1095
|
c(p);
|
|
1080
1096
|
}, "t3"), e[0] = v, e[1] = c, e[2] = S) : S = e[2];
|
|
1081
|
-
const
|
|
1082
|
-
let
|
|
1083
|
-
e[3] !== v ? (
|
|
1097
|
+
const I = S;
|
|
1098
|
+
let $;
|
|
1099
|
+
e[3] !== v ? ($ = /* @__PURE__ */ a(() => {
|
|
1084
1100
|
for (const b of v.values())
|
|
1085
1101
|
b.reset();
|
|
1086
|
-
}, "t4"), e[3] = v, e[4] =
|
|
1087
|
-
const k =
|
|
1102
|
+
}, "t4"), e[3] = v, e[4] = $) : $ = e[4];
|
|
1103
|
+
const k = $;
|
|
1088
1104
|
let _;
|
|
1089
|
-
e[5] !== k || e[6] !==
|
|
1090
|
-
search:
|
|
1105
|
+
e[5] !== k || e[6] !== I ? (_ = /* @__PURE__ */ a(() => ({
|
|
1106
|
+
search: I,
|
|
1091
1107
|
reset: k
|
|
1092
|
-
}), "t5"), e[5] = k, e[6] =
|
|
1108
|
+
}), "t5"), e[5] = k, e[6] = I, e[7] = _) : _ = e[7], rt(n, _);
|
|
1093
1109
|
const w = f !== !1;
|
|
1094
1110
|
let D;
|
|
1095
1111
|
e[8] !== f ? (D = typeof f == "object" ? f : {}, e[8] = f, e[9] = D) : D = e[9];
|
|
1096
|
-
const
|
|
1097
|
-
let
|
|
1112
|
+
const V = D;
|
|
1113
|
+
let x;
|
|
1098
1114
|
if (e[10] !== h || e[11] !== v || e[12] !== s) {
|
|
1099
1115
|
let b;
|
|
1100
|
-
e[14] !== h || e[15] !== v ? (b = /* @__PURE__ */ a((p) => /* @__PURE__ */ xn(
|
|
1116
|
+
e[14] !== h || e[15] !== v ? (b = /* @__PURE__ */ a((p) => /* @__PURE__ */ xn($t, { ...h, key: p.key }, /* @__PURE__ */ u(Ll, { type: p.type, field: p.field, operator: p.operator, value: p.value, onRemove: p.onRemove, ref: v.register(p.key) }, p.key)), "t82"), e[14] = h, e[15] = v, e[16] = b) : b = e[16], x = s.map(b), e[10] = h, e[11] = v, e[12] = s, e[13] = x;
|
|
1101
1117
|
} else
|
|
1102
|
-
|
|
1118
|
+
x = e[13];
|
|
1103
1119
|
let T;
|
|
1104
|
-
e[17] !== k || e[18] !==
|
|
1105
|
-
let
|
|
1106
|
-
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1120
|
+
e[17] !== k || e[18] !== V || e[19] !== w ? (T = w && /* @__PURE__ */ u(le, { icon: /* @__PURE__ */ u(Yn, {}), onClick: k, ...V, children: V?.children || "Reset" }), e[17] = k, e[18] = V, e[19] = w, e[20] = T) : T = e[20];
|
|
1121
|
+
let O;
|
|
1122
|
+
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ u(zn, {}), e[21] = O) : O = e[21];
|
|
1107
1123
|
const E = m?.children || "Search";
|
|
1108
1124
|
let g;
|
|
1109
|
-
e[22] !==
|
|
1110
|
-
let
|
|
1111
|
-
e[26] !== o || e[27] !== g || e[28] !== T ? (
|
|
1125
|
+
e[22] !== I || e[23] !== m || e[24] !== E ? (g = /* @__PURE__ */ u(le, { type: "primary", icon: O, onClick: I, ...m, children: E }), e[22] = I, e[23] = m, e[24] = E, e[25] = g) : g = e[25];
|
|
1126
|
+
let F;
|
|
1127
|
+
e[26] !== o || e[27] !== g || e[28] !== T ? (F = /* @__PURE__ */ Y(ae.Compact, { children: [
|
|
1112
1128
|
o,
|
|
1113
1129
|
T,
|
|
1114
1130
|
g
|
|
1115
|
-
] }), e[26] = o, e[27] = g, e[28] = T, e[29] =
|
|
1131
|
+
] }), e[26] = o, e[27] = g, e[28] = T, e[29] = F) : F = e[29];
|
|
1116
1132
|
let R;
|
|
1117
|
-
e[30] !== y || e[31] !==
|
|
1133
|
+
e[30] !== y || e[31] !== F ? (R = /* @__PURE__ */ u($t, { ...y, children: F }), e[30] = y, e[31] = F, e[32] = R) : R = e[32];
|
|
1118
1134
|
let A;
|
|
1119
|
-
return e[33] !== d || e[34] !== R || e[35] !==
|
|
1120
|
-
|
|
1135
|
+
return e[33] !== d || e[34] !== R || e[35] !== x ? (A = /* @__PURE__ */ u(ne, { children: /* @__PURE__ */ Y(Dn, { ...d, children: [
|
|
1136
|
+
x,
|
|
1121
1137
|
R
|
|
1122
|
-
] }) }), e[33] = d, e[34] = R, e[35] =
|
|
1138
|
+
] }) }), e[33] = d, e[34] = R, e[35] = x, e[36] = A) : A = e[36], A;
|
|
1123
1139
|
}
|
|
1124
|
-
a(
|
|
1125
|
-
function
|
|
1140
|
+
a(Yl, "FilterPanel");
|
|
1141
|
+
function zl(t) {
|
|
1126
1142
|
return t?.getValue()?.condition;
|
|
1127
1143
|
}
|
|
1128
|
-
a(
|
|
1129
|
-
function
|
|
1144
|
+
a(zl, "_temp$9");
|
|
1145
|
+
function Bl(t) {
|
|
1130
1146
|
const e = U(33), {
|
|
1131
1147
|
ref: n,
|
|
1132
1148
|
row: l,
|
|
@@ -1135,18 +1151,18 @@ function zl(t) {
|
|
|
1135
1151
|
filters: s,
|
|
1136
1152
|
onSearch: c,
|
|
1137
1153
|
onChange: o
|
|
1138
|
-
} = t, [f, m] = q(s), [d, h] = q(!1), y =
|
|
1154
|
+
} = t, [f, m] = q(s), [d, h] = q(!1), y = Ln();
|
|
1139
1155
|
let v, S;
|
|
1140
1156
|
e[0] !== s ? (v = /* @__PURE__ */ a(() => {
|
|
1141
1157
|
m(s);
|
|
1142
1158
|
}, "t0"), S = [s], e[0] = s, e[1] = v, e[2] = S) : (v = e[1], S = e[2]), me(v, S);
|
|
1143
|
-
let
|
|
1144
|
-
e[3] !== f || e[4] !== y || e[5] !== o ? (
|
|
1145
|
-
if (
|
|
1159
|
+
let I;
|
|
1160
|
+
e[3] !== f || e[4] !== y || e[5] !== o ? (I = /* @__PURE__ */ a((F) => {
|
|
1161
|
+
if (F.length === 0) {
|
|
1146
1162
|
h(!1);
|
|
1147
1163
|
return;
|
|
1148
1164
|
}
|
|
1149
|
-
const R =
|
|
1165
|
+
const R = F.map((b) => ({
|
|
1150
1166
|
key: y.generate(),
|
|
1151
1167
|
type: b.component,
|
|
1152
1168
|
field: b.field,
|
|
@@ -1154,49 +1170,49 @@ function zl(t) {
|
|
|
1154
1170
|
operator: b.operator
|
|
1155
1171
|
})), A = [...f, ...R];
|
|
1156
1172
|
m(A), o && o(A), h(!1);
|
|
1157
|
-
}, "t2"), e[3] = f, e[4] = y, e[5] = o, e[6] =
|
|
1158
|
-
const
|
|
1173
|
+
}, "t2"), e[3] = f, e[4] = y, e[5] = o, e[6] = I) : I = e[6];
|
|
1174
|
+
const $ = I;
|
|
1159
1175
|
let k;
|
|
1160
|
-
e[7] !== f || e[8] !== o ? (k = /* @__PURE__ */ a((
|
|
1161
|
-
const R = f.filter((A) => A.key !==
|
|
1176
|
+
e[7] !== f || e[8] !== o ? (k = /* @__PURE__ */ a((F) => {
|
|
1177
|
+
const R = f.filter((A) => A.key !== F);
|
|
1162
1178
|
m(R), o && o(R);
|
|
1163
1179
|
}, "t3"), e[7] = f, e[8] = o, e[9] = k) : k = e[9];
|
|
1164
1180
|
const _ = k;
|
|
1165
1181
|
let w;
|
|
1166
1182
|
if (e[10] !== f || e[11] !== _) {
|
|
1167
|
-
let
|
|
1168
|
-
e[13] !== _ ? (
|
|
1183
|
+
let F;
|
|
1184
|
+
e[13] !== _ ? (F = /* @__PURE__ */ a((R) => ({
|
|
1169
1185
|
...R,
|
|
1170
1186
|
onRemove: /* @__PURE__ */ a(() => _(R.key), "onRemove")
|
|
1171
|
-
}), "t52"), e[13] = _, e[14] =
|
|
1187
|
+
}), "t52"), e[13] = _, e[14] = F) : F = e[14], w = f.map(F), e[10] = f, e[11] = _, e[12] = w;
|
|
1172
1188
|
} else
|
|
1173
1189
|
w = e[12];
|
|
1174
1190
|
const D = w;
|
|
1175
|
-
let
|
|
1176
|
-
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1177
|
-
let
|
|
1178
|
-
e[16] !== i || e[17] !== D || e[18] !== c || e[19] !== n || e[20] !== l ? (
|
|
1191
|
+
let V;
|
|
1192
|
+
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ u(le, { onClick: /* @__PURE__ */ a(() => h(!0), "onClick"), children: "Add Filter" }), e[15] = V) : V = e[15];
|
|
1193
|
+
let x;
|
|
1194
|
+
e[16] !== i || e[17] !== D || e[18] !== c || e[19] !== n || e[20] !== l ? (x = /* @__PURE__ */ u(Yl, { ref: n, filters: D, onSearch: c, actions: V, row: l, col: i }), e[16] = i, e[17] = D, e[18] = c, e[19] = n, e[20] = l, e[21] = x) : x = e[21];
|
|
1179
1195
|
let T;
|
|
1180
1196
|
e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ a(() => h(!1), "t7"), e[22] = T) : T = e[22];
|
|
1181
|
-
let
|
|
1182
|
-
e[23] !== f || e[24] !== r ? (
|
|
1197
|
+
let O;
|
|
1198
|
+
e[23] !== f || e[24] !== r ? (O = {
|
|
1183
1199
|
filters: r,
|
|
1184
1200
|
activeFilters: f
|
|
1185
|
-
}, e[23] = f, e[24] = r, e[25] =
|
|
1201
|
+
}, e[23] = f, e[24] = r, e[25] = O) : O = e[25];
|
|
1186
1202
|
let E;
|
|
1187
|
-
e[26] !==
|
|
1203
|
+
e[26] !== $ || e[27] !== d || e[28] !== O ? (E = /* @__PURE__ */ u(yl, { title: "Add Filter", open: d, onCancel: T, onSave: $, availableFilters: O }), e[26] = $, e[27] = d, e[28] = O, e[29] = E) : E = e[29];
|
|
1188
1204
|
let g;
|
|
1189
|
-
return e[30] !==
|
|
1190
|
-
|
|
1205
|
+
return e[30] !== x || e[31] !== E ? (g = /* @__PURE__ */ Y(ne, { children: [
|
|
1206
|
+
x,
|
|
1191
1207
|
E
|
|
1192
|
-
] }), e[30] =
|
|
1208
|
+
] }), e[30] = x, e[31] = E, e[32] = g) : g = e[32], g;
|
|
1193
1209
|
}
|
|
1194
|
-
a(
|
|
1195
|
-
const
|
|
1196
|
-
function
|
|
1210
|
+
a(Bl, "EditableFilterPanel");
|
|
1211
|
+
const Wl = "action";
|
|
1212
|
+
function kt(t) {
|
|
1197
1213
|
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");
|
|
1198
1214
|
}
|
|
1199
|
-
a(
|
|
1215
|
+
a(kt, "isActionCellProps");
|
|
1200
1216
|
function Fe(t) {
|
|
1201
1217
|
const e = U(8), {
|
|
1202
1218
|
data: n,
|
|
@@ -1214,8 +1230,8 @@ function Fe(t) {
|
|
|
1214
1230
|
return e[4] !== l || e[5] !== n.value || e[6] !== i ? (s = /* @__PURE__ */ u(le, { type: "link", ...l, onClick: i, style: r, children: n.value }), e[4] = l, e[5] = n.value, e[6] = i, e[7] = s) : s = e[7], s;
|
|
1215
1231
|
}
|
|
1216
1232
|
a(Fe, "ActionCell");
|
|
1217
|
-
const
|
|
1218
|
-
function
|
|
1233
|
+
const jl = "actions";
|
|
1234
|
+
function Gl(t) {
|
|
1219
1235
|
const {
|
|
1220
1236
|
data: e
|
|
1221
1237
|
} = t;
|
|
@@ -1226,40 +1242,40 @@ function jl(t) {
|
|
|
1226
1242
|
}))), typeof e.value.secondaryActions == "function" && (n = e.value.secondaryActions(e.record).map((l, i) => ({
|
|
1227
1243
|
key: i,
|
|
1228
1244
|
label: /* @__PURE__ */ u(ne, { children: l })
|
|
1229
|
-
}))), n.length > 0 ? /* @__PURE__ */
|
|
1230
|
-
|
|
1245
|
+
}))), n.length > 0 ? /* @__PURE__ */ Y(ae, { children: [
|
|
1246
|
+
kt(e.value.primaryAction) ? /* @__PURE__ */ u(Fe, { ...e.value.primaryAction }) : /* @__PURE__ */ u(ne, { children: e.value.primaryAction(e.record) }),
|
|
1231
1247
|
/* @__PURE__ */ u(De, { menu: {
|
|
1232
1248
|
items: n
|
|
1233
1249
|
}, children: /* @__PURE__ */ u(le, { type: "link", style: {
|
|
1234
1250
|
padding: 0
|
|
1235
|
-
}, children: /* @__PURE__ */
|
|
1251
|
+
}, children: /* @__PURE__ */ Y(ae, { children: [
|
|
1236
1252
|
e.value.moreActionTitle || "More",
|
|
1237
1253
|
/* @__PURE__ */ u(Oe, {})
|
|
1238
1254
|
] }) }) })
|
|
1239
|
-
] }) : /* @__PURE__ */ u(ne, { children:
|
|
1255
|
+
] }) : /* @__PURE__ */ u(ne, { children: kt(e.value.primaryAction) ? /* @__PURE__ */ u(Fe, { ...e.value.primaryAction }) : /* @__PURE__ */ u(ne, { children: e.value.primaryAction(e.record) }) });
|
|
1240
1256
|
}
|
|
1241
|
-
a(
|
|
1257
|
+
a(Gl, "renderActions");
|
|
1242
1258
|
function dn(t) {
|
|
1243
|
-
return
|
|
1259
|
+
return Gl(t);
|
|
1244
1260
|
}
|
|
1245
1261
|
a(dn, "ActionsCell");
|
|
1246
|
-
function Gl(t) {
|
|
1247
|
-
return St.isDayjs(t) ? t : St(t);
|
|
1248
|
-
}
|
|
1249
|
-
a(Gl, "parseDayjs");
|
|
1250
1262
|
function Kl(t) {
|
|
1251
|
-
return t
|
|
1263
|
+
return Tt.isDayjs(t) ? t : Tt(t);
|
|
1252
1264
|
}
|
|
1253
|
-
a(Kl, "
|
|
1265
|
+
a(Kl, "parseDayjs");
|
|
1254
1266
|
function Ql(t) {
|
|
1267
|
+
return t == null;
|
|
1268
|
+
}
|
|
1269
|
+
a(Ql, "isNullOrUndefined");
|
|
1270
|
+
function ql(t) {
|
|
1255
1271
|
if (typeof t != "string" || t.trim() === "")
|
|
1256
1272
|
return !1;
|
|
1257
1273
|
const e = t.trim().toLowerCase();
|
|
1258
1274
|
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;
|
|
1259
1275
|
}
|
|
1260
|
-
a(
|
|
1261
|
-
const
|
|
1262
|
-
function
|
|
1276
|
+
a(ql, "isValidImageSrc");
|
|
1277
|
+
const Zl = "avatar";
|
|
1278
|
+
function Xl(t) {
|
|
1263
1279
|
const e = U(10), {
|
|
1264
1280
|
data: n,
|
|
1265
1281
|
attributes: l
|
|
@@ -1269,22 +1285,22 @@ function Zl(t) {
|
|
|
1269
1285
|
const r = i;
|
|
1270
1286
|
if (!n.value) {
|
|
1271
1287
|
let c;
|
|
1272
|
-
return e[2] !== r ? (c = /* @__PURE__ */ u(
|
|
1288
|
+
return e[2] !== r ? (c = /* @__PURE__ */ u(_t, { ...r }), e[2] = r, e[3] = c) : c = e[3], c;
|
|
1273
1289
|
}
|
|
1274
|
-
if (
|
|
1290
|
+
if (ql(n.value)) {
|
|
1275
1291
|
let c;
|
|
1276
|
-
return e[4] !== r || e[5] !== n.value ? (c = /* @__PURE__ */ u(
|
|
1292
|
+
return e[4] !== r || e[5] !== n.value ? (c = /* @__PURE__ */ u(_t, { src: n.value, ...r }), e[4] = r, e[5] = n.value, e[6] = c) : c = e[6], c;
|
|
1277
1293
|
}
|
|
1278
1294
|
let s;
|
|
1279
|
-
return e[7] !== r || e[8] !== n.value ? (s = /* @__PURE__ */ u(
|
|
1295
|
+
return e[7] !== r || e[8] !== n.value ? (s = /* @__PURE__ */ u(_t, { ...r, children: n.value }), e[7] = r, e[8] = n.value, e[9] = s) : s = e[9], s;
|
|
1280
1296
|
}
|
|
1281
|
-
a(
|
|
1282
|
-
var Je = { exports: {} },
|
|
1283
|
-
function
|
|
1284
|
-
return
|
|
1297
|
+
a(Xl, "AvatarCell");
|
|
1298
|
+
var Je = { exports: {} }, Jl = Je.exports, Mt;
|
|
1299
|
+
function ei() {
|
|
1300
|
+
return Mt || (Mt = 1, (function(t, e) {
|
|
1285
1301
|
(function(n, l) {
|
|
1286
1302
|
t.exports = l();
|
|
1287
|
-
})(
|
|
1303
|
+
})(Jl, (function() {
|
|
1288
1304
|
return function(n, l, i) {
|
|
1289
1305
|
var r = "h:mm A", s = { lastDay: "[Yesterday at] " + r, sameDay: "[Today at] " + r, nextDay: "[Tomorrow at] " + r, nextWeek: "dddd [at] " + r, lastWeek: "[Last] dddd [at] " + r, sameElse: "MM/DD/YYYY" };
|
|
1290
1306
|
l.prototype.calendar = function(c, o) {
|
|
@@ -1295,11 +1311,11 @@ function Jl() {
|
|
|
1295
1311
|
}));
|
|
1296
1312
|
})(Je)), Je.exports;
|
|
1297
1313
|
}
|
|
1298
|
-
a(
|
|
1299
|
-
var
|
|
1300
|
-
const
|
|
1314
|
+
a(ei, "requireCalendar");
|
|
1315
|
+
var ti = ei();
|
|
1316
|
+
const ni = /* @__PURE__ */ on(ti), {
|
|
1301
1317
|
Text: Ze
|
|
1302
|
-
} = ke,
|
|
1318
|
+
} = ke, li = "datetime", et = "YYYY-MM-DD HH:mm:ss";
|
|
1303
1319
|
function mn(t) {
|
|
1304
1320
|
const e = U(10), {
|
|
1305
1321
|
data: n,
|
|
@@ -1317,7 +1333,7 @@ function mn(t) {
|
|
|
1317
1333
|
c = /* @__PURE__ */ u(Ze, { ...d, children: "-" });
|
|
1318
1334
|
break e;
|
|
1319
1335
|
}
|
|
1320
|
-
const y =
|
|
1336
|
+
const y = Kl(n.value);
|
|
1321
1337
|
if (!y.isValid()) {
|
|
1322
1338
|
c = /* @__PURE__ */ u(Ze, { ...d, children: "-" });
|
|
1323
1339
|
break e;
|
|
@@ -1337,8 +1353,8 @@ function mn(t) {
|
|
|
1337
1353
|
return e[6] !== i || e[7] !== r || e[8] !== s ? (o = /* @__PURE__ */ u(i, { ...r, children: s }), e[6] = i, e[7] = r, e[8] = s, e[9] = o) : o = e[9], o;
|
|
1338
1354
|
}
|
|
1339
1355
|
a(mn, "DateTimeCell");
|
|
1340
|
-
|
|
1341
|
-
const
|
|
1356
|
+
Tt.extend(ni);
|
|
1357
|
+
const ii = "calendar-time", ri = {
|
|
1342
1358
|
sameDay: "[今天] HH:mm",
|
|
1343
1359
|
nextDay: "[明天] HH:mm",
|
|
1344
1360
|
lastDay: "[昨天] HH:mm",
|
|
@@ -1346,7 +1362,7 @@ const li = "calendar-time", ii = {
|
|
|
1346
1362
|
lastWeek: et,
|
|
1347
1363
|
sameElse: et
|
|
1348
1364
|
};
|
|
1349
|
-
function
|
|
1365
|
+
function ai(t) {
|
|
1350
1366
|
const e = U(13), {
|
|
1351
1367
|
data: n,
|
|
1352
1368
|
attributes: l
|
|
@@ -1359,7 +1375,7 @@ function ri(t) {
|
|
|
1359
1375
|
formats: s,
|
|
1360
1376
|
...c
|
|
1361
1377
|
} = r, e[2] = r, e[3] = s, e[4] = c) : (s = e[3], c = e[4]);
|
|
1362
|
-
const o = s === void 0 ?
|
|
1378
|
+
const o = s === void 0 ? ri : s;
|
|
1363
1379
|
let f;
|
|
1364
1380
|
e[5] !== o ? (f = /* @__PURE__ */ a((y) => y.calendar(null, o), "t3"), e[5] = o, e[6] = f) : f = e[6];
|
|
1365
1381
|
const m = f;
|
|
@@ -1371,17 +1387,17 @@ function ri(t) {
|
|
|
1371
1387
|
let h;
|
|
1372
1388
|
return e[10] !== n || e[11] !== d ? (h = /* @__PURE__ */ u(mn, { data: n, attributes: d }), e[10] = n, e[11] = d, e[12] = h) : h = e[12], h;
|
|
1373
1389
|
}
|
|
1374
|
-
a(
|
|
1390
|
+
a(ai, "CalendarTimeCell");
|
|
1375
1391
|
const {
|
|
1376
|
-
Text:
|
|
1377
|
-
} = ke,
|
|
1392
|
+
Text: si
|
|
1393
|
+
} = ke, oi = "text";
|
|
1378
1394
|
function hn(t) {
|
|
1379
1395
|
const e = U(3), n = t.attributes?.children ?? (t.data.value || "-");
|
|
1380
1396
|
let l;
|
|
1381
|
-
return e[0] !== t.attributes || e[1] !== n ? (l = /* @__PURE__ */ u(
|
|
1397
|
+
return e[0] !== t.attributes || e[1] !== n ? (l = /* @__PURE__ */ u(si, { ...t.attributes, children: n }), e[0] = t.attributes, e[1] = n, e[2] = l) : l = e[2], l;
|
|
1382
1398
|
}
|
|
1383
1399
|
a(hn, "TextCell");
|
|
1384
|
-
const
|
|
1400
|
+
const ci = "tag";
|
|
1385
1401
|
function yn(t) {
|
|
1386
1402
|
const e = U(3), {
|
|
1387
1403
|
data: n,
|
|
@@ -1391,11 +1407,11 @@ function yn(t) {
|
|
|
1391
1407
|
return null;
|
|
1392
1408
|
const i = l?.children ?? n.value;
|
|
1393
1409
|
let r;
|
|
1394
|
-
return e[0] !== l || e[1] !== i ? (r = /* @__PURE__ */ u(
|
|
1410
|
+
return e[0] !== l || e[1] !== i ? (r = /* @__PURE__ */ u(Dt, { ...l, children: i }), e[0] = l, e[1] = i, e[2] = r) : r = e[2], r;
|
|
1395
1411
|
}
|
|
1396
1412
|
a(yn, "TagCell");
|
|
1397
|
-
const
|
|
1398
|
-
function
|
|
1413
|
+
const ui = "tags";
|
|
1414
|
+
function fi(t) {
|
|
1399
1415
|
const e = U(14), {
|
|
1400
1416
|
space: n,
|
|
1401
1417
|
data: l,
|
|
@@ -1422,9 +1438,9 @@ function ui(t) {
|
|
|
1422
1438
|
let o;
|
|
1423
1439
|
return e[11] !== n || e[12] !== c ? (o = /* @__PURE__ */ u(ae, { ...n, children: c }), e[11] = n, e[12] = c, e[13] = o) : o = e[13], o;
|
|
1424
1440
|
}
|
|
1425
|
-
a(
|
|
1426
|
-
const
|
|
1427
|
-
function
|
|
1441
|
+
a(fi, "TagsCell");
|
|
1442
|
+
const di = "image";
|
|
1443
|
+
function mi(t) {
|
|
1428
1444
|
const e = U(6), {
|
|
1429
1445
|
data: n,
|
|
1430
1446
|
attributes: l
|
|
@@ -1434,14 +1450,14 @@ function di(t) {
|
|
|
1434
1450
|
const r = i;
|
|
1435
1451
|
if (!n.value) {
|
|
1436
1452
|
let c;
|
|
1437
|
-
return e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ u(
|
|
1453
|
+
return e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ u(nt, { description: null }), e[2] = c) : c = e[2], c;
|
|
1438
1454
|
}
|
|
1439
1455
|
let s;
|
|
1440
|
-
return e[3] !== r || e[4] !== n.value ? (s = /* @__PURE__ */ u(
|
|
1456
|
+
return e[3] !== r || e[4] !== n.value ? (s = /* @__PURE__ */ u(bt, { src: n.value, ...r }), e[3] = r, e[4] = n.value, e[5] = s) : s = e[5], s;
|
|
1441
1457
|
}
|
|
1442
|
-
a(
|
|
1443
|
-
const
|
|
1444
|
-
function
|
|
1458
|
+
a(mi, "ImageCell");
|
|
1459
|
+
const hi = "image-group";
|
|
1460
|
+
function yi(t) {
|
|
1445
1461
|
const e = U(14), {
|
|
1446
1462
|
data: n,
|
|
1447
1463
|
attributes: l
|
|
@@ -1451,26 +1467,26 @@ function hi(t) {
|
|
|
1451
1467
|
const r = i;
|
|
1452
1468
|
if (!n.value || !Array.isArray(n.value) || n.value.length === 0) {
|
|
1453
1469
|
let h;
|
|
1454
|
-
return e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ u(
|
|
1470
|
+
return e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ u(nt, { description: null }), e[2] = h) : h = e[2], h;
|
|
1455
1471
|
}
|
|
1456
1472
|
const s = n.value.length > 1, c = r;
|
|
1457
1473
|
let o;
|
|
1458
|
-
e[3] !== n.value[0] || e[4] !== c ? (o = /* @__PURE__ */ u(
|
|
1474
|
+
e[3] !== n.value[0] || e[4] !== c ? (o = /* @__PURE__ */ u(bt, { src: n.value[0], ...c }), e[3] = n.value[0], e[4] = c, e[5] = o) : o = e[5];
|
|
1459
1475
|
const f = o;
|
|
1460
1476
|
let m;
|
|
1461
|
-
e[6] !== n.value.length || e[7] !== s || e[8] !== f ? (m = s ? /* @__PURE__ */ u(
|
|
1477
|
+
e[6] !== n.value.length || e[7] !== s || e[8] !== f ? (m = s ? /* @__PURE__ */ u(Nn, { count: n.value.length, children: f }) : f, e[6] = n.value.length, e[7] = s, e[8] = f, e[9] = m) : m = e[9];
|
|
1462
1478
|
let d;
|
|
1463
|
-
return e[10] !== r || e[11] !== n.value || e[12] !== m ? (d = /* @__PURE__ */ u(
|
|
1479
|
+
return e[10] !== r || e[11] !== n.value || e[12] !== m ? (d = /* @__PURE__ */ u(bt.PreviewGroup, { items: n.value, ...r, children: m }), e[10] = r, e[11] = n.value, e[12] = m, e[13] = d) : d = e[13], d;
|
|
1464
1480
|
}
|
|
1465
|
-
a(
|
|
1481
|
+
a(yi, "ImageGroupCell");
|
|
1466
1482
|
const {
|
|
1467
|
-
Link:
|
|
1468
|
-
} = ke,
|
|
1469
|
-
function
|
|
1483
|
+
Link: vi
|
|
1484
|
+
} = ke, _i = "link", gi = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, Ei = "mailto:";
|
|
1485
|
+
function bi(t) {
|
|
1470
1486
|
const e = U(9);
|
|
1471
1487
|
let n;
|
|
1472
|
-
e[0] !== t.data.value ? (n = t.data.value &&
|
|
1473
|
-
const l = n, i = t.attributes?.href ?? (l ? `${
|
|
1488
|
+
e[0] !== t.data.value ? (n = t.data.value && gi.test(t.data.value), e[0] = t.data.value, e[1] = n) : n = e[1];
|
|
1489
|
+
const l = n, i = t.attributes?.href ?? (l ? `${Ei}${t.data.value}` : t.data.value);
|
|
1474
1490
|
let r;
|
|
1475
1491
|
e[2] !== l || e[3] !== t.attributes ? (r = l ? t.attributes : {
|
|
1476
1492
|
...t.attributes,
|
|
@@ -1480,9 +1496,9 @@ function Ei(t) {
|
|
|
1480
1496
|
}, e[2] = l, e[3] = t.attributes, e[4] = r) : r = e[4];
|
|
1481
1497
|
const s = r, c = t.attributes?.children ?? t.data.value;
|
|
1482
1498
|
let o;
|
|
1483
|
-
return e[5] !== i || e[6] !== s || e[7] !== c ? (o = /* @__PURE__ */ u(
|
|
1499
|
+
return e[5] !== i || e[6] !== s || e[7] !== c ? (o = /* @__PURE__ */ u(vi, { href: i, ...s, children: c }), e[5] = i, e[6] = s, e[7] = c, e[8] = o) : o = e[8], o;
|
|
1484
1500
|
}
|
|
1485
|
-
a(
|
|
1501
|
+
a(bi, "LinkCell");
|
|
1486
1502
|
const he = {
|
|
1487
1503
|
currency: "CNY",
|
|
1488
1504
|
currencyDisplay: "symbol",
|
|
@@ -1490,8 +1506,8 @@ const he = {
|
|
|
1490
1506
|
locale: "zh-CN",
|
|
1491
1507
|
useGrouping: !0,
|
|
1492
1508
|
fallback: "-"
|
|
1493
|
-
},
|
|
1494
|
-
function
|
|
1509
|
+
}, pi = "currency";
|
|
1510
|
+
function Si(t, e = he) {
|
|
1495
1511
|
const {
|
|
1496
1512
|
currency: n = he.currency,
|
|
1497
1513
|
currencyDisplay: l = he.currencyDisplay,
|
|
@@ -1499,9 +1515,9 @@ function pi(t, e = he) {
|
|
|
1499
1515
|
locale: r = he.locale,
|
|
1500
1516
|
useGrouping: s = he.useGrouping,
|
|
1501
1517
|
fallback: c = he.fallback
|
|
1502
|
-
} = e, o =
|
|
1518
|
+
} = e, o = Ti(t);
|
|
1503
1519
|
return isNaN(o) || !isFinite(o) ? c : new Intl.NumberFormat(r, {
|
|
1504
|
-
style:
|
|
1520
|
+
style: pi,
|
|
1505
1521
|
currency: n,
|
|
1506
1522
|
currencyDisplay: l,
|
|
1507
1523
|
minimumFractionDigits: i,
|
|
@@ -1509,20 +1525,20 @@ function pi(t, e = he) {
|
|
|
1509
1525
|
useGrouping: s
|
|
1510
1526
|
}).format(o);
|
|
1511
1527
|
}
|
|
1512
|
-
a(
|
|
1513
|
-
function
|
|
1528
|
+
a(Si, "formatCurrency");
|
|
1529
|
+
function Ti(t) {
|
|
1514
1530
|
if (typeof t == "number")
|
|
1515
1531
|
return t;
|
|
1516
|
-
if (
|
|
1532
|
+
if (Ql(t))
|
|
1517
1533
|
return NaN;
|
|
1518
1534
|
const e = t.replace(/[^\d.-]/g, "");
|
|
1519
1535
|
return parseFloat(e);
|
|
1520
1536
|
}
|
|
1521
|
-
a(
|
|
1537
|
+
a(Ti, "parseAmount");
|
|
1522
1538
|
const {
|
|
1523
|
-
Text:
|
|
1524
|
-
} = ke,
|
|
1525
|
-
function
|
|
1539
|
+
Text: Ci
|
|
1540
|
+
} = ke, wi = "currency";
|
|
1541
|
+
function Ai(t) {
|
|
1526
1542
|
const e = U(11), {
|
|
1527
1543
|
data: n,
|
|
1528
1544
|
attributes: l
|
|
@@ -1536,15 +1552,15 @@ function wi(t) {
|
|
|
1536
1552
|
...c
|
|
1537
1553
|
} = r, e[2] = r, e[3] = s, e[4] = c) : (s = e[3], c = e[4]);
|
|
1538
1554
|
let o;
|
|
1539
|
-
e[5] !== n.value || e[6] !== s ? (o =
|
|
1555
|
+
e[5] !== n.value || e[6] !== s ? (o = Si(n.value, s), e[5] = n.value, e[6] = s, e[7] = o) : o = e[7];
|
|
1540
1556
|
const f = o, m = c.children ?? f;
|
|
1541
1557
|
let d;
|
|
1542
|
-
return e[8] !== m || e[9] !== c ? (d = /* @__PURE__ */ u(
|
|
1558
|
+
return e[8] !== m || e[9] !== c ? (d = /* @__PURE__ */ u(Ci, { ...c, children: m }), e[8] = m, e[9] = c, e[10] = d) : d = e[10], d;
|
|
1543
1559
|
}
|
|
1544
|
-
a(
|
|
1545
|
-
const
|
|
1546
|
-
function
|
|
1547
|
-
const n =
|
|
1560
|
+
a(Ai, "CurrencyCell");
|
|
1561
|
+
const Di = Pe.create([[Wl, Fe], [jl, dn], [oi, hn], [ci, yn], [ui, fi], [li, mn], [ii, ai], [di, mi], [hi, yi], [_i, bi], [wi, Ai], [Zl, Xl]]);
|
|
1562
|
+
function Ni(t, e) {
|
|
1563
|
+
const n = Di.get(t);
|
|
1548
1564
|
if (n)
|
|
1549
1565
|
return (l, i, r) => n({
|
|
1550
1566
|
attributes: e,
|
|
@@ -1555,11 +1571,11 @@ function Di(t, e) {
|
|
|
1555
1571
|
}
|
|
1556
1572
|
});
|
|
1557
1573
|
}
|
|
1558
|
-
a(
|
|
1559
|
-
const
|
|
1560
|
-
configurableColumnHeader:
|
|
1574
|
+
a(Ni, "typedCellRender");
|
|
1575
|
+
const Ii = "_configurableColumnHeader_1gpsi_1", Vi = {
|
|
1576
|
+
configurableColumnHeader: Ii
|
|
1561
1577
|
};
|
|
1562
|
-
function
|
|
1578
|
+
function Lt(t) {
|
|
1563
1579
|
const e = U(11);
|
|
1564
1580
|
let n;
|
|
1565
1581
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
@@ -1569,23 +1585,23 @@ function Mt(t) {
|
|
|
1569
1585
|
let i;
|
|
1570
1586
|
e[1] !== t ? (i = /* @__PURE__ */ a((o) => t.onVisibleChange(!o.target.checked), "t2"), e[1] = t, e[2] = i) : i = e[2];
|
|
1571
1587
|
let r;
|
|
1572
|
-
e[3] !== t.columnDefinition.label || e[4] !== t.columnDefinition.primaryKey || e[5] !== l || e[6] !== i ? (r = /* @__PURE__ */ u(
|
|
1588
|
+
e[3] !== t.columnDefinition.label || e[4] !== t.columnDefinition.primaryKey || e[5] !== l || e[6] !== i ? (r = /* @__PURE__ */ u(jt, { checked: l, disabled: t.columnDefinition.primaryKey, onChange: i, children: t.columnDefinition.label }), e[3] = t.columnDefinition.label, e[4] = t.columnDefinition.primaryKey, e[5] = l, e[6] = i, e[7] = r) : r = e[7];
|
|
1573
1589
|
let s;
|
|
1574
1590
|
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ u(en, {}), e[8] = s) : s = e[8];
|
|
1575
1591
|
let c;
|
|
1576
|
-
return e[9] !== r ? (c = /* @__PURE__ */
|
|
1592
|
+
return e[9] !== r ? (c = /* @__PURE__ */ Y(ce, { align: "center", justify: "space-between", style: n, children: [
|
|
1577
1593
|
r,
|
|
1578
1594
|
s
|
|
1579
1595
|
] }), e[9] = r, e[10] = c) : c = e[10], c;
|
|
1580
1596
|
}
|
|
1581
|
-
a(
|
|
1582
|
-
const
|
|
1583
|
-
item:
|
|
1584
|
-
dragging:
|
|
1585
|
-
tips:
|
|
1586
|
-
groupTitle:
|
|
1597
|
+
a(Lt, "TableFieldItem");
|
|
1598
|
+
const $i = "_item_59wbi_1", Oi = "_dragging_59wbi_9", Fi = "_tips_59wbi_31", Ri = "_groupTitle_59wbi_38", Ae = {
|
|
1599
|
+
item: $i,
|
|
1600
|
+
dragging: Oi,
|
|
1601
|
+
tips: Fi,
|
|
1602
|
+
groupTitle: Ri
|
|
1587
1603
|
}, vn = Kt(void 0);
|
|
1588
|
-
function
|
|
1604
|
+
function Pi(t) {
|
|
1589
1605
|
const e = U(8);
|
|
1590
1606
|
let n, l;
|
|
1591
1607
|
e[0] !== t ? ({
|
|
@@ -1599,14 +1615,14 @@ function Ri(t) {
|
|
|
1599
1615
|
let r;
|
|
1600
1616
|
return e[5] !== n || e[6] !== i ? (r = /* @__PURE__ */ u(vn.Provider, { value: i, children: n }), e[5] = n, e[6] = i, e[7] = r) : r = e[7], r;
|
|
1601
1617
|
}
|
|
1602
|
-
a(
|
|
1603
|
-
function
|
|
1618
|
+
a(Pi, "ActiveViewStateContextProvider");
|
|
1619
|
+
function Nt() {
|
|
1604
1620
|
const t = Qt(vn);
|
|
1605
1621
|
if (!t)
|
|
1606
1622
|
throw new Error("useActiveViewStateContext must be used within a ActiveViewStateContextProvider");
|
|
1607
1623
|
return t;
|
|
1608
1624
|
}
|
|
1609
|
-
a(
|
|
1625
|
+
a(Nt, "useActiveViewStateContext");
|
|
1610
1626
|
function xi(t) {
|
|
1611
1627
|
const e = U(12), {
|
|
1612
1628
|
viewDefinition: n,
|
|
@@ -1614,56 +1630,56 @@ function xi(t) {
|
|
|
1614
1630
|
} = t, [i, r] = q(null), {
|
|
1615
1631
|
activeView: s,
|
|
1616
1632
|
updateColumns: c
|
|
1617
|
-
} =
|
|
1633
|
+
} = Nt();
|
|
1618
1634
|
let o;
|
|
1619
1635
|
if (e[0] !== s.columns || e[1] !== l || e[2] !== i || e[3] !== c || e[4] !== n) {
|
|
1620
|
-
const f = s.columns.map(
|
|
1621
|
-
const
|
|
1636
|
+
const f = s.columns.map(Yi), m = f.filter(Hi), d = f.filter(Ui), h = f.filter(Li), y = /* @__PURE__ */ a((E, g) => {
|
|
1637
|
+
const F = f.map((R, A) => A === E ? {
|
|
1622
1638
|
...R,
|
|
1623
1639
|
hidden: g
|
|
1624
1640
|
} : R);
|
|
1625
|
-
c(
|
|
1641
|
+
c(F);
|
|
1626
1642
|
}, "handleVisibilityChange");
|
|
1627
1643
|
let v;
|
|
1628
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ a((E, g,
|
|
1644
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ a((E, g, F) => {
|
|
1629
1645
|
const R = E.currentTarget.cloneNode(!0);
|
|
1630
1646
|
R.style.backgroundColor = "#F5F5F5", R.style.transform = "scale(1.02)", R.style.opacity = "1.0", R.style.boxShadow = "0 2px 8px rgba(0, 0, 0, 0.15)", R.style.position = "absolute", R.style.top = "-1000px", R.style.width = `${E.currentTarget.clientWidth}px`, R.style.height = `${E.currentTarget.clientHeight}px`, document.body.appendChild(R), E.dataTransfer.setDragImage(R, E.nativeEvent.offsetX, E.nativeEvent.offsetY), setTimeout(() => document.body.removeChild(R), 0), E.dataTransfer.effectAllowed = "move", r({
|
|
1631
|
-
index:
|
|
1647
|
+
index: F,
|
|
1632
1648
|
group: g
|
|
1633
1649
|
});
|
|
1634
1650
|
}, "t1"), e[6] = v) : v = e[6];
|
|
1635
|
-
const S = v,
|
|
1636
|
-
let
|
|
1637
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1651
|
+
const S = v, I = Mi;
|
|
1652
|
+
let $;
|
|
1653
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ a(() => {
|
|
1638
1654
|
r(null);
|
|
1639
|
-
}, "t2"), e[7] =
|
|
1640
|
-
const k =
|
|
1641
|
-
if (!i || i.index ===
|
|
1655
|
+
}, "t2"), e[7] = $) : $ = e[7];
|
|
1656
|
+
const k = $, _ = /* @__PURE__ */ a((E, g, F) => {
|
|
1657
|
+
if (!i || i.index === F || g === "fixed" && m.length >= 3)
|
|
1642
1658
|
return;
|
|
1643
|
-
const R = g === "fixed" ?
|
|
1644
|
-
b.fixed = g === "fixed", A.splice(R, 0, b), A.forEach(
|
|
1659
|
+
const R = g === "fixed" ? F + 1 : F, A = [...f], [b] = A.splice(i.index, 1);
|
|
1660
|
+
b.fixed = g === "fixed", A.splice(R, 0, b), A.forEach(ki), c(A);
|
|
1645
1661
|
}, "handleDrop"), w = /* @__PURE__ */ a((E, g) => {
|
|
1646
|
-
const
|
|
1647
|
-
return
|
|
1662
|
+
const F = n.fields.find((R) => R.name === E.name);
|
|
1663
|
+
return F ? /* @__PURE__ */ u("div", { className: `${Ae.item} ${i?.index === E.index ? Ae.dragging : ""}`, draggable: !F.primaryKey, onDragStart: /* @__PURE__ */ a((R) => S(R, g, E.index), "onDragStart"), onDragOver: I, onDragEnd: k, onDrop: /* @__PURE__ */ a((R) => _(R, g, E.index), "onDrop"), children: /* @__PURE__ */ u(Lt, { columnDefinition: F, fixed: E.fixed || !1, hidden: E.hidden, onVisibleChange: /* @__PURE__ */ a((R) => y(E.index, R), "onVisibleChange") }) }, F.name) : /* @__PURE__ */ u(ne, {});
|
|
1648
1664
|
}, "renderDraggableItem"), D = /* @__PURE__ */ a((E) => {
|
|
1649
|
-
const g = n.fields.find((
|
|
1650
|
-
return g ? /* @__PURE__ */ u("div", { className: Ae.item, children: /* @__PURE__ */ u(
|
|
1665
|
+
const g = n.fields.find((F) => F.name === E.name);
|
|
1666
|
+
return g ? /* @__PURE__ */ u("div", { className: Ae.item, children: /* @__PURE__ */ u(Lt, { columnDefinition: g, fixed: E.fixed || !1, hidden: E.hidden, onVisibleChange: /* @__PURE__ */ a((F) => y(E.index, F), "onVisibleChange") }) }, g.name) : /* @__PURE__ */ u(ne, {});
|
|
1651
1667
|
}, "renderStaticItem");
|
|
1652
|
-
let
|
|
1653
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1668
|
+
let V;
|
|
1669
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = {
|
|
1654
1670
|
display: "flex"
|
|
1655
|
-
}, e[8] =
|
|
1656
|
-
let
|
|
1657
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1671
|
+
}, e[8] = V) : V = e[8];
|
|
1672
|
+
let x;
|
|
1673
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ u("div", { className: Ae.groupTitle, children: "已显示字段" }), e[9] = x) : x = e[9];
|
|
1658
1674
|
let T;
|
|
1659
1675
|
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ u("div", { className: Ae.tips, children: "请将需要锁定的字段拖至上方(最多支持3列)" }), e[10] = T) : T = e[10];
|
|
1660
|
-
let
|
|
1661
|
-
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1662
|
-
|
|
1676
|
+
let O;
|
|
1677
|
+
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ u("div", { className: Ae.groupTitle, children: "未显示字段" }), e[11] = O) : O = e[11], o = /* @__PURE__ */ Y(ae, { size: 0, orientation: "vertical", style: V, className: l, children: [
|
|
1678
|
+
x,
|
|
1663
1679
|
m.map((E) => w(E, "fixed")),
|
|
1664
1680
|
T,
|
|
1665
1681
|
d.map((E) => w(E, "visible")),
|
|
1666
|
-
|
|
1682
|
+
O,
|
|
1667
1683
|
h.map((E) => D(E))
|
|
1668
1684
|
] }), e[0] = s.columns, e[1] = l, e[2] = i, e[3] = c, e[4] = n, e[5] = o;
|
|
1669
1685
|
} else
|
|
@@ -1671,44 +1687,44 @@ function xi(t) {
|
|
|
1671
1687
|
return o;
|
|
1672
1688
|
}
|
|
1673
1689
|
a(xi, "TableSettingPanel");
|
|
1674
|
-
function
|
|
1690
|
+
function ki(t, e) {
|
|
1675
1691
|
return t.index = e;
|
|
1676
1692
|
}
|
|
1677
|
-
a(
|
|
1678
|
-
function
|
|
1693
|
+
a(ki, "_temp6");
|
|
1694
|
+
function Mi(t) {
|
|
1679
1695
|
t.preventDefault(), t.dataTransfer.dropEffect = "move";
|
|
1680
1696
|
}
|
|
1681
|
-
a(
|
|
1682
|
-
function
|
|
1697
|
+
a(Mi, "_temp5$1");
|
|
1698
|
+
function Li(t) {
|
|
1683
1699
|
return t.hidden;
|
|
1684
1700
|
}
|
|
1685
|
-
a(
|
|
1686
|
-
function
|
|
1701
|
+
a(Li, "_temp4$2");
|
|
1702
|
+
function Ui(t) {
|
|
1687
1703
|
return !t.hidden && !t.fixed;
|
|
1688
1704
|
}
|
|
1689
|
-
a(
|
|
1690
|
-
function
|
|
1705
|
+
a(Ui, "_temp3$2");
|
|
1706
|
+
function Hi(t) {
|
|
1691
1707
|
return t.fixed;
|
|
1692
1708
|
}
|
|
1693
|
-
a(
|
|
1694
|
-
function
|
|
1709
|
+
a(Hi, "_temp2$3");
|
|
1710
|
+
function Yi(t, e) {
|
|
1695
1711
|
return {
|
|
1696
1712
|
...t,
|
|
1697
1713
|
index: e
|
|
1698
1714
|
};
|
|
1699
1715
|
}
|
|
1700
|
-
a(
|
|
1701
|
-
const
|
|
1702
|
-
top:
|
|
1703
|
-
title:
|
|
1704
|
-
customCollapse:
|
|
1705
|
-
viewItem:
|
|
1706
|
-
active:
|
|
1707
|
-
viewName:
|
|
1708
|
-
viewNameText:
|
|
1709
|
-
viewNameTag:
|
|
1716
|
+
a(Yi, "_temp$8");
|
|
1717
|
+
const zi = "_top_1wlaq_1", Bi = "_title_1wlaq_4", Wi = "_customCollapse_1wlaq_8", ji = "_viewItem_1wlaq_24", Gi = "_active_1wlaq_32", Ki = "_viewName_1wlaq_36", Qi = "_viewNameText_1wlaq_48", qi = "_viewNameTag_1wlaq_85", de = {
|
|
1718
|
+
top: zi,
|
|
1719
|
+
title: Bi,
|
|
1720
|
+
customCollapse: Wi,
|
|
1721
|
+
viewItem: ji,
|
|
1722
|
+
active: Gi,
|
|
1723
|
+
viewName: Ki,
|
|
1724
|
+
viewNameText: Qi,
|
|
1725
|
+
viewNameTag: qi
|
|
1710
1726
|
};
|
|
1711
|
-
function
|
|
1727
|
+
function Zi(t) {
|
|
1712
1728
|
const e = U(18), {
|
|
1713
1729
|
view: n,
|
|
1714
1730
|
countUrl: l,
|
|
@@ -1728,26 +1744,26 @@ function qi(t) {
|
|
|
1728
1744
|
}, e[1] = l, e[2] = n.pagedQuery.condition, e[3] = s) : s = e[3];
|
|
1729
1745
|
const {
|
|
1730
1746
|
result: c
|
|
1731
|
-
} =
|
|
1747
|
+
} = Un(s), o = `${de.viewItem} ${i ? de.active : ""}`;
|
|
1732
1748
|
let f;
|
|
1733
1749
|
e[4] !== n.name ? (f = /* @__PURE__ */ u("span", { className: de.viewNameText, "data-tooltip": n.name, children: n.name }), e[4] = n.name, e[5] = f) : f = e[5];
|
|
1734
1750
|
let m;
|
|
1735
|
-
e[6] !== n.source ? (m = n.source === "SYSTEM" && /* @__PURE__ */ u(
|
|
1751
|
+
e[6] !== n.source ? (m = n.source === "SYSTEM" && /* @__PURE__ */ u(Dt, { className: de.viewNameTag, children: "系统" }), e[6] = n.source, e[7] = m) : m = e[7];
|
|
1736
1752
|
let d;
|
|
1737
|
-
e[8] !== f || e[9] !== m ? (d = /* @__PURE__ */
|
|
1753
|
+
e[8] !== f || e[9] !== m ? (d = /* @__PURE__ */ Y("div", { className: de.viewName, children: [
|
|
1738
1754
|
f,
|
|
1739
1755
|
m
|
|
1740
1756
|
] }), e[8] = f, e[9] = m, e[10] = d) : d = e[10];
|
|
1741
1757
|
let h;
|
|
1742
1758
|
e[11] !== i || e[12] !== c ? (h = !i && /* @__PURE__ */ u("div", { children: c && c > 999 ? "999+" : c || 0 }), e[11] = i, e[12] = c, e[13] = h) : h = e[13];
|
|
1743
1759
|
let y;
|
|
1744
|
-
return e[14] !== o || e[15] !== d || e[16] !== h ? (y = /* @__PURE__ */
|
|
1760
|
+
return e[14] !== o || e[15] !== d || e[16] !== h ? (y = /* @__PURE__ */ Y(ce, { align: "center", justify: "space-between", className: o, children: [
|
|
1745
1761
|
d,
|
|
1746
1762
|
h
|
|
1747
1763
|
] }), e[14] = o, e[15] = d, e[16] = h, e[17] = y) : y = e[17], y;
|
|
1748
1764
|
}
|
|
1749
|
-
a(
|
|
1750
|
-
function
|
|
1765
|
+
a(Zi, "ViewItem");
|
|
1766
|
+
function Ut(t) {
|
|
1751
1767
|
const e = U(11), {
|
|
1752
1768
|
views: n,
|
|
1753
1769
|
activeView: l,
|
|
@@ -1760,14 +1776,14 @@ function Lt(t) {
|
|
|
1760
1776
|
e[5] !== l || e[6] !== i || e[7] !== r ? (o = /* @__PURE__ */ a((f) => /* @__PURE__ */ u("div", { onClick: /* @__PURE__ */ a(() => r(f), "onClick"), style: {
|
|
1761
1777
|
width: "100%",
|
|
1762
1778
|
cursor: "pointer"
|
|
1763
|
-
}, children: /* @__PURE__ */ u(
|
|
1779
|
+
}, children: /* @__PURE__ */ u(Zi, { active: f.id === l.id, countUrl: i, view: f }) }, f.id), "t12"), e[5] = l, e[6] = i, e[7] = r, e[8] = o) : o = e[8], s = n.map(o), e[0] = l, e[1] = i, e[2] = r, e[3] = n, e[4] = s;
|
|
1764
1780
|
} else
|
|
1765
1781
|
s = e[4];
|
|
1766
1782
|
let c;
|
|
1767
1783
|
return e[9] !== s ? (c = /* @__PURE__ */ u(ce, { vertical: !0, align: "start", children: s }), e[9] = s, e[10] = c) : c = e[10], c;
|
|
1768
1784
|
}
|
|
1769
|
-
a(
|
|
1770
|
-
const
|
|
1785
|
+
a(Ut, "ViewItemGroup");
|
|
1786
|
+
const Xi = [{
|
|
1771
1787
|
label: "1 分钟",
|
|
1772
1788
|
key: "1",
|
|
1773
1789
|
refreshInterval: 60 * 1e3
|
|
@@ -1779,23 +1795,23 @@ const Zi = [{
|
|
|
1779
1795
|
label: "5 分钟",
|
|
1780
1796
|
key: "5",
|
|
1781
1797
|
refreshInterval: 300 * 1e3
|
|
1782
|
-
}],
|
|
1798
|
+
}], Ht = {
|
|
1783
1799
|
label: "从不",
|
|
1784
1800
|
key: "0",
|
|
1785
1801
|
refreshInterval: 0
|
|
1786
1802
|
};
|
|
1787
|
-
function
|
|
1803
|
+
function Ji(t) {
|
|
1788
1804
|
const e = U(25), {
|
|
1789
1805
|
items: n
|
|
1790
|
-
} = t, l = n === void 0 ?
|
|
1806
|
+
} = t, l = n === void 0 ? Xi : n;
|
|
1791
1807
|
let i;
|
|
1792
|
-
e[0] !== l ? (i = [...l,
|
|
1793
|
-
const r = i, [s, c] = q(
|
|
1808
|
+
e[0] !== l ? (i = [...l, Ht], e[0] = l, e[1] = i) : i = e[1];
|
|
1809
|
+
const r = i, [s, c] = q(Ht), o = Le(null), {
|
|
1794
1810
|
publish: f
|
|
1795
|
-
} =
|
|
1811
|
+
} = It();
|
|
1796
1812
|
let m;
|
|
1797
|
-
e[2] !== r ? (m = /* @__PURE__ */ a((
|
|
1798
|
-
const T = r.find((
|
|
1813
|
+
e[2] !== r ? (m = /* @__PURE__ */ a((x) => {
|
|
1814
|
+
const T = r.find((O) => O.key === x.key);
|
|
1799
1815
|
T && c(T);
|
|
1800
1816
|
}, "t3"), e[2] = r, e[3] = m) : m = e[3];
|
|
1801
1817
|
const d = m;
|
|
@@ -1808,101 +1824,101 @@ function Xi(t) {
|
|
|
1808
1824
|
let y;
|
|
1809
1825
|
e[7] !== f || e[8] !== s ? (y = [s, f], e[7] = f, e[8] = s, e[9] = y) : y = e[9], me(h, y);
|
|
1810
1826
|
let v;
|
|
1811
|
-
e[10] !== r ? (v = r.map(
|
|
1827
|
+
e[10] !== r ? (v = r.map(er), e[10] = r, e[11] = v) : v = e[11];
|
|
1812
1828
|
const S = v;
|
|
1813
|
-
let
|
|
1814
|
-
e[12] !== s.key ? (
|
|
1815
|
-
let
|
|
1816
|
-
e[14] !== d || e[15] !== S || e[16] !==
|
|
1829
|
+
let I;
|
|
1830
|
+
e[12] !== s.key ? (I = [s.key], e[12] = s.key, e[13] = I) : I = e[13];
|
|
1831
|
+
let $;
|
|
1832
|
+
e[14] !== d || e[15] !== S || e[16] !== I ? ($ = {
|
|
1817
1833
|
items: S,
|
|
1818
1834
|
onClick: d,
|
|
1819
1835
|
selectable: !0,
|
|
1820
|
-
defaultSelectedKeys:
|
|
1821
|
-
}, e[14] = d, e[15] = S, e[16] =
|
|
1822
|
-
const k =
|
|
1836
|
+
defaultSelectedKeys: I
|
|
1837
|
+
}, e[14] = d, e[15] = S, e[16] = I, e[17] = $) : $ = e[17];
|
|
1838
|
+
const k = $;
|
|
1823
1839
|
let _;
|
|
1824
1840
|
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = ["click"], e[18] = _) : _ = e[18];
|
|
1825
1841
|
let w;
|
|
1826
1842
|
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ u(Oe, {}), e[19] = w) : w = e[19];
|
|
1827
1843
|
let D;
|
|
1828
|
-
e[20] !== s.label ? (D = /* @__PURE__ */
|
|
1844
|
+
e[20] !== s.label ? (D = /* @__PURE__ */ Y(le, { icon: w, iconPlacement: "end", children: [
|
|
1829
1845
|
"刷新率:",
|
|
1830
1846
|
s.label
|
|
1831
1847
|
] }), e[20] = s.label, e[21] = D) : D = e[21];
|
|
1832
|
-
let
|
|
1833
|
-
return e[22] !== k || e[23] !== D ? (
|
|
1848
|
+
let V;
|
|
1849
|
+
return e[22] !== k || e[23] !== D ? (V = /* @__PURE__ */ u(De, { menu: k, trigger: _, children: D }), e[22] = k, e[23] = D, e[24] = V) : V = e[24], V;
|
|
1834
1850
|
}
|
|
1835
|
-
a(
|
|
1836
|
-
function
|
|
1851
|
+
a(Ji, "AutoRefreshBarItem");
|
|
1852
|
+
function er(t) {
|
|
1837
1853
|
return {
|
|
1838
1854
|
key: t.key,
|
|
1839
1855
|
label: t.label
|
|
1840
1856
|
};
|
|
1841
1857
|
}
|
|
1842
|
-
a(
|
|
1843
|
-
const
|
|
1844
|
-
item:
|
|
1845
|
-
active:
|
|
1858
|
+
a(er, "_temp$7");
|
|
1859
|
+
const tr = "_item_1c27u_1", nr = "_active_1c27u_16", Yt = {
|
|
1860
|
+
item: tr,
|
|
1861
|
+
active: nr
|
|
1846
1862
|
};
|
|
1847
1863
|
function ye(t) {
|
|
1848
1864
|
const e = U(3), {
|
|
1849
1865
|
icon: n,
|
|
1850
1866
|
active: l
|
|
1851
|
-
} = t, i = `${
|
|
1867
|
+
} = t, i = `${Yt.item} ${l ? Yt.active : ""}`;
|
|
1852
1868
|
let r;
|
|
1853
1869
|
return e[0] !== n || e[1] !== i ? (r = /* @__PURE__ */ u("div", { className: i, children: n }), e[0] = n, e[1] = i, e[2] = r) : r = e[2], r;
|
|
1854
1870
|
}
|
|
1855
1871
|
a(ye, "BarItem");
|
|
1856
|
-
const
|
|
1857
|
-
function
|
|
1872
|
+
const lr = "filter";
|
|
1873
|
+
function ir(t) {
|
|
1858
1874
|
const e = U(11), {
|
|
1859
1875
|
style: n,
|
|
1860
1876
|
className: l
|
|
1861
1877
|
} = t, {
|
|
1862
1878
|
showFilterPanel: i,
|
|
1863
1879
|
updateShowFilterPanel: r
|
|
1864
|
-
} =
|
|
1880
|
+
} = wr(), [s, c] = q(i || !1);
|
|
1865
1881
|
let o;
|
|
1866
1882
|
e[0] !== s || e[1] !== r ? (o = /* @__PURE__ */ a(() => {
|
|
1867
1883
|
c(!s), r(!s);
|
|
1868
1884
|
}, "t0"), e[0] = s, e[1] = r, e[2] = o) : o = e[2];
|
|
1869
1885
|
const f = o;
|
|
1870
1886
|
let m;
|
|
1871
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ u(
|
|
1887
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ u(Bn, {}), e[3] = m) : m = e[3];
|
|
1872
1888
|
const d = s || !1;
|
|
1873
1889
|
let h;
|
|
1874
1890
|
e[4] !== d ? (h = /* @__PURE__ */ u(ye, { icon: m, active: d }), e[4] = d, e[5] = h) : h = e[5];
|
|
1875
1891
|
let y;
|
|
1876
1892
|
return e[6] !== l || e[7] !== f || e[8] !== n || e[9] !== h ? (y = /* @__PURE__ */ u("div", { className: l, style: n, onClick: f, children: h }), e[6] = l, e[7] = f, e[8] = n, e[9] = h, e[10] = y) : y = e[10], y;
|
|
1877
1893
|
}
|
|
1878
|
-
a(
|
|
1879
|
-
const
|
|
1880
|
-
function
|
|
1894
|
+
a(ir, "FilterBarItem");
|
|
1895
|
+
const rr = "refresh_data";
|
|
1896
|
+
function ar(t) {
|
|
1881
1897
|
const e = U(7), {
|
|
1882
1898
|
style: n,
|
|
1883
1899
|
className: l
|
|
1884
1900
|
} = t, {
|
|
1885
1901
|
publish: i
|
|
1886
|
-
} =
|
|
1902
|
+
} = It();
|
|
1887
1903
|
let r;
|
|
1888
1904
|
e[0] !== i ? (r = /* @__PURE__ */ a(async () => {
|
|
1889
1905
|
await i();
|
|
1890
1906
|
}, "t0"), e[0] = i, e[1] = r) : r = e[1];
|
|
1891
1907
|
const s = r;
|
|
1892
1908
|
let c;
|
|
1893
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ u(ye, { icon: /* @__PURE__ */ u(
|
|
1909
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ u(ye, { icon: /* @__PURE__ */ u(Wn, {}), active: !1 }), e[2] = c) : c = e[2];
|
|
1894
1910
|
let o;
|
|
1895
1911
|
return e[3] !== l || e[4] !== s || e[5] !== n ? (o = /* @__PURE__ */ u("div", { className: l, style: n, onClick: s, children: c }), e[3] = l, e[4] = s, e[5] = n, e[6] = o) : o = e[6], o;
|
|
1896
1912
|
}
|
|
1897
|
-
a(
|
|
1898
|
-
const
|
|
1899
|
-
function
|
|
1913
|
+
a(ar, "RefreshDataBarItem");
|
|
1914
|
+
const sr = "column-height";
|
|
1915
|
+
function or(t) {
|
|
1900
1916
|
const e = U(13), {
|
|
1901
1917
|
className: n
|
|
1902
1918
|
} = t, {
|
|
1903
1919
|
activeView: l,
|
|
1904
1920
|
updateTableSize: i
|
|
1905
|
-
} =
|
|
1921
|
+
} = Nt();
|
|
1906
1922
|
let r;
|
|
1907
1923
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = [{
|
|
1908
1924
|
key: "middle",
|
|
@@ -1915,9 +1931,9 @@ function sr(t) {
|
|
|
1915
1931
|
let c;
|
|
1916
1932
|
e[1] !== i ? (c = /* @__PURE__ */ a((S) => {
|
|
1917
1933
|
const {
|
|
1918
|
-
key:
|
|
1934
|
+
key: I
|
|
1919
1935
|
} = S;
|
|
1920
|
-
i(
|
|
1936
|
+
i(I);
|
|
1921
1937
|
}, "t1"), e[1] = i, e[2] = c) : c = e[2];
|
|
1922
1938
|
const o = c, f = l.tableSize || "middle";
|
|
1923
1939
|
let m;
|
|
@@ -1932,21 +1948,21 @@ function sr(t) {
|
|
|
1932
1948
|
let h;
|
|
1933
1949
|
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = ["click"], e[8] = h) : h = e[8];
|
|
1934
1950
|
let y;
|
|
1935
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ u("div", { onClick:
|
|
1951
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ u("div", { onClick: cr, children: /* @__PURE__ */ u(ye, { icon: /* @__PURE__ */ u(jn, {}), active: !1 }) }), e[9] = y) : y = e[9];
|
|
1936
1952
|
let v;
|
|
1937
1953
|
return e[10] !== n || e[11] !== d ? (v = /* @__PURE__ */ u(De, { className: n, menu: d, trigger: h, children: y }), e[10] = n, e[11] = d, e[12] = v) : v = e[12], v;
|
|
1938
1954
|
}
|
|
1939
|
-
a(
|
|
1940
|
-
function
|
|
1955
|
+
a(or, "ColumnHeightBarItem");
|
|
1956
|
+
function cr(t) {
|
|
1941
1957
|
return t.preventDefault();
|
|
1942
1958
|
}
|
|
1943
|
-
a(
|
|
1944
|
-
const
|
|
1945
|
-
function
|
|
1959
|
+
a(cr, "_temp$6");
|
|
1960
|
+
const ur = "share-link";
|
|
1961
|
+
function fr(t) {
|
|
1946
1962
|
const e = U(10), {
|
|
1947
1963
|
className: n,
|
|
1948
1964
|
style: l
|
|
1949
|
-
} = t, [i, r] =
|
|
1965
|
+
} = t, [i, r] = In.useMessage();
|
|
1950
1966
|
let s;
|
|
1951
1967
|
e[0] !== i ? (s = /* @__PURE__ */ a(async () => {
|
|
1952
1968
|
const d = window.location.href;
|
|
@@ -1958,18 +1974,18 @@ function ur(t) {
|
|
|
1958
1974
|
}, "t0"), e[0] = i, e[1] = s) : s = e[1];
|
|
1959
1975
|
const c = s;
|
|
1960
1976
|
let o;
|
|
1961
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ u(ye, { icon: /* @__PURE__ */ u(
|
|
1977
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ u(ye, { icon: /* @__PURE__ */ u(Gn, {}), active: !1 }), e[2] = o) : o = e[2];
|
|
1962
1978
|
let f;
|
|
1963
1979
|
e[3] !== n || e[4] !== c || e[5] !== l ? (f = /* @__PURE__ */ u("div", { className: n, style: l, onClick: c, children: o }), e[3] = n, e[4] = c, e[5] = l, e[6] = f) : f = e[6];
|
|
1964
1980
|
let m;
|
|
1965
|
-
return e[7] !== r || e[8] !== f ? (m = /* @__PURE__ */
|
|
1981
|
+
return e[7] !== r || e[8] !== f ? (m = /* @__PURE__ */ Y(ne, { children: [
|
|
1966
1982
|
r,
|
|
1967
1983
|
f
|
|
1968
1984
|
] }), e[7] = r, e[8] = f, e[9] = m) : m = e[9], m;
|
|
1969
1985
|
}
|
|
1970
|
-
a(
|
|
1971
|
-
const _n =
|
|
1972
|
-
function
|
|
1986
|
+
a(fr, "ShareLinkBarItem");
|
|
1987
|
+
const _n = Pe.create([[lr, ir], [rr, ar], [sr, or], [ur, fr]]);
|
|
1988
|
+
function dr() {
|
|
1973
1989
|
const t = U(1);
|
|
1974
1990
|
let e;
|
|
1975
1991
|
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ u("div", { style: {
|
|
@@ -1979,7 +1995,7 @@ function fr() {
|
|
|
1979
1995
|
borderRadius: "50%"
|
|
1980
1996
|
} }), t[0] = e) : e = t[0], e;
|
|
1981
1997
|
}
|
|
1982
|
-
a(
|
|
1998
|
+
a(dr, "Point");
|
|
1983
1999
|
function gn(t) {
|
|
1984
2000
|
const e = U(7);
|
|
1985
2001
|
let n;
|
|
@@ -1997,11 +2013,11 @@ function gn(t) {
|
|
|
1997
2013
|
}
|
|
1998
2014
|
a(gn, "TypedBarItem");
|
|
1999
2015
|
gn.displayName = "TypedBarItem";
|
|
2000
|
-
const
|
|
2001
|
-
leftItems:
|
|
2002
|
-
rightItems:
|
|
2016
|
+
const mr = "_leftItems_1hvhw_1", hr = "_rightItems_1hvhw_6", zt = {
|
|
2017
|
+
leftItems: mr,
|
|
2018
|
+
rightItems: hr
|
|
2003
2019
|
};
|
|
2004
|
-
function
|
|
2020
|
+
function Bt(t, e, n) {
|
|
2005
2021
|
return t.render ? {
|
|
2006
2022
|
key: e,
|
|
2007
2023
|
label: t.render(n)
|
|
@@ -2010,15 +2026,15 @@ function zt(t, e, n) {
|
|
|
2010
2026
|
label: /* @__PURE__ */ u(le, { type: "link", ...t.attributes, onClick: /* @__PURE__ */ a(() => t.onClick?.(n), "onClick"), children: t.title })
|
|
2011
2027
|
};
|
|
2012
2028
|
}
|
|
2013
|
-
a(
|
|
2014
|
-
const
|
|
2029
|
+
a(Bt, "renderMenuItem");
|
|
2030
|
+
const yr = [{
|
|
2015
2031
|
label: "覆盖当前视图",
|
|
2016
2032
|
key: "Update"
|
|
2017
2033
|
}, {
|
|
2018
2034
|
label: "另存为新视图",
|
|
2019
2035
|
key: "SaveAs"
|
|
2020
2036
|
}];
|
|
2021
|
-
function
|
|
2037
|
+
function vr(t) {
|
|
2022
2038
|
const e = U(59), {
|
|
2023
2039
|
title: n,
|
|
2024
2040
|
viewName: l,
|
|
@@ -2034,16 +2050,16 @@ function yr(t) {
|
|
|
2034
2050
|
onViewPanelUnfold: y,
|
|
2035
2051
|
viewChanged: v,
|
|
2036
2052
|
onSaveAsView: S,
|
|
2037
|
-
onReset:
|
|
2053
|
+
onReset: I
|
|
2038
2054
|
} = t;
|
|
2039
|
-
let
|
|
2040
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2041
|
-
let k =
|
|
2055
|
+
let $;
|
|
2056
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = [], e[0] = $) : $ = e[0];
|
|
2057
|
+
let k = $;
|
|
2042
2058
|
if (o?.enabled) {
|
|
2043
2059
|
let B;
|
|
2044
2060
|
if (e[1] !== o.actions || e[2] !== d) {
|
|
2045
2061
|
let G;
|
|
2046
|
-
e[4] !== d ? (G = /* @__PURE__ */ a((te, J) =>
|
|
2062
|
+
e[4] !== d ? (G = /* @__PURE__ */ a((te, J) => Bt(te, J, d), "t22"), e[4] = d, e[5] = G) : G = e[5], B = o.actions.map(G), e[1] = o.actions, e[2] = d, e[3] = B;
|
|
2047
2063
|
} else
|
|
2048
2064
|
B = e[3];
|
|
2049
2065
|
k = B;
|
|
@@ -2055,7 +2071,7 @@ function yr(t) {
|
|
|
2055
2071
|
let B;
|
|
2056
2072
|
if (e[7] !== m || e[8] !== d) {
|
|
2057
2073
|
let G;
|
|
2058
|
-
e[10] !== d ? (G = /* @__PURE__ */ a((te, J) =>
|
|
2074
|
+
e[10] !== d ? (G = /* @__PURE__ */ a((te, J) => Bt(te, J, d), "t32"), e[10] = d, e[11] = G) : G = e[11], B = m.map(G), e[7] = m, e[8] = d, e[9] = B;
|
|
2059
2075
|
} else
|
|
2060
2076
|
B = e[9];
|
|
2061
2077
|
w = B;
|
|
@@ -2065,36 +2081,36 @@ function yr(t) {
|
|
|
2065
2081
|
target: s
|
|
2066
2082
|
}, e[12] = s, e[13] = D) : D = e[13];
|
|
2067
2083
|
const {
|
|
2068
|
-
isFullscreen:
|
|
2069
|
-
toggle:
|
|
2084
|
+
isFullscreen: V,
|
|
2085
|
+
toggle: x
|
|
2070
2086
|
} = Zt(D);
|
|
2071
2087
|
let T;
|
|
2072
|
-
e[14] !==
|
|
2073
|
-
|
|
2074
|
-
}, "t3"), e[14] =
|
|
2075
|
-
const
|
|
2088
|
+
e[14] !== x ? (T = /* @__PURE__ */ a(() => {
|
|
2089
|
+
x().then();
|
|
2090
|
+
}, "t3"), e[14] = x, e[15] = T) : T = e[15];
|
|
2091
|
+
const O = T;
|
|
2076
2092
|
let E;
|
|
2077
2093
|
e[16] !== S ? (E = {
|
|
2078
|
-
items:
|
|
2094
|
+
items: yr,
|
|
2079
2095
|
onClick: /* @__PURE__ */ a((G) => {
|
|
2080
2096
|
S?.(G.key);
|
|
2081
2097
|
}, "handleMenuClick")
|
|
2082
2098
|
}, e[16] = S, e[17] = E) : E = e[17];
|
|
2083
2099
|
const g = E;
|
|
2084
|
-
let
|
|
2085
|
-
e[18] !==
|
|
2086
|
-
|
|
2087
|
-
}, "t5"), e[18] =
|
|
2088
|
-
const R =
|
|
2100
|
+
let F;
|
|
2101
|
+
e[18] !== I ? (F = /* @__PURE__ */ a(() => {
|
|
2102
|
+
I?.();
|
|
2103
|
+
}, "t5"), e[18] = I, e[19] = F) : F = e[19];
|
|
2104
|
+
const R = F;
|
|
2089
2105
|
let A;
|
|
2090
|
-
e[20] !== y || e[21] !== h || e[22] !== n ? (A = !h && /* @__PURE__ */
|
|
2091
|
-
/* @__PURE__ */ u("div", { onClick: y, children: /* @__PURE__ */ u(ye, { icon: /* @__PURE__ */ u(
|
|
2106
|
+
e[20] !== y || e[21] !== h || e[22] !== n ? (A = !h && /* @__PURE__ */ Y(ne, { children: [
|
|
2107
|
+
/* @__PURE__ */ u("div", { onClick: y, children: /* @__PURE__ */ u(ye, { icon: /* @__PURE__ */ u(Kn, {}), active: !1 }) }),
|
|
2092
2108
|
/* @__PURE__ */ u(Ve, { orientation: "vertical" }),
|
|
2093
2109
|
n,
|
|
2094
|
-
/* @__PURE__ */ u(
|
|
2110
|
+
/* @__PURE__ */ u(dr, {})
|
|
2095
2111
|
] }), e[20] = y, e[21] = h, e[22] = n, e[23] = A) : A = e[23];
|
|
2096
2112
|
let b;
|
|
2097
|
-
e[24] !== R || e[25] !== g || e[26] !== S || e[27] !== v || e[28] !== i ? (b = v && /* @__PURE__ */
|
|
2113
|
+
e[24] !== R || e[25] !== g || e[26] !== S || e[27] !== v || e[28] !== i ? (b = v && /* @__PURE__ */ Y(ne, { children: [
|
|
2098
2114
|
/* @__PURE__ */ u("div", { style: {
|
|
2099
2115
|
color: "rgba(0,0,0,0.45)"
|
|
2100
2116
|
}, children: "(已编辑)" }),
|
|
@@ -2102,26 +2118,26 @@ function yr(t) {
|
|
|
2102
2118
|
/* @__PURE__ */ u(le, { type: "default", size: "small", onClick: R, children: "重置" })
|
|
2103
2119
|
] }), e[24] = R, e[25] = g, e[26] = S, e[27] = v, e[28] = i, e[29] = b) : b = e[29];
|
|
2104
2120
|
let p;
|
|
2105
|
-
e[30] !== A || e[31] !== b || e[32] !== l ? (p = /* @__PURE__ */
|
|
2121
|
+
e[30] !== A || e[31] !== b || e[32] !== l ? (p = /* @__PURE__ */ Y(ce, { gap: "8px", align: "center", className: zt.leftItems, children: [
|
|
2106
2122
|
A,
|
|
2107
2123
|
l,
|
|
2108
2124
|
b
|
|
2109
2125
|
] }), e[30] = A, e[31] = b, e[32] = l, e[33] = p) : p = e[33];
|
|
2110
2126
|
let N;
|
|
2111
|
-
e[34] !== r ? (N = r.map(
|
|
2127
|
+
e[34] !== r ? (N = r.map(_r), e[34] = r, e[35] = N) : N = e[35];
|
|
2112
2128
|
let C, M;
|
|
2113
|
-
e[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ u(Ve, { orientation: "vertical" }), M = /* @__PURE__ */ u(
|
|
2129
|
+
e[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ u(Ve, { orientation: "vertical" }), M = /* @__PURE__ */ u(Ji, {}), e[36] = C, e[37] = M) : (C = e[36], M = e[37]);
|
|
2114
2130
|
let L;
|
|
2115
|
-
e[38] !== k || e[39] !== o?.enabled || e[40] !== o?.title ? (L = o?.enabled && /* @__PURE__ */
|
|
2131
|
+
e[38] !== k || e[39] !== o?.enabled || e[40] !== o?.title ? (L = o?.enabled && /* @__PURE__ */ Y(ne, { children: [
|
|
2116
2132
|
/* @__PURE__ */ u(Ve, { orientation: "vertical" }),
|
|
2117
2133
|
/* @__PURE__ */ u(De, { menu: {
|
|
2118
2134
|
items: k
|
|
2119
2135
|
}, trigger: ["click"], children: /* @__PURE__ */ u(le, { icon: /* @__PURE__ */ u(Oe, {}), iconPlacement: "end", children: o?.title && "批量操作" }) })
|
|
2120
2136
|
] }), e[38] = k, e[39] = o?.enabled, e[40] = o?.title, e[41] = L) : L = e[41];
|
|
2121
2137
|
let H;
|
|
2122
|
-
e[42] !== f || e[43] !== w || e[44] !== d ? (H = f && /* @__PURE__ */
|
|
2138
|
+
e[42] !== f || e[43] !== w || e[44] !== d ? (H = f && /* @__PURE__ */ Y(ne, { children: [
|
|
2123
2139
|
/* @__PURE__ */ u(Ve, { orientation: "vertical" }),
|
|
2124
|
-
/* @__PURE__ */
|
|
2140
|
+
/* @__PURE__ */ Y(ae.Compact, { children: [
|
|
2125
2141
|
f.render ? f.render(d) : /* @__PURE__ */ u(le, { type: "primary", ...f.attributes, onClick: /* @__PURE__ */ a(() => f.onClick?.(d), "onClick"), children: f.title }),
|
|
2126
2142
|
w.length > 0 && /* @__PURE__ */ u(De, { menu: {
|
|
2127
2143
|
items: w
|
|
@@ -2129,31 +2145,31 @@ function yr(t) {
|
|
|
2129
2145
|
] })
|
|
2130
2146
|
] }), e[42] = f, e[43] = w, e[44] = d, e[45] = H) : H = e[45];
|
|
2131
2147
|
let W;
|
|
2132
|
-
e[46] !== c || e[47] !== s || e[48] !==
|
|
2148
|
+
e[46] !== c || e[47] !== s || e[48] !== O || e[49] !== V ? (W = c && s && /* @__PURE__ */ Y(ne, { children: [
|
|
2133
2149
|
/* @__PURE__ */ u(Ve, { orientation: "vertical" }),
|
|
2134
|
-
/* @__PURE__ */ u("div", { onClick:
|
|
2135
|
-
] }), e[46] = c, e[47] = s, e[48] =
|
|
2136
|
-
let
|
|
2137
|
-
e[51] !== L || e[52] !== H || e[53] !== W || e[54] !== N ? (
|
|
2150
|
+
/* @__PURE__ */ u("div", { onClick: O, children: /* @__PURE__ */ u(ye, { icon: V ? /* @__PURE__ */ u(Jt, {}) : /* @__PURE__ */ u(Xt, {}), active: !1 }) })
|
|
2151
|
+
] }), e[46] = c, e[47] = s, e[48] = O, e[49] = V, e[50] = W) : W = e[50];
|
|
2152
|
+
let z;
|
|
2153
|
+
e[51] !== L || e[52] !== H || e[53] !== W || e[54] !== N ? (z = /* @__PURE__ */ Y(ce, { gap: "8px", align: "center", className: zt.rightItems, children: [
|
|
2138
2154
|
N,
|
|
2139
2155
|
C,
|
|
2140
2156
|
M,
|
|
2141
2157
|
L,
|
|
2142
2158
|
H,
|
|
2143
2159
|
W
|
|
2144
|
-
] }), e[51] = L, e[52] = H, e[53] = W, e[54] = N, e[55] =
|
|
2160
|
+
] }), e[51] = L, e[52] = H, e[53] = W, e[54] = N, e[55] = z) : z = e[55];
|
|
2145
2161
|
let j;
|
|
2146
|
-
return e[56] !==
|
|
2162
|
+
return e[56] !== z || e[57] !== p ? (j = /* @__PURE__ */ u(ne, { children: /* @__PURE__ */ Y(ce, { align: "center", justify: "space-between", children: [
|
|
2147
2163
|
p,
|
|
2148
|
-
|
|
2149
|
-
] }) }), e[56] =
|
|
2164
|
+
z
|
|
2165
|
+
] }) }), e[56] = z, e[57] = p, e[58] = j) : j = e[58], j;
|
|
2150
2166
|
}
|
|
2151
|
-
a(
|
|
2152
|
-
function
|
|
2167
|
+
a(vr, "TopBar");
|
|
2168
|
+
function _r(t, e) {
|
|
2153
2169
|
return _n.get(t) ? /* @__PURE__ */ u(gn, { type: t }, e) : null;
|
|
2154
2170
|
}
|
|
2155
|
-
a(
|
|
2156
|
-
function
|
|
2171
|
+
a(_r, "_temp$5");
|
|
2172
|
+
function gr(t) {
|
|
2157
2173
|
const e = U(15), {
|
|
2158
2174
|
view: n,
|
|
2159
2175
|
editing: l,
|
|
@@ -2176,15 +2192,15 @@ function _r(t) {
|
|
|
2176
2192
|
}, "t1"), e[3] = s, e[4] = n, e[5] = o, e[6] = h) : h = e[6];
|
|
2177
2193
|
const y = h;
|
|
2178
2194
|
let v;
|
|
2179
|
-
return e[7] !== l || e[8] !== d || e[9] !== y || e[10] !== c || e[11] !== i || e[12] !== n || e[13] !== o ? (v = /* @__PURE__ */ u(ne, { children: l ? /* @__PURE__ */
|
|
2195
|
+
return e[7] !== l || e[8] !== d || e[9] !== y || e[10] !== c || e[11] !== i || e[12] !== n || e[13] !== o ? (v = /* @__PURE__ */ u(ne, { children: l ? /* @__PURE__ */ Y(ce, { align: "center", justify: "space-between", gap: 12, style: {
|
|
2180
2196
|
width: "100%"
|
|
2181
2197
|
}, children: [
|
|
2182
|
-
/* @__PURE__ */ u(
|
|
2183
|
-
/* @__PURE__ */
|
|
2198
|
+
/* @__PURE__ */ u(xe, { value: o, onChange: /* @__PURE__ */ a((S) => f(S.target.value), "onChange") }),
|
|
2199
|
+
/* @__PURE__ */ Y(ae, { orientation: "horizontal", children: [
|
|
2184
2200
|
/* @__PURE__ */ u(le, { type: "default", size: "small", onClick: d, children: "取消" }),
|
|
2185
2201
|
/* @__PURE__ */ u(le, { type: "primary", size: "small", onClick: y, children: "保存" })
|
|
2186
2202
|
] })
|
|
2187
|
-
] }) : /* @__PURE__ */
|
|
2203
|
+
] }) : /* @__PURE__ */ Y(ce, { align: "center", justify: "space-between", gap: 12, style: {
|
|
2188
2204
|
width: "100%"
|
|
2189
2205
|
}, children: [
|
|
2190
2206
|
/* @__PURE__ */ u(en, { style: {
|
|
@@ -2194,14 +2210,14 @@ function _r(t) {
|
|
|
2194
2210
|
width: "100%",
|
|
2195
2211
|
textAlign: "left"
|
|
2196
2212
|
}, children: o }),
|
|
2197
|
-
n.source === "CUSTOM" ? /* @__PURE__ */
|
|
2198
|
-
/* @__PURE__ */ u(
|
|
2199
|
-
/* @__PURE__ */ u(
|
|
2200
|
-
] }) : /* @__PURE__ */ u(
|
|
2213
|
+
n.source === "CUSTOM" ? /* @__PURE__ */ Y(ae, { orientation: "horizontal", children: [
|
|
2214
|
+
/* @__PURE__ */ u(Qn, { onClick: /* @__PURE__ */ a(() => i(n), "onClick") }),
|
|
2215
|
+
/* @__PURE__ */ u(Vn, { title: "确认删除此视图?", description: "视图删除后不可恢复,其数据不受影响,是否确认删除?", onConfirm: /* @__PURE__ */ a(() => c(n), "onConfirm"), okText: "确认", cancelText: "取消", children: /* @__PURE__ */ u(qn, {}) })
|
|
2216
|
+
] }) : /* @__PURE__ */ u(Dt, { children: "系统" })
|
|
2201
2217
|
] }) }), e[7] = l, e[8] = d, e[9] = y, e[10] = c, e[11] = i, e[12] = n, e[13] = o, e[14] = v) : v = e[14], v;
|
|
2202
2218
|
}
|
|
2203
|
-
a(
|
|
2204
|
-
function
|
|
2219
|
+
a(gr, "ViewManageItem");
|
|
2220
|
+
function Wt(t) {
|
|
2205
2221
|
const e = U(27), {
|
|
2206
2222
|
viewType: n,
|
|
2207
2223
|
views: l,
|
|
@@ -2211,8 +2227,8 @@ function Bt(t) {
|
|
|
2211
2227
|
onDeleteView: c
|
|
2212
2228
|
} = t, [o, f] = q(null);
|
|
2213
2229
|
let m;
|
|
2214
|
-
e[0] !== o?.id ? (m = /* @__PURE__ */ a((
|
|
2215
|
-
const d = m, h =
|
|
2230
|
+
e[0] !== o?.id ? (m = /* @__PURE__ */ a((F) => o?.id === F.id, "t0"), e[0] = o?.id, e[1] = m) : m = e[1];
|
|
2231
|
+
const d = m, h = Er;
|
|
2216
2232
|
let y;
|
|
2217
2233
|
e[2] !== r ? (y = /* @__PURE__ */ a(() => {
|
|
2218
2234
|
r?.();
|
|
@@ -2222,46 +2238,46 @@ function Bt(t) {
|
|
|
2222
2238
|
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ a(() => {
|
|
2223
2239
|
f(null);
|
|
2224
2240
|
}, "t2"), e[4] = S) : S = e[4];
|
|
2225
|
-
const
|
|
2226
|
-
let
|
|
2227
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2228
|
-
f(
|
|
2229
|
-
}, "t3"), e[5] =
|
|
2230
|
-
const k =
|
|
2241
|
+
const I = S;
|
|
2242
|
+
let $;
|
|
2243
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ a((F) => {
|
|
2244
|
+
f(F);
|
|
2245
|
+
}, "t3"), e[5] = $) : $ = e[5];
|
|
2246
|
+
const k = $;
|
|
2231
2247
|
let _;
|
|
2232
|
-
e[6] !== c ? (_ = /* @__PURE__ */ a((
|
|
2233
|
-
c?.(
|
|
2248
|
+
e[6] !== c ? (_ = /* @__PURE__ */ a((F) => {
|
|
2249
|
+
c?.(F, () => {
|
|
2234
2250
|
f(null);
|
|
2235
2251
|
});
|
|
2236
2252
|
}, "t4"), e[6] = c, e[7] = _) : _ = e[7];
|
|
2237
2253
|
const w = _;
|
|
2238
2254
|
let D;
|
|
2239
|
-
e[8] !== s ? (D = /* @__PURE__ */ a((
|
|
2240
|
-
s?.(
|
|
2255
|
+
e[8] !== s ? (D = /* @__PURE__ */ a((F) => {
|
|
2256
|
+
s?.(F, () => {
|
|
2241
2257
|
f(null);
|
|
2242
2258
|
});
|
|
2243
2259
|
}, "t5"), e[8] = s, e[9] = D) : D = e[9];
|
|
2244
|
-
const
|
|
2260
|
+
const V = D, x = `${n === "PERSONAL" ? "个人" : "公共"}视图`;
|
|
2245
2261
|
let T;
|
|
2246
2262
|
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
|
|
2247
2263
|
width: "100%"
|
|
2248
2264
|
}, e[10] = T) : T = e[10];
|
|
2249
|
-
let
|
|
2250
|
-
if (e[11] !== w || e[12] !==
|
|
2251
|
-
let
|
|
2252
|
-
e[16] !== w || e[17] !==
|
|
2265
|
+
let O;
|
|
2266
|
+
if (e[11] !== w || e[12] !== V || e[13] !== d || e[14] !== l) {
|
|
2267
|
+
let F;
|
|
2268
|
+
e[16] !== w || e[17] !== V || e[18] !== d ? (F = /* @__PURE__ */ a((R) => /* @__PURE__ */ u(gr, { editing: d(R), onCancel: I, onDelete: w, onEdit: k, onSave: V, view: R }), "t92"), e[16] = w, e[17] = V, e[18] = d, e[19] = F) : F = e[19], O = l.map(F), e[11] = w, e[12] = V, e[13] = d, e[14] = l, e[15] = O;
|
|
2253
2269
|
} else
|
|
2254
|
-
|
|
2270
|
+
O = e[15];
|
|
2255
2271
|
let E;
|
|
2256
|
-
e[20] !==
|
|
2272
|
+
e[20] !== O ? (E = /* @__PURE__ */ u(ae, { orientation: "vertical", size: 12, style: T, children: O }), e[20] = O, e[21] = E) : E = e[21];
|
|
2257
2273
|
let g;
|
|
2258
|
-
return e[22] !== v || e[23] !== i || e[24] !==
|
|
2274
|
+
return e[22] !== v || e[23] !== i || e[24] !== x || e[25] !== E ? (g = /* @__PURE__ */ u(Me, { title: x, open: i, onOk: h, okText: "确认", cancelText: "取消", onCancel: v, children: E }), e[22] = v, e[23] = i, e[24] = x, e[25] = E, e[26] = g) : g = e[26], g;
|
|
2259
2275
|
}
|
|
2260
|
-
a(
|
|
2261
|
-
function
|
|
2276
|
+
a(Wt, "ViewManageModal");
|
|
2277
|
+
function Er() {
|
|
2262
2278
|
}
|
|
2263
|
-
a(
|
|
2264
|
-
function
|
|
2279
|
+
a(Er, "_temp$4");
|
|
2280
|
+
function br(t) {
|
|
2265
2281
|
const e = U(70), {
|
|
2266
2282
|
aggregateName: n,
|
|
2267
2283
|
views: l,
|
|
@@ -2274,17 +2290,17 @@ function Er(t) {
|
|
|
2274
2290
|
onDeleteView: m
|
|
2275
2291
|
} = t;
|
|
2276
2292
|
let d;
|
|
2277
|
-
e[0] !== l ? (d = l.filter(
|
|
2293
|
+
e[0] !== l ? (d = l.filter(Sr), e[0] = l, e[1] = d) : d = e[1];
|
|
2278
2294
|
const h = d;
|
|
2279
2295
|
let y;
|
|
2280
|
-
e[2] !== l ? (y = l.filter(
|
|
2281
|
-
const v = y, [S,
|
|
2296
|
+
e[2] !== l ? (y = l.filter(pr), e[2] = l, e[3] = y) : y = e[3];
|
|
2297
|
+
const v = y, [S, I] = q(!1), [$, k] = q(!1);
|
|
2282
2298
|
let _;
|
|
2283
2299
|
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ a((X, re) => {
|
|
2284
2300
|
X.preventDefault(), X.stopPropagation();
|
|
2285
2301
|
e: switch (re) {
|
|
2286
2302
|
case "PERSONAL": {
|
|
2287
|
-
|
|
2303
|
+
I(!0);
|
|
2288
2304
|
break e;
|
|
2289
2305
|
}
|
|
2290
2306
|
case "SHARED":
|
|
@@ -2296,29 +2312,29 @@ function Er(t) {
|
|
|
2296
2312
|
e[5] !== o ? (D = /* @__PURE__ */ a((X, re) => {
|
|
2297
2313
|
X.stopPropagation(), o?.(re);
|
|
2298
2314
|
}, "t3"), e[5] = o, e[6] = D) : D = e[6];
|
|
2299
|
-
const
|
|
2300
|
-
let
|
|
2301
|
-
e[7] !== f ? (
|
|
2315
|
+
const V = D;
|
|
2316
|
+
let x;
|
|
2317
|
+
e[7] !== f ? (x = /* @__PURE__ */ a((X, re) => {
|
|
2302
2318
|
f?.(X, re);
|
|
2303
|
-
}, "t4"), e[7] = f, e[8] =
|
|
2304
|
-
const T =
|
|
2305
|
-
let
|
|
2306
|
-
e[9] !== m ? (
|
|
2319
|
+
}, "t4"), e[7] = f, e[8] = x) : x = e[8];
|
|
2320
|
+
const T = x;
|
|
2321
|
+
let O;
|
|
2322
|
+
e[9] !== m ? (O = /* @__PURE__ */ a((X, re) => {
|
|
2307
2323
|
m?.(X, re);
|
|
2308
|
-
}, "t5"), e[9] = m, e[10] =
|
|
2309
|
-
const E =
|
|
2324
|
+
}, "t5"), e[9] = m, e[10] = O) : O = e[10];
|
|
2325
|
+
const E = O;
|
|
2310
2326
|
let g;
|
|
2311
|
-
e[11] !==
|
|
2327
|
+
e[11] !== V ? (g = /* @__PURE__ */ a((X) => /* @__PURE__ */ Y(ae, { children: [
|
|
2312
2328
|
/* @__PURE__ */ u(tn, { onClick: /* @__PURE__ */ a((re) => w(re, X), "onClick") }),
|
|
2313
|
-
/* @__PURE__ */ u(
|
|
2314
|
-
] }), "t6"), e[11] =
|
|
2315
|
-
const
|
|
2329
|
+
/* @__PURE__ */ u(Zn, { onClick: /* @__PURE__ */ a((re) => V(re, X), "onClick") })
|
|
2330
|
+
] }), "t6"), e[11] = V, e[12] = g) : g = e[12];
|
|
2331
|
+
const F = g;
|
|
2316
2332
|
let R;
|
|
2317
2333
|
e[13] !== s ? (R = /* @__PURE__ */ a((X) => s(X), "t7"), e[13] = s, e[14] = R) : R = e[14];
|
|
2318
2334
|
let A;
|
|
2319
|
-
e[15] !== i || e[16] !== r || e[17] !== h || e[18] !== R ? (A = /* @__PURE__ */ u(
|
|
2335
|
+
e[15] !== i || e[16] !== r || e[17] !== h || e[18] !== R ? (A = /* @__PURE__ */ u(Ut, { views: h, activeView: i, countUrl: r, onViewChange: R }), e[15] = i, e[16] = r, e[17] = h, e[18] = R, e[19] = A) : A = e[19];
|
|
2320
2336
|
let b;
|
|
2321
|
-
e[20] !==
|
|
2337
|
+
e[20] !== F ? (b = F("PERSONAL"), e[20] = F, e[21] = b) : b = e[21];
|
|
2322
2338
|
let p;
|
|
2323
2339
|
e[22] !== A || e[23] !== b ? (p = {
|
|
2324
2340
|
key: "1",
|
|
@@ -2329,9 +2345,9 @@ function Er(t) {
|
|
|
2329
2345
|
let N;
|
|
2330
2346
|
e[25] !== s ? (N = /* @__PURE__ */ a((X) => s(X), "t11"), e[25] = s, e[26] = N) : N = e[26];
|
|
2331
2347
|
let C;
|
|
2332
|
-
e[27] !== i || e[28] !== r || e[29] !== v || e[30] !== N ? (C = /* @__PURE__ */ u(
|
|
2348
|
+
e[27] !== i || e[28] !== r || e[29] !== v || e[30] !== N ? (C = /* @__PURE__ */ u(Ut, { views: v, activeView: i, countUrl: r, onViewChange: N }), e[27] = i, e[28] = r, e[29] = v, e[30] = N, e[31] = C) : C = e[31];
|
|
2333
2349
|
let M;
|
|
2334
|
-
e[32] !==
|
|
2350
|
+
e[32] !== F ? (M = F("SHARED"), e[32] = F, e[33] = M) : M = e[33];
|
|
2335
2351
|
let L;
|
|
2336
2352
|
e[34] !== C || e[35] !== M ? (L = {
|
|
2337
2353
|
key: "2",
|
|
@@ -2342,51 +2358,51 @@ function Er(t) {
|
|
|
2342
2358
|
let H;
|
|
2343
2359
|
e[37] !== p || e[38] !== L ? (H = [p, L], e[37] = p, e[38] = L, e[39] = H) : H = e[39];
|
|
2344
2360
|
const W = H;
|
|
2345
|
-
let
|
|
2346
|
-
e[40] !== n ? (
|
|
2361
|
+
let z;
|
|
2362
|
+
e[40] !== n ? (z = /* @__PURE__ */ u("div", { className: de.title, children: n }), e[40] = n, e[41] = z) : z = e[41];
|
|
2347
2363
|
let j;
|
|
2348
|
-
e[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ u(ye, { icon: /* @__PURE__ */ u(
|
|
2364
|
+
e[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ u(ye, { icon: /* @__PURE__ */ u(Xn, {}), active: !1 }), e[42] = j) : j = e[42];
|
|
2349
2365
|
let B;
|
|
2350
2366
|
e[43] !== c ? (B = /* @__PURE__ */ u("div", { onClick: c, children: j }), e[43] = c, e[44] = B) : B = e[44];
|
|
2351
2367
|
let G;
|
|
2352
|
-
e[45] !==
|
|
2353
|
-
|
|
2368
|
+
e[45] !== z || e[46] !== B ? (G = /* @__PURE__ */ Y(ce, { align: "center", justify: "space-between", className: de.top, children: [
|
|
2369
|
+
z,
|
|
2354
2370
|
B
|
|
2355
|
-
] }), e[45] =
|
|
2371
|
+
] }), e[45] = z, e[46] = B, e[47] = G) : G = e[47];
|
|
2356
2372
|
let te;
|
|
2357
2373
|
e[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = ["1", "2"], e[48] = te) : te = e[48];
|
|
2358
2374
|
let J;
|
|
2359
|
-
e[49] !== W ? (J = /* @__PURE__ */ u(
|
|
2375
|
+
e[49] !== W ? (J = /* @__PURE__ */ u($n, { items: W, defaultActiveKey: te, className: de.customCollapse }), e[49] = W, e[50] = J) : J = e[50];
|
|
2360
2376
|
let ee;
|
|
2361
|
-
e[51] !== G || e[52] !== J ? (ee = /* @__PURE__ */
|
|
2377
|
+
e[51] !== G || e[52] !== J ? (ee = /* @__PURE__ */ Y(ce, { vertical: !0, gap: "16px", children: [
|
|
2362
2378
|
G,
|
|
2363
2379
|
J
|
|
2364
2380
|
] }), e[51] = G, e[52] = J, e[53] = ee) : ee = e[53];
|
|
2365
2381
|
let Q;
|
|
2366
|
-
e[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ a(() =>
|
|
2382
|
+
e[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ a(() => I(!1), "t23"), e[54] = Q) : Q = e[54];
|
|
2367
2383
|
let Z;
|
|
2368
|
-
e[55] !== E || e[56] !== T || e[57] !== S || e[58] !== h ? (Z = /* @__PURE__ */ u(
|
|
2384
|
+
e[55] !== E || e[56] !== T || e[57] !== S || e[58] !== h ? (Z = /* @__PURE__ */ u(Wt, { viewType: "PERSONAL", views: h, open: S, onCancel: Q, onEditViewName: T, onDeleteView: E }), e[55] = E, e[56] = T, e[57] = S, e[58] = h, e[59] = Z) : Z = e[59];
|
|
2369
2385
|
let se;
|
|
2370
2386
|
e[60] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (se = /* @__PURE__ */ a(() => k(!1), "t25"), e[60] = se) : se = e[60];
|
|
2371
2387
|
let ie;
|
|
2372
|
-
e[61] !== E || e[62] !== T || e[63] !==
|
|
2388
|
+
e[61] !== E || e[62] !== T || e[63] !== $ || e[64] !== v ? (ie = /* @__PURE__ */ u(Wt, { viewType: "SHARED", views: v, open: $, onCancel: se, onEditViewName: T, onDeleteView: E }), e[61] = E, e[62] = T, e[63] = $, e[64] = v, e[65] = ie) : ie = e[65];
|
|
2373
2389
|
let ue;
|
|
2374
|
-
return e[66] !== ee || e[67] !== Z || e[68] !== ie ? (ue = /* @__PURE__ */
|
|
2390
|
+
return e[66] !== ee || e[67] !== Z || e[68] !== ie ? (ue = /* @__PURE__ */ Y(ne, { children: [
|
|
2375
2391
|
ee,
|
|
2376
2392
|
Z,
|
|
2377
2393
|
ie
|
|
2378
2394
|
] }), e[66] = ee, e[67] = Z, e[68] = ie, e[69] = ue) : ue = e[69], ue;
|
|
2379
2395
|
}
|
|
2380
|
-
a(
|
|
2381
|
-
function
|
|
2396
|
+
a(br, "ViewPanel");
|
|
2397
|
+
function pr(t) {
|
|
2382
2398
|
return t.type === "SHARED";
|
|
2383
2399
|
}
|
|
2384
|
-
a(
|
|
2385
|
-
function
|
|
2400
|
+
a(pr, "_temp2$2");
|
|
2401
|
+
function Sr(t) {
|
|
2386
2402
|
return t.type === "PERSONAL";
|
|
2387
2403
|
}
|
|
2388
|
-
a(
|
|
2389
|
-
function
|
|
2404
|
+
a(Sr, "_temp$3");
|
|
2405
|
+
function Tr(t) {
|
|
2390
2406
|
const e = U(24), {
|
|
2391
2407
|
mode: n,
|
|
2392
2408
|
open: l,
|
|
@@ -2419,11 +2435,11 @@ function Sr(t) {
|
|
|
2419
2435
|
value: "SHARED"
|
|
2420
2436
|
}], e[8] = y) : y = e[8];
|
|
2421
2437
|
const v = y, S = Le(null);
|
|
2422
|
-
let
|
|
2423
|
-
e[9] !== r ? (
|
|
2438
|
+
let I;
|
|
2439
|
+
e[9] !== r ? (I = /* @__PURE__ */ a((E) => {
|
|
2424
2440
|
r?.(E.name, E.type);
|
|
2425
|
-
}, "t5"), e[9] = r, e[10] =
|
|
2426
|
-
const
|
|
2441
|
+
}, "t5"), e[9] = r, e[10] = I) : I = e[10];
|
|
2442
|
+
const $ = I, k = n === "Create" ? "创建视图" : "另存为新视图";
|
|
2427
2443
|
let _;
|
|
2428
2444
|
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = {
|
|
2429
2445
|
span: 5
|
|
@@ -2433,26 +2449,26 @@ function Sr(t) {
|
|
|
2433
2449
|
e[12] !== w ? (D = {
|
|
2434
2450
|
type: w
|
|
2435
2451
|
}, e[12] = w, e[13] = D) : D = e[13];
|
|
2436
|
-
let
|
|
2437
|
-
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2452
|
+
let V;
|
|
2453
|
+
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ u(gt.Item, { label: "视图类型", name: "type", rules: [{
|
|
2438
2454
|
required: !0
|
|
2439
|
-
}], children: /* @__PURE__ */ u(
|
|
2440
|
-
let
|
|
2441
|
-
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2455
|
+
}], children: /* @__PURE__ */ u(On.Group, { options: v, optionType: "button" }) }), e[14] = V) : V = e[14];
|
|
2456
|
+
let x;
|
|
2457
|
+
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ u(gt.Item, { label: "视图名称", name: "name", rules: [{
|
|
2442
2458
|
required: !0,
|
|
2443
2459
|
message: "请输入视图名称"
|
|
2444
|
-
}], children: /* @__PURE__ */ u(
|
|
2460
|
+
}], children: /* @__PURE__ */ u(xe, {}) }), e[15] = x) : x = e[15];
|
|
2445
2461
|
let T;
|
|
2446
|
-
e[16] !==
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
] }), e[16] =
|
|
2450
|
-
let
|
|
2451
|
-
return e[19] !== h || e[20] !== l || e[21] !== T || e[22] !== k ? (
|
|
2462
|
+
e[16] !== $ || e[17] !== D ? (T = /* @__PURE__ */ Y(gt, { ref: S, name: "basic", labelCol: _, initialValues: D, onFinish: $, autoComplete: "off", children: [
|
|
2463
|
+
V,
|
|
2464
|
+
x
|
|
2465
|
+
] }), e[16] = $, e[17] = D, e[18] = T) : T = e[18];
|
|
2466
|
+
let O;
|
|
2467
|
+
return e[19] !== h || e[20] !== l || e[21] !== T || e[22] !== k ? (O = /* @__PURE__ */ u(Me, { title: k, open: l, onOk: o, okText: "确认", onCancel: h, cancelText: "取消", children: T }), e[19] = h, e[20] = l, e[21] = T, e[22] = k, e[23] = O) : O = e[23], O;
|
|
2452
2468
|
}
|
|
2453
|
-
a(
|
|
2469
|
+
a(Tr, "SaveViewModal");
|
|
2454
2470
|
const En = Kt(void 0);
|
|
2455
|
-
function
|
|
2471
|
+
function Cr(t) {
|
|
2456
2472
|
const e = U(8);
|
|
2457
2473
|
let n, l;
|
|
2458
2474
|
e[0] !== t ? ({
|
|
@@ -2466,20 +2482,20 @@ function Tr(t) {
|
|
|
2466
2482
|
let r;
|
|
2467
2483
|
return e[5] !== n || e[6] !== i ? (r = /* @__PURE__ */ u(En.Provider, { value: i, children: n }), e[5] = n, e[6] = i, e[7] = r) : r = e[7], r;
|
|
2468
2484
|
}
|
|
2469
|
-
a(
|
|
2470
|
-
function
|
|
2485
|
+
a(Cr, "FilterStateContextProvider");
|
|
2486
|
+
function wr() {
|
|
2471
2487
|
const t = Qt(En);
|
|
2472
2488
|
if (!t)
|
|
2473
2489
|
throw new Error("useFilterStateContext must be used within a FilterStateContext");
|
|
2474
2490
|
return t;
|
|
2475
2491
|
}
|
|
2476
|
-
a(
|
|
2477
|
-
const
|
|
2492
|
+
a(wr, "useFilterStateContext");
|
|
2493
|
+
const Ar = /* @__PURE__ */ a((t, e) => e.type === "UPDATE_SHOW_FILTER_PANEL" ? {
|
|
2478
2494
|
...t,
|
|
2479
2495
|
showFilterPanel: e.payload
|
|
2480
2496
|
} : t, "filterStateReducer");
|
|
2481
|
-
function
|
|
2482
|
-
const e = U(3), [n, l] = qt(
|
|
2497
|
+
function Dr(t) {
|
|
2498
|
+
const e = U(3), [n, l] = qt(Ar, t);
|
|
2483
2499
|
let i;
|
|
2484
2500
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a((c) => {
|
|
2485
2501
|
l({
|
|
@@ -2494,30 +2510,30 @@ function Ar(t) {
|
|
|
2494
2510
|
updateShowFilterPanel: r
|
|
2495
2511
|
}, e[1] = n.showFilterPanel, e[2] = s) : s = e[2], s;
|
|
2496
2512
|
}
|
|
2497
|
-
a(
|
|
2498
|
-
function
|
|
2513
|
+
a(Dr, "useFilterStateReducer");
|
|
2514
|
+
function At(t, e) {
|
|
2499
2515
|
if (t === e)
|
|
2500
2516
|
return !0;
|
|
2501
2517
|
if (t == null || e == null)
|
|
2502
2518
|
return !1;
|
|
2503
2519
|
if (Array.isArray(t) && Array.isArray(e))
|
|
2504
|
-
return t.length !== e.length ? !1 : t.every((n, l) =>
|
|
2520
|
+
return t.length !== e.length ? !1 : t.every((n, l) => At(n, e[l]));
|
|
2505
2521
|
if (typeof t == "object" && typeof e == "object") {
|
|
2506
2522
|
if (t.constructor !== e.constructor) return !1;
|
|
2507
2523
|
const n = Object.keys(t), l = Object.keys(e);
|
|
2508
|
-
return n.length !== l.length ? !1 : n.every((i) =>
|
|
2524
|
+
return n.length !== l.length ? !1 : n.every((i) => At(t[i], e[i]));
|
|
2509
2525
|
}
|
|
2510
2526
|
return !1;
|
|
2511
2527
|
}
|
|
2512
|
-
a(
|
|
2513
|
-
function
|
|
2528
|
+
a(At, "deepEqual");
|
|
2529
|
+
function Nr(t) {
|
|
2514
2530
|
return t && t.length > 0 ? t.map((e, n) => ({
|
|
2515
2531
|
...e,
|
|
2516
2532
|
key: n
|
|
2517
2533
|
})) : [];
|
|
2518
2534
|
}
|
|
2519
|
-
a(
|
|
2520
|
-
const
|
|
2535
|
+
a(Nr, "mapToTableRecord");
|
|
2536
|
+
const Ir = /* @__PURE__ */ a((t, e) => {
|
|
2521
2537
|
switch (e.type) {
|
|
2522
2538
|
case "UPDATE_FILTERS":
|
|
2523
2539
|
return {
|
|
@@ -2566,7 +2582,7 @@ const Nr = /* @__PURE__ */ a((t, e) => {
|
|
|
2566
2582
|
return t;
|
|
2567
2583
|
}
|
|
2568
2584
|
}, "activeViewStateReducer");
|
|
2569
|
-
function
|
|
2585
|
+
function Vr(t) {
|
|
2570
2586
|
const e = U(18), n = Le(t), [l, i] = q(!1);
|
|
2571
2587
|
let r, s;
|
|
2572
2588
|
e[0] !== t ? (r = /* @__PURE__ */ a(() => {
|
|
@@ -2576,7 +2592,7 @@ function Ir(t) {
|
|
|
2576
2592
|
e[3] !== t ? (c = {
|
|
2577
2593
|
...t
|
|
2578
2594
|
}, e[3] = t, e[4] = c) : c = e[4];
|
|
2579
|
-
const [o, f] = qt(
|
|
2595
|
+
const [o, f] = qt(Ir, c);
|
|
2580
2596
|
let m;
|
|
2581
2597
|
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ a((g) => {
|
|
2582
2598
|
f({
|
|
@@ -2601,14 +2617,14 @@ function Ir(t) {
|
|
|
2601
2617
|
});
|
|
2602
2618
|
}, "t5"), e[7] = v) : v = e[7];
|
|
2603
2619
|
const S = v;
|
|
2604
|
-
let
|
|
2605
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2620
|
+
let I;
|
|
2621
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ a((g) => {
|
|
2606
2622
|
f({
|
|
2607
2623
|
type: "UPDATE_CONDITIONS",
|
|
2608
2624
|
payload: g
|
|
2609
2625
|
});
|
|
2610
|
-
}, "t6"), e[8] =
|
|
2611
|
-
const
|
|
2626
|
+
}, "t6"), e[8] = I) : I = e[8];
|
|
2627
|
+
const $ = I;
|
|
2612
2628
|
let k;
|
|
2613
2629
|
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ a((g) => {
|
|
2614
2630
|
f({
|
|
@@ -2625,8 +2641,8 @@ function Ir(t) {
|
|
|
2625
2641
|
}
|
|
2626
2642
|
}), n.current), "t8"), e[10] = w) : w = e[10];
|
|
2627
2643
|
const D = w;
|
|
2628
|
-
let
|
|
2629
|
-
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2644
|
+
let V;
|
|
2645
|
+
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ a((g) => {
|
|
2630
2646
|
n.current = {
|
|
2631
2647
|
...g
|
|
2632
2648
|
}, f({
|
|
@@ -2635,12 +2651,12 @@ function Ir(t) {
|
|
|
2635
2651
|
...g
|
|
2636
2652
|
}
|
|
2637
2653
|
});
|
|
2638
|
-
}, "t9"), e[11] =
|
|
2639
|
-
const
|
|
2640
|
-
let T,
|
|
2654
|
+
}, "t9"), e[11] = V) : V = e[11];
|
|
2655
|
+
const x = V;
|
|
2656
|
+
let T, O;
|
|
2641
2657
|
e[12] !== o ? (T = /* @__PURE__ */ a(() => {
|
|
2642
|
-
i(!
|
|
2643
|
-
}, "t10"),
|
|
2658
|
+
i(!At(n.current, o));
|
|
2659
|
+
}, "t10"), O = [o], e[12] = o, e[13] = T, e[14] = O) : (T = e[13], O = e[14]), me(T, O);
|
|
2644
2660
|
let E;
|
|
2645
2661
|
return e[15] !== o || e[16] !== l ? (E = {
|
|
2646
2662
|
activeView: o,
|
|
@@ -2648,26 +2664,26 @@ function Ir(t) {
|
|
|
2648
2664
|
updateFilters: d,
|
|
2649
2665
|
updateColumns: y,
|
|
2650
2666
|
updateTableSize: S,
|
|
2651
|
-
updateConditions:
|
|
2667
|
+
updateConditions: $,
|
|
2652
2668
|
updatePageSize: _,
|
|
2653
2669
|
reset: D,
|
|
2654
|
-
switchView:
|
|
2670
|
+
switchView: x
|
|
2655
2671
|
}, e[15] = o, e[16] = l, e[17] = E) : E = e[17], E;
|
|
2656
2672
|
}
|
|
2657
|
-
a(
|
|
2658
|
-
const
|
|
2659
|
-
userViews:
|
|
2660
|
-
container:
|
|
2661
|
-
topBar:
|
|
2662
|
-
pagination:
|
|
2663
|
-
filterPanel:
|
|
2664
|
-
}, xr = "REFRESH_DATA_EVENTS",
|
|
2665
|
-
delegate:
|
|
2673
|
+
a(Vr, "useActiveViewStateReducer");
|
|
2674
|
+
const $r = "_userViews_1rq5j_1", Or = "_container_1rq5j_7", Fr = "_topBar_1rq5j_12", Rr = "_pagination_1rq5j_18", Pr = "_filterPanel_1rq5j_27", $e = {
|
|
2675
|
+
userViews: $r,
|
|
2676
|
+
container: Or,
|
|
2677
|
+
topBar: Fr,
|
|
2678
|
+
pagination: Rr,
|
|
2679
|
+
filterPanel: Pr
|
|
2680
|
+
}, xr = "REFRESH_DATA_EVENTS", kr = new ll(xr), Ue = new nl({
|
|
2681
|
+
delegate: kr
|
|
2666
2682
|
});
|
|
2667
|
-
function
|
|
2668
|
-
const t = U(2), e =
|
|
2683
|
+
function It() {
|
|
2684
|
+
const t = U(2), e = Yr, n = Hr;
|
|
2669
2685
|
let l;
|
|
2670
|
-
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], t[0] = l) : l = t[0], me(
|
|
2686
|
+
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], t[0] = l) : l = t[0], me(Mr, l);
|
|
2671
2687
|
let i;
|
|
2672
2688
|
return t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
2673
2689
|
bus: Ue,
|
|
@@ -2675,34 +2691,34 @@ function Nt() {
|
|
|
2675
2691
|
subscribe: n
|
|
2676
2692
|
}, t[1] = i) : i = t[1], i;
|
|
2677
2693
|
}
|
|
2678
|
-
a(
|
|
2679
|
-
function kr() {
|
|
2680
|
-
return Mr;
|
|
2681
|
-
}
|
|
2682
|
-
a(kr, "_temp5");
|
|
2694
|
+
a(It, "useRefreshDataEventBus");
|
|
2683
2695
|
function Mr() {
|
|
2684
|
-
|
|
2696
|
+
return Lr;
|
|
2685
2697
|
}
|
|
2686
|
-
a(Mr, "
|
|
2687
|
-
function Lr(
|
|
2688
|
-
Ue.
|
|
2698
|
+
a(Mr, "_temp5");
|
|
2699
|
+
function Lr() {
|
|
2700
|
+
Ue.handlers.forEach(Ur);
|
|
2689
2701
|
}
|
|
2690
|
-
a(Lr, "
|
|
2702
|
+
a(Lr, "_temp4$1");
|
|
2691
2703
|
function Ur(t) {
|
|
2704
|
+
Ue.off(t.name);
|
|
2705
|
+
}
|
|
2706
|
+
a(Ur, "_temp3$1");
|
|
2707
|
+
function Hr(t) {
|
|
2692
2708
|
return Ue.on(t);
|
|
2693
2709
|
}
|
|
2694
|
-
a(
|
|
2695
|
-
function
|
|
2710
|
+
a(Hr, "_temp2$1");
|
|
2711
|
+
function Yr() {
|
|
2696
2712
|
return Ue.emit("REFRESH");
|
|
2697
2713
|
}
|
|
2698
|
-
a(
|
|
2714
|
+
a(Yr, "_temp$2");
|
|
2699
2715
|
const {
|
|
2700
|
-
Header:
|
|
2701
|
-
Footer:
|
|
2702
|
-
Sider:
|
|
2703
|
-
Content:
|
|
2704
|
-
} =
|
|
2705
|
-
function
|
|
2716
|
+
Header: zr,
|
|
2717
|
+
Footer: Br,
|
|
2718
|
+
Sider: Wr,
|
|
2719
|
+
Content: jr
|
|
2720
|
+
} = pt;
|
|
2721
|
+
function ca(t) {
|
|
2706
2722
|
const e = U(114), {
|
|
2707
2723
|
views: n,
|
|
2708
2724
|
defaultView: l,
|
|
@@ -2719,27 +2735,27 @@ function oa(t) {
|
|
|
2719
2735
|
onLoadData: v,
|
|
2720
2736
|
onViewChange: S
|
|
2721
2737
|
} = t;
|
|
2722
|
-
let
|
|
2723
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2724
|
-
const [
|
|
2738
|
+
let I;
|
|
2739
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = [], e[0] = I) : I = e[0];
|
|
2740
|
+
const [$, k] = q(I), {
|
|
2725
2741
|
activeView: _,
|
|
2726
2742
|
changed: w,
|
|
2727
2743
|
updateFilters: D,
|
|
2728
|
-
updateColumns:
|
|
2729
|
-
updateTableSize:
|
|
2744
|
+
updateColumns: V,
|
|
2745
|
+
updateTableSize: x,
|
|
2730
2746
|
updateConditions: T,
|
|
2731
|
-
updatePageSize:
|
|
2747
|
+
updatePageSize: O,
|
|
2732
2748
|
reset: E,
|
|
2733
2749
|
switchView: g
|
|
2734
|
-
} =
|
|
2735
|
-
let
|
|
2736
|
-
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2750
|
+
} = Vr(l);
|
|
2751
|
+
let F;
|
|
2752
|
+
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = {
|
|
2737
2753
|
showFilterPanel: !0
|
|
2738
|
-
}, e[1] =
|
|
2754
|
+
}, e[1] = F) : F = e[1];
|
|
2739
2755
|
const {
|
|
2740
2756
|
showFilterPanel: R,
|
|
2741
2757
|
updateShowFilterPanel: A
|
|
2742
|
-
} =
|
|
2758
|
+
} = Dr(F), [b, p] = q(1), [N, C] = q(!0);
|
|
2743
2759
|
let M;
|
|
2744
2760
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ a(() => {
|
|
2745
2761
|
C(!1);
|
|
@@ -2750,10 +2766,10 @@ function oa(t) {
|
|
|
2750
2766
|
C(!0);
|
|
2751
2767
|
}, "t3"), e[3] = H) : H = e[3];
|
|
2752
2768
|
const W = H;
|
|
2753
|
-
let
|
|
2754
|
-
e[4] !== _.filters || e[5] !== _.pageSize || e[6] !== _.pagedQuery || e[7] !== v || e[8] !== T || e[9] !== D ? (
|
|
2769
|
+
let z;
|
|
2770
|
+
e[4] !== _.filters || e[5] !== _.pageSize || e[6] !== _.pagedQuery || e[7] !== v || e[8] !== T || e[9] !== D ? (z = /* @__PURE__ */ a((K) => {
|
|
2755
2771
|
const oe = _.filters.map((fe) => {
|
|
2756
|
-
if (K.operator ===
|
|
2772
|
+
if (K.operator === P.AND) {
|
|
2757
2773
|
const Ie = K.children?.find((Tn) => Tn.field === fe.field.name);
|
|
2758
2774
|
return Ie ? {
|
|
2759
2775
|
...fe,
|
|
@@ -2799,19 +2815,19 @@ function oa(t) {
|
|
|
2799
2815
|
size: _.pageSize
|
|
2800
2816
|
}
|
|
2801
2817
|
});
|
|
2802
|
-
}, "t4"), e[4] = _.filters, e[5] = _.pageSize, e[6] = _.pagedQuery, e[7] = v, e[8] = T, e[9] = D, e[10] =
|
|
2803
|
-
const j =
|
|
2818
|
+
}, "t4"), e[4] = _.filters, e[5] = _.pageSize, e[6] = _.pagedQuery, e[7] = v, e[8] = T, e[9] = D, e[10] = z) : z = e[10];
|
|
2819
|
+
const j = z;
|
|
2804
2820
|
let B;
|
|
2805
|
-
e[11] !== _.pagedQuery || e[12] !== v || e[13] !==
|
|
2806
|
-
|
|
2821
|
+
e[11] !== _.pagedQuery || e[12] !== v || e[13] !== O ? (B = /* @__PURE__ */ a((K, oe) => {
|
|
2822
|
+
O(oe), p(K), v?.({
|
|
2807
2823
|
..._.pagedQuery,
|
|
2808
2824
|
pagination: {
|
|
2809
2825
|
index: K,
|
|
2810
2826
|
size: oe
|
|
2811
2827
|
}
|
|
2812
2828
|
});
|
|
2813
|
-
}, "t5"), e[11] = _.pagedQuery, e[12] = v, e[13] =
|
|
2814
|
-
const G = B, te =
|
|
2829
|
+
}, "t5"), e[11] = _.pagedQuery, e[12] = v, e[13] = O, e[14] = B) : B = e[14];
|
|
2830
|
+
const G = B, te = qr, J = Le(null);
|
|
2815
2831
|
let ee;
|
|
2816
2832
|
e[15] !== S || e[16] !== g ? (ee = /* @__PURE__ */ a((K) => {
|
|
2817
2833
|
S?.(K), g(K);
|
|
@@ -2823,20 +2839,20 @@ function oa(t) {
|
|
|
2823
2839
|
}, "t7"), e[18] = Z) : Z = e[18];
|
|
2824
2840
|
const se = Z;
|
|
2825
2841
|
let ie;
|
|
2826
|
-
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ie = [], e[19] = ie) : ie = e[19], me(
|
|
2827
|
-
const [ue, X] = q(!1), [re,
|
|
2842
|
+
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ie = [], e[19] = ie) : ie = e[19], me(Kr, ie);
|
|
2843
|
+
const [ue, X] = q(!1), [re, Vt] = q("Create"), [st, ot] = Me.useModal(), [ct, bn] = q("PERSONAL");
|
|
2828
2844
|
let He;
|
|
2829
2845
|
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (He = /* @__PURE__ */ a((K) => {
|
|
2830
|
-
bn(K),
|
|
2846
|
+
bn(K), Vt("Create"), X(!0);
|
|
2831
2847
|
}, "t9"), e[20] = He) : He = e[20];
|
|
2832
2848
|
const pn = He;
|
|
2833
2849
|
let Ye;
|
|
2834
|
-
e[21] !== _ || e[22] !==
|
|
2850
|
+
e[21] !== _ || e[22] !== st || e[23] !== g || e[24] !== o ? (Ye = /* @__PURE__ */ a((K) => {
|
|
2835
2851
|
e: switch (K) {
|
|
2836
2852
|
case "Update": {
|
|
2837
|
-
|
|
2853
|
+
st.confirm({
|
|
2838
2854
|
title: "确认覆盖当前视图?",
|
|
2839
|
-
icon: /* @__PURE__ */ u(
|
|
2855
|
+
icon: /* @__PURE__ */ u(Jn, {}),
|
|
2840
2856
|
content: "确认后将覆盖原筛选条件",
|
|
2841
2857
|
okText: "确认",
|
|
2842
2858
|
cancelText: "取消",
|
|
@@ -2849,10 +2865,10 @@ function oa(t) {
|
|
|
2849
2865
|
break e;
|
|
2850
2866
|
}
|
|
2851
2867
|
case "SaveAs":
|
|
2852
|
-
X(!0),
|
|
2868
|
+
X(!0), Vt("SaveAs");
|
|
2853
2869
|
}
|
|
2854
|
-
}, "t10"), e[21] = _, e[22] =
|
|
2855
|
-
const
|
|
2870
|
+
}, "t10"), e[21] = _, e[22] = st, e[23] = g, e[24] = o, e[25] = Ye) : Ye = e[25];
|
|
2871
|
+
const ut = Ye;
|
|
2856
2872
|
let ze;
|
|
2857
2873
|
e[26] !== _ || e[27] !== g || e[28] !== o ? (ze = /* @__PURE__ */ a((K, oe) => {
|
|
2858
2874
|
const fe = {
|
|
@@ -2864,25 +2880,25 @@ function oa(t) {
|
|
|
2864
2880
|
g(Ie), X(!1);
|
|
2865
2881
|
});
|
|
2866
2882
|
}, "t11"), e[26] = _, e[27] = g, e[28] = o, e[29] = ze) : ze = e[29];
|
|
2867
|
-
const
|
|
2883
|
+
const ft = ze;
|
|
2868
2884
|
let Be;
|
|
2869
2885
|
e[30] !== o ? (Be = /* @__PURE__ */ a((K, oe) => {
|
|
2870
2886
|
o.onUpdateView?.(K, oe);
|
|
2871
2887
|
}, "t12"), e[30] = o, e[31] = Be) : Be = e[31];
|
|
2872
|
-
const
|
|
2888
|
+
const dt = Be;
|
|
2873
2889
|
let We;
|
|
2874
2890
|
e[32] !== o ? (We = /* @__PURE__ */ a((K, oe) => {
|
|
2875
2891
|
o.onDeleteView?.(K, oe);
|
|
2876
2892
|
}, "t13"), e[32] = o, e[33] = We) : We = e[33];
|
|
2877
|
-
const
|
|
2893
|
+
const mt = We;
|
|
2878
2894
|
let je;
|
|
2879
2895
|
e[34] !== v || e[35] !== E ? (je = /* @__PURE__ */ a(() => {
|
|
2880
2896
|
const K = E();
|
|
2881
2897
|
J.current?.reset(), v?.(K.pagedQuery);
|
|
2882
2898
|
}, "t14"), e[34] = v, e[35] = E, e[36] = je) : je = e[36];
|
|
2883
|
-
const
|
|
2899
|
+
const ht = je, {
|
|
2884
2900
|
subscribe: Sn
|
|
2885
|
-
} =
|
|
2901
|
+
} = It();
|
|
2886
2902
|
Sn({
|
|
2887
2903
|
name: "Fetcher-Viewer-Refresh-Data",
|
|
2888
2904
|
handle() {
|
|
@@ -2890,31 +2906,31 @@ function oa(t) {
|
|
|
2890
2906
|
}
|
|
2891
2907
|
});
|
|
2892
2908
|
let ve;
|
|
2893
|
-
e[37] !== _ || e[38] !== i.countUrl || e[39] !== i.name || e[40] !==
|
|
2909
|
+
e[37] !== _ || e[38] !== i.countUrl || e[39] !== i.name || e[40] !== mt || e[41] !== dt || e[42] !== Q || e[43] !== N || e[44] !== n ? (ve = N && /* @__PURE__ */ u(Wr, { className: $e.userViews, width: 220, children: /* @__PURE__ */ u(br, { aggregateName: i.name, views: n, activeView: _, countUrl: i.countUrl, onViewChange: Q, showViewPanel: N, onViewPanelFold: L, onCreateView: pn, onEditViewName: dt, onDeleteView: mt }) }), e[37] = _, e[38] = i.countUrl, e[39] = i.name, e[40] = mt, e[41] = dt, e[42] = Q, e[43] = N, e[44] = n, e[45] = ve) : ve = e[45];
|
|
2894
2910
|
let Ge;
|
|
2895
2911
|
e[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ge = {
|
|
2896
2912
|
display: "flex"
|
|
2897
2913
|
}, e[46] = Ge) : Ge = e[46];
|
|
2898
2914
|
let _e;
|
|
2899
|
-
e[47] !== _.name || e[48] !== _.source || e[49] !== m || e[50] !== w || e[51] !== i.name || e[52] !==
|
|
2915
|
+
e[47] !== _.name || e[48] !== _.source || e[49] !== m || e[50] !== w || e[51] !== i.name || e[52] !== ht || e[53] !== ut || e[54] !== d || e[55] !== h || e[56] !== N || e[57] !== f || e[58] !== $ || e[59] !== o ? (_e = /* @__PURE__ */ u(zr, { className: $e.topBar, children: /* @__PURE__ */ u(vr, { tableSelectedItems: $, title: i.name, viewName: _.name, viewSource: _.source, showViewPanel: N, onViewPanelUnfold: W, primaryAction: d, secondaryActions: h, barItems: f, batchOperationConfig: m, viewChanged: w, viewManagement: o, onSaveAsView: ut, onReset: ht }) }), e[47] = _.name, e[48] = _.source, e[49] = m, e[50] = w, e[51] = i.name, e[52] = ht, e[53] = ut, e[54] = d, e[55] = h, e[56] = N, e[57] = f, e[58] = $, e[59] = o, e[60] = _e) : _e = e[60];
|
|
2900
2916
|
let ge;
|
|
2901
|
-
e[61] !== _.filters || e[62] !== i.availableFilters || e[63] !== j || e[64] !== R || e[65] !== D ? (ge = R && /* @__PURE__ */ u("div", { className: $e.filterPanel, children: /* @__PURE__ */ u(
|
|
2917
|
+
e[61] !== _.filters || e[62] !== i.availableFilters || e[63] !== j || e[64] !== R || e[65] !== D ? (ge = R && /* @__PURE__ */ u("div", { className: $e.filterPanel, children: /* @__PURE__ */ u(Bl, { ref: J, filters: _.filters, availableFilters: i.availableFilters, onSearch: j, onChange: D }) }), e[61] = _.filters, e[62] = i.availableFilters, e[63] = j, e[64] = R, e[65] = D, e[66] = ge) : ge = e[66];
|
|
2902
2918
|
let Ee;
|
|
2903
|
-
e[67] !== c ? (Ee =
|
|
2919
|
+
e[67] !== c ? (Ee = Nr(c), e[67] = c, e[68] = Ee) : Ee = e[68];
|
|
2904
2920
|
let Ke;
|
|
2905
2921
|
e[69] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ke = {
|
|
2906
2922
|
pagination: !1
|
|
2907
2923
|
}, e[69] = Ke) : Ke = e[69];
|
|
2908
|
-
const
|
|
2924
|
+
const yt = m?.enabled || !1;
|
|
2909
2925
|
let be;
|
|
2910
|
-
e[70] !== r || e[71] !== i || e[72] !== y || e[73] !== Ee || e[74] !==
|
|
2926
|
+
e[70] !== r || e[71] !== i || e[72] !== y || e[73] !== Ee || e[74] !== yt ? (be = /* @__PURE__ */ u(Zr, { dataSource: Ee, viewDefinition: i, actionColumn: r, onSortChanged: te, onSelectChange: se, attributes: Ke, enableBatchOperation: yt, onClickPrimaryKey: y }), e[70] = r, e[71] = i, e[72] = y, e[73] = Ee, e[74] = yt, e[75] = be) : be = e[75];
|
|
2911
2927
|
let pe;
|
|
2912
|
-
e[76] !== _.pagedQuery?.pagination?.size || e[77] !== m?.enabled || e[78] !== b || e[79] !== G || e[80] !== s || e[81] !==
|
|
2913
|
-
/* @__PURE__ */ u("span", { children:
|
|
2914
|
-
/* @__PURE__ */ u(
|
|
2915
|
-
] }), e[76] = _.pagedQuery?.pagination?.size, e[77] = m?.enabled, e[78] = b, e[79] = G, e[80] = s, e[81] =
|
|
2928
|
+
e[76] !== _.pagedQuery?.pagination?.size || e[77] !== m?.enabled || e[78] !== b || e[79] !== G || e[80] !== s || e[81] !== $ ? (pe = (s || m?.enabled) && /* @__PURE__ */ Y(Br, { className: $e.pagination, children: [
|
|
2929
|
+
/* @__PURE__ */ u("span", { children: $.length ? `已选择 ${$.length} 条数据` : "" }),
|
|
2930
|
+
/* @__PURE__ */ u(Fn, { showTotal: Gr, defaultPageSize: _.pagedQuery?.pagination?.size || 10, defaultCurrent: b, current: b, pageSizeOptions: ["10", "20", "50", "100", "200"], ...s, onChange: G })
|
|
2931
|
+
] }), e[76] = _.pagedQuery?.pagination?.size, e[77] = m?.enabled, e[78] = b, e[79] = G, e[80] = s, e[81] = $, e[82] = pe) : pe = e[82];
|
|
2916
2932
|
let Se;
|
|
2917
|
-
e[83] !== _e || e[84] !== ge || e[85] !== be || e[86] !== pe ? (Se = /* @__PURE__ */ u(
|
|
2933
|
+
e[83] !== _e || e[84] !== ge || e[85] !== be || e[86] !== pe ? (Se = /* @__PURE__ */ u(pt, { className: $e.container, children: /* @__PURE__ */ u(jr, { children: /* @__PURE__ */ Y(ae, { orientation: "vertical", style: Ge, size: "small", children: [
|
|
2918
2934
|
_e,
|
|
2919
2935
|
ge,
|
|
2920
2936
|
be,
|
|
@@ -2923,37 +2939,37 @@ function oa(t) {
|
|
|
2923
2939
|
let Qe;
|
|
2924
2940
|
e[88] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Qe = /* @__PURE__ */ a(() => X(!1), "t25"), e[88] = Qe) : Qe = e[88];
|
|
2925
2941
|
let Te;
|
|
2926
|
-
e[89] !==
|
|
2942
|
+
e[89] !== ct || e[90] !== ft || e[91] !== re || e[92] !== ue ? (Te = /* @__PURE__ */ u(Tr, { mode: re, open: ue, defaultViewType: ct, onSaveView: ft, onCancel: Qe }), e[89] = ct, e[90] = ft, e[91] = re, e[92] = ue, e[93] = Te) : Te = e[93];
|
|
2927
2943
|
let Ce;
|
|
2928
|
-
e[94] !==
|
|
2944
|
+
e[94] !== ot || e[95] !== ve || e[96] !== Se || e[97] !== Te ? (Ce = /* @__PURE__ */ Y(pt, { children: [
|
|
2929
2945
|
ve,
|
|
2930
2946
|
Se,
|
|
2931
2947
|
Te,
|
|
2932
|
-
|
|
2933
|
-
] }), e[94] =
|
|
2948
|
+
ot
|
|
2949
|
+
] }), e[94] = ot, e[95] = ve, e[96] = Se, e[97] = Te, e[98] = Ce) : Ce = e[98];
|
|
2934
2950
|
let we;
|
|
2935
|
-
e[99] !== R || e[100] !== Ce || e[101] !== A ? (we = /* @__PURE__ */ u(
|
|
2951
|
+
e[99] !== R || e[100] !== Ce || e[101] !== A ? (we = /* @__PURE__ */ u(Cr, { showFilterPanel: R, updateShowFilterPanel: A, children: Ce }), e[99] = R, e[100] = Ce, e[101] = A, e[102] = we) : we = e[102];
|
|
2936
2952
|
let qe;
|
|
2937
|
-
return e[103] !== _ || e[104] !== w || e[105] !== E || e[106] !== g || e[107] !== we || e[108] !==
|
|
2953
|
+
return e[103] !== _ || e[104] !== w || e[105] !== E || e[106] !== g || e[107] !== we || e[108] !== V || e[109] !== T || e[110] !== D || e[111] !== O || e[112] !== x ? (qe = /* @__PURE__ */ u(Pi, { activeView: _, changed: w, updateColumns: V, updateFilters: D, updateTableSize: x, updateConditions: T, updatePageSize: O, switchView: g, reset: E, children: we }), e[103] = _, e[104] = w, e[105] = E, e[106] = g, e[107] = we, e[108] = V, e[109] = T, e[110] = D, e[111] = O, e[112] = x, e[113] = qe) : qe = e[113], qe;
|
|
2938
2954
|
}
|
|
2939
|
-
a(
|
|
2940
|
-
function
|
|
2955
|
+
a(ca, "Viewer");
|
|
2956
|
+
function Gr(t) {
|
|
2941
2957
|
return `total ${t} items`;
|
|
2942
2958
|
}
|
|
2943
|
-
a(
|
|
2944
|
-
function Gr() {
|
|
2945
|
-
return Kr;
|
|
2946
|
-
}
|
|
2947
|
-
a(Gr, "_temp3");
|
|
2959
|
+
a(Gr, "_temp4");
|
|
2948
2960
|
function Kr() {
|
|
2961
|
+
return Qr;
|
|
2962
|
+
}
|
|
2963
|
+
a(Kr, "_temp3");
|
|
2964
|
+
function Qr() {
|
|
2949
2965
|
Me.destroyAll();
|
|
2950
2966
|
}
|
|
2951
|
-
a(
|
|
2952
|
-
function
|
|
2967
|
+
a(Qr, "_temp2");
|
|
2968
|
+
function qr(t) {
|
|
2953
2969
|
console.log("sort changed", t);
|
|
2954
2970
|
}
|
|
2955
|
-
a(
|
|
2956
|
-
function
|
|
2971
|
+
a(qr, "_temp$1");
|
|
2972
|
+
function Zr(t) {
|
|
2957
2973
|
const e = U(33), {
|
|
2958
2974
|
viewDefinition: n,
|
|
2959
2975
|
dataSource: l,
|
|
@@ -2965,70 +2981,70 @@ function qr(t) {
|
|
|
2965
2981
|
onClickPrimaryKey: f
|
|
2966
2982
|
} = t, {
|
|
2967
2983
|
activeView: m
|
|
2968
|
-
} =
|
|
2984
|
+
} = Nt();
|
|
2969
2985
|
let d;
|
|
2970
2986
|
if (e[0] !== i || e[1] !== m.columns || e[2] !== f || e[3] !== t.actionColumn || e[4] !== n) {
|
|
2971
|
-
let
|
|
2972
|
-
if (e[6] !== f || e[7] !== n ? (
|
|
2973
|
-
const T = n.fields.find((
|
|
2987
|
+
let V;
|
|
2988
|
+
if (e[6] !== f || e[7] !== n ? (V = /* @__PURE__ */ a((x) => {
|
|
2989
|
+
const T = n.fields.find((O) => O.name === x.name);
|
|
2974
2990
|
return {
|
|
2975
|
-
key:
|
|
2991
|
+
key: x.name,
|
|
2976
2992
|
title: T?.label || "UNKNOWN",
|
|
2977
|
-
dataIndex:
|
|
2978
|
-
fixed: T?.primaryKey ||
|
|
2979
|
-
render: /* @__PURE__ */ a((
|
|
2993
|
+
dataIndex: x.name.split("."),
|
|
2994
|
+
fixed: T?.primaryKey || x?.fixed ? "start" : "",
|
|
2995
|
+
render: /* @__PURE__ */ a((O, E, g) => {
|
|
2980
2996
|
if (T?.render)
|
|
2981
|
-
return T.render(
|
|
2997
|
+
return T.render(O, E, g);
|
|
2982
2998
|
if (T?.primaryKey)
|
|
2983
2999
|
return /* @__PURE__ */ u(Fe, { data: {
|
|
2984
|
-
value:
|
|
3000
|
+
value: O,
|
|
2985
3001
|
record: E,
|
|
2986
3002
|
index: g
|
|
2987
3003
|
}, attributes: {
|
|
2988
3004
|
onClick: /* @__PURE__ */ a((R) => {
|
|
2989
|
-
f?.(
|
|
3005
|
+
f?.(O, R);
|
|
2990
3006
|
}, "onClick")
|
|
2991
3007
|
} });
|
|
2992
|
-
const
|
|
2993
|
-
return
|
|
2994
|
-
value: String(
|
|
3008
|
+
const F = Ni(T?.type || "text", T?.attributes || {});
|
|
3009
|
+
return F ? F(O, E, g) : /* @__PURE__ */ u(hn, { data: {
|
|
3010
|
+
value: String(O),
|
|
2995
3011
|
record: E,
|
|
2996
3012
|
index: g
|
|
2997
3013
|
} });
|
|
2998
3014
|
}, "render"),
|
|
2999
3015
|
sorter: T?.sorter,
|
|
3000
|
-
width:
|
|
3001
|
-
hidden:
|
|
3016
|
+
width: x.width,
|
|
3017
|
+
hidden: x.hidden,
|
|
3002
3018
|
...T?.attributes || {}
|
|
3003
3019
|
};
|
|
3004
|
-
}, "t02"), e[6] = f, e[7] = n, e[8] =
|
|
3005
|
-
const
|
|
3020
|
+
}, "t02"), e[6] = f, e[7] = n, e[8] = V) : V = e[8], d = m.columns.map(V), i) {
|
|
3021
|
+
const x = i.dataIndex || n.fields.find(Xr)?.name || "id";
|
|
3006
3022
|
let T;
|
|
3007
3023
|
e[9] !== i.configurable || e[10] !== i.configurePanelTitle || e[11] !== i.title || e[12] !== n ? (T = /* @__PURE__ */ a(() => {
|
|
3008
3024
|
if (i.configurable) {
|
|
3009
3025
|
const E = /* @__PURE__ */ u(xi, { viewDefinition: n });
|
|
3010
|
-
return /* @__PURE__ */
|
|
3026
|
+
return /* @__PURE__ */ Y("div", { className: Vi.configurableColumnHeader, children: [
|
|
3011
3027
|
/* @__PURE__ */ u("span", { children: i.title }),
|
|
3012
|
-
/* @__PURE__ */ u(
|
|
3028
|
+
/* @__PURE__ */ u(Pn, { content: E, title: i.configurePanelTitle || "Setting", placement: "bottomRight", trigger: "click", children: /* @__PURE__ */ u(tn, {}) })
|
|
3013
3029
|
] });
|
|
3014
3030
|
}
|
|
3015
3031
|
return i.title;
|
|
3016
3032
|
}, "t12"), e[9] = i.configurable, e[10] = i.configurePanelTitle, e[11] = i.title, e[12] = n, e[13] = T) : T = e[13];
|
|
3017
|
-
let
|
|
3018
|
-
e[14] !== m.columns.length || e[15] !== t.actionColumn ? (
|
|
3033
|
+
let O;
|
|
3034
|
+
e[14] !== m.columns.length || e[15] !== t.actionColumn ? (O = /* @__PURE__ */ a((E, g) => {
|
|
3019
3035
|
const R = {
|
|
3020
3036
|
value: t.actionColumn.actions(g),
|
|
3021
3037
|
record: g,
|
|
3022
3038
|
index: m.columns.length + 1
|
|
3023
3039
|
};
|
|
3024
3040
|
return /* @__PURE__ */ u(dn, { data: R });
|
|
3025
|
-
}, "t22"), e[14] = m.columns.length, e[15] = t.actionColumn, e[16] =
|
|
3041
|
+
}, "t22"), e[14] = m.columns.length, e[15] = t.actionColumn, e[16] = O) : O = e[16], d.push({
|
|
3026
3042
|
title: T,
|
|
3027
|
-
dataIndex:
|
|
3043
|
+
dataIndex: x,
|
|
3028
3044
|
key: "action",
|
|
3029
3045
|
fixed: "end",
|
|
3030
3046
|
width: "200px",
|
|
3031
|
-
render:
|
|
3047
|
+
render: O
|
|
3032
3048
|
});
|
|
3033
3049
|
}
|
|
3034
3050
|
e[0] = i, e[1] = m.columns, e[2] = f, e[3] = t.actionColumn, e[4] = n, e[5] = d;
|
|
@@ -3038,135 +3054,135 @@ function qr(t) {
|
|
|
3038
3054
|
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = [], e[17] = h) : h = e[17];
|
|
3039
3055
|
const [y, v] = q(h);
|
|
3040
3056
|
let S;
|
|
3041
|
-
e[18] !== s ? (S = /* @__PURE__ */ a((
|
|
3042
|
-
v(
|
|
3057
|
+
e[18] !== s ? (S = /* @__PURE__ */ a((V, x) => {
|
|
3058
|
+
v(V), s?.(x);
|
|
3043
3059
|
}, "t1"), e[18] = s, e[19] = S) : S = e[19];
|
|
3044
|
-
let
|
|
3045
|
-
e[20] !== y || e[21] !== S ? (
|
|
3060
|
+
let I;
|
|
3061
|
+
e[20] !== y || e[21] !== S ? (I = {
|
|
3046
3062
|
selectedRowKeys: y,
|
|
3047
3063
|
fixed: !0,
|
|
3048
3064
|
onChange: S
|
|
3049
|
-
}, e[20] = y, e[21] = S, e[22] =
|
|
3050
|
-
const k = o ?
|
|
3065
|
+
}, e[20] = y, e[21] = S, e[22] = I) : I = e[22];
|
|
3066
|
+
const k = o ? I : void 0;
|
|
3051
3067
|
let _;
|
|
3052
3068
|
e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = {
|
|
3053
3069
|
x: "max-content"
|
|
3054
3070
|
}, e[23] = _) : _ = e[23];
|
|
3055
3071
|
let w;
|
|
3056
|
-
e[24] !== r ? (w = /* @__PURE__ */ a((
|
|
3057
|
-
|
|
3072
|
+
e[24] !== r ? (w = /* @__PURE__ */ a((V, x, T, O) => {
|
|
3073
|
+
O.action === "sort" && r && r(T);
|
|
3058
3074
|
}, "t5"), e[24] = r, e[25] = w) : w = e[25];
|
|
3059
3075
|
let D;
|
|
3060
|
-
return e[26] !== m.tableSize || e[27] !== c || e[28] !== l || e[29] !== k || e[30] !== w || e[31] !== d ? (D = /* @__PURE__ */ u(
|
|
3076
|
+
return e[26] !== m.tableSize || e[27] !== c || e[28] !== l || e[29] !== k || e[30] !== w || e[31] !== d ? (D = /* @__PURE__ */ u(Rn, { dataSource: l, rowSelection: k, columns: d, ...c, scroll: _, size: m.tableSize, onChange: w }), e[26] = m.tableSize, e[27] = c, e[28] = l, e[29] = k, e[30] = w, e[31] = d, e[32] = D) : D = e[32], D;
|
|
3061
3077
|
}
|
|
3062
|
-
a(
|
|
3063
|
-
function
|
|
3078
|
+
a(Zr, "ViewTable");
|
|
3079
|
+
function Xr(t) {
|
|
3064
3080
|
return t.primaryKey;
|
|
3065
3081
|
}
|
|
3066
|
-
a(
|
|
3082
|
+
a(Xr, "_temp");
|
|
3067
3083
|
export {
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3084
|
+
jl as ACTIONS_CELL_TYPE,
|
|
3085
|
+
Wl as ACTION_CELL_TYPE,
|
|
3086
|
+
Zl as AVATAR_CELL_TYPE,
|
|
3071
3087
|
Fe as ActionCell,
|
|
3072
3088
|
dn as ActionsCell,
|
|
3073
3089
|
vn as ActiveViewStateContext,
|
|
3074
|
-
|
|
3090
|
+
Pi as ActiveViewStateContextProvider,
|
|
3075
3091
|
Ne as AssemblyFilter,
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3092
|
+
Ji as AutoRefreshBarItem,
|
|
3093
|
+
ml as AvailableFilterSelect,
|
|
3094
|
+
yl as AvailableFilterSelectModal,
|
|
3095
|
+
Xl as AvatarCell,
|
|
3096
|
+
Il as BOOL_FILTER,
|
|
3081
3097
|
ye as BarItem,
|
|
3082
3098
|
sn as BoolFilter,
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3099
|
+
ii as CALENDAR_CELL_TYPE,
|
|
3100
|
+
sr as COLUMN_HEIGHT_BAR_ITEM_TYPE,
|
|
3101
|
+
wi as CURRENCY_CELL_TYPE,
|
|
3102
|
+
ai as CalendarTimeCell,
|
|
3103
|
+
or as ColumnHeightBarItem,
|
|
3104
|
+
Ai as CurrencyCell,
|
|
3105
|
+
li as DATETIME_CELL_TYPE,
|
|
3106
|
+
ri as DEFAULT_CALENDAR_FORMATS,
|
|
3091
3107
|
he as DEFAULT_CURRENCY_FORMAT_OPTIONS,
|
|
3092
3108
|
et as DEFAULT_DATE_TIME_FORMAT,
|
|
3093
3109
|
mn as DateTimeCell,
|
|
3094
|
-
|
|
3110
|
+
Bl as EditableFilterPanel,
|
|
3095
3111
|
Re as ExtendedOperator,
|
|
3096
|
-
|
|
3112
|
+
lr as FILTER_BAR_ITEM_TYPE,
|
|
3097
3113
|
un as FallbackFilter,
|
|
3098
|
-
|
|
3099
|
-
|
|
3114
|
+
ir as FilterBarItem,
|
|
3115
|
+
Yl as FilterPanel,
|
|
3100
3116
|
En as FilterStateContext,
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3117
|
+
Cr as FilterStateContextProvider,
|
|
3118
|
+
ul as Fullscreen,
|
|
3119
|
+
Cl as ID_FILTER,
|
|
3120
|
+
di as IMAGE_CELL_TYPE,
|
|
3121
|
+
hi as IMAGE_GROUP_CELL_TYPE,
|
|
3106
3122
|
ln as IdFilter,
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3123
|
+
wl as IdOnOperatorChangeValueConverter,
|
|
3124
|
+
mi as ImageCell,
|
|
3125
|
+
yi as ImageGroupCell,
|
|
3126
|
+
_i as LINK_CELL_TYPE,
|
|
3127
|
+
bi as LinkCell,
|
|
3128
|
+
Al as NUMBER_FILTER,
|
|
3113
3129
|
rn as NumberFilter,
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3130
|
+
sl as NumberRange,
|
|
3131
|
+
rl as NumberTagValueItemSerializer,
|
|
3132
|
+
fl as OPERATOR_zh_CN,
|
|
3133
|
+
dr as Point,
|
|
3134
|
+
rr as REFRESH_DATA_BAR_ITEM_TYPE,
|
|
3135
|
+
ar as RefreshDataBarItem,
|
|
3136
|
+
cl as RemoteSelect,
|
|
3137
|
+
Ll as RemovableTypedFilter,
|
|
3138
|
+
Nl as SELECT_FILTER,
|
|
3139
|
+
ur as SHARE_LINK_BAR_ITEM_TYPE,
|
|
3140
|
+
Tr as SaveViewModal,
|
|
3125
3141
|
an as SelectFilter,
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3142
|
+
fr as ShareLinkBarItem,
|
|
3143
|
+
il as StringTagValueItemSerializer,
|
|
3144
|
+
ui as TAGS_CELL_TYPE,
|
|
3145
|
+
ci as TAG_CELL_TYPE,
|
|
3146
|
+
oi as TEXT_CELL_TYPE,
|
|
3147
|
+
Tl as TEXT_FILTER,
|
|
3148
|
+
Lt as TableFieldItem,
|
|
3133
3149
|
xi as TableSettingPanel,
|
|
3134
3150
|
yn as TagCell,
|
|
3135
|
-
|
|
3136
|
-
|
|
3151
|
+
at as TagInput,
|
|
3152
|
+
fi as TagsCell,
|
|
3137
3153
|
hn as TextCell,
|
|
3138
3154
|
nn as TextFilter,
|
|
3139
|
-
|
|
3140
|
-
|
|
3155
|
+
vr as TopBar,
|
|
3156
|
+
_l as TrueValidateValue,
|
|
3141
3157
|
gn as TypedBarItem,
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3158
|
+
Pe as TypedComponentRegistry,
|
|
3159
|
+
wt as TypedFilter,
|
|
3160
|
+
Zi as ViewItem,
|
|
3161
|
+
Ut as ViewItemGroup,
|
|
3162
|
+
gr as ViewManageItem,
|
|
3163
|
+
Wt as ViewManageModal,
|
|
3164
|
+
br as ViewPanel,
|
|
3165
|
+
Zr as ViewTable,
|
|
3166
|
+
ca as Viewer,
|
|
3151
3167
|
_n as barItemRegistry,
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3168
|
+
Di as cellRegistry,
|
|
3169
|
+
oa as currentTimeZone,
|
|
3170
|
+
At as deepEqual,
|
|
3155
3171
|
xl as filterRegistry,
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3172
|
+
Si as formatCurrency,
|
|
3173
|
+
kt as isActionCellProps,
|
|
3174
|
+
Ql as isNullOrUndefined,
|
|
3175
|
+
vl as isValidBetweenValue,
|
|
3176
|
+
ql as isValidImageSrc,
|
|
3177
|
+
Ft as isValidValue,
|
|
3178
|
+
Nr as mapToTableRecord,
|
|
3179
|
+
Kl as parseDayjs,
|
|
3180
|
+
Ni as typedCellRender,
|
|
3181
|
+
Nt as useActiveViewStateContext,
|
|
3182
|
+
Vr as useActiveViewStateReducer,
|
|
3183
|
+
Sl as useFilterState,
|
|
3184
|
+
wr as useFilterStateContext,
|
|
3185
|
+
Dr as useFilterStateReducer,
|
|
3186
|
+
It as useRefreshDataEventBus
|
|
3171
3187
|
};
|
|
3172
3188
|
//# sourceMappingURL=index.es.js.map
|