@ahoo-wang/fetcher-viewer 3.8.2 → 3.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +271 -256
- 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/index.d.ts +7 -4
- package/dist/topbar/index.d.ts.map +1 -1
- package/dist/viewer/index.d.ts +1 -1
- package/dist/viewer/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,129 +1,27 @@
|
|
|
1
1
|
var Zt = Object.defineProperty;
|
|
2
2
|
var a = (t, e) => Zt(t, "name", { value: e, configurable: !0 });
|
|
3
|
-
import {
|
|
3
|
+
import { jsx as u, jsxs as H, Fragment as Z } from "react/jsx-runtime";
|
|
4
4
|
import { c as P } from "react/compiler-runtime";
|
|
5
|
-
import {
|
|
5
|
+
import { Select as Ue, InputNumber as Ye, Space as le, Input as ut, Button as Q, Typography as De, Flex as qt, Checkbox as It, Modal as Qt, DatePicker as et, Alert as Jt, Col as ht, Row as en, Dropdown as Se, Avatar as tt, Tag as tn, Image as rt, Empty as At, Badge as nn, message as ln, Layout as it, Pagination as rn, Table as an, Popover as sn } from "antd";
|
|
6
6
|
import $t, { useState as J, useImperativeHandle as Ie, useEffect as Nt, useRef as ft, createElement as on, createContext as cn, useContext as un, useReducer as fn } from "react";
|
|
7
7
|
import { useDebouncedExecutePromise as dn, useFullscreen as Ot, useRefs as mn, useRequestId as hn, useDebouncedFetcherQuery as vn } from "@ahoo-wang/fetcher-react";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { FullscreenOutlined as Ft, FullscreenExitOutlined as xt, MinusOutlined as yn, ClearOutlined as gn, SearchOutlined as _n, DownOutlined as Be, DragOutlined as bn, FilterOutlined as En, ReloadOutlined as Tn, ColumnHeightOutlined as Sn, LinkOutlined as Cn, SettingOutlined as pn } from "@ant-design/icons";
|
|
9
|
+
import { EMPTY_VALUE_OPERATORS as Dn, Operator as p, and as In, all as vt, SortDirection as He } from "@ahoo-wang/fetcher-wow";
|
|
10
10
|
const An = {
|
|
11
|
-
AND: "与",
|
|
12
|
-
OR: "或",
|
|
13
|
-
NOR: "非或",
|
|
14
|
-
ID: "等于",
|
|
15
|
-
IDS: "包含任一",
|
|
16
|
-
AGGREGATE_ID: "等于",
|
|
17
|
-
AGGREGATE_IDS: "包含任一",
|
|
18
|
-
TENANT_ID: "等于",
|
|
19
|
-
OWNER_ID: "等于",
|
|
20
|
-
DELETED: "已删除",
|
|
21
|
-
ALL: "全部",
|
|
22
|
-
EQ: "等于",
|
|
23
|
-
NE: "不等于",
|
|
24
|
-
GT: "大于",
|
|
25
|
-
LT: "小于",
|
|
26
|
-
GTE: "大于等于",
|
|
27
|
-
LTE: "小于等于",
|
|
28
|
-
CONTAINS: "包含",
|
|
29
|
-
IN: "包含任一",
|
|
30
|
-
NOT_IN: "不包含任一",
|
|
31
|
-
BETWEEN: "介于",
|
|
32
|
-
ALL_IN: "全部包含",
|
|
33
|
-
STARTS_WITH: "以...开头",
|
|
34
|
-
ENDS_WITH: "以...结尾",
|
|
35
|
-
ELEM_MATCH: "元素匹配",
|
|
36
|
-
NULL: "为空",
|
|
37
|
-
NOT_NULL: "不为空",
|
|
38
|
-
TRUE: "是",
|
|
39
|
-
FALSE: "否",
|
|
40
|
-
EXISTS: "存在",
|
|
41
|
-
TODAY: "今天",
|
|
42
|
-
BEFORE_TODAY: "今天之前",
|
|
43
|
-
TOMORROW: "明天",
|
|
44
|
-
THIS_WEEK: "本周",
|
|
45
|
-
NEXT_WEEK: "下周",
|
|
46
|
-
LAST_WEEK: "上周",
|
|
47
|
-
THIS_MONTH: "本月",
|
|
48
|
-
LAST_MONTH: "上月",
|
|
49
|
-
RECENT_DAYS: "最近几天",
|
|
50
|
-
EARLIER_DAYS: "几天前",
|
|
51
|
-
RAW: "原始查询",
|
|
52
|
-
UNDEFINED: "未设置"
|
|
53
|
-
};
|
|
54
|
-
var Ce = /* @__PURE__ */ ((t) => (t.UNDEFINED = "UNDEFINED", t))(Ce || {});
|
|
55
|
-
const $n = [];
|
|
56
|
-
function Nn(t) {
|
|
57
|
-
const e = P(22), {
|
|
58
|
-
filters: l,
|
|
59
|
-
activeFilters: n,
|
|
60
|
-
ref: i
|
|
61
|
-
} = t, r = n === void 0 ? $n : n;
|
|
62
|
-
let s;
|
|
63
|
-
e[0] !== r ? (s = r?.map(On).sort(), e[0] = r, e[1] = s) : s = e[1];
|
|
64
|
-
const o = s, [c, f] = J(o);
|
|
65
|
-
let m;
|
|
66
|
-
e[2] !== r || e[3] !== t.filters || e[4] !== c ? (m = /* @__PURE__ */ a(() => ({
|
|
67
|
-
getValue() {
|
|
68
|
-
return t.filters.flatMap((w) => w.filters.filter((O) => c.includes(O.field.name) && !r.some(($) => $.field.name === O.field.name)));
|
|
69
|
-
}
|
|
70
|
-
}), "t2"), e[2] = r, e[3] = t.filters, e[4] = c, e[5] = m) : m = e[5], Ie(i, m);
|
|
71
|
-
let d;
|
|
72
|
-
e[6] !== c ? (d = /* @__PURE__ */ a((w, O) => {
|
|
73
|
-
f(O ? [...c, w.field.name] : c.filter(($) => $ !== w.field.name));
|
|
74
|
-
}, "t3"), e[6] = c, e[7] = d) : d = e[7];
|
|
75
|
-
const h = d;
|
|
76
|
-
let v, _;
|
|
77
|
-
e[8] !== o ? (v = /* @__PURE__ */ a(() => {
|
|
78
|
-
f(o);
|
|
79
|
-
}, "t4"), _ = [o], e[8] = o, e[9] = v, e[10] = _) : (v = e[9], _ = e[10]), Nt(v, _);
|
|
80
|
-
let A;
|
|
81
|
-
if (e[11] !== r || e[12] !== l || e[13] !== h || e[14] !== c) {
|
|
82
|
-
let w;
|
|
83
|
-
e[16] !== r || e[17] !== h || e[18] !== c ? (w = /* @__PURE__ */ a((O) => /* @__PURE__ */ H("div", { children: [
|
|
84
|
-
/* @__PURE__ */ u(De.Title, { level: 5, children: O.label }),
|
|
85
|
-
/* @__PURE__ */ u(qt, { gap: "middle", wrap: !0, children: O.filters.map(($) => /* @__PURE__ */ u(It, { checked: c.includes($.field.name), onChange: /* @__PURE__ */ a((F) => {
|
|
86
|
-
h($, F.target.checked);
|
|
87
|
-
}, "onChange"), disabled: r.some((F) => F.field.name === $.field.name), children: $.field.label }, $.field.name)) })
|
|
88
|
-
] }, O.label), "t72"), e[16] = r, e[17] = h, e[18] = c, e[19] = w) : w = e[19], A = l.map(w), e[11] = r, e[12] = l, e[13] = h, e[14] = c, e[15] = A;
|
|
89
|
-
} else
|
|
90
|
-
A = e[15];
|
|
91
|
-
let x;
|
|
92
|
-
return e[20] !== A ? (x = /* @__PURE__ */ u(Z, { children: A }), e[20] = A, e[21] = x) : x = e[21], x;
|
|
93
|
-
}
|
|
94
|
-
a(Nn, "AvailableFilterSelect");
|
|
95
|
-
function On(t) {
|
|
96
|
-
return t.field.name;
|
|
97
|
-
}
|
|
98
|
-
a(On, "_temp$9");
|
|
99
|
-
function Fn(t) {
|
|
100
|
-
const e = P(8), l = ft(null);
|
|
101
|
-
let n;
|
|
102
|
-
e[0] !== t ? (n = /* @__PURE__ */ a(() => {
|
|
103
|
-
t?.onSave?.(l.current?.getValue() ?? []);
|
|
104
|
-
}, "t0"), e[0] = t, e[1] = n) : n = e[1];
|
|
105
|
-
const i = n;
|
|
106
|
-
let r;
|
|
107
|
-
e[2] !== t.availableFilters ? (r = /* @__PURE__ */ u(Nn, { ...t.availableFilters, ref: l }), e[2] = t.availableFilters, e[3] = r) : r = e[3];
|
|
108
|
-
let s;
|
|
109
|
-
return e[4] !== i || e[5] !== t || e[6] !== r ? (s = /* @__PURE__ */ u(Qt, { ...t, onOk: i, children: r }), e[4] = i, e[5] = t, e[6] = r, e[7] = s) : s = e[7], s;
|
|
110
|
-
}
|
|
111
|
-
a(Fn, "AvailableFilterSelectModal");
|
|
112
|
-
const xn = {
|
|
113
11
|
serialize(t) {
|
|
114
12
|
return t;
|
|
115
13
|
},
|
|
116
14
|
deserialize(t) {
|
|
117
15
|
return t;
|
|
118
16
|
}
|
|
119
|
-
},
|
|
17
|
+
}, $n = {
|
|
120
18
|
serialize(t) {
|
|
121
19
|
return t.map((e) => e.toString());
|
|
122
20
|
},
|
|
123
21
|
deserialize(t) {
|
|
124
22
|
return t.map((e) => parseFloat(e));
|
|
125
23
|
}
|
|
126
|
-
},
|
|
24
|
+
}, Nn = [",", ",", ";", ";", " "];
|
|
127
25
|
function Ge(t) {
|
|
128
26
|
const e = P(22);
|
|
129
27
|
let l, n, i, r, s, o;
|
|
@@ -135,7 +33,7 @@ function Ge(t) {
|
|
|
135
33
|
onChange: l,
|
|
136
34
|
...n
|
|
137
35
|
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = i, e[4] = r, e[5] = s, e[6] = o) : (l = e[1], n = e[2], i = e[3], r = e[4], s = e[5], o = e[6]);
|
|
138
|
-
const c = i === void 0 ?
|
|
36
|
+
const c = i === void 0 ? Nn : i, f = r === void 0 ? !0 : r, m = s === void 0 ? An : s;
|
|
139
37
|
let d;
|
|
140
38
|
e[7] !== l || e[8] !== m ? (d = /* @__PURE__ */ a((A) => {
|
|
141
39
|
if (!l)
|
|
@@ -159,7 +57,7 @@ function Ge(t) {
|
|
|
159
57
|
a(Ge, "TagInput");
|
|
160
58
|
Ge.displayName = "TagInput";
|
|
161
59
|
const yt = /* @__PURE__ */ a((t) => Array.isArray(t) ? t : [t, void 0], "convertToRangeValue"), nt = ["最小值", "最大值"];
|
|
162
|
-
function
|
|
60
|
+
function On(t) {
|
|
163
61
|
const e = P(35), l = t.value !== void 0;
|
|
164
62
|
let n;
|
|
165
63
|
e[0] !== t.defaultValue ? (n = yt(t.defaultValue), e[0] = t.defaultValue, e[1] = n) : n = e[1];
|
|
@@ -203,13 +101,13 @@ function kn(t) {
|
|
|
203
101
|
S
|
|
204
102
|
] }), e[32] = F, e[33] = S, e[34] = R) : R = e[34], R;
|
|
205
103
|
}
|
|
206
|
-
a(
|
|
207
|
-
const
|
|
104
|
+
a(On, "NumberRange");
|
|
105
|
+
const Fn = {
|
|
208
106
|
delay: 300,
|
|
209
107
|
leading: !1,
|
|
210
108
|
trailing: !0
|
|
211
109
|
};
|
|
212
|
-
function
|
|
110
|
+
function xn(t) {
|
|
213
111
|
const e = P(16);
|
|
214
112
|
let l, n, i, r;
|
|
215
113
|
e[0] !== t ? ({
|
|
@@ -218,7 +116,7 @@ function Ln(t) {
|
|
|
218
116
|
options: l,
|
|
219
117
|
...i
|
|
220
118
|
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = i, e[4] = r) : (l = e[1], n = e[2], i = e[3], r = e[4]);
|
|
221
|
-
const s = r === void 0 ?
|
|
119
|
+
const s = r === void 0 ? Fn : r;
|
|
222
120
|
let o;
|
|
223
121
|
e[5] !== s ? (o = {
|
|
224
122
|
debounce: s
|
|
@@ -236,9 +134,9 @@ function Ln(t) {
|
|
|
236
134
|
let _;
|
|
237
135
|
return e[11] !== h || e[12] !== c || e[13] !== i || e[14] !== v ? (_ = /* @__PURE__ */ u(Ue, { filterOption: !1, showSearch: !0, loading: c, onSearch: h, options: v, ...i }), e[11] = h, e[12] = c, e[13] = i, e[14] = v, e[15] = _) : _ = e[15], _;
|
|
238
136
|
}
|
|
239
|
-
a(
|
|
240
|
-
|
|
241
|
-
function
|
|
137
|
+
a(xn, "RemoteSelect");
|
|
138
|
+
xn.displayName = "RemoteSelect";
|
|
139
|
+
function wn(t) {
|
|
242
140
|
const {
|
|
243
141
|
target: e,
|
|
244
142
|
onChange: l,
|
|
@@ -254,8 +152,110 @@ function Mn(t) {
|
|
|
254
152
|
});
|
|
255
153
|
return /* @__PURE__ */ u(Q, { ...r, icon: s ? i : n, onClick: o });
|
|
256
154
|
}
|
|
257
|
-
a(
|
|
258
|
-
|
|
155
|
+
a(wn, "Fullscreen");
|
|
156
|
+
wn.displayName = "FullScreen";
|
|
157
|
+
const Rn = {
|
|
158
|
+
AND: "与",
|
|
159
|
+
OR: "或",
|
|
160
|
+
NOR: "非或",
|
|
161
|
+
ID: "等于",
|
|
162
|
+
IDS: "包含任一",
|
|
163
|
+
AGGREGATE_ID: "等于",
|
|
164
|
+
AGGREGATE_IDS: "包含任一",
|
|
165
|
+
TENANT_ID: "等于",
|
|
166
|
+
OWNER_ID: "等于",
|
|
167
|
+
DELETED: "已删除",
|
|
168
|
+
ALL: "全部",
|
|
169
|
+
EQ: "等于",
|
|
170
|
+
NE: "不等于",
|
|
171
|
+
GT: "大于",
|
|
172
|
+
LT: "小于",
|
|
173
|
+
GTE: "大于等于",
|
|
174
|
+
LTE: "小于等于",
|
|
175
|
+
CONTAINS: "包含",
|
|
176
|
+
IN: "包含任一",
|
|
177
|
+
NOT_IN: "不包含任一",
|
|
178
|
+
BETWEEN: "介于",
|
|
179
|
+
ALL_IN: "全部包含",
|
|
180
|
+
STARTS_WITH: "以...开头",
|
|
181
|
+
ENDS_WITH: "以...结尾",
|
|
182
|
+
ELEM_MATCH: "元素匹配",
|
|
183
|
+
NULL: "为空",
|
|
184
|
+
NOT_NULL: "不为空",
|
|
185
|
+
TRUE: "是",
|
|
186
|
+
FALSE: "否",
|
|
187
|
+
EXISTS: "存在",
|
|
188
|
+
TODAY: "今天",
|
|
189
|
+
BEFORE_TODAY: "今天之前",
|
|
190
|
+
TOMORROW: "明天",
|
|
191
|
+
THIS_WEEK: "本周",
|
|
192
|
+
NEXT_WEEK: "下周",
|
|
193
|
+
LAST_WEEK: "上周",
|
|
194
|
+
THIS_MONTH: "本月",
|
|
195
|
+
LAST_MONTH: "上月",
|
|
196
|
+
RECENT_DAYS: "最近几天",
|
|
197
|
+
EARLIER_DAYS: "几天前",
|
|
198
|
+
RAW: "原始查询",
|
|
199
|
+
UNDEFINED: "未设置"
|
|
200
|
+
};
|
|
201
|
+
var Ce = /* @__PURE__ */ ((t) => (t.UNDEFINED = "UNDEFINED", t))(Ce || {});
|
|
202
|
+
const kn = [];
|
|
203
|
+
function Vn(t) {
|
|
204
|
+
const e = P(22), {
|
|
205
|
+
filters: l,
|
|
206
|
+
activeFilters: n,
|
|
207
|
+
ref: i
|
|
208
|
+
} = t, r = n === void 0 ? kn : n;
|
|
209
|
+
let s;
|
|
210
|
+
e[0] !== r ? (s = r?.map(Ln).sort(), e[0] = r, e[1] = s) : s = e[1];
|
|
211
|
+
const o = s, [c, f] = J(o);
|
|
212
|
+
let m;
|
|
213
|
+
e[2] !== r || e[3] !== t.filters || e[4] !== c ? (m = /* @__PURE__ */ a(() => ({
|
|
214
|
+
getValue() {
|
|
215
|
+
return t.filters.flatMap((w) => w.filters.filter((O) => c.includes(O.field.name) && !r.some(($) => $.field.name === O.field.name)));
|
|
216
|
+
}
|
|
217
|
+
}), "t2"), e[2] = r, e[3] = t.filters, e[4] = c, e[5] = m) : m = e[5], Ie(i, m);
|
|
218
|
+
let d;
|
|
219
|
+
e[6] !== c ? (d = /* @__PURE__ */ a((w, O) => {
|
|
220
|
+
f(O ? [...c, w.field.name] : c.filter(($) => $ !== w.field.name));
|
|
221
|
+
}, "t3"), e[6] = c, e[7] = d) : d = e[7];
|
|
222
|
+
const h = d;
|
|
223
|
+
let v, _;
|
|
224
|
+
e[8] !== o ? (v = /* @__PURE__ */ a(() => {
|
|
225
|
+
f(o);
|
|
226
|
+
}, "t4"), _ = [o], e[8] = o, e[9] = v, e[10] = _) : (v = e[9], _ = e[10]), Nt(v, _);
|
|
227
|
+
let A;
|
|
228
|
+
if (e[11] !== r || e[12] !== l || e[13] !== h || e[14] !== c) {
|
|
229
|
+
let w;
|
|
230
|
+
e[16] !== r || e[17] !== h || e[18] !== c ? (w = /* @__PURE__ */ a((O) => /* @__PURE__ */ H("div", { children: [
|
|
231
|
+
/* @__PURE__ */ u(De.Title, { level: 5, children: O.label }),
|
|
232
|
+
/* @__PURE__ */ u(qt, { gap: "middle", wrap: !0, children: O.filters.map(($) => /* @__PURE__ */ u(It, { checked: c.includes($.field.name), onChange: /* @__PURE__ */ a((F) => {
|
|
233
|
+
h($, F.target.checked);
|
|
234
|
+
}, "onChange"), disabled: r.some((F) => F.field.name === $.field.name), children: $.field.label }, $.field.name)) })
|
|
235
|
+
] }, O.label), "t72"), e[16] = r, e[17] = h, e[18] = c, e[19] = w) : w = e[19], A = l.map(w), e[11] = r, e[12] = l, e[13] = h, e[14] = c, e[15] = A;
|
|
236
|
+
} else
|
|
237
|
+
A = e[15];
|
|
238
|
+
let x;
|
|
239
|
+
return e[20] !== A ? (x = /* @__PURE__ */ u(Z, { children: A }), e[20] = A, e[21] = x) : x = e[21], x;
|
|
240
|
+
}
|
|
241
|
+
a(Vn, "AvailableFilterSelect");
|
|
242
|
+
function Ln(t) {
|
|
243
|
+
return t.field.name;
|
|
244
|
+
}
|
|
245
|
+
a(Ln, "_temp$9");
|
|
246
|
+
function Mn(t) {
|
|
247
|
+
const e = P(8), l = ft(null);
|
|
248
|
+
let n;
|
|
249
|
+
e[0] !== t ? (n = /* @__PURE__ */ a(() => {
|
|
250
|
+
t?.onSave?.(l.current?.getValue() ?? []);
|
|
251
|
+
}, "t0"), e[0] = t, e[1] = n) : n = e[1];
|
|
252
|
+
const i = n;
|
|
253
|
+
let r;
|
|
254
|
+
e[2] !== t.availableFilters ? (r = /* @__PURE__ */ u(Vn, { ...t.availableFilters, ref: l }), e[2] = t.availableFilters, e[3] = r) : r = e[3];
|
|
255
|
+
let s;
|
|
256
|
+
return e[4] !== i || e[5] !== t || e[6] !== r ? (s = /* @__PURE__ */ u(Qt, { ...t, onOk: i, children: r }), e[4] = i, e[5] = t, e[6] = r, e[7] = s) : s = e[7], s;
|
|
257
|
+
}
|
|
258
|
+
a(Mn, "AvailableFilterSelectModal");
|
|
259
259
|
function Pn(t) {
|
|
260
260
|
return !Array.isArray(t) || t.length !== 2 ? !1 : gt(t[0]) && gt(t[1]);
|
|
261
261
|
}
|
|
@@ -268,7 +268,7 @@ function ri() {
|
|
|
268
268
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
269
269
|
}
|
|
270
270
|
a(ri, "currentTimeZone");
|
|
271
|
-
const zn = /* @__PURE__ */ a(() => !0, "TrueValidateValue"), Yn = /* @__PURE__ */ a((t, e) => t ?
|
|
271
|
+
const zn = /* @__PURE__ */ a(() => !0, "TrueValidateValue"), Yn = /* @__PURE__ */ a((t, e) => t ? Dn.has(t) ? !0 : e == null || e === "" || Array.isArray(e) && e.length === 0 ? !1 : t === p.BETWEEN ? Pn(e) : !0 : !1, "defaultValidateValue"), Bn = /* @__PURE__ */ a((t, e) => e, "defaultConditionValueParser"), Hn = /* @__PURE__ */ a((t, e, l) => l, "defaultValueConverter"), Wn = /* @__PURE__ */ a((t) => t, "defaultFilterValueConverter");
|
|
272
272
|
function Un(t) {
|
|
273
273
|
const e = P(30), [l, n] = J(t.operator), [i, r] = J(t.value), s = t.validate ?? Yn, o = t.conditionValueParser ?? Bn, c = t.onOperatorChangeValueConverter ?? Hn, f = t.filterValueConverter ?? Wn;
|
|
274
274
|
let m;
|
|
@@ -332,7 +332,7 @@ function be(t) {
|
|
|
332
332
|
} = t, i = n.operator?.supportedOperators ?? n.supportedOperators;
|
|
333
333
|
if (!i || i.length === 0)
|
|
334
334
|
throw new Error("supportedOperators must be a non-empty array");
|
|
335
|
-
const r = n.operator?.locale ??
|
|
335
|
+
const r = n.operator?.locale ?? Rn;
|
|
336
336
|
let s = n.operator?.defaultValue;
|
|
337
337
|
(!s || !i.includes(s)) && (s = i[0]);
|
|
338
338
|
const o = Un({
|
|
@@ -435,13 +435,13 @@ function kt(t) {
|
|
|
435
435
|
switch (r.operator) {
|
|
436
436
|
case p.IN:
|
|
437
437
|
case p.NOT_IN:
|
|
438
|
-
return /* @__PURE__ */ u(Ge, { value: r.value, serializer:
|
|
438
|
+
return /* @__PURE__ */ u(Ge, { value: r.value, serializer: $n, onChange: /* @__PURE__ */ a((s) => r.setValue(s), "onChange"), ...t.value });
|
|
439
439
|
case p.BETWEEN: {
|
|
440
440
|
const {
|
|
441
441
|
placeholder: s,
|
|
442
442
|
...o
|
|
443
443
|
} = t.value ?? {};
|
|
444
|
-
return /* @__PURE__ */ u(
|
|
444
|
+
return /* @__PURE__ */ u(On, { value: r.value, onChange: r.setValue, ...o });
|
|
445
445
|
}
|
|
446
446
|
default: {
|
|
447
447
|
const {
|
|
@@ -1033,7 +1033,7 @@ function ol(t) {
|
|
|
1033
1033
|
let c;
|
|
1034
1034
|
e[7] !== n ? (c = /* @__PURE__ */ u(ct, { ...n }), e[7] = n, e[8] = c) : c = e[8];
|
|
1035
1035
|
let f;
|
|
1036
|
-
e[9] !== l || e[10] !== i ? (f = i && /* @__PURE__ */ u(Q, { type: "dashed", shape: "circle", size: "small", onClick: l, icon: /* @__PURE__ */ u(
|
|
1036
|
+
e[9] !== l || e[10] !== i ? (f = i && /* @__PURE__ */ u(Q, { type: "dashed", shape: "circle", size: "small", onClick: l, icon: /* @__PURE__ */ u(yn, {}) }), e[9] = l, e[10] = i, e[11] = f) : f = e[11];
|
|
1037
1037
|
let m;
|
|
1038
1038
|
return e[12] !== c || e[13] !== f ? (m = /* @__PURE__ */ H(le, { onMouseOver: s, onMouseOut: o, children: [
|
|
1039
1039
|
c,
|
|
@@ -1068,7 +1068,7 @@ function fl(t) {
|
|
|
1068
1068
|
e[0] !== _ || e[1] !== o ? (A = /* @__PURE__ */ a(() => {
|
|
1069
1069
|
if (!o)
|
|
1070
1070
|
return;
|
|
1071
|
-
const g = Array.from(_.values()).map(dl).filter(Boolean), y =
|
|
1071
|
+
const g = Array.from(_.values()).map(dl).filter(Boolean), y = In(...g);
|
|
1072
1072
|
o(y);
|
|
1073
1073
|
}, "t3"), e[0] = _, e[1] = o, e[2] = A) : A = e[2];
|
|
1074
1074
|
const x = A;
|
|
@@ -1094,9 +1094,9 @@ function fl(t) {
|
|
|
1094
1094
|
} else
|
|
1095
1095
|
R = e[13];
|
|
1096
1096
|
let V;
|
|
1097
|
-
e[17] !== O || e[18] !== S || e[19] !== F ? (V = F && /* @__PURE__ */ u(Q, { icon: /* @__PURE__ */ u(
|
|
1097
|
+
e[17] !== O || e[18] !== S || e[19] !== F ? (V = F && /* @__PURE__ */ u(Q, { icon: /* @__PURE__ */ u(gn, {}), onClick: O, ...S, children: S?.children || "Reset" }), e[17] = O, e[18] = S, e[19] = F, e[20] = V) : V = e[20];
|
|
1098
1098
|
let C;
|
|
1099
|
-
e[21] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ u(
|
|
1099
|
+
e[21] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ u(_n, {}), e[21] = C) : C = e[21];
|
|
1100
1100
|
const I = m?.children || "Search";
|
|
1101
1101
|
let E;
|
|
1102
1102
|
e[22] !== x || e[23] !== m || e[24] !== I ? (E = /* @__PURE__ */ u(Q, { type: "primary", icon: C, onClick: x, ...m, children: I }), e[22] = x, e[23] = m, e[24] = I, e[25] = E) : E = e[25];
|
|
@@ -1173,7 +1173,7 @@ function ml(t) {
|
|
|
1173
1173
|
activeFilters: f
|
|
1174
1174
|
}, e[20] = f, e[21] = r, e[22] = R) : R = e[22];
|
|
1175
1175
|
let V;
|
|
1176
|
-
e[23] !== A || e[24] !== d || e[25] !== R ? (V = /* @__PURE__ */ u(
|
|
1176
|
+
e[23] !== A || e[24] !== d || e[25] !== R ? (V = /* @__PURE__ */ u(Mn, { title: "Add Filter", open: d, onCancel: S, onSave: A, availableFilters: R }), e[23] = A, e[24] = d, e[25] = R, e[26] = V) : V = e[26];
|
|
1177
1177
|
let C;
|
|
1178
1178
|
return e[27] !== b || e[28] !== V ? (C = /* @__PURE__ */ H(Z, { children: [
|
|
1179
1179
|
b,
|
|
@@ -1223,7 +1223,7 @@ function yl(t) {
|
|
|
1223
1223
|
padding: 0
|
|
1224
1224
|
}, children: /* @__PURE__ */ H(le, { children: [
|
|
1225
1225
|
e.value.moreActionTitle || "More",
|
|
1226
|
-
/* @__PURE__ */ u(
|
|
1226
|
+
/* @__PURE__ */ u(Be, {})
|
|
1227
1227
|
] }) }) })
|
|
1228
1228
|
] }) : /* @__PURE__ */ u(Z, { children: Et(e.value.primaryAction) ? /* @__PURE__ */ u(Me, { ...e.value.primaryAction }) : /* @__PURE__ */ u(Z, { children: e.value.primaryAction(e.record) }) });
|
|
1229
1229
|
}
|
|
@@ -1561,7 +1561,7 @@ function St(t) {
|
|
|
1561
1561
|
let i;
|
|
1562
1562
|
e[3] !== t.columnDefinition.primaryKey || e[4] !== t.columnDefinition.title || e[5] !== t.visible || e[6] !== n ? (i = /* @__PURE__ */ u(It, { defaultChecked: t.visible, disabled: t.columnDefinition.primaryKey, onChange: n, children: t.columnDefinition.title }), e[3] = t.columnDefinition.primaryKey, e[4] = t.columnDefinition.title, e[5] = t.visible, e[6] = n, e[7] = i) : i = e[7];
|
|
1563
1563
|
let r;
|
|
1564
|
-
e[8] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ u(
|
|
1564
|
+
e[8] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ u(bn, {}), e[8] = r) : r = e[8];
|
|
1565
1565
|
let s;
|
|
1566
1566
|
return e[9] !== i ? (s = /* @__PURE__ */ u(Z, { children: /* @__PURE__ */ H("div", { style: l, children: [
|
|
1567
1567
|
i,
|
|
@@ -1599,21 +1599,94 @@ function Ee() {
|
|
|
1599
1599
|
return t;
|
|
1600
1600
|
}
|
|
1601
1601
|
a(Ee, "useViewerSharedValue");
|
|
1602
|
-
const ur =
|
|
1603
|
-
|
|
1604
|
-
|
|
1602
|
+
const ur = [{
|
|
1603
|
+
label: "1 分钟",
|
|
1604
|
+
key: "1",
|
|
1605
|
+
refreshInterval: 60 * 1e3
|
|
1606
|
+
}, {
|
|
1607
|
+
label: "3 分钟",
|
|
1608
|
+
key: "3",
|
|
1609
|
+
refreshInterval: 180 * 1e3
|
|
1610
|
+
}, {
|
|
1611
|
+
label: "5 分钟",
|
|
1612
|
+
key: "5",
|
|
1613
|
+
refreshInterval: 300 * 1e3
|
|
1614
|
+
}], Ct = {
|
|
1615
|
+
label: "从不",
|
|
1616
|
+
key: "0",
|
|
1617
|
+
refreshInterval: 0
|
|
1618
|
+
};
|
|
1619
|
+
function fr(t) {
|
|
1620
|
+
const e = P(25), {
|
|
1621
|
+
items: l
|
|
1622
|
+
} = t, n = l === void 0 ? ur : l;
|
|
1623
|
+
let i;
|
|
1624
|
+
e[0] !== n ? (i = [...n, Ct], e[0] = n, e[1] = i) : i = e[1];
|
|
1625
|
+
const r = i, [s, o] = J(Ct), c = ft(null), {
|
|
1626
|
+
refreshData: f
|
|
1627
|
+
} = Ee();
|
|
1628
|
+
let m;
|
|
1629
|
+
e[2] !== r ? (m = /* @__PURE__ */ a((R) => {
|
|
1630
|
+
const V = r.find((C) => C.key === R.key);
|
|
1631
|
+
V && o(V);
|
|
1632
|
+
}, "t3"), e[2] = r, e[3] = m) : m = e[3];
|
|
1633
|
+
const d = m;
|
|
1634
|
+
let h;
|
|
1635
|
+
e[4] !== f || e[5] !== s.refreshInterval ? (h = /* @__PURE__ */ a(() => (c.current && (clearInterval(c.current), c.current = null), s.refreshInterval > 0 && (c.current = setInterval(() => {
|
|
1636
|
+
f();
|
|
1637
|
+
}, s.refreshInterval)), () => {
|
|
1638
|
+
c.current && clearInterval(c.current);
|
|
1639
|
+
}), "t4"), e[4] = f, e[5] = s.refreshInterval, e[6] = h) : h = e[6];
|
|
1640
|
+
let v;
|
|
1641
|
+
e[7] !== f || e[8] !== s ? (v = [s, f], e[7] = f, e[8] = s, e[9] = v) : v = e[9], Nt(h, v);
|
|
1642
|
+
let _;
|
|
1643
|
+
e[10] !== r ? (_ = r.map(dr), e[10] = r, e[11] = _) : _ = e[11];
|
|
1644
|
+
const A = _;
|
|
1645
|
+
let x;
|
|
1646
|
+
e[12] !== s.key ? (x = [s.key], e[12] = s.key, e[13] = x) : x = e[13];
|
|
1647
|
+
let w;
|
|
1648
|
+
e[14] !== d || e[15] !== A || e[16] !== x ? (w = {
|
|
1649
|
+
items: A,
|
|
1650
|
+
onClick: d,
|
|
1651
|
+
selectable: !0,
|
|
1652
|
+
defaultSelectedKeys: x
|
|
1653
|
+
}, e[14] = d, e[15] = A, e[16] = x, e[17] = w) : w = e[17];
|
|
1654
|
+
const O = w;
|
|
1655
|
+
let $;
|
|
1656
|
+
e[18] === Symbol.for("react.memo_cache_sentinel") ? ($ = ["click"], e[18] = $) : $ = e[18];
|
|
1657
|
+
let F;
|
|
1658
|
+
e[19] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ u(Be, {}), e[19] = F) : F = e[19];
|
|
1659
|
+
let b;
|
|
1660
|
+
e[20] !== s.label ? (b = /* @__PURE__ */ H(Q, { icon: F, iconPlacement: "end", children: [
|
|
1661
|
+
"刷新率:",
|
|
1662
|
+
s.label
|
|
1663
|
+
] }), e[20] = s.label, e[21] = b) : b = e[21];
|
|
1664
|
+
let S;
|
|
1665
|
+
return e[22] !== O || e[23] !== b ? (S = /* @__PURE__ */ u(Se, { menu: O, trigger: $, children: b }), e[22] = O, e[23] = b, e[24] = S) : S = e[24], S;
|
|
1666
|
+
}
|
|
1667
|
+
a(fr, "AutoRefreshBarItem");
|
|
1668
|
+
function dr(t) {
|
|
1669
|
+
return {
|
|
1670
|
+
key: t.key,
|
|
1671
|
+
label: t.label
|
|
1672
|
+
};
|
|
1673
|
+
}
|
|
1674
|
+
a(dr, "_temp$5");
|
|
1675
|
+
const mr = "_item_1c27u_1", hr = "_active_1c27u_16", pt = {
|
|
1676
|
+
item: mr,
|
|
1677
|
+
active: hr
|
|
1605
1678
|
};
|
|
1606
1679
|
function Ae(t) {
|
|
1607
1680
|
const e = P(3), {
|
|
1608
1681
|
icon: l,
|
|
1609
1682
|
active: n
|
|
1610
|
-
} = t, i = `${
|
|
1683
|
+
} = t, i = `${pt.item} ${n ? pt.active : ""}`;
|
|
1611
1684
|
let r;
|
|
1612
1685
|
return e[0] !== l || e[1] !== i ? (r = /* @__PURE__ */ u("div", { className: i, children: l }), e[0] = l, e[1] = i, e[2] = r) : r = e[2], r;
|
|
1613
1686
|
}
|
|
1614
1687
|
a(Ae, "BarItem");
|
|
1615
|
-
const
|
|
1616
|
-
function
|
|
1688
|
+
const vr = "filter";
|
|
1689
|
+
function yr(t) {
|
|
1617
1690
|
const e = P(11), {
|
|
1618
1691
|
style: l,
|
|
1619
1692
|
className: n
|
|
@@ -1627,16 +1700,16 @@ function mr(t) {
|
|
|
1627
1700
|
}, "t0"), e[0] = s, e[1] = r, e[2] = c) : c = e[2];
|
|
1628
1701
|
const f = c;
|
|
1629
1702
|
let m;
|
|
1630
|
-
e[3] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ u(
|
|
1703
|
+
e[3] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ u(En, {}), e[3] = m) : m = e[3];
|
|
1631
1704
|
const d = s || !1;
|
|
1632
1705
|
let h;
|
|
1633
1706
|
e[4] !== d ? (h = /* @__PURE__ */ u(Ae, { icon: m, active: d }), e[4] = d, e[5] = h) : h = e[5];
|
|
1634
1707
|
let v;
|
|
1635
1708
|
return e[6] !== n || e[7] !== f || e[8] !== l || e[9] !== h ? (v = /* @__PURE__ */ u("div", { className: n, style: l, onClick: f, children: h }), e[6] = n, e[7] = f, e[8] = l, e[9] = h, e[10] = v) : v = e[10], v;
|
|
1636
1709
|
}
|
|
1637
|
-
a(
|
|
1638
|
-
const
|
|
1639
|
-
function
|
|
1710
|
+
a(yr, "FilterBarItem");
|
|
1711
|
+
const gr = "refresh_data";
|
|
1712
|
+
function _r(t) {
|
|
1640
1713
|
const e = P(7), {
|
|
1641
1714
|
style: l,
|
|
1642
1715
|
className: n
|
|
@@ -1649,13 +1722,13 @@ function vr(t) {
|
|
|
1649
1722
|
}, "t0"), e[0] = i, e[1] = r) : r = e[1];
|
|
1650
1723
|
const s = r;
|
|
1651
1724
|
let o;
|
|
1652
|
-
e[2] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ u(Ae, { icon: /* @__PURE__ */ u(
|
|
1725
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ u(Ae, { icon: /* @__PURE__ */ u(Tn, {}), active: !1 }), e[2] = o) : o = e[2];
|
|
1653
1726
|
let c;
|
|
1654
1727
|
return e[3] !== n || e[4] !== s || e[5] !== l ? (c = /* @__PURE__ */ u("div", { className: n, style: l, onClick: s, children: o }), e[3] = n, e[4] = s, e[5] = l, e[6] = c) : c = e[6], c;
|
|
1655
1728
|
}
|
|
1656
|
-
a(
|
|
1657
|
-
const
|
|
1658
|
-
function
|
|
1729
|
+
a(_r, "RefreshDataBarItem");
|
|
1730
|
+
const br = "column-height";
|
|
1731
|
+
function Er(t) {
|
|
1659
1732
|
const e = P(13), {
|
|
1660
1733
|
className: l
|
|
1661
1734
|
} = t, {
|
|
@@ -1691,17 +1764,17 @@ function gr(t) {
|
|
|
1691
1764
|
let h;
|
|
1692
1765
|
e[8] === Symbol.for("react.memo_cache_sentinel") ? (h = ["click"], e[8] = h) : h = e[8];
|
|
1693
1766
|
let v;
|
|
1694
|
-
e[9] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ u("div", { onClick:
|
|
1767
|
+
e[9] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ u("div", { onClick: Tr, children: /* @__PURE__ */ u(Ae, { icon: /* @__PURE__ */ u(Sn, {}), active: !1 }) }), e[9] = v) : v = e[9];
|
|
1695
1768
|
let _;
|
|
1696
1769
|
return e[10] !== l || e[11] !== d ? (_ = /* @__PURE__ */ u(Se, { className: l, menu: d, trigger: h, children: v }), e[10] = l, e[11] = d, e[12] = _) : _ = e[12], _;
|
|
1697
1770
|
}
|
|
1698
|
-
a(
|
|
1699
|
-
function
|
|
1771
|
+
a(Er, "ColumnHeightBarItem");
|
|
1772
|
+
function Tr(t) {
|
|
1700
1773
|
return t.preventDefault();
|
|
1701
1774
|
}
|
|
1702
|
-
a(
|
|
1703
|
-
const
|
|
1704
|
-
function
|
|
1775
|
+
a(Tr, "_temp$4");
|
|
1776
|
+
const Sr = "share-link";
|
|
1777
|
+
function Cr(t) {
|
|
1705
1778
|
const e = P(10), {
|
|
1706
1779
|
className: l,
|
|
1707
1780
|
style: n
|
|
@@ -1717,7 +1790,7 @@ function Er(t) {
|
|
|
1717
1790
|
}, "t0"), e[0] = i, e[1] = s) : s = e[1];
|
|
1718
1791
|
const o = s;
|
|
1719
1792
|
let c;
|
|
1720
|
-
e[2] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ u(Ae, { icon: /* @__PURE__ */ u(
|
|
1793
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ u(Ae, { icon: /* @__PURE__ */ u(Cn, {}), active: !1 }), e[2] = c) : c = e[2];
|
|
1721
1794
|
let f;
|
|
1722
1795
|
e[3] !== l || e[4] !== o || e[5] !== n ? (f = /* @__PURE__ */ u("div", { className: l, style: n, onClick: o, children: c }), e[3] = l, e[4] = o, e[5] = n, e[6] = f) : f = e[6];
|
|
1723
1796
|
let m;
|
|
@@ -1726,8 +1799,21 @@ function Er(t) {
|
|
|
1726
1799
|
f
|
|
1727
1800
|
] }), e[7] = r, e[8] = f, e[9] = m) : m = e[9], m;
|
|
1728
1801
|
}
|
|
1729
|
-
a(
|
|
1730
|
-
const Gt = pe.create([[
|
|
1802
|
+
a(Cr, "ShareLinkBarItem");
|
|
1803
|
+
const Gt = pe.create([[vr, yr], [gr, _r], [br, Er], [Sr, Cr]]);
|
|
1804
|
+
function Ve() {
|
|
1805
|
+
const t = P(1);
|
|
1806
|
+
let e;
|
|
1807
|
+
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ u("div", { style: {
|
|
1808
|
+
padding: "0 2px",
|
|
1809
|
+
height: "100%"
|
|
1810
|
+
}, children: /* @__PURE__ */ u("div", { style: {
|
|
1811
|
+
width: "1px",
|
|
1812
|
+
height: "100%",
|
|
1813
|
+
backgroundColor: "rgba(0, 0, 0, 0.12)"
|
|
1814
|
+
} }) }), t[0] = e) : e = t[0], e;
|
|
1815
|
+
}
|
|
1816
|
+
a(Ve, "Delimiter");
|
|
1731
1817
|
function jt(t) {
|
|
1732
1818
|
const e = P(7);
|
|
1733
1819
|
let l;
|
|
@@ -1745,96 +1831,11 @@ function jt(t) {
|
|
|
1745
1831
|
}
|
|
1746
1832
|
a(jt, "TypedBarItem");
|
|
1747
1833
|
jt.displayName = "TypedBarItem";
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
padding: "0 2px",
|
|
1753
|
-
height: "100%"
|
|
1754
|
-
}, children: /* @__PURE__ */ u("div", { style: {
|
|
1755
|
-
width: "1px",
|
|
1756
|
-
height: "100%",
|
|
1757
|
-
backgroundColor: "rgba(0, 0, 0, 0.12)"
|
|
1758
|
-
} }) }), t[0] = e) : e = t[0], e;
|
|
1759
|
-
}
|
|
1760
|
-
a(Ve, "Delimiter");
|
|
1761
|
-
const Tr = "_topBar_1ytp0_1", Sr = "_leftItems_1ytp0_7", Cr = "_rightItems_1ytp0_11", lt = {
|
|
1762
|
-
topBar: Tr,
|
|
1763
|
-
leftItems: Sr,
|
|
1764
|
-
rightItems: Cr
|
|
1765
|
-
}, pr = [{
|
|
1766
|
-
label: "1 分钟",
|
|
1767
|
-
key: "1",
|
|
1768
|
-
refreshInterval: 60 * 1e3
|
|
1769
|
-
}, {
|
|
1770
|
-
label: "3 分钟",
|
|
1771
|
-
key: "3",
|
|
1772
|
-
refreshInterval: 180 * 1e3
|
|
1773
|
-
}, {
|
|
1774
|
-
label: "5 分钟",
|
|
1775
|
-
key: "5",
|
|
1776
|
-
refreshInterval: 300 * 1e3
|
|
1777
|
-
}], pt = {
|
|
1778
|
-
label: "从不",
|
|
1779
|
-
key: "0",
|
|
1780
|
-
refreshInterval: 0
|
|
1834
|
+
const pr = "_topBar_1ytp0_1", Dr = "_leftItems_1ytp0_7", Ir = "_rightItems_1ytp0_11", lt = {
|
|
1835
|
+
topBar: pr,
|
|
1836
|
+
leftItems: Dr,
|
|
1837
|
+
rightItems: Ir
|
|
1781
1838
|
};
|
|
1782
|
-
function Dr(t) {
|
|
1783
|
-
const e = P(25), {
|
|
1784
|
-
items: l
|
|
1785
|
-
} = t, n = l === void 0 ? pr : l;
|
|
1786
|
-
let i;
|
|
1787
|
-
e[0] !== n ? (i = [...n, pt], e[0] = n, e[1] = i) : i = e[1];
|
|
1788
|
-
const r = i, [s, o] = J(pt), c = ft(null), {
|
|
1789
|
-
refreshData: f
|
|
1790
|
-
} = Ee();
|
|
1791
|
-
let m;
|
|
1792
|
-
e[2] !== r ? (m = /* @__PURE__ */ a((R) => {
|
|
1793
|
-
const V = r.find((C) => C.key === R.key);
|
|
1794
|
-
V && o(V);
|
|
1795
|
-
}, "t3"), e[2] = r, e[3] = m) : m = e[3];
|
|
1796
|
-
const d = m;
|
|
1797
|
-
let h;
|
|
1798
|
-
e[4] !== f || e[5] !== s.refreshInterval ? (h = /* @__PURE__ */ a(() => (c.current && (clearInterval(c.current), c.current = null), s.refreshInterval > 0 && (c.current = setInterval(() => {
|
|
1799
|
-
f();
|
|
1800
|
-
}, s.refreshInterval)), () => {
|
|
1801
|
-
c.current && clearInterval(c.current);
|
|
1802
|
-
}), "t4"), e[4] = f, e[5] = s.refreshInterval, e[6] = h) : h = e[6];
|
|
1803
|
-
let v;
|
|
1804
|
-
e[7] !== f || e[8] !== s ? (v = [s, f], e[7] = f, e[8] = s, e[9] = v) : v = e[9], Nt(h, v);
|
|
1805
|
-
let _;
|
|
1806
|
-
e[10] !== r ? (_ = r.map(Ir), e[10] = r, e[11] = _) : _ = e[11];
|
|
1807
|
-
const A = _;
|
|
1808
|
-
let x;
|
|
1809
|
-
e[12] !== s.key ? (x = [s.key], e[12] = s.key, e[13] = x) : x = e[13];
|
|
1810
|
-
let w;
|
|
1811
|
-
e[14] !== d || e[15] !== A || e[16] !== x ? (w = {
|
|
1812
|
-
items: A,
|
|
1813
|
-
onClick: d,
|
|
1814
|
-
selectable: !0,
|
|
1815
|
-
defaultSelectedKeys: x
|
|
1816
|
-
}, e[14] = d, e[15] = A, e[16] = x, e[17] = w) : w = e[17];
|
|
1817
|
-
const O = w;
|
|
1818
|
-
let $;
|
|
1819
|
-
e[18] === Symbol.for("react.memo_cache_sentinel") ? ($ = ["click"], e[18] = $) : $ = e[18];
|
|
1820
|
-
let F;
|
|
1821
|
-
e[19] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ u(He, {}), e[19] = F) : F = e[19];
|
|
1822
|
-
let b;
|
|
1823
|
-
e[20] !== s.label ? (b = /* @__PURE__ */ H(Q, { icon: F, iconPlacement: "end", children: [
|
|
1824
|
-
"刷新率:",
|
|
1825
|
-
s.label
|
|
1826
|
-
] }), e[20] = s.label, e[21] = b) : b = e[21];
|
|
1827
|
-
let S;
|
|
1828
|
-
return e[22] !== O || e[23] !== b ? (S = /* @__PURE__ */ u(Se, { menu: O, trigger: $, children: b }), e[22] = O, e[23] = b, e[24] = S) : S = e[24], S;
|
|
1829
|
-
}
|
|
1830
|
-
a(Dr, "AutoRefreshBarItem");
|
|
1831
|
-
function Ir(t) {
|
|
1832
|
-
return {
|
|
1833
|
-
key: t.key,
|
|
1834
|
-
label: t.label
|
|
1835
|
-
};
|
|
1836
|
-
}
|
|
1837
|
-
a(Ir, "_temp$4");
|
|
1838
1839
|
function Dt(t, e, l) {
|
|
1839
1840
|
return t.render ? {
|
|
1840
1841
|
key: e,
|
|
@@ -1905,13 +1906,13 @@ function Ar(t) {
|
|
|
1905
1906
|
let S;
|
|
1906
1907
|
e[19] !== l ? (S = l.map($r), e[19] = l, e[20] = S) : S = e[20];
|
|
1907
1908
|
let R, V;
|
|
1908
|
-
e[21] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ u(Ve, {}), V = /* @__PURE__ */ u(
|
|
1909
|
+
e[21] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ u(Ve, {}), V = /* @__PURE__ */ u(fr, {}), e[21] = R, e[22] = V) : (R = e[21], V = e[22]);
|
|
1909
1910
|
let C;
|
|
1910
1911
|
e[23] !== v || e[24] !== r ? (C = v.length > 0 && /* @__PURE__ */ H(Z, { children: [
|
|
1911
1912
|
/* @__PURE__ */ u(Ve, {}),
|
|
1912
1913
|
/* @__PURE__ */ u(Se, { menu: {
|
|
1913
1914
|
items: v
|
|
1914
|
-
}, trigger: ["click"], children: /* @__PURE__ */ u(Q, { icon: /* @__PURE__ */ u(
|
|
1915
|
+
}, trigger: ["click"], children: /* @__PURE__ */ u(Q, { icon: /* @__PURE__ */ u(Be, {}), iconPlacement: "end", children: r && "批量操作" }) })
|
|
1915
1916
|
] }), e[23] = v, e[24] = r, e[25] = C) : C = e[25];
|
|
1916
1917
|
let I;
|
|
1917
1918
|
e[26] !== o || e[27] !== A || e[28] !== f ? (I = o && /* @__PURE__ */ H(Z, { children: [
|
|
@@ -1920,7 +1921,7 @@ function Ar(t) {
|
|
|
1920
1921
|
o.render ? o.render(f) : /* @__PURE__ */ u(Q, { type: "primary", ...o.attributes, onClick: /* @__PURE__ */ a(() => o.onClick?.(f), "onClick"), children: o.title }),
|
|
1921
1922
|
A.length > 0 && /* @__PURE__ */ u(Se, { menu: {
|
|
1922
1923
|
items: A
|
|
1923
|
-
}, trigger: ["click"], children: /* @__PURE__ */ u(Q, { type: "primary", icon: /* @__PURE__ */ u(
|
|
1924
|
+
}, trigger: ["click"], children: /* @__PURE__ */ u(Q, { type: "primary", icon: /* @__PURE__ */ u(Be, {}) }) })
|
|
1924
1925
|
] })
|
|
1925
1926
|
] }), e[26] = o, e[27] = A, e[28] = f, e[29] = I) : I = e[29];
|
|
1926
1927
|
let E;
|
|
@@ -2185,7 +2186,7 @@ function ii(t) {
|
|
|
2185
2186
|
let j;
|
|
2186
2187
|
Array.isArray(B) ? j = B.filter(Lr).map(Vr) : j = [{
|
|
2187
2188
|
field: String(B.field).split(",").join("."),
|
|
2188
|
-
direction: B.order === "ascend" ?
|
|
2189
|
+
direction: B.order === "ascend" ? He.ASC : He.DESC
|
|
2189
2190
|
}], T(j);
|
|
2190
2191
|
}, "t18"), e[36] = T, e[37] = ie) : ie = e[37];
|
|
2191
2192
|
const je = ie;
|
|
@@ -2283,7 +2284,7 @@ a(kr, "_temp4$1");
|
|
|
2283
2284
|
function Vr(t) {
|
|
2284
2285
|
return {
|
|
2285
2286
|
field: String(t.field).split(",").join("."),
|
|
2286
|
-
direction: t.order === "ascend" ?
|
|
2287
|
+
direction: t.order === "ascend" ? He.ASC : He.DESC
|
|
2287
2288
|
};
|
|
2288
2289
|
}
|
|
2289
2290
|
a(Vr, "_temp3$2");
|
|
@@ -2428,7 +2429,7 @@ function Gr(t) {
|
|
|
2428
2429
|
const V = /* @__PURE__ */ u(Pr, { viewDefinition: n });
|
|
2429
2430
|
return /* @__PURE__ */ H("div", { className: Jl.configurableColumnHeader, children: [
|
|
2430
2431
|
/* @__PURE__ */ u("span", { children: r.title }),
|
|
2431
|
-
/* @__PURE__ */ u(sn, { content: V, title: r.configurePanelTitle || "Setting", placement: "bottomRight", trigger: "click", children: /* @__PURE__ */ u(
|
|
2432
|
+
/* @__PURE__ */ u(sn, { content: V, title: r.configurePanelTitle || "Setting", placement: "bottomRight", trigger: "click", children: /* @__PURE__ */ u(pn, {}) })
|
|
2432
2433
|
] });
|
|
2433
2434
|
}
|
|
2434
2435
|
return r.title;
|
|
@@ -2502,25 +2503,32 @@ export {
|
|
|
2502
2503
|
Me as ActionCell,
|
|
2503
2504
|
Bt as ActionsCell,
|
|
2504
2505
|
be as AssemblyFilter,
|
|
2505
|
-
|
|
2506
|
-
|
|
2506
|
+
fr as AutoRefreshBarItem,
|
|
2507
|
+
Vn as AvailableFilterSelect,
|
|
2508
|
+
Mn as AvailableFilterSelectModal,
|
|
2507
2509
|
Tl as AvatarCell,
|
|
2508
2510
|
Qn as BOOL_FILTER,
|
|
2511
|
+
Ae as BarItem,
|
|
2509
2512
|
Lt as BoolFilter,
|
|
2510
2513
|
Al as CALENDAR_CELL_TYPE,
|
|
2514
|
+
br as COLUMN_HEIGHT_BAR_ITEM_TYPE,
|
|
2511
2515
|
Kl as CURRENCY_CELL_TYPE,
|
|
2512
2516
|
Nl as CalendarTimeCell,
|
|
2517
|
+
Er as ColumnHeightBarItem,
|
|
2513
2518
|
Xl as CurrencyCell,
|
|
2514
2519
|
Il as DATETIME_CELL_TYPE,
|
|
2515
2520
|
$l as DEFAULT_CALENDAR_FORMATS,
|
|
2516
2521
|
se as DEFAULT_CURRENCY_FORMAT_OPTIONS,
|
|
2517
2522
|
ze as DEFAULT_DATE_TIME_FORMAT,
|
|
2518
2523
|
Ht as DateTimeCell,
|
|
2524
|
+
Ve as Delimiter,
|
|
2519
2525
|
ml as EditableFilterPanel,
|
|
2520
2526
|
Ce as ExtendedOperator,
|
|
2527
|
+
vr as FILTER_BAR_ITEM_TYPE,
|
|
2521
2528
|
zt as FallbackFilter,
|
|
2529
|
+
yr as FilterBarItem,
|
|
2522
2530
|
fl as FilterPanel,
|
|
2523
|
-
|
|
2531
|
+
wn as Fullscreen,
|
|
2524
2532
|
jn as ID_FILTER,
|
|
2525
2533
|
kl as IMAGE_CELL_TYPE,
|
|
2526
2534
|
Ll as IMAGE_GROUP_CELL_TYPE,
|
|
@@ -2532,14 +2540,18 @@ export {
|
|
|
2532
2540
|
Hl as LinkCell,
|
|
2533
2541
|
Xn as NUMBER_FILTER,
|
|
2534
2542
|
kt as NumberFilter,
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2543
|
+
On as NumberRange,
|
|
2544
|
+
$n as NumberTagValueItemSerializer,
|
|
2545
|
+
Rn as OPERATOR_zh_CN,
|
|
2546
|
+
gr as REFRESH_DATA_BAR_ITEM_TYPE,
|
|
2547
|
+
_r as RefreshDataBarItem,
|
|
2548
|
+
xn as RemoteSelect,
|
|
2539
2549
|
ol as RemovableTypedFilter,
|
|
2540
2550
|
qn as SELECT_FILTER,
|
|
2551
|
+
Sr as SHARE_LINK_BAR_ITEM_TYPE,
|
|
2541
2552
|
Vt as SelectFilter,
|
|
2542
|
-
|
|
2553
|
+
Cr as ShareLinkBarItem,
|
|
2554
|
+
An as StringTagValueItemSerializer,
|
|
2543
2555
|
wl as TAGS_CELL_TYPE,
|
|
2544
2556
|
xl as TAG_CELL_TYPE,
|
|
2545
2557
|
Fl as TEXT_CELL_TYPE,
|
|
@@ -2551,13 +2563,16 @@ export {
|
|
|
2551
2563
|
Rl as TagsCell,
|
|
2552
2564
|
dt as TextCell,
|
|
2553
2565
|
wt as TextFilter,
|
|
2566
|
+
Ar as TopBar,
|
|
2554
2567
|
zn as TrueValidateValue,
|
|
2568
|
+
jt as TypedBarItem,
|
|
2555
2569
|
pe as TypedComponentRegistry,
|
|
2556
2570
|
ct as TypedFilter,
|
|
2557
2571
|
Gr as ViewTable,
|
|
2558
2572
|
ii as Viewer,
|
|
2559
2573
|
Ut as ViewerSharedValueContext,
|
|
2560
2574
|
cr as ViewerSharedValueProvider,
|
|
2575
|
+
Gt as barItemRegistry,
|
|
2561
2576
|
Zl as cellRegistry,
|
|
2562
2577
|
ri as currentTimeZone,
|
|
2563
2578
|
il as filterRegistry,
|