@ahoo-wang/fetcher-viewer 3.13.5 → 3.13.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1045 -1036
- 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/topbar/AutoRefreshBarItem.d.ts +2 -1
- package/dist/topbar/AutoRefreshBarItem.d.ts.map +1 -1
- package/dist/topbar/TopBar.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var r = (t, e) =>
|
|
1
|
+
var Fn = Object.defineProperty;
|
|
2
|
+
var r = (t, e) => Fn(t, "name", { value: e, configurable: !0 });
|
|
3
3
|
import { jsx as c, jsxs as J, Fragment as Ee } from "react/jsx-runtime";
|
|
4
4
|
import { c as G } from "react/compiler-runtime";
|
|
5
|
-
import { Select as ct, InputNumber as rt, Space as Ce, Input as Qe, Flex as pe, Spin as Et, Empty as at, Button as _e, Row as St, Col as Ct, Checkbox as Zt, Divider as Be, Modal as ut, theme as
|
|
5
|
+
import { Select as ct, InputNumber as rt, Space as Ce, Input as Qe, Flex as pe, Spin as Et, Empty as at, Button as _e, Row as St, Col as Ct, Checkbox as Zt, Divider as Be, Modal as ut, theme as Pn, Typography as ge, DatePicker as ht, Alert as xn, Dropdown as $e, Avatar as _t, Tag as Ot, Image as yt, Badge as Vn, Table as $n, Popover as kn, Tooltip as Xe, message as Mn, Pagination as gn, Collapse as Un, Radio as Hn, Form as et, Popconfirm as zn, Layout as vt } from "antd";
|
|
6
6
|
import Jt, { useState as ee, useCallback as en, useEffect as Ae, useRef as Oe, useImperativeHandle as be, createElement as Ft } from "react";
|
|
7
|
-
import { useDebouncedExecutePromise as
|
|
8
|
-
import { FullscreenOutlined as
|
|
9
|
-
import { ContentTypeValues as
|
|
10
|
-
import { post as
|
|
11
|
-
import { JsonEventStreamResultExtractor as
|
|
12
|
-
import { ResourceAttributionPathSpec as
|
|
13
|
-
import { SerialTypedEventBus as
|
|
14
|
-
import { KeyStorage as
|
|
7
|
+
import { useDebouncedExecutePromise as Bn, useFullscreen as Yn, useSingleQuery as Wn, useFetcherListQuery as Kn, useFetcherPagedQuery as Gn, useKeyStorage as tn, useRefs as jn, useFullscreenContext as qn } from "@ahoo-wang/fetcher-react";
|
|
8
|
+
import { FullscreenOutlined as nn, FullscreenExitOutlined as ln, MinusOutlined as Qn, ClearOutlined as Xn, SearchOutlined as Zn, PlusOutlined as rn, DownOutlined as We, DragOutlined as an, SettingOutlined as on, ColumnHeightOutlined as Jn, FilterOutlined as el, ReloadOutlined as tl, LinkOutlined as nl, ExclamationCircleOutlined as ll, MenuUnfoldOutlined as il, MenuFoldOutlined as rl, EditOutlined as al, DeleteOutlined as ol } from "@ant-design/icons";
|
|
9
|
+
import { ContentTypeValues as sl, fetcherRegistrar as cl, TextResultExtractor as ul } from "@ahoo-wang/fetcher";
|
|
10
|
+
import { post as fl, path as Ge, request as ft, attribute as dt, del as dl, put as sn, api as cn, autoGeneratedError as Ze } from "@ahoo-wang/fetcher-decorator";
|
|
11
|
+
import { JsonEventStreamResultExtractor as ml } from "@ahoo-wang/fetcher-eventstream";
|
|
12
|
+
import { ResourceAttributionPathSpec as un, QueryClientFactory as fn, aggregateId as hl, listQuery as _l, and as bt, eq as Pt, isIn as xt, all as je, EMPTY_VALUE_OPERATORS as Tl, Operator as z } from "@ahoo-wang/fetcher-wow";
|
|
13
|
+
import { SerialTypedEventBus as El, BroadcastTypedEventBus as Sl } from "@ahoo-wang/fetcher-eventbus";
|
|
14
|
+
import { KeyStorage as dn } from "@ahoo-wang/fetcher-storage";
|
|
15
15
|
const Cl = {
|
|
16
16
|
serialize(t) {
|
|
17
17
|
return t;
|
|
@@ -43,8 +43,8 @@ function mt(t) {
|
|
|
43
43
|
e[7] !== l || e[8] !== f ? (m = /* @__PURE__ */ r((C) => {
|
|
44
44
|
if (!l)
|
|
45
45
|
return;
|
|
46
|
-
const
|
|
47
|
-
l(
|
|
46
|
+
const O = f.deserialize(C);
|
|
47
|
+
l(O);
|
|
48
48
|
}, "t3"), e[7] = l, e[8] = f, e[9] = m) : m = e[9];
|
|
49
49
|
const h = m;
|
|
50
50
|
let _ = null;
|
|
@@ -61,50 +61,50 @@ function mt(t) {
|
|
|
61
61
|
}
|
|
62
62
|
r(mt, "TagInput");
|
|
63
63
|
mt.displayName = "TagInput";
|
|
64
|
-
const
|
|
64
|
+
const Vt = /* @__PURE__ */ r((t) => Array.isArray(t) ? t : [t, void 0], "convertToRangeValue"), Tt = ["最小值", "最大值"];
|
|
65
65
|
function Il(t) {
|
|
66
66
|
const e = G(35), l = t.value !== void 0;
|
|
67
67
|
let n;
|
|
68
|
-
e[0] !== t.defaultValue ? (n =
|
|
68
|
+
e[0] !== t.defaultValue ? (n = Vt(t.defaultValue), e[0] = t.defaultValue, e[1] = n) : n = e[1];
|
|
69
69
|
const [i, a] = ee(n);
|
|
70
70
|
let o;
|
|
71
|
-
e[2] !== i || e[3] !== l || e[4] !== t.value ? (o = l ?
|
|
71
|
+
e[2] !== i || e[3] !== l || e[4] !== t.value ? (o = l ? Vt(t.value) : i, e[2] = i, e[3] = l, e[4] = t.value, e[5] = o) : o = e[5];
|
|
72
72
|
const s = o, [u, d] = s;
|
|
73
73
|
let f;
|
|
74
|
-
e[6] !== l || e[7] !== t ? (f = /* @__PURE__ */ r((
|
|
75
|
-
l || a(
|
|
74
|
+
e[6] !== l || e[7] !== t ? (f = /* @__PURE__ */ r((U) => {
|
|
75
|
+
l || a(U), t.onChange?.(U);
|
|
76
76
|
}, "t2"), e[6] = l, e[7] = t, e[8] = f) : f = e[8];
|
|
77
77
|
const m = f;
|
|
78
78
|
let h;
|
|
79
|
-
e[9] !== d || e[10] !== m ? (h = /* @__PURE__ */ r((
|
|
80
|
-
m([
|
|
79
|
+
e[9] !== d || e[10] !== m ? (h = /* @__PURE__ */ r((U) => {
|
|
80
|
+
m([U ?? void 0, d]);
|
|
81
81
|
}, "t3"), e[9] = d, e[10] = m, e[11] = h) : h = e[11];
|
|
82
82
|
const _ = h;
|
|
83
83
|
let S;
|
|
84
|
-
e[12] !== m || e[13] !== u ? (S = /* @__PURE__ */ r((
|
|
85
|
-
m([u,
|
|
84
|
+
e[12] !== m || e[13] !== u ? (S = /* @__PURE__ */ r((U) => {
|
|
85
|
+
m([u, U ?? void 0]);
|
|
86
86
|
}, "t4"), e[12] = m, e[13] = u, e[14] = S) : S = e[14];
|
|
87
|
-
const C = S,
|
|
88
|
-
let
|
|
89
|
-
e[15] !== t.placeholder ? (
|
|
90
|
-
const
|
|
91
|
-
let
|
|
92
|
-
e[17] !== _ || e[18] !==
|
|
93
|
-
let
|
|
94
|
-
e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
87
|
+
const C = S, O = d !== void 0 ? d : t.max, P = u !== void 0 ? u : t.min;
|
|
88
|
+
let b;
|
|
89
|
+
e[15] !== t.placeholder ? (b = t.placeholder ? [t.placeholder[0] || Tt[0], t.placeholder[1] || Tt[1]] : Tt, e[15] = t.placeholder, e[16] = b) : b = e[16];
|
|
90
|
+
const A = b;
|
|
91
|
+
let x;
|
|
92
|
+
e[17] !== _ || e[18] !== A[0] || e[19] !== t.min || e[20] !== t.precision || e[21] !== u || e[22] !== O ? (x = /* @__PURE__ */ c(rt, { value: u, min: t.min, max: O, precision: t.precision, placeholder: A[0], onChange: _ }), e[17] = _, e[18] = A[0], e[19] = t.min, e[20] = t.precision, e[21] = u, e[22] = O, e[23] = x) : x = e[23];
|
|
93
|
+
let D;
|
|
94
|
+
e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ c(Qe, { style: {
|
|
95
95
|
width: 30,
|
|
96
96
|
borderInlineStart: 0,
|
|
97
97
|
borderInlineEnd: 0,
|
|
98
98
|
pointerEvents: "none"
|
|
99
|
-
}, placeholder: "~", disabled: !0 }), e[24] =
|
|
99
|
+
}, placeholder: "~", disabled: !0 }), e[24] = D) : D = e[24];
|
|
100
100
|
let w;
|
|
101
|
-
e[25] !== d || e[26] !==
|
|
102
|
-
let
|
|
103
|
-
return e[32] !==
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
e[25] !== d || e[26] !== P || e[27] !== C || e[28] !== A[1] || e[29] !== t.max || e[30] !== t.precision ? (w = /* @__PURE__ */ c(rt, { value: d, min: P, max: t.max, precision: t.precision, placeholder: A[1], onChange: C }), e[25] = d, e[26] = P, e[27] = C, e[28] = A[1], e[29] = t.max, e[30] = t.precision, e[31] = w) : w = e[31];
|
|
102
|
+
let V;
|
|
103
|
+
return e[32] !== x || e[33] !== w ? (V = /* @__PURE__ */ J(Ce.Compact, { block: !0, children: [
|
|
104
|
+
x,
|
|
105
|
+
D,
|
|
106
106
|
w
|
|
107
|
-
] }), e[32] =
|
|
107
|
+
] }), e[32] = x, e[33] = w, e[34] = V) : V = e[34], V;
|
|
108
108
|
}
|
|
109
109
|
r(Il, "NumberRange");
|
|
110
110
|
const Nl = {
|
|
@@ -140,25 +140,25 @@ function Ol(t) {
|
|
|
140
140
|
loading: _,
|
|
141
141
|
result: S,
|
|
142
142
|
run: C
|
|
143
|
-
} =
|
|
144
|
-
let b;
|
|
145
|
-
e[9] !== S || e[10] !== C || e[11] !== l ? (b = /* @__PURE__ */ r((H) => {
|
|
146
|
-
H.trim() === "" && S || C(() => l(H));
|
|
147
|
-
}, "t5"), e[9] = S, e[10] = C, e[11] = l, e[12] = b) : b = e[12];
|
|
148
|
-
const F = b, L = S ?? d;
|
|
143
|
+
} = Bn(h);
|
|
149
144
|
let O;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
145
|
+
e[9] !== S || e[10] !== C || e[11] !== l ? (O = /* @__PURE__ */ r((g) => {
|
|
146
|
+
g.trim() === "" && S || C(() => l(g));
|
|
147
|
+
}, "t5"), e[9] = S, e[10] = C, e[11] = l, e[12] = O) : O = e[12];
|
|
148
|
+
const P = O, b = S ?? d;
|
|
149
|
+
let A;
|
|
150
|
+
if (e[13] !== m || e[14] !== b || e[15] !== f) {
|
|
151
|
+
const g = [...b, ...m];
|
|
152
|
+
let F;
|
|
153
|
+
e[17] !== f ? (F = /* @__PURE__ */ r((L) => L[f], "t82"), e[17] = f, e[18] = F) : F = e[18], A = Ll(g, F), e[13] = m, e[14] = b, e[15] = f, e[16] = A;
|
|
154
154
|
} else
|
|
155
|
-
|
|
156
|
-
const
|
|
157
|
-
let
|
|
158
|
-
e[19] !==
|
|
155
|
+
A = e[16];
|
|
156
|
+
const x = A;
|
|
157
|
+
let D;
|
|
158
|
+
e[19] !== P ? (D = {
|
|
159
159
|
filterOption: !1,
|
|
160
|
-
onSearch:
|
|
161
|
-
}, e[19] =
|
|
160
|
+
onSearch: P
|
|
161
|
+
}, e[19] = P, e[20] = D) : D = e[20];
|
|
162
162
|
let w;
|
|
163
163
|
e[21] !== _ ? (w = _ ? /* @__PURE__ */ J(pe, { align: "center", gap: 4, children: [
|
|
164
164
|
/* @__PURE__ */ c(Et, { size: "small", styles: {
|
|
@@ -168,23 +168,23 @@ function Ol(t) {
|
|
|
168
168
|
} }),
|
|
169
169
|
/* @__PURE__ */ c("span", { children: "数据加载中..." })
|
|
170
170
|
] }) : /* @__PURE__ */ c(at, { image: at.PRESENTED_IMAGE_SIMPLE }), e[21] = _, e[22] = w) : w = e[22];
|
|
171
|
-
let
|
|
172
|
-
e[23] !== _ || e[24] !==
|
|
173
|
-
let
|
|
174
|
-
return e[26] !== _ || e[27] !== n || e[28] !==
|
|
171
|
+
let V;
|
|
172
|
+
e[23] !== _ || e[24] !== x ? (V = _ ? [] : x, e[23] = _, e[24] = x, e[25] = V) : V = e[25];
|
|
173
|
+
let U;
|
|
174
|
+
return e[26] !== _ || e[27] !== n || e[28] !== V || e[29] !== D || e[30] !== w ? (U = /* @__PURE__ */ c(ct, { showSearch: D, loading: _, notFoundContent: w, options: V, ...n }), e[26] = _, e[27] = n, e[28] = V, e[29] = D, e[30] = w, e[31] = U) : U = e[31], U;
|
|
175
175
|
}
|
|
176
176
|
r(Ol, "RemoteSelect");
|
|
177
177
|
Ol.displayName = "RemoteSelect";
|
|
178
178
|
function bl(t) {
|
|
179
179
|
const {
|
|
180
180
|
target: e,
|
|
181
|
-
enterIcon: l = /* @__PURE__ */ c(
|
|
182
|
-
exitIcon: n = /* @__PURE__ */ c(
|
|
181
|
+
enterIcon: l = /* @__PURE__ */ c(nn, {}),
|
|
182
|
+
exitIcon: n = /* @__PURE__ */ c(ln, {}),
|
|
183
183
|
...i
|
|
184
184
|
} = t, {
|
|
185
185
|
fullscreen: a,
|
|
186
186
|
toggle: o
|
|
187
|
-
} =
|
|
187
|
+
} = Yn({
|
|
188
188
|
target: e
|
|
189
189
|
});
|
|
190
190
|
return /* @__PURE__ */ c(_e, { ...i, icon: a ? n : l, onClick: /* @__PURE__ */ r(() => o(), "onClick") });
|
|
@@ -197,12 +197,12 @@ var Rl = Object.defineProperty, Dl = Object.getOwnPropertyDescriptor, Ue = /* @_
|
|
|
197
197
|
(o = t[a]) && (i = (n ? o(e, l, i) : o(i)) || i);
|
|
198
198
|
return n && i && Rl(e, l, i), i;
|
|
199
199
|
}, "__decorateClass"), ve = /* @__PURE__ */ r((t, e) => (l, n) => e(l, n, t), "__decorateParam"), wl = /* @__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))(wl || {});
|
|
200
|
-
const
|
|
200
|
+
const mn = {
|
|
201
201
|
basePath: Rt
|
|
202
202
|
};
|
|
203
203
|
var ke;
|
|
204
204
|
let De = (ke = class {
|
|
205
|
-
constructor(e =
|
|
205
|
+
constructor(e = mn) {
|
|
206
206
|
this.apiMetadata = e;
|
|
207
207
|
}
|
|
208
208
|
createView(e, l, n) {
|
|
@@ -219,7 +219,7 @@ let De = (ke = class {
|
|
|
219
219
|
}
|
|
220
220
|
}, r(ke, "ViewCommandClient"), ke);
|
|
221
221
|
Ue([
|
|
222
|
-
|
|
222
|
+
fl(
|
|
223
223
|
"/tenant/{tenantId}/owner/{ownerId}/view/type/{type}"
|
|
224
224
|
/* CREATE_VIEW */
|
|
225
225
|
),
|
|
@@ -228,7 +228,7 @@ Ue([
|
|
|
228
228
|
ve(2, dt())
|
|
229
229
|
], De.prototype, "createView", 1);
|
|
230
230
|
Ue([
|
|
231
|
-
|
|
231
|
+
dl(
|
|
232
232
|
"/tenant/{tenantId}/owner/{ownerId}/view/{id}"
|
|
233
233
|
/* DEFAULT_DELETE_AGGREGATE */
|
|
234
234
|
),
|
|
@@ -237,7 +237,7 @@ Ue([
|
|
|
237
237
|
ve(2, dt())
|
|
238
238
|
], De.prototype, "defaultDeleteAggregate", 1);
|
|
239
239
|
Ue([
|
|
240
|
-
|
|
240
|
+
sn(
|
|
241
241
|
"/tenant/{tenantId}/owner/{ownerId}/view/{id}/recover"
|
|
242
242
|
/* DEFAULT_RECOVER_AGGREGATE */
|
|
243
243
|
),
|
|
@@ -246,7 +246,7 @@ Ue([
|
|
|
246
246
|
ve(2, dt())
|
|
247
247
|
], De.prototype, "defaultRecoverAggregate", 1);
|
|
248
248
|
Ue([
|
|
249
|
-
|
|
249
|
+
sn(
|
|
250
250
|
"/tenant/{tenantId}/owner/{ownerId}/view/{id}/type/{type}"
|
|
251
251
|
/* EDIT_VIEW */
|
|
252
252
|
),
|
|
@@ -256,40 +256,40 @@ Ue([
|
|
|
256
256
|
ve(3, dt())
|
|
257
257
|
], De.prototype, "editView", 1);
|
|
258
258
|
De = Ue([
|
|
259
|
-
|
|
259
|
+
cn()
|
|
260
260
|
], De);
|
|
261
261
|
var Me;
|
|
262
|
-
let
|
|
263
|
-
constructor(e =
|
|
262
|
+
let $t = (Me = class extends De {
|
|
263
|
+
constructor(e = mn) {
|
|
264
264
|
super(e);
|
|
265
265
|
}
|
|
266
266
|
}, r(Me, "ViewStreamCommandClient"), Me);
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
headers: { Accept:
|
|
270
|
-
resultExtractor:
|
|
267
|
+
$t = Ue([
|
|
268
|
+
cn("", {
|
|
269
|
+
headers: { Accept: sl.TEXT_EVENT_STREAM },
|
|
270
|
+
resultExtractor: ml
|
|
271
271
|
})
|
|
272
|
-
],
|
|
272
|
+
], $t);
|
|
273
273
|
const Fl = {
|
|
274
274
|
contextAlias: Rt,
|
|
275
275
|
aggregateName: "view",
|
|
276
|
-
resourceAttribution:
|
|
276
|
+
resourceAttribution: un.TENANT
|
|
277
277
|
};
|
|
278
278
|
var Pl = /* @__PURE__ */ ((t) => (t.view_created = "视图已创建", t.view_edited = "视图已修改", t))(Pl || {});
|
|
279
|
-
const
|
|
279
|
+
const Xa = new fn(Fl);
|
|
280
280
|
var Ye = /* @__PURE__ */ ((t) => (t.AGGREGATE_ID = "aggregateId", t.TENANT_ID = "tenantId", t.OWNER_ID = "ownerId", t.VERSION = "version", t.EVENT_ID = "eventId", t.FIRST_OPERATOR = "firstOperator", t.OPERATOR = "operator", t.FIRST_EVENT_TIME = "firstEventTime", t.EVENT_TIME = "eventTime", t.DELETED = "deleted", t.STATE = "state", t.STATE_COLUMNS = "state.columns", t.STATE_COLUMNS_FIXED = "state.columns.fixed", t.STATE_COLUMNS_HIDDEN = "state.columns.hidden", t.STATE_COLUMNS_NAME = "state.columns.name", t.STATE_COLUMNS_SORT_ORDER = "state.columns.sortOrder", t.STATE_COLUMNS_WIDTH = "state.columns.width", t.STATE_CONDITION = "state.condition", t.STATE_CONDITION_CHILDREN = "state.condition.children", t.STATE_CONDITION_CHILDREN_CHILDREN = "state.condition.children.children", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN = "state.condition.children.children.children", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN_CHILDREN = "state.condition.children.children.children.children", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN_FIELD = "state.condition.children.children.children.field", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN_OPERATOR = "state.condition.children.children.children.operator", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN_OPTIONS = "state.condition.children.children.children.options", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN_VALUE = "state.condition.children.children.children.value", t.STATE_CONDITION_CHILDREN_CHILDREN_FIELD = "state.condition.children.children.field", t.STATE_CONDITION_CHILDREN_CHILDREN_OPERATOR = "state.condition.children.children.operator", t.STATE_CONDITION_CHILDREN_CHILDREN_OPTIONS = "state.condition.children.children.options", t.STATE_CONDITION_CHILDREN_CHILDREN_VALUE = "state.condition.children.children.value", t.STATE_CONDITION_CHILDREN_FIELD = "state.condition.children.field", t.STATE_CONDITION_CHILDREN_OPERATOR = "state.condition.children.operator", t.STATE_CONDITION_CHILDREN_OPTIONS = "state.condition.children.options", t.STATE_CONDITION_CHILDREN_VALUE = "state.condition.children.value", t.STATE_CONDITION_FIELD = "state.condition.field", t.STATE_CONDITION_OPERATOR = "state.condition.operator", t.STATE_CONDITION_OPTIONS = "state.condition.options", t.STATE_CONDITION_VALUE = "state.condition.value", t.STATE_DEFINITION_ID = "state.definitionId", t.STATE_FILTERS = "state.filters", t.STATE_FILTERS_CONDITION_OPTIONS = "state.filters.conditionOptions", t.STATE_FILTERS_FIELD = "state.filters.field", t.STATE_FILTERS_FIELD_FORMAT = "state.filters.field.format", t.STATE_FILTERS_FIELD_LABEL = "state.filters.field.label", t.STATE_FILTERS_FIELD_NAME = "state.filters.field.name", t.STATE_FILTERS_FIELD_TYPE = "state.filters.field.type", t.STATE_FILTERS_KEY = "state.filters.key", t.STATE_FILTERS_LABEL = "state.filters.label", t.STATE_FILTERS_LABEL_CLASS_NAME = "state.filters.label.className", t.STATE_FILTERS_LABEL_STYLE = "state.filters.label.style", t.STATE_FILTERS_OPERATOR = "state.filters.operator", t.STATE_FILTERS_OPERATOR_DEFAULT_OPERATOR = "state.filters.operator.defaultOperator", t.STATE_FILTERS_OPERATOR_LOCALE = "state.filters.operator.locale", t.STATE_FILTERS_OPERATOR_SUPPORTED_OPERATORS = "state.filters.operator.supportedOperators", t.STATE_FILTERS_TYPE = "state.filters.type", t.STATE_FILTERS_VALUE = "state.filters.value", t.STATE_FILTERS_VALUE_CLASS_NAME = "state.filters.value.className", t.STATE_FILTERS_VALUE_DEFAULT_VALUE = "state.filters.value.defaultValue", t.STATE_FILTERS_VALUE_PLACEHOLDER = "state.filters.value.placeholder", t.STATE_FILTERS_VALUE_STYLE = "state.filters.value.style", t.STATE_ID = "state.id", t.STATE_INTERNAL_CONDITION = "state.internalCondition", t.STATE_INTERNAL_CONDITION_CHILDREN = "state.internalCondition.children", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN = "state.internalCondition.children.children", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN = "state.internalCondition.children.children.children", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN_CHILDREN = "state.internalCondition.children.children.children.children", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN_FIELD = "state.internalCondition.children.children.children.field", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN_OPERATOR = "state.internalCondition.children.children.children.operator", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN_OPTIONS = "state.internalCondition.children.children.children.options", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN_VALUE = "state.internalCondition.children.children.children.value", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_FIELD = "state.internalCondition.children.children.field", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_OPERATOR = "state.internalCondition.children.children.operator", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_OPTIONS = "state.internalCondition.children.children.options", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_VALUE = "state.internalCondition.children.children.value", t.STATE_INTERNAL_CONDITION_CHILDREN_FIELD = "state.internalCondition.children.field", t.STATE_INTERNAL_CONDITION_CHILDREN_OPERATOR = "state.internalCondition.children.operator", t.STATE_INTERNAL_CONDITION_CHILDREN_OPTIONS = "state.internalCondition.children.options", t.STATE_INTERNAL_CONDITION_CHILDREN_VALUE = "state.internalCondition.children.value", t.STATE_INTERNAL_CONDITION_FIELD = "state.internalCondition.field", t.STATE_INTERNAL_CONDITION_OPERATOR = "state.internalCondition.operator", t.STATE_INTERNAL_CONDITION_OPTIONS = "state.internalCondition.options", t.STATE_INTERNAL_CONDITION_VALUE = "state.internalCondition.value", t.STATE_IS_DEFAULT = "state.isDefault", t.STATE_NAME = "state.name", t.STATE_PAGE_SIZE = "state.pageSize", t.STATE_SORTER = "state.sorter", t.STATE_SORTER_COLUMN_KEY = "state.sorter.columnKey", t.STATE_SORTER_FIELD = "state.sorter.field", t.STATE_SORTER_ORDER = "state.sorter.order", t.STATE_SOURCE = "state.source", t.STATE_TABLE_SIZE = "state.tableSize", t.STATE_TYPE = "state.type", t))(Ye || {});
|
|
281
281
|
const xl = {
|
|
282
282
|
contextAlias: Rt,
|
|
283
283
|
aggregateName: "viewer_definition",
|
|
284
|
-
resourceAttribution:
|
|
284
|
+
resourceAttribution: un.NONE
|
|
285
285
|
};
|
|
286
|
-
var
|
|
287
|
-
const
|
|
286
|
+
var Vl = /* @__PURE__ */ ((t) => (t.viewer_definition_saved = "viewer_definition_saved", t))(Vl || {});
|
|
287
|
+
const $l = new fn(xl);
|
|
288
288
|
var kl = /* @__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))(kl || {});
|
|
289
|
-
const Ml =
|
|
289
|
+
const Ml = $l.createSnapshotQueryClient();
|
|
290
290
|
function gl(t) {
|
|
291
|
-
const { result: e, loading: l, error: n } =
|
|
292
|
-
initialQuery: { condition:
|
|
291
|
+
const { result: e, loading: l, error: n } = Wn({
|
|
292
|
+
initialQuery: { condition: hl(t) },
|
|
293
293
|
execute: /* @__PURE__ */ r((i) => Ml.singleState(i), "execute")
|
|
294
294
|
});
|
|
295
295
|
return { viewerDefinition: e, loading: l, error: n };
|
|
@@ -300,9 +300,9 @@ function Ul(t, e, l) {
|
|
|
300
300
|
loading: n,
|
|
301
301
|
result: i,
|
|
302
302
|
error: a
|
|
303
|
-
} =
|
|
303
|
+
} = Kn({
|
|
304
304
|
url: "/viewer/view/snapshot/list/state",
|
|
305
|
-
initialQuery:
|
|
305
|
+
initialQuery: _l({
|
|
306
306
|
condition: bt(
|
|
307
307
|
Pt(Ye.DELETED, !1),
|
|
308
308
|
xt(Ye.TENANT_ID, "(0)", e),
|
|
@@ -317,7 +317,7 @@ function Ul(t, e, l) {
|
|
|
317
317
|
}
|
|
318
318
|
r(Ul, "useViewerViews");
|
|
319
319
|
function Hl(t) {
|
|
320
|
-
const { viewerDefinition: e, defaultView: l } = t, { result: n, loading: i, error: a, setQuery: o, execute: s } =
|
|
320
|
+
const { viewerDefinition: e, defaultView: l } = t, { result: n, loading: i, error: a, setQuery: o, execute: s } = Gn({
|
|
321
321
|
url: e?.dataUrl || "",
|
|
322
322
|
autoExecute: !0
|
|
323
323
|
}), u = en(
|
|
@@ -350,7 +350,7 @@ function Hl(t) {
|
|
|
350
350
|
}
|
|
351
351
|
r(Hl, "useFetchData");
|
|
352
352
|
const Dt = new De();
|
|
353
|
-
function
|
|
353
|
+
function Za(t) {
|
|
354
354
|
const e = G(44);
|
|
355
355
|
let l, n, i;
|
|
356
356
|
e[0] !== t ? ({
|
|
@@ -368,47 +368,47 @@ function Xa(t) {
|
|
|
368
368
|
enableRowSelection: _,
|
|
369
369
|
onSwitchView: S,
|
|
370
370
|
viewTableSetting: C,
|
|
371
|
-
primaryAction:
|
|
372
|
-
secondaryActions:
|
|
373
|
-
batchActions:
|
|
371
|
+
primaryAction: O,
|
|
372
|
+
secondaryActions: P,
|
|
373
|
+
batchActions: b
|
|
374
374
|
} = l;
|
|
375
|
-
let
|
|
376
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
375
|
+
let A;
|
|
376
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = new dn({
|
|
377
377
|
key: "fetcher-viewer-local-default-view-id",
|
|
378
378
|
defaultValue: void 0
|
|
379
|
-
}), e[4] =
|
|
380
|
-
const
|
|
381
|
-
viewerDefinition:
|
|
382
|
-
loading:
|
|
383
|
-
error:
|
|
379
|
+
}), e[4] = A) : A = e[4];
|
|
380
|
+
const x = A, [D, w] = tn(x), {
|
|
381
|
+
viewerDefinition: V,
|
|
382
|
+
loading: U,
|
|
383
|
+
error: g
|
|
384
384
|
} = gl(u), {
|
|
385
|
-
views:
|
|
386
|
-
loading:
|
|
385
|
+
views: F,
|
|
386
|
+
loading: L
|
|
387
387
|
} = Ul(u, o, a);
|
|
388
388
|
let W;
|
|
389
|
-
e[5] !== d || e[6] !==
|
|
390
|
-
const
|
|
389
|
+
e[5] !== d || e[6] !== D || e[7] !== F ? (W = Kl(F, D, d), e[5] = d, e[6] = D, e[7] = F, e[8] = W) : W = e[8];
|
|
390
|
+
const k = W;
|
|
391
391
|
let v;
|
|
392
|
-
e[9] !==
|
|
393
|
-
viewerDefinition:
|
|
394
|
-
defaultView:
|
|
395
|
-
}, e[9] =
|
|
392
|
+
e[9] !== k || e[10] !== V ? (v = {
|
|
393
|
+
viewerDefinition: V,
|
|
394
|
+
defaultView: k
|
|
395
|
+
}, e[9] = k, e[10] = V, e[11] = v) : v = e[11];
|
|
396
396
|
const {
|
|
397
397
|
dataSource: T,
|
|
398
398
|
loading: E,
|
|
399
399
|
setQuery: N,
|
|
400
400
|
reload: I
|
|
401
|
-
} = Hl(v),
|
|
401
|
+
} = Hl(v), R = Oe(null);
|
|
402
402
|
let p;
|
|
403
|
-
e[12] !== N ? (p = /* @__PURE__ */ r((Y, Q, fe,
|
|
404
|
-
N?.(Y, Q, fe,
|
|
403
|
+
e[12] !== N ? (p = /* @__PURE__ */ r((Y, Q, fe, re) => {
|
|
404
|
+
N?.(Y, Q, fe, re);
|
|
405
405
|
}, "t6"), e[12] = N, e[13] = p) : p = e[13];
|
|
406
|
-
const
|
|
406
|
+
const H = p;
|
|
407
407
|
let y;
|
|
408
408
|
e[14] !== S || e[15] !== w ? (y = /* @__PURE__ */ r((Y) => {
|
|
409
409
|
S?.(Y), w(Y.id);
|
|
410
410
|
}, "t7"), e[14] = S, e[15] = w, e[16] = y) : y = e[16];
|
|
411
|
-
const B = y,
|
|
411
|
+
const B = y, $ = Wl, M = Yl, K = Bl, q = zl, {
|
|
412
412
|
publish: te,
|
|
413
413
|
subscribe: X
|
|
414
414
|
} = wt();
|
|
@@ -416,15 +416,15 @@ function Xa(t) {
|
|
|
416
416
|
if (e[17] !== te ? (j = /* @__PURE__ */ r(() => ({
|
|
417
417
|
refreshData: te,
|
|
418
418
|
clearSelectedRowKeys: /* @__PURE__ */ r(() => {
|
|
419
|
-
|
|
419
|
+
R.current?.clearSelectedRowKeys();
|
|
420
420
|
}, "clearSelectedRowKeys"),
|
|
421
|
-
getCondition: /* @__PURE__ */ r(() =>
|
|
421
|
+
getCondition: /* @__PURE__ */ r(() => R.current?.getCondition(), "getCondition")
|
|
422
422
|
}), "t8"), e[17] = te, e[18] = j) : j = e[18], be(s, j), X({
|
|
423
423
|
name: "Viewer-Refresh-Data",
|
|
424
424
|
handle: /* @__PURE__ */ r(async () => {
|
|
425
425
|
await I();
|
|
426
426
|
}, "handle")
|
|
427
|
-
}),
|
|
427
|
+
}), U || L) {
|
|
428
428
|
let Y;
|
|
429
429
|
return e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ c("div", { style: {
|
|
430
430
|
display: "flex",
|
|
@@ -433,38 +433,38 @@ function Xa(t) {
|
|
|
433
433
|
height: "100vh"
|
|
434
434
|
}, children: /* @__PURE__ */ c(Et, { size: "large" }) }), e[19] = Y) : Y = e[19], Y;
|
|
435
435
|
}
|
|
436
|
-
if (
|
|
436
|
+
if (g) {
|
|
437
437
|
let Y;
|
|
438
438
|
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = {
|
|
439
439
|
padding: 24,
|
|
440
440
|
color: "#ff4d4f"
|
|
441
441
|
}, e[20] = Y) : Y = e[20];
|
|
442
442
|
let Q;
|
|
443
|
-
return e[21] !==
|
|
443
|
+
return e[21] !== g.message ? (Q = /* @__PURE__ */ J("div", { style: Y, children: [
|
|
444
444
|
"加载视图定义失败: ",
|
|
445
|
-
|
|
446
|
-
] }), e[21] =
|
|
445
|
+
g.message
|
|
446
|
+
] }), e[21] = g.message, e[22] = Q) : Q = e[22], Q;
|
|
447
447
|
}
|
|
448
|
-
if (
|
|
448
|
+
if (!V) {
|
|
449
449
|
let Y;
|
|
450
450
|
return e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ c("div", { style: {
|
|
451
451
|
padding: 24
|
|
452
452
|
}, children: "未找到视图定义" }), e[23] = Y) : Y = e[23], Y;
|
|
453
453
|
}
|
|
454
|
-
if (
|
|
454
|
+
if (F && F.length === 0) {
|
|
455
455
|
let Y;
|
|
456
456
|
return e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ c("div", { style: {
|
|
457
457
|
padding: 24
|
|
458
458
|
}, children: "未找到视图" }), e[24] = Y) : Y = e[24], Y;
|
|
459
459
|
}
|
|
460
|
-
if (
|
|
460
|
+
if (F && F.length > 0 && k) {
|
|
461
461
|
let Y;
|
|
462
462
|
e[25] !== T ? (Y = T || {
|
|
463
463
|
list: [],
|
|
464
464
|
total: 0
|
|
465
465
|
}, e[25] = T, e[26] = Y) : Y = e[26];
|
|
466
466
|
let Q;
|
|
467
|
-
return e[27] !== m || e[28] !==
|
|
467
|
+
return e[27] !== m || e[28] !== b || e[29] !== k || e[30] !== _ || e[31] !== E || e[32] !== H || e[33] !== B || e[34] !== h || e[35] !== f || e[36] !== O || e[37] !== P || e[38] !== Y || e[39] !== C || e[40] !== V || e[41] !== F ? (Q = /* @__PURE__ */ c($a, { ref: R, defaultViews: F, defaultView: k, definition: V, loading: E, dataSource: Y, pagination: f, actionColumn: m, onClickPrimaryKey: h, enableRowSelection: _, primaryAction: O, secondaryActions: P, batchActions: b, onGetRecordCount: $, onSwitchView: B, onLoadData: H, viewTableSetting: C, onCreateView: M, onUpdateView: K, onDeleteView: q }), e[27] = m, e[28] = b, e[29] = k, e[30] = _, e[31] = E, e[32] = H, e[33] = B, e[34] = h, e[35] = f, e[36] = O, e[37] = P, e[38] = Y, e[39] = C, e[40] = V, e[41] = F, e[42] = Q) : Q = e[42], Q;
|
|
468
468
|
}
|
|
469
469
|
let Z;
|
|
470
470
|
return e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ c("div", { style: {
|
|
@@ -474,7 +474,7 @@ function Xa(t) {
|
|
|
474
474
|
height: "100vh"
|
|
475
475
|
}, children: /* @__PURE__ */ c(Et, { size: "large" }) }), e[43] = Z) : Z = e[43], Z;
|
|
476
476
|
}
|
|
477
|
-
r(
|
|
477
|
+
r(Za, "FetcherViewer");
|
|
478
478
|
function zl(t, e) {
|
|
479
479
|
Dt.defaultDeleteAggregate(t.id, {
|
|
480
480
|
body: {}
|
|
@@ -510,10 +510,10 @@ function Yl(t, e) {
|
|
|
510
510
|
}
|
|
511
511
|
r(Yl, "_temp2$3");
|
|
512
512
|
function Wl(t, e) {
|
|
513
|
-
return
|
|
513
|
+
return cl.default.post(t, {
|
|
514
514
|
body: e
|
|
515
515
|
}, {
|
|
516
|
-
resultExtractor:
|
|
516
|
+
resultExtractor: ul
|
|
517
517
|
});
|
|
518
518
|
}
|
|
519
519
|
r(Wl, "_temp$a");
|
|
@@ -585,12 +585,12 @@ function Xl(t) {
|
|
|
585
585
|
let f;
|
|
586
586
|
e[2] !== a || e[3] !== t.filters || e[4] !== u ? (f = /* @__PURE__ */ r(() => ({
|
|
587
587
|
getValue() {
|
|
588
|
-
return t.filters.flatMap((
|
|
588
|
+
return t.filters.flatMap((P) => P.filters.filter((b) => u.includes(b.key) && !a.some((A) => A.key === b.key)));
|
|
589
589
|
}
|
|
590
590
|
}), "t2"), e[2] = a, e[3] = t.filters, e[4] = u, e[5] = f) : f = e[5], be(i, f);
|
|
591
591
|
let m;
|
|
592
|
-
e[6] !== u ? (m = /* @__PURE__ */ r((
|
|
593
|
-
d(
|
|
592
|
+
e[6] !== u ? (m = /* @__PURE__ */ r((P, b) => {
|
|
593
|
+
d(b ? [...u, P.key] : u.filter((A) => A !== P.key));
|
|
594
594
|
}, "t3"), e[6] = u, e[7] = m) : m = e[7];
|
|
595
595
|
const h = m;
|
|
596
596
|
let _, S;
|
|
@@ -599,18 +599,18 @@ function Xl(t) {
|
|
|
599
599
|
}, "t4"), S = [s], e[8] = s, e[9] = _, e[10] = S) : (_ = e[9], S = e[10]), Ae(_, S);
|
|
600
600
|
let C;
|
|
601
601
|
if (e[11] !== a || e[12] !== l || e[13] !== h || e[14] !== u) {
|
|
602
|
-
let
|
|
603
|
-
e[16] !== a || e[17] !== l.length || e[18] !== h || e[19] !== u ? (
|
|
604
|
-
/* @__PURE__ */ c("span", { className: kt.filterGroupLabel, children:
|
|
605
|
-
/* @__PURE__ */ c(St, { wrap: !0, gutter: [16, 16], children:
|
|
606
|
-
h(
|
|
607
|
-
}, "onChange"), disabled: a.some((
|
|
608
|
-
|
|
609
|
-
] },
|
|
602
|
+
let P;
|
|
603
|
+
e[16] !== a || e[17] !== l.length || e[18] !== h || e[19] !== u ? (P = /* @__PURE__ */ r((b, A) => /* @__PURE__ */ J("div", { children: [
|
|
604
|
+
/* @__PURE__ */ c("span", { className: kt.filterGroupLabel, children: b.label }),
|
|
605
|
+
/* @__PURE__ */ c(St, { wrap: !0, gutter: [16, 16], children: b.filters.map((x) => /* @__PURE__ */ c(Ct, { span: 6, children: /* @__PURE__ */ c(Zt, { checked: u.includes(x.key), onChange: /* @__PURE__ */ r((D) => {
|
|
606
|
+
h(x, D.target.checked);
|
|
607
|
+
}, "onChange"), disabled: a.some((D) => D.key === x.key), children: x.field.label }) }, x.key)) }, A),
|
|
608
|
+
A < l.length - 1 && /* @__PURE__ */ c(Be, { size: "middle" })
|
|
609
|
+
] }, b.label), "t72"), e[16] = a, e[17] = l.length, e[18] = h, e[19] = u, e[20] = P) : P = e[20], C = l.map(P), e[11] = a, e[12] = l, e[13] = h, e[14] = u, e[15] = C;
|
|
610
610
|
} else
|
|
611
611
|
C = e[15];
|
|
612
|
-
let
|
|
613
|
-
return e[21] !== C ? (
|
|
612
|
+
let O;
|
|
613
|
+
return e[21] !== C ? (O = /* @__PURE__ */ c("div", { className: kt.filterContent, children: C }), e[21] = C, e[22] = O) : O = e[22], O;
|
|
614
614
|
}
|
|
615
615
|
r(Xl, "AvailableFilterSelect");
|
|
616
616
|
function Zl(t) {
|
|
@@ -638,16 +638,16 @@ function Mt(t) {
|
|
|
638
638
|
return t != null;
|
|
639
639
|
}
|
|
640
640
|
r(Mt, "isValidValue");
|
|
641
|
-
function
|
|
641
|
+
function Ja() {
|
|
642
642
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
643
643
|
}
|
|
644
|
-
r(
|
|
645
|
-
const ti = /* @__PURE__ */ r(() => !0, "TrueValidateValue"), ni = /* @__PURE__ */ r((t, e) => t ?
|
|
644
|
+
r(Ja, "currentTimeZone");
|
|
645
|
+
const ti = /* @__PURE__ */ r(() => !0, "TrueValidateValue"), ni = /* @__PURE__ */ r((t, e) => t ? Tl.has(t) ? !0 : e == null || e === "" || Array.isArray(e) && e.length === 0 ? !1 : t === z.BETWEEN ? ei(e) : !0 : !1, "defaultValidateValue"), li = /* @__PURE__ */ r((t, e) => e, "defaultConditionValueParser"), ii = /* @__PURE__ */ r((t, e, l) => l, "defaultValueConverter"), ri = /* @__PURE__ */ r((t) => t, "defaultFilterValueConverter");
|
|
646
646
|
function ai(t) {
|
|
647
647
|
const [e, l] = ee(t.operator), [n, i] = ee(t.value), a = t.validate ?? ni, o = t.conditionValueParser ?? li, s = t.onOperatorChangeValueConverter ?? ii, u = t.filterValueConverter ?? ri, d = /* @__PURE__ */ r((_, S) => {
|
|
648
648
|
if (_ === qe.UNDEFINED || !a(_, S))
|
|
649
649
|
return;
|
|
650
|
-
const C = o(_, S),
|
|
650
|
+
const C = o(_, S), P = {
|
|
651
651
|
condition: {
|
|
652
652
|
field: t.field,
|
|
653
653
|
operator: _,
|
|
@@ -655,7 +655,7 @@ function ai(t) {
|
|
|
655
655
|
options: t.conditionOptions ?? void 0
|
|
656
656
|
}
|
|
657
657
|
};
|
|
658
|
-
return u(
|
|
658
|
+
return u(P);
|
|
659
659
|
}, "resolveFilterValue"), f = /* @__PURE__ */ r((_) => {
|
|
660
660
|
const S = s(e, _, n);
|
|
661
661
|
l(_), i(S);
|
|
@@ -686,7 +686,7 @@ function ai(t) {
|
|
|
686
686
|
r(ai, "useFilterState");
|
|
687
687
|
const {
|
|
688
688
|
useToken: oi
|
|
689
|
-
} =
|
|
689
|
+
} = Pn;
|
|
690
690
|
function He(t) {
|
|
691
691
|
const e = G(26), {
|
|
692
692
|
ref: l,
|
|
@@ -718,10 +718,10 @@ function He(t) {
|
|
|
718
718
|
if (e[2] !== f) {
|
|
719
719
|
const {
|
|
720
720
|
locale: w,
|
|
721
|
-
supportedOperators:
|
|
722
|
-
...
|
|
721
|
+
supportedOperators: V,
|
|
722
|
+
...U
|
|
723
723
|
} = f;
|
|
724
|
-
m =
|
|
724
|
+
m = U, e[2] = f, e[3] = m;
|
|
725
725
|
} else
|
|
726
726
|
m = e[3];
|
|
727
727
|
const {
|
|
@@ -732,8 +732,8 @@ function He(t) {
|
|
|
732
732
|
...n.style
|
|
733
733
|
}, e[4] = n.style, e[5] = _) : _ = e[5];
|
|
734
734
|
const S = `1px solid ${h.colorBorder}`, C = n.label?.style;
|
|
735
|
-
let
|
|
736
|
-
e[6] !== S || e[7] !== C || e[8] !== h.colorBgContainer ? (
|
|
735
|
+
let O;
|
|
736
|
+
e[6] !== S || e[7] !== C || e[8] !== h.colorBgContainer ? (O = {
|
|
737
737
|
minWidth: 140,
|
|
738
738
|
height: "32px",
|
|
739
739
|
lineHeight: "32px",
|
|
@@ -743,22 +743,22 @@ function He(t) {
|
|
|
743
743
|
borderRight: "none",
|
|
744
744
|
whiteSpace: "nowrap",
|
|
745
745
|
...C
|
|
746
|
-
}, e[6] = S, e[7] = C, e[8] = h.colorBgContainer, e[9] =
|
|
747
|
-
const
|
|
748
|
-
let
|
|
749
|
-
e[10] !== n.field.label || e[11] !==
|
|
750
|
-
let
|
|
751
|
-
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
746
|
+
}, e[6] = S, e[7] = C, e[8] = h.colorBgContainer, e[9] = O) : O = e[9];
|
|
747
|
+
const P = n.label?.className;
|
|
748
|
+
let b;
|
|
749
|
+
e[10] !== n.field.label || e[11] !== O || e[12] !== P ? (b = /* @__PURE__ */ c(ge, { style: O, className: P, children: n.field.label }), e[10] = n.field.label, e[11] = O, e[12] = P, e[13] = b) : b = e[13];
|
|
750
|
+
let A;
|
|
751
|
+
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
|
|
752
752
|
minWidth: 120
|
|
753
|
-
}, e[14] =
|
|
754
|
-
let
|
|
755
|
-
e[15] !== s.operator || e[16] !== s.setOperator || e[17] !== m || e[18] !== d ? (
|
|
756
|
-
let
|
|
757
|
-
return e[20] !== n.className || e[21] !== _ || e[22] !==
|
|
758
|
-
|
|
759
|
-
|
|
753
|
+
}, e[14] = A) : A = e[14];
|
|
754
|
+
let x;
|
|
755
|
+
e[15] !== s.operator || e[16] !== s.setOperator || e[17] !== m || e[18] !== d ? (x = /* @__PURE__ */ c(ct, { style: A, ...m, onChange: s.setOperator, value: s.operator, options: d }), e[15] = s.operator, e[16] = s.setOperator, e[17] = m, e[18] = d, e[19] = x) : x = e[19];
|
|
756
|
+
let D;
|
|
757
|
+
return e[20] !== n.className || e[21] !== _ || e[22] !== b || e[23] !== x || e[24] !== u ? (D = /* @__PURE__ */ J(Ce.Compact, { block: !0, style: _, className: n.className, children: [
|
|
758
|
+
b,
|
|
759
|
+
x,
|
|
760
760
|
u
|
|
761
|
-
] }), e[20] = n.className, e[21] = _, e[22] =
|
|
761
|
+
] }), e[20] = n.className, e[21] = _, e[22] = b, e[23] = x, e[24] = u, e[25] = D) : D = e[25], D;
|
|
762
762
|
}
|
|
763
763
|
r(He, "AssemblyFilter");
|
|
764
764
|
const si = "text", ci = /* @__PURE__ */ r((t, e, l) => {
|
|
@@ -773,7 +773,7 @@ const si = "text", ci = /* @__PURE__ */ r((t, e, l) => {
|
|
|
773
773
|
}
|
|
774
774
|
return n ? l[0] : l;
|
|
775
775
|
}, "TextOnOperatorChangeValueConverter");
|
|
776
|
-
function
|
|
776
|
+
function hn(t) {
|
|
777
777
|
const e = G(6);
|
|
778
778
|
let l;
|
|
779
779
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [z.EQ, z.NE, z.CONTAINS, z.STARTS_WITH, z.ENDS_WITH, z.IN, z.NOT_IN], e[0] = l) : l = e[0];
|
|
@@ -802,8 +802,8 @@ function dn(t) {
|
|
|
802
802
|
i = e[5];
|
|
803
803
|
return i;
|
|
804
804
|
}
|
|
805
|
-
r(
|
|
806
|
-
|
|
805
|
+
r(hn, "TextFilter");
|
|
806
|
+
hn.displayName = "TextFilter";
|
|
807
807
|
const ui = "id", fi = /* @__PURE__ */ r((t, e, l) => {
|
|
808
808
|
if (l == null)
|
|
809
809
|
return l;
|
|
@@ -814,7 +814,7 @@ const ui = "id", fi = /* @__PURE__ */ r((t, e, l) => {
|
|
|
814
814
|
const n = l.trim();
|
|
815
815
|
return n ? [n] : [];
|
|
816
816
|
}, "IdOnOperatorChangeValueConverter");
|
|
817
|
-
function
|
|
817
|
+
function _n(t) {
|
|
818
818
|
const e = G(6);
|
|
819
819
|
let l;
|
|
820
820
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [z.ID, z.IDS], e[0] = l) : l = e[0];
|
|
@@ -833,15 +833,15 @@ function mn(t) {
|
|
|
833
833
|
i = e[5];
|
|
834
834
|
return i;
|
|
835
835
|
}
|
|
836
|
-
r(
|
|
837
|
-
|
|
836
|
+
r(_n, "IdFilter");
|
|
837
|
+
_n.displayName = "IdConditionFilter";
|
|
838
838
|
const di = "number", mi = /* @__PURE__ */ r((t, e) => e ? [t[0], t[1]] : [t, void 0], "ensureBetweenValue"), hi = /* @__PURE__ */ r((t, e) => e ? t : [t], "ensureMultiValue"), _i = /* @__PURE__ */ r((t, e) => e ? t[0] : t, "ensureSingleValue"), Ti = /* @__PURE__ */ r((t, e, l) => {
|
|
839
839
|
if (l == null)
|
|
840
840
|
return l;
|
|
841
841
|
const n = Array.isArray(l);
|
|
842
842
|
return e === z.BETWEEN ? mi(l, n) : e === z.IN || e === z.NOT_IN ? hi(l, n) : _i(l, n);
|
|
843
843
|
}, "NumberOnOperatorChangeValueConverter");
|
|
844
|
-
function
|
|
844
|
+
function Tn(t) {
|
|
845
845
|
const e = G(6);
|
|
846
846
|
let l;
|
|
847
847
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [z.EQ, z.NE, z.GT, z.LT, z.GTE, z.LTE, z.BETWEEN, z.IN, z.NOT_IN], e[0] = l) : l = e[0];
|
|
@@ -883,14 +883,14 @@ function hn(t) {
|
|
|
883
883
|
i = e[5];
|
|
884
884
|
return i;
|
|
885
885
|
}
|
|
886
|
-
r(
|
|
886
|
+
r(Tn, "NumberFilter");
|
|
887
887
|
function Ei(t, e) {
|
|
888
888
|
return t === z.BETWEEN ? Array.isArray(e) ? e[0] !== void 0 && e[1] !== void 0 : !1 : e != null;
|
|
889
889
|
}
|
|
890
890
|
r(Ei, "_temp$8");
|
|
891
|
-
|
|
891
|
+
Tn.displayName = "NumberFilter";
|
|
892
892
|
const Si = "select", Ci = /* @__PURE__ */ r((t, e, l) => l == null || Array.isArray(l) ? l : [l], "SelectOnOperatorChangeValueConverter");
|
|
893
|
-
function
|
|
893
|
+
function En(t) {
|
|
894
894
|
const e = G(6);
|
|
895
895
|
let l;
|
|
896
896
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [z.IN, z.NOT_IN], e[0] = l) : l = e[0];
|
|
@@ -909,11 +909,11 @@ function _n(t) {
|
|
|
909
909
|
i = e[5];
|
|
910
910
|
return i;
|
|
911
911
|
}
|
|
912
|
-
r(
|
|
913
|
-
|
|
912
|
+
r(En, "SelectFilter");
|
|
913
|
+
En.displayName = "SelectFilter";
|
|
914
914
|
const yi = "bool", vi = /* @__PURE__ */ r(() => {
|
|
915
915
|
}, "BoolConditionValueParser");
|
|
916
|
-
function
|
|
916
|
+
function Sn(t) {
|
|
917
917
|
const e = G(3);
|
|
918
918
|
let l;
|
|
919
919
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [qe.UNDEFINED, z.TRUE, z.FALSE], e[0] = l) : l = e[0];
|
|
@@ -930,79 +930,79 @@ function Tn(t) {
|
|
|
930
930
|
n = e[2];
|
|
931
931
|
return n;
|
|
932
932
|
}
|
|
933
|
-
r(
|
|
934
|
-
|
|
935
|
-
function
|
|
933
|
+
r(Sn, "BoolFilter");
|
|
934
|
+
Sn.displayName = "BoolFilter";
|
|
935
|
+
function Cn(t) {
|
|
936
936
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
937
937
|
}
|
|
938
|
-
r(
|
|
938
|
+
r(Cn, "getDefaultExportFromCjs");
|
|
939
939
|
var tt = { exports: {} }, Ii = tt.exports, gt;
|
|
940
940
|
function Ni() {
|
|
941
941
|
return gt || (gt = 1, (function(t, e) {
|
|
942
942
|
(function(l, n) {
|
|
943
943
|
t.exports = n();
|
|
944
944
|
})(Ii, (function() {
|
|
945
|
-
var l = 1e3, n = 6e4, i = 36e5, a = "millisecond", o = "second", s = "minute", u = "hour", d = "day", f = "week", m = "month", h = "quarter", _ = "year", S = "date", C = "Invalid Date",
|
|
945
|
+
var l = 1e3, n = 6e4, i = 36e5, a = "millisecond", o = "second", s = "minute", u = "hour", d = "day", f = "week", m = "month", h = "quarter", _ = "year", S = "date", C = "Invalid Date", O = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|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(v) {
|
|
946
946
|
var T = ["th", "st", "nd", "rd"], E = v % 100;
|
|
947
947
|
return "[" + v + (T[(E - 20) % 10] || T[E] || T[0]) + "]";
|
|
948
|
-
}, "ordinal") },
|
|
948
|
+
}, "ordinal") }, A = /* @__PURE__ */ r(function(v, T, E) {
|
|
949
949
|
var N = String(v);
|
|
950
950
|
return !N || N.length >= T ? v : "" + Array(T + 1 - N.length).join(E) + v;
|
|
951
|
-
}, "m"),
|
|
951
|
+
}, "m"), x = { s: A, z: /* @__PURE__ */ r(function(v) {
|
|
952
952
|
var T = -v.utcOffset(), E = Math.abs(T), N = Math.floor(E / 60), I = E % 60;
|
|
953
|
-
return (T <= 0 ? "+" : "-") +
|
|
953
|
+
return (T <= 0 ? "+" : "-") + A(N, 2, "0") + ":" + A(I, 2, "0");
|
|
954
954
|
}, "z"), m: /* @__PURE__ */ r(function v(T, E) {
|
|
955
955
|
if (T.date() < E.date()) return -v(E, T);
|
|
956
|
-
var N = 12 * (E.year() - T.year()) + (E.month() - T.month()), I = T.clone().add(N, m),
|
|
957
|
-
return +(-(N + (E - I) / (
|
|
956
|
+
var N = 12 * (E.year() - T.year()) + (E.month() - T.month()), I = T.clone().add(N, m), R = E - I < 0, p = T.clone().add(N + (R ? -1 : 1), m);
|
|
957
|
+
return +(-(N + (E - I) / (R ? I - p : p - I)) || 0);
|
|
958
958
|
}, "t"), a: /* @__PURE__ */ r(function(v) {
|
|
959
959
|
return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
|
|
960
960
|
}, "a"), p: /* @__PURE__ */ r(function(v) {
|
|
961
961
|
return { M: m, y: _, w: f, d, D: S, h: u, m: s, s: o, ms: a, Q: h }[v] || String(v || "").toLowerCase().replace(/s$/, "");
|
|
962
962
|
}, "p"), u: /* @__PURE__ */ r(function(v) {
|
|
963
963
|
return v === void 0;
|
|
964
|
-
}, "u") },
|
|
965
|
-
w[
|
|
966
|
-
var
|
|
967
|
-
return v instanceof W || !(!v || !v[
|
|
968
|
-
}, "S"),
|
|
964
|
+
}, "u") }, D = "en", w = {};
|
|
965
|
+
w[D] = b;
|
|
966
|
+
var V = "$isDayjsObject", U = /* @__PURE__ */ r(function(v) {
|
|
967
|
+
return v instanceof W || !(!v || !v[V]);
|
|
968
|
+
}, "S"), g = /* @__PURE__ */ r(function v(T, E, N) {
|
|
969
969
|
var I;
|
|
970
|
-
if (!T) return
|
|
970
|
+
if (!T) return D;
|
|
971
971
|
if (typeof T == "string") {
|
|
972
|
-
var
|
|
973
|
-
w[
|
|
972
|
+
var R = T.toLowerCase();
|
|
973
|
+
w[R] && (I = R), E && (w[R] = E, I = R);
|
|
974
974
|
var p = T.split("-");
|
|
975
975
|
if (!I && p.length > 1) return v(p[0]);
|
|
976
976
|
} else {
|
|
977
|
-
var
|
|
978
|
-
w[
|
|
977
|
+
var H = T.name;
|
|
978
|
+
w[H] = T, I = H;
|
|
979
979
|
}
|
|
980
|
-
return !N && I && (
|
|
981
|
-
}, "t"),
|
|
982
|
-
if (
|
|
980
|
+
return !N && I && (D = I), I || !N && D;
|
|
981
|
+
}, "t"), F = /* @__PURE__ */ r(function(v, T) {
|
|
982
|
+
if (U(v)) return v.clone();
|
|
983
983
|
var E = typeof T == "object" ? T : {};
|
|
984
984
|
return E.date = v, E.args = arguments, new W(E);
|
|
985
|
-
}, "O"),
|
|
986
|
-
|
|
987
|
-
return
|
|
985
|
+
}, "O"), L = x;
|
|
986
|
+
L.l = g, L.i = U, L.w = function(v, T) {
|
|
987
|
+
return F(v, { locale: T.$L, utc: T.$u, x: T.$x, $offset: T.$offset });
|
|
988
988
|
};
|
|
989
989
|
var W = (function() {
|
|
990
990
|
function v(E) {
|
|
991
|
-
this.$L =
|
|
991
|
+
this.$L = g(E.locale, null, !0), this.parse(E), this.$x = this.$x || E.x || {}, this[V] = !0;
|
|
992
992
|
}
|
|
993
993
|
r(v, "M");
|
|
994
994
|
var T = v.prototype;
|
|
995
995
|
return T.parse = function(E) {
|
|
996
996
|
this.$d = (function(N) {
|
|
997
|
-
var I = N.date,
|
|
997
|
+
var I = N.date, R = N.utc;
|
|
998
998
|
if (I === null) return /* @__PURE__ */ new Date(NaN);
|
|
999
|
-
if (
|
|
999
|
+
if (L.u(I)) return /* @__PURE__ */ new Date();
|
|
1000
1000
|
if (I instanceof Date) return new Date(I);
|
|
1001
1001
|
if (typeof I == "string" && !/Z$/i.test(I)) {
|
|
1002
|
-
var p = I.match(
|
|
1002
|
+
var p = I.match(O);
|
|
1003
1003
|
if (p) {
|
|
1004
|
-
var
|
|
1005
|
-
return
|
|
1004
|
+
var H = p[2] - 1 || 0, y = (p[7] || "0").substring(0, 3);
|
|
1005
|
+
return R ? new Date(Date.UTC(p[1], H, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, y)) : new Date(p[1], H, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, y);
|
|
1006
1006
|
}
|
|
1007
1007
|
}
|
|
1008
1008
|
return new Date(I);
|
|
@@ -1011,37 +1011,37 @@ function Ni() {
|
|
|
1011
1011
|
var E = this.$d;
|
|
1012
1012
|
this.$y = E.getFullYear(), this.$M = E.getMonth(), this.$D = E.getDate(), this.$W = E.getDay(), this.$H = E.getHours(), this.$m = E.getMinutes(), this.$s = E.getSeconds(), this.$ms = E.getMilliseconds();
|
|
1013
1013
|
}, T.$utils = function() {
|
|
1014
|
-
return
|
|
1014
|
+
return L;
|
|
1015
1015
|
}, T.isValid = function() {
|
|
1016
1016
|
return this.$d.toString() !== C;
|
|
1017
1017
|
}, T.isSame = function(E, N) {
|
|
1018
|
-
var I =
|
|
1018
|
+
var I = F(E);
|
|
1019
1019
|
return this.startOf(N) <= I && I <= this.endOf(N);
|
|
1020
1020
|
}, T.isAfter = function(E, N) {
|
|
1021
|
-
return
|
|
1021
|
+
return F(E) < this.startOf(N);
|
|
1022
1022
|
}, T.isBefore = function(E, N) {
|
|
1023
|
-
return this.endOf(N) <
|
|
1023
|
+
return this.endOf(N) < F(E);
|
|
1024
1024
|
}, T.$g = function(E, N, I) {
|
|
1025
|
-
return
|
|
1025
|
+
return L.u(E) ? this[N] : this.set(I, E);
|
|
1026
1026
|
}, T.unix = function() {
|
|
1027
1027
|
return Math.floor(this.valueOf() / 1e3);
|
|
1028
1028
|
}, T.valueOf = function() {
|
|
1029
1029
|
return this.$d.getTime();
|
|
1030
1030
|
}, T.startOf = function(E, N) {
|
|
1031
|
-
var I = this,
|
|
1032
|
-
var Z =
|
|
1033
|
-
return
|
|
1031
|
+
var I = this, R = !!L.u(N) || N, p = L.p(E), H = /* @__PURE__ */ r(function(X, j) {
|
|
1032
|
+
var Z = L.w(I.$u ? Date.UTC(I.$y, j, X) : new Date(I.$y, j, X), I);
|
|
1033
|
+
return R ? Z : Z.endOf(d);
|
|
1034
1034
|
}, "l"), y = /* @__PURE__ */ r(function(X, j) {
|
|
1035
|
-
return
|
|
1036
|
-
}, "$"), B = this.$W,
|
|
1035
|
+
return L.w(I.toDate()[X].apply(I.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(j)), I);
|
|
1036
|
+
}, "$"), B = this.$W, $ = this.$M, M = this.$D, K = "set" + (this.$u ? "UTC" : "");
|
|
1037
1037
|
switch (p) {
|
|
1038
1038
|
case _:
|
|
1039
|
-
return
|
|
1039
|
+
return R ? H(1, 0) : H(31, 11);
|
|
1040
1040
|
case m:
|
|
1041
|
-
return
|
|
1041
|
+
return R ? H(1, $) : H(0, $ + 1);
|
|
1042
1042
|
case f:
|
|
1043
1043
|
var q = this.$locale().weekStart || 0, te = (B < q ? B + 7 : B) - q;
|
|
1044
|
-
return
|
|
1044
|
+
return H(R ? M - te : M + (6 - te), $);
|
|
1045
1045
|
case d:
|
|
1046
1046
|
case S:
|
|
1047
1047
|
return y(K + "Hours", 0);
|
|
@@ -1057,91 +1057,91 @@ function Ni() {
|
|
|
1057
1057
|
}, T.endOf = function(E) {
|
|
1058
1058
|
return this.startOf(E, !1);
|
|
1059
1059
|
}, T.$set = function(E, N) {
|
|
1060
|
-
var I,
|
|
1061
|
-
if (
|
|
1060
|
+
var I, R = L.p(E), p = "set" + (this.$u ? "UTC" : ""), H = (I = {}, I[d] = p + "Date", I[S] = p + "Date", I[m] = p + "Month", I[_] = p + "FullYear", I[u] = p + "Hours", I[s] = p + "Minutes", I[o] = p + "Seconds", I[a] = p + "Milliseconds", I)[R], y = R === d ? this.$D + (N - this.$W) : N;
|
|
1061
|
+
if (R === m || R === _) {
|
|
1062
1062
|
var B = this.clone().set(S, 1);
|
|
1063
|
-
B.$d[
|
|
1064
|
-
} else
|
|
1063
|
+
B.$d[H](y), B.init(), this.$d = B.set(S, Math.min(this.$D, B.daysInMonth())).$d;
|
|
1064
|
+
} else H && this.$d[H](y);
|
|
1065
1065
|
return this.init(), this;
|
|
1066
1066
|
}, T.set = function(E, N) {
|
|
1067
1067
|
return this.clone().$set(E, N);
|
|
1068
1068
|
}, T.get = function(E) {
|
|
1069
|
-
return this[
|
|
1069
|
+
return this[L.p(E)]();
|
|
1070
1070
|
}, T.add = function(E, N) {
|
|
1071
|
-
var I,
|
|
1071
|
+
var I, R = this;
|
|
1072
1072
|
E = Number(E);
|
|
1073
|
-
var p =
|
|
1074
|
-
var
|
|
1075
|
-
return
|
|
1073
|
+
var p = L.p(N), H = /* @__PURE__ */ r(function($) {
|
|
1074
|
+
var M = F(R);
|
|
1075
|
+
return L.w(M.date(M.date() + Math.round($ * E)), R);
|
|
1076
1076
|
}, "y");
|
|
1077
1077
|
if (p === m) return this.set(m, this.$M + E);
|
|
1078
1078
|
if (p === _) return this.set(_, this.$y + E);
|
|
1079
|
-
if (p === d) return
|
|
1080
|
-
if (p === f) return
|
|
1079
|
+
if (p === d) return H(1);
|
|
1080
|
+
if (p === f) return H(7);
|
|
1081
1081
|
var y = (I = {}, I[s] = n, I[u] = i, I[o] = l, I)[p] || 1, B = this.$d.getTime() + E * y;
|
|
1082
|
-
return
|
|
1082
|
+
return L.w(B, this);
|
|
1083
1083
|
}, T.subtract = function(E, N) {
|
|
1084
1084
|
return this.add(-1 * E, N);
|
|
1085
1085
|
}, T.format = function(E) {
|
|
1086
1086
|
var N = this, I = this.$locale();
|
|
1087
1087
|
if (!this.isValid()) return I.invalidDate || C;
|
|
1088
|
-
var
|
|
1089
|
-
return j && (j[Z] || j(N,
|
|
1088
|
+
var R = E || "YYYY-MM-DDTHH:mm:ssZ", p = L.z(this), H = this.$H, y = this.$m, B = this.$M, $ = I.weekdays, M = I.months, K = I.meridiem, q = /* @__PURE__ */ r(function(j, Z, Y, Q) {
|
|
1089
|
+
return j && (j[Z] || j(N, R)) || Y[Z].slice(0, Q);
|
|
1090
1090
|
}, "h"), te = /* @__PURE__ */ r(function(j) {
|
|
1091
|
-
return
|
|
1091
|
+
return L.s(H % 12 || 12, j, "0");
|
|
1092
1092
|
}, "d"), X = K || function(j, Z, Y) {
|
|
1093
1093
|
var Q = j < 12 ? "AM" : "PM";
|
|
1094
1094
|
return Y ? Q.toLowerCase() : Q;
|
|
1095
1095
|
};
|
|
1096
|
-
return
|
|
1096
|
+
return R.replace(P, (function(j, Z) {
|
|
1097
1097
|
return Z || (function(Y) {
|
|
1098
1098
|
switch (Y) {
|
|
1099
1099
|
case "YY":
|
|
1100
1100
|
return String(N.$y).slice(-2);
|
|
1101
1101
|
case "YYYY":
|
|
1102
|
-
return
|
|
1102
|
+
return L.s(N.$y, 4, "0");
|
|
1103
1103
|
case "M":
|
|
1104
1104
|
return B + 1;
|
|
1105
1105
|
case "MM":
|
|
1106
|
-
return
|
|
1106
|
+
return L.s(B + 1, 2, "0");
|
|
1107
1107
|
case "MMM":
|
|
1108
|
-
return q(I.monthsShort, B,
|
|
1108
|
+
return q(I.monthsShort, B, M, 3);
|
|
1109
1109
|
case "MMMM":
|
|
1110
|
-
return q(
|
|
1110
|
+
return q(M, B);
|
|
1111
1111
|
case "D":
|
|
1112
1112
|
return N.$D;
|
|
1113
1113
|
case "DD":
|
|
1114
|
-
return
|
|
1114
|
+
return L.s(N.$D, 2, "0");
|
|
1115
1115
|
case "d":
|
|
1116
1116
|
return String(N.$W);
|
|
1117
1117
|
case "dd":
|
|
1118
|
-
return q(I.weekdaysMin, N.$W,
|
|
1118
|
+
return q(I.weekdaysMin, N.$W, $, 2);
|
|
1119
1119
|
case "ddd":
|
|
1120
|
-
return q(I.weekdaysShort, N.$W,
|
|
1120
|
+
return q(I.weekdaysShort, N.$W, $, 3);
|
|
1121
1121
|
case "dddd":
|
|
1122
|
-
return
|
|
1122
|
+
return $[N.$W];
|
|
1123
1123
|
case "H":
|
|
1124
|
-
return String(
|
|
1124
|
+
return String(H);
|
|
1125
1125
|
case "HH":
|
|
1126
|
-
return
|
|
1126
|
+
return L.s(H, 2, "0");
|
|
1127
1127
|
case "h":
|
|
1128
1128
|
return te(1);
|
|
1129
1129
|
case "hh":
|
|
1130
1130
|
return te(2);
|
|
1131
1131
|
case "a":
|
|
1132
|
-
return X(
|
|
1132
|
+
return X(H, y, !0);
|
|
1133
1133
|
case "A":
|
|
1134
|
-
return X(
|
|
1134
|
+
return X(H, y, !1);
|
|
1135
1135
|
case "m":
|
|
1136
1136
|
return String(y);
|
|
1137
1137
|
case "mm":
|
|
1138
|
-
return
|
|
1138
|
+
return L.s(y, 2, "0");
|
|
1139
1139
|
case "s":
|
|
1140
1140
|
return String(N.$s);
|
|
1141
1141
|
case "ss":
|
|
1142
|
-
return
|
|
1142
|
+
return L.s(N.$s, 2, "0");
|
|
1143
1143
|
case "SSS":
|
|
1144
|
-
return
|
|
1144
|
+
return L.s(N.$ms, 3, "0");
|
|
1145
1145
|
case "Z":
|
|
1146
1146
|
return p;
|
|
1147
1147
|
}
|
|
@@ -1151,48 +1151,48 @@ function Ni() {
|
|
|
1151
1151
|
}, T.utcOffset = function() {
|
|
1152
1152
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1153
1153
|
}, T.diff = function(E, N, I) {
|
|
1154
|
-
var
|
|
1155
|
-
return
|
|
1154
|
+
var R, p = this, H = L.p(N), y = F(E), B = (y.utcOffset() - this.utcOffset()) * n, $ = this - y, M = /* @__PURE__ */ r(function() {
|
|
1155
|
+
return L.m(p, y);
|
|
1156
1156
|
}, "D");
|
|
1157
|
-
switch (
|
|
1157
|
+
switch (H) {
|
|
1158
1158
|
case _:
|
|
1159
|
-
|
|
1159
|
+
R = M() / 12;
|
|
1160
1160
|
break;
|
|
1161
1161
|
case m:
|
|
1162
|
-
|
|
1162
|
+
R = M();
|
|
1163
1163
|
break;
|
|
1164
1164
|
case h:
|
|
1165
|
-
|
|
1165
|
+
R = M() / 3;
|
|
1166
1166
|
break;
|
|
1167
1167
|
case f:
|
|
1168
|
-
|
|
1168
|
+
R = ($ - B) / 6048e5;
|
|
1169
1169
|
break;
|
|
1170
1170
|
case d:
|
|
1171
|
-
|
|
1171
|
+
R = ($ - B) / 864e5;
|
|
1172
1172
|
break;
|
|
1173
1173
|
case u:
|
|
1174
|
-
|
|
1174
|
+
R = $ / i;
|
|
1175
1175
|
break;
|
|
1176
1176
|
case s:
|
|
1177
|
-
|
|
1177
|
+
R = $ / n;
|
|
1178
1178
|
break;
|
|
1179
1179
|
case o:
|
|
1180
|
-
|
|
1180
|
+
R = $ / l;
|
|
1181
1181
|
break;
|
|
1182
1182
|
default:
|
|
1183
|
-
|
|
1183
|
+
R = $;
|
|
1184
1184
|
}
|
|
1185
|
-
return I ?
|
|
1185
|
+
return I ? R : L.a(R);
|
|
1186
1186
|
}, T.daysInMonth = function() {
|
|
1187
1187
|
return this.endOf(m).$D;
|
|
1188
1188
|
}, T.$locale = function() {
|
|
1189
1189
|
return w[this.$L];
|
|
1190
1190
|
}, T.locale = function(E, N) {
|
|
1191
1191
|
if (!E) return this.$L;
|
|
1192
|
-
var I = this.clone(),
|
|
1193
|
-
return
|
|
1192
|
+
var I = this.clone(), R = g(E, N, !0);
|
|
1193
|
+
return R && (I.$L = R), I;
|
|
1194
1194
|
}, T.clone = function() {
|
|
1195
|
-
return
|
|
1195
|
+
return L.w(this.$d, this);
|
|
1196
1196
|
}, T.toDate = function() {
|
|
1197
1197
|
return new Date(this.valueOf());
|
|
1198
1198
|
}, T.toJSON = function() {
|
|
@@ -1202,22 +1202,22 @@ function Ni() {
|
|
|
1202
1202
|
}, T.toString = function() {
|
|
1203
1203
|
return this.$d.toUTCString();
|
|
1204
1204
|
}, v;
|
|
1205
|
-
})(),
|
|
1206
|
-
return
|
|
1207
|
-
|
|
1205
|
+
})(), k = W.prototype;
|
|
1206
|
+
return F.prototype = k, [["$ms", a], ["$s", o], ["$m", s], ["$H", u], ["$W", d], ["$M", m], ["$y", _], ["$D", S]].forEach((function(v) {
|
|
1207
|
+
k[v[1]] = function(T) {
|
|
1208
1208
|
return this.$g(T, v[0], v[1]);
|
|
1209
1209
|
};
|
|
1210
|
-
})),
|
|
1211
|
-
return v.$i || (v(T, W,
|
|
1212
|
-
},
|
|
1213
|
-
return
|
|
1214
|
-
},
|
|
1210
|
+
})), F.extend = function(v, T) {
|
|
1211
|
+
return v.$i || (v(T, W, F), v.$i = !0), F;
|
|
1212
|
+
}, F.locale = g, F.isDayjs = U, F.unix = function(v) {
|
|
1213
|
+
return F(1e3 * v);
|
|
1214
|
+
}, F.en = w[D], F.Ls = w, F.p = {}, F;
|
|
1215
1215
|
}));
|
|
1216
1216
|
})(tt)), tt.exports;
|
|
1217
1217
|
}
|
|
1218
1218
|
r(Ni, "requireDayjs_min");
|
|
1219
1219
|
var It = Ni();
|
|
1220
|
-
const Nt = /* @__PURE__ */
|
|
1220
|
+
const Nt = /* @__PURE__ */ Cn(It), pi = "datetime", Ai = "HH:mm:ss", Ut = "day", pt = /* @__PURE__ */ new Set([z.RECENT_DAYS, z.EARLIER_DAYS]), Ht = /* @__PURE__ */ new Set([z.GT, z.LT, z.GTE, z.LTE]), Li = /* @__PURE__ */ r((t, e, l) => {
|
|
1221
1221
|
if (t === qe.UNDEFINED || e === qe.UNDEFINED || pt.has(t) && pt.has(e))
|
|
1222
1222
|
return l;
|
|
1223
1223
|
if (Ht.has(t)) {
|
|
@@ -1243,7 +1243,7 @@ const Nt = /* @__PURE__ */ En(It), pi = "datetime", Ai = "HH:mm:ss", Ut = "day",
|
|
|
1243
1243
|
return e.valueOf();
|
|
1244
1244
|
}
|
|
1245
1245
|
}, "TimestampConditionValueParser");
|
|
1246
|
-
function
|
|
1246
|
+
function yn(t) {
|
|
1247
1247
|
const e = G(6);
|
|
1248
1248
|
let l;
|
|
1249
1249
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [z.GT, z.LT, z.GTE, z.LTE, z.BETWEEN, z.TODAY, z.BEFORE_TODAY, z.TOMORROW, z.THIS_WEEK, z.NEXT_WEEK, z.LAST_WEEK, z.THIS_MONTH, z.LAST_MONTH, z.RECENT_DAYS, z.EARLIER_DAYS], e[0] = l) : l = e[0];
|
|
@@ -1288,8 +1288,8 @@ function Sn(t) {
|
|
|
1288
1288
|
i = e[5];
|
|
1289
1289
|
return i;
|
|
1290
1290
|
}
|
|
1291
|
-
r(
|
|
1292
|
-
|
|
1291
|
+
r(yn, "DateTimeFilter");
|
|
1292
|
+
yn.displayName = "DateTimeFilter";
|
|
1293
1293
|
const st = class st {
|
|
1294
1294
|
constructor() {
|
|
1295
1295
|
this.registry = /* @__PURE__ */ new Map();
|
|
@@ -1396,14 +1396,14 @@ const st = class st {
|
|
|
1396
1396
|
r(st, "TypedComponentRegistry");
|
|
1397
1397
|
let ot = st;
|
|
1398
1398
|
const bi = ot.create([
|
|
1399
|
-
[ui,
|
|
1400
|
-
[si,
|
|
1401
|
-
[di,
|
|
1402
|
-
[Si,
|
|
1403
|
-
[yi,
|
|
1404
|
-
[pi,
|
|
1399
|
+
[ui, _n],
|
|
1400
|
+
[si, hn],
|
|
1401
|
+
[di, Tn],
|
|
1402
|
+
[Si, En],
|
|
1403
|
+
[yi, Sn],
|
|
1404
|
+
[pi, yn]
|
|
1405
1405
|
]);
|
|
1406
|
-
function
|
|
1406
|
+
function vn(t) {
|
|
1407
1407
|
const e = G(2), {
|
|
1408
1408
|
type: l,
|
|
1409
1409
|
ref: n
|
|
@@ -1411,9 +1411,9 @@ function Cn(t) {
|
|
|
1411
1411
|
be(n, Ri);
|
|
1412
1412
|
const i = `Unsupported filter type:[${l}]`;
|
|
1413
1413
|
let a;
|
|
1414
|
-
return e[0] !== i ? (a = /* @__PURE__ */ c(
|
|
1414
|
+
return e[0] !== i ? (a = /* @__PURE__ */ c(xn, { title: i, type: "warning", showIcon: !0 }), e[0] = i, e[1] = a) : a = e[1], a;
|
|
1415
1415
|
}
|
|
1416
|
-
r(
|
|
1416
|
+
r(vn, "FallbackFilter");
|
|
1417
1417
|
function Ri() {
|
|
1418
1418
|
return {
|
|
1419
1419
|
getValue() {
|
|
@@ -1423,7 +1423,7 @@ function Ri() {
|
|
|
1423
1423
|
};
|
|
1424
1424
|
}
|
|
1425
1425
|
r(Ri, "_temp$7");
|
|
1426
|
-
|
|
1426
|
+
vn.displayName = "FallbackFilter";
|
|
1427
1427
|
const Di = {
|
|
1428
1428
|
flex: "auto",
|
|
1429
1429
|
width: "100%"
|
|
@@ -1431,7 +1431,7 @@ const Di = {
|
|
|
1431
1431
|
function At(t) {
|
|
1432
1432
|
const e = G(10);
|
|
1433
1433
|
let l;
|
|
1434
|
-
e[0] !== t.type ? (l = bi.get(t.type) ||
|
|
1434
|
+
e[0] !== t.type ? (l = bi.get(t.type) || vn, e[0] = t.type, e[1] = l) : l = e[1];
|
|
1435
1435
|
const n = l;
|
|
1436
1436
|
let i;
|
|
1437
1437
|
e[2] !== t.value ? (i = {
|
|
@@ -1472,7 +1472,7 @@ function Pi(t) {
|
|
|
1472
1472
|
let d;
|
|
1473
1473
|
e[8] !== n ? (d = /* @__PURE__ */ c(At, { ...n }), e[8] = n, e[9] = d) : d = e[9];
|
|
1474
1474
|
let f;
|
|
1475
|
-
e[10] !== l || e[11] !== i ? (f = i && /* @__PURE__ */ c(_e, { type: "dashed", shape: "circle", size: "small", onClick: l, icon: /* @__PURE__ */ c(
|
|
1475
|
+
e[10] !== l || e[11] !== i ? (f = i && /* @__PURE__ */ c(_e, { type: "dashed", shape: "circle", size: "small", onClick: l, icon: /* @__PURE__ */ c(Qn, {}) }), e[10] = l, e[11] = i, e[12] = f) : f = e[12];
|
|
1476
1476
|
let m;
|
|
1477
1477
|
return e[13] !== d || e[14] !== f ? (m = /* @__PURE__ */ J(Ce, { onMouseOver: o, onMouseOut: s, style: u, className: Fi.fullWidthItem, children: [
|
|
1478
1478
|
d,
|
|
@@ -1517,7 +1517,7 @@ const xi = {
|
|
|
1517
1517
|
function we() {
|
|
1518
1518
|
const [t, e] = ee(zt), l = en(
|
|
1519
1519
|
(n) => {
|
|
1520
|
-
e(
|
|
1520
|
+
e(Vi(zt, n));
|
|
1521
1521
|
},
|
|
1522
1522
|
[e]
|
|
1523
1523
|
);
|
|
@@ -1527,26 +1527,26 @@ function we() {
|
|
|
1527
1527
|
};
|
|
1528
1528
|
}
|
|
1529
1529
|
r(we, "useLocale");
|
|
1530
|
-
function
|
|
1530
|
+
function Vi(t, e) {
|
|
1531
1531
|
const l = Object.fromEntries(
|
|
1532
1532
|
// Object.entries把对象转成[key, value]数组,再过滤掉value=undefined的项
|
|
1533
1533
|
Object.entries(e).filter(([, n]) => n !== void 0)
|
|
1534
1534
|
);
|
|
1535
1535
|
return Object.assign({}, t, l);
|
|
1536
1536
|
}
|
|
1537
|
-
r(
|
|
1538
|
-
const
|
|
1537
|
+
r(Vi, "mergeWithAssign");
|
|
1538
|
+
const $i = {
|
|
1539
1539
|
gutter: [8, 8],
|
|
1540
1540
|
wrap: !0
|
|
1541
|
-
},
|
|
1541
|
+
}, In = {
|
|
1542
1542
|
xxl: 6,
|
|
1543
1543
|
xl: 8,
|
|
1544
1544
|
lg: 12,
|
|
1545
1545
|
md: 12,
|
|
1546
1546
|
sm: 24,
|
|
1547
1547
|
xs: 24
|
|
1548
|
-
}, ki =
|
|
1549
|
-
function
|
|
1548
|
+
}, ki = In;
|
|
1549
|
+
function Nn(t) {
|
|
1550
1550
|
const e = G(48), {
|
|
1551
1551
|
ref: l,
|
|
1552
1552
|
row: n,
|
|
@@ -1557,71 +1557,71 @@ function vn(t) {
|
|
|
1557
1557
|
actions: u,
|
|
1558
1558
|
resetButton: d,
|
|
1559
1559
|
searchButton: f
|
|
1560
|
-
} = t, m = n === void 0 ?
|
|
1560
|
+
} = t, m = n === void 0 ? $i : n, h = i === void 0 ? In : i, _ = a === void 0 ? ki : a, S = jn(), {
|
|
1561
1561
|
locale: C
|
|
1562
1562
|
} = we();
|
|
1563
|
-
let
|
|
1564
|
-
e[0] !== S ? (
|
|
1565
|
-
const
|
|
1563
|
+
let O;
|
|
1564
|
+
e[0] !== S ? (O = /* @__PURE__ */ r(() => {
|
|
1565
|
+
const $ = [], M = /* @__PURE__ */ new Map();
|
|
1566
1566
|
for (const q of S.entries()) {
|
|
1567
1567
|
const te = q[0], X = q[1].getValue()?.condition;
|
|
1568
|
-
X && (
|
|
1568
|
+
X && ($.push(X), M.set(te, X));
|
|
1569
1569
|
}
|
|
1570
1570
|
return {
|
|
1571
|
-
finalCondition: bt(
|
|
1572
|
-
activeFilterValues:
|
|
1571
|
+
finalCondition: bt(...$),
|
|
1572
|
+
activeFilterValues: M
|
|
1573
1573
|
};
|
|
1574
|
-
}, "t3"), e[0] = S, e[1] =
|
|
1575
|
-
const
|
|
1576
|
-
let
|
|
1577
|
-
e[2] !==
|
|
1574
|
+
}, "t3"), e[0] = S, e[1] = O) : O = e[1];
|
|
1575
|
+
const P = O;
|
|
1576
|
+
let b;
|
|
1577
|
+
e[2] !== P || e[3] !== s ? (b = /* @__PURE__ */ r(() => {
|
|
1578
1578
|
if (!s)
|
|
1579
1579
|
return;
|
|
1580
1580
|
const {
|
|
1581
|
-
finalCondition:
|
|
1582
|
-
activeFilterValues:
|
|
1583
|
-
} =
|
|
1584
|
-
s(
|
|
1585
|
-
}, "t4"), e[2] =
|
|
1586
|
-
const
|
|
1587
|
-
let
|
|
1588
|
-
e[5] !== S ? (
|
|
1589
|
-
for (const
|
|
1590
|
-
|
|
1591
|
-
}, "t5"), e[5] = S, e[6] =
|
|
1592
|
-
const
|
|
1581
|
+
finalCondition: $,
|
|
1582
|
+
activeFilterValues: M
|
|
1583
|
+
} = P();
|
|
1584
|
+
s($, M);
|
|
1585
|
+
}, "t4"), e[2] = P, e[3] = s, e[4] = b) : b = e[4];
|
|
1586
|
+
const A = b;
|
|
1587
|
+
let x;
|
|
1588
|
+
e[5] !== S ? (x = /* @__PURE__ */ r(() => {
|
|
1589
|
+
for (const $ of S.values())
|
|
1590
|
+
$.reset();
|
|
1591
|
+
}, "t5"), e[5] = S, e[6] = x) : x = e[6];
|
|
1592
|
+
const D = x;
|
|
1593
1593
|
let w;
|
|
1594
|
-
e[7] !==
|
|
1595
|
-
search:
|
|
1596
|
-
reset:
|
|
1594
|
+
e[7] !== P || e[8] !== D || e[9] !== A ? (w = /* @__PURE__ */ r(() => ({
|
|
1595
|
+
search: A,
|
|
1596
|
+
reset: D,
|
|
1597
1597
|
getCondition() {
|
|
1598
1598
|
const {
|
|
1599
|
-
finalCondition:
|
|
1600
|
-
} =
|
|
1601
|
-
return
|
|
1599
|
+
finalCondition: $
|
|
1600
|
+
} = P();
|
|
1601
|
+
return $;
|
|
1602
1602
|
}
|
|
1603
|
-
}), "t6"), e[7] =
|
|
1604
|
-
let
|
|
1605
|
-
e[11] !==
|
|
1606
|
-
|
|
1607
|
-
}, "t7"), e[11] =
|
|
1608
|
-
const
|
|
1609
|
-
let
|
|
1610
|
-
e[13] !== d ? (
|
|
1611
|
-
const
|
|
1603
|
+
}), "t6"), e[7] = P, e[8] = D, e[9] = A, e[10] = w) : w = e[10], be(l, w);
|
|
1604
|
+
let V;
|
|
1605
|
+
e[11] !== A ? (V = /* @__PURE__ */ r(($) => {
|
|
1606
|
+
$.nativeEvent.isComposing || $.key === "Enter" && A();
|
|
1607
|
+
}, "t7"), e[11] = A, e[12] = V) : V = e[12];
|
|
1608
|
+
const U = V, g = d !== !1;
|
|
1609
|
+
let F;
|
|
1610
|
+
e[13] !== d ? (F = typeof d == "object" ? d : {}, e[13] = d, e[14] = F) : F = e[14];
|
|
1611
|
+
const L = F;
|
|
1612
1612
|
let W;
|
|
1613
1613
|
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = {
|
|
1614
1614
|
maxHeight: "128px",
|
|
1615
1615
|
overflowY: "auto"
|
|
1616
1616
|
}, e[15] = W) : W = e[15];
|
|
1617
|
-
let
|
|
1617
|
+
let k;
|
|
1618
1618
|
if (e[16] !== h || e[17] !== S || e[18] !== o) {
|
|
1619
|
-
let
|
|
1620
|
-
e[20] !== h || e[21] !== S ? (
|
|
1619
|
+
let $;
|
|
1620
|
+
e[20] !== h || e[21] !== S ? ($ = /* @__PURE__ */ r((M) => /* @__PURE__ */ Ft(Ct, { ...h, key: M.key }, /* @__PURE__ */ Ft(Pi, { ...M, key: M.key, ref: S.register(M.key) })), "t112"), e[20] = h, e[21] = S, e[22] = $) : $ = e[22], k = o.map($), e[16] = h, e[17] = S, e[18] = o, e[19] = k;
|
|
1621
1621
|
} else
|
|
1622
|
-
|
|
1622
|
+
k = e[19];
|
|
1623
1623
|
let v;
|
|
1624
|
-
e[23] !==
|
|
1624
|
+
e[23] !== U || e[24] !== m || e[25] !== k ? (v = /* @__PURE__ */ c(St, { style: W, onKeyUp: U, ...m, children: k }), e[23] = U, e[24] = m, e[25] = k, e[26] = v) : v = e[26];
|
|
1625
1625
|
let T;
|
|
1626
1626
|
e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
|
|
1627
1627
|
marginTop: "16px"
|
|
@@ -1631,27 +1631,27 @@ function vn(t) {
|
|
|
1631
1631
|
textAlign: "right"
|
|
1632
1632
|
}, e[28] = E) : E = e[28];
|
|
1633
1633
|
let N;
|
|
1634
|
-
e[29] !==
|
|
1634
|
+
e[29] !== D || e[30] !== L || e[31] !== g ? (N = g && /* @__PURE__ */ c(_e, { icon: /* @__PURE__ */ c(Xn, {}), onClick: D, ...L, children: L?.children || "Reset" }), e[29] = D, e[30] = L, e[31] = g, e[32] = N) : N = e[32];
|
|
1635
1635
|
let I;
|
|
1636
|
-
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ c(
|
|
1637
|
-
const
|
|
1636
|
+
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ c(Zn, {}), e[33] = I) : I = e[33];
|
|
1637
|
+
const R = f?.children || C.filterPanel?.searchButtonTitle || "Search";
|
|
1638
1638
|
let p;
|
|
1639
|
-
e[34] !==
|
|
1640
|
-
let
|
|
1641
|
-
e[38] !== u || e[39] !== N || e[40] !== p ? (
|
|
1639
|
+
e[34] !== A || e[35] !== f || e[36] !== R ? (p = /* @__PURE__ */ c(_e, { type: "primary", icon: I, onClick: A, ...f, children: R }), e[34] = A, e[35] = f, e[36] = R, e[37] = p) : p = e[37];
|
|
1640
|
+
let H;
|
|
1641
|
+
e[38] !== u || e[39] !== N || e[40] !== p ? (H = /* @__PURE__ */ J(Ce.Compact, { children: [
|
|
1642
1642
|
u,
|
|
1643
1643
|
N,
|
|
1644
1644
|
p
|
|
1645
|
-
] }), e[38] = u, e[39] = N, e[40] = p, e[41] =
|
|
1645
|
+
] }), e[38] = u, e[39] = N, e[40] = p, e[41] = H) : H = e[41];
|
|
1646
1646
|
let y;
|
|
1647
|
-
e[42] !== _ || e[43] !==
|
|
1647
|
+
e[42] !== _ || e[43] !== H ? (y = /* @__PURE__ */ c(St, { justify: "end", style: T, children: /* @__PURE__ */ c(Ct, { style: E, ..._, children: H }) }), e[42] = _, e[43] = H, e[44] = y) : y = e[44];
|
|
1648
1648
|
let B;
|
|
1649
1649
|
return e[45] !== v || e[46] !== y ? (B = /* @__PURE__ */ J(Ee, { children: [
|
|
1650
1650
|
v,
|
|
1651
1651
|
y
|
|
1652
1652
|
] }), e[45] = v, e[46] = y, e[47] = B) : B = e[47], B;
|
|
1653
1653
|
}
|
|
1654
|
-
r(
|
|
1654
|
+
r(Nn, "FilterPanel");
|
|
1655
1655
|
function Mi(t) {
|
|
1656
1656
|
const e = G(35), {
|
|
1657
1657
|
ref: l,
|
|
@@ -1674,45 +1674,45 @@ function Mi(t) {
|
|
|
1674
1674
|
const E = T.map(gi), N = [...f, ...E];
|
|
1675
1675
|
m(N), d && d(N), _(!1);
|
|
1676
1676
|
}, "t0"), e[0] = f, e[1] = d, e[2] = C) : C = e[2];
|
|
1677
|
-
const
|
|
1678
|
-
let
|
|
1679
|
-
e[3] !== f || e[4] !== d ? (
|
|
1677
|
+
const O = C;
|
|
1678
|
+
let P;
|
|
1679
|
+
e[3] !== f || e[4] !== d ? (P = /* @__PURE__ */ r((T) => {
|
|
1680
1680
|
const E = f.filter((N) => N.key !== T);
|
|
1681
1681
|
m(E), d && d(E);
|
|
1682
|
-
}, "t1"), e[3] = f, e[4] = d, e[5] =
|
|
1683
|
-
const
|
|
1684
|
-
let
|
|
1685
|
-
if (e[6] !== f || e[7] !==
|
|
1682
|
+
}, "t1"), e[3] = f, e[4] = d, e[5] = P) : P = e[5];
|
|
1683
|
+
const b = P;
|
|
1684
|
+
let A;
|
|
1685
|
+
if (e[6] !== f || e[7] !== b) {
|
|
1686
1686
|
let T;
|
|
1687
|
-
e[9] !==
|
|
1687
|
+
e[9] !== b ? (T = /* @__PURE__ */ r((E) => ({
|
|
1688
1688
|
...E,
|
|
1689
|
-
onRemove: /* @__PURE__ */ r(() =>
|
|
1690
|
-
}), "t32"), e[9] =
|
|
1689
|
+
onRemove: /* @__PURE__ */ r(() => b(E.key), "onRemove")
|
|
1690
|
+
}), "t32"), e[9] = b, e[10] = T) : T = e[10], A = f.map(T), e[6] = f, e[7] = b, e[8] = A;
|
|
1691
1691
|
} else
|
|
1692
|
-
|
|
1693
|
-
const
|
|
1694
|
-
let
|
|
1695
|
-
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1696
|
-
const
|
|
1697
|
-
let
|
|
1698
|
-
e[13] !==
|
|
1699
|
-
let
|
|
1700
|
-
e[15] !== i || e[16] !==
|
|
1701
|
-
const
|
|
1702
|
-
let
|
|
1703
|
-
e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1692
|
+
A = e[8];
|
|
1693
|
+
const x = A;
|
|
1694
|
+
let D, w;
|
|
1695
|
+
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ r(() => _(!0), "t3"), w = /* @__PURE__ */ c(rn, {}), e[11] = D, e[12] = w) : (D = e[11], w = e[12]);
|
|
1696
|
+
const V = S.filterPanel?.addFilterTitle || "Add Filter";
|
|
1697
|
+
let U;
|
|
1698
|
+
e[13] !== V ? (U = /* @__PURE__ */ c(_e, { onClick: D, icon: w, children: V }), e[13] = V, e[14] = U) : U = e[14];
|
|
1699
|
+
let g;
|
|
1700
|
+
e[15] !== i || e[16] !== x || e[17] !== u || e[18] !== l || e[19] !== s || e[20] !== n || e[21] !== U ? (g = /* @__PURE__ */ c(Nn, { ref: l, filters: x, onSearch: u, actions: U, resetButton: s, row: n, col: i }), e[15] = i, e[16] = x, e[17] = u, e[18] = l, e[19] = s, e[20] = n, e[21] = U, e[22] = g) : g = e[22];
|
|
1701
|
+
const F = S.filterPanel?.addFilterTitle || "Add Filter";
|
|
1702
|
+
let L;
|
|
1703
|
+
e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ r(() => _(!1), "t9"), e[23] = L) : L = e[23];
|
|
1704
1704
|
let W;
|
|
1705
1705
|
e[24] !== f || e[25] !== a ? (W = {
|
|
1706
1706
|
filters: a,
|
|
1707
1707
|
activeFilters: f
|
|
1708
1708
|
}, e[24] = f, e[25] = a, e[26] = W) : W = e[26];
|
|
1709
|
-
let
|
|
1710
|
-
e[27] !==
|
|
1709
|
+
let k;
|
|
1710
|
+
e[27] !== O || e[28] !== h || e[29] !== W || e[30] !== F ? (k = /* @__PURE__ */ c(Jl, { title: F, open: h, onCancel: L, onSave: O, availableFilters: W }), e[27] = O, e[28] = h, e[29] = W, e[30] = F, e[31] = k) : k = e[31];
|
|
1711
1711
|
let v;
|
|
1712
|
-
return e[32] !==
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
] }), e[32] =
|
|
1712
|
+
return e[32] !== k || e[33] !== g ? (v = /* @__PURE__ */ J(Ee, { children: [
|
|
1713
|
+
g,
|
|
1714
|
+
k
|
|
1715
|
+
] }), e[32] = k, e[33] = g, e[34] = v) : v = e[34], v;
|
|
1716
1716
|
}
|
|
1717
1717
|
r(Mi, "EditableFilterPanel");
|
|
1718
1718
|
function gi(t) {
|
|
@@ -1727,7 +1727,7 @@ function gi(t) {
|
|
|
1727
1727
|
};
|
|
1728
1728
|
}
|
|
1729
1729
|
r(gi, "_temp$6");
|
|
1730
|
-
const Ui = "REFRESH_DATA_EVENTS", Hi = new
|
|
1730
|
+
const Ui = "REFRESH_DATA_EVENTS", Hi = new El(Ui), ze = new Sl({ delegate: Hi });
|
|
1731
1731
|
function wt() {
|
|
1732
1732
|
const t = /* @__PURE__ */ r(() => ze.emit("REFRESH"), "publish"), e = /* @__PURE__ */ r((l) => ze.on(l), "subscribe");
|
|
1733
1733
|
return Ae(() => () => {
|
|
@@ -1741,45 +1741,45 @@ function wt() {
|
|
|
1741
1741
|
};
|
|
1742
1742
|
}
|
|
1743
1743
|
r(wt, "useRefreshDataEventBus");
|
|
1744
|
-
const
|
|
1745
|
-
function
|
|
1744
|
+
const pn = je();
|
|
1745
|
+
function An({
|
|
1746
1746
|
defaultPage: t = 1,
|
|
1747
1747
|
defaultPageSize: e = 10,
|
|
1748
1748
|
defaultTableSize: l = "middle",
|
|
1749
|
-
defaultCondition: n =
|
|
1749
|
+
defaultCondition: n = pn,
|
|
1750
1750
|
defaultSorter: i = [],
|
|
1751
1751
|
...a
|
|
1752
1752
|
}) {
|
|
1753
|
-
const { defaultColumns: o, defaultActiveFilters: s } = a, [u, d] = ee(o), [f, m] = ee(s), [h, _] = ee(t), [S, C] = ee(e), [
|
|
1753
|
+
const { defaultColumns: o, defaultActiveFilters: s } = a, [u, d] = ee(o), [f, m] = ee(s), [h, _] = ee(t), [S, C] = ee(e), [O, P] = ee(l), [b, A] = ee(i), [x, D] = ee(n);
|
|
1754
1754
|
return {
|
|
1755
1755
|
columns: u,
|
|
1756
|
-
setColumns: /* @__PURE__ */ r((
|
|
1757
|
-
d(
|
|
1756
|
+
setColumns: /* @__PURE__ */ r((L) => {
|
|
1757
|
+
d(L.map((W) => ({ ...W })));
|
|
1758
1758
|
}, "setColumnsFn"),
|
|
1759
1759
|
activeFilters: f,
|
|
1760
|
-
setActiveFilters: /* @__PURE__ */ r((
|
|
1761
|
-
m(
|
|
1760
|
+
setActiveFilters: /* @__PURE__ */ r((L) => {
|
|
1761
|
+
m(L.map((W) => ({ ...W })));
|
|
1762
1762
|
}, "setActiveFiltersFn"),
|
|
1763
1763
|
page: h,
|
|
1764
1764
|
setPage: _,
|
|
1765
1765
|
pageSize: S,
|
|
1766
1766
|
setPageSize: C,
|
|
1767
|
-
condition:
|
|
1768
|
-
setCondition: /* @__PURE__ */ r((
|
|
1769
|
-
|
|
1767
|
+
condition: x,
|
|
1768
|
+
setCondition: /* @__PURE__ */ r((L) => {
|
|
1769
|
+
D({ ...L });
|
|
1770
1770
|
}, "setConditionFn"),
|
|
1771
|
-
sorter:
|
|
1772
|
-
setSorter: /* @__PURE__ */ r((
|
|
1773
|
-
|
|
1771
|
+
sorter: b,
|
|
1772
|
+
setSorter: /* @__PURE__ */ r((L) => {
|
|
1773
|
+
A(L.map((W) => ({ ...W })));
|
|
1774
1774
|
}, "setSorterFn"),
|
|
1775
|
-
tableSize:
|
|
1776
|
-
setTableSize:
|
|
1775
|
+
tableSize: O,
|
|
1776
|
+
setTableSize: P,
|
|
1777
1777
|
reset: /* @__PURE__ */ r(() => {
|
|
1778
|
-
d(o), m(s), _(t), C(e),
|
|
1778
|
+
d(o), m(s), _(t), C(e), D(n), A(i), P(l);
|
|
1779
1779
|
}, "resetFn")
|
|
1780
1780
|
};
|
|
1781
1781
|
}
|
|
1782
|
-
r(
|
|
1782
|
+
r(An, "useActiveViewState");
|
|
1783
1783
|
const zi = "action";
|
|
1784
1784
|
function Bt(t) {
|
|
1785
1785
|
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");
|
|
@@ -1818,7 +1818,7 @@ function Yi(t) {
|
|
|
1818
1818
|
label: /* @__PURE__ */ c(Ee, { children: n })
|
|
1819
1819
|
}))), l.length > 0 ? /* @__PURE__ */ J(Ce, { children: [
|
|
1820
1820
|
Bt(e.value.primaryAction) ? /* @__PURE__ */ c(nt, { ...e.value.primaryAction }) : /* @__PURE__ */ c(Ee, { children: e.value.primaryAction(e.record) }),
|
|
1821
|
-
/* @__PURE__ */ c(
|
|
1821
|
+
/* @__PURE__ */ c($e, { menu: {
|
|
1822
1822
|
items: l
|
|
1823
1823
|
}, children: /* @__PURE__ */ c(_e, { type: "link", style: {
|
|
1824
1824
|
padding: 0
|
|
@@ -1829,10 +1829,10 @@ function Yi(t) {
|
|
|
1829
1829
|
] }) : /* @__PURE__ */ c(Ee, { children: Bt(e.value.primaryAction) ? /* @__PURE__ */ c(nt, { ...e.value.primaryAction }) : /* @__PURE__ */ c(Ee, { children: e.value.primaryAction(e.record) }) });
|
|
1830
1830
|
}
|
|
1831
1831
|
r(Yi, "renderActions");
|
|
1832
|
-
function
|
|
1832
|
+
function Ln(t) {
|
|
1833
1833
|
return Yi(t);
|
|
1834
1834
|
}
|
|
1835
|
-
r(
|
|
1835
|
+
r(Ln, "ActionsCell");
|
|
1836
1836
|
function Wi(t) {
|
|
1837
1837
|
return Nt.isDayjs(t) ? t : Nt(t);
|
|
1838
1838
|
}
|
|
@@ -1887,10 +1887,10 @@ function Xi() {
|
|
|
1887
1887
|
}
|
|
1888
1888
|
r(Xi, "requireCalendar");
|
|
1889
1889
|
var Zi = Xi();
|
|
1890
|
-
const Ji = /* @__PURE__ */
|
|
1890
|
+
const Ji = /* @__PURE__ */ Cn(Zi), {
|
|
1891
1891
|
Text: Je
|
|
1892
1892
|
} = ge, er = "datetime", it = "YYYY-MM-DD HH:mm:ss";
|
|
1893
|
-
function
|
|
1893
|
+
function On(t) {
|
|
1894
1894
|
const e = G(10), {
|
|
1895
1895
|
data: l,
|
|
1896
1896
|
attributes: n
|
|
@@ -1926,7 +1926,7 @@ function An(t) {
|
|
|
1926
1926
|
let u;
|
|
1927
1927
|
return e[6] !== i || e[7] !== a || e[8] !== o ? (u = /* @__PURE__ */ c(i, { ...a, children: o }), e[6] = i, e[7] = a, e[8] = o, e[9] = u) : u = e[9], u;
|
|
1928
1928
|
}
|
|
1929
|
-
r(
|
|
1929
|
+
r(On, "DateTimeCell");
|
|
1930
1930
|
Nt.extend(Ji);
|
|
1931
1931
|
const tr = "calendar-time", nr = {
|
|
1932
1932
|
sameDay: "[今天] HH:mm",
|
|
@@ -1959,20 +1959,20 @@ function lr(t) {
|
|
|
1959
1959
|
...s
|
|
1960
1960
|
}, e[7] = f, e[8] = s, e[9] = m) : m = e[9];
|
|
1961
1961
|
let h;
|
|
1962
|
-
return e[10] !== l || e[11] !== m ? (h = /* @__PURE__ */ c(
|
|
1962
|
+
return e[10] !== l || e[11] !== m ? (h = /* @__PURE__ */ c(On, { data: l, attributes: m }), e[10] = l, e[11] = m, e[12] = h) : h = e[12], h;
|
|
1963
1963
|
}
|
|
1964
1964
|
r(lr, "CalendarTimeCell");
|
|
1965
1965
|
const {
|
|
1966
1966
|
Text: ir
|
|
1967
1967
|
} = ge, rr = "text";
|
|
1968
|
-
function
|
|
1968
|
+
function bn(t) {
|
|
1969
1969
|
const e = G(3), l = t.attributes?.children ?? (t.data.value || "-");
|
|
1970
1970
|
let n;
|
|
1971
1971
|
return e[0] !== t.attributes || e[1] !== l ? (n = /* @__PURE__ */ c(ir, { ...t.attributes, children: l }), e[0] = t.attributes, e[1] = l, e[2] = n) : n = e[2], n;
|
|
1972
1972
|
}
|
|
1973
|
-
r(
|
|
1973
|
+
r(bn, "TextCell");
|
|
1974
1974
|
const ar = "tag";
|
|
1975
|
-
function
|
|
1975
|
+
function Rn(t) {
|
|
1976
1976
|
const e = G(3), {
|
|
1977
1977
|
data: l,
|
|
1978
1978
|
attributes: n
|
|
@@ -1983,7 +1983,7 @@ function On(t) {
|
|
|
1983
1983
|
let a;
|
|
1984
1984
|
return e[0] !== n || e[1] !== i ? (a = /* @__PURE__ */ c(Ot, { ...n, children: i }), e[0] = n, e[1] = i, e[2] = a) : a = e[2], a;
|
|
1985
1985
|
}
|
|
1986
|
-
r(
|
|
1986
|
+
r(Rn, "TagCell");
|
|
1987
1987
|
const or = "tags";
|
|
1988
1988
|
function sr(t) {
|
|
1989
1989
|
const e = G(14), {
|
|
@@ -2001,7 +2001,7 @@ function sr(t) {
|
|
|
2001
2001
|
let d;
|
|
2002
2002
|
e[7] !== o || e[8] !== n.index || e[9] !== n.record ? (d = /* @__PURE__ */ r((f, m) => {
|
|
2003
2003
|
const h = o[f];
|
|
2004
|
-
return /* @__PURE__ */ c(
|
|
2004
|
+
return /* @__PURE__ */ c(Rn, { data: {
|
|
2005
2005
|
value: f,
|
|
2006
2006
|
record: n.record,
|
|
2007
2007
|
index: n.index
|
|
@@ -2048,7 +2048,7 @@ function dr(t) {
|
|
|
2048
2048
|
e[3] !== l.value[0] || e[4] !== s ? (u = /* @__PURE__ */ c(yt, { src: l.value[0], ...s }), e[3] = l.value[0], e[4] = s, e[5] = u) : u = e[5];
|
|
2049
2049
|
const d = u;
|
|
2050
2050
|
let f;
|
|
2051
|
-
e[6] !== l.value.length || e[7] !== o || e[8] !== d ? (f = o ? /* @__PURE__ */ c(
|
|
2051
|
+
e[6] !== l.value.length || e[7] !== o || e[8] !== d ? (f = o ? /* @__PURE__ */ c(Vn, { count: l.value.length, children: d }) : d, e[6] = l.value.length, e[7] = o, e[8] = d, e[9] = f) : f = e[9];
|
|
2052
2052
|
let m;
|
|
2053
2053
|
return e[10] !== a || e[11] !== l.value || e[12] !== f ? (m = /* @__PURE__ */ c(yt.PreviewGroup, { items: l.value, ...a, children: f }), e[10] = a, e[11] = l.value, e[12] = f, e[13] = m) : m = e[13], m;
|
|
2054
2054
|
}
|
|
@@ -2135,7 +2135,7 @@ r(Nr, "CurrencyCell");
|
|
|
2135
2135
|
const {
|
|
2136
2136
|
Link: pr
|
|
2137
2137
|
} = ge, Ar = "primary-key";
|
|
2138
|
-
function
|
|
2138
|
+
function Dn(t) {
|
|
2139
2139
|
const e = G(7), {
|
|
2140
2140
|
data: l,
|
|
2141
2141
|
attributes: n
|
|
@@ -2145,21 +2145,21 @@ function bn(t) {
|
|
|
2145
2145
|
let a;
|
|
2146
2146
|
return e[3] !== n || e[4] !== l.value || e[5] !== i ? (a = /* @__PURE__ */ c(pr, { copyable: !0, ...n, onClick: i, children: l.value }), e[3] = n, e[4] = l.value, e[5] = i, e[6] = a) : a = e[6], a;
|
|
2147
2147
|
}
|
|
2148
|
-
r(
|
|
2148
|
+
r(Dn, "PrimaryKeyCell");
|
|
2149
2149
|
const Lr = ot.create([
|
|
2150
2150
|
[zi, nt],
|
|
2151
|
-
[Bi,
|
|
2152
|
-
[rr,
|
|
2153
|
-
[ar,
|
|
2151
|
+
[Bi, Ln],
|
|
2152
|
+
[rr, bn],
|
|
2153
|
+
[ar, Rn],
|
|
2154
2154
|
[or, sr],
|
|
2155
|
-
[er,
|
|
2155
|
+
[er, On],
|
|
2156
2156
|
[tr, lr],
|
|
2157
2157
|
[cr, ur],
|
|
2158
2158
|
[fr, dr],
|
|
2159
2159
|
[hr, Er],
|
|
2160
2160
|
[Ir, Nr],
|
|
2161
2161
|
[ji, qi],
|
|
2162
|
-
[Ar,
|
|
2162
|
+
[Ar, Dn]
|
|
2163
2163
|
]);
|
|
2164
2164
|
function Or(t, e) {
|
|
2165
2165
|
const l = Lr.get(t);
|
|
@@ -2189,7 +2189,7 @@ function Wt(t) {
|
|
|
2189
2189
|
let a;
|
|
2190
2190
|
e[3] !== t.columnDefinition.label || e[4] !== t.columnDefinition.primaryKey || e[5] !== n || e[6] !== i ? (a = /* @__PURE__ */ c(Zt, { checked: n, disabled: t.columnDefinition.primaryKey, onChange: i, children: t.columnDefinition.label }), e[3] = t.columnDefinition.label, e[4] = t.columnDefinition.primaryKey, e[5] = n, e[6] = i, e[7] = a) : a = e[7];
|
|
2191
2191
|
let o;
|
|
2192
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ c(
|
|
2192
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ c(an, {}), e[8] = o) : o = e[8];
|
|
2193
2193
|
let s;
|
|
2194
2194
|
return e[9] !== a ? (s = /* @__PURE__ */ J(pe, { align: "center", justify: "space-between", style: l, children: [
|
|
2195
2195
|
a,
|
|
@@ -2197,7 +2197,7 @@ function Wt(t) {
|
|
|
2197
2197
|
] }), e[9] = a, e[10] = s) : s = e[10], s;
|
|
2198
2198
|
}
|
|
2199
2199
|
r(Wt, "TableFieldItem");
|
|
2200
|
-
const br = "_item_59wbi_1", Rr = "_dragging_59wbi_9", Dr = "_tips_59wbi_31", wr = "_groupTitle_59wbi_38",
|
|
2200
|
+
const br = "_item_59wbi_1", Rr = "_dragging_59wbi_9", Dr = "_tips_59wbi_31", wr = "_groupTitle_59wbi_38", Ve = {
|
|
2201
2201
|
item: br,
|
|
2202
2202
|
dragging: Rr,
|
|
2203
2203
|
tips: Dr,
|
|
@@ -2215,67 +2215,67 @@ function Fr(t) {
|
|
|
2215
2215
|
e[0] !== i ? (m = /* @__PURE__ */ r(() => {
|
|
2216
2216
|
f(i);
|
|
2217
2217
|
}, "t0"), h = [i], e[0] = i, e[1] = m, e[2] = h) : (m = e[1], h = e[2]), Ae(m, h);
|
|
2218
|
-
const _ = d.map(Mr), S = _.filter(kr), C = _.filter(
|
|
2219
|
-
const
|
|
2220
|
-
...
|
|
2218
|
+
const _ = d.map(Mr), S = _.filter(kr), C = _.filter($r), O = _.filter(Vr), P = /* @__PURE__ */ r((y, B) => {
|
|
2219
|
+
const $ = _.map((M, K) => K === y ? {
|
|
2220
|
+
...M,
|
|
2221
2221
|
hidden: B
|
|
2222
|
-
} :
|
|
2223
|
-
f(
|
|
2222
|
+
} : M);
|
|
2223
|
+
f($), a?.($);
|
|
2224
2224
|
}, "handleVisibilityChange");
|
|
2225
|
-
let
|
|
2226
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2227
|
-
const
|
|
2228
|
-
|
|
2229
|
-
index:
|
|
2225
|
+
let b;
|
|
2226
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ r((y, B, $) => {
|
|
2227
|
+
const M = y.currentTarget.cloneNode(!0);
|
|
2228
|
+
M.style.backgroundColor = "#F5F5F5", M.style.transform = "scale(1.02)", M.style.opacity = "1.0", M.style.boxShadow = "0 2px 8px rgba(0, 0, 0, 0.15)", M.style.position = "absolute", M.style.top = "-1000px", M.style.width = `${y.currentTarget.clientWidth}px`, M.style.height = `${y.currentTarget.clientHeight}px`, document.body.appendChild(M), y.dataTransfer.setDragImage(M, y.nativeEvent.offsetX, y.nativeEvent.offsetY), setTimeout(() => document.body.removeChild(M), 0), y.dataTransfer.effectAllowed = "move", u({
|
|
2229
|
+
index: $,
|
|
2230
2230
|
group: B
|
|
2231
2231
|
});
|
|
2232
|
-
}, "t2"), e[3] =
|
|
2233
|
-
const
|
|
2234
|
-
let
|
|
2235
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2232
|
+
}, "t2"), e[3] = b) : b = e[3];
|
|
2233
|
+
const A = b, x = xr;
|
|
2234
|
+
let D;
|
|
2235
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ r(() => {
|
|
2236
2236
|
u(null);
|
|
2237
|
-
}, "t3"), e[4] =
|
|
2238
|
-
const w =
|
|
2239
|
-
if (!s || s.index ===
|
|
2237
|
+
}, "t3"), e[4] = D) : D = e[4];
|
|
2238
|
+
const w = D, V = /* @__PURE__ */ r((y, B, $) => {
|
|
2239
|
+
if (!s || s.index === $ || B === "fixed" && S.length >= 3)
|
|
2240
2240
|
return;
|
|
2241
|
-
const
|
|
2242
|
-
q.fixed = B === "fixed", K.splice(
|
|
2243
|
-
}, "handleDrop"),
|
|
2244
|
-
const
|
|
2245
|
-
return
|
|
2246
|
-
}, "renderDraggableItem"),
|
|
2247
|
-
const B = n.find((
|
|
2248
|
-
return B ? /* @__PURE__ */ c("div", { className:
|
|
2241
|
+
const M = B === "fixed" ? $ + 1 : $, K = [..._], [q] = K.splice(s.index, 1);
|
|
2242
|
+
q.fixed = B === "fixed", K.splice(M, 0, q), K.forEach(Pr), f(K), a?.(K);
|
|
2243
|
+
}, "handleDrop"), U = /* @__PURE__ */ r((y, B) => {
|
|
2244
|
+
const $ = n.find((M) => M.name === y.name);
|
|
2245
|
+
return $ ? /* @__PURE__ */ c("div", { className: `${Ve.item} ${s?.index === y.index ? Ve.dragging : ""}`, draggable: !$.primaryKey, onDragStart: /* @__PURE__ */ r((M) => A(M, B, y.index), "onDragStart"), onDragOver: x, onDragEnd: w, onDrop: /* @__PURE__ */ r((M) => V(M, B, y.index), "onDrop"), children: /* @__PURE__ */ c(Wt, { columnDefinition: $, fixed: y.fixed || !1, hidden: y.hidden, onVisibleChange: /* @__PURE__ */ r((M) => P(y.index, M), "onVisibleChange") }) }, $.name) : /* @__PURE__ */ c(Ee, {});
|
|
2246
|
+
}, "renderDraggableItem"), g = /* @__PURE__ */ r((y) => {
|
|
2247
|
+
const B = n.find(($) => $.name === y.name);
|
|
2248
|
+
return B ? /* @__PURE__ */ c("div", { className: Ve.item, children: /* @__PURE__ */ c(Wt, { columnDefinition: B, fixed: y.fixed || !1, hidden: y.hidden, onVisibleChange: /* @__PURE__ */ r(($) => P(y.index, $), "onVisibleChange") }) }, B.name) : /* @__PURE__ */ c(Ee, {});
|
|
2249
2249
|
}, "renderStaticItem");
|
|
2250
|
-
let
|
|
2251
|
-
e[5] !== t.initialColumns ? (
|
|
2250
|
+
let F;
|
|
2251
|
+
e[5] !== t.initialColumns ? (F = /* @__PURE__ */ r(() => ({
|
|
2252
2252
|
reset: /* @__PURE__ */ r(() => {
|
|
2253
2253
|
f(t.initialColumns);
|
|
2254
2254
|
}, "reset")
|
|
2255
|
-
}), "t4"), e[5] = t.initialColumns, e[6] =
|
|
2256
|
-
const
|
|
2255
|
+
}), "t4"), e[5] = t.initialColumns, e[6] = F) : F = e[6], be(l, F);
|
|
2256
|
+
const L = Ce, W = 0, k = "vertical";
|
|
2257
2257
|
let v;
|
|
2258
2258
|
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
|
|
2259
2259
|
display: "flex"
|
|
2260
2260
|
}, e[7] = v) : v = e[7];
|
|
2261
2261
|
let T;
|
|
2262
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ c("div", { className:
|
|
2263
|
-
const E = S.map((y) =>
|
|
2262
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ c("div", { className: Ve.groupTitle, children: "已显示字段" }), e[8] = T) : T = e[8];
|
|
2263
|
+
const E = S.map((y) => U(y, "fixed"));
|
|
2264
2264
|
let N;
|
|
2265
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ c("div", { className:
|
|
2266
|
-
const I = C.map((y) =>
|
|
2267
|
-
let
|
|
2268
|
-
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2269
|
-
const p =
|
|
2270
|
-
let
|
|
2271
|
-
return e[11] !==
|
|
2265
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ c("div", { className: Ve.tips, children: "请将需要锁定的字段拖至上方(最多支持3列)" }), e[9] = N) : N = e[9];
|
|
2266
|
+
const I = C.map((y) => U(y, "visible"));
|
|
2267
|
+
let R;
|
|
2268
|
+
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ c("div", { className: Ve.groupTitle, children: "未显示字段" }), e[10] = R) : R = e[10];
|
|
2269
|
+
const p = O.map((y) => g(y));
|
|
2270
|
+
let H;
|
|
2271
|
+
return e[11] !== L || e[12] !== o || e[13] !== N || e[14] !== I || e[15] !== R || e[16] !== p || e[17] !== v || e[18] !== T || e[19] !== E ? (H = /* @__PURE__ */ J(L, { size: W, orientation: k, style: v, className: o, children: [
|
|
2272
2272
|
T,
|
|
2273
2273
|
E,
|
|
2274
2274
|
N,
|
|
2275
2275
|
I,
|
|
2276
|
-
|
|
2276
|
+
R,
|
|
2277
2277
|
p
|
|
2278
|
-
] }), e[11] =
|
|
2278
|
+
] }), e[11] = L, e[12] = o, e[13] = N, e[14] = I, e[15] = R, e[16] = p, e[17] = v, e[18] = T, e[19] = E, e[20] = H) : H = e[20], H;
|
|
2279
2279
|
}
|
|
2280
2280
|
r(Fr, "TableSettingPanel");
|
|
2281
2281
|
function Pr(t, e) {
|
|
@@ -2286,14 +2286,14 @@ function xr(t) {
|
|
|
2286
2286
|
t.preventDefault(), t.dataTransfer.dropEffect = "move";
|
|
2287
2287
|
}
|
|
2288
2288
|
r(xr, "_temp5");
|
|
2289
|
-
function
|
|
2289
|
+
function Vr(t) {
|
|
2290
2290
|
return t.hidden;
|
|
2291
2291
|
}
|
|
2292
|
-
r(
|
|
2293
|
-
function
|
|
2292
|
+
r(Vr, "_temp4");
|
|
2293
|
+
function $r(t) {
|
|
2294
2294
|
return !t.hidden && !t.fixed;
|
|
2295
2295
|
}
|
|
2296
|
-
r(
|
|
2296
|
+
r($r, "_temp3$1");
|
|
2297
2297
|
function kr(t) {
|
|
2298
2298
|
return t.fixed;
|
|
2299
2299
|
}
|
|
@@ -2355,15 +2355,15 @@ function Br(t) {
|
|
|
2355
2355
|
loading: S,
|
|
2356
2356
|
attributes: C
|
|
2357
2357
|
} = t, {
|
|
2358
|
-
selectedRowKeys:
|
|
2359
|
-
setSelectedRowKeys:
|
|
2360
|
-
reset:
|
|
2361
|
-
clearSelectedRowKeys:
|
|
2358
|
+
selectedRowKeys: O,
|
|
2359
|
+
setSelectedRowKeys: P,
|
|
2360
|
+
reset: b,
|
|
2361
|
+
clearSelectedRowKeys: A
|
|
2362
2362
|
} = Wr();
|
|
2363
|
-
let
|
|
2363
|
+
let x;
|
|
2364
2364
|
if (e[0] !== o || e[1] !== i || e[2] !== n || e[3] !== h || e[4] !== a || e[5] !== t.actionColumn || e[6] !== _) {
|
|
2365
|
-
let
|
|
2366
|
-
if (e[8] !== n || e[9] !== h ? (
|
|
2365
|
+
let k;
|
|
2366
|
+
if (e[8] !== n || e[9] !== h ? (k = /* @__PURE__ */ r((v) => {
|
|
2367
2367
|
const T = n.find((E) => E.name === v.name);
|
|
2368
2368
|
return {
|
|
2369
2369
|
key: v.key,
|
|
@@ -2378,7 +2378,7 @@ function Br(t) {
|
|
|
2378
2378
|
if (T?.render)
|
|
2379
2379
|
return T.render(E, N, I);
|
|
2380
2380
|
if (T?.primaryKey)
|
|
2381
|
-
return /* @__PURE__ */ c(
|
|
2381
|
+
return /* @__PURE__ */ c(Dn, { data: {
|
|
2382
2382
|
value: E,
|
|
2383
2383
|
record: N,
|
|
2384
2384
|
index: I
|
|
@@ -2389,8 +2389,8 @@ function Br(t) {
|
|
|
2389
2389
|
copyable: !0,
|
|
2390
2390
|
...T.attributes
|
|
2391
2391
|
} });
|
|
2392
|
-
const
|
|
2393
|
-
return
|
|
2392
|
+
const R = Or(T?.type || "text", T?.attributes || {});
|
|
2393
|
+
return R ? R(E, N, I) : /* @__PURE__ */ c(bn, { data: {
|
|
2394
2394
|
value: String(E),
|
|
2395
2395
|
record: N,
|
|
2396
2396
|
index: I
|
|
@@ -2398,7 +2398,7 @@ function Br(t) {
|
|
|
2398
2398
|
}, "render"),
|
|
2399
2399
|
...T?.attributes || {}
|
|
2400
2400
|
};
|
|
2401
|
-
}, "t02"), e[8] = n, e[9] = h, e[10] =
|
|
2401
|
+
}, "t02"), e[8] = n, e[9] = h, e[10] = k) : k = e[10], x = i.map(k), o) {
|
|
2402
2402
|
const v = o.dataIndex || n.find(Yr)?.name || "id";
|
|
2403
2403
|
let T;
|
|
2404
2404
|
e[11] !== o.title || e[12] !== i || e[13] !== n || e[14] !== a || e[15] !== _ ? (T = /* @__PURE__ */ r(() => {
|
|
@@ -2406,7 +2406,7 @@ function Br(t) {
|
|
|
2406
2406
|
const N = /* @__PURE__ */ c(Fr, { fields: n, initialColumns: i, onChange: a });
|
|
2407
2407
|
return /* @__PURE__ */ J("div", { className: Ur.configurableColumnHeader, children: [
|
|
2408
2408
|
/* @__PURE__ */ c("span", { children: o.title }),
|
|
2409
|
-
/* @__PURE__ */ c(
|
|
2409
|
+
/* @__PURE__ */ c(kn, { content: N, title: _.title || "Setting", placement: "bottomRight", trigger: "click", children: /* @__PURE__ */ c(on, {}) })
|
|
2410
2410
|
] });
|
|
2411
2411
|
}
|
|
2412
2412
|
return o.title;
|
|
@@ -2418,8 +2418,8 @@ function Br(t) {
|
|
|
2418
2418
|
record: I,
|
|
2419
2419
|
index: i.length + 1
|
|
2420
2420
|
};
|
|
2421
|
-
return /* @__PURE__ */ c(
|
|
2422
|
-
}, "t22"), e[17] = i.length, e[18] = t.actionColumn, e[19] = E) : E = e[19],
|
|
2421
|
+
return /* @__PURE__ */ c(Ln, { data: p });
|
|
2422
|
+
}, "t22"), e[17] = i.length, e[18] = t.actionColumn, e[19] = E) : E = e[19], x.push({
|
|
2423
2423
|
key: "action",
|
|
2424
2424
|
title: T,
|
|
2425
2425
|
dataIndex: v,
|
|
@@ -2428,36 +2428,36 @@ function Br(t) {
|
|
|
2428
2428
|
render: E
|
|
2429
2429
|
});
|
|
2430
2430
|
}
|
|
2431
|
-
e[0] = o, e[1] = i, e[2] = n, e[3] = h, e[4] = a, e[5] = t.actionColumn, e[6] = _, e[7] =
|
|
2431
|
+
e[0] = o, e[1] = i, e[2] = n, e[3] = h, e[4] = a, e[5] = t.actionColumn, e[6] = _, e[7] = x;
|
|
2432
2432
|
} else
|
|
2433
|
-
|
|
2434
|
-
let
|
|
2435
|
-
e[20] !== d || e[21] !== m || e[22] !==
|
|
2436
|
-
selectedRowKeys:
|
|
2433
|
+
x = e[7];
|
|
2434
|
+
let D;
|
|
2435
|
+
e[20] !== d || e[21] !== m || e[22] !== O || e[23] !== P ? (D = d ? {
|
|
2436
|
+
selectedRowKeys: O,
|
|
2437
2437
|
fixed: !0,
|
|
2438
|
-
onChange: /* @__PURE__ */ r((
|
|
2439
|
-
|
|
2438
|
+
onChange: /* @__PURE__ */ r((k, v) => {
|
|
2439
|
+
P(k), m?.(v);
|
|
2440
2440
|
}, "onChange")
|
|
2441
|
-
} : void 0, e[20] = d, e[21] = m, e[22] =
|
|
2442
|
-
const w =
|
|
2443
|
-
let
|
|
2444
|
-
e[25] !==
|
|
2445
|
-
clearSelectedRowKeys:
|
|
2446
|
-
reset:
|
|
2447
|
-
}), "t1"), e[25] =
|
|
2448
|
-
let
|
|
2449
|
-
e[28] !== u ? (
|
|
2450
|
-
let
|
|
2451
|
-
e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2441
|
+
} : void 0, e[20] = d, e[21] = m, e[22] = O, e[23] = P, e[24] = D) : D = e[24];
|
|
2442
|
+
const w = D;
|
|
2443
|
+
let V;
|
|
2444
|
+
e[25] !== A || e[26] !== b ? (V = /* @__PURE__ */ r(() => ({
|
|
2445
|
+
clearSelectedRowKeys: A,
|
|
2446
|
+
reset: b
|
|
2447
|
+
}), "t1"), e[25] = A, e[26] = b, e[27] = V) : V = e[27], be(l, V);
|
|
2448
|
+
let U;
|
|
2449
|
+
e[28] !== u ? (U = Hr(u), e[28] = u, e[29] = U) : U = e[29];
|
|
2450
|
+
let g;
|
|
2451
|
+
e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
|
|
2452
2452
|
x: "max-content"
|
|
2453
|
-
}, e[30] =
|
|
2454
|
-
const
|
|
2455
|
-
let
|
|
2456
|
-
e[31] !== f ? (
|
|
2453
|
+
}, e[30] = g) : g = e[30];
|
|
2454
|
+
const F = s || "middle";
|
|
2455
|
+
let L;
|
|
2456
|
+
e[31] !== f ? (L = /* @__PURE__ */ r((k, v, T, E) => {
|
|
2457
2457
|
E.action === "sort" && f && (Array.isArray(T) ? f(T) : f([T]));
|
|
2458
|
-
}, "t5"), e[31] = f, e[32] =
|
|
2458
|
+
}, "t5"), e[31] = f, e[32] = L) : L = e[32];
|
|
2459
2459
|
let W;
|
|
2460
|
-
return e[33] !== C || e[34] !== S || e[35] !== w || e[36] !==
|
|
2460
|
+
return e[33] !== C || e[34] !== S || e[35] !== w || e[36] !== U || e[37] !== F || e[38] !== L || e[39] !== x ? (W = /* @__PURE__ */ c($n, { loading: S, dataSource: U, rowSelection: w, columns: x, ...C, scroll: g, size: F, onChange: L }), e[33] = C, e[34] = S, e[35] = w, e[36] = U, e[37] = F, e[38] = L, e[39] = x, e[40] = W) : W = e[40], W;
|
|
2461
2461
|
}
|
|
2462
2462
|
r(Br, "ViewTable");
|
|
2463
2463
|
function Yr(t) {
|
|
@@ -2494,70 +2494,77 @@ const Kr = [{
|
|
|
2494
2494
|
label: "从不",
|
|
2495
2495
|
key: "0",
|
|
2496
2496
|
refreshInterval: 0
|
|
2497
|
-
}
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2497
|
+
}, Gr = new dn({
|
|
2498
|
+
key: "view:refresh",
|
|
2499
|
+
defaultValue: void 0
|
|
2500
|
+
});
|
|
2501
|
+
function jr(t) {
|
|
2502
|
+
const e = G(29), {
|
|
2503
|
+
items: l,
|
|
2504
|
+
viewId: n
|
|
2505
|
+
} = t, i = l === void 0 ? Kr : l, [a, o] = tn(Gr);
|
|
2506
|
+
let s;
|
|
2507
|
+
e[0] !== i ? (s = [...i, Kt], e[0] = i, e[1] = s) : s = e[1];
|
|
2508
|
+
const u = s, d = a?.[n] ?? Kt, f = Oe(null), {
|
|
2509
|
+
publish: m
|
|
2506
2510
|
} = wt(), {
|
|
2507
|
-
locale:
|
|
2511
|
+
locale: h
|
|
2508
2512
|
} = we();
|
|
2509
|
-
let m;
|
|
2510
|
-
e[2] !== a ? (m = /* @__PURE__ */ r((H) => {
|
|
2511
|
-
const x = a.find((A) => A.key === H.key);
|
|
2512
|
-
x && s(x);
|
|
2513
|
-
}, "t3"), e[2] = a, e[3] = m) : m = e[3];
|
|
2514
|
-
const h = m;
|
|
2515
2513
|
let _;
|
|
2516
|
-
e[4] !==
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
e[
|
|
2514
|
+
e[2] !== u || e[3] !== a || e[4] !== o || e[5] !== n ? (_ = /* @__PURE__ */ r((L) => {
|
|
2515
|
+
const W = u.find((k) => k.key === L.key);
|
|
2516
|
+
W && o({
|
|
2517
|
+
...a,
|
|
2518
|
+
[n]: W
|
|
2519
|
+
});
|
|
2520
|
+
}, "t3"), e[2] = u, e[3] = a, e[4] = o, e[5] = n, e[6] = _) : _ = e[6];
|
|
2521
|
+
const S = _;
|
|
2523
2522
|
let C;
|
|
2524
|
-
e[
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2523
|
+
e[7] !== m || e[8] !== d.refreshInterval ? (C = /* @__PURE__ */ r(() => (f.current && (clearInterval(f.current), f.current = null), d.refreshInterval > 0 && (f.current = setInterval(async () => {
|
|
2524
|
+
await m();
|
|
2525
|
+
}, d.refreshInterval)), () => {
|
|
2526
|
+
f.current && clearInterval(f.current);
|
|
2527
|
+
}), "t4"), e[7] = m, e[8] = d.refreshInterval, e[9] = C) : C = e[9];
|
|
2528
|
+
let O;
|
|
2529
|
+
e[10] !== m || e[11] !== d ? (O = [d, m], e[10] = m, e[11] = d, e[12] = O) : O = e[12], Ae(C, O);
|
|
2530
|
+
let P;
|
|
2531
|
+
e[13] !== u ? (P = u.map(qr), e[13] = u, e[14] = P) : P = e[14];
|
|
2532
|
+
const b = P;
|
|
2533
|
+
let A;
|
|
2534
|
+
e[15] !== d.key ? (A = [d.key], e[15] = d.key, e[16] = A) : A = e[16];
|
|
2535
|
+
let x;
|
|
2536
|
+
e[17] !== S || e[18] !== b || e[19] !== A ? (x = {
|
|
2530
2537
|
items: b,
|
|
2531
|
-
onClick:
|
|
2538
|
+
onClick: S,
|
|
2532
2539
|
selectable: !0,
|
|
2533
|
-
defaultSelectedKeys:
|
|
2534
|
-
}, e[
|
|
2535
|
-
const
|
|
2536
|
-
let
|
|
2537
|
-
e[
|
|
2538
|
-
let
|
|
2539
|
-
e[
|
|
2540
|
-
const
|
|
2541
|
-
let
|
|
2542
|
-
e[
|
|
2543
|
-
|
|
2540
|
+
defaultSelectedKeys: A
|
|
2541
|
+
}, e[17] = S, e[18] = b, e[19] = A, e[20] = x) : x = e[20];
|
|
2542
|
+
const D = x;
|
|
2543
|
+
let w;
|
|
2544
|
+
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = ["click"], e[21] = w) : w = e[21];
|
|
2545
|
+
let V;
|
|
2546
|
+
e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ c(We, {}), e[22] = V) : V = e[22];
|
|
2547
|
+
const U = h.topBar?.autoRefresh?.title || "刷新率";
|
|
2548
|
+
let g;
|
|
2549
|
+
e[23] !== d.label || e[24] !== U ? (g = /* @__PURE__ */ J(_e, { icon: V, iconPlacement: "end", children: [
|
|
2550
|
+
U,
|
|
2544
2551
|
" :",
|
|
2545
|
-
|
|
2546
|
-
] }), e[
|
|
2547
|
-
let
|
|
2548
|
-
return e[
|
|
2552
|
+
d.label
|
|
2553
|
+
] }), e[23] = d.label, e[24] = U, e[25] = g) : g = e[25];
|
|
2554
|
+
let F;
|
|
2555
|
+
return e[26] !== D || e[27] !== g ? (F = /* @__PURE__ */ c($e, { menu: D, trigger: w, children: g }), e[26] = D, e[27] = g, e[28] = F) : F = e[28], F;
|
|
2549
2556
|
}
|
|
2550
|
-
r(
|
|
2551
|
-
function
|
|
2557
|
+
r(jr, "AutoRefreshBarItem");
|
|
2558
|
+
function qr(t) {
|
|
2552
2559
|
return {
|
|
2553
2560
|
key: t.key,
|
|
2554
2561
|
label: t.label
|
|
2555
2562
|
};
|
|
2556
2563
|
}
|
|
2557
|
-
r(
|
|
2558
|
-
const
|
|
2559
|
-
item:
|
|
2560
|
-
active:
|
|
2564
|
+
r(qr, "_temp$3");
|
|
2565
|
+
const Qr = "_item_1c27u_1", Xr = "_active_1c27u_16", Gt = {
|
|
2566
|
+
item: Qr,
|
|
2567
|
+
active: Xr
|
|
2561
2568
|
};
|
|
2562
2569
|
function Pe(t) {
|
|
2563
2570
|
const e = G(3), {
|
|
@@ -2568,7 +2575,7 @@ function Pe(t) {
|
|
|
2568
2575
|
return e[0] !== l || e[1] !== i ? (a = /* @__PURE__ */ c("div", { className: i, children: l }), e[0] = l, e[1] = i, e[2] = a) : a = e[2], a;
|
|
2569
2576
|
}
|
|
2570
2577
|
r(Pe, "BarItem");
|
|
2571
|
-
function
|
|
2578
|
+
function Zr(t) {
|
|
2572
2579
|
const e = G(23), {
|
|
2573
2580
|
className: l,
|
|
2574
2581
|
defaultTableSize: n,
|
|
@@ -2595,36 +2602,36 @@ function Xr(t) {
|
|
|
2595
2602
|
let S;
|
|
2596
2603
|
e[7] !== m || e[8] !== _ ? (S = [m, _], e[7] = m, e[8] = _, e[9] = S) : S = e[9];
|
|
2597
2604
|
const C = S;
|
|
2598
|
-
let b;
|
|
2599
|
-
e[10] !== i ? (b = /* @__PURE__ */ r((M) => {
|
|
2600
|
-
const {
|
|
2601
|
-
key: H
|
|
2602
|
-
} = M;
|
|
2603
|
-
o(H), i?.(H);
|
|
2604
|
-
}, "t7"), e[10] = i, e[11] = b) : b = e[11];
|
|
2605
|
-
const F = b, L = a || "middle";
|
|
2606
2605
|
let O;
|
|
2607
|
-
e[
|
|
2608
|
-
|
|
2609
|
-
|
|
2606
|
+
e[10] !== i ? (O = /* @__PURE__ */ r((U) => {
|
|
2607
|
+
const {
|
|
2608
|
+
key: g
|
|
2609
|
+
} = U;
|
|
2610
|
+
o(g), i?.(g);
|
|
2611
|
+
}, "t7"), e[10] = i, e[11] = O) : O = e[11];
|
|
2612
|
+
const P = O, b = a || "middle";
|
|
2613
|
+
let A;
|
|
2614
|
+
e[12] !== b ? (A = [b], e[12] = b, e[13] = A) : A = e[13];
|
|
2615
|
+
let x;
|
|
2616
|
+
e[14] !== P || e[15] !== C || e[16] !== A ? (x = {
|
|
2610
2617
|
items: C,
|
|
2611
2618
|
selectable: !0,
|
|
2612
|
-
defaultSelectedKeys:
|
|
2613
|
-
onSelect:
|
|
2614
|
-
}, e[14] =
|
|
2615
|
-
let
|
|
2616
|
-
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2619
|
+
defaultSelectedKeys: A,
|
|
2620
|
+
onSelect: P
|
|
2621
|
+
}, e[14] = P, e[15] = C, e[16] = A, e[17] = x) : x = e[17];
|
|
2622
|
+
let D;
|
|
2623
|
+
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = ["click"], e[18] = D) : D = e[18];
|
|
2617
2624
|
let w;
|
|
2618
|
-
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ c("div", { onClick:
|
|
2619
|
-
let
|
|
2620
|
-
return e[20] !== l || e[21] !==
|
|
2625
|
+
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ c("div", { onClick: Jr, children: /* @__PURE__ */ c(Pe, { icon: /* @__PURE__ */ c(Jn, {}), active: !1 }) }), e[19] = w) : w = e[19];
|
|
2626
|
+
let V;
|
|
2627
|
+
return e[20] !== l || e[21] !== x ? (V = /* @__PURE__ */ c(Xe, { placement: "top", title: "行高", children: /* @__PURE__ */ c($e, { className: l, menu: x, trigger: D, placement: "bottom", children: w }) }), e[20] = l, e[21] = x, e[22] = V) : V = e[22], V;
|
|
2621
2628
|
}
|
|
2622
|
-
r(
|
|
2623
|
-
function
|
|
2629
|
+
r(Zr, "ColumnHeightBarItem");
|
|
2630
|
+
function Jr(t) {
|
|
2624
2631
|
return t.preventDefault();
|
|
2625
2632
|
}
|
|
2626
|
-
r(
|
|
2627
|
-
function
|
|
2633
|
+
r(Jr, "_temp$2");
|
|
2634
|
+
function ea(t) {
|
|
2628
2635
|
const e = G(14), {
|
|
2629
2636
|
style: l,
|
|
2630
2637
|
className: n,
|
|
@@ -2641,20 +2648,20 @@ function Jr(t) {
|
|
|
2641
2648
|
}, "t2"), e[3] = o, e[4] = a, e[5] = f) : f = e[5];
|
|
2642
2649
|
const m = f;
|
|
2643
2650
|
let h;
|
|
2644
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ c(
|
|
2651
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ c(el, {}), e[6] = h) : h = e[6];
|
|
2645
2652
|
const _ = o || !1;
|
|
2646
2653
|
let S;
|
|
2647
2654
|
e[7] !== _ ? (S = /* @__PURE__ */ c(Pe, { icon: h, active: _ }), e[7] = _, e[8] = S) : S = e[8];
|
|
2648
2655
|
let C;
|
|
2649
2656
|
return e[9] !== n || e[10] !== m || e[11] !== l || e[12] !== S ? (C = /* @__PURE__ */ c(Xe, { placement: "top", title: "过滤器", children: /* @__PURE__ */ c("div", { className: n, style: l, onClick: m, children: S }) }), e[9] = n, e[10] = m, e[11] = l, e[12] = S, e[13] = C) : C = e[13], C;
|
|
2650
2657
|
}
|
|
2651
|
-
r(
|
|
2652
|
-
function
|
|
2658
|
+
r(ea, "FilterBarItem");
|
|
2659
|
+
function ta(t) {
|
|
2653
2660
|
const e = G(13), {
|
|
2654
2661
|
target: l,
|
|
2655
2662
|
style: n,
|
|
2656
2663
|
className: i
|
|
2657
|
-
} = t, a =
|
|
2664
|
+
} = t, a = qn();
|
|
2658
2665
|
if (!a)
|
|
2659
2666
|
return null;
|
|
2660
2667
|
const {
|
|
@@ -2664,14 +2671,14 @@ function ea(t) {
|
|
|
2664
2671
|
let u;
|
|
2665
2672
|
e[0] !== l?.current || e[1] !== s ? (u = /* @__PURE__ */ r(() => s(l?.current), "t0"), e[0] = l?.current, e[1] = s, e[2] = u) : u = e[2];
|
|
2666
2673
|
let d;
|
|
2667
|
-
e[3] !== o ? (d = o ? /* @__PURE__ */ c(
|
|
2674
|
+
e[3] !== o ? (d = o ? /* @__PURE__ */ c(ln, {}) : /* @__PURE__ */ c(nn, {}), e[3] = o, e[4] = d) : d = e[4];
|
|
2668
2675
|
let f;
|
|
2669
2676
|
e[5] !== o || e[6] !== d ? (f = /* @__PURE__ */ c(Pe, { icon: d, active: o }), e[5] = o, e[6] = d, e[7] = f) : f = e[7];
|
|
2670
2677
|
let m;
|
|
2671
2678
|
return e[8] !== i || e[9] !== n || e[10] !== u || e[11] !== f ? (m = /* @__PURE__ */ c(Xe, { placement: "top", title: "全屏", children: /* @__PURE__ */ c("div", { className: i, style: n, onClick: u, children: f }) }), e[8] = i, e[9] = n, e[10] = u, e[11] = f, e[12] = m) : m = e[12], m;
|
|
2672
2679
|
}
|
|
2673
|
-
r(
|
|
2674
|
-
function
|
|
2680
|
+
r(ta, "FullscreenBarItem");
|
|
2681
|
+
function na() {
|
|
2675
2682
|
const t = G(1);
|
|
2676
2683
|
let e;
|
|
2677
2684
|
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ c("div", { style: {
|
|
@@ -2681,8 +2688,8 @@ function ta() {
|
|
|
2681
2688
|
borderRadius: "50%"
|
|
2682
2689
|
} }), t[0] = e) : e = t[0], e;
|
|
2683
2690
|
}
|
|
2684
|
-
r(
|
|
2685
|
-
function
|
|
2691
|
+
r(na, "Point");
|
|
2692
|
+
function la(t) {
|
|
2686
2693
|
const e = G(7), {
|
|
2687
2694
|
style: l,
|
|
2688
2695
|
className: n
|
|
@@ -2695,16 +2702,16 @@ function na(t) {
|
|
|
2695
2702
|
}, "t0"), e[0] = i, e[1] = a) : a = e[1];
|
|
2696
2703
|
const o = a;
|
|
2697
2704
|
let s;
|
|
2698
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ c(Pe, { icon: /* @__PURE__ */ c(
|
|
2705
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ c(Pe, { icon: /* @__PURE__ */ c(tl, {}), active: !1 }), e[2] = s) : s = e[2];
|
|
2699
2706
|
let u;
|
|
2700
2707
|
return e[3] !== n || e[4] !== o || e[5] !== l ? (u = /* @__PURE__ */ c(Xe, { placement: "top", title: "刷新", children: /* @__PURE__ */ c("div", { className: n, style: l, onClick: o, children: s }) }), e[3] = n, e[4] = o, e[5] = l, e[6] = u) : u = e[6], u;
|
|
2701
2708
|
}
|
|
2702
|
-
r(
|
|
2703
|
-
function
|
|
2709
|
+
r(la, "RefreshDataBarItem");
|
|
2710
|
+
function ia(t) {
|
|
2704
2711
|
const e = G(10), {
|
|
2705
2712
|
className: l,
|
|
2706
2713
|
style: n
|
|
2707
|
-
} = t, [i, a] =
|
|
2714
|
+
} = t, [i, a] = Mn.useMessage();
|
|
2708
2715
|
let o;
|
|
2709
2716
|
e[0] !== i ? (o = /* @__PURE__ */ r(async () => {
|
|
2710
2717
|
const m = window.location.href;
|
|
@@ -2716,7 +2723,7 @@ function la(t) {
|
|
|
2716
2723
|
}, "t0"), e[0] = i, e[1] = o) : o = e[1];
|
|
2717
2724
|
const s = o;
|
|
2718
2725
|
let u;
|
|
2719
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ c(Pe, { icon: /* @__PURE__ */ c(
|
|
2726
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ c(Pe, { icon: /* @__PURE__ */ c(nl, {}), active: !1 }), e[2] = u) : u = e[2];
|
|
2720
2727
|
let d;
|
|
2721
2728
|
e[3] !== l || e[4] !== s || e[5] !== n ? (d = /* @__PURE__ */ c(Xe, { placement: "top", title: "分享视图", children: /* @__PURE__ */ c("div", { className: l, style: n, onClick: s, children: u }) }), e[3] = l, e[4] = s, e[5] = n, e[6] = d) : d = e[6];
|
|
2722
2729
|
let f;
|
|
@@ -2725,10 +2732,10 @@ function la(t) {
|
|
|
2725
2732
|
d
|
|
2726
2733
|
] }), e[7] = a, e[8] = d, e[9] = f) : f = e[9], f;
|
|
2727
2734
|
}
|
|
2728
|
-
r(
|
|
2729
|
-
const
|
|
2730
|
-
leftItems:
|
|
2731
|
-
rightItems:
|
|
2735
|
+
r(ia, "ShareLinkBarItem");
|
|
2736
|
+
const ra = "_leftItems_1hvhw_1", aa = "_rightItems_1hvhw_6", jt = {
|
|
2737
|
+
leftItems: ra,
|
|
2738
|
+
rightItems: aa
|
|
2732
2739
|
};
|
|
2733
2740
|
function qt(t, e, l) {
|
|
2734
2741
|
return t.render ? {
|
|
@@ -2740,15 +2747,15 @@ function qt(t, e, l) {
|
|
|
2740
2747
|
};
|
|
2741
2748
|
}
|
|
2742
2749
|
r(qt, "renderMenuItem");
|
|
2743
|
-
const
|
|
2750
|
+
const oa = [{
|
|
2744
2751
|
label: "覆盖当前视图",
|
|
2745
2752
|
key: "Update"
|
|
2746
2753
|
}, {
|
|
2747
2754
|
label: "另存为新视图",
|
|
2748
2755
|
key: "SaveAs"
|
|
2749
2756
|
}];
|
|
2750
|
-
function
|
|
2751
|
-
const e = G(
|
|
2757
|
+
function sa(t) {
|
|
2758
|
+
const e = G(84), {
|
|
2752
2759
|
title: l,
|
|
2753
2760
|
activeView: n,
|
|
2754
2761
|
primaryAction: i,
|
|
@@ -2763,181 +2770,183 @@ function oa(t) {
|
|
|
2763
2770
|
onShowFilterChange: _,
|
|
2764
2771
|
defaultTableSize: S,
|
|
2765
2772
|
onTableSizeChange: C,
|
|
2766
|
-
onCreateView:
|
|
2767
|
-
onUpdateView:
|
|
2768
|
-
fullscreenTarget:
|
|
2769
|
-
} = t, [
|
|
2770
|
-
let
|
|
2771
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2772
|
-
let
|
|
2773
|
+
onCreateView: O,
|
|
2774
|
+
onUpdateView: P,
|
|
2775
|
+
fullscreenTarget: b
|
|
2776
|
+
} = t, [A, x] = ee("Create"), [D, w] = ee(!1), [V] = ee("PERSONAL");
|
|
2777
|
+
let U;
|
|
2778
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = [], e[0] = U) : U = e[0];
|
|
2779
|
+
let g = U;
|
|
2773
2780
|
if (o?.enabled) {
|
|
2774
|
-
let
|
|
2781
|
+
let se;
|
|
2775
2782
|
if (e[1] !== o.actions || e[2] !== s) {
|
|
2776
2783
|
let ce;
|
|
2777
|
-
e[4] !== s ? (ce = /* @__PURE__ */ r((ie, Te) => qt(ie, Te, s), "t26"), e[4] = s, e[5] = ce) : ce = e[5],
|
|
2784
|
+
e[4] !== s ? (ce = /* @__PURE__ */ r((ie, Te) => qt(ie, Te, s), "t26"), e[4] = s, e[5] = ce) : ce = e[5], se = o.actions.map(ce), e[1] = o.actions, e[2] = s, e[3] = se;
|
|
2778
2785
|
} else
|
|
2779
|
-
|
|
2780
|
-
|
|
2786
|
+
se = e[3];
|
|
2787
|
+
g = se;
|
|
2781
2788
|
}
|
|
2782
|
-
let
|
|
2783
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2784
|
-
let
|
|
2789
|
+
let F;
|
|
2790
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = [], e[6] = F) : F = e[6];
|
|
2791
|
+
let L = F;
|
|
2785
2792
|
if (a?.length) {
|
|
2786
|
-
let
|
|
2793
|
+
let se;
|
|
2787
2794
|
if (e[7] !== a || e[8] !== s) {
|
|
2788
2795
|
let ce;
|
|
2789
|
-
e[10] !== s ? (ce = /* @__PURE__ */ r((ie, Te) => qt(ie, Te, s), "t32"), e[10] = s, e[11] = ce) : ce = e[11],
|
|
2796
|
+
e[10] !== s ? (ce = /* @__PURE__ */ r((ie, Te) => qt(ie, Te, s), "t32"), e[10] = s, e[11] = ce) : ce = e[11], se = a.map(ce), e[7] = a, e[8] = s, e[9] = se;
|
|
2790
2797
|
} else
|
|
2791
|
-
|
|
2792
|
-
|
|
2798
|
+
se = e[9];
|
|
2799
|
+
L = se;
|
|
2793
2800
|
}
|
|
2794
|
-
const [W,
|
|
2801
|
+
const [W, k] = ut.useModal();
|
|
2795
2802
|
let v;
|
|
2796
|
-
e[12] !== n || e[13] !== W || e[14] !==
|
|
2797
|
-
e: switch (
|
|
2803
|
+
e[12] !== n || e[13] !== W || e[14] !== P ? (v = /* @__PURE__ */ r((se) => {
|
|
2804
|
+
e: switch (se) {
|
|
2798
2805
|
case "Update": {
|
|
2799
2806
|
W.confirm({
|
|
2800
2807
|
title: "确认覆盖当前视图?",
|
|
2801
|
-
icon: /* @__PURE__ */ c(
|
|
2808
|
+
icon: /* @__PURE__ */ c(ll, {}),
|
|
2802
2809
|
content: "确认后将覆盖原筛选条件",
|
|
2803
2810
|
okText: "确认",
|
|
2804
2811
|
cancelText: "取消",
|
|
2805
2812
|
onOk: /* @__PURE__ */ r(() => {
|
|
2806
|
-
|
|
2813
|
+
P?.(n);
|
|
2807
2814
|
}, "onOk")
|
|
2808
2815
|
});
|
|
2809
2816
|
break e;
|
|
2810
2817
|
}
|
|
2811
2818
|
case "SaveAs":
|
|
2812
|
-
w(!0),
|
|
2819
|
+
w(!0), x("SaveAs");
|
|
2813
2820
|
}
|
|
2814
|
-
}, "t2"), e[12] = n, e[13] = W, e[14] =
|
|
2821
|
+
}, "t2"), e[12] = n, e[13] = W, e[14] = P, e[15] = v) : v = e[15];
|
|
2815
2822
|
const T = v;
|
|
2816
2823
|
let E;
|
|
2817
|
-
e[16] !== n || e[17] !==
|
|
2818
|
-
|
|
2824
|
+
e[16] !== n || e[17] !== O ? (E = /* @__PURE__ */ r((se, ce) => {
|
|
2825
|
+
O?.({
|
|
2819
2826
|
...n,
|
|
2820
|
-
name:
|
|
2827
|
+
name: se,
|
|
2821
2828
|
type: ce,
|
|
2822
2829
|
source: "CUSTOM",
|
|
2823
2830
|
isDefault: !1
|
|
2824
2831
|
}, () => {
|
|
2825
2832
|
w(!1);
|
|
2826
2833
|
});
|
|
2827
|
-
}, "t3"), e[16] = n, e[17] =
|
|
2834
|
+
}, "t3"), e[16] = n, e[17] = O, e[18] = E) : E = e[18];
|
|
2828
2835
|
const N = E;
|
|
2829
2836
|
let I;
|
|
2830
2837
|
e[19] !== T ? (I = {
|
|
2831
|
-
items:
|
|
2838
|
+
items: oa,
|
|
2832
2839
|
onClick: /* @__PURE__ */ r((ce) => {
|
|
2833
2840
|
T(ce.key);
|
|
2834
2841
|
}, "handleMenuClick")
|
|
2835
2842
|
}, e[19] = T, e[20] = I) : I = e[20];
|
|
2836
|
-
const
|
|
2843
|
+
const R = I;
|
|
2837
2844
|
let p;
|
|
2838
2845
|
e[21] !== m ? (p = /* @__PURE__ */ r(() => {
|
|
2839
2846
|
m?.();
|
|
2840
2847
|
}, "t5"), e[21] = m, e[22] = p) : p = e[22];
|
|
2841
|
-
const
|
|
2848
|
+
const H = p;
|
|
2842
2849
|
let y;
|
|
2843
2850
|
e[23] !== d ? (y = /* @__PURE__ */ r(() => {
|
|
2844
2851
|
d?.(!0);
|
|
2845
2852
|
}, "t6"), e[23] = d, e[24] = y) : y = e[24];
|
|
2846
2853
|
const B = y;
|
|
2847
|
-
let
|
|
2848
|
-
e[25] !== B || e[26] !== u || e[27] !== l ? (
|
|
2849
|
-
/* @__PURE__ */ c("div", { onClick: B, children: /* @__PURE__ */ c(Pe, { icon: /* @__PURE__ */ c(
|
|
2854
|
+
let $;
|
|
2855
|
+
e[25] !== B || e[26] !== u || e[27] !== l ? ($ = !u && /* @__PURE__ */ J(Ee, { children: [
|
|
2856
|
+
/* @__PURE__ */ c("div", { onClick: B, children: /* @__PURE__ */ c(Pe, { icon: /* @__PURE__ */ c(il, {}), active: !1 }) }),
|
|
2850
2857
|
/* @__PURE__ */ c(Be, { orientation: "vertical" }),
|
|
2851
2858
|
/* @__PURE__ */ c("span", { style: {
|
|
2852
2859
|
fontSize: "16px"
|
|
2853
2860
|
}, children: l }),
|
|
2854
|
-
/* @__PURE__ */ c(
|
|
2855
|
-
] }), e[25] = B, e[26] = u, e[27] = l, e[28] =
|
|
2856
|
-
let
|
|
2857
|
-
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2861
|
+
/* @__PURE__ */ c(na, {})
|
|
2862
|
+
] }), e[25] = B, e[26] = u, e[27] = l, e[28] = $) : $ = e[28];
|
|
2863
|
+
let M;
|
|
2864
|
+
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
|
|
2858
2865
|
fontSize: "16px"
|
|
2859
|
-
}, e[29] =
|
|
2866
|
+
}, e[29] = M) : M = e[29];
|
|
2860
2867
|
let K;
|
|
2861
|
-
e[30] !== n.name ? (K = /* @__PURE__ */ c("span", { style:
|
|
2868
|
+
e[30] !== n.name ? (K = /* @__PURE__ */ c("span", { style: M, children: n.name }), e[30] = n.name, e[31] = K) : K = e[31];
|
|
2862
2869
|
let q;
|
|
2863
|
-
e[32] !== n.source || e[33] !==
|
|
2870
|
+
e[32] !== n.source || e[33] !== H || e[34] !== R || e[35] !== T || e[36] !== f ? (q = f && /* @__PURE__ */ J(Ee, { children: [
|
|
2864
2871
|
/* @__PURE__ */ c("div", { style: {
|
|
2865
2872
|
color: "rgba(0,0,0,0.45)"
|
|
2866
2873
|
}, children: "(已编辑)" }),
|
|
2867
|
-
n.source === "SYSTEM" ? /* @__PURE__ */ c(_e, { type: "default", size: "small", onClick: /* @__PURE__ */ r(() => T("SaveAs"), "onClick"), children: "另存为" }) : /* @__PURE__ */ c(
|
|
2868
|
-
/* @__PURE__ */ c(_e, { type: "default", size: "small", onClick:
|
|
2869
|
-
] }), e[32] = n.source, e[33] =
|
|
2874
|
+
n.source === "SYSTEM" ? /* @__PURE__ */ c(_e, { type: "default", size: "small", onClick: /* @__PURE__ */ r(() => T("SaveAs"), "onClick"), children: "另存为" }) : /* @__PURE__ */ c($e, { menu: R, trigger: ["click"], children: /* @__PURE__ */ c(_e, { size: "small", icon: /* @__PURE__ */ c(We, {}), iconPlacement: "end", children: "保存" }) }),
|
|
2875
|
+
/* @__PURE__ */ c(_e, { type: "default", size: "small", onClick: H, children: "重置" })
|
|
2876
|
+
] }), e[32] = n.source, e[33] = H, e[34] = R, e[35] = T, e[36] = f, e[37] = q) : q = e[37];
|
|
2870
2877
|
let te;
|
|
2871
|
-
e[38] !== q || e[39] !==
|
|
2872
|
-
|
|
2878
|
+
e[38] !== q || e[39] !== $ || e[40] !== K ? (te = /* @__PURE__ */ J(pe, { gap: "8px", align: "center", className: jt.leftItems, children: [
|
|
2879
|
+
$,
|
|
2873
2880
|
K,
|
|
2874
2881
|
q
|
|
2875
|
-
] }), e[38] = q, e[39] =
|
|
2882
|
+
] }), e[38] = q, e[39] = $, e[40] = K, e[41] = te) : te = e[41];
|
|
2876
2883
|
let X;
|
|
2877
|
-
e[42] !== _ || e[43] !== h ? (X = /* @__PURE__ */ c(
|
|
2884
|
+
e[42] !== _ || e[43] !== h ? (X = /* @__PURE__ */ c(ea, { defaultShowFilter: h, onChange: _ }), e[42] = _, e[43] = h, e[44] = X) : X = e[44];
|
|
2878
2885
|
let j;
|
|
2879
|
-
e[45] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ c(
|
|
2886
|
+
e[45] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ c(la, {}), e[45] = j) : j = e[45];
|
|
2880
2887
|
let Z;
|
|
2881
|
-
e[46] !== S || e[47] !== C ? (Z = /* @__PURE__ */ c(
|
|
2888
|
+
e[46] !== S || e[47] !== C ? (Z = /* @__PURE__ */ c(Zr, { defaultTableSize: S, onChange: C }), e[46] = S, e[47] = C, e[48] = Z) : Z = e[48];
|
|
2882
2889
|
let Y;
|
|
2883
|
-
e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ c(
|
|
2890
|
+
e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ c(ia, {}), e[49] = Y) : Y = e[49];
|
|
2884
2891
|
let Q;
|
|
2885
|
-
e[50] !==
|
|
2886
|
-
let fe
|
|
2887
|
-
e[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fe = /* @__PURE__ */ c(Be, { orientation: "vertical" }),
|
|
2888
|
-
let
|
|
2889
|
-
e[
|
|
2892
|
+
e[50] !== b ? (Q = /* @__PURE__ */ c(ta, { target: b }), e[50] = b, e[51] = Q) : Q = e[51];
|
|
2893
|
+
let fe;
|
|
2894
|
+
e[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fe = /* @__PURE__ */ c(Be, { orientation: "vertical" }), e[52] = fe) : fe = e[52];
|
|
2895
|
+
let re;
|
|
2896
|
+
e[53] !== n.id ? (re = /* @__PURE__ */ c(jr, { viewId: n.id }), e[53] = n.id, e[54] = re) : re = e[54];
|
|
2897
|
+
let oe;
|
|
2898
|
+
e[55] !== o?.enabled || e[56] !== o?.title || e[57] !== g ? (oe = o?.enabled && /* @__PURE__ */ J(Ee, { children: [
|
|
2890
2899
|
/* @__PURE__ */ c(Be, { orientation: "vertical" }),
|
|
2891
|
-
/* @__PURE__ */ c(
|
|
2892
|
-
items:
|
|
2900
|
+
/* @__PURE__ */ c($e, { menu: {
|
|
2901
|
+
items: g
|
|
2893
2902
|
}, trigger: ["click"], children: /* @__PURE__ */ c(_e, { icon: /* @__PURE__ */ c(We, {}), iconPlacement: "end", children: o?.title && "批量操作" }) })
|
|
2894
|
-
] }), e[
|
|
2903
|
+
] }), e[55] = o?.enabled, e[56] = o?.title, e[57] = g, e[58] = oe) : oe = e[58];
|
|
2895
2904
|
let ue;
|
|
2896
|
-
e[
|
|
2905
|
+
e[59] !== i || e[60] !== L || e[61] !== s ? (ue = i && /* @__PURE__ */ J(Ee, { children: [
|
|
2897
2906
|
/* @__PURE__ */ c(Be, { orientation: "vertical" }),
|
|
2898
2907
|
/* @__PURE__ */ J(Ce.Compact, { children: [
|
|
2899
2908
|
i.render ? i.render(s) : /* @__PURE__ */ c(_e, { type: "primary", ...i.attributes, onClick: /* @__PURE__ */ r(() => i.onClick?.(s), "onClick"), children: i.title }),
|
|
2900
|
-
|
|
2901
|
-
items:
|
|
2909
|
+
L.length > 0 && /* @__PURE__ */ c($e, { menu: {
|
|
2910
|
+
items: L
|
|
2902
2911
|
}, trigger: ["click"], placement: "bottomRight", children: /* @__PURE__ */ c(_e, { type: "primary", icon: /* @__PURE__ */ c(We, {}) }) })
|
|
2903
2912
|
] })
|
|
2904
|
-
] }), e[
|
|
2913
|
+
] }), e[59] = i, e[60] = L, e[61] = s, e[62] = ue) : ue = e[62];
|
|
2905
2914
|
let ne;
|
|
2906
|
-
e[
|
|
2915
|
+
e[63] !== X || e[64] !== Z || e[65] !== Q || e[66] !== re || e[67] !== oe || e[68] !== ue ? (ne = /* @__PURE__ */ J(pe, { gap: "8px", align: "center", className: jt.rightItems, children: [
|
|
2907
2916
|
X,
|
|
2908
2917
|
j,
|
|
2909
2918
|
Z,
|
|
2910
2919
|
Y,
|
|
2911
2920
|
Q,
|
|
2912
2921
|
fe,
|
|
2913
|
-
|
|
2914
|
-
|
|
2922
|
+
re,
|
|
2923
|
+
oe,
|
|
2915
2924
|
ue
|
|
2916
|
-
] }), e[
|
|
2917
|
-
let
|
|
2918
|
-
e[
|
|
2925
|
+
] }), e[63] = X, e[64] = Z, e[65] = Q, e[66] = re, e[67] = oe, e[68] = ue, e[69] = ne) : ne = e[69];
|
|
2926
|
+
let ae;
|
|
2927
|
+
e[70] !== te || e[71] !== ne ? (ae = /* @__PURE__ */ J(pe, { align: "center", justify: "space-between", children: [
|
|
2919
2928
|
te,
|
|
2920
2929
|
ne
|
|
2921
|
-
] }), e[
|
|
2930
|
+
] }), e[70] = te, e[71] = ne, e[72] = ae) : ae = e[72];
|
|
2922
2931
|
let Se;
|
|
2923
|
-
e[
|
|
2932
|
+
e[73] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = /* @__PURE__ */ r(() => w(!1), "t23"), e[73] = Se) : Se = e[73];
|
|
2924
2933
|
let me;
|
|
2925
|
-
e[
|
|
2934
|
+
e[74] !== n.name || e[75] !== V || e[76] !== N || e[77] !== D || e[78] !== A ? (me = /* @__PURE__ */ c(wn, { mode: A, open: D, defaultViewType: V, defaultViewName: n.name, onSaveView: N, onCancel: Se }), e[74] = n.name, e[75] = V, e[76] = N, e[77] = D, e[78] = A, e[79] = me) : me = e[79];
|
|
2926
2935
|
let he;
|
|
2927
|
-
return e[
|
|
2928
|
-
|
|
2929
|
-
|
|
2936
|
+
return e[80] !== k || e[81] !== ae || e[82] !== me ? (he = /* @__PURE__ */ J(Ee, { children: [
|
|
2937
|
+
ae,
|
|
2938
|
+
k,
|
|
2930
2939
|
me
|
|
2931
|
-
] }), e[
|
|
2932
|
-
}
|
|
2933
|
-
r(
|
|
2934
|
-
const
|
|
2935
|
-
userViews:
|
|
2936
|
-
container:
|
|
2937
|
-
topBar:
|
|
2938
|
-
filterPanel:
|
|
2940
|
+
] }), e[80] = k, e[81] = ae, e[82] = me, e[83] = he) : he = e[83], he;
|
|
2941
|
+
}
|
|
2942
|
+
r(sa, "TopBar");
|
|
2943
|
+
const ca = "_userViews_1rq5j_1", ua = "_container_1rq5j_7", fa = "_topBar_1rq5j_12", da = "_filterPanel_1rq5j_27", Ke = {
|
|
2944
|
+
userViews: ca,
|
|
2945
|
+
container: ua,
|
|
2946
|
+
topBar: fa,
|
|
2947
|
+
filterPanel: da
|
|
2939
2948
|
};
|
|
2940
|
-
function
|
|
2949
|
+
function ma(t) {
|
|
2941
2950
|
const e = G(77);
|
|
2942
2951
|
let l, n, i, a, o, s, u, d, f, m, h, _, S, C;
|
|
2943
2952
|
e[0] !== t ? ({
|
|
@@ -2957,70 +2966,70 @@ function da(t) {
|
|
|
2957
2966
|
...S
|
|
2958
2967
|
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = i, e[4] = a, e[5] = o, e[6] = s, e[7] = u, e[8] = d, e[9] = f, e[10] = m, e[11] = h, e[12] = _, e[13] = S, e[14] = C) : (l = e[1], n = e[2], i = e[3], a = e[4], o = e[5], s = e[6], u = e[7], d = e[8], f = e[9], m = e[10], h = e[11], _ = e[12], S = e[13], C = e[14]);
|
|
2959
2968
|
const {
|
|
2960
|
-
page:
|
|
2961
|
-
setPage:
|
|
2962
|
-
activeFilters:
|
|
2963
|
-
setActiveFilters:
|
|
2964
|
-
columns:
|
|
2965
|
-
setColumns:
|
|
2969
|
+
page: O,
|
|
2970
|
+
setPage: P,
|
|
2971
|
+
activeFilters: b,
|
|
2972
|
+
setActiveFilters: A,
|
|
2973
|
+
columns: x,
|
|
2974
|
+
setColumns: D,
|
|
2966
2975
|
pageSize: w,
|
|
2967
|
-
setPageSize:
|
|
2968
|
-
tableSize:
|
|
2969
|
-
setTableSize:
|
|
2970
|
-
setCondition:
|
|
2971
|
-
setSorter:
|
|
2976
|
+
setPageSize: V,
|
|
2977
|
+
tableSize: U,
|
|
2978
|
+
setTableSize: g,
|
|
2979
|
+
setCondition: F,
|
|
2980
|
+
setSorter: L,
|
|
2972
2981
|
selectedCount: W,
|
|
2973
|
-
updateSelectedCount:
|
|
2974
|
-
} =
|
|
2982
|
+
updateSelectedCount: k
|
|
2983
|
+
} = Ca(S), {
|
|
2975
2984
|
locale: v
|
|
2976
2985
|
} = we();
|
|
2977
2986
|
let T;
|
|
2978
|
-
e[15] !==
|
|
2979
|
-
|
|
2980
|
-
}, "t1"), e[15] =
|
|
2987
|
+
e[15] !== F ? (T = /* @__PURE__ */ r((ne, ae) => {
|
|
2988
|
+
F(ne, ae);
|
|
2989
|
+
}, "t1"), e[15] = F, e[16] = T) : T = e[16];
|
|
2981
2990
|
const E = T;
|
|
2982
2991
|
let N;
|
|
2983
|
-
e[17] !==
|
|
2984
|
-
|
|
2985
|
-
}, "t2"), e[17] =
|
|
2992
|
+
e[17] !== O || e[18] !== w || e[19] !== P || e[20] !== V ? (N = /* @__PURE__ */ r((ne, ae) => {
|
|
2993
|
+
O !== ne && P(ne), w !== ae && V(ae);
|
|
2994
|
+
}, "t2"), e[17] = O, e[18] = w, e[19] = P, e[20] = V, e[21] = N) : N = e[21];
|
|
2986
2995
|
const I = N;
|
|
2987
|
-
let
|
|
2988
|
-
e[22] !== f || e[23] !==
|
|
2989
|
-
f?.(ne),
|
|
2990
|
-
}, "t3"), e[22] = f, e[23] =
|
|
2991
|
-
const p =
|
|
2992
|
-
let
|
|
2993
|
-
e[25] !==
|
|
2994
|
-
let
|
|
2995
|
-
Array.isArray(ne) ?
|
|
2996
|
+
let R;
|
|
2997
|
+
e[22] !== f || e[23] !== k ? (R = /* @__PURE__ */ r((ne) => {
|
|
2998
|
+
f?.(ne), k(ne.length);
|
|
2999
|
+
}, "t3"), e[22] = f, e[23] = k, e[24] = R) : R = e[24];
|
|
3000
|
+
const p = R;
|
|
3001
|
+
let H;
|
|
3002
|
+
e[25] !== L ? (H = /* @__PURE__ */ r((ne) => {
|
|
3003
|
+
let ae;
|
|
3004
|
+
Array.isArray(ne) ? ae = ne.filter(Ta).map(_a) : ne.field ? ae = [{
|
|
2996
3005
|
field: Array.isArray(ne.field) ? [...ne.field].join(".") : ne.field,
|
|
2997
3006
|
direction: ne.order === "ascend" ? "ASC" : "DESC"
|
|
2998
|
-
}] :
|
|
2999
|
-
}, "t4"), e[25] =
|
|
3000
|
-
const y =
|
|
3001
|
-
let
|
|
3002
|
-
e[27] !== f || e[28] !==
|
|
3003
|
-
|
|
3004
|
-
}, "t5"), e[27] = f, e[28] =
|
|
3005
|
-
const K =
|
|
3007
|
+
}] : ae = [], L(ae);
|
|
3008
|
+
}, "t4"), e[25] = L, e[26] = H) : H = e[26];
|
|
3009
|
+
const y = H, B = Oe(null), $ = Oe(null);
|
|
3010
|
+
let M;
|
|
3011
|
+
e[27] !== f || e[28] !== k ? (M = /* @__PURE__ */ r(() => {
|
|
3012
|
+
$.current?.clearSelectedRowKeys(), f?.([]), k(0);
|
|
3013
|
+
}, "t5"), e[27] = f, e[28] = k, e[29] = M) : M = e[29];
|
|
3014
|
+
const K = M;
|
|
3006
3015
|
let q;
|
|
3007
3016
|
e[30] !== K ? (q = /* @__PURE__ */ r(() => {
|
|
3008
3017
|
B.current?.reset(), K();
|
|
3009
3018
|
}, "t6"), e[30] = K, e[31] = q) : q = e[31];
|
|
3010
3019
|
const te = q;
|
|
3011
3020
|
let X;
|
|
3012
|
-
e[32] !== K || e[33] !== te || e[34] !==
|
|
3021
|
+
e[32] !== K || e[33] !== te || e[34] !== g ? (X = /* @__PURE__ */ r(() => ({
|
|
3013
3022
|
clearSelectedRowKeys: K,
|
|
3014
|
-
updateTableSize:
|
|
3023
|
+
updateTableSize: g,
|
|
3015
3024
|
reset: te,
|
|
3016
3025
|
getCondition: /* @__PURE__ */ r(() => B.current?.getCondition(), "getCondition")
|
|
3017
|
-
}), "t7"), e[32] = K, e[33] = te, e[34] =
|
|
3026
|
+
}), "t7"), e[32] = K, e[33] = te, e[34] = g, e[35] = X) : X = e[35], be(h, X);
|
|
3018
3027
|
let j;
|
|
3019
3028
|
e[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = {
|
|
3020
3029
|
display: "flex"
|
|
3021
3030
|
}, e[36] = j) : j = e[36];
|
|
3022
3031
|
let Z;
|
|
3023
|
-
e[37] !==
|
|
3032
|
+
e[37] !== b || e[38] !== n || e[39] !== s || e[40] !== E || e[41] !== A || e[42] !== _ ? (Z = s === "editable" && /* @__PURE__ */ c("div", { className: Ke.filterPanel, style: {
|
|
3024
3033
|
display: _ ? "block" : "none"
|
|
3025
3034
|
}, children: /* @__PURE__ */ c(Mi, { row: {
|
|
3026
3035
|
gutter: [24, 16],
|
|
@@ -3032,55 +3041,55 @@ function da(t) {
|
|
|
3032
3041
|
md: 12,
|
|
3033
3042
|
sm: 24,
|
|
3034
3043
|
xs: 24
|
|
3035
|
-
}, ref: B, filters:
|
|
3044
|
+
}, ref: B, filters: b, availableFilters: n, resetButton: !1, onSearch: E, onChange: A }) }), e[37] = b, e[38] = n, e[39] = s, e[40] = E, e[41] = A, e[42] = _, e[43] = Z) : Z = e[43];
|
|
3036
3045
|
let Y;
|
|
3037
|
-
e[44] !==
|
|
3046
|
+
e[44] !== b || e[45] !== s || e[46] !== E || e[47] !== _ ? (Y = s === "normal" && /* @__PURE__ */ c("div", { className: Ke.filterPanel, style: {
|
|
3038
3047
|
display: _ ? "block" : "none"
|
|
3039
|
-
}, children: /* @__PURE__ */ c(
|
|
3048
|
+
}, children: /* @__PURE__ */ c(Nn, { ref: B, filters: b, resetButton: !1, onSearch: E }) }), e[44] = b, e[45] = s, e[46] = E, e[47] = _, e[48] = Y) : Y = e[48];
|
|
3040
3049
|
let Q;
|
|
3041
3050
|
e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = {
|
|
3042
3051
|
pagination: !1
|
|
3043
3052
|
}, e[49] = Q) : Q = e[49];
|
|
3044
3053
|
const fe = C || !1;
|
|
3045
|
-
let
|
|
3046
|
-
e[50] !== l || e[51] !==
|
|
3047
|
-
let
|
|
3048
|
-
e[63] !== i.total || e[64] !== a || e[65] !== I || e[66] !== v || e[67] !==
|
|
3054
|
+
let re;
|
|
3055
|
+
e[50] !== l || e[51] !== x || e[52] !== i.list || e[53] !== a || e[54] !== o || e[55] !== y || e[56] !== p || e[57] !== u || e[58] !== d || e[59] !== D || e[60] !== fe || e[61] !== U ? (re = /* @__PURE__ */ c(Br, { ref: $, loading: u, dataSource: i.list, fields: o, columns: x, onColumnsChange: D, tableSize: U, actionColumn: l, onSortChanged: y, onSelectChange: p, attributes: Q, enableRowSelection: a, onClickPrimaryKey: d, viewTableSetting: fe }), e[50] = l, e[51] = x, e[52] = i.list, e[53] = a, e[54] = o, e[55] = y, e[56] = p, e[57] = u, e[58] = d, e[59] = D, e[60] = fe, e[61] = U, e[62] = re) : re = e[62];
|
|
3056
|
+
let oe;
|
|
3057
|
+
e[63] !== i.total || e[64] !== a || e[65] !== I || e[66] !== v || e[67] !== O || e[68] !== w || e[69] !== m || e[70] !== W ? (oe = (m !== !1 || a) && /* @__PURE__ */ J("div", { style: {
|
|
3049
3058
|
display: "flex",
|
|
3050
3059
|
alignItems: "center",
|
|
3051
3060
|
justifyContent: "space-between"
|
|
3052
3061
|
}, children: [
|
|
3053
3062
|
/* @__PURE__ */ c("span", { children: W ? v.selectedCountLabel ? v.selectedCountLabel.format(W) : `已选择 ${W} 条数据` : "" }),
|
|
3054
|
-
/* @__PURE__ */ c(
|
|
3055
|
-
] }), e[63] = i.total, e[64] = a, e[65] = I, e[66] = v, e[67] =
|
|
3063
|
+
/* @__PURE__ */ c(gn, { showTotal: ha, defaultCurrent: O, current: O, pageSize: w || 10, total: i.total, pageSizeOptions: ["10", "20", "50", "100"], ...m, onChange: I })
|
|
3064
|
+
] }), e[63] = i.total, e[64] = a, e[65] = I, e[66] = v, e[67] = O, e[68] = w, e[69] = m, e[70] = W, e[71] = oe) : oe = e[71];
|
|
3056
3065
|
let ue;
|
|
3057
|
-
return e[72] !== Y || e[73] !==
|
|
3066
|
+
return e[72] !== Y || e[73] !== re || e[74] !== oe || e[75] !== Z ? (ue = /* @__PURE__ */ J(Ce, { orientation: "vertical", style: j, size: "small", children: [
|
|
3058
3067
|
Z,
|
|
3059
3068
|
Y,
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
] }), e[72] = Y, e[73] =
|
|
3069
|
+
re,
|
|
3070
|
+
oe
|
|
3071
|
+
] }), e[72] = Y, e[73] = re, e[74] = oe, e[75] = Z, e[76] = ue) : ue = e[76], ue;
|
|
3063
3072
|
}
|
|
3064
|
-
r(
|
|
3065
|
-
function
|
|
3073
|
+
r(ma, "View");
|
|
3074
|
+
function ha(t) {
|
|
3066
3075
|
return `共 ${t} 条数据`;
|
|
3067
3076
|
}
|
|
3068
|
-
r(
|
|
3069
|
-
function
|
|
3077
|
+
r(ha, "_temp3");
|
|
3078
|
+
function _a(t) {
|
|
3070
3079
|
return {
|
|
3071
3080
|
field: Array.isArray(t.field) ? [...t.field].join(".") : t.field,
|
|
3072
3081
|
direction: t.order === "ascend" ? "ASC" : "DESC"
|
|
3073
3082
|
};
|
|
3074
3083
|
}
|
|
3075
|
-
r(
|
|
3076
|
-
function
|
|
3084
|
+
r(_a, "_temp2$1");
|
|
3085
|
+
function Ta(t) {
|
|
3077
3086
|
return t.field;
|
|
3078
3087
|
}
|
|
3079
|
-
r(
|
|
3080
|
-
const
|
|
3081
|
-
function
|
|
3082
|
-
defaultPage: t =
|
|
3083
|
-
defaultPageSize: e =
|
|
3088
|
+
r(Ta, "_temp$1");
|
|
3089
|
+
const Ea = 1, Sa = 10;
|
|
3090
|
+
function Ca({
|
|
3091
|
+
defaultPage: t = Ea,
|
|
3092
|
+
defaultPageSize: e = Sa,
|
|
3084
3093
|
...l
|
|
3085
3094
|
}) {
|
|
3086
3095
|
const {
|
|
@@ -3097,37 +3106,37 @@ function Sa({
|
|
|
3097
3106
|
defaultTableSize: _,
|
|
3098
3107
|
externalTableSize: S,
|
|
3099
3108
|
externalUpdateTableSize: C,
|
|
3100
|
-
defaultSorter:
|
|
3101
|
-
externalSorter:
|
|
3102
|
-
externalUpdateSorter:
|
|
3103
|
-
defaultCondition:
|
|
3104
|
-
externalCondition:
|
|
3105
|
-
externalUpdateCondition:
|
|
3109
|
+
defaultSorter: O,
|
|
3110
|
+
externalSorter: P,
|
|
3111
|
+
externalUpdateSorter: b,
|
|
3112
|
+
defaultCondition: A,
|
|
3113
|
+
externalCondition: x,
|
|
3114
|
+
externalUpdateCondition: D,
|
|
3106
3115
|
onChange: w
|
|
3107
3116
|
} = l, {
|
|
3108
|
-
columns:
|
|
3109
|
-
setColumns:
|
|
3110
|
-
activeFilters:
|
|
3111
|
-
setActiveFilters:
|
|
3112
|
-
page:
|
|
3117
|
+
columns: V,
|
|
3118
|
+
setColumns: U,
|
|
3119
|
+
activeFilters: g,
|
|
3120
|
+
setActiveFilters: F,
|
|
3121
|
+
page: L,
|
|
3113
3122
|
setPage: W,
|
|
3114
|
-
pageSize:
|
|
3123
|
+
pageSize: k,
|
|
3115
3124
|
setPageSize: v,
|
|
3116
3125
|
tableSize: T,
|
|
3117
3126
|
setTableSize: E,
|
|
3118
3127
|
condition: N,
|
|
3119
3128
|
setCondition: I,
|
|
3120
|
-
sorter:
|
|
3129
|
+
sorter: R,
|
|
3121
3130
|
setSorter: p,
|
|
3122
|
-
reset:
|
|
3123
|
-
} =
|
|
3131
|
+
reset: H
|
|
3132
|
+
} = An({
|
|
3124
3133
|
defaultColumns: n,
|
|
3125
3134
|
defaultPageSize: e,
|
|
3126
3135
|
defaultActiveFilters: o || [],
|
|
3127
3136
|
defaultTableSize: _,
|
|
3128
|
-
defaultCondition:
|
|
3129
|
-
defaultSorter:
|
|
3130
|
-
}), y = i ??
|
|
3137
|
+
defaultCondition: A,
|
|
3138
|
+
defaultSorter: O
|
|
3139
|
+
}), y = i ?? V, B = a ?? U, $ = s ?? g, M = u ?? F, K = d ?? L, q = f ?? W, te = m ?? k, X = h ?? v, j = x ?? N, Z = D ?? I, Y = P ?? R, Q = b ?? p, fe = S ?? T, re = C ?? E, [oe, ue] = ee(0);
|
|
3131
3140
|
return {
|
|
3132
3141
|
page: K,
|
|
3133
3142
|
setPage: /* @__PURE__ */ r((ie) => {
|
|
@@ -3139,11 +3148,11 @@ function Sa({
|
|
|
3139
3148
|
}, "setPageSizeFn"),
|
|
3140
3149
|
columns: y,
|
|
3141
3150
|
setColumns: B,
|
|
3142
|
-
activeFilters:
|
|
3143
|
-
setActiveFilters:
|
|
3151
|
+
activeFilters: $,
|
|
3152
|
+
setActiveFilters: M,
|
|
3144
3153
|
tableSize: fe,
|
|
3145
3154
|
setTableSize: /* @__PURE__ */ r((ie) => {
|
|
3146
|
-
|
|
3155
|
+
re(ie);
|
|
3147
3156
|
}, "setTableSizeFn"),
|
|
3148
3157
|
condition: j,
|
|
3149
3158
|
setCondition: /* @__PURE__ */ r((ie, Te) => {
|
|
@@ -3153,32 +3162,32 @@ function Sa({
|
|
|
3153
3162
|
setSorter: /* @__PURE__ */ r((ie) => {
|
|
3154
3163
|
Q(ie), q(1), w?.(j, 1, te, ie);
|
|
3155
3164
|
}, "setSorterFn"),
|
|
3156
|
-
selectedCount:
|
|
3165
|
+
selectedCount: oe,
|
|
3157
3166
|
updateSelectedCount: /* @__PURE__ */ r((ie) => {
|
|
3158
3167
|
ue(ie);
|
|
3159
3168
|
}, "updateSelectedCountFn"),
|
|
3160
3169
|
reset: /* @__PURE__ */ r(() => {
|
|
3161
|
-
|
|
3162
|
-
|
|
3170
|
+
H(), w?.(
|
|
3171
|
+
A || pn,
|
|
3163
3172
|
t,
|
|
3164
3173
|
e,
|
|
3165
|
-
|
|
3174
|
+
O
|
|
3166
3175
|
);
|
|
3167
3176
|
}, "resetFn")
|
|
3168
3177
|
};
|
|
3169
3178
|
}
|
|
3170
|
-
r(
|
|
3171
|
-
const
|
|
3172
|
-
top:
|
|
3173
|
-
title:
|
|
3174
|
-
customCollapse:
|
|
3175
|
-
viewItem:
|
|
3176
|
-
active:
|
|
3177
|
-
viewName:
|
|
3178
|
-
viewNameText:
|
|
3179
|
-
viewNameTag:
|
|
3179
|
+
r(Ca, "useViewState");
|
|
3180
|
+
const ya = "_top_1wlaq_1", va = "_title_1wlaq_4", Ia = "_customCollapse_1wlaq_8", Na = "_viewItem_1wlaq_24", pa = "_active_1wlaq_32", Aa = "_viewName_1wlaq_36", La = "_viewNameText_1wlaq_48", Oa = "_viewNameTag_1wlaq_85", Re = {
|
|
3181
|
+
top: ya,
|
|
3182
|
+
title: va,
|
|
3183
|
+
customCollapse: Ia,
|
|
3184
|
+
viewItem: Na,
|
|
3185
|
+
active: pa,
|
|
3186
|
+
viewName: Aa,
|
|
3187
|
+
viewNameText: La,
|
|
3188
|
+
viewNameTag: Oa
|
|
3180
3189
|
};
|
|
3181
|
-
function
|
|
3190
|
+
function ba(t) {
|
|
3182
3191
|
const e = G(19), {
|
|
3183
3192
|
view: l,
|
|
3184
3193
|
countUrl: n,
|
|
@@ -3187,8 +3196,8 @@ function Oa(t) {
|
|
|
3187
3196
|
} = t, [o, s] = ee(0);
|
|
3188
3197
|
let u, d;
|
|
3189
3198
|
e[0] !== n || e[1] !== a || e[2] !== l.condition ? (u = /* @__PURE__ */ r(() => {
|
|
3190
|
-
a && a(n, l.condition || je()).then((
|
|
3191
|
-
s(
|
|
3199
|
+
a && a(n, l.condition || je()).then((O) => {
|
|
3200
|
+
s(O || 0);
|
|
3192
3201
|
});
|
|
3193
3202
|
}, "t0"), d = [n, a, l.condition], e[0] = n, e[1] = a, e[2] = l.condition, e[3] = u, e[4] = d) : (u = e[3], d = e[4]), Ae(u, d);
|
|
3194
3203
|
const f = `${Re.viewItem} ${i ? Re.active : ""}`;
|
|
@@ -3209,7 +3218,7 @@ function Oa(t) {
|
|
|
3209
3218
|
S
|
|
3210
3219
|
] }), e[15] = f, e[16] = _, e[17] = S, e[18] = C) : C = e[18], C;
|
|
3211
3220
|
}
|
|
3212
|
-
r(
|
|
3221
|
+
r(ba, "ViewItem");
|
|
3213
3222
|
function Qt(t) {
|
|
3214
3223
|
const e = G(13), {
|
|
3215
3224
|
views: l,
|
|
@@ -3224,14 +3233,14 @@ function Qt(t) {
|
|
|
3224
3233
|
e[6] !== n || e[7] !== i || e[8] !== o || e[9] !== a ? (d = /* @__PURE__ */ r((f) => /* @__PURE__ */ c("div", { onClick: /* @__PURE__ */ r(() => a(f), "onClick"), style: {
|
|
3225
3234
|
width: "100%",
|
|
3226
3235
|
cursor: "pointer"
|
|
3227
|
-
}, children: /* @__PURE__ */ c(
|
|
3236
|
+
}, children: /* @__PURE__ */ c(ba, { active: f.id === n.id, countUrl: i, view: f, onGetRecordCount: o }) }, f.id), "t12"), e[6] = n, e[7] = i, e[8] = o, e[9] = a, e[10] = d) : d = e[10], s = l.map(d), e[0] = n, e[1] = i, e[2] = o, e[3] = a, e[4] = l, e[5] = s;
|
|
3228
3237
|
} else
|
|
3229
3238
|
s = e[5];
|
|
3230
3239
|
let u;
|
|
3231
3240
|
return e[11] !== s ? (u = /* @__PURE__ */ c(pe, { vertical: !0, align: "start", children: s }), e[11] = s, e[12] = u) : u = e[12], u;
|
|
3232
3241
|
}
|
|
3233
3242
|
r(Qt, "ViewItemGroup");
|
|
3234
|
-
function
|
|
3243
|
+
function Ra(t) {
|
|
3235
3244
|
const e = G(80), {
|
|
3236
3245
|
name: l,
|
|
3237
3246
|
views: n,
|
|
@@ -3245,31 +3254,31 @@ function ba(t) {
|
|
|
3245
3254
|
onGetRecordCount: m
|
|
3246
3255
|
} = t;
|
|
3247
3256
|
let h;
|
|
3248
|
-
e[0] !== n ? (h = n.filter(
|
|
3257
|
+
e[0] !== n ? (h = n.filter(wa), e[0] = n, e[1] = h) : h = e[1];
|
|
3249
3258
|
const _ = h;
|
|
3250
3259
|
let S;
|
|
3251
|
-
e[2] !== n ? (S = n.filter(
|
|
3252
|
-
const C = S, [
|
|
3253
|
-
locale:
|
|
3260
|
+
e[2] !== n ? (S = n.filter(Da), e[2] = n, e[3] = S) : S = e[3];
|
|
3261
|
+
const C = S, [O, P] = ee(!1), [b, A] = ee(!1), [x, D] = ee("Create"), [w, V] = ee(!1), [U, g] = ee("PERSONAL"), {
|
|
3262
|
+
locale: F
|
|
3254
3263
|
} = we();
|
|
3255
|
-
let
|
|
3256
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3264
|
+
let L;
|
|
3265
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ r((le, de) => {
|
|
3257
3266
|
le.preventDefault(), le.stopPropagation();
|
|
3258
3267
|
e: switch (de) {
|
|
3259
3268
|
case "PERSONAL": {
|
|
3260
|
-
|
|
3269
|
+
P(!0);
|
|
3261
3270
|
break e;
|
|
3262
3271
|
}
|
|
3263
3272
|
case "SHARED":
|
|
3264
|
-
|
|
3273
|
+
A(!0);
|
|
3265
3274
|
}
|
|
3266
|
-
}, "t2"), e[4] =
|
|
3267
|
-
const W =
|
|
3268
|
-
let
|
|
3269
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3270
|
-
le.stopPropagation(),
|
|
3271
|
-
}, "t3"), e[5] =
|
|
3272
|
-
const v =
|
|
3275
|
+
}, "t2"), e[4] = L) : L = e[4];
|
|
3276
|
+
const W = L;
|
|
3277
|
+
let k;
|
|
3278
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ r((le, de) => {
|
|
3279
|
+
le.stopPropagation(), g(de), D("Create"), V(!0);
|
|
3280
|
+
}, "t3"), e[5] = k) : k = e[5];
|
|
3281
|
+
const v = k;
|
|
3273
3282
|
let T;
|
|
3274
3283
|
e[6] !== i || e[7] !== u ? (T = /* @__PURE__ */ r((le, de) => {
|
|
3275
3284
|
u?.({
|
|
@@ -3279,7 +3288,7 @@ function ba(t) {
|
|
|
3279
3288
|
source: "CUSTOM",
|
|
3280
3289
|
isDefault: !1
|
|
3281
3290
|
}, () => {
|
|
3282
|
-
|
|
3291
|
+
V(!1);
|
|
3283
3292
|
});
|
|
3284
3293
|
}, "t4"), e[6] = i, e[7] = u, e[8] = T) : T = e[8];
|
|
3285
3294
|
const E = T;
|
|
@@ -3288,31 +3297,31 @@ function ba(t) {
|
|
|
3288
3297
|
d?.(le, de);
|
|
3289
3298
|
}, "t5"), e[9] = d, e[10] = N) : N = e[10];
|
|
3290
3299
|
const I = N;
|
|
3291
|
-
let
|
|
3292
|
-
e[11] !== f ? (
|
|
3300
|
+
let R;
|
|
3301
|
+
e[11] !== f ? (R = /* @__PURE__ */ r((le) => {
|
|
3293
3302
|
f?.(le);
|
|
3294
|
-
}, "t6"), e[11] = f, e[12] =
|
|
3295
|
-
const p =
|
|
3296
|
-
let
|
|
3297
|
-
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3298
|
-
/* @__PURE__ */ c(
|
|
3299
|
-
/* @__PURE__ */ c(
|
|
3300
|
-
] }), "t7"), e[13] =
|
|
3301
|
-
const y =
|
|
3302
|
-
let
|
|
3303
|
-
e[14] !== o ? (
|
|
3304
|
-
let
|
|
3305
|
-
e[16] !== i || e[17] !== a || e[18] !== m || e[19] !== _ || e[20] !==
|
|
3303
|
+
}, "t6"), e[11] = f, e[12] = R) : R = e[12];
|
|
3304
|
+
const p = R;
|
|
3305
|
+
let H;
|
|
3306
|
+
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ r((le) => /* @__PURE__ */ J(Ce, { children: [
|
|
3307
|
+
/* @__PURE__ */ c(on, { onClick: /* @__PURE__ */ r((de) => W(de, le), "onClick") }),
|
|
3308
|
+
/* @__PURE__ */ c(rn, { onClick: /* @__PURE__ */ r((de) => v(de, le), "onClick") })
|
|
3309
|
+
] }), "t7"), e[13] = H) : H = e[13];
|
|
3310
|
+
const y = H, B = F.view?.viewType?.personal || "个人";
|
|
3311
|
+
let $;
|
|
3312
|
+
e[14] !== o ? ($ = /* @__PURE__ */ r((le) => o(le), "t9"), e[14] = o, e[15] = $) : $ = e[15];
|
|
3313
|
+
let M;
|
|
3314
|
+
e[16] !== i || e[17] !== a || e[18] !== m || e[19] !== _ || e[20] !== $ ? (M = /* @__PURE__ */ c(Qt, { views: _, activeView: i, countUrl: a, onSwitchView: $, onGetRecordCount: m }), e[16] = i, e[17] = a, e[18] = m, e[19] = _, e[20] = $, e[21] = M) : M = e[21];
|
|
3306
3315
|
let K;
|
|
3307
3316
|
e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = y("PERSONAL"), e[22] = K) : K = e[22];
|
|
3308
3317
|
let q;
|
|
3309
|
-
e[23] !==
|
|
3318
|
+
e[23] !== M || e[24] !== B ? (q = {
|
|
3310
3319
|
key: "1",
|
|
3311
3320
|
label: B,
|
|
3312
|
-
children:
|
|
3321
|
+
children: M,
|
|
3313
3322
|
extra: K
|
|
3314
|
-
}, e[23] =
|
|
3315
|
-
const te =
|
|
3323
|
+
}, e[23] = M, e[24] = B, e[25] = q) : q = e[25];
|
|
3324
|
+
const te = F.view?.viewType?.shared || "公共";
|
|
3316
3325
|
let X;
|
|
3317
3326
|
e[26] !== o ? (X = /* @__PURE__ */ r((le) => o(le), "t14"), e[26] = o, e[27] = X) : X = e[27];
|
|
3318
3327
|
let j;
|
|
@@ -3329,42 +3338,42 @@ function ba(t) {
|
|
|
3329
3338
|
let Q;
|
|
3330
3339
|
e[38] !== q || e[39] !== Y ? (Q = [q, Y], e[38] = q, e[39] = Y, e[40] = Q) : Q = e[40];
|
|
3331
3340
|
const fe = Q;
|
|
3332
|
-
let
|
|
3333
|
-
e[41] !== l ? (
|
|
3334
|
-
let
|
|
3335
|
-
e[43] !== s ? (
|
|
3341
|
+
let re;
|
|
3342
|
+
e[41] !== l ? (re = /* @__PURE__ */ c("div", { className: Re.title, children: l }), e[41] = l, e[42] = re) : re = e[42];
|
|
3343
|
+
let oe;
|
|
3344
|
+
e[43] !== s ? (oe = /* @__PURE__ */ r(() => {
|
|
3336
3345
|
s(!1);
|
|
3337
|
-
}, "t20"), e[43] = s, e[44] =
|
|
3346
|
+
}, "t20"), e[43] = s, e[44] = oe) : oe = e[44];
|
|
3338
3347
|
let ue;
|
|
3339
|
-
e[45] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ue = /* @__PURE__ */ c(Pe, { icon: /* @__PURE__ */ c(
|
|
3348
|
+
e[45] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ue = /* @__PURE__ */ c(Pe, { icon: /* @__PURE__ */ c(rl, {}), active: !1 }), e[45] = ue) : ue = e[45];
|
|
3340
3349
|
let ne;
|
|
3341
|
-
e[46] !==
|
|
3342
|
-
let
|
|
3343
|
-
e[48] !==
|
|
3344
|
-
|
|
3350
|
+
e[46] !== oe ? (ne = /* @__PURE__ */ c("div", { onClick: oe, children: ue }), e[46] = oe, e[47] = ne) : ne = e[47];
|
|
3351
|
+
let ae;
|
|
3352
|
+
e[48] !== re || e[49] !== ne ? (ae = /* @__PURE__ */ J(pe, { align: "center", justify: "space-between", className: Re.top, children: [
|
|
3353
|
+
re,
|
|
3345
3354
|
ne
|
|
3346
|
-
] }), e[48] =
|
|
3355
|
+
] }), e[48] = re, e[49] = ne, e[50] = ae) : ae = e[50];
|
|
3347
3356
|
let Se;
|
|
3348
3357
|
e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = ["1", "2"], e[51] = Se) : Se = e[51];
|
|
3349
3358
|
let me;
|
|
3350
|
-
e[52] !== fe ? (me = /* @__PURE__ */ c(
|
|
3359
|
+
e[52] !== fe ? (me = /* @__PURE__ */ c(Un, { items: fe, defaultActiveKey: Se, className: Re.customCollapse }), e[52] = fe, e[53] = me) : me = e[53];
|
|
3351
3360
|
let he;
|
|
3352
|
-
e[54] !==
|
|
3353
|
-
|
|
3361
|
+
e[54] !== ae || e[55] !== me ? (he = /* @__PURE__ */ J(pe, { vertical: !0, gap: "16px", children: [
|
|
3362
|
+
ae,
|
|
3354
3363
|
me
|
|
3355
|
-
] }), e[54] =
|
|
3356
|
-
let
|
|
3357
|
-
e[57] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3364
|
+
] }), e[54] = ae, e[55] = me, e[56] = he) : he = e[56];
|
|
3365
|
+
let se;
|
|
3366
|
+
e[57] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (se = /* @__PURE__ */ r(() => P(!1), "t27"), e[57] = se) : se = e[57];
|
|
3358
3367
|
let ce;
|
|
3359
|
-
e[58] !== p || e[59] !== I || e[60] !==
|
|
3368
|
+
e[58] !== p || e[59] !== I || e[60] !== O || e[61] !== _ ? (ce = /* @__PURE__ */ c(Xt, { viewType: "PERSONAL", views: _, open: O, onCancel: se, onEditViewName: I, onDeleteView: p }), e[58] = p, e[59] = I, e[60] = O, e[61] = _, e[62] = ce) : ce = e[62];
|
|
3360
3369
|
let ie;
|
|
3361
|
-
e[63] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ r(() =>
|
|
3370
|
+
e[63] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ r(() => A(!1), "t29"), e[63] = ie) : ie = e[63];
|
|
3362
3371
|
let Te;
|
|
3363
|
-
e[64] !== p || e[65] !== I || e[66] !==
|
|
3372
|
+
e[64] !== p || e[65] !== I || e[66] !== b || e[67] !== C ? (Te = /* @__PURE__ */ c(Xt, { viewType: "SHARED", views: C, open: b, onCancel: ie, onEditViewName: I, onDeleteView: p }), e[64] = p, e[65] = I, e[66] = b, e[67] = C, e[68] = Te) : Te = e[68];
|
|
3364
3373
|
let Ne;
|
|
3365
|
-
e[69] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ne = /* @__PURE__ */ r(() =>
|
|
3374
|
+
e[69] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ne = /* @__PURE__ */ r(() => V(!1), "t31"), e[69] = Ne) : Ne = e[69];
|
|
3366
3375
|
let ye;
|
|
3367
|
-
e[70] !==
|
|
3376
|
+
e[70] !== U || e[71] !== E || e[72] !== w || e[73] !== x ? (ye = /* @__PURE__ */ c(wn, { mode: x, open: w, defaultViewType: U, onSaveView: E, onCancel: Ne }), e[70] = U, e[71] = E, e[72] = w, e[73] = x, e[74] = ye) : ye = e[74];
|
|
3368
3377
|
let Le;
|
|
3369
3378
|
return e[75] !== he || e[76] !== ce || e[77] !== Te || e[78] !== ye ? (Le = /* @__PURE__ */ J(Ee, { children: [
|
|
3370
3379
|
he,
|
|
@@ -3373,16 +3382,16 @@ function ba(t) {
|
|
|
3373
3382
|
ye
|
|
3374
3383
|
] }), e[75] = he, e[76] = ce, e[77] = Te, e[78] = ye, e[79] = Le) : Le = e[79], Le;
|
|
3375
3384
|
}
|
|
3376
|
-
r(
|
|
3377
|
-
function
|
|
3385
|
+
r(Ra, "ViewPanel");
|
|
3386
|
+
function Da(t) {
|
|
3378
3387
|
return t.type === "SHARED";
|
|
3379
3388
|
}
|
|
3380
|
-
r(
|
|
3381
|
-
function
|
|
3389
|
+
r(Da, "_temp2");
|
|
3390
|
+
function wa(t) {
|
|
3382
3391
|
return t.type === "PERSONAL";
|
|
3383
3392
|
}
|
|
3384
|
-
r(
|
|
3385
|
-
function
|
|
3393
|
+
r(wa, "_temp");
|
|
3394
|
+
function wn(t) {
|
|
3386
3395
|
const e = G(39), {
|
|
3387
3396
|
mode: l,
|
|
3388
3397
|
open: n,
|
|
@@ -3395,55 +3404,55 @@ function Rn(t) {
|
|
|
3395
3404
|
} = we();
|
|
3396
3405
|
let d;
|
|
3397
3406
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ r(() => {
|
|
3398
|
-
|
|
3407
|
+
D.current?.submit();
|
|
3399
3408
|
}, "t0"), e[0] = d) : d = e[0];
|
|
3400
3409
|
const f = d;
|
|
3401
3410
|
let m, h;
|
|
3402
3411
|
e[1] !== a || e[2] !== i ? (m = /* @__PURE__ */ r(() => {
|
|
3403
|
-
|
|
3412
|
+
D.current?.setFieldValue("type", i || "PERSONAL"), D.current?.setFieldValue("name", a || "");
|
|
3404
3413
|
}, "t1"), h = [i, a], e[1] = a, e[2] = i, e[3] = m, e[4] = h) : (m = e[3], h = e[4]), Ae(m, h);
|
|
3405
3414
|
let _;
|
|
3406
3415
|
e[5] !== s ? (_ = /* @__PURE__ */ r(() => {
|
|
3407
3416
|
s?.();
|
|
3408
3417
|
}, "t3"), e[5] = s, e[6] = _) : _ = e[6];
|
|
3409
3418
|
const S = _, C = u.personalView || "个人视图";
|
|
3410
|
-
let
|
|
3411
|
-
e[7] !== C ? (
|
|
3419
|
+
let O;
|
|
3420
|
+
e[7] !== C ? (O = {
|
|
3412
3421
|
label: C,
|
|
3413
3422
|
value: "PERSONAL"
|
|
3414
|
-
}, e[7] = C, e[8] =
|
|
3415
|
-
const
|
|
3416
|
-
let
|
|
3417
|
-
e[9] !==
|
|
3418
|
-
label:
|
|
3423
|
+
}, e[7] = C, e[8] = O) : O = e[8];
|
|
3424
|
+
const P = u.sharedView || "公共视图";
|
|
3425
|
+
let b;
|
|
3426
|
+
e[9] !== P ? (b = {
|
|
3427
|
+
label: P,
|
|
3419
3428
|
value: "SHARED"
|
|
3420
|
-
}, e[9] =
|
|
3421
|
-
let
|
|
3422
|
-
e[11] !==
|
|
3423
|
-
const
|
|
3429
|
+
}, e[9] = P, e[10] = b) : b = e[10];
|
|
3430
|
+
let A;
|
|
3431
|
+
e[11] !== O || e[12] !== b ? (A = [O, b], e[11] = O, e[12] = b, e[13] = A) : A = e[13];
|
|
3432
|
+
const x = A, D = Oe(null);
|
|
3424
3433
|
let w;
|
|
3425
3434
|
e[14] !== o ? (w = /* @__PURE__ */ r((y) => {
|
|
3426
3435
|
o?.(y.name, y.type);
|
|
3427
3436
|
}, "t9"), e[14] = o, e[15] = w) : w = e[15];
|
|
3428
|
-
const
|
|
3429
|
-
let
|
|
3430
|
-
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3437
|
+
const V = w, U = l === "Create" ? u.createViewMethod?.create || "创建视图" : u.createViewMethod?.saveAs || "另存为新视图";
|
|
3438
|
+
let g;
|
|
3439
|
+
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
|
|
3431
3440
|
span: 5
|
|
3432
|
-
}, e[16] =
|
|
3433
|
-
const
|
|
3434
|
-
let
|
|
3435
|
-
e[17] !==
|
|
3436
|
-
type:
|
|
3437
|
-
}, e[17] =
|
|
3441
|
+
}, e[16] = g) : g = e[16];
|
|
3442
|
+
const F = i || "PERSONAL";
|
|
3443
|
+
let L;
|
|
3444
|
+
e[17] !== F ? (L = {
|
|
3445
|
+
type: F
|
|
3446
|
+
}, e[17] = F, e[18] = L) : L = e[18];
|
|
3438
3447
|
const W = u.view?.viewType?.name || "视图类型";
|
|
3439
|
-
let
|
|
3440
|
-
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3448
|
+
let k;
|
|
3449
|
+
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = [{
|
|
3441
3450
|
required: !0
|
|
3442
|
-
}], e[19] =
|
|
3451
|
+
}], e[19] = k) : k = e[19];
|
|
3443
3452
|
let v;
|
|
3444
|
-
e[20] !==
|
|
3453
|
+
e[20] !== x ? (v = /* @__PURE__ */ c(Hn.Group, { options: x, optionType: "button" }), e[20] = x, e[21] = v) : v = e[21];
|
|
3445
3454
|
let T;
|
|
3446
|
-
e[22] !== W || e[23] !== v ? (T = /* @__PURE__ */ c(et.Item, { label: W, name: "type", rules:
|
|
3455
|
+
e[22] !== W || e[23] !== v ? (T = /* @__PURE__ */ c(et.Item, { label: W, name: "type", rules: k, children: v }), e[22] = W, e[23] = v, e[24] = T) : T = e[24];
|
|
3447
3456
|
const E = u.view?.viewName || "视图名称";
|
|
3448
3457
|
let N, I;
|
|
3449
3458
|
e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = [{
|
|
@@ -3452,18 +3461,18 @@ function Rn(t) {
|
|
|
3452
3461
|
type: "string",
|
|
3453
3462
|
min: 1
|
|
3454
3463
|
}], I = /* @__PURE__ */ c(Qe, {}), e[25] = N, e[26] = I) : (N = e[25], I = e[26]);
|
|
3455
|
-
let
|
|
3456
|
-
e[27] !== E ? (
|
|
3464
|
+
let R;
|
|
3465
|
+
e[27] !== E ? (R = /* @__PURE__ */ c(et.Item, { label: E, name: "name", rules: N, children: I }), e[27] = E, e[28] = R) : R = e[28];
|
|
3457
3466
|
let p;
|
|
3458
|
-
e[29] !==
|
|
3467
|
+
e[29] !== V || e[30] !== L || e[31] !== T || e[32] !== R ? (p = /* @__PURE__ */ J(et, { ref: D, name: "basic", labelCol: g, initialValues: L, onFinish: V, autoComplete: "off", children: [
|
|
3459
3468
|
T,
|
|
3460
|
-
|
|
3461
|
-
] }), e[29] =
|
|
3462
|
-
let
|
|
3463
|
-
return e[34] !== S || e[35] !== n || e[36] !==
|
|
3469
|
+
R
|
|
3470
|
+
] }), e[29] = V, e[30] = L, e[31] = T, e[32] = R, e[33] = p) : p = e[33];
|
|
3471
|
+
let H;
|
|
3472
|
+
return e[34] !== S || e[35] !== n || e[36] !== U || e[37] !== p ? (H = /* @__PURE__ */ c(ut, { title: U, open: n, onOk: f, okText: "确认", onCancel: S, cancelText: "取消", children: p }), e[34] = S, e[35] = n, e[36] = U, e[37] = p, e[38] = H) : H = e[38], H;
|
|
3464
3473
|
}
|
|
3465
|
-
r(
|
|
3466
|
-
function
|
|
3474
|
+
r(wn, "SaveViewModal");
|
|
3475
|
+
function Fa(t) {
|
|
3467
3476
|
const e = G(16), {
|
|
3468
3477
|
view: l,
|
|
3469
3478
|
editing: n,
|
|
@@ -3494,7 +3503,7 @@ function wa(t) {
|
|
|
3494
3503
|
/* @__PURE__ */ c(et.Item, { required: !1, validateStatus: u.trim() === "" ? "error" : "", help: u.trim() === "" ? "请输入视图名称" : "", style: {
|
|
3495
3504
|
marginBottom: 0,
|
|
3496
3505
|
flex: 1
|
|
3497
|
-
}, children: /* @__PURE__ */ c(Qe, { value: u, onChange: /* @__PURE__ */ r((
|
|
3506
|
+
}, children: /* @__PURE__ */ c(Qe, { value: u, onChange: /* @__PURE__ */ r((O) => d(O.target.value), "onChange") }) }),
|
|
3498
3507
|
/* @__PURE__ */ J(Ce, { orientation: "horizontal", children: [
|
|
3499
3508
|
/* @__PURE__ */ c(_e, { type: "default", size: "small", onClick: h, children: f.viewPanel?.cancelButton || "取消" }),
|
|
3500
3509
|
/* @__PURE__ */ c(_e, { type: "primary", size: "small", onClick: S, children: f.viewPanel?.saveButton || "保存" })
|
|
@@ -3502,7 +3511,7 @@ function wa(t) {
|
|
|
3502
3511
|
] }) : /* @__PURE__ */ J(pe, { align: "center", justify: "space-between", gap: 12, style: {
|
|
3503
3512
|
width: "100%"
|
|
3504
3513
|
}, children: [
|
|
3505
|
-
/* @__PURE__ */ c(
|
|
3514
|
+
/* @__PURE__ */ c(an, { style: {
|
|
3506
3515
|
color: l.source === "SYSTEM" ? "rgba(0,0,0,0.25)" : ""
|
|
3507
3516
|
} }),
|
|
3508
3517
|
/* @__PURE__ */ c("span", { style: {
|
|
@@ -3510,12 +3519,12 @@ function wa(t) {
|
|
|
3510
3519
|
textAlign: "left"
|
|
3511
3520
|
}, children: u }),
|
|
3512
3521
|
l.source === "CUSTOM" ? /* @__PURE__ */ J(Ce, { orientation: "horizontal", children: [
|
|
3513
|
-
/* @__PURE__ */ c(
|
|
3514
|
-
/* @__PURE__ */ c(
|
|
3522
|
+
/* @__PURE__ */ c(al, { onClick: /* @__PURE__ */ r(() => i(l), "onClick") }),
|
|
3523
|
+
/* @__PURE__ */ c(zn, { title: "确认删除此视图?", description: "视图删除后不可恢复,其数据不受影响,是否确认删除?", onConfirm: /* @__PURE__ */ r(() => s(l), "onConfirm"), okText: "确认", cancelText: "取消", children: /* @__PURE__ */ c(ol, {}) })
|
|
3515
3524
|
] }) : /* @__PURE__ */ c(Ot, { children: "系统" })
|
|
3516
3525
|
] }) }), e[7] = n, e[8] = h, e[9] = S, e[10] = f, e[11] = s, e[12] = i, e[13] = l, e[14] = u, e[15] = C) : C = e[15], C;
|
|
3517
3526
|
}
|
|
3518
|
-
r(
|
|
3527
|
+
r(Fa, "ViewManageItem");
|
|
3519
3528
|
function Xt(t) {
|
|
3520
3529
|
const e = G(30), {
|
|
3521
3530
|
viewType: l,
|
|
@@ -3526,7 +3535,7 @@ function Xt(t) {
|
|
|
3526
3535
|
onDeleteView: s
|
|
3527
3536
|
} = t, [u, d] = ee(null);
|
|
3528
3537
|
let f;
|
|
3529
|
-
e[0] !== u?.id ? (f = /* @__PURE__ */ r((
|
|
3538
|
+
e[0] !== u?.id ? (f = /* @__PURE__ */ r((k) => u?.id === k.id, "t0"), e[0] = u?.id, e[1] = f) : f = e[1];
|
|
3530
3539
|
const m = f;
|
|
3531
3540
|
let h;
|
|
3532
3541
|
e[2] !== a ? (h = /* @__PURE__ */ r(() => {
|
|
@@ -3538,50 +3547,50 @@ function Xt(t) {
|
|
|
3538
3547
|
a?.();
|
|
3539
3548
|
}, "t2"), e[4] = a, e[5] = S) : S = e[5];
|
|
3540
3549
|
const C = S;
|
|
3541
|
-
let
|
|
3542
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3550
|
+
let O;
|
|
3551
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ r(() => {
|
|
3543
3552
|
d(null);
|
|
3544
|
-
}, "t3"), e[6] =
|
|
3545
|
-
const
|
|
3546
|
-
let
|
|
3547
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3548
|
-
d(
|
|
3549
|
-
}, "t4"), e[7] =
|
|
3550
|
-
const
|
|
3551
|
-
let
|
|
3552
|
-
e[8] !== s ? (
|
|
3553
|
-
s?.(
|
|
3553
|
+
}, "t3"), e[6] = O) : O = e[6];
|
|
3554
|
+
const P = O;
|
|
3555
|
+
let b;
|
|
3556
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ r((k) => {
|
|
3557
|
+
d(k);
|
|
3558
|
+
}, "t4"), e[7] = b) : b = e[7];
|
|
3559
|
+
const A = b;
|
|
3560
|
+
let x;
|
|
3561
|
+
e[8] !== s ? (x = /* @__PURE__ */ r((k) => {
|
|
3562
|
+
s?.(k, () => {
|
|
3554
3563
|
d(null);
|
|
3555
3564
|
});
|
|
3556
|
-
}, "t5"), e[8] = s, e[9] =
|
|
3557
|
-
const
|
|
3565
|
+
}, "t5"), e[8] = s, e[9] = x) : x = e[9];
|
|
3566
|
+
const D = x;
|
|
3558
3567
|
let w;
|
|
3559
|
-
e[10] !== o ? (w = /* @__PURE__ */ r((
|
|
3560
|
-
o?.(
|
|
3568
|
+
e[10] !== o ? (w = /* @__PURE__ */ r((k) => {
|
|
3569
|
+
o?.(k, () => {
|
|
3561
3570
|
d(null);
|
|
3562
3571
|
});
|
|
3563
3572
|
}, "t6"), e[10] = o, e[11] = w) : w = e[11];
|
|
3564
|
-
const
|
|
3565
|
-
let
|
|
3566
|
-
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3573
|
+
const V = w, U = `${l === "PERSONAL" ? "个人" : "公共"}视图`;
|
|
3574
|
+
let g;
|
|
3575
|
+
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
|
|
3567
3576
|
width: "100%"
|
|
3568
|
-
}, e[12] =
|
|
3569
|
-
let
|
|
3570
|
-
if (e[13] !==
|
|
3571
|
-
let
|
|
3572
|
-
e[18] !==
|
|
3577
|
+
}, e[12] = g) : g = e[12];
|
|
3578
|
+
let F;
|
|
3579
|
+
if (e[13] !== D || e[14] !== V || e[15] !== m || e[16] !== n) {
|
|
3580
|
+
let k;
|
|
3581
|
+
e[18] !== D || e[19] !== V || e[20] !== m ? (k = /* @__PURE__ */ r((v) => /* @__PURE__ */ c(Fa, { editing: m(v), onCancel: P, onDelete: D, onEdit: A, onSave: V, view: v }, v.id), "t102"), e[18] = D, e[19] = V, e[20] = m, e[21] = k) : k = e[21], F = n.map(k), e[13] = D, e[14] = V, e[15] = m, e[16] = n, e[17] = F;
|
|
3573
3582
|
} else
|
|
3574
|
-
|
|
3575
|
-
let
|
|
3576
|
-
e[22] !==
|
|
3583
|
+
F = e[17];
|
|
3584
|
+
let L;
|
|
3585
|
+
e[22] !== F ? (L = /* @__PURE__ */ c(Ce, { orientation: "vertical", size: 12, style: g, children: F }), e[22] = F, e[23] = L) : L = e[23];
|
|
3577
3586
|
let W;
|
|
3578
|
-
return e[24] !== C || e[25] !== _ || e[26] !== i || e[27] !==
|
|
3587
|
+
return e[24] !== C || e[25] !== _ || e[26] !== i || e[27] !== L || e[28] !== U ? (W = /* @__PURE__ */ c(ut, { title: U, open: i, onOk: _, okText: "确定", cancelText: "取消", onCancel: C, children: L }), e[24] = C, e[25] = _, e[26] = i, e[27] = L, e[28] = U, e[29] = W) : W = e[29], W;
|
|
3579
3588
|
}
|
|
3580
3589
|
r(Xt, "ViewManageModal");
|
|
3581
3590
|
const {
|
|
3582
|
-
Header:
|
|
3583
|
-
Sider:
|
|
3584
|
-
Content:
|
|
3591
|
+
Header: Pa,
|
|
3592
|
+
Sider: xa,
|
|
3593
|
+
Content: Va
|
|
3585
3594
|
} = vt;
|
|
3586
3595
|
function $a(t) {
|
|
3587
3596
|
const e = G(112);
|
|
@@ -3611,70 +3620,70 @@ function $a(t) {
|
|
|
3611
3620
|
}, e[14] = n, e[15] = i, e[16] = a, e[17] = S) : S = e[17];
|
|
3612
3621
|
const {
|
|
3613
3622
|
activeView: C,
|
|
3614
|
-
showFilter:
|
|
3615
|
-
setShowFilter:
|
|
3616
|
-
showViewPanel:
|
|
3617
|
-
setShowViewPanel:
|
|
3618
|
-
viewChanged:
|
|
3619
|
-
columns:
|
|
3623
|
+
showFilter: O,
|
|
3624
|
+
setShowFilter: P,
|
|
3625
|
+
showViewPanel: b,
|
|
3626
|
+
setShowViewPanel: A,
|
|
3627
|
+
viewChanged: x,
|
|
3628
|
+
columns: D,
|
|
3620
3629
|
setColumns: w,
|
|
3621
|
-
activeFilters:
|
|
3622
|
-
setActiveFilters:
|
|
3623
|
-
page:
|
|
3624
|
-
setPage:
|
|
3625
|
-
pageSize:
|
|
3630
|
+
activeFilters: V,
|
|
3631
|
+
setActiveFilters: U,
|
|
3632
|
+
page: g,
|
|
3633
|
+
setPage: F,
|
|
3634
|
+
pageSize: L,
|
|
3626
3635
|
setPageSize: W,
|
|
3627
|
-
tableSize:
|
|
3636
|
+
tableSize: k,
|
|
3628
3637
|
setTableSize: v,
|
|
3629
3638
|
condition: T,
|
|
3630
3639
|
setCondition: E,
|
|
3631
3640
|
sorter: N,
|
|
3632
3641
|
setSorter: I,
|
|
3633
|
-
onSwitchView:
|
|
3642
|
+
onSwitchView: R,
|
|
3634
3643
|
views: p,
|
|
3635
|
-
setViews:
|
|
3644
|
+
setViews: H,
|
|
3636
3645
|
reset: y
|
|
3637
|
-
} =
|
|
3646
|
+
} = ka(S);
|
|
3638
3647
|
let B;
|
|
3639
3648
|
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = [], e[18] = B) : B = e[18];
|
|
3640
|
-
const [
|
|
3649
|
+
const [$, M] = ee(B), K = Oe(null), q = Oe(null);
|
|
3641
3650
|
let te;
|
|
3642
|
-
e[19] !== o || e[20] !== f || e[21] !==
|
|
3651
|
+
e[19] !== o || e[20] !== f || e[21] !== H || e[22] !== R || e[23] !== p ? (te = /* @__PURE__ */ r((le, de) => {
|
|
3643
3652
|
o?.(le, (Ie) => {
|
|
3644
|
-
|
|
3653
|
+
H([...p, Ie]), R(Ie), f?.(Ie), de?.();
|
|
3645
3654
|
});
|
|
3646
|
-
}, "t3"), e[19] = o, e[20] = f, e[21] =
|
|
3655
|
+
}, "t3"), e[19] = o, e[20] = f, e[21] = H, e[22] = R, e[23] = p, e[24] = te) : te = e[24];
|
|
3647
3656
|
const X = te;
|
|
3648
3657
|
let j;
|
|
3649
|
-
e[25] !== m || e[26] !==
|
|
3658
|
+
e[25] !== m || e[26] !== H || e[27] !== R || e[28] !== p ? (j = /* @__PURE__ */ r((le, de) => {
|
|
3650
3659
|
m?.(le, (Ie) => {
|
|
3651
|
-
|
|
3660
|
+
H(p.map((xe) => xe.id === Ie.id ? Ie : xe)), R(Ie), de?.();
|
|
3652
3661
|
});
|
|
3653
|
-
}, "t4"), e[25] = m, e[26] =
|
|
3662
|
+
}, "t4"), e[25] = m, e[26] = H, e[27] = R, e[28] = p, e[29] = j) : j = e[29];
|
|
3654
3663
|
const Z = j;
|
|
3655
3664
|
let Y;
|
|
3656
|
-
e[30] !== C.id || e[31] !== s || e[32] !== f || e[33] !==
|
|
3665
|
+
e[30] !== C.id || e[31] !== s || e[32] !== f || e[33] !== H || e[34] !== R || e[35] !== p ? (Y = /* @__PURE__ */ r((le, de) => {
|
|
3657
3666
|
s?.(le, (Ie) => {
|
|
3658
|
-
|
|
3667
|
+
H(p.filter((xe) => xe.id !== Ie.id)), C.id === Ie.id && (R(p[0]), f?.(p[0])), de?.();
|
|
3659
3668
|
});
|
|
3660
|
-
}, "t5"), e[30] = C.id, e[31] = s, e[32] = f, e[33] =
|
|
3669
|
+
}, "t5"), e[30] = C.id, e[31] = s, e[32] = f, e[33] = H, e[34] = R, e[35] = p, e[36] = Y) : Y = e[36];
|
|
3661
3670
|
const Q = Y;
|
|
3662
3671
|
let fe;
|
|
3663
|
-
e[37] !==
|
|
3664
|
-
|
|
3665
|
-
}, "t6"), e[37] =
|
|
3666
|
-
const
|
|
3667
|
-
let
|
|
3668
|
-
e[39] !== f || e[40] !==
|
|
3669
|
-
|
|
3670
|
-
}, "t7"), e[39] = f, e[40] =
|
|
3671
|
-
const ue =
|
|
3672
|
+
e[37] !== A ? (fe = /* @__PURE__ */ r((le) => {
|
|
3673
|
+
A(le);
|
|
3674
|
+
}, "t6"), e[37] = A, e[38] = fe) : fe = e[38];
|
|
3675
|
+
const re = fe;
|
|
3676
|
+
let oe;
|
|
3677
|
+
e[39] !== f || e[40] !== R ? (oe = /* @__PURE__ */ r((le) => {
|
|
3678
|
+
R(le), f?.(le);
|
|
3679
|
+
}, "t7"), e[39] = f, e[40] = R, e[41] = oe) : oe = e[41];
|
|
3680
|
+
const ue = oe;
|
|
3672
3681
|
let ne;
|
|
3673
3682
|
e[42] !== d || e[43] !== y ? (ne = /* @__PURE__ */ r(() => {
|
|
3674
3683
|
const le = y();
|
|
3675
3684
|
K.current?.reset(), d?.(le.condition, 1, le.pageSize, le.sorter);
|
|
3676
3685
|
}, "t8"), e[42] = d, e[43] = y, e[44] = ne) : ne = e[44];
|
|
3677
|
-
const
|
|
3686
|
+
const ae = ne;
|
|
3678
3687
|
let Se;
|
|
3679
3688
|
e[45] !== d ? (Se = /* @__PURE__ */ r((le, de, Ie, xe) => {
|
|
3680
3689
|
d?.(le, de, Ie, xe), K.current?.clearSelectedRowKeys();
|
|
@@ -3687,30 +3696,30 @@ function $a(t) {
|
|
|
3687
3696
|
}, "clearSelectedRowKeys"),
|
|
3688
3697
|
getCondition: /* @__PURE__ */ r(() => K.current?.getCondition(), "getCondition")
|
|
3689
3698
|
}), "t10"), e[47] = he) : he = e[47], be(_, he);
|
|
3690
|
-
let
|
|
3691
|
-
e[48] !== C || e[49] !== a.countUrl || e[50] !== a.name || e[51] !== X || e[52] !== Q || e[53] !==
|
|
3699
|
+
let se;
|
|
3700
|
+
e[48] !== C || e[49] !== a.countUrl || e[50] !== a.name || e[51] !== X || e[52] !== Q || e[53] !== re || e[54] !== ue || e[55] !== Z || e[56] !== u || e[57] !== b || e[58] !== p ? (se = b && /* @__PURE__ */ c(xa, { className: Ke.userViews, width: 220, children: /* @__PURE__ */ c(Ra, { name: a.name, views: p, activeView: C, countUrl: a.countUrl, onSwitchView: ue, onShowViewPanelChange: re, onGetRecordCount: u, onCreateView: X, onUpdateView: Z, onDeleteView: Q }) }), e[48] = C, e[49] = a.countUrl, e[50] = a.name, e[51] = X, e[52] = Q, e[53] = re, e[54] = ue, e[55] = Z, e[56] = u, e[57] = b, e[58] = p, e[59] = se) : se = e[59];
|
|
3692
3701
|
let ce;
|
|
3693
3702
|
e[60] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ce = {
|
|
3694
3703
|
display: "flex"
|
|
3695
3704
|
}, e[60] = ce) : ce = e[60];
|
|
3696
3705
|
let ie;
|
|
3697
|
-
e[61] !== C || e[62] !== a.name || e[63] !== X || e[64] !== Q || e[65] !==
|
|
3706
|
+
e[61] !== C || e[62] !== a.name || e[63] !== X || e[64] !== Q || e[65] !== ae || e[66] !== Z || e[67] !== h.batchActions || e[68] !== h.primaryAction || e[69] !== h.secondaryActions || e[70] !== P || e[71] !== A || e[72] !== v || e[73] !== O || e[74] !== b || e[75] !== $ || e[76] !== x || e[77] !== p ? (ie = /* @__PURE__ */ c(Pa, { className: Ke.topBar, children: /* @__PURE__ */ c(sa, { tableSelectedItems: $, title: a.name, activeView: C, views: p, defaultTableSize: C.tableSize, primaryAction: h.primaryAction, secondaryActions: h.secondaryActions, batchActions: h.batchActions, viewChanged: x, onReset: ae, showViewPanel: b, showFilter: O, onShowFilterChange: P, onShowViewPanelChange: A, onTableSizeChange: v, onCreateView: X, onUpdateView: Z, onDeleteView: Q, fullscreenTarget: q }) }), e[61] = C, e[62] = a.name, e[63] = X, e[64] = Q, e[65] = ae, e[66] = Z, e[67] = h.batchActions, e[68] = h.primaryAction, e[69] = h.secondaryActions, e[70] = P, e[71] = A, e[72] = v, e[73] = O, e[74] = b, e[75] = $, e[76] = x, e[77] = p, e[78] = ie) : ie = e[78];
|
|
3698
3707
|
const Te = h.enableRowSelection ?? !0;
|
|
3699
3708
|
let Ne;
|
|
3700
|
-
e[79] !==
|
|
3709
|
+
e[79] !== V || e[80] !== C.id || e[81] !== D || e[82] !== T || e[83] !== a.availableFilters || e[84] !== a.fields || e[85] !== me || e[86] !== h.actionColumn || e[87] !== h.dataSource || e[88] !== h.loading || e[89] !== h.onClickPrimaryKey || e[90] !== h.pagination || e[91] !== h.viewTableSetting || e[92] !== g || e[93] !== L || e[94] !== U || e[95] !== w || e[96] !== E || e[97] !== F || e[98] !== W || e[99] !== I || e[100] !== v || e[101] !== O || e[102] !== N || e[103] !== Te || e[104] !== k ? (Ne = /* @__PURE__ */ c(ma, { ref: K, fields: a.fields, availableFilters: a.availableFilters, dataSource: h.dataSource, enableRowSelection: Te, loading: h.loading, filterMode: "editable", pagination: h.pagination, showFilter: O, viewTableSetting: h.viewTableSetting, actionColumn: h.actionColumn, onClickPrimaryKey: h.onClickPrimaryKey, onSelectedDataChange: M, defaultActiveFilters: V, externalActiveFilters: V, externalUpdateActiveFilters: U, defaultColumns: D, externalColumns: D, externalUpdateColumns: w, defaultPage: g, externalPage: g, externalUpdatePage: F, defaultPageSize: L, externalPageSize: L, externalUpdatePageSize: W, defaultTableSize: k, externalTableSize: k, externalUpdateTableSize: v, defaultCondition: T, externalCondition: T, externalUpdateCondition: E, defaultSorter: N, externalSorter: N, externalUpdateSorter: I, onChange: me }, C.id), e[79] = V, e[80] = C.id, e[81] = D, e[82] = T, e[83] = a.availableFilters, e[84] = a.fields, e[85] = me, e[86] = h.actionColumn, e[87] = h.dataSource, e[88] = h.loading, e[89] = h.onClickPrimaryKey, e[90] = h.pagination, e[91] = h.viewTableSetting, e[92] = g, e[93] = L, e[94] = U, e[95] = w, e[96] = E, e[97] = F, e[98] = W, e[99] = I, e[100] = v, e[101] = O, e[102] = N, e[103] = Te, e[104] = k, e[105] = Ne) : Ne = e[105];
|
|
3701
3710
|
let ye;
|
|
3702
|
-
e[106] !== ie || e[107] !== Ne ? (ye = /* @__PURE__ */ c(vt, { className: Ke.container, children: /* @__PURE__ */ c(
|
|
3711
|
+
e[106] !== ie || e[107] !== Ne ? (ye = /* @__PURE__ */ c(vt, { className: Ke.container, children: /* @__PURE__ */ c(Va, { children: /* @__PURE__ */ J(Ce, { orientation: "vertical", style: ce, size: "small", children: [
|
|
3703
3712
|
ie,
|
|
3704
3713
|
Ne
|
|
3705
3714
|
] }) }) }), e[106] = ie, e[107] = Ne, e[108] = ye) : ye = e[108];
|
|
3706
3715
|
let Le;
|
|
3707
|
-
return e[109] !==
|
|
3708
|
-
|
|
3716
|
+
return e[109] !== se || e[110] !== ye ? (Le = /* @__PURE__ */ J(vt, { ref: q, children: [
|
|
3717
|
+
se,
|
|
3709
3718
|
ye
|
|
3710
|
-
] }), e[109] =
|
|
3719
|
+
] }), e[109] = se, e[110] = ye, e[111] = Le) : Le = e[111], Le;
|
|
3711
3720
|
}
|
|
3712
3721
|
r($a, "Viewer");
|
|
3713
|
-
function
|
|
3722
|
+
function ka({
|
|
3714
3723
|
defaultShowFilter: t = !0,
|
|
3715
3724
|
defaultShowViewPanel: e = !0,
|
|
3716
3725
|
...l
|
|
@@ -3720,26 +3729,26 @@ function Va({
|
|
|
3720
3729
|
setColumns: _,
|
|
3721
3730
|
page: S,
|
|
3722
3731
|
setPage: C,
|
|
3723
|
-
pageSize:
|
|
3724
|
-
setPageSize:
|
|
3725
|
-
activeFilters:
|
|
3726
|
-
setActiveFilters:
|
|
3727
|
-
tableSize:
|
|
3728
|
-
setTableSize:
|
|
3732
|
+
pageSize: O,
|
|
3733
|
+
setPageSize: P,
|
|
3734
|
+
activeFilters: b,
|
|
3735
|
+
setActiveFilters: A,
|
|
3736
|
+
tableSize: x,
|
|
3737
|
+
setTableSize: D,
|
|
3729
3738
|
condition: w,
|
|
3730
|
-
setCondition:
|
|
3731
|
-
sorter:
|
|
3732
|
-
setSorter:
|
|
3733
|
-
} =
|
|
3739
|
+
setCondition: V,
|
|
3740
|
+
sorter: U,
|
|
3741
|
+
setSorter: g
|
|
3742
|
+
} = An({
|
|
3734
3743
|
defaultColumns: o.columns,
|
|
3735
3744
|
defaultPageSize: o.pageSize,
|
|
3736
3745
|
defaultActiveFilters: o.filters,
|
|
3737
3746
|
defaultTableSize: o.tableSize,
|
|
3738
3747
|
defaultCondition: o.condition,
|
|
3739
3748
|
defaultSorter: o.sorter
|
|
3740
|
-
}), [
|
|
3749
|
+
}), [F, L] = ee(!1);
|
|
3741
3750
|
return Ae(() => {
|
|
3742
|
-
|
|
3751
|
+
L(!Lt(o, n.current));
|
|
3743
3752
|
}, [o]), {
|
|
3744
3753
|
activeView: o,
|
|
3745
3754
|
showFilter: u,
|
|
@@ -3759,133 +3768,133 @@ function Va({
|
|
|
3759
3768
|
}, "setColumnsFn"),
|
|
3760
3769
|
page: S,
|
|
3761
3770
|
setPage: C,
|
|
3762
|
-
pageSize:
|
|
3771
|
+
pageSize: O,
|
|
3763
3772
|
setPageSize: /* @__PURE__ */ r((y) => {
|
|
3764
|
-
|
|
3773
|
+
P(y), s({
|
|
3765
3774
|
...o,
|
|
3766
3775
|
pageSize: y
|
|
3767
3776
|
});
|
|
3768
3777
|
}, "setPageSizeFn"),
|
|
3769
|
-
activeFilters:
|
|
3778
|
+
activeFilters: b,
|
|
3770
3779
|
setActiveFilters: /* @__PURE__ */ r((y) => {
|
|
3771
|
-
|
|
3780
|
+
A(y), s({
|
|
3772
3781
|
...o,
|
|
3773
3782
|
filters: y
|
|
3774
3783
|
});
|
|
3775
3784
|
}, "setActiveFiltersFn"),
|
|
3776
|
-
tableSize:
|
|
3785
|
+
tableSize: x,
|
|
3777
3786
|
setTableSize: /* @__PURE__ */ r((y) => {
|
|
3778
|
-
|
|
3787
|
+
D(y), s({
|
|
3779
3788
|
...o,
|
|
3780
3789
|
tableSize: y
|
|
3781
3790
|
});
|
|
3782
3791
|
}, "setTableSizeFn"),
|
|
3783
3792
|
condition: w,
|
|
3784
3793
|
setCondition: /* @__PURE__ */ r((y, B) => {
|
|
3785
|
-
|
|
3786
|
-
const
|
|
3787
|
-
const K = B.get(
|
|
3794
|
+
V(y);
|
|
3795
|
+
const $ = b.map((M) => {
|
|
3796
|
+
const K = B.get(M.key);
|
|
3788
3797
|
return K ? {
|
|
3789
|
-
...
|
|
3798
|
+
...M,
|
|
3790
3799
|
value: { defaultValue: K.value },
|
|
3791
3800
|
operator: { defaultValue: K.operator }
|
|
3792
3801
|
} : {
|
|
3793
|
-
...
|
|
3802
|
+
...M,
|
|
3794
3803
|
value: null,
|
|
3795
3804
|
operator: null
|
|
3796
3805
|
};
|
|
3797
3806
|
});
|
|
3798
|
-
|
|
3807
|
+
A($), s({
|
|
3799
3808
|
...o,
|
|
3800
3809
|
condition: y,
|
|
3801
|
-
filters:
|
|
3810
|
+
filters: $
|
|
3802
3811
|
});
|
|
3803
3812
|
}, "setConditionFn"),
|
|
3804
|
-
sorter:
|
|
3813
|
+
sorter: U,
|
|
3805
3814
|
setSorter: /* @__PURE__ */ r((y) => {
|
|
3806
|
-
|
|
3807
|
-
const B = h.map((
|
|
3808
|
-
const K = y.find((q) => q.field ==
|
|
3815
|
+
g(y);
|
|
3816
|
+
const B = h.map((M) => {
|
|
3817
|
+
const K = y.find((q) => q.field == M.name);
|
|
3809
3818
|
return K ? {
|
|
3810
|
-
...
|
|
3819
|
+
...M,
|
|
3811
3820
|
sortOrder: K.direction === "ASC" ? "ascend" : "descend"
|
|
3812
|
-
} : { ...
|
|
3821
|
+
} : { ...M, sortOrder: null };
|
|
3813
3822
|
});
|
|
3814
3823
|
_(B);
|
|
3815
|
-
const
|
|
3824
|
+
const $ = {
|
|
3816
3825
|
...o,
|
|
3817
3826
|
sorter: y,
|
|
3818
3827
|
columns: B
|
|
3819
3828
|
};
|
|
3820
|
-
s(
|
|
3829
|
+
s($);
|
|
3821
3830
|
}, "setSorterFn"),
|
|
3822
|
-
viewChanged:
|
|
3831
|
+
viewChanged: F,
|
|
3823
3832
|
views: i,
|
|
3824
3833
|
setViews: a,
|
|
3825
3834
|
onSwitchView: /* @__PURE__ */ r((y) => {
|
|
3826
|
-
n.current = y, s(y), C(1),
|
|
3835
|
+
n.current = y, s(y), C(1), P(y.pageSize), _(y.columns), V(y.condition || je()), A(y.filters), D(y.tableSize), g(y.sorter || []);
|
|
3827
3836
|
}, "onSwitchViewFn"),
|
|
3828
|
-
reset: /* @__PURE__ */ r(() => (s(n.current), C(1),
|
|
3837
|
+
reset: /* @__PURE__ */ r(() => (s(n.current), C(1), P(n.current.pageSize), _(n.current.columns), A(n.current.filters), V(n.current.condition || je()), D(n.current.tableSize), g(n.current.sorter || []), n.current), "resetFn")
|
|
3829
3838
|
};
|
|
3830
3839
|
}
|
|
3831
|
-
r(
|
|
3840
|
+
r(ka, "useViewerState");
|
|
3832
3841
|
export {
|
|
3833
3842
|
Bi as ACTIONS_CELL_TYPE,
|
|
3834
3843
|
zi as ACTION_CELL_TYPE,
|
|
3835
3844
|
ji as AVATAR_CELL_TYPE,
|
|
3836
3845
|
nt as ActionCell,
|
|
3837
|
-
|
|
3846
|
+
Ln as ActionsCell,
|
|
3838
3847
|
He as AssemblyFilter,
|
|
3839
|
-
|
|
3848
|
+
jr as AutoRefreshBarItem,
|
|
3840
3849
|
Xl as AvailableFilterSelect,
|
|
3841
3850
|
Jl as AvailableFilterSelectModal,
|
|
3842
3851
|
qi as AvatarCell,
|
|
3843
3852
|
yi as BOOL_FILTER,
|
|
3844
3853
|
Pe as BarItem,
|
|
3845
|
-
|
|
3854
|
+
Sn as BoolFilter,
|
|
3846
3855
|
tr as CALENDAR_CELL_TYPE,
|
|
3847
3856
|
Ir as CURRENCY_CELL_TYPE,
|
|
3848
3857
|
lr as CalendarTimeCell,
|
|
3849
|
-
|
|
3858
|
+
Zr as ColumnHeightBarItem,
|
|
3850
3859
|
Nr as CurrencyCell,
|
|
3851
3860
|
er as DATETIME_CELL_TYPE,
|
|
3852
3861
|
nr as DEFAULT_CALENDAR_FORMATS,
|
|
3853
|
-
|
|
3862
|
+
pn as DEFAULT_CONDITION,
|
|
3854
3863
|
Fe as DEFAULT_CURRENCY_FORMAT_OPTIONS,
|
|
3855
3864
|
it as DEFAULT_DATE_TIME_FORMAT,
|
|
3856
|
-
|
|
3865
|
+
On as DateTimeCell,
|
|
3857
3866
|
Mi as EditableFilterPanel,
|
|
3858
3867
|
qe as ExtendedOperator,
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3868
|
+
vn as FallbackFilter,
|
|
3869
|
+
Za as FetcherViewer,
|
|
3870
|
+
ea as FilterBarItem,
|
|
3871
|
+
Nn as FilterPanel,
|
|
3863
3872
|
bl as Fullscreen,
|
|
3864
|
-
|
|
3873
|
+
ta as FullscreenBarItem,
|
|
3865
3874
|
ui as ID_FILTER,
|
|
3866
3875
|
cr as IMAGE_CELL_TYPE,
|
|
3867
3876
|
fr as IMAGE_GROUP_CELL_TYPE,
|
|
3868
|
-
|
|
3877
|
+
_n as IdFilter,
|
|
3869
3878
|
fi as IdOnOperatorChangeValueConverter,
|
|
3870
3879
|
ur as ImageCell,
|
|
3871
3880
|
dr as ImageGroupCell,
|
|
3872
3881
|
hr as LINK_CELL_TYPE,
|
|
3873
3882
|
Er as LinkCell,
|
|
3874
3883
|
di as NUMBER_FILTER,
|
|
3875
|
-
|
|
3884
|
+
Tn as NumberFilter,
|
|
3876
3885
|
Ti as NumberOnOperatorChangeValueConverter,
|
|
3877
3886
|
Il as NumberRange,
|
|
3878
3887
|
yl as NumberTagValueItemSerializer,
|
|
3879
3888
|
Gl as OPERATOR_zh_CN,
|
|
3880
|
-
|
|
3881
|
-
|
|
3889
|
+
na as Point,
|
|
3890
|
+
la as RefreshDataBarItem,
|
|
3882
3891
|
Ol as RemoteSelect,
|
|
3883
3892
|
Pi as RemovableTypedFilter,
|
|
3884
3893
|
Si as SELECT_FILTER,
|
|
3885
|
-
|
|
3886
|
-
|
|
3894
|
+
wn as SaveViewModal,
|
|
3895
|
+
En as SelectFilter,
|
|
3887
3896
|
Ci as SelectOnOperatorChangeValueConverter,
|
|
3888
|
-
|
|
3897
|
+
ia as ShareLinkBarItem,
|
|
3889
3898
|
Cl as StringTagValueItemSerializer,
|
|
3890
3899
|
or as TAGS_CELL_TYPE,
|
|
3891
3900
|
ar as TAG_CELL_TYPE,
|
|
@@ -3893,34 +3902,34 @@ export {
|
|
|
3893
3902
|
si as TEXT_FILTER,
|
|
3894
3903
|
Wt as TableFieldItem,
|
|
3895
3904
|
Fr as TableSettingPanel,
|
|
3896
|
-
|
|
3905
|
+
Rn as TagCell,
|
|
3897
3906
|
mt as TagInput,
|
|
3898
3907
|
sr as TagsCell,
|
|
3899
|
-
|
|
3900
|
-
|
|
3908
|
+
bn as TextCell,
|
|
3909
|
+
hn as TextFilter,
|
|
3901
3910
|
ci as TextOnOperatorChangeValueConverter,
|
|
3902
|
-
|
|
3911
|
+
sa as TopBar,
|
|
3903
3912
|
ti as TrueValidateValue,
|
|
3904
3913
|
ot as TypedComponentRegistry,
|
|
3905
3914
|
At as TypedFilter,
|
|
3906
3915
|
Rt as VIEWER_BOUNDED_CONTEXT_ALIAS,
|
|
3907
|
-
|
|
3916
|
+
ma as View,
|
|
3908
3917
|
Ye as ViewAggregatedFields,
|
|
3909
3918
|
De as ViewCommandClient,
|
|
3910
3919
|
wl as ViewCommandEndpointPaths,
|
|
3911
3920
|
Pl as ViewDomainEventTypeMapTitle,
|
|
3912
|
-
|
|
3921
|
+
ba as ViewItem,
|
|
3913
3922
|
Qt as ViewItemGroup,
|
|
3914
|
-
|
|
3923
|
+
Fa as ViewManageItem,
|
|
3915
3924
|
Xt as ViewManageModal,
|
|
3916
|
-
|
|
3917
|
-
|
|
3925
|
+
Ra as ViewPanel,
|
|
3926
|
+
$t as ViewStreamCommandClient,
|
|
3918
3927
|
Br as ViewTable,
|
|
3919
3928
|
$a as Viewer,
|
|
3920
3929
|
kl as ViewerDefinitionAggregatedFields,
|
|
3921
|
-
|
|
3930
|
+
Vl as ViewerDefinitionDomainEventTypeMapTitle,
|
|
3922
3931
|
Lr as cellRegistry,
|
|
3923
|
-
|
|
3932
|
+
Ja as currentTimeZone,
|
|
3924
3933
|
Lt as deepEqual,
|
|
3925
3934
|
bi as filterRegistry,
|
|
3926
3935
|
Cr as formatCurrency,
|
|
@@ -3932,17 +3941,17 @@ export {
|
|
|
3932
3941
|
Hr as mapToTableRecord,
|
|
3933
3942
|
Wi as parseDayjs,
|
|
3934
3943
|
Or as typedCellRender,
|
|
3935
|
-
|
|
3944
|
+
An as useActiveViewState,
|
|
3936
3945
|
Hl as useFetchData,
|
|
3937
3946
|
ai as useFilterState,
|
|
3938
3947
|
we as useLocale,
|
|
3939
3948
|
wt as useRefreshDataEventBus,
|
|
3940
|
-
|
|
3949
|
+
Ca as useViewState,
|
|
3941
3950
|
Wr as useViewTableState,
|
|
3942
3951
|
gl as useViewerDefinition,
|
|
3943
|
-
|
|
3952
|
+
ka as useViewerState,
|
|
3944
3953
|
Ul as useViewerViews,
|
|
3945
|
-
|
|
3946
|
-
|
|
3954
|
+
Xa as viewQueryClientFactory,
|
|
3955
|
+
$l as viewerDefinitionQueryClientFactory
|
|
3947
3956
|
};
|
|
3948
3957
|
//# sourceMappingURL=index.es.js.map
|