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