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