@ahoo-wang/fetcher-viewer 3.10.7 → 3.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +988 -974
- 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/table/ViewTable.d.ts.map +1 -1
- package/dist/table/cell/TypedCell.d.ts +1 -1
- package/dist/table/cell/TypedCell.d.ts.map +1 -1
- package/dist/table/hooks/index.d.ts +2 -0
- package/dist/table/hooks/index.d.ts.map +1 -0
- package/dist/table/hooks/useViewTableState.d.ts.map +1 -0
- package/dist/table/index.d.ts +1 -1
- package/dist/table/index.d.ts.map +1 -1
- package/dist/view/View.d.ts.map +1 -1
- package/dist/viewer/panel/SaveViewModal.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/table/useViewTableState.d.ts.map +0 -1
- /package/dist/table/{useViewTableState.d.ts → hooks/useViewTableState.d.ts} +0 -0
package/dist/index.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var r = (t, e) =>
|
|
1
|
+
var En = Object.defineProperty;
|
|
2
|
+
var r = (t, e) => En(t, "name", { value: e, configurable: !0 });
|
|
3
3
|
import { jsx as c, jsxs as q, Fragment as Ee } from "react/jsx-runtime";
|
|
4
4
|
import { c as G } from "react/compiler-runtime";
|
|
5
|
-
import { Select as nt, InputNumber as Xe, Space as Te, Input as ge, Flex as
|
|
6
|
-
import
|
|
7
|
-
import { useDebouncedExecutePromise as
|
|
8
|
-
import { FullscreenOutlined as $n, FullscreenExitOutlined as xn, MinusOutlined as Vn, ClearOutlined as Mn, SearchOutlined as kn, DownOutlined as Ve, DragOutlined as
|
|
9
|
-
import { ContentTypeValues as qn, fetcherRegistrar as
|
|
10
|
-
import { post as Xn, path as He, request as at, attribute as it, del as Zn, put as
|
|
5
|
+
import { Select as nt, InputNumber as Xe, Space as Te, Input as ge, Flex as ve, Spin as dt, Empty as Ze, Button as me, Typography as Be, Checkbox as zt, Modal as lt, DatePicker as ot, Alert as Tn, Col as Nt, Row as _n, Dropdown as pe, Avatar as ct, Tag as vt, Image as mt, Badge as Sn, Table as Cn, Popover as vn, message as In, Divider as We, Pagination as yn, Collapse as Nn, Form as ut, Radio as An, Popconfirm as Rn, Layout as ht } from "antd";
|
|
6
|
+
import gt, { useState as j, useCallback as Ln, useEffect as Se, useImperativeHandle as Ae, useRef as Le, createElement as bn } from "react";
|
|
7
|
+
import { useDebouncedExecutePromise as pn, useFullscreen as On, useFetcherListQuery as Dn, useFetcherPagedQuery as wn, useRefs as Fn, useRequestId as Pn } from "@ahoo-wang/fetcher-react";
|
|
8
|
+
import { FullscreenOutlined as $n, FullscreenExitOutlined as xn, MinusOutlined as Vn, ClearOutlined as Mn, SearchOutlined as kn, DownOutlined as Ve, DragOutlined as Bt, SettingOutlined as Yt, ColumnHeightOutlined as Hn, FilterOutlined as Un, ReloadOutlined as zn, LinkOutlined as gn, ExclamationCircleOutlined as Bn, MenuUnfoldOutlined as Yn, PlusOutlined as Wn, MenuFoldOutlined as Gn, EditOutlined as Kn, DeleteOutlined as jn } from "@ant-design/icons";
|
|
9
|
+
import { ContentTypeValues as qn, fetcherRegistrar as Wt, TextResultExtractor as Qn } from "@ahoo-wang/fetcher";
|
|
10
|
+
import { post as Xn, path as He, request as at, attribute as it, del as Zn, put as Gt, api as Kt, autoGeneratedError as Ge } from "@ahoo-wang/fetcher-decorator";
|
|
11
11
|
import { JsonEventStreamResultExtractor as Jn } from "@ahoo-wang/fetcher-eventstream";
|
|
12
|
-
import { ResourceAttributionPathSpec as
|
|
12
|
+
import { ResourceAttributionPathSpec as jt, QueryClientFactory as qt, listQuery as el, and as Je, eq as At, isIn as Rt, all as Ue, EMPTY_VALUE_OPERATORS as tl, Operator as U } from "@ahoo-wang/fetcher-wow";
|
|
13
13
|
import { SerialTypedEventBus as nl, BroadcastTypedEventBus as ll } from "@ahoo-wang/fetcher-eventbus";
|
|
14
14
|
const al = {
|
|
15
15
|
serialize(t) {
|
|
@@ -28,16 +28,16 @@ const al = {
|
|
|
28
28
|
}, rl = [",", ",", ";", ";", " "];
|
|
29
29
|
function rt(t) {
|
|
30
30
|
const e = G(22);
|
|
31
|
-
let l, n,
|
|
31
|
+
let l, n, a, i, s, o;
|
|
32
32
|
e[0] !== t ? ({
|
|
33
|
-
tokenSeparators:
|
|
34
|
-
allowClear:
|
|
33
|
+
tokenSeparators: a,
|
|
34
|
+
allowClear: i,
|
|
35
35
|
serializer: s,
|
|
36
36
|
value: o,
|
|
37
37
|
onChange: l,
|
|
38
38
|
...n
|
|
39
|
-
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] =
|
|
40
|
-
const u =
|
|
39
|
+
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = a, e[4] = i, e[5] = s, e[6] = o) : (l = e[1], n = e[2], a = e[3], i = e[4], s = e[5], o = e[6]);
|
|
40
|
+
const u = a === void 0 ? rl : a, d = i === void 0 ? !0 : i, f = s === void 0 ? al : s;
|
|
41
41
|
let h;
|
|
42
42
|
e[7] !== l || e[8] !== f ? (h = /* @__PURE__ */ r((S) => {
|
|
43
43
|
if (!l)
|
|
@@ -65,13 +65,13 @@ function sl(t) {
|
|
|
65
65
|
const e = G(35), l = t.value !== void 0;
|
|
66
66
|
let n;
|
|
67
67
|
e[0] !== t.defaultValue ? (n = Lt(t.defaultValue), e[0] = t.defaultValue, e[1] = n) : n = e[1];
|
|
68
|
-
const [
|
|
68
|
+
const [a, i] = j(n);
|
|
69
69
|
let s;
|
|
70
|
-
e[2] !==
|
|
70
|
+
e[2] !== a || e[3] !== l || e[4] !== t.value ? (s = l ? Lt(t.value) : a, e[2] = a, e[3] = l, e[4] = t.value, e[5] = s) : s = e[5];
|
|
71
71
|
const o = s, [u, d] = o;
|
|
72
72
|
let f;
|
|
73
73
|
e[6] !== l || e[7] !== t ? (f = /* @__PURE__ */ r((M) => {
|
|
74
|
-
l ||
|
|
74
|
+
l || i(M), t.onChange?.(M);
|
|
75
75
|
}, "t2"), e[6] = l, e[7] = t, e[8] = f) : f = e[8];
|
|
76
76
|
const h = f;
|
|
77
77
|
let m;
|
|
@@ -113,14 +113,14 @@ const ol = {
|
|
|
113
113
|
};
|
|
114
114
|
function cl(t) {
|
|
115
115
|
const e = G(25);
|
|
116
|
-
let l, n,
|
|
116
|
+
let l, n, a, i;
|
|
117
117
|
e[0] !== t ? ({
|
|
118
|
-
debounce:
|
|
118
|
+
debounce: i,
|
|
119
119
|
search: n,
|
|
120
120
|
options: l,
|
|
121
|
-
...
|
|
122
|
-
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] =
|
|
123
|
-
const s =
|
|
121
|
+
...a
|
|
122
|
+
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = a, e[4] = i) : (l = e[1], n = e[2], a = e[3], i = e[4]);
|
|
123
|
+
const s = i === void 0 ? ol : i;
|
|
124
124
|
let o;
|
|
125
125
|
e[5] !== s ? (o = {
|
|
126
126
|
debounce: s
|
|
@@ -129,7 +129,7 @@ function cl(t) {
|
|
|
129
129
|
loading: u,
|
|
130
130
|
result: d,
|
|
131
131
|
run: f
|
|
132
|
-
} =
|
|
132
|
+
} = pn(o);
|
|
133
133
|
let h;
|
|
134
134
|
e[7] !== d || e[8] !== f || e[9] !== n ? (h = /* @__PURE__ */ r((b) => {
|
|
135
135
|
b.trim() === "" && d || f(() => n(b));
|
|
@@ -141,7 +141,7 @@ function cl(t) {
|
|
|
141
141
|
onSearch: m
|
|
142
142
|
}, e[11] = m, e[12] = E) : E = e[12];
|
|
143
143
|
let T;
|
|
144
|
-
e[13] !== u ? (T = u ? /* @__PURE__ */ q(
|
|
144
|
+
e[13] !== u ? (T = u ? /* @__PURE__ */ q(ve, { align: "center", gap: 4, children: [
|
|
145
145
|
/* @__PURE__ */ c(dt, { size: "small", styles: {
|
|
146
146
|
indicator: {
|
|
147
147
|
color: "rgba(0, 0, 0, 0.25)"
|
|
@@ -152,7 +152,7 @@ function cl(t) {
|
|
|
152
152
|
let S;
|
|
153
153
|
e[15] !== u || e[16] !== l || e[17] !== d ? (S = u ? [] : d ?? l, e[15] = u, e[16] = l, e[17] = d, e[18] = S) : S = e[18];
|
|
154
154
|
let L;
|
|
155
|
-
return e[19] !== u || e[20] !==
|
|
155
|
+
return e[19] !== u || e[20] !== a || e[21] !== E || e[22] !== T || e[23] !== S ? (L = /* @__PURE__ */ c(nt, { showSearch: E, loading: u, notFoundContent: T, options: S, ...a }), e[19] = u, e[20] = a, e[21] = E, e[22] = T, e[23] = S, e[24] = L) : L = e[24], L;
|
|
156
156
|
}
|
|
157
157
|
r(cl, "RemoteSelect");
|
|
158
158
|
cl.displayName = "RemoteSelect";
|
|
@@ -161,31 +161,31 @@ function ul(t) {
|
|
|
161
161
|
target: e,
|
|
162
162
|
onChange: l,
|
|
163
163
|
enterIcon: n = /* @__PURE__ */ c($n, {}),
|
|
164
|
-
exitIcon:
|
|
165
|
-
...
|
|
164
|
+
exitIcon: a = /* @__PURE__ */ c(xn, {}),
|
|
165
|
+
...i
|
|
166
166
|
} = t, {
|
|
167
167
|
isFullscreen: s,
|
|
168
168
|
toggle: o
|
|
169
|
-
} =
|
|
169
|
+
} = On({
|
|
170
170
|
target: e,
|
|
171
171
|
onChange: l
|
|
172
172
|
});
|
|
173
|
-
return /* @__PURE__ */ c(
|
|
173
|
+
return /* @__PURE__ */ c(me, { ...i, icon: s ? a : n, onClick: o });
|
|
174
174
|
}
|
|
175
175
|
r(ul, "Fullscreen");
|
|
176
176
|
ul.displayName = "FullScreen";
|
|
177
177
|
const It = "viewer";
|
|
178
178
|
var fl = Object.defineProperty, dl = Object.getOwnPropertyDescriptor, we = /* @__PURE__ */ r((t, e, l, n) => {
|
|
179
|
-
for (var
|
|
180
|
-
(s = t[
|
|
181
|
-
return n &&
|
|
179
|
+
for (var a = n > 1 ? void 0 : n ? dl(e, l) : e, i = t.length - 1, s; i >= 0; i--)
|
|
180
|
+
(s = t[i]) && (a = (n ? s(e, l, a) : s(a)) || a);
|
|
181
|
+
return n && a && fl(e, l, a), a;
|
|
182
182
|
}, "__decorateClass"), _e = /* @__PURE__ */ r((t, e) => (l, n) => e(l, n, t), "__decorateParam"), ml = /* @__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))(ml || {});
|
|
183
|
-
const
|
|
183
|
+
const Qt = {
|
|
184
184
|
basePath: It
|
|
185
185
|
};
|
|
186
|
-
var
|
|
187
|
-
let Ne = (
|
|
188
|
-
constructor(e =
|
|
186
|
+
var Oe;
|
|
187
|
+
let Ne = (Oe = class {
|
|
188
|
+
constructor(e = Qt) {
|
|
189
189
|
this.apiMetadata = e;
|
|
190
190
|
}
|
|
191
191
|
createView(e, l, n) {
|
|
@@ -197,10 +197,10 @@ let Ne = (pe = class {
|
|
|
197
197
|
defaultRecoverAggregate(e, l, n) {
|
|
198
198
|
throw Ge(e, l, n);
|
|
199
199
|
}
|
|
200
|
-
editView(e, l, n,
|
|
201
|
-
throw Ge(e, l, n,
|
|
200
|
+
editView(e, l, n, a) {
|
|
201
|
+
throw Ge(e, l, n, a);
|
|
202
202
|
}
|
|
203
|
-
}, r(
|
|
203
|
+
}, r(Oe, "ViewCommandClient"), Oe);
|
|
204
204
|
we([
|
|
205
205
|
Xn(
|
|
206
206
|
"/tenant/{tenantId}/owner/{ownerId}/view/type/{type}"
|
|
@@ -220,7 +220,7 @@ we([
|
|
|
220
220
|
_e(2, it())
|
|
221
221
|
], Ne.prototype, "defaultDeleteAggregate", 1);
|
|
222
222
|
we([
|
|
223
|
-
|
|
223
|
+
Gt(
|
|
224
224
|
"/tenant/{tenantId}/owner/{ownerId}/view/{id}/recover"
|
|
225
225
|
/* DEFAULT_RECOVER_AGGREGATE */
|
|
226
226
|
),
|
|
@@ -229,7 +229,7 @@ we([
|
|
|
229
229
|
_e(2, it())
|
|
230
230
|
], Ne.prototype, "defaultRecoverAggregate", 1);
|
|
231
231
|
we([
|
|
232
|
-
|
|
232
|
+
Gt(
|
|
233
233
|
"/tenant/{tenantId}/owner/{ownerId}/view/{id}/type/{type}"
|
|
234
234
|
/* EDIT_VIEW */
|
|
235
235
|
),
|
|
@@ -239,16 +239,16 @@ we([
|
|
|
239
239
|
_e(3, it())
|
|
240
240
|
], Ne.prototype, "editView", 1);
|
|
241
241
|
Ne = we([
|
|
242
|
-
|
|
242
|
+
Kt()
|
|
243
243
|
], Ne);
|
|
244
244
|
var De;
|
|
245
245
|
let bt = (De = class extends Ne {
|
|
246
|
-
constructor(e =
|
|
246
|
+
constructor(e = Qt) {
|
|
247
247
|
super(e);
|
|
248
248
|
}
|
|
249
249
|
}, r(De, "ViewStreamCommandClient"), De);
|
|
250
250
|
bt = we([
|
|
251
|
-
|
|
251
|
+
Kt("", {
|
|
252
252
|
headers: { Accept: qn.TEXT_EVENT_STREAM },
|
|
253
253
|
resultExtractor: Jn
|
|
254
254
|
})
|
|
@@ -256,42 +256,42 @@ bt = we([
|
|
|
256
256
|
const hl = {
|
|
257
257
|
contextAlias: It,
|
|
258
258
|
aggregateName: "view",
|
|
259
|
-
resourceAttribution:
|
|
259
|
+
resourceAttribution: jt.TENANT
|
|
260
260
|
};
|
|
261
261
|
var El = /* @__PURE__ */ ((t) => (t.view_created = "视图已创建", t.view_edited = "视图已修改", t))(El || {});
|
|
262
|
-
const Er = new
|
|
262
|
+
const Er = new qt(hl);
|
|
263
263
|
var xe = /* @__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))(xe || {});
|
|
264
264
|
const Tl = {
|
|
265
265
|
contextAlias: It,
|
|
266
266
|
aggregateName: "viewer_definition",
|
|
267
|
-
resourceAttribution:
|
|
267
|
+
resourceAttribution: jt.NONE
|
|
268
268
|
};
|
|
269
269
|
var _l = /* @__PURE__ */ ((t) => (t.viewer_definition_saved = "viewer_definition_saved", t))(_l || {});
|
|
270
|
-
const Sl = new
|
|
270
|
+
const Sl = new qt(Tl);
|
|
271
271
|
var Cl = /* @__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))(Cl || {});
|
|
272
272
|
function vl(t) {
|
|
273
|
-
const [e, l] =
|
|
274
|
-
u((f) => f + 1),
|
|
273
|
+
const [e, l] = j(), [n, a] = j(!0), [i, s] = j(), [o, u] = j(0), d = Ln(() => {
|
|
274
|
+
u((f) => f + 1), a(!0), s(void 0);
|
|
275
275
|
}, []);
|
|
276
|
-
return
|
|
277
|
-
const f = new AbortController(), h =
|
|
276
|
+
return Se(() => {
|
|
277
|
+
const f = new AbortController(), h = Wt.default;
|
|
278
278
|
return Sl.createSnapshotQueryClient({
|
|
279
279
|
fetcher: h
|
|
280
280
|
}).getStateById(t, {}, f).then((E) => {
|
|
281
|
-
f.signal.aborted || (l(E),
|
|
281
|
+
f.signal.aborted || (l(E), a(!1));
|
|
282
282
|
}).catch((E) => {
|
|
283
|
-
f.signal.aborted || (s(E),
|
|
283
|
+
f.signal.aborted || (s(E), a(!1));
|
|
284
284
|
}), () => {
|
|
285
285
|
f.abort();
|
|
286
286
|
};
|
|
287
|
-
}, [t, o]), { viewerDefinition: e, loading: n, error:
|
|
287
|
+
}, [t, o]), { viewerDefinition: e, loading: n, error: i, refetch: d };
|
|
288
288
|
}
|
|
289
289
|
r(vl, "useViewerDefinition");
|
|
290
290
|
function Il(t, e, l) {
|
|
291
291
|
const {
|
|
292
292
|
loading: n,
|
|
293
|
-
result:
|
|
294
|
-
error:
|
|
293
|
+
result: a,
|
|
294
|
+
error: i
|
|
295
295
|
} = Dn({
|
|
296
296
|
url: "/viewer/view/snapshot/list/state",
|
|
297
297
|
initialQuery: el({
|
|
@@ -305,17 +305,17 @@ function Il(t, e, l) {
|
|
|
305
305
|
}),
|
|
306
306
|
autoExecute: !0
|
|
307
307
|
});
|
|
308
|
-
return { views:
|
|
308
|
+
return { views: a, loading: n, error: i };
|
|
309
309
|
}
|
|
310
310
|
r(Il, "useViewerViews");
|
|
311
311
|
function yl(t) {
|
|
312
|
-
const { viewerDefinition: e, defaultView: l } = t, { result: n, loading:
|
|
312
|
+
const { viewerDefinition: e, defaultView: l } = t, { result: n, loading: a, error: i, setQuery: s } = wn(
|
|
313
313
|
{
|
|
314
314
|
url: e?.dataUrl || "",
|
|
315
315
|
autoExecute: !0
|
|
316
316
|
}
|
|
317
317
|
);
|
|
318
|
-
return
|
|
318
|
+
return Se(() => {
|
|
319
319
|
l && e && s({
|
|
320
320
|
condition: l?.condition ? l.internalCondition ? Je(l.internalCondition, l.condition) : Ue() : Ue(),
|
|
321
321
|
pagination: {
|
|
@@ -326,7 +326,7 @@ function yl(t) {
|
|
|
326
326
|
});
|
|
327
327
|
}, [e, l, s]), {
|
|
328
328
|
dataSource: n,
|
|
329
|
-
loading:
|
|
329
|
+
loading: a,
|
|
330
330
|
setQuery: /* @__PURE__ */ r((u, d, f, h) => {
|
|
331
331
|
s({
|
|
332
332
|
condition: l?.internalCondition ? Je(l.internalCondition, u) : u,
|
|
@@ -337,20 +337,20 @@ function yl(t) {
|
|
|
337
337
|
sort: h
|
|
338
338
|
});
|
|
339
339
|
}, "setQueryFn"),
|
|
340
|
-
error:
|
|
340
|
+
error: i
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
343
|
r(yl, "useFetchData");
|
|
344
344
|
const yt = new Ne();
|
|
345
345
|
function Tr(t) {
|
|
346
346
|
const e = G(40);
|
|
347
|
-
let l, n,
|
|
347
|
+
let l, n, a;
|
|
348
348
|
e[0] !== t ? ({
|
|
349
349
|
ownerId: n,
|
|
350
|
-
tenantId:
|
|
350
|
+
tenantId: a,
|
|
351
351
|
...l
|
|
352
|
-
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] =
|
|
353
|
-
const
|
|
352
|
+
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = a) : (l = e[1], n = e[2], a = e[3]);
|
|
353
|
+
const i = n === void 0 ? "(0)" : n, s = a === void 0 ? "(0)" : a, {
|
|
354
354
|
ref: o,
|
|
355
355
|
viewerDefinitionId: u,
|
|
356
356
|
defaultViewId: d,
|
|
@@ -370,35 +370,35 @@ function Tr(t) {
|
|
|
370
370
|
} = vl(u), {
|
|
371
371
|
views: D,
|
|
372
372
|
loading: g
|
|
373
|
-
} = Il(u, s,
|
|
373
|
+
} = Il(u, s, i);
|
|
374
374
|
let M;
|
|
375
375
|
e[4] !== d || e[5] !== D ? (M = bl(D, d), e[4] = d, e[5] = D, e[6] = M) : M = e[6];
|
|
376
376
|
const V = M;
|
|
377
|
-
let
|
|
378
|
-
e[7] !== V || e[8] !== R ? (
|
|
377
|
+
let O;
|
|
378
|
+
e[7] !== V || e[8] !== R ? (O = {
|
|
379
379
|
viewerDefinition: R,
|
|
380
380
|
defaultView: V
|
|
381
|
-
}, e[7] = V, e[8] = R, e[9] =
|
|
381
|
+
}, e[7] = V, e[8] = R, e[9] = O) : O = e[9];
|
|
382
382
|
const {
|
|
383
|
-
dataSource:
|
|
383
|
+
dataSource: p,
|
|
384
384
|
setQuery: k
|
|
385
|
-
} = yl(
|
|
385
|
+
} = yl(O);
|
|
386
386
|
let B;
|
|
387
|
-
e[10] !== k ? (B = /* @__PURE__ */ r((A, w, W,
|
|
388
|
-
k?.(A, w, W,
|
|
387
|
+
e[10] !== k ? (B = /* @__PURE__ */ r((A, w, W, X) => {
|
|
388
|
+
k?.(A, w, W, X);
|
|
389
389
|
}, "t5"), e[10] = k, e[11] = B) : B = e[11];
|
|
390
|
-
const
|
|
390
|
+
const v = B;
|
|
391
391
|
let _;
|
|
392
392
|
e[12] !== T ? (_ = /* @__PURE__ */ r((A) => {
|
|
393
393
|
T?.(A);
|
|
394
394
|
}, "t6"), e[12] = T, e[13] = _) : _ = e[13];
|
|
395
|
-
const C = _, N = Ll,
|
|
395
|
+
const C = _, N = Ll, I = Rl, $ = Al, H = Nl, {
|
|
396
396
|
publish: Y
|
|
397
397
|
} = st();
|
|
398
|
-
let
|
|
399
|
-
if (e[14] !== Y ? (
|
|
398
|
+
let y;
|
|
399
|
+
if (e[14] !== Y ? (y = /* @__PURE__ */ r(() => ({
|
|
400
400
|
refreshData: Y
|
|
401
|
-
}), "t7"), e[14] = Y, e[15] =
|
|
401
|
+
}), "t7"), e[14] = Y, e[15] = y) : y = e[15], Ae(o, y), F || g) {
|
|
402
402
|
let A;
|
|
403
403
|
return e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ c("div", { style: {
|
|
404
404
|
display: "flex",
|
|
@@ -433,12 +433,12 @@ function Tr(t) {
|
|
|
433
433
|
}
|
|
434
434
|
if (D && D.length > 0 && V) {
|
|
435
435
|
let A;
|
|
436
|
-
e[22] !==
|
|
436
|
+
e[22] !== p ? (A = p || {
|
|
437
437
|
list: [],
|
|
438
438
|
total: 0
|
|
439
|
-
}, e[22] =
|
|
439
|
+
}, e[22] = p, e[23] = A) : A = e[23];
|
|
440
440
|
let w;
|
|
441
|
-
return e[24] !== h || e[25] !== P || e[26] !== V || e[27] !== E || e[28] !==
|
|
441
|
+
return e[24] !== h || e[25] !== P || e[26] !== V || e[27] !== E || e[28] !== v || e[29] !== C || e[30] !== m || e[31] !== f || e[32] !== L || e[33] !== b || e[34] !== A || e[35] !== S || e[36] !== R || e[37] !== D ? (w = /* @__PURE__ */ c(tr, { defaultViews: D, defaultView: V, definition: R, dataSource: A, pagination: f, actionColumn: h, onClickPrimaryKey: m, enableRowSelection: E, primaryAction: L, secondaryActions: b, batchActions: P, onGetRecordCount: N, onSwitchView: C, onLoadData: v, viewTableSetting: S, onCreateView: I, onUpdateView: $, onDeleteView: H }), e[24] = h, e[25] = P, e[26] = V, e[27] = E, e[28] = v, e[29] = C, e[30] = m, e[31] = f, e[32] = L, e[33] = b, e[34] = A, e[35] = S, e[36] = R, e[37] = D, e[38] = w) : w = e[38], w;
|
|
442
442
|
}
|
|
443
443
|
let z;
|
|
444
444
|
return e[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ c("div", { style: {
|
|
@@ -475,16 +475,16 @@ function Rl(t, e) {
|
|
|
475
475
|
yt.createView(t.type, {
|
|
476
476
|
body: l
|
|
477
477
|
}).then((n) => {
|
|
478
|
-
const
|
|
478
|
+
const a = {
|
|
479
479
|
...t,
|
|
480
480
|
id: n.aggregateId
|
|
481
481
|
};
|
|
482
|
-
e?.(
|
|
482
|
+
e?.(a);
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
485
|
r(Rl, "_temp2$3");
|
|
486
486
|
function Ll(t, e) {
|
|
487
|
-
return
|
|
487
|
+
return Wt.default.post(t, {
|
|
488
488
|
body: e
|
|
489
489
|
}, {
|
|
490
490
|
resultExtractor: Qn
|
|
@@ -497,7 +497,7 @@ function bl(t, e) {
|
|
|
497
497
|
return e && (l = t.find((n) => n.id === e), l) || (l = t.find((n) => n.isDefault), l) ? l : t[0];
|
|
498
498
|
}
|
|
499
499
|
r(bl, "getDefaultView");
|
|
500
|
-
const
|
|
500
|
+
const pl = {
|
|
501
501
|
AND: "与",
|
|
502
502
|
OR: "或",
|
|
503
503
|
NOR: "非或",
|
|
@@ -543,22 +543,22 @@ const Ol = {
|
|
|
543
543
|
UNDEFINED: "未设置"
|
|
544
544
|
};
|
|
545
545
|
var ze = /* @__PURE__ */ ((t) => (t.UNDEFINED = "UNDEFINED", t))(ze || {});
|
|
546
|
-
const
|
|
546
|
+
const Ol = [];
|
|
547
547
|
function Dl(t) {
|
|
548
548
|
const e = G(22), {
|
|
549
549
|
filters: l,
|
|
550
550
|
activeFilters: n,
|
|
551
|
-
ref:
|
|
552
|
-
} = t,
|
|
551
|
+
ref: a
|
|
552
|
+
} = t, i = n === void 0 ? Ol : n;
|
|
553
553
|
let s;
|
|
554
|
-
e[0] !==
|
|
555
|
-
const o = s, [u, d] =
|
|
554
|
+
e[0] !== i ? (s = i?.map(wl).sort(), e[0] = i, e[1] = s) : s = e[1];
|
|
555
|
+
const o = s, [u, d] = j(o);
|
|
556
556
|
let f;
|
|
557
|
-
e[2] !==
|
|
557
|
+
e[2] !== i || e[3] !== t.filters || e[4] !== u ? (f = /* @__PURE__ */ r(() => ({
|
|
558
558
|
getValue() {
|
|
559
|
-
return t.filters.flatMap((b) => b.filters.filter((P) => u.includes(P.field.name) && !
|
|
559
|
+
return t.filters.flatMap((b) => b.filters.filter((P) => u.includes(P.field.name) && !i.some((R) => R.field.name === P.field.name)));
|
|
560
560
|
}
|
|
561
|
-
}), "t2"), e[2] =
|
|
561
|
+
}), "t2"), e[2] = i, e[3] = t.filters, e[4] = u, e[5] = f) : f = e[5], Ae(a, f);
|
|
562
562
|
let h;
|
|
563
563
|
e[6] !== u ? (h = /* @__PURE__ */ r((b, P) => {
|
|
564
564
|
d(P ? [...u, b.field.name] : u.filter((R) => R !== b.field.name));
|
|
@@ -567,16 +567,16 @@ function Dl(t) {
|
|
|
567
567
|
let E, T;
|
|
568
568
|
e[8] !== o ? (E = /* @__PURE__ */ r(() => {
|
|
569
569
|
d(o);
|
|
570
|
-
}, "t4"), T = [o], e[8] = o, e[9] = E, e[10] = T) : (E = e[9], T = e[10]),
|
|
570
|
+
}, "t4"), T = [o], e[8] = o, e[9] = E, e[10] = T) : (E = e[9], T = e[10]), Se(E, T);
|
|
571
571
|
let S;
|
|
572
|
-
if (e[11] !==
|
|
572
|
+
if (e[11] !== i || e[12] !== l || e[13] !== m || e[14] !== u) {
|
|
573
573
|
let b;
|
|
574
|
-
e[16] !==
|
|
574
|
+
e[16] !== i || e[17] !== m || e[18] !== u ? (b = /* @__PURE__ */ r((P) => /* @__PURE__ */ q("div", { children: [
|
|
575
575
|
/* @__PURE__ */ c(Be.Title, { level: 5, children: P.label }),
|
|
576
|
-
/* @__PURE__ */ c(
|
|
576
|
+
/* @__PURE__ */ c(ve, { gap: "middle", wrap: !0, children: P.filters.map((R) => /* @__PURE__ */ c(zt, { checked: u.includes(R.field.name), onChange: /* @__PURE__ */ r((F) => {
|
|
577
577
|
m(R, F.target.checked);
|
|
578
|
-
}, "onChange"), disabled:
|
|
579
|
-
] }, P.label), "t72"), e[16] =
|
|
578
|
+
}, "onChange"), disabled: i.some((F) => F.field.name === R.field.name), children: R.field.label }, R.field.name)) })
|
|
579
|
+
] }, P.label), "t72"), e[16] = i, e[17] = m, e[18] = u, e[19] = b) : b = e[19], S = l.map(b), e[11] = i, e[12] = l, e[13] = m, e[14] = u, e[15] = S;
|
|
580
580
|
} else
|
|
581
581
|
S = e[15];
|
|
582
582
|
let L;
|
|
@@ -593,29 +593,29 @@ function Fl(t) {
|
|
|
593
593
|
e[0] !== t ? (n = /* @__PURE__ */ r(() => {
|
|
594
594
|
t?.onSave?.(l.current?.getValue() ?? []);
|
|
595
595
|
}, "t0"), e[0] = t, e[1] = n) : n = e[1];
|
|
596
|
-
const
|
|
597
|
-
let
|
|
598
|
-
e[2] !== t.availableFilters ? (
|
|
596
|
+
const a = n;
|
|
597
|
+
let i;
|
|
598
|
+
e[2] !== t.availableFilters ? (i = /* @__PURE__ */ c(Dl, { ...t.availableFilters, ref: l }), e[2] = t.availableFilters, e[3] = i) : i = e[3];
|
|
599
599
|
let s;
|
|
600
|
-
return e[4] !==
|
|
600
|
+
return e[4] !== a || e[5] !== t || e[6] !== i ? (s = /* @__PURE__ */ c(lt, { ...t, onOk: a, children: i }), e[4] = a, e[5] = t, e[6] = i, e[7] = s) : s = e[7], s;
|
|
601
601
|
}
|
|
602
602
|
r(Fl, "AvailableFilterSelectModal");
|
|
603
603
|
function Pl(t) {
|
|
604
|
-
return !Array.isArray(t) || t.length !== 2 ? !1 :
|
|
604
|
+
return !Array.isArray(t) || t.length !== 2 ? !1 : pt(t[0]) && pt(t[1]);
|
|
605
605
|
}
|
|
606
606
|
r(Pl, "isValidBetweenValue");
|
|
607
|
-
function
|
|
607
|
+
function pt(t) {
|
|
608
608
|
return t != null;
|
|
609
609
|
}
|
|
610
|
-
r(
|
|
610
|
+
r(pt, "isValidValue");
|
|
611
611
|
function _r() {
|
|
612
612
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
613
613
|
}
|
|
614
614
|
r(_r, "currentTimeZone");
|
|
615
615
|
const $l = /* @__PURE__ */ r(() => !0, "TrueValidateValue"), xl = /* @__PURE__ */ r((t, e) => t ? tl.has(t) ? !0 : e == null || e === "" || Array.isArray(e) && e.length === 0 ? !1 : t === U.BETWEEN ? Pl(e) : !0 : !1, "defaultValidateValue"), Vl = /* @__PURE__ */ r((t, e) => e, "defaultConditionValueParser"), Ml = /* @__PURE__ */ r((t, e, l) => l, "defaultValueConverter"), kl = /* @__PURE__ */ r((t) => t, "defaultFilterValueConverter");
|
|
616
616
|
function Hl(t) {
|
|
617
|
-
const [e, l] =
|
|
618
|
-
if (E === ze.UNDEFINED || !
|
|
617
|
+
const [e, l] = j(t.operator), [n, a] = j(t.value), i = t.validate ?? xl, s = t.conditionValueParser ?? Vl, o = t.onOperatorChangeValueConverter ?? Ml, u = t.filterValueConverter ?? kl, d = /* @__PURE__ */ r((E, T) => {
|
|
618
|
+
if (E === ze.UNDEFINED || !i(E, T))
|
|
619
619
|
return;
|
|
620
620
|
const S = s(E, T), b = {
|
|
621
621
|
condition: {
|
|
@@ -628,15 +628,15 @@ function Hl(t) {
|
|
|
628
628
|
return u(b);
|
|
629
629
|
}, "resolveFilterValue"), f = /* @__PURE__ */ r((E) => {
|
|
630
630
|
const T = o(e, E, n);
|
|
631
|
-
l(E),
|
|
631
|
+
l(E), a(T);
|
|
632
632
|
const S = d(E, T);
|
|
633
633
|
t.onChange?.(S);
|
|
634
634
|
}, "setOperatorFn"), h = /* @__PURE__ */ r((E) => {
|
|
635
|
-
|
|
635
|
+
a(E);
|
|
636
636
|
const T = d(e, E);
|
|
637
637
|
t.onChange?.(T);
|
|
638
638
|
}, "setValueFn"), m = /* @__PURE__ */ r(() => {
|
|
639
|
-
l(t.operator),
|
|
639
|
+
l(t.operator), a(t.value);
|
|
640
640
|
const E = d(t.operator, t.value);
|
|
641
641
|
t.onChange?.(E);
|
|
642
642
|
}, "resetFn");
|
|
@@ -658,12 +658,12 @@ function Fe(t) {
|
|
|
658
658
|
const e = G(18), {
|
|
659
659
|
ref: l,
|
|
660
660
|
...n
|
|
661
|
-
} = t,
|
|
662
|
-
if (!
|
|
661
|
+
} = t, a = n.operator?.supportedOperators ?? n.supportedOperators;
|
|
662
|
+
if (!a || a.length === 0)
|
|
663
663
|
throw new Error("supportedOperators must be a non-empty array");
|
|
664
|
-
const
|
|
664
|
+
const i = n.operator?.locale ?? pl;
|
|
665
665
|
let s = n.operator?.defaultValue;
|
|
666
|
-
(!s || !
|
|
666
|
+
(!s || !a.includes(s)) && (s = a[0]);
|
|
667
667
|
const o = Hl({
|
|
668
668
|
field: n.field.name,
|
|
669
669
|
operator: s,
|
|
@@ -674,9 +674,9 @@ function Fe(t) {
|
|
|
674
674
|
conditionValueParser: n.conditionValueParser,
|
|
675
675
|
filterValueConverter: n.filterValueConverter,
|
|
676
676
|
onChange: n.onChange
|
|
677
|
-
}), u = n.valueInputRender?.(o), d =
|
|
677
|
+
}), u = n.valueInputRender?.(o), d = a.map((L) => ({
|
|
678
678
|
value: L,
|
|
679
|
-
label:
|
|
679
|
+
label: i[L]
|
|
680
680
|
}));
|
|
681
681
|
let f;
|
|
682
682
|
e[0] !== n.style ? (f = {
|
|
@@ -688,7 +688,7 @@ function Fe(t) {
|
|
|
688
688
|
minWidth: 100
|
|
689
689
|
}, e[2] = h) : h = e[2];
|
|
690
690
|
let m;
|
|
691
|
-
e[3] !== n.field.label || e[4] !== n.label ? (m = /* @__PURE__ */ c(
|
|
691
|
+
e[3] !== n.field.label || e[4] !== n.label ? (m = /* @__PURE__ */ c(me, { ...n.label, style: h, children: n.field.label }), e[3] = n.field.label, e[4] = n.label, e[5] = m) : m = e[5];
|
|
692
692
|
let E;
|
|
693
693
|
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = {
|
|
694
694
|
minWidth: 120
|
|
@@ -704,36 +704,36 @@ function Fe(t) {
|
|
|
704
704
|
}
|
|
705
705
|
r(Fe, "AssemblyFilter");
|
|
706
706
|
const Ul = "text";
|
|
707
|
-
function
|
|
707
|
+
function Xt(t) {
|
|
708
708
|
const e = G(6);
|
|
709
709
|
let l;
|
|
710
710
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [U.EQ, U.NE, U.CONTAINS, U.STARTS_WITH, U.ENDS_WITH, U.IN, U.NOT_IN], e[0] = l) : l = e[0];
|
|
711
711
|
let n;
|
|
712
|
-
e[1] !== t.value ? (n = /* @__PURE__ */ r((
|
|
713
|
-
switch (
|
|
712
|
+
e[1] !== t.value ? (n = /* @__PURE__ */ r((i) => {
|
|
713
|
+
switch (i.operator) {
|
|
714
714
|
case U.IN:
|
|
715
715
|
case U.NOT_IN:
|
|
716
|
-
return /* @__PURE__ */ c(rt, { value:
|
|
716
|
+
return /* @__PURE__ */ c(rt, { value: i.value, onChange: i.setValue, ...t.value });
|
|
717
717
|
default:
|
|
718
718
|
return /* @__PURE__ */ c(ge, { style: {
|
|
719
719
|
width: "100%"
|
|
720
|
-
}, value:
|
|
720
|
+
}, value: i.value, onChange: /* @__PURE__ */ r((s) => i.setValue(s.target.value), "onChange"), allowClear: !0, ...t.value });
|
|
721
721
|
}
|
|
722
722
|
}, "t1"), e[1] = t.value, e[2] = n) : n = e[2];
|
|
723
|
-
let
|
|
723
|
+
let a;
|
|
724
724
|
if (e[3] !== t || e[4] !== n) {
|
|
725
|
-
const
|
|
725
|
+
const i = {
|
|
726
726
|
...t,
|
|
727
727
|
supportedOperators: l,
|
|
728
728
|
valueInputRender: n
|
|
729
729
|
};
|
|
730
|
-
|
|
730
|
+
a = /* @__PURE__ */ c(Fe, { ...i }), e[3] = t, e[4] = n, e[5] = a;
|
|
731
731
|
} else
|
|
732
|
-
|
|
733
|
-
return
|
|
732
|
+
a = e[5];
|
|
733
|
+
return a;
|
|
734
734
|
}
|
|
735
|
-
r(
|
|
736
|
-
|
|
735
|
+
r(Xt, "TextFilter");
|
|
736
|
+
Xt.displayName = "TextFilter";
|
|
737
737
|
const zl = "id", gl = /* @__PURE__ */ r((t, e, l) => {
|
|
738
738
|
if (l == null)
|
|
739
739
|
return l;
|
|
@@ -744,216 +744,216 @@ const zl = "id", gl = /* @__PURE__ */ r((t, e, l) => {
|
|
|
744
744
|
const n = l.trim();
|
|
745
745
|
return n ? [n] : [];
|
|
746
746
|
}, "IdOnOperatorChangeValueConverter");
|
|
747
|
-
function
|
|
747
|
+
function Zt(t) {
|
|
748
748
|
const e = G(6);
|
|
749
749
|
let l;
|
|
750
750
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [U.ID, U.IDS], e[0] = l) : l = e[0];
|
|
751
751
|
let n;
|
|
752
|
-
e[1] !== t.value ? (n = /* @__PURE__ */ r((
|
|
753
|
-
let
|
|
752
|
+
e[1] !== t.value ? (n = /* @__PURE__ */ r((i) => i.operator === U.ID ? /* @__PURE__ */ c(ge, { value: i.value, onChange: /* @__PURE__ */ r((s) => i.setValue(s.target.value), "onChange"), allowClear: !0, ...t.value }) : /* @__PURE__ */ c(rt, { value: i.value, onChange: i.setValue, ...t.value }), "t1"), e[1] = t.value, e[2] = n) : n = e[2];
|
|
753
|
+
let a;
|
|
754
754
|
if (e[3] !== t || e[4] !== n) {
|
|
755
|
-
const
|
|
755
|
+
const i = {
|
|
756
756
|
...t,
|
|
757
757
|
supportedOperators: l,
|
|
758
758
|
onOperatorChangeValueConverter: gl,
|
|
759
759
|
valueInputRender: n
|
|
760
760
|
};
|
|
761
|
-
|
|
761
|
+
a = /* @__PURE__ */ c(Fe, { ...i }), e[3] = t, e[4] = n, e[5] = a;
|
|
762
762
|
} else
|
|
763
|
-
|
|
764
|
-
return
|
|
763
|
+
a = e[5];
|
|
764
|
+
return a;
|
|
765
765
|
}
|
|
766
|
-
r(
|
|
767
|
-
|
|
766
|
+
r(Zt, "IdFilter");
|
|
767
|
+
Zt.displayName = "IdConditionFilter";
|
|
768
768
|
const Bl = "number";
|
|
769
|
-
function
|
|
769
|
+
function Jt(t) {
|
|
770
770
|
const e = G(6);
|
|
771
771
|
let l;
|
|
772
772
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [U.EQ, U.NE, U.GT, U.LT, U.GTE, U.LTE, U.BETWEEN, U.IN, U.NOT_IN], e[0] = l) : l = e[0];
|
|
773
773
|
let n;
|
|
774
|
-
e[1] !== t.value ? (n = /* @__PURE__ */ r((
|
|
775
|
-
switch (
|
|
774
|
+
e[1] !== t.value ? (n = /* @__PURE__ */ r((i) => {
|
|
775
|
+
switch (i.operator) {
|
|
776
776
|
case U.IN:
|
|
777
777
|
case U.NOT_IN:
|
|
778
|
-
return /* @__PURE__ */ c(rt, { value:
|
|
778
|
+
return /* @__PURE__ */ c(rt, { value: i.value, serializer: il, onChange: /* @__PURE__ */ r((s) => i.setValue(s), "onChange"), ...t.value });
|
|
779
779
|
case U.BETWEEN: {
|
|
780
780
|
const {
|
|
781
781
|
placeholder: s,
|
|
782
782
|
...o
|
|
783
783
|
} = t.value ?? {};
|
|
784
|
-
return /* @__PURE__ */ c(sl, { value:
|
|
784
|
+
return /* @__PURE__ */ c(sl, { value: i.value, onChange: i.setValue, ...o });
|
|
785
785
|
}
|
|
786
786
|
default: {
|
|
787
787
|
const {
|
|
788
788
|
defaultValue: s,
|
|
789
789
|
...o
|
|
790
|
-
} = t.value ?? {}, u = Array.isArray(s) ? s[0] : s, d = Array.isArray(
|
|
790
|
+
} = t.value ?? {}, u = Array.isArray(s) ? s[0] : s, d = Array.isArray(i.value) ? i.value[0] : i.value;
|
|
791
791
|
return /* @__PURE__ */ c(Xe, { value: d, defaultValue: u, onChange: /* @__PURE__ */ r((f) => {
|
|
792
|
-
|
|
792
|
+
i.setValue(f ?? void 0);
|
|
793
793
|
}, "onChange"), ...o });
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
}, "t1"), e[1] = t.value, e[2] = n) : n = e[2];
|
|
797
|
-
let
|
|
797
|
+
let a;
|
|
798
798
|
if (e[3] !== t || e[4] !== n) {
|
|
799
|
-
const
|
|
799
|
+
const i = {
|
|
800
800
|
...t,
|
|
801
801
|
supportedOperators: l,
|
|
802
802
|
validate: Yl,
|
|
803
803
|
valueInputRender: n
|
|
804
804
|
};
|
|
805
|
-
|
|
805
|
+
a = /* @__PURE__ */ c(Fe, { ...i }), e[3] = t, e[4] = n, e[5] = a;
|
|
806
806
|
} else
|
|
807
|
-
|
|
808
|
-
return
|
|
807
|
+
a = e[5];
|
|
808
|
+
return a;
|
|
809
809
|
}
|
|
810
|
-
r(
|
|
810
|
+
r(Jt, "NumberFilter");
|
|
811
811
|
function Yl(t, e) {
|
|
812
812
|
return t === U.BETWEEN ? Array.isArray(e) ? e[0] !== void 0 && e[1] !== void 0 : !1 : e != null;
|
|
813
813
|
}
|
|
814
814
|
r(Yl, "_temp$9");
|
|
815
|
-
|
|
815
|
+
Jt.displayName = "NumberFilter";
|
|
816
816
|
const Wl = "select";
|
|
817
|
-
function
|
|
817
|
+
function en(t) {
|
|
818
818
|
const e = G(6);
|
|
819
819
|
let l;
|
|
820
820
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [U.IN, U.NOT_IN], e[0] = l) : l = e[0];
|
|
821
821
|
let n;
|
|
822
|
-
e[1] !== t.value ? (n = /* @__PURE__ */ r((
|
|
823
|
-
let
|
|
822
|
+
e[1] !== t.value ? (n = /* @__PURE__ */ r((i) => /* @__PURE__ */ c(nt, { mode: "multiple", value: i.value, onChange: i.setValue, allowClear: !0, ...t.value }), "t1"), e[1] = t.value, e[2] = n) : n = e[2];
|
|
823
|
+
let a;
|
|
824
824
|
if (e[3] !== t || e[4] !== n) {
|
|
825
|
-
const
|
|
825
|
+
const i = {
|
|
826
826
|
...t,
|
|
827
827
|
supportedOperators: l,
|
|
828
828
|
valueInputRender: n
|
|
829
829
|
};
|
|
830
|
-
|
|
830
|
+
a = /* @__PURE__ */ c(Fe, { ...i }), e[3] = t, e[4] = n, e[5] = a;
|
|
831
831
|
} else
|
|
832
|
-
|
|
833
|
-
return
|
|
832
|
+
a = e[5];
|
|
833
|
+
return a;
|
|
834
834
|
}
|
|
835
|
-
r(
|
|
836
|
-
|
|
835
|
+
r(en, "SelectFilter");
|
|
836
|
+
en.displayName = "SelectFilter";
|
|
837
837
|
const Gl = "bool";
|
|
838
|
-
function
|
|
838
|
+
function tn(t) {
|
|
839
839
|
const e = G(3);
|
|
840
840
|
let l;
|
|
841
841
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [ze.UNDEFINED, U.TRUE, U.FALSE], e[0] = l) : l = e[0];
|
|
842
842
|
let n;
|
|
843
843
|
if (e[1] !== t) {
|
|
844
|
-
const
|
|
844
|
+
const a = {
|
|
845
845
|
...t,
|
|
846
846
|
supportedOperators: l,
|
|
847
847
|
validate: $l
|
|
848
848
|
};
|
|
849
|
-
n = /* @__PURE__ */ c(Fe, { ...
|
|
849
|
+
n = /* @__PURE__ */ c(Fe, { ...a }), e[1] = t, e[2] = n;
|
|
850
850
|
} else
|
|
851
851
|
n = e[2];
|
|
852
852
|
return n;
|
|
853
853
|
}
|
|
854
|
-
r(
|
|
855
|
-
|
|
856
|
-
function
|
|
854
|
+
r(tn, "BoolFilter");
|
|
855
|
+
tn.displayName = "BoolFilter";
|
|
856
|
+
function nn(t) {
|
|
857
857
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
858
858
|
}
|
|
859
|
-
r(
|
|
860
|
-
var je = { exports: {} }, Kl = je.exports,
|
|
859
|
+
r(nn, "getDefaultExportFromCjs");
|
|
860
|
+
var je = { exports: {} }, Kl = je.exports, Ot;
|
|
861
861
|
function jl() {
|
|
862
|
-
return
|
|
862
|
+
return Ot || (Ot = 1, (function(t, e) {
|
|
863
863
|
(function(l, n) {
|
|
864
864
|
t.exports = n();
|
|
865
865
|
})(Kl, (function() {
|
|
866
|
-
var l = 1e3, n = 6e4,
|
|
867
|
-
var _ = ["th", "st", "nd", "rd"], C =
|
|
868
|
-
return "[" +
|
|
869
|
-
}, "ordinal") }, R = /* @__PURE__ */ r(function(
|
|
870
|
-
var N = String(
|
|
871
|
-
return !N || N.length >= _ ?
|
|
872
|
-
}, "m"), F = { s: R, z: /* @__PURE__ */ r(function(
|
|
873
|
-
var _ = -
|
|
874
|
-
return (_ <= 0 ? "+" : "-") + R(N, 2, "0") + ":" + R(
|
|
875
|
-
}, "z"), m: /* @__PURE__ */ r(function
|
|
876
|
-
if (_.date() < C.date()) return -
|
|
877
|
-
var N = 12 * (C.year() - _.year()) + (C.month() - _.month()),
|
|
878
|
-
return +(-(N + (C -
|
|
879
|
-
}, "t"), a: /* @__PURE__ */ r(function(
|
|
880
|
-
return
|
|
881
|
-
}, "a"), p: /* @__PURE__ */ r(function(
|
|
882
|
-
return { M: h, y: E, w: f, d, D: T, h: u, m: o, s, ms:
|
|
883
|
-
}, "p"), u: /* @__PURE__ */ r(function(
|
|
884
|
-
return
|
|
866
|
+
var l = 1e3, n = 6e4, a = 36e5, i = "millisecond", s = "second", o = "minute", u = "hour", d = "day", f = "week", h = "month", m = "quarter", E = "year", T = "date", S = "Invalid Date", L = /^(\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, P = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: /* @__PURE__ */ r(function(v) {
|
|
867
|
+
var _ = ["th", "st", "nd", "rd"], C = v % 100;
|
|
868
|
+
return "[" + v + (_[(C - 20) % 10] || _[C] || _[0]) + "]";
|
|
869
|
+
}, "ordinal") }, R = /* @__PURE__ */ r(function(v, _, C) {
|
|
870
|
+
var N = String(v);
|
|
871
|
+
return !N || N.length >= _ ? v : "" + Array(_ + 1 - N.length).join(C) + v;
|
|
872
|
+
}, "m"), F = { s: R, z: /* @__PURE__ */ r(function(v) {
|
|
873
|
+
var _ = -v.utcOffset(), C = Math.abs(_), N = Math.floor(C / 60), I = C % 60;
|
|
874
|
+
return (_ <= 0 ? "+" : "-") + R(N, 2, "0") + ":" + R(I, 2, "0");
|
|
875
|
+
}, "z"), m: /* @__PURE__ */ r(function v(_, C) {
|
|
876
|
+
if (_.date() < C.date()) return -v(C, _);
|
|
877
|
+
var N = 12 * (C.year() - _.year()) + (C.month() - _.month()), I = _.clone().add(N, h), $ = C - I < 0, H = _.clone().add(N + ($ ? -1 : 1), h);
|
|
878
|
+
return +(-(N + (C - I) / ($ ? I - H : H - I)) || 0);
|
|
879
|
+
}, "t"), a: /* @__PURE__ */ r(function(v) {
|
|
880
|
+
return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
|
|
881
|
+
}, "a"), p: /* @__PURE__ */ r(function(v) {
|
|
882
|
+
return { M: h, y: E, w: f, d, D: T, h: u, m: o, s, ms: i, Q: m }[v] || String(v || "").toLowerCase().replace(/s$/, "");
|
|
883
|
+
}, "p"), u: /* @__PURE__ */ r(function(v) {
|
|
884
|
+
return v === void 0;
|
|
885
885
|
}, "u") }, x = "en", D = {};
|
|
886
886
|
D[x] = P;
|
|
887
|
-
var g = "$isDayjsObject", M = /* @__PURE__ */ r(function(
|
|
888
|
-
return
|
|
889
|
-
}, "S"), V = /* @__PURE__ */ r(function
|
|
890
|
-
var
|
|
887
|
+
var g = "$isDayjsObject", M = /* @__PURE__ */ r(function(v) {
|
|
888
|
+
return v instanceof k || !(!v || !v[g]);
|
|
889
|
+
}, "S"), V = /* @__PURE__ */ r(function v(_, C, N) {
|
|
890
|
+
var I;
|
|
891
891
|
if (!_) return x;
|
|
892
892
|
if (typeof _ == "string") {
|
|
893
893
|
var $ = _.toLowerCase();
|
|
894
|
-
D[$] && (
|
|
894
|
+
D[$] && (I = $), C && (D[$] = C, I = $);
|
|
895
895
|
var H = _.split("-");
|
|
896
|
-
if (!
|
|
896
|
+
if (!I && H.length > 1) return v(H[0]);
|
|
897
897
|
} else {
|
|
898
898
|
var Y = _.name;
|
|
899
|
-
D[Y] = _,
|
|
899
|
+
D[Y] = _, I = Y;
|
|
900
900
|
}
|
|
901
|
-
return !N &&
|
|
902
|
-
}, "t"),
|
|
903
|
-
if (M(
|
|
901
|
+
return !N && I && (x = I), I || !N && x;
|
|
902
|
+
}, "t"), O = /* @__PURE__ */ r(function(v, _) {
|
|
903
|
+
if (M(v)) return v.clone();
|
|
904
904
|
var C = typeof _ == "object" ? _ : {};
|
|
905
|
-
return C.date =
|
|
906
|
-
}, "O"),
|
|
907
|
-
|
|
908
|
-
return
|
|
905
|
+
return C.date = v, C.args = arguments, new k(C);
|
|
906
|
+
}, "O"), p = F;
|
|
907
|
+
p.l = V, p.i = M, p.w = function(v, _) {
|
|
908
|
+
return O(v, { locale: _.$L, utc: _.$u, x: _.$x, $offset: _.$offset });
|
|
909
909
|
};
|
|
910
910
|
var k = (function() {
|
|
911
|
-
function
|
|
911
|
+
function v(C) {
|
|
912
912
|
this.$L = V(C.locale, null, !0), this.parse(C), this.$x = this.$x || C.x || {}, this[g] = !0;
|
|
913
913
|
}
|
|
914
|
-
r(
|
|
915
|
-
var _ =
|
|
914
|
+
r(v, "M");
|
|
915
|
+
var _ = v.prototype;
|
|
916
916
|
return _.parse = function(C) {
|
|
917
917
|
this.$d = (function(N) {
|
|
918
|
-
var
|
|
919
|
-
if (
|
|
920
|
-
if (
|
|
921
|
-
if (
|
|
922
|
-
if (typeof
|
|
923
|
-
var H =
|
|
918
|
+
var I = N.date, $ = N.utc;
|
|
919
|
+
if (I === null) return /* @__PURE__ */ new Date(NaN);
|
|
920
|
+
if (p.u(I)) return /* @__PURE__ */ new Date();
|
|
921
|
+
if (I instanceof Date) return new Date(I);
|
|
922
|
+
if (typeof I == "string" && !/Z$/i.test(I)) {
|
|
923
|
+
var H = I.match(L);
|
|
924
924
|
if (H) {
|
|
925
|
-
var Y = H[2] - 1 || 0,
|
|
926
|
-
return $ ? new Date(Date.UTC(H[1], Y, H[3] || 1, H[4] || 0, H[5] || 0, H[6] || 0,
|
|
925
|
+
var Y = H[2] - 1 || 0, y = (H[7] || "0").substring(0, 3);
|
|
926
|
+
return $ ? new Date(Date.UTC(H[1], Y, H[3] || 1, H[4] || 0, H[5] || 0, H[6] || 0, y)) : new Date(H[1], Y, H[3] || 1, H[4] || 0, H[5] || 0, H[6] || 0, y);
|
|
927
927
|
}
|
|
928
928
|
}
|
|
929
|
-
return new Date(
|
|
929
|
+
return new Date(I);
|
|
930
930
|
})(C), this.init();
|
|
931
931
|
}, _.init = function() {
|
|
932
932
|
var C = this.$d;
|
|
933
933
|
this.$y = C.getFullYear(), this.$M = C.getMonth(), this.$D = C.getDate(), this.$W = C.getDay(), this.$H = C.getHours(), this.$m = C.getMinutes(), this.$s = C.getSeconds(), this.$ms = C.getMilliseconds();
|
|
934
934
|
}, _.$utils = function() {
|
|
935
|
-
return
|
|
935
|
+
return p;
|
|
936
936
|
}, _.isValid = function() {
|
|
937
937
|
return this.$d.toString() !== S;
|
|
938
938
|
}, _.isSame = function(C, N) {
|
|
939
|
-
var
|
|
940
|
-
return this.startOf(N) <=
|
|
939
|
+
var I = O(C);
|
|
940
|
+
return this.startOf(N) <= I && I <= this.endOf(N);
|
|
941
941
|
}, _.isAfter = function(C, N) {
|
|
942
|
-
return
|
|
942
|
+
return O(C) < this.startOf(N);
|
|
943
943
|
}, _.isBefore = function(C, N) {
|
|
944
|
-
return this.endOf(N) <
|
|
945
|
-
}, _.$g = function(C, N,
|
|
946
|
-
return
|
|
944
|
+
return this.endOf(N) < O(C);
|
|
945
|
+
}, _.$g = function(C, N, I) {
|
|
946
|
+
return p.u(C) ? this[N] : this.set(I, C);
|
|
947
947
|
}, _.unix = function() {
|
|
948
948
|
return Math.floor(this.valueOf() / 1e3);
|
|
949
949
|
}, _.valueOf = function() {
|
|
950
950
|
return this.$d.getTime();
|
|
951
951
|
}, _.startOf = function(C, N) {
|
|
952
|
-
var
|
|
953
|
-
var
|
|
954
|
-
return $ ?
|
|
955
|
-
}, "l"),
|
|
956
|
-
return
|
|
952
|
+
var I = this, $ = !!p.u(N) || N, H = p.p(C), Y = /* @__PURE__ */ r(function(te, Q) {
|
|
953
|
+
var le = p.w(I.$u ? Date.UTC(I.$y, Q, te) : new Date(I.$y, Q, te), I);
|
|
954
|
+
return $ ? le : le.endOf(d);
|
|
955
|
+
}, "l"), y = /* @__PURE__ */ r(function(te, Q) {
|
|
956
|
+
return p.w(I.toDate()[te].apply(I.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Q)), I);
|
|
957
957
|
}, "$"), z = this.$W, A = this.$M, w = this.$D, W = "set" + (this.$u ? "UTC" : "");
|
|
958
958
|
switch (H) {
|
|
959
959
|
case E:
|
|
@@ -961,119 +961,119 @@ function jl() {
|
|
|
961
961
|
case h:
|
|
962
962
|
return $ ? Y(1, A) : Y(0, A + 1);
|
|
963
963
|
case f:
|
|
964
|
-
var
|
|
965
|
-
return Y($ ? w -
|
|
964
|
+
var X = this.$locale().weekStart || 0, ee = (z < X ? z + 7 : z) - X;
|
|
965
|
+
return Y($ ? w - ee : w + (6 - ee), A);
|
|
966
966
|
case d:
|
|
967
967
|
case T:
|
|
968
|
-
return
|
|
968
|
+
return y(W + "Hours", 0);
|
|
969
969
|
case u:
|
|
970
|
-
return
|
|
970
|
+
return y(W + "Minutes", 1);
|
|
971
971
|
case o:
|
|
972
|
-
return
|
|
972
|
+
return y(W + "Seconds", 2);
|
|
973
973
|
case s:
|
|
974
|
-
return
|
|
974
|
+
return y(W + "Milliseconds", 3);
|
|
975
975
|
default:
|
|
976
976
|
return this.clone();
|
|
977
977
|
}
|
|
978
978
|
}, _.endOf = function(C) {
|
|
979
979
|
return this.startOf(C, !1);
|
|
980
980
|
}, _.$set = function(C, N) {
|
|
981
|
-
var
|
|
981
|
+
var I, $ = p.p(C), H = "set" + (this.$u ? "UTC" : ""), Y = (I = {}, I[d] = H + "Date", I[T] = H + "Date", I[h] = H + "Month", I[E] = H + "FullYear", I[u] = H + "Hours", I[o] = H + "Minutes", I[s] = H + "Seconds", I[i] = H + "Milliseconds", I)[$], y = $ === d ? this.$D + (N - this.$W) : N;
|
|
982
982
|
if ($ === h || $ === E) {
|
|
983
983
|
var z = this.clone().set(T, 1);
|
|
984
|
-
z.$d[Y](
|
|
985
|
-
} else Y && this.$d[Y](
|
|
984
|
+
z.$d[Y](y), z.init(), this.$d = z.set(T, Math.min(this.$D, z.daysInMonth())).$d;
|
|
985
|
+
} else Y && this.$d[Y](y);
|
|
986
986
|
return this.init(), this;
|
|
987
987
|
}, _.set = function(C, N) {
|
|
988
988
|
return this.clone().$set(C, N);
|
|
989
989
|
}, _.get = function(C) {
|
|
990
|
-
return this[
|
|
990
|
+
return this[p.p(C)]();
|
|
991
991
|
}, _.add = function(C, N) {
|
|
992
|
-
var
|
|
992
|
+
var I, $ = this;
|
|
993
993
|
C = Number(C);
|
|
994
|
-
var H =
|
|
995
|
-
var w =
|
|
996
|
-
return
|
|
994
|
+
var H = p.p(N), Y = /* @__PURE__ */ r(function(A) {
|
|
995
|
+
var w = O($);
|
|
996
|
+
return p.w(w.date(w.date() + Math.round(A * C)), $);
|
|
997
997
|
}, "y");
|
|
998
998
|
if (H === h) return this.set(h, this.$M + C);
|
|
999
999
|
if (H === E) return this.set(E, this.$y + C);
|
|
1000
1000
|
if (H === d) return Y(1);
|
|
1001
1001
|
if (H === f) return Y(7);
|
|
1002
|
-
var
|
|
1003
|
-
return
|
|
1002
|
+
var y = (I = {}, I[o] = n, I[u] = a, I[s] = l, I)[H] || 1, z = this.$d.getTime() + C * y;
|
|
1003
|
+
return p.w(z, this);
|
|
1004
1004
|
}, _.subtract = function(C, N) {
|
|
1005
1005
|
return this.add(-1 * C, N);
|
|
1006
1006
|
}, _.format = function(C) {
|
|
1007
|
-
var N = this,
|
|
1008
|
-
if (!this.isValid()) return
|
|
1009
|
-
var $ = C || "YYYY-MM-DDTHH:mm:ssZ", H =
|
|
1010
|
-
return
|
|
1011
|
-
}, "h"),
|
|
1012
|
-
return
|
|
1013
|
-
}, "d"),
|
|
1014
|
-
var
|
|
1015
|
-
return Z ?
|
|
1007
|
+
var N = this, I = this.$locale();
|
|
1008
|
+
if (!this.isValid()) return I.invalidDate || S;
|
|
1009
|
+
var $ = C || "YYYY-MM-DDTHH:mm:ssZ", H = p.z(this), Y = this.$H, y = this.$m, z = this.$M, A = I.weekdays, w = I.months, W = I.meridiem, X = /* @__PURE__ */ r(function(Q, le, Z, ae) {
|
|
1010
|
+
return Q && (Q[le] || Q(N, $)) || Z[le].slice(0, ae);
|
|
1011
|
+
}, "h"), ee = /* @__PURE__ */ r(function(Q) {
|
|
1012
|
+
return p.s(Y % 12 || 12, Q, "0");
|
|
1013
|
+
}, "d"), te = W || function(Q, le, Z) {
|
|
1014
|
+
var ae = Q < 12 ? "AM" : "PM";
|
|
1015
|
+
return Z ? ae.toLowerCase() : ae;
|
|
1016
1016
|
};
|
|
1017
|
-
return $.replace(b, (function(
|
|
1018
|
-
return
|
|
1017
|
+
return $.replace(b, (function(Q, le) {
|
|
1018
|
+
return le || (function(Z) {
|
|
1019
1019
|
switch (Z) {
|
|
1020
1020
|
case "YY":
|
|
1021
1021
|
return String(N.$y).slice(-2);
|
|
1022
1022
|
case "YYYY":
|
|
1023
|
-
return
|
|
1023
|
+
return p.s(N.$y, 4, "0");
|
|
1024
1024
|
case "M":
|
|
1025
1025
|
return z + 1;
|
|
1026
1026
|
case "MM":
|
|
1027
|
-
return
|
|
1027
|
+
return p.s(z + 1, 2, "0");
|
|
1028
1028
|
case "MMM":
|
|
1029
|
-
return
|
|
1029
|
+
return X(I.monthsShort, z, w, 3);
|
|
1030
1030
|
case "MMMM":
|
|
1031
|
-
return
|
|
1031
|
+
return X(w, z);
|
|
1032
1032
|
case "D":
|
|
1033
1033
|
return N.$D;
|
|
1034
1034
|
case "DD":
|
|
1035
|
-
return
|
|
1035
|
+
return p.s(N.$D, 2, "0");
|
|
1036
1036
|
case "d":
|
|
1037
1037
|
return String(N.$W);
|
|
1038
1038
|
case "dd":
|
|
1039
|
-
return
|
|
1039
|
+
return X(I.weekdaysMin, N.$W, A, 2);
|
|
1040
1040
|
case "ddd":
|
|
1041
|
-
return
|
|
1041
|
+
return X(I.weekdaysShort, N.$W, A, 3);
|
|
1042
1042
|
case "dddd":
|
|
1043
1043
|
return A[N.$W];
|
|
1044
1044
|
case "H":
|
|
1045
1045
|
return String(Y);
|
|
1046
1046
|
case "HH":
|
|
1047
|
-
return
|
|
1047
|
+
return p.s(Y, 2, "0");
|
|
1048
1048
|
case "h":
|
|
1049
|
-
return
|
|
1049
|
+
return ee(1);
|
|
1050
1050
|
case "hh":
|
|
1051
|
-
return
|
|
1051
|
+
return ee(2);
|
|
1052
1052
|
case "a":
|
|
1053
|
-
return
|
|
1053
|
+
return te(Y, y, !0);
|
|
1054
1054
|
case "A":
|
|
1055
|
-
return
|
|
1055
|
+
return te(Y, y, !1);
|
|
1056
1056
|
case "m":
|
|
1057
|
-
return String(
|
|
1057
|
+
return String(y);
|
|
1058
1058
|
case "mm":
|
|
1059
|
-
return
|
|
1059
|
+
return p.s(y, 2, "0");
|
|
1060
1060
|
case "s":
|
|
1061
1061
|
return String(N.$s);
|
|
1062
1062
|
case "ss":
|
|
1063
|
-
return
|
|
1063
|
+
return p.s(N.$s, 2, "0");
|
|
1064
1064
|
case "SSS":
|
|
1065
|
-
return
|
|
1065
|
+
return p.s(N.$ms, 3, "0");
|
|
1066
1066
|
case "Z":
|
|
1067
1067
|
return H;
|
|
1068
1068
|
}
|
|
1069
1069
|
return null;
|
|
1070
|
-
})(
|
|
1070
|
+
})(Q) || H.replace(":", "");
|
|
1071
1071
|
}));
|
|
1072
1072
|
}, _.utcOffset = function() {
|
|
1073
1073
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1074
|
-
}, _.diff = function(C, N,
|
|
1075
|
-
var $, H = this, Y =
|
|
1076
|
-
return
|
|
1074
|
+
}, _.diff = function(C, N, I) {
|
|
1075
|
+
var $, H = this, Y = p.p(N), y = O(C), z = (y.utcOffset() - this.utcOffset()) * n, A = this - y, w = /* @__PURE__ */ r(function() {
|
|
1076
|
+
return p.m(H, y);
|
|
1077
1077
|
}, "D");
|
|
1078
1078
|
switch (Y) {
|
|
1079
1079
|
case E:
|
|
@@ -1092,7 +1092,7 @@ function jl() {
|
|
|
1092
1092
|
$ = (A - z) / 864e5;
|
|
1093
1093
|
break;
|
|
1094
1094
|
case u:
|
|
1095
|
-
$ = A /
|
|
1095
|
+
$ = A / a;
|
|
1096
1096
|
break;
|
|
1097
1097
|
case o:
|
|
1098
1098
|
$ = A / n;
|
|
@@ -1103,17 +1103,17 @@ function jl() {
|
|
|
1103
1103
|
default:
|
|
1104
1104
|
$ = A;
|
|
1105
1105
|
}
|
|
1106
|
-
return
|
|
1106
|
+
return I ? $ : p.a($);
|
|
1107
1107
|
}, _.daysInMonth = function() {
|
|
1108
1108
|
return this.endOf(h).$D;
|
|
1109
1109
|
}, _.$locale = function() {
|
|
1110
1110
|
return D[this.$L];
|
|
1111
1111
|
}, _.locale = function(C, N) {
|
|
1112
1112
|
if (!C) return this.$L;
|
|
1113
|
-
var
|
|
1114
|
-
return $ && (
|
|
1113
|
+
var I = this.clone(), $ = V(C, N, !0);
|
|
1114
|
+
return $ && (I.$L = $), I;
|
|
1115
1115
|
}, _.clone = function() {
|
|
1116
|
-
return
|
|
1116
|
+
return p.w(this.$d, this);
|
|
1117
1117
|
}, _.toDate = function() {
|
|
1118
1118
|
return new Date(this.valueOf());
|
|
1119
1119
|
}, _.toJSON = function() {
|
|
@@ -1122,23 +1122,23 @@ function jl() {
|
|
|
1122
1122
|
return this.$d.toISOString();
|
|
1123
1123
|
}, _.toString = function() {
|
|
1124
1124
|
return this.$d.toUTCString();
|
|
1125
|
-
},
|
|
1125
|
+
}, v;
|
|
1126
1126
|
})(), B = k.prototype;
|
|
1127
|
-
return
|
|
1128
|
-
B[
|
|
1129
|
-
return this.$g(_,
|
|
1127
|
+
return O.prototype = B, [["$ms", i], ["$s", s], ["$m", o], ["$H", u], ["$W", d], ["$M", h], ["$y", E], ["$D", T]].forEach((function(v) {
|
|
1128
|
+
B[v[1]] = function(_) {
|
|
1129
|
+
return this.$g(_, v[0], v[1]);
|
|
1130
1130
|
};
|
|
1131
|
-
})),
|
|
1132
|
-
return
|
|
1133
|
-
},
|
|
1134
|
-
return
|
|
1135
|
-
},
|
|
1131
|
+
})), O.extend = function(v, _) {
|
|
1132
|
+
return v.$i || (v(_, k, O), v.$i = !0), O;
|
|
1133
|
+
}, O.locale = V, O.isDayjs = M, O.unix = function(v) {
|
|
1134
|
+
return O(1e3 * v);
|
|
1135
|
+
}, O.en = D[x], O.Ls = D, O.p = {}, O;
|
|
1136
1136
|
}));
|
|
1137
1137
|
})(je)), je.exports;
|
|
1138
1138
|
}
|
|
1139
1139
|
r(jl, "requireDayjs_min");
|
|
1140
1140
|
var Et = jl();
|
|
1141
|
-
const Tt = /* @__PURE__ */
|
|
1141
|
+
const Tt = /* @__PURE__ */ nn(Et), ql = "datetime", Ql = "HH:mm:ss", Dt = "day", _t = /* @__PURE__ */ new Set([U.RECENT_DAYS, U.EARLIER_DAYS]), wt = /* @__PURE__ */ new Set([U.GT, U.LT, U.GTE, U.LTE]), Xl = /* @__PURE__ */ r((t, e, l) => {
|
|
1142
1142
|
if (t === ze.UNDEFINED || e === ze.UNDEFINED || _t.has(t) && _t.has(e))
|
|
1143
1143
|
return l;
|
|
1144
1144
|
if (wt.has(t)) {
|
|
@@ -1164,19 +1164,19 @@ const Tt = /* @__PURE__ */ tn(Et), ql = "datetime", Ql = "HH:mm:ss", Dt = "day",
|
|
|
1164
1164
|
return e.valueOf();
|
|
1165
1165
|
}
|
|
1166
1166
|
}, "TimestampConditionValueParser");
|
|
1167
|
-
function
|
|
1167
|
+
function ln(t) {
|
|
1168
1168
|
const e = G(6);
|
|
1169
1169
|
let l;
|
|
1170
1170
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [U.GT, U.LT, U.GTE, U.LTE, U.BETWEEN, U.TODAY, U.BEFORE_TODAY, U.TOMORROW, U.THIS_WEEK, U.NEXT_WEEK, U.LAST_WEEK, U.THIS_MONTH, U.LAST_MONTH, U.RECENT_DAYS, U.EARLIER_DAYS], e[0] = l) : l = e[0];
|
|
1171
1171
|
let n;
|
|
1172
|
-
e[1] !== t.value ? (n = /* @__PURE__ */ r((
|
|
1173
|
-
switch (
|
|
1172
|
+
e[1] !== t.value ? (n = /* @__PURE__ */ r((i) => {
|
|
1173
|
+
switch (i.operator) {
|
|
1174
1174
|
case U.BETWEEN: {
|
|
1175
1175
|
const {
|
|
1176
1176
|
placeholder: s,
|
|
1177
1177
|
...o
|
|
1178
1178
|
} = t.value || {};
|
|
1179
|
-
return /* @__PURE__ */ c(ot.RangePicker, { value:
|
|
1179
|
+
return /* @__PURE__ */ c(ot.RangePicker, { value: i.value, onChange: i.setValue, ...o });
|
|
1180
1180
|
}
|
|
1181
1181
|
case U.TODAY:
|
|
1182
1182
|
case U.TOMORROW:
|
|
@@ -1188,29 +1188,29 @@ function nn(t) {
|
|
|
1188
1188
|
return null;
|
|
1189
1189
|
case U.RECENT_DAYS:
|
|
1190
1190
|
case U.EARLIER_DAYS:
|
|
1191
|
-
return /* @__PURE__ */ c(Xe, { value:
|
|
1191
|
+
return /* @__PURE__ */ c(Xe, { value: i.value, min: 1, onChange: i.setValue, ...t.value });
|
|
1192
1192
|
case U.BEFORE_TODAY:
|
|
1193
|
-
return /* @__PURE__ */ c(ot, { picker: "time", value:
|
|
1193
|
+
return /* @__PURE__ */ c(ot, { picker: "time", value: i.value, onChange: i.setValue, ...t.value });
|
|
1194
1194
|
default:
|
|
1195
|
-
return /* @__PURE__ */ c(ot, { value:
|
|
1195
|
+
return /* @__PURE__ */ c(ot, { value: i.value, picker: "date", showNow: !1, onChange: i.setValue, ...t.value });
|
|
1196
1196
|
}
|
|
1197
1197
|
}, "t1"), e[1] = t.value, e[2] = n) : n = e[2];
|
|
1198
|
-
let
|
|
1198
|
+
let a;
|
|
1199
1199
|
if (e[3] !== t || e[4] !== n) {
|
|
1200
|
-
const
|
|
1200
|
+
const i = {
|
|
1201
1201
|
...t,
|
|
1202
1202
|
supportedOperators: l,
|
|
1203
1203
|
onOperatorChangeValueConverter: Xl,
|
|
1204
1204
|
conditionValueParser: Zl,
|
|
1205
1205
|
valueInputRender: n
|
|
1206
1206
|
};
|
|
1207
|
-
|
|
1207
|
+
a = /* @__PURE__ */ c(Fe, { ...i }), e[3] = t, e[4] = n, e[5] = a;
|
|
1208
1208
|
} else
|
|
1209
|
-
|
|
1210
|
-
return
|
|
1209
|
+
a = e[5];
|
|
1210
|
+
return a;
|
|
1211
1211
|
}
|
|
1212
|
-
r(
|
|
1213
|
-
|
|
1212
|
+
r(ln, "DateTimeFilter");
|
|
1213
|
+
ln.displayName = "DateTimeFilter";
|
|
1214
1214
|
const tt = class tt {
|
|
1215
1215
|
constructor() {
|
|
1216
1216
|
this.registry = /* @__PURE__ */ new Map();
|
|
@@ -1310,31 +1310,31 @@ const tt = class tt {
|
|
|
1310
1310
|
static create(e = []) {
|
|
1311
1311
|
const l = new tt();
|
|
1312
1312
|
return e.forEach(
|
|
1313
|
-
([n,
|
|
1313
|
+
([n, a]) => l.register(n, a)
|
|
1314
1314
|
), l;
|
|
1315
1315
|
}
|
|
1316
1316
|
};
|
|
1317
1317
|
r(tt, "TypedComponentRegistry");
|
|
1318
1318
|
let et = tt;
|
|
1319
1319
|
const Jl = et.create([
|
|
1320
|
-
[zl,
|
|
1321
|
-
[Ul,
|
|
1322
|
-
[Bl,
|
|
1323
|
-
[Wl,
|
|
1324
|
-
[Gl,
|
|
1325
|
-
[ql,
|
|
1320
|
+
[zl, Zt],
|
|
1321
|
+
[Ul, Xt],
|
|
1322
|
+
[Bl, Jt],
|
|
1323
|
+
[Wl, en],
|
|
1324
|
+
[Gl, tn],
|
|
1325
|
+
[ql, ln]
|
|
1326
1326
|
]);
|
|
1327
|
-
function
|
|
1327
|
+
function an(t) {
|
|
1328
1328
|
const e = G(2), {
|
|
1329
1329
|
type: l,
|
|
1330
1330
|
ref: n
|
|
1331
1331
|
} = t;
|
|
1332
1332
|
Ae(n, ea);
|
|
1333
|
-
const
|
|
1334
|
-
let
|
|
1335
|
-
return e[0] !==
|
|
1333
|
+
const a = `Unsupported filter type:[${l}]`;
|
|
1334
|
+
let i;
|
|
1335
|
+
return e[0] !== a ? (i = /* @__PURE__ */ c(Tn, { title: a, type: "warning", showIcon: !0 }), e[0] = a, e[1] = i) : i = e[1], i;
|
|
1336
1336
|
}
|
|
1337
|
-
r(
|
|
1337
|
+
r(an, "FallbackFilter");
|
|
1338
1338
|
function ea() {
|
|
1339
1339
|
return {
|
|
1340
1340
|
getValue() {
|
|
@@ -1344,7 +1344,7 @@ function ea() {
|
|
|
1344
1344
|
};
|
|
1345
1345
|
}
|
|
1346
1346
|
r(ea, "_temp$8");
|
|
1347
|
-
|
|
1347
|
+
an.displayName = "FallbackFilter";
|
|
1348
1348
|
const ta = {
|
|
1349
1349
|
flex: "auto",
|
|
1350
1350
|
width: "100%"
|
|
@@ -1352,22 +1352,22 @@ const ta = {
|
|
|
1352
1352
|
function St(t) {
|
|
1353
1353
|
const e = G(10);
|
|
1354
1354
|
let l;
|
|
1355
|
-
e[0] !== t.type ? (l = Jl.get(t.type) ||
|
|
1355
|
+
e[0] !== t.type ? (l = Jl.get(t.type) || an, e[0] = t.type, e[1] = l) : l = e[1];
|
|
1356
1356
|
const n = l;
|
|
1357
|
-
let
|
|
1358
|
-
e[2] !== t.value ? (
|
|
1357
|
+
let a;
|
|
1358
|
+
e[2] !== t.value ? (a = {
|
|
1359
1359
|
style: ta,
|
|
1360
1360
|
...t.value
|
|
1361
|
-
}, e[2] = t.value, e[3] =
|
|
1362
|
-
const
|
|
1361
|
+
}, e[2] = t.value, e[3] = a) : a = e[3];
|
|
1362
|
+
const i = a;
|
|
1363
1363
|
let s;
|
|
1364
|
-
e[4] !== t || e[5] !==
|
|
1364
|
+
e[4] !== t || e[5] !== i ? (s = {
|
|
1365
1365
|
...t,
|
|
1366
|
-
value:
|
|
1367
|
-
}, e[4] = t, e[5] =
|
|
1366
|
+
value: i
|
|
1367
|
+
}, e[4] = t, e[5] = i, e[6] = s) : s = e[6];
|
|
1368
1368
|
const o = s;
|
|
1369
1369
|
let u;
|
|
1370
|
-
return e[7] !== n || e[8] !== o ? (u =
|
|
1370
|
+
return e[7] !== n || e[8] !== o ? (u = gt.createElement(n, o), e[7] = n, e[8] = o, e[9] = u) : u = e[9], u;
|
|
1371
1371
|
}
|
|
1372
1372
|
r(St, "TypedFilter");
|
|
1373
1373
|
St.displayName = "TypedFilter";
|
|
@@ -1381,19 +1381,19 @@ function aa(t) {
|
|
|
1381
1381
|
onRemove: l,
|
|
1382
1382
|
...n
|
|
1383
1383
|
} = t, e[0] = t, e[1] = l, e[2] = n) : (l = e[1], n = e[2]);
|
|
1384
|
-
const [
|
|
1384
|
+
const [a, i] = j(!1);
|
|
1385
1385
|
if (!l) {
|
|
1386
1386
|
let m;
|
|
1387
1387
|
return e[3] !== n ? (m = /* @__PURE__ */ c(St, { ...n }), e[3] = n, e[4] = m) : m = e[4], m;
|
|
1388
1388
|
}
|
|
1389
1389
|
let s, o, u;
|
|
1390
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(() =>
|
|
1390
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(() => i(!0), "t0"), o = /* @__PURE__ */ r(() => i(!1), "t1"), u = {
|
|
1391
1391
|
width: "100%"
|
|
1392
1392
|
}, e[5] = s, e[6] = o, e[7] = u) : (s = e[5], o = e[6], u = e[7]);
|
|
1393
1393
|
let d;
|
|
1394
1394
|
e[8] !== n ? (d = /* @__PURE__ */ c(St, { ...n }), e[8] = n, e[9] = d) : d = e[9];
|
|
1395
1395
|
let f;
|
|
1396
|
-
e[10] !== l || e[11] !==
|
|
1396
|
+
e[10] !== l || e[11] !== a ? (f = a && /* @__PURE__ */ c(me, { type: "dashed", shape: "circle", size: "small", onClick: l, icon: /* @__PURE__ */ c(Vn, {}) }), e[10] = l, e[11] = a, e[12] = f) : f = e[12];
|
|
1397
1397
|
let h;
|
|
1398
1398
|
return e[13] !== d || e[14] !== f ? (h = /* @__PURE__ */ q(Te, { onMouseOver: s, onMouseOut: o, style: u, className: la.fullWidthItem, children: [
|
|
1399
1399
|
d,
|
|
@@ -1404,26 +1404,26 @@ r(aa, "RemovableTypedFilter");
|
|
|
1404
1404
|
const ia = {
|
|
1405
1405
|
gutter: [8, 8],
|
|
1406
1406
|
wrap: !0
|
|
1407
|
-
},
|
|
1407
|
+
}, rn = {
|
|
1408
1408
|
xxl: 6,
|
|
1409
1409
|
xl: 8,
|
|
1410
1410
|
lg: 12,
|
|
1411
1411
|
md: 12,
|
|
1412
1412
|
sm: 24,
|
|
1413
1413
|
xs: 24
|
|
1414
|
-
}, ra =
|
|
1415
|
-
function
|
|
1414
|
+
}, ra = rn;
|
|
1415
|
+
function sn(t) {
|
|
1416
1416
|
const e = G(40), {
|
|
1417
1417
|
ref: l,
|
|
1418
1418
|
row: n,
|
|
1419
|
-
col:
|
|
1420
|
-
actionsCol:
|
|
1419
|
+
col: a,
|
|
1420
|
+
actionsCol: i,
|
|
1421
1421
|
filters: s,
|
|
1422
1422
|
onSearch: o,
|
|
1423
1423
|
actions: u,
|
|
1424
1424
|
resetButton: d,
|
|
1425
1425
|
searchButton: f
|
|
1426
|
-
} = t, h = n === void 0 ? ia : n, m =
|
|
1426
|
+
} = t, h = n === void 0 ? ia : n, m = a === void 0 ? rn : a, E = i === void 0 ? ra : i, T = Fn();
|
|
1427
1427
|
let S;
|
|
1428
1428
|
e[0] !== T ? (S = /* @__PURE__ */ r(() => {
|
|
1429
1429
|
const N = Array.from(T.values()).map(sa).filter(Boolean);
|
|
@@ -1457,31 +1457,31 @@ function rn(t) {
|
|
|
1457
1457
|
let V;
|
|
1458
1458
|
if (e[13] !== m || e[14] !== T || e[15] !== s) {
|
|
1459
1459
|
let N;
|
|
1460
|
-
e[17] !== m || e[18] !== T ? (N = /* @__PURE__ */ r((
|
|
1460
|
+
e[17] !== m || e[18] !== T ? (N = /* @__PURE__ */ r((I) => /* @__PURE__ */ bn(Nt, { ...m, key: I.key }, /* @__PURE__ */ c(aa, { type: I.type, field: I.field, operator: I.operator, value: I.value, onRemove: I.onRemove, ref: T.register(I.key) }, I.key)), "t92"), e[17] = m, e[18] = T, e[19] = N) : N = e[19], V = s.map(N), e[13] = m, e[14] = T, e[15] = s, e[16] = V;
|
|
1461
1461
|
} else
|
|
1462
1462
|
V = e[16];
|
|
1463
|
-
let p;
|
|
1464
|
-
e[20] !== F || e[21] !== M || e[22] !== D ? (p = D && /* @__PURE__ */ c(de, { icon: /* @__PURE__ */ c(Mn, {}), onClick: F, ...M, children: M?.children || "Reset" }), e[20] = F, e[21] = M, e[22] = D, e[23] = p) : p = e[23];
|
|
1465
1463
|
let O;
|
|
1466
|
-
e[
|
|
1464
|
+
e[20] !== F || e[21] !== M || e[22] !== D ? (O = D && /* @__PURE__ */ c(me, { icon: /* @__PURE__ */ c(Mn, {}), onClick: F, ...M, children: M?.children || "Reset" }), e[20] = F, e[21] = M, e[22] = D, e[23] = O) : O = e[23];
|
|
1465
|
+
let p;
|
|
1466
|
+
e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ c(kn, {}), e[24] = p) : p = e[24];
|
|
1467
1467
|
const k = f?.children || "Search";
|
|
1468
1468
|
let B;
|
|
1469
|
-
e[25] !== P || e[26] !== f || e[27] !== k ? (B = /* @__PURE__ */ c(
|
|
1470
|
-
let
|
|
1471
|
-
e[29] !== u || e[30] !== B || e[31] !==
|
|
1469
|
+
e[25] !== P || e[26] !== f || e[27] !== k ? (B = /* @__PURE__ */ c(me, { type: "primary", icon: p, onClick: P, ...f, children: k }), e[25] = P, e[26] = f, e[27] = k, e[28] = B) : B = e[28];
|
|
1470
|
+
let v;
|
|
1471
|
+
e[29] !== u || e[30] !== B || e[31] !== O ? (v = /* @__PURE__ */ q(Te.Compact, { children: [
|
|
1472
1472
|
u,
|
|
1473
|
-
|
|
1473
|
+
O,
|
|
1474
1474
|
B
|
|
1475
|
-
] }), e[29] = u, e[30] = B, e[31] =
|
|
1475
|
+
] }), e[29] = u, e[30] = B, e[31] = O, e[32] = v) : v = e[32];
|
|
1476
1476
|
let _;
|
|
1477
|
-
e[33] !== E || e[34] !==
|
|
1477
|
+
e[33] !== E || e[34] !== v ? (_ = /* @__PURE__ */ c(Nt, { ...E, children: v }), e[33] = E, e[34] = v, e[35] = _) : _ = e[35];
|
|
1478
1478
|
let C;
|
|
1479
|
-
return e[36] !== h || e[37] !== _ || e[38] !== V ? (C = /* @__PURE__ */ c(Ee, { children: /* @__PURE__ */ q(
|
|
1479
|
+
return e[36] !== h || e[37] !== _ || e[38] !== V ? (C = /* @__PURE__ */ c(Ee, { children: /* @__PURE__ */ q(_n, { ...h, children: [
|
|
1480
1480
|
V,
|
|
1481
1481
|
_
|
|
1482
1482
|
] }) }), e[36] = h, e[37] = _, e[38] = V, e[39] = C) : C = e[39], C;
|
|
1483
1483
|
}
|
|
1484
|
-
r(
|
|
1484
|
+
r(sn, "FilterPanel");
|
|
1485
1485
|
function sa(t) {
|
|
1486
1486
|
return t?.getValue()?.condition;
|
|
1487
1487
|
}
|
|
@@ -1490,73 +1490,73 @@ function oa(t) {
|
|
|
1490
1490
|
const e = G(34), {
|
|
1491
1491
|
ref: l,
|
|
1492
1492
|
row: n,
|
|
1493
|
-
col:
|
|
1494
|
-
availableFilters:
|
|
1493
|
+
col: a,
|
|
1494
|
+
availableFilters: i,
|
|
1495
1495
|
filters: s,
|
|
1496
1496
|
resetButton: o,
|
|
1497
1497
|
onSearch: u,
|
|
1498
1498
|
onChange: d
|
|
1499
|
-
} = t, [f, h] =
|
|
1499
|
+
} = t, [f, h] = j(s), [m, E] = j(!1), T = Pn();
|
|
1500
1500
|
let S, L;
|
|
1501
1501
|
e[0] !== s ? (S = /* @__PURE__ */ r(() => {
|
|
1502
1502
|
h(s);
|
|
1503
|
-
}, "t0"), L = [s], e[0] = s, e[1] = S, e[2] = L) : (S = e[1], L = e[2]),
|
|
1503
|
+
}, "t0"), L = [s], e[0] = s, e[1] = S, e[2] = L) : (S = e[1], L = e[2]), Se(S, L);
|
|
1504
1504
|
let b;
|
|
1505
1505
|
e[3] !== f || e[4] !== T || e[5] !== d ? (b = /* @__PURE__ */ r((B) => {
|
|
1506
1506
|
if (B.length === 0) {
|
|
1507
1507
|
E(!1);
|
|
1508
1508
|
return;
|
|
1509
1509
|
}
|
|
1510
|
-
const
|
|
1510
|
+
const v = B.map((C) => ({
|
|
1511
1511
|
key: T.generate(),
|
|
1512
1512
|
type: C.component,
|
|
1513
1513
|
field: C.field,
|
|
1514
1514
|
value: C.value,
|
|
1515
1515
|
operator: C.operator
|
|
1516
|
-
})), _ = [...f, ...
|
|
1516
|
+
})), _ = [...f, ...v];
|
|
1517
1517
|
h(_), d && d(_), E(!1);
|
|
1518
1518
|
}, "t2"), e[3] = f, e[4] = T, e[5] = d, e[6] = b) : b = e[6];
|
|
1519
1519
|
const P = b;
|
|
1520
1520
|
let R;
|
|
1521
1521
|
e[7] !== f || e[8] !== d ? (R = /* @__PURE__ */ r((B) => {
|
|
1522
|
-
const
|
|
1523
|
-
h(
|
|
1522
|
+
const v = f.filter((_) => _.key !== B);
|
|
1523
|
+
h(v), d && d(v);
|
|
1524
1524
|
}, "t3"), e[7] = f, e[8] = d, e[9] = R) : R = e[9];
|
|
1525
1525
|
const F = R;
|
|
1526
1526
|
let x;
|
|
1527
1527
|
if (e[10] !== f || e[11] !== F) {
|
|
1528
1528
|
let B;
|
|
1529
|
-
e[13] !== F ? (B = /* @__PURE__ */ r((
|
|
1530
|
-
...
|
|
1531
|
-
onRemove: /* @__PURE__ */ r(() => F(
|
|
1529
|
+
e[13] !== F ? (B = /* @__PURE__ */ r((v) => ({
|
|
1530
|
+
...v,
|
|
1531
|
+
onRemove: /* @__PURE__ */ r(() => F(v.key), "onRemove")
|
|
1532
1532
|
}), "t52"), e[13] = F, e[14] = B) : B = e[14], x = f.map(B), e[10] = f, e[11] = F, e[12] = x;
|
|
1533
1533
|
} else
|
|
1534
1534
|
x = e[12];
|
|
1535
1535
|
const D = x;
|
|
1536
1536
|
let g;
|
|
1537
|
-
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ c(
|
|
1537
|
+
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ c(me, { onClick: /* @__PURE__ */ r(() => E(!0), "onClick"), children: "Add Filter" }), e[15] = g) : g = e[15];
|
|
1538
1538
|
let M;
|
|
1539
|
-
e[16] !==
|
|
1539
|
+
e[16] !== a || e[17] !== D || e[18] !== u || e[19] !== l || e[20] !== o || e[21] !== n ? (M = /* @__PURE__ */ c(sn, { ref: l, filters: D, onSearch: u, actions: g, resetButton: o, row: n, col: a }), e[16] = a, e[17] = D, e[18] = u, e[19] = l, e[20] = o, e[21] = n, e[22] = M) : M = e[22];
|
|
1540
1540
|
let V;
|
|
1541
1541
|
e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ r(() => E(!1), "t7"), e[23] = V) : V = e[23];
|
|
1542
|
-
let p;
|
|
1543
|
-
e[24] !== f || e[25] !== a ? (p = {
|
|
1544
|
-
filters: a,
|
|
1545
|
-
activeFilters: f
|
|
1546
|
-
}, e[24] = f, e[25] = a, e[26] = p) : p = e[26];
|
|
1547
1542
|
let O;
|
|
1548
|
-
e[
|
|
1543
|
+
e[24] !== f || e[25] !== i ? (O = {
|
|
1544
|
+
filters: i,
|
|
1545
|
+
activeFilters: f
|
|
1546
|
+
}, e[24] = f, e[25] = i, e[26] = O) : O = e[26];
|
|
1547
|
+
let p;
|
|
1548
|
+
e[27] !== P || e[28] !== m || e[29] !== O ? (p = /* @__PURE__ */ c(Fl, { title: "Add Filter", open: m, onCancel: V, onSave: P, availableFilters: O }), e[27] = P, e[28] = m, e[29] = O, e[30] = p) : p = e[30];
|
|
1549
1549
|
let k;
|
|
1550
|
-
return e[31] !== M || e[32] !==
|
|
1550
|
+
return e[31] !== M || e[32] !== p ? (k = /* @__PURE__ */ q(Ee, { children: [
|
|
1551
1551
|
M,
|
|
1552
|
-
|
|
1553
|
-
] }), e[31] = M, e[32] =
|
|
1552
|
+
p
|
|
1553
|
+
] }), e[31] = M, e[32] = p, e[33] = k) : k = e[33], k;
|
|
1554
1554
|
}
|
|
1555
1555
|
r(oa, "EditableFilterPanel");
|
|
1556
1556
|
const ca = "REFRESH_DATA_EVENTS", ua = new nl(ca), $e = new ll({ delegate: ua });
|
|
1557
1557
|
function st() {
|
|
1558
1558
|
const t = /* @__PURE__ */ r(() => $e.emit("REFRESH"), "publish"), e = /* @__PURE__ */ r((l) => $e.on(l), "subscribe");
|
|
1559
|
-
return
|
|
1559
|
+
return Se(() => () => {
|
|
1560
1560
|
$e.handlers.forEach((l) => {
|
|
1561
1561
|
$e.off(l.name);
|
|
1562
1562
|
});
|
|
@@ -1567,45 +1567,45 @@ function st() {
|
|
|
1567
1567
|
};
|
|
1568
1568
|
}
|
|
1569
1569
|
r(st, "useRefreshDataEventBus");
|
|
1570
|
-
const
|
|
1571
|
-
function
|
|
1570
|
+
const on = Ue();
|
|
1571
|
+
function cn({
|
|
1572
1572
|
defaultPage: t = 1,
|
|
1573
1573
|
defaultPageSize: e = 10,
|
|
1574
1574
|
defaultTableSize: l = "middle",
|
|
1575
|
-
defaultCondition: n =
|
|
1576
|
-
defaultSorter:
|
|
1577
|
-
...
|
|
1575
|
+
defaultCondition: n = on,
|
|
1576
|
+
defaultSorter: a = [],
|
|
1577
|
+
...i
|
|
1578
1578
|
}) {
|
|
1579
|
-
const { defaultColumns: s, defaultActiveFilters: o } =
|
|
1579
|
+
const { defaultColumns: s, defaultActiveFilters: o } = i, [u, d] = j(s), [f, h] = j(o), [m, E] = j(t), [T, S] = j(e), [L, b] = j(l), [P, R] = j(a), [F, x] = j(n);
|
|
1580
1580
|
return {
|
|
1581
1581
|
columns: u,
|
|
1582
|
-
setColumns: /* @__PURE__ */ r((
|
|
1583
|
-
d(
|
|
1582
|
+
setColumns: /* @__PURE__ */ r((p) => {
|
|
1583
|
+
d(p.map((k) => ({ ...k })));
|
|
1584
1584
|
}, "setColumnsFn"),
|
|
1585
1585
|
activeFilters: f,
|
|
1586
|
-
setActiveFilters: /* @__PURE__ */ r((
|
|
1587
|
-
h(
|
|
1586
|
+
setActiveFilters: /* @__PURE__ */ r((p) => {
|
|
1587
|
+
h(p.map((k) => ({ ...k })));
|
|
1588
1588
|
}, "setActiveFiltersFn"),
|
|
1589
1589
|
page: m,
|
|
1590
1590
|
setPage: E,
|
|
1591
1591
|
pageSize: T,
|
|
1592
1592
|
setPageSize: S,
|
|
1593
1593
|
condition: F,
|
|
1594
|
-
setCondition: /* @__PURE__ */ r((
|
|
1595
|
-
x({ ...
|
|
1594
|
+
setCondition: /* @__PURE__ */ r((p) => {
|
|
1595
|
+
x({ ...p });
|
|
1596
1596
|
}, "setConditionFn"),
|
|
1597
1597
|
sorter: P,
|
|
1598
|
-
setSorter: /* @__PURE__ */ r((
|
|
1599
|
-
R(
|
|
1598
|
+
setSorter: /* @__PURE__ */ r((p) => {
|
|
1599
|
+
R(p.map((k) => ({ ...k })));
|
|
1600
1600
|
}, "setSorterFn"),
|
|
1601
1601
|
tableSize: L,
|
|
1602
1602
|
setTableSize: b,
|
|
1603
1603
|
reset: /* @__PURE__ */ r(() => {
|
|
1604
|
-
d(s), h(o), E(t), S(e), x(n), R(
|
|
1604
|
+
d(s), h(o), E(t), S(e), x(n), R(a), b(l);
|
|
1605
1605
|
}, "resetFn")
|
|
1606
1606
|
};
|
|
1607
1607
|
}
|
|
1608
|
-
r(
|
|
1608
|
+
r(cn, "useActiveViewState");
|
|
1609
1609
|
const fa = "action";
|
|
1610
1610
|
function Ft(t) {
|
|
1611
1611
|
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");
|
|
@@ -1618,14 +1618,14 @@ function Me(t) {
|
|
|
1618
1618
|
} = t;
|
|
1619
1619
|
if (!l.value)
|
|
1620
1620
|
return null;
|
|
1621
|
-
let i;
|
|
1622
|
-
e[0] !== n || e[1] !== l.record ? (i = /* @__PURE__ */ r(() => n?.onClick?.(l.record), "t0"), e[0] = n, e[1] = l.record, e[2] = i) : i = e[2];
|
|
1623
1621
|
let a;
|
|
1624
|
-
e[
|
|
1622
|
+
e[0] !== n || e[1] !== l.record ? (a = /* @__PURE__ */ r(() => n?.onClick?.(l.record), "t0"), e[0] = n, e[1] = l.record, e[2] = a) : a = e[2];
|
|
1623
|
+
let i;
|
|
1624
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
1625
1625
|
padding: 0
|
|
1626
|
-
}, e[3] =
|
|
1626
|
+
}, e[3] = i) : i = e[3];
|
|
1627
1627
|
let s;
|
|
1628
|
-
return e[4] !== n || e[5] !== l.value || e[6] !==
|
|
1628
|
+
return e[4] !== n || e[5] !== l.value || e[6] !== a ? (s = /* @__PURE__ */ c(me, { type: "link", ...n, onClick: a, style: i, children: l.value }), e[4] = n, e[5] = l.value, e[6] = a, e[7] = s) : s = e[7], s;
|
|
1629
1629
|
}
|
|
1630
1630
|
r(Me, "ActionCell");
|
|
1631
1631
|
const da = "actions";
|
|
@@ -1634,17 +1634,17 @@ function ma(t) {
|
|
|
1634
1634
|
data: e
|
|
1635
1635
|
} = t;
|
|
1636
1636
|
let l = [];
|
|
1637
|
-
return Array.isArray(e.value.secondaryActions) && e.value.secondaryActions.length > 0 && (l = e.value.secondaryActions.map((
|
|
1638
|
-
key:
|
|
1639
|
-
label: /* @__PURE__ */ c(Me, { ...
|
|
1640
|
-
}))), typeof e.value.secondaryActions == "function" && (l = e.value.secondaryActions(e.record).map((n,
|
|
1641
|
-
key:
|
|
1637
|
+
return Array.isArray(e.value.secondaryActions) && e.value.secondaryActions.length > 0 && (l = e.value.secondaryActions.map((a) => ({
|
|
1638
|
+
key: a.data.index,
|
|
1639
|
+
label: /* @__PURE__ */ c(Me, { ...a })
|
|
1640
|
+
}))), typeof e.value.secondaryActions == "function" && (l = e.value.secondaryActions(e.record).map((n, a) => ({
|
|
1641
|
+
key: a,
|
|
1642
1642
|
label: /* @__PURE__ */ c(Ee, { children: n })
|
|
1643
1643
|
}))), l.length > 0 ? /* @__PURE__ */ q(Te, { children: [
|
|
1644
1644
|
Ft(e.value.primaryAction) ? /* @__PURE__ */ c(Me, { ...e.value.primaryAction }) : /* @__PURE__ */ c(Ee, { children: e.value.primaryAction(e.record) }),
|
|
1645
|
-
/* @__PURE__ */ c(
|
|
1645
|
+
/* @__PURE__ */ c(pe, { menu: {
|
|
1646
1646
|
items: l
|
|
1647
|
-
}, children: /* @__PURE__ */ c(
|
|
1647
|
+
}, children: /* @__PURE__ */ c(me, { type: "link", style: {
|
|
1648
1648
|
padding: 0
|
|
1649
1649
|
}, children: /* @__PURE__ */ q(Te, { children: [
|
|
1650
1650
|
e.value.moreActionTitle || "More",
|
|
@@ -1653,10 +1653,10 @@ function ma(t) {
|
|
|
1653
1653
|
] }) : /* @__PURE__ */ c(Ee, { children: Ft(e.value.primaryAction) ? /* @__PURE__ */ c(Me, { ...e.value.primaryAction }) : /* @__PURE__ */ c(Ee, { children: e.value.primaryAction(e.record) }) });
|
|
1654
1654
|
}
|
|
1655
1655
|
r(ma, "renderActions");
|
|
1656
|
-
function
|
|
1656
|
+
function un(t) {
|
|
1657
1657
|
return ma(t);
|
|
1658
1658
|
}
|
|
1659
|
-
r(
|
|
1659
|
+
r(un, "ActionsCell");
|
|
1660
1660
|
function ha(t) {
|
|
1661
1661
|
return Tt.isDayjs(t) ? t : Tt(t);
|
|
1662
1662
|
}
|
|
@@ -1678,19 +1678,19 @@ function Sa(t) {
|
|
|
1678
1678
|
data: l,
|
|
1679
1679
|
attributes: n
|
|
1680
1680
|
} = t;
|
|
1681
|
-
let
|
|
1682
|
-
e[0] !== n ? (
|
|
1683
|
-
const
|
|
1681
|
+
let a;
|
|
1682
|
+
e[0] !== n ? (a = n === void 0 ? {} : n, e[0] = n, e[1] = a) : a = e[1];
|
|
1683
|
+
const i = a;
|
|
1684
1684
|
if (!l.value) {
|
|
1685
1685
|
let o;
|
|
1686
|
-
return e[2] !==
|
|
1686
|
+
return e[2] !== i ? (o = /* @__PURE__ */ c(ct, { ...i }), e[2] = i, e[3] = o) : o = e[3], o;
|
|
1687
1687
|
}
|
|
1688
1688
|
if (Ta(l.value)) {
|
|
1689
1689
|
let o;
|
|
1690
|
-
return e[4] !==
|
|
1690
|
+
return e[4] !== i || e[5] !== l.value ? (o = /* @__PURE__ */ c(ct, { src: l.value, ...i }), e[4] = i, e[5] = l.value, e[6] = o) : o = e[6], o;
|
|
1691
1691
|
}
|
|
1692
1692
|
let s;
|
|
1693
|
-
return e[7] !==
|
|
1693
|
+
return e[7] !== i || e[8] !== l.value ? (s = /* @__PURE__ */ c(ct, { ...i, children: l.value }), e[7] = i, e[8] = l.value, e[9] = s) : s = e[9], s;
|
|
1694
1694
|
}
|
|
1695
1695
|
r(Sa, "AvatarCell");
|
|
1696
1696
|
var qe = { exports: {} }, Ca = qe.exports, Pt;
|
|
@@ -1699,11 +1699,11 @@ function va() {
|
|
|
1699
1699
|
(function(l, n) {
|
|
1700
1700
|
t.exports = n();
|
|
1701
1701
|
})(Ca, (function() {
|
|
1702
|
-
return function(l, n,
|
|
1703
|
-
var
|
|
1702
|
+
return function(l, n, a) {
|
|
1703
|
+
var i = "h:mm A", s = { lastDay: "[Yesterday at] " + i, sameDay: "[Today at] " + i, nextDay: "[Tomorrow at] " + i, nextWeek: "dddd [at] " + i, lastWeek: "[Last] dddd [at] " + i, sameElse: "MM/DD/YYYY" };
|
|
1704
1704
|
n.prototype.calendar = function(o, u) {
|
|
1705
|
-
var d = u || this.$locale().calendar || s, f =
|
|
1706
|
-
return typeof T == "function" ? T.call(this,
|
|
1705
|
+
var d = u || this.$locale().calendar || s, f = a(o || void 0).startOf("d"), h = this.diff(f, "d", !0), m = "sameElse", E = h < -6 ? m : h < -1 ? "lastWeek" : h < 0 ? "lastDay" : h < 1 ? "sameDay" : h < 2 ? "nextDay" : h < 7 ? "nextWeek" : m, T = d[E] || s[E];
|
|
1706
|
+
return typeof T == "function" ? T.call(this, a()) : this.format(T);
|
|
1707
1707
|
};
|
|
1708
1708
|
};
|
|
1709
1709
|
}));
|
|
@@ -1711,15 +1711,15 @@ function va() {
|
|
|
1711
1711
|
}
|
|
1712
1712
|
r(va, "requireCalendar");
|
|
1713
1713
|
var Ia = va();
|
|
1714
|
-
const ya = /* @__PURE__ */
|
|
1714
|
+
const ya = /* @__PURE__ */ nn(Ia), {
|
|
1715
1715
|
Text: Ke
|
|
1716
1716
|
} = Be, Na = "datetime", Qe = "YYYY-MM-DD HH:mm:ss";
|
|
1717
|
-
function
|
|
1717
|
+
function fn(t) {
|
|
1718
1718
|
const e = G(10), {
|
|
1719
1719
|
data: l,
|
|
1720
1720
|
attributes: n
|
|
1721
1721
|
} = t;
|
|
1722
|
-
let
|
|
1722
|
+
let a, i, s, o;
|
|
1723
1723
|
if (e[0] !== l.value || e[1] !== n) {
|
|
1724
1724
|
o = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
1725
1725
|
e: {
|
|
@@ -1740,17 +1740,17 @@ function un(t) {
|
|
|
1740
1740
|
o = /* @__PURE__ */ c(Ke, { ...h, children: m(E) });
|
|
1741
1741
|
break e;
|
|
1742
1742
|
}
|
|
1743
|
-
|
|
1743
|
+
a = Ke, i = h, s = E.format(m);
|
|
1744
1744
|
}
|
|
1745
|
-
e[0] = l.value, e[1] = n, e[2] =
|
|
1745
|
+
e[0] = l.value, e[1] = n, e[2] = a, e[3] = i, e[4] = s, e[5] = o;
|
|
1746
1746
|
} else
|
|
1747
|
-
|
|
1747
|
+
a = e[2], i = e[3], s = e[4], o = e[5];
|
|
1748
1748
|
if (o !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
|
|
1749
1749
|
return o;
|
|
1750
1750
|
let u;
|
|
1751
|
-
return e[6] !==
|
|
1751
|
+
return e[6] !== a || e[7] !== i || e[8] !== s ? (u = /* @__PURE__ */ c(a, { ...i, children: s }), e[6] = a, e[7] = i, e[8] = s, e[9] = u) : u = e[9], u;
|
|
1752
1752
|
}
|
|
1753
|
-
r(
|
|
1753
|
+
r(fn, "DateTimeCell");
|
|
1754
1754
|
Tt.extend(ya);
|
|
1755
1755
|
const Aa = "calendar-time", Ra = {
|
|
1756
1756
|
sameDay: "[今天] HH:mm",
|
|
@@ -1765,14 +1765,14 @@ function La(t) {
|
|
|
1765
1765
|
data: l,
|
|
1766
1766
|
attributes: n
|
|
1767
1767
|
} = t;
|
|
1768
|
-
let
|
|
1769
|
-
e[0] !== n ? (
|
|
1770
|
-
const
|
|
1768
|
+
let a;
|
|
1769
|
+
e[0] !== n ? (a = n === void 0 ? {} : n, e[0] = n, e[1] = a) : a = e[1];
|
|
1770
|
+
const i = a;
|
|
1771
1771
|
let s, o;
|
|
1772
|
-
e[2] !==
|
|
1772
|
+
e[2] !== i ? ({
|
|
1773
1773
|
formats: s,
|
|
1774
1774
|
...o
|
|
1775
|
-
} =
|
|
1775
|
+
} = i, e[2] = i, e[3] = s, e[4] = o) : (s = e[3], o = e[4]);
|
|
1776
1776
|
const u = s === void 0 ? Ra : s;
|
|
1777
1777
|
let d;
|
|
1778
1778
|
e[5] !== u ? (d = /* @__PURE__ */ r((E) => E.calendar(null, u), "t3"), e[5] = u, e[6] = d) : d = e[6];
|
|
@@ -1783,41 +1783,41 @@ function La(t) {
|
|
|
1783
1783
|
...o
|
|
1784
1784
|
}, e[7] = f, e[8] = o, e[9] = h) : h = e[9];
|
|
1785
1785
|
let m;
|
|
1786
|
-
return e[10] !== l || e[11] !== h ? (m = /* @__PURE__ */ c(
|
|
1786
|
+
return e[10] !== l || e[11] !== h ? (m = /* @__PURE__ */ c(fn, { data: l, attributes: h }), e[10] = l, e[11] = h, e[12] = m) : m = e[12], m;
|
|
1787
1787
|
}
|
|
1788
1788
|
r(La, "CalendarTimeCell");
|
|
1789
1789
|
const {
|
|
1790
1790
|
Text: ba
|
|
1791
|
-
} = Be,
|
|
1792
|
-
function
|
|
1791
|
+
} = Be, pa = "text";
|
|
1792
|
+
function dn(t) {
|
|
1793
1793
|
const e = G(3), l = t.attributes?.children ?? (t.data.value || "-");
|
|
1794
1794
|
let n;
|
|
1795
1795
|
return e[0] !== t.attributes || e[1] !== l ? (n = /* @__PURE__ */ c(ba, { ...t.attributes, children: l }), e[0] = t.attributes, e[1] = l, e[2] = n) : n = e[2], n;
|
|
1796
1796
|
}
|
|
1797
|
-
r(
|
|
1798
|
-
const
|
|
1799
|
-
function
|
|
1797
|
+
r(dn, "TextCell");
|
|
1798
|
+
const Oa = "tag";
|
|
1799
|
+
function mn(t) {
|
|
1800
1800
|
const e = G(3), {
|
|
1801
1801
|
data: l,
|
|
1802
1802
|
attributes: n
|
|
1803
1803
|
} = t;
|
|
1804
1804
|
if (!l.value?.trim())
|
|
1805
1805
|
return null;
|
|
1806
|
-
const
|
|
1807
|
-
let
|
|
1808
|
-
return e[0] !== n || e[1] !==
|
|
1806
|
+
const a = n?.children ?? l.value;
|
|
1807
|
+
let i;
|
|
1808
|
+
return e[0] !== n || e[1] !== a ? (i = /* @__PURE__ */ c(vt, { ...n, children: a }), e[0] = n, e[1] = a, e[2] = i) : i = e[2], i;
|
|
1809
1809
|
}
|
|
1810
|
-
r(
|
|
1810
|
+
r(mn, "TagCell");
|
|
1811
1811
|
const Da = "tags";
|
|
1812
1812
|
function wa(t) {
|
|
1813
1813
|
const e = G(14), {
|
|
1814
1814
|
space: l,
|
|
1815
1815
|
data: n,
|
|
1816
|
-
attributes:
|
|
1816
|
+
attributes: a
|
|
1817
1817
|
} = t;
|
|
1818
|
-
let
|
|
1819
|
-
e[0] !==
|
|
1820
|
-
const s =
|
|
1818
|
+
let i;
|
|
1819
|
+
e[0] !== a ? (i = a === void 0 ? {} : a, e[0] = a, e[1] = i) : i = e[1];
|
|
1820
|
+
const s = i;
|
|
1821
1821
|
if (!n.value?.length)
|
|
1822
1822
|
return null;
|
|
1823
1823
|
let o;
|
|
@@ -1825,7 +1825,7 @@ function wa(t) {
|
|
|
1825
1825
|
let d;
|
|
1826
1826
|
e[7] !== s || e[8] !== n.index || e[9] !== n.record ? (d = /* @__PURE__ */ r((f, h) => {
|
|
1827
1827
|
const m = s[f];
|
|
1828
|
-
return /* @__PURE__ */ c(
|
|
1828
|
+
return /* @__PURE__ */ c(mn, { data: {
|
|
1829
1829
|
value: f,
|
|
1830
1830
|
record: n.record,
|
|
1831
1831
|
index: n.index
|
|
@@ -1843,15 +1843,15 @@ function Pa(t) {
|
|
|
1843
1843
|
data: l,
|
|
1844
1844
|
attributes: n
|
|
1845
1845
|
} = t;
|
|
1846
|
-
let
|
|
1847
|
-
e[0] !== n ? (
|
|
1848
|
-
const
|
|
1846
|
+
let a;
|
|
1847
|
+
e[0] !== n ? (a = n === void 0 ? {} : n, e[0] = n, e[1] = a) : a = e[1];
|
|
1848
|
+
const i = a;
|
|
1849
1849
|
if (!l.value) {
|
|
1850
1850
|
let o;
|
|
1851
1851
|
return e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ c(Ze, { description: null }), e[2] = o) : o = e[2], o;
|
|
1852
1852
|
}
|
|
1853
1853
|
let s;
|
|
1854
|
-
return e[3] !==
|
|
1854
|
+
return e[3] !== i || e[4] !== l.value ? (s = /* @__PURE__ */ c(mt, { src: l.value, ...i }), e[3] = i, e[4] = l.value, e[5] = s) : s = e[5], s;
|
|
1855
1855
|
}
|
|
1856
1856
|
r(Pa, "ImageCell");
|
|
1857
1857
|
const $a = "image-group";
|
|
@@ -1860,21 +1860,21 @@ function xa(t) {
|
|
|
1860
1860
|
data: l,
|
|
1861
1861
|
attributes: n
|
|
1862
1862
|
} = t;
|
|
1863
|
-
let
|
|
1864
|
-
e[0] !== n ? (
|
|
1865
|
-
const
|
|
1863
|
+
let a;
|
|
1864
|
+
e[0] !== n ? (a = n === void 0 ? {} : n, e[0] = n, e[1] = a) : a = e[1];
|
|
1865
|
+
const i = a;
|
|
1866
1866
|
if (!l.value || !Array.isArray(l.value) || l.value.length === 0) {
|
|
1867
1867
|
let m;
|
|
1868
1868
|
return e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ c(Ze, { description: null }), e[2] = m) : m = e[2], m;
|
|
1869
1869
|
}
|
|
1870
|
-
const s = l.value.length > 1, o =
|
|
1870
|
+
const s = l.value.length > 1, o = i;
|
|
1871
1871
|
let u;
|
|
1872
1872
|
e[3] !== l.value[0] || e[4] !== o ? (u = /* @__PURE__ */ c(mt, { src: l.value[0], ...o }), e[3] = l.value[0], e[4] = o, e[5] = u) : u = e[5];
|
|
1873
1873
|
const d = u;
|
|
1874
1874
|
let f;
|
|
1875
|
-
e[6] !== l.value.length || e[7] !== s || e[8] !== d ? (f = s ? /* @__PURE__ */ c(
|
|
1875
|
+
e[6] !== l.value.length || e[7] !== s || e[8] !== d ? (f = s ? /* @__PURE__ */ c(Sn, { count: l.value.length, children: d }) : d, e[6] = l.value.length, e[7] = s, e[8] = d, e[9] = f) : f = e[9];
|
|
1876
1876
|
let h;
|
|
1877
|
-
return e[10] !==
|
|
1877
|
+
return e[10] !== i || e[11] !== l.value || e[12] !== f ? (h = /* @__PURE__ */ c(mt.PreviewGroup, { items: l.value, ...i, children: f }), e[10] = i, e[11] = l.value, e[12] = f, e[13] = h) : h = e[13], h;
|
|
1878
1878
|
}
|
|
1879
1879
|
r(xa, "ImageGroupCell");
|
|
1880
1880
|
const {
|
|
@@ -1884,17 +1884,17 @@ function Ua(t) {
|
|
|
1884
1884
|
const e = G(9);
|
|
1885
1885
|
let l;
|
|
1886
1886
|
e[0] !== t.data.value ? (l = t.data.value && ka.test(t.data.value), e[0] = t.data.value, e[1] = l) : l = e[1];
|
|
1887
|
-
const n = l,
|
|
1888
|
-
let
|
|
1889
|
-
e[2] !== n || e[3] !== t.attributes ? (
|
|
1887
|
+
const n = l, a = t.attributes?.href ?? (n ? `${Ha}${t.data.value}` : t.data.value);
|
|
1888
|
+
let i;
|
|
1889
|
+
e[2] !== n || e[3] !== t.attributes ? (i = n ? t.attributes : {
|
|
1890
1890
|
...t.attributes,
|
|
1891
1891
|
...t.attributes?.target === void 0 ? {
|
|
1892
1892
|
target: "_blank"
|
|
1893
1893
|
} : {}
|
|
1894
|
-
}, e[2] = n, e[3] = t.attributes, e[4] =
|
|
1895
|
-
const s =
|
|
1894
|
+
}, e[2] = n, e[3] = t.attributes, e[4] = i) : i = e[4];
|
|
1895
|
+
const s = i, o = t.attributes?.children ?? t.data.value;
|
|
1896
1896
|
let u;
|
|
1897
|
-
return e[5] !==
|
|
1897
|
+
return e[5] !== a || e[6] !== s || e[7] !== o ? (u = /* @__PURE__ */ c(Va, { href: a, ...s, children: o }), e[5] = a, e[6] = s, e[7] = o, e[8] = u) : u = e[8], u;
|
|
1898
1898
|
}
|
|
1899
1899
|
r(Ua, "LinkCell");
|
|
1900
1900
|
const Re = {
|
|
@@ -1909,17 +1909,17 @@ function ga(t, e = Re) {
|
|
|
1909
1909
|
const {
|
|
1910
1910
|
currency: l = Re.currency,
|
|
1911
1911
|
currencyDisplay: n = Re.currencyDisplay,
|
|
1912
|
-
decimals:
|
|
1913
|
-
locale:
|
|
1912
|
+
decimals: a = Re.decimals,
|
|
1913
|
+
locale: i = Re.locale,
|
|
1914
1914
|
useGrouping: s = Re.useGrouping,
|
|
1915
1915
|
fallback: o = Re.fallback
|
|
1916
1916
|
} = e, u = Ba(t);
|
|
1917
|
-
return isNaN(u) || !isFinite(u) ? o : new Intl.NumberFormat(
|
|
1917
|
+
return isNaN(u) || !isFinite(u) ? o : new Intl.NumberFormat(i, {
|
|
1918
1918
|
style: za,
|
|
1919
1919
|
currency: l,
|
|
1920
1920
|
currencyDisplay: n,
|
|
1921
|
-
minimumFractionDigits:
|
|
1922
|
-
maximumFractionDigits:
|
|
1921
|
+
minimumFractionDigits: a,
|
|
1922
|
+
maximumFractionDigits: a,
|
|
1923
1923
|
useGrouping: s
|
|
1924
1924
|
}).format(u);
|
|
1925
1925
|
}
|
|
@@ -1941,14 +1941,14 @@ function Ga(t) {
|
|
|
1941
1941
|
data: l,
|
|
1942
1942
|
attributes: n
|
|
1943
1943
|
} = t;
|
|
1944
|
-
let
|
|
1945
|
-
e[0] !== n ? (
|
|
1946
|
-
const
|
|
1944
|
+
let a;
|
|
1945
|
+
e[0] !== n ? (a = n === void 0 ? {} : n, e[0] = n, e[1] = a) : a = e[1];
|
|
1946
|
+
const i = a;
|
|
1947
1947
|
let s, o;
|
|
1948
|
-
e[2] !==
|
|
1948
|
+
e[2] !== i ? ({
|
|
1949
1949
|
format: s,
|
|
1950
1950
|
...o
|
|
1951
|
-
} =
|
|
1951
|
+
} = i, e[2] = i, e[3] = s, e[4] = o) : (s = e[3], o = e[4]);
|
|
1952
1952
|
let u;
|
|
1953
1953
|
e[5] !== l.value || e[6] !== s ? (u = ga(l.value, s), e[5] = l.value, e[6] = s, e[7] = u) : u = e[7];
|
|
1954
1954
|
const d = u, f = o.children ?? d;
|
|
@@ -1958,11 +1958,11 @@ function Ga(t) {
|
|
|
1958
1958
|
r(Ga, "CurrencyCell");
|
|
1959
1959
|
const Ka = et.create([
|
|
1960
1960
|
[fa, Me],
|
|
1961
|
-
[da,
|
|
1962
|
-
[Oa, fn],
|
|
1961
|
+
[da, un],
|
|
1963
1962
|
[pa, dn],
|
|
1963
|
+
[Oa, mn],
|
|
1964
1964
|
[Da, wa],
|
|
1965
|
-
[Na,
|
|
1965
|
+
[Na, fn],
|
|
1966
1966
|
[Aa, La],
|
|
1967
1967
|
[Fa, Pa],
|
|
1968
1968
|
[$a, xa],
|
|
@@ -1973,14 +1973,17 @@ const Ka = et.create([
|
|
|
1973
1973
|
function ja(t, e) {
|
|
1974
1974
|
const l = Ka.get(t);
|
|
1975
1975
|
if (l)
|
|
1976
|
-
return (n,
|
|
1977
|
-
|
|
1978
|
-
data: {
|
|
1976
|
+
return (n, a, i) => {
|
|
1977
|
+
const s = {
|
|
1979
1978
|
value: n,
|
|
1980
|
-
record:
|
|
1981
|
-
index:
|
|
1982
|
-
}
|
|
1983
|
-
|
|
1979
|
+
record: a,
|
|
1980
|
+
index: i
|
|
1981
|
+
};
|
|
1982
|
+
return gt.createElement(l, {
|
|
1983
|
+
attributes: e,
|
|
1984
|
+
data: s
|
|
1985
|
+
});
|
|
1986
|
+
};
|
|
1984
1987
|
}
|
|
1985
1988
|
r(ja, "typedCellRender");
|
|
1986
1989
|
function $t(t) {
|
|
@@ -1990,17 +1993,17 @@ function $t(t) {
|
|
|
1990
1993
|
width: "100%"
|
|
1991
1994
|
}, e[0] = l) : l = e[0];
|
|
1992
1995
|
const n = !t.hidden;
|
|
1993
|
-
let i;
|
|
1994
|
-
e[1] !== t ? (i = /* @__PURE__ */ r((u) => t.onVisibleChange(!u.target.checked), "t2"), e[1] = t, e[2] = i) : i = e[2];
|
|
1995
1996
|
let a;
|
|
1996
|
-
e[
|
|
1997
|
+
e[1] !== t ? (a = /* @__PURE__ */ r((u) => t.onVisibleChange(!u.target.checked), "t2"), e[1] = t, e[2] = a) : a = e[2];
|
|
1998
|
+
let i;
|
|
1999
|
+
e[3] !== t.columnDefinition.label || e[4] !== t.columnDefinition.primaryKey || e[5] !== n || e[6] !== a ? (i = /* @__PURE__ */ c(zt, { checked: n, disabled: t.columnDefinition.primaryKey, onChange: a, children: t.columnDefinition.label }), e[3] = t.columnDefinition.label, e[4] = t.columnDefinition.primaryKey, e[5] = n, e[6] = a, e[7] = i) : i = e[7];
|
|
1997
2000
|
let s;
|
|
1998
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ c(
|
|
2001
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ c(Bt, {}), e[8] = s) : s = e[8];
|
|
1999
2002
|
let o;
|
|
2000
|
-
return e[9] !==
|
|
2001
|
-
|
|
2003
|
+
return e[9] !== i ? (o = /* @__PURE__ */ q(ve, { align: "center", justify: "space-between", style: l, children: [
|
|
2004
|
+
i,
|
|
2002
2005
|
s
|
|
2003
|
-
] }), e[9] =
|
|
2006
|
+
] }), e[9] = i, e[10] = o) : o = e[10], o;
|
|
2004
2007
|
}
|
|
2005
2008
|
r($t, "TableFieldItem");
|
|
2006
2009
|
const qa = "_item_59wbi_1", Qa = "_dragging_59wbi_9", Xa = "_tips_59wbi_31", Za = "_groupTitle_59wbi_38", be = {
|
|
@@ -2013,25 +2016,25 @@ function Ja(t) {
|
|
|
2013
2016
|
const e = G(21), {
|
|
2014
2017
|
ref: l,
|
|
2015
2018
|
fields: n,
|
|
2016
|
-
initialColumns:
|
|
2017
|
-
onChange:
|
|
2019
|
+
initialColumns: a,
|
|
2020
|
+
onChange: i,
|
|
2018
2021
|
className: s
|
|
2019
|
-
} = t, [o, u] =
|
|
2022
|
+
} = t, [o, u] = j(null), [d, f] = j(a);
|
|
2020
2023
|
let h, m;
|
|
2021
|
-
e[0] !==
|
|
2022
|
-
f(
|
|
2023
|
-
}, "t0"), m = [
|
|
2024
|
-
const E = d.map(ii), T = E.filter(ai), S = E.filter(li), L = E.filter(ni), b = /* @__PURE__ */ r((
|
|
2025
|
-
const A = E.map((w, W) => W ===
|
|
2024
|
+
e[0] !== a ? (h = /* @__PURE__ */ r(() => {
|
|
2025
|
+
f(a);
|
|
2026
|
+
}, "t0"), m = [a], e[0] = a, e[1] = h, e[2] = m) : (h = e[1], m = e[2]), Se(h, m);
|
|
2027
|
+
const E = d.map(ii), T = E.filter(ai), S = E.filter(li), L = E.filter(ni), b = /* @__PURE__ */ r((y, z) => {
|
|
2028
|
+
const A = E.map((w, W) => W === y ? {
|
|
2026
2029
|
...w,
|
|
2027
2030
|
hidden: z
|
|
2028
2031
|
} : w);
|
|
2029
|
-
f(A),
|
|
2032
|
+
f(A), i?.(A);
|
|
2030
2033
|
}, "handleVisibilityChange");
|
|
2031
2034
|
let P;
|
|
2032
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ r((
|
|
2033
|
-
const w =
|
|
2034
|
-
w.style.backgroundColor = "#F5F5F5", w.style.transform = "scale(1.02)", w.style.opacity = "1.0", w.style.boxShadow = "0 2px 8px rgba(0, 0, 0, 0.15)", w.style.position = "absolute", w.style.top = "-1000px", w.style.width = `${
|
|
2035
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ r((y, z, A) => {
|
|
2036
|
+
const w = y.currentTarget.cloneNode(!0);
|
|
2037
|
+
w.style.backgroundColor = "#F5F5F5", w.style.transform = "scale(1.02)", w.style.opacity = "1.0", w.style.boxShadow = "0 2px 8px rgba(0, 0, 0, 0.15)", w.style.position = "absolute", w.style.top = "-1000px", w.style.width = `${y.currentTarget.clientWidth}px`, w.style.height = `${y.currentTarget.clientHeight}px`, document.body.appendChild(w), y.dataTransfer.setDragImage(w, y.nativeEvent.offsetX, y.nativeEvent.offsetY), setTimeout(() => document.body.removeChild(w), 0), y.dataTransfer.effectAllowed = "move", u({
|
|
2035
2038
|
index: A,
|
|
2036
2039
|
group: z
|
|
2037
2040
|
});
|
|
@@ -2041,47 +2044,47 @@ function Ja(t) {
|
|
|
2041
2044
|
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ r(() => {
|
|
2042
2045
|
u(null);
|
|
2043
2046
|
}, "t3"), e[4] = x) : x = e[4];
|
|
2044
|
-
const D = x, g = /* @__PURE__ */ r((
|
|
2047
|
+
const D = x, g = /* @__PURE__ */ r((y, z, A) => {
|
|
2045
2048
|
if (!o || o.index === A || z === "fixed" && T.length >= 3)
|
|
2046
2049
|
return;
|
|
2047
|
-
const w = z === "fixed" ? A + 1 : A, W = [...E], [
|
|
2048
|
-
|
|
2049
|
-
}, "handleDrop"), M = /* @__PURE__ */ r((
|
|
2050
|
-
const A = n.find((w) => w.name ===
|
|
2051
|
-
return A ? /* @__PURE__ */ c("div", { className: `${be.item} ${o?.index ===
|
|
2052
|
-
}, "renderDraggableItem"), V = /* @__PURE__ */ r((
|
|
2053
|
-
const z = n.find((A) => A.name ===
|
|
2054
|
-
return z ? /* @__PURE__ */ c("div", { className: be.item, children: /* @__PURE__ */ c($t, { columnDefinition: z, fixed:
|
|
2050
|
+
const w = z === "fixed" ? A + 1 : A, W = [...E], [X] = W.splice(o.index, 1);
|
|
2051
|
+
X.fixed = z === "fixed", W.splice(w, 0, X), W.forEach(ei), f(W), i?.(W);
|
|
2052
|
+
}, "handleDrop"), M = /* @__PURE__ */ r((y, z) => {
|
|
2053
|
+
const A = n.find((w) => w.name === y.name);
|
|
2054
|
+
return A ? /* @__PURE__ */ c("div", { className: `${be.item} ${o?.index === y.index ? be.dragging : ""}`, draggable: !A.primaryKey, onDragStart: /* @__PURE__ */ r((w) => R(w, z, y.index), "onDragStart"), onDragOver: F, onDragEnd: D, onDrop: /* @__PURE__ */ r((w) => g(w, z, y.index), "onDrop"), children: /* @__PURE__ */ c($t, { columnDefinition: A, fixed: y.fixed || !1, hidden: y.hidden, onVisibleChange: /* @__PURE__ */ r((w) => b(y.index, w), "onVisibleChange") }) }, A.name) : /* @__PURE__ */ c(Ee, {});
|
|
2055
|
+
}, "renderDraggableItem"), V = /* @__PURE__ */ r((y) => {
|
|
2056
|
+
const z = n.find((A) => A.name === y.name);
|
|
2057
|
+
return z ? /* @__PURE__ */ c("div", { className: be.item, children: /* @__PURE__ */ c($t, { columnDefinition: z, fixed: y.fixed || !1, hidden: y.hidden, onVisibleChange: /* @__PURE__ */ r((A) => b(y.index, A), "onVisibleChange") }) }, z.name) : /* @__PURE__ */ c(Ee, {});
|
|
2055
2058
|
}, "renderStaticItem");
|
|
2056
|
-
let
|
|
2057
|
-
e[5] !== t.initialColumns ? (
|
|
2059
|
+
let O;
|
|
2060
|
+
e[5] !== t.initialColumns ? (O = /* @__PURE__ */ r(() => ({
|
|
2058
2061
|
reset: /* @__PURE__ */ r(() => {
|
|
2059
2062
|
f(t.initialColumns);
|
|
2060
2063
|
}, "reset")
|
|
2061
|
-
}), "t4"), e[5] = t.initialColumns, e[6] =
|
|
2062
|
-
const
|
|
2063
|
-
let
|
|
2064
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2064
|
+
}), "t4"), e[5] = t.initialColumns, e[6] = O) : O = e[6], Ae(l, O);
|
|
2065
|
+
const p = Te, k = 0, B = "vertical";
|
|
2066
|
+
let v;
|
|
2067
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
|
|
2065
2068
|
display: "flex"
|
|
2066
|
-
}, e[7] =
|
|
2069
|
+
}, e[7] = v) : v = e[7];
|
|
2067
2070
|
let _;
|
|
2068
2071
|
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ c("div", { className: be.groupTitle, children: "已显示字段" }), e[8] = _) : _ = e[8];
|
|
2069
|
-
const C = T.map((
|
|
2072
|
+
const C = T.map((y) => M(y, "fixed"));
|
|
2070
2073
|
let N;
|
|
2071
2074
|
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ c("div", { className: be.tips, children: "请将需要锁定的字段拖至上方(最多支持3列)" }), e[9] = N) : N = e[9];
|
|
2072
|
-
const
|
|
2075
|
+
const I = S.map((y) => M(y, "visible"));
|
|
2073
2076
|
let $;
|
|
2074
2077
|
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ c("div", { className: be.groupTitle, children: "未显示字段" }), e[10] = $) : $ = e[10];
|
|
2075
|
-
const H = L.map((
|
|
2078
|
+
const H = L.map((y) => V(y));
|
|
2076
2079
|
let Y;
|
|
2077
|
-
return e[11] !==
|
|
2080
|
+
return e[11] !== p || e[12] !== s || e[13] !== N || e[14] !== I || e[15] !== $ || e[16] !== H || e[17] !== v || e[18] !== _ || e[19] !== C ? (Y = /* @__PURE__ */ q(p, { size: k, orientation: B, style: v, className: s, children: [
|
|
2078
2081
|
_,
|
|
2079
2082
|
C,
|
|
2080
2083
|
N,
|
|
2081
|
-
|
|
2084
|
+
I,
|
|
2082
2085
|
$,
|
|
2083
2086
|
H
|
|
2084
|
-
] }), e[11] =
|
|
2087
|
+
] }), e[11] = p, e[12] = s, e[13] = N, e[14] = I, e[15] = $, e[16] = H, e[17] = v, e[18] = _, e[19] = C, e[20] = Y) : Y = e[20], Y;
|
|
2085
2088
|
}
|
|
2086
2089
|
r(Ja, "TableSettingPanel");
|
|
2087
2090
|
function ei(t, e) {
|
|
@@ -2124,7 +2127,7 @@ function Ct(t, e) {
|
|
|
2124
2127
|
if (typeof t == "object" && typeof e == "object") {
|
|
2125
2128
|
if (t.constructor !== e.constructor) return !1;
|
|
2126
2129
|
const l = Object.keys(t), n = Object.keys(e);
|
|
2127
|
-
return l.length !== n.length ? !1 : l.every((
|
|
2130
|
+
return l.length !== n.length ? !1 : l.every((a) => Ct(t[a], e[a]));
|
|
2128
2131
|
}
|
|
2129
2132
|
return !1;
|
|
2130
2133
|
}
|
|
@@ -2140,8 +2143,8 @@ function ci(t) {
|
|
|
2140
2143
|
const e = G(40), {
|
|
2141
2144
|
ref: l,
|
|
2142
2145
|
fields: n,
|
|
2143
|
-
columns:
|
|
2144
|
-
onColumnsChange:
|
|
2146
|
+
columns: a,
|
|
2147
|
+
onColumnsChange: i,
|
|
2145
2148
|
actionColumn: s,
|
|
2146
2149
|
tableSize: o,
|
|
2147
2150
|
dataSource: u,
|
|
@@ -2158,23 +2161,23 @@ function ci(t) {
|
|
|
2158
2161
|
clearSelectedRowKeys: P
|
|
2159
2162
|
} = fi();
|
|
2160
2163
|
let R;
|
|
2161
|
-
if (e[0] !== s || e[1] !==
|
|
2164
|
+
if (e[0] !== s || e[1] !== a || e[2] !== n || e[3] !== m || e[4] !== i || e[5] !== t.actionColumn || e[6] !== E) {
|
|
2162
2165
|
let k;
|
|
2163
2166
|
if (e[8] !== n || e[9] !== m ? (k = /* @__PURE__ */ r((B) => {
|
|
2164
|
-
const
|
|
2167
|
+
const v = n.find((_) => _.name === B.name);
|
|
2165
2168
|
return {
|
|
2166
2169
|
key: B.key,
|
|
2167
|
-
title:
|
|
2170
|
+
title: v?.label || "UNKNOWN",
|
|
2168
2171
|
dataIndex: B.name.split("."),
|
|
2169
|
-
fixed:
|
|
2170
|
-
sorter:
|
|
2172
|
+
fixed: v?.primaryKey || B?.fixed ? "start" : "",
|
|
2173
|
+
sorter: v?.sorter,
|
|
2171
2174
|
sortOrder: B.sortOrder,
|
|
2172
2175
|
width: B.width,
|
|
2173
2176
|
hidden: B.hidden,
|
|
2174
2177
|
render: /* @__PURE__ */ r((_, C, N) => {
|
|
2175
|
-
if (
|
|
2176
|
-
return
|
|
2177
|
-
if (
|
|
2178
|
+
if (v?.render)
|
|
2179
|
+
return v.render(_, C, N);
|
|
2180
|
+
if (v?.primaryKey)
|
|
2178
2181
|
return /* @__PURE__ */ c(Me, { data: {
|
|
2179
2182
|
value: _,
|
|
2180
2183
|
record: C,
|
|
@@ -2182,48 +2185,49 @@ function ci(t) {
|
|
|
2182
2185
|
}, attributes: {
|
|
2183
2186
|
onClick: /* @__PURE__ */ r(($) => {
|
|
2184
2187
|
m?.(_, $);
|
|
2185
|
-
}, "onClick")
|
|
2188
|
+
}, "onClick"),
|
|
2189
|
+
...v.attributes
|
|
2186
2190
|
} });
|
|
2187
|
-
const
|
|
2188
|
-
return
|
|
2191
|
+
const I = ja(v?.type || "text", v?.attributes || {});
|
|
2192
|
+
return I ? I(_, C, N) : /* @__PURE__ */ c(dn, { data: {
|
|
2189
2193
|
value: String(_),
|
|
2190
2194
|
record: C,
|
|
2191
2195
|
index: N
|
|
2192
2196
|
} });
|
|
2193
2197
|
}, "render"),
|
|
2194
|
-
...
|
|
2198
|
+
...v?.attributes || {}
|
|
2195
2199
|
};
|
|
2196
|
-
}, "t02"), e[8] = n, e[9] = m, e[10] = k) : k = e[10], R =
|
|
2200
|
+
}, "t02"), e[8] = n, e[9] = m, e[10] = k) : k = e[10], R = a.map(k), s) {
|
|
2197
2201
|
const B = s.dataIndex || n.find(ui)?.name || "id";
|
|
2198
|
-
let
|
|
2199
|
-
e[11] !== s.title || e[12] !==
|
|
2202
|
+
let v;
|
|
2203
|
+
e[11] !== s.title || e[12] !== a || e[13] !== n || e[14] !== i || e[15] !== E ? (v = /* @__PURE__ */ r(() => {
|
|
2200
2204
|
if (E) {
|
|
2201
|
-
const C = /* @__PURE__ */ c(Ja, { fields: n, initialColumns:
|
|
2205
|
+
const C = /* @__PURE__ */ c(Ja, { fields: n, initialColumns: a, onChange: i });
|
|
2202
2206
|
return /* @__PURE__ */ q("div", { className: si.configurableColumnHeader, children: [
|
|
2203
2207
|
/* @__PURE__ */ c("span", { children: s.title }),
|
|
2204
|
-
/* @__PURE__ */ c(
|
|
2208
|
+
/* @__PURE__ */ c(vn, { content: C, title: E.title || "Setting", placement: "bottomRight", trigger: "click", children: /* @__PURE__ */ c(Yt, {}) })
|
|
2205
2209
|
] });
|
|
2206
2210
|
}
|
|
2207
2211
|
return s.title;
|
|
2208
|
-
}, "t12"), e[11] = s.title, e[12] =
|
|
2212
|
+
}, "t12"), e[11] = s.title, e[12] = a, e[13] = n, e[14] = i, e[15] = E, e[16] = v) : v = e[16];
|
|
2209
2213
|
let _;
|
|
2210
|
-
e[17] !==
|
|
2214
|
+
e[17] !== a.length || e[18] !== t.actionColumn ? (_ = /* @__PURE__ */ r((C, N) => {
|
|
2211
2215
|
const $ = {
|
|
2212
2216
|
value: t.actionColumn.actions(N),
|
|
2213
2217
|
record: N,
|
|
2214
|
-
index:
|
|
2218
|
+
index: a.length + 1
|
|
2215
2219
|
};
|
|
2216
|
-
return /* @__PURE__ */ c(
|
|
2217
|
-
}, "t22"), e[17] =
|
|
2220
|
+
return /* @__PURE__ */ c(un, { data: $ });
|
|
2221
|
+
}, "t22"), e[17] = a.length, e[18] = t.actionColumn, e[19] = _) : _ = e[19], R.push({
|
|
2218
2222
|
key: "action",
|
|
2219
|
-
title:
|
|
2223
|
+
title: v,
|
|
2220
2224
|
dataIndex: B,
|
|
2221
2225
|
fixed: "end",
|
|
2222
2226
|
width: "200px",
|
|
2223
2227
|
render: _
|
|
2224
2228
|
});
|
|
2225
2229
|
}
|
|
2226
|
-
e[0] = s, e[1] =
|
|
2230
|
+
e[0] = s, e[1] = a, e[2] = n, e[3] = m, e[4] = i, e[5] = t.actionColumn, e[6] = E, e[7] = R;
|
|
2227
2231
|
} else
|
|
2228
2232
|
R = e[7];
|
|
2229
2233
|
let F;
|
|
@@ -2247,12 +2251,12 @@ function ci(t) {
|
|
|
2247
2251
|
x: "max-content"
|
|
2248
2252
|
}, e[30] = M) : M = e[30];
|
|
2249
2253
|
const V = o || "middle";
|
|
2250
|
-
let p;
|
|
2251
|
-
e[31] !== f ? (p = /* @__PURE__ */ r((k, B, y, _) => {
|
|
2252
|
-
_.action === "sort" && f && (Array.isArray(y) ? f(y) : f([y]));
|
|
2253
|
-
}, "t5"), e[31] = f, e[32] = p) : p = e[32];
|
|
2254
2254
|
let O;
|
|
2255
|
-
|
|
2255
|
+
e[31] !== f ? (O = /* @__PURE__ */ r((k, B, v, _) => {
|
|
2256
|
+
_.action === "sort" && f && (Array.isArray(v) ? f(v) : f([v]));
|
|
2257
|
+
}, "t5"), e[31] = f, e[32] = O) : O = e[32];
|
|
2258
|
+
let p;
|
|
2259
|
+
return e[33] !== T || e[34] !== x || e[35] !== g || e[36] !== V || e[37] !== O || e[38] !== R ? (p = /* @__PURE__ */ c(Cn, { dataSource: g, rowSelection: x, columns: R, ...T, scroll: M, size: V, onChange: O }), e[33] = T, e[34] = x, e[35] = g, e[36] = V, e[37] = O, e[38] = R, e[39] = p) : p = e[39], p;
|
|
2256
2260
|
}
|
|
2257
2261
|
r(ci, "ViewTable");
|
|
2258
2262
|
function ui(t) {
|
|
@@ -2260,7 +2264,7 @@ function ui(t) {
|
|
|
2260
2264
|
}
|
|
2261
2265
|
r(ui, "_temp$5");
|
|
2262
2266
|
function fi() {
|
|
2263
|
-
const [t, e] =
|
|
2267
|
+
const [t, e] = j([]), l = /* @__PURE__ */ r(() => {
|
|
2264
2268
|
e([]);
|
|
2265
2269
|
}, "clearSelectedRowKeysFn");
|
|
2266
2270
|
return {
|
|
@@ -2294,16 +2298,16 @@ function mi(t) {
|
|
|
2294
2298
|
const e = G(25), {
|
|
2295
2299
|
items: l
|
|
2296
2300
|
} = t, n = l === void 0 ? di : l;
|
|
2297
|
-
let
|
|
2298
|
-
e[0] !== n ? (
|
|
2299
|
-
const
|
|
2301
|
+
let a;
|
|
2302
|
+
e[0] !== n ? (a = [...n, xt], e[0] = n, e[1] = a) : a = e[1];
|
|
2303
|
+
const i = a, [s, o] = j(xt), u = Le(null), {
|
|
2300
2304
|
publish: d
|
|
2301
2305
|
} = st();
|
|
2302
2306
|
let f;
|
|
2303
|
-
e[2] !==
|
|
2304
|
-
const M =
|
|
2307
|
+
e[2] !== i ? (f = /* @__PURE__ */ r((g) => {
|
|
2308
|
+
const M = i.find((V) => V.key === g.key);
|
|
2305
2309
|
M && o(M);
|
|
2306
|
-
}, "t3"), e[2] =
|
|
2310
|
+
}, "t3"), e[2] = i, e[3] = f) : f = e[3];
|
|
2307
2311
|
const h = f;
|
|
2308
2312
|
let m;
|
|
2309
2313
|
e[4] !== d || e[5] !== s.refreshInterval ? (m = /* @__PURE__ */ r(() => (u.current && (clearInterval(u.current), u.current = null), s.refreshInterval > 0 && (u.current = setInterval(async () => {
|
|
@@ -2312,9 +2316,9 @@ function mi(t) {
|
|
|
2312
2316
|
u.current && clearInterval(u.current);
|
|
2313
2317
|
}), "t4"), e[4] = d, e[5] = s.refreshInterval, e[6] = m) : m = e[6];
|
|
2314
2318
|
let E;
|
|
2315
|
-
e[7] !== d || e[8] !== s ? (E = [s, d], e[7] = d, e[8] = s, e[9] = E) : E = e[9],
|
|
2319
|
+
e[7] !== d || e[8] !== s ? (E = [s, d], e[7] = d, e[8] = s, e[9] = E) : E = e[9], Se(m, E);
|
|
2316
2320
|
let T;
|
|
2317
|
-
e[10] !==
|
|
2321
|
+
e[10] !== i ? (T = i.map(hi), e[10] = i, e[11] = T) : T = e[11];
|
|
2318
2322
|
const S = T;
|
|
2319
2323
|
let L;
|
|
2320
2324
|
e[12] !== s.key ? (L = [s.key], e[12] = s.key, e[13] = L) : L = e[13];
|
|
@@ -2331,12 +2335,12 @@ function mi(t) {
|
|
|
2331
2335
|
let F;
|
|
2332
2336
|
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ c(Ve, {}), e[19] = F) : F = e[19];
|
|
2333
2337
|
let x;
|
|
2334
|
-
e[20] !== s.label ? (x = /* @__PURE__ */ q(
|
|
2338
|
+
e[20] !== s.label ? (x = /* @__PURE__ */ q(me, { icon: F, iconPlacement: "end", children: [
|
|
2335
2339
|
"刷新率:",
|
|
2336
2340
|
s.label
|
|
2337
2341
|
] }), e[20] = s.label, e[21] = x) : x = e[21];
|
|
2338
2342
|
let D;
|
|
2339
|
-
return e[22] !== P || e[23] !== x ? (D = /* @__PURE__ */ c(
|
|
2343
|
+
return e[22] !== P || e[23] !== x ? (D = /* @__PURE__ */ c(pe, { menu: P, trigger: R, children: x }), e[22] = P, e[23] = x, e[24] = D) : D = e[24], D;
|
|
2340
2344
|
}
|
|
2341
2345
|
r(mi, "AutoRefreshBarItem");
|
|
2342
2346
|
function hi(t) {
|
|
@@ -2354,21 +2358,21 @@ function Pe(t) {
|
|
|
2354
2358
|
const e = G(3), {
|
|
2355
2359
|
icon: l,
|
|
2356
2360
|
active: n
|
|
2357
|
-
} = t,
|
|
2358
|
-
let
|
|
2359
|
-
return e[0] !== l || e[1] !==
|
|
2361
|
+
} = t, a = `${Vt.item} ${n ? Vt.active : ""}`;
|
|
2362
|
+
let i;
|
|
2363
|
+
return e[0] !== l || e[1] !== a ? (i = /* @__PURE__ */ c("div", { className: a, children: l }), e[0] = l, e[1] = a, e[2] = i) : i = e[2], i;
|
|
2360
2364
|
}
|
|
2361
2365
|
r(Pe, "BarItem");
|
|
2362
2366
|
function _i(t) {
|
|
2363
2367
|
const e = G(16), {
|
|
2364
2368
|
className: l,
|
|
2365
2369
|
defaultTableSize: n,
|
|
2366
|
-
onChange:
|
|
2367
|
-
} = t, [
|
|
2370
|
+
onChange: a
|
|
2371
|
+
} = t, [i, s] = j(n);
|
|
2368
2372
|
let o, u;
|
|
2369
2373
|
e[0] !== n ? (o = /* @__PURE__ */ r(() => {
|
|
2370
2374
|
s(n);
|
|
2371
|
-
}, "t0"), u = [n], e[0] = n, e[1] = o, e[2] = u) : (o = e[1], u = e[2]),
|
|
2375
|
+
}, "t0"), u = [n], e[0] = n, e[1] = o, e[2] = u) : (o = e[1], u = e[2]), Se(o, u);
|
|
2372
2376
|
let d;
|
|
2373
2377
|
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = [{
|
|
2374
2378
|
key: "middle",
|
|
@@ -2379,13 +2383,13 @@ function _i(t) {
|
|
|
2379
2383
|
}], e[3] = d) : d = e[3];
|
|
2380
2384
|
const f = d;
|
|
2381
2385
|
let h;
|
|
2382
|
-
e[4] !==
|
|
2386
|
+
e[4] !== a ? (h = /* @__PURE__ */ r((R) => {
|
|
2383
2387
|
const {
|
|
2384
2388
|
key: F
|
|
2385
2389
|
} = R;
|
|
2386
|
-
s(F),
|
|
2387
|
-
}, "t3"), e[4] =
|
|
2388
|
-
const m = h, E =
|
|
2390
|
+
s(F), a?.(F);
|
|
2391
|
+
}, "t3"), e[4] = a, e[5] = h) : h = e[5];
|
|
2392
|
+
const m = h, E = i || "middle";
|
|
2389
2393
|
let T;
|
|
2390
2394
|
e[6] !== E ? (T = [E], e[6] = E, e[7] = T) : T = e[7];
|
|
2391
2395
|
let S;
|
|
@@ -2400,7 +2404,7 @@ function _i(t) {
|
|
|
2400
2404
|
let b;
|
|
2401
2405
|
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ c("div", { onClick: Si, children: /* @__PURE__ */ c(Pe, { icon: /* @__PURE__ */ c(Hn, {}), active: !1 }) }), e[12] = b) : b = e[12];
|
|
2402
2406
|
let P;
|
|
2403
|
-
return e[13] !== l || e[14] !== S ? (P = /* @__PURE__ */ c(
|
|
2407
|
+
return e[13] !== l || e[14] !== S ? (P = /* @__PURE__ */ c(pe, { className: l, menu: S, trigger: L, children: b }), e[13] = l, e[14] = S, e[15] = P) : P = e[15], P;
|
|
2404
2408
|
}
|
|
2405
2409
|
r(_i, "ColumnHeightBarItem");
|
|
2406
2410
|
function Si(t) {
|
|
@@ -2411,17 +2415,17 @@ function Ci(t) {
|
|
|
2411
2415
|
const e = G(14), {
|
|
2412
2416
|
style: l,
|
|
2413
2417
|
className: n,
|
|
2414
|
-
defaultShowFilter:
|
|
2415
|
-
onChange:
|
|
2416
|
-
} = t, [s, o] =
|
|
2418
|
+
defaultShowFilter: a,
|
|
2419
|
+
onChange: i
|
|
2420
|
+
} = t, [s, o] = j(a);
|
|
2417
2421
|
let u, d;
|
|
2418
|
-
e[0] !==
|
|
2419
|
-
o(
|
|
2420
|
-
}, "t0"), d = [
|
|
2422
|
+
e[0] !== a ? (u = /* @__PURE__ */ r(() => {
|
|
2423
|
+
o(a);
|
|
2424
|
+
}, "t0"), d = [a], e[0] = a, e[1] = u, e[2] = d) : (u = e[1], d = e[2]), Se(u, d);
|
|
2421
2425
|
let f;
|
|
2422
|
-
e[3] !== s || e[4] !==
|
|
2423
|
-
o(!s),
|
|
2424
|
-
}, "t2"), e[3] = s, e[4] =
|
|
2426
|
+
e[3] !== s || e[4] !== i ? (f = /* @__PURE__ */ r(() => {
|
|
2427
|
+
o(!s), i?.(!s);
|
|
2428
|
+
}, "t2"), e[3] = s, e[4] = i, e[5] = f) : f = e[5];
|
|
2425
2429
|
const h = f;
|
|
2426
2430
|
let m;
|
|
2427
2431
|
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ c(Un, {}), e[6] = m) : m = e[6];
|
|
@@ -2448,13 +2452,13 @@ function Ii(t) {
|
|
|
2448
2452
|
style: l,
|
|
2449
2453
|
className: n
|
|
2450
2454
|
} = t, {
|
|
2451
|
-
publish:
|
|
2455
|
+
publish: a
|
|
2452
2456
|
} = st();
|
|
2453
|
-
let
|
|
2454
|
-
e[0] !==
|
|
2455
|
-
await
|
|
2456
|
-
}, "t0"), e[0] =
|
|
2457
|
-
const s =
|
|
2457
|
+
let i;
|
|
2458
|
+
e[0] !== a ? (i = /* @__PURE__ */ r(async () => {
|
|
2459
|
+
await a();
|
|
2460
|
+
}, "t0"), e[0] = a, e[1] = i) : i = e[1];
|
|
2461
|
+
const s = i;
|
|
2458
2462
|
let o;
|
|
2459
2463
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ c(Pe, { icon: /* @__PURE__ */ c(zn, {}), active: !1 }), e[2] = o) : o = e[2];
|
|
2460
2464
|
let u;
|
|
@@ -2465,26 +2469,26 @@ function yi(t) {
|
|
|
2465
2469
|
const e = G(10), {
|
|
2466
2470
|
className: l,
|
|
2467
2471
|
style: n
|
|
2468
|
-
} = t, [
|
|
2472
|
+
} = t, [a, i] = In.useMessage();
|
|
2469
2473
|
let s;
|
|
2470
|
-
e[0] !==
|
|
2474
|
+
e[0] !== a ? (s = /* @__PURE__ */ r(async () => {
|
|
2471
2475
|
const h = window.location.href;
|
|
2472
2476
|
try {
|
|
2473
|
-
await navigator.clipboard.writeText(h),
|
|
2477
|
+
await navigator.clipboard.writeText(h), a.success("链接复制成功");
|
|
2474
2478
|
} catch (m) {
|
|
2475
|
-
console.error("Failed to copy: ", m),
|
|
2479
|
+
console.error("Failed to copy: ", m), a.error("链接复制失败");
|
|
2476
2480
|
}
|
|
2477
|
-
}, "t0"), e[0] =
|
|
2481
|
+
}, "t0"), e[0] = a, e[1] = s) : s = e[1];
|
|
2478
2482
|
const o = s;
|
|
2479
2483
|
let u;
|
|
2480
2484
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ c(Pe, { icon: /* @__PURE__ */ c(gn, {}), active: !1 }), e[2] = u) : u = e[2];
|
|
2481
2485
|
let d;
|
|
2482
2486
|
e[3] !== l || e[4] !== o || e[5] !== n ? (d = /* @__PURE__ */ c("div", { className: l, style: n, onClick: o, children: u }), e[3] = l, e[4] = o, e[5] = n, e[6] = d) : d = e[6];
|
|
2483
2487
|
let f;
|
|
2484
|
-
return e[7] !==
|
|
2485
|
-
|
|
2488
|
+
return e[7] !== i || e[8] !== d ? (f = /* @__PURE__ */ q(Ee, { children: [
|
|
2489
|
+
i,
|
|
2486
2490
|
d
|
|
2487
|
-
] }), e[7] =
|
|
2491
|
+
] }), e[7] = i, e[8] = d, e[9] = f) : f = e[9], f;
|
|
2488
2492
|
}
|
|
2489
2493
|
r(yi, "ShareLinkBarItem");
|
|
2490
2494
|
const Ni = "_leftItems_1hvhw_1", Ai = "_rightItems_1hvhw_6", Mt = {
|
|
@@ -2497,7 +2501,7 @@ function kt(t, e, l) {
|
|
|
2497
2501
|
label: t.render(l)
|
|
2498
2502
|
} : {
|
|
2499
2503
|
key: e,
|
|
2500
|
-
label: /* @__PURE__ */ c(
|
|
2504
|
+
label: /* @__PURE__ */ c(me, { type: "link", ...t.attributes, onClick: /* @__PURE__ */ r(() => t.onClick?.(l), "onClick"), children: t.title })
|
|
2501
2505
|
};
|
|
2502
2506
|
}
|
|
2503
2507
|
r(kt, "renderMenuItem");
|
|
@@ -2512,8 +2516,8 @@ function Li(t) {
|
|
|
2512
2516
|
const e = G(76), {
|
|
2513
2517
|
title: l,
|
|
2514
2518
|
activeView: n,
|
|
2515
|
-
primaryAction:
|
|
2516
|
-
secondaryActions:
|
|
2519
|
+
primaryAction: a,
|
|
2520
|
+
secondaryActions: i,
|
|
2517
2521
|
batchActions: s,
|
|
2518
2522
|
tableSelectedItems: o,
|
|
2519
2523
|
showViewPanel: u,
|
|
@@ -2526,37 +2530,37 @@ function Li(t) {
|
|
|
2526
2530
|
onTableSizeChange: S,
|
|
2527
2531
|
onCreateView: L,
|
|
2528
2532
|
onUpdateView: b
|
|
2529
|
-
} = t, [P, R] =
|
|
2533
|
+
} = t, [P, R] = j("Create"), [F, x] = j(!1), [D] = j("PERSONAL");
|
|
2530
2534
|
let g;
|
|
2531
2535
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = [], e[0] = g) : g = e[0];
|
|
2532
2536
|
let M = g;
|
|
2533
2537
|
if (s?.enabled) {
|
|
2534
|
-
let
|
|
2538
|
+
let K;
|
|
2535
2539
|
if (e[1] !== s.actions || e[2] !== o) {
|
|
2536
|
-
let
|
|
2537
|
-
e[4] !== o ? (
|
|
2540
|
+
let J;
|
|
2541
|
+
e[4] !== o ? (J = /* @__PURE__ */ r((ne, de) => kt(ne, de, o), "t23"), e[4] = o, e[5] = J) : J = e[5], K = s.actions.map(J), e[1] = s.actions, e[2] = o, e[3] = K;
|
|
2538
2542
|
} else
|
|
2539
|
-
|
|
2540
|
-
M =
|
|
2543
|
+
K = e[3];
|
|
2544
|
+
M = K;
|
|
2541
2545
|
}
|
|
2542
2546
|
let V;
|
|
2543
2547
|
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = [], e[6] = V) : V = e[6];
|
|
2544
|
-
let
|
|
2545
|
-
if (
|
|
2546
|
-
let
|
|
2547
|
-
if (e[7] !==
|
|
2548
|
-
let
|
|
2549
|
-
e[10] !== o ? (
|
|
2548
|
+
let O = V;
|
|
2549
|
+
if (i?.length) {
|
|
2550
|
+
let K;
|
|
2551
|
+
if (e[7] !== i || e[8] !== o) {
|
|
2552
|
+
let J;
|
|
2553
|
+
e[10] !== o ? (J = /* @__PURE__ */ r((ne, de) => kt(ne, de, o), "t32"), e[10] = o, e[11] = J) : J = e[11], K = i.map(J), e[7] = i, e[8] = o, e[9] = K;
|
|
2550
2554
|
} else
|
|
2551
|
-
|
|
2552
|
-
|
|
2555
|
+
K = e[9];
|
|
2556
|
+
O = K;
|
|
2553
2557
|
}
|
|
2554
|
-
const [
|
|
2558
|
+
const [p, k] = lt.useModal();
|
|
2555
2559
|
let B;
|
|
2556
|
-
e[12] !== n || e[13] !==
|
|
2557
|
-
e: switch (
|
|
2560
|
+
e[12] !== n || e[13] !== p || e[14] !== b ? (B = /* @__PURE__ */ r((K) => {
|
|
2561
|
+
e: switch (K) {
|
|
2558
2562
|
case "Update": {
|
|
2559
|
-
|
|
2563
|
+
p.confirm({
|
|
2560
2564
|
title: "确认覆盖当前视图?",
|
|
2561
2565
|
icon: /* @__PURE__ */ c(Bn, {}),
|
|
2562
2566
|
content: "确认后将覆盖原筛选条件",
|
|
@@ -2571,14 +2575,14 @@ function Li(t) {
|
|
|
2571
2575
|
case "SaveAs":
|
|
2572
2576
|
x(!0), R("SaveAs");
|
|
2573
2577
|
}
|
|
2574
|
-
}, "t2"), e[12] = n, e[13] =
|
|
2575
|
-
const
|
|
2578
|
+
}, "t2"), e[12] = n, e[13] = p, e[14] = b, e[15] = B) : B = e[15];
|
|
2579
|
+
const v = B;
|
|
2576
2580
|
let _;
|
|
2577
|
-
e[16] !== n || e[17] !== L ? (_ = /* @__PURE__ */ r((
|
|
2581
|
+
e[16] !== n || e[17] !== L ? (_ = /* @__PURE__ */ r((K, J) => {
|
|
2578
2582
|
L?.({
|
|
2579
2583
|
...n,
|
|
2580
|
-
name:
|
|
2581
|
-
type:
|
|
2584
|
+
name: K,
|
|
2585
|
+
type: J,
|
|
2582
2586
|
source: "CUSTOM"
|
|
2583
2587
|
}, () => {
|
|
2584
2588
|
x(!1);
|
|
@@ -2586,13 +2590,13 @@ function Li(t) {
|
|
|
2586
2590
|
}, "t3"), e[16] = n, e[17] = L, e[18] = _) : _ = e[18];
|
|
2587
2591
|
const C = _;
|
|
2588
2592
|
let N;
|
|
2589
|
-
e[19] !==
|
|
2593
|
+
e[19] !== v ? (N = {
|
|
2590
2594
|
items: Ri,
|
|
2591
|
-
onClick: /* @__PURE__ */ r((
|
|
2592
|
-
|
|
2595
|
+
onClick: /* @__PURE__ */ r((J) => {
|
|
2596
|
+
v(J.key);
|
|
2593
2597
|
}, "handleMenuClick")
|
|
2594
|
-
}, e[19] =
|
|
2595
|
-
const
|
|
2598
|
+
}, e[19] = v, e[20] = N) : N = e[20];
|
|
2599
|
+
const I = N;
|
|
2596
2600
|
let $;
|
|
2597
2601
|
e[21] !== h ? ($ = /* @__PURE__ */ r(() => {
|
|
2598
2602
|
h?.();
|
|
@@ -2602,105 +2606,105 @@ function Li(t) {
|
|
|
2602
2606
|
e[23] !== d ? (Y = /* @__PURE__ */ r(() => {
|
|
2603
2607
|
d?.(!0);
|
|
2604
2608
|
}, "t6"), e[23] = d, e[24] = Y) : Y = e[24];
|
|
2605
|
-
const
|
|
2609
|
+
const y = Y;
|
|
2606
2610
|
let z;
|
|
2607
|
-
e[25] !==
|
|
2608
|
-
/* @__PURE__ */ c("div", { onClick:
|
|
2611
|
+
e[25] !== y || e[26] !== u || e[27] !== l ? (z = !u && /* @__PURE__ */ q(Ee, { children: [
|
|
2612
|
+
/* @__PURE__ */ c("div", { onClick: y, children: /* @__PURE__ */ c(Pe, { icon: /* @__PURE__ */ c(Yn, {}), active: !1 }) }),
|
|
2609
2613
|
/* @__PURE__ */ c(We, { orientation: "vertical" }),
|
|
2610
2614
|
l,
|
|
2611
2615
|
/* @__PURE__ */ c(vi, {})
|
|
2612
|
-
] }), e[25] =
|
|
2616
|
+
] }), e[25] = y, e[26] = u, e[27] = l, e[28] = z) : z = e[28];
|
|
2613
2617
|
let A;
|
|
2614
|
-
e[29] !== n.source || e[30] !== H || e[31] !==
|
|
2618
|
+
e[29] !== n.source || e[30] !== H || e[31] !== I || e[32] !== v || e[33] !== f ? (A = f && /* @__PURE__ */ q(Ee, { children: [
|
|
2615
2619
|
/* @__PURE__ */ c("div", { style: {
|
|
2616
2620
|
color: "rgba(0,0,0,0.45)"
|
|
2617
2621
|
}, children: "(已编辑)" }),
|
|
2618
|
-
n.source === "SYSTEM" ? /* @__PURE__ */ c(
|
|
2619
|
-
/* @__PURE__ */ c(
|
|
2620
|
-
] }), e[29] = n.source, e[30] = H, e[31] =
|
|
2622
|
+
n.source === "SYSTEM" ? /* @__PURE__ */ c(me, { type: "default", size: "small", onClick: /* @__PURE__ */ r(() => v("SaveAs"), "onClick"), children: "另存为" }) : /* @__PURE__ */ c(pe, { menu: I, trigger: ["click"], children: /* @__PURE__ */ c(me, { size: "small", icon: /* @__PURE__ */ c(Ve, {}), iconPlacement: "end", children: "保存" }) }),
|
|
2623
|
+
/* @__PURE__ */ c(me, { type: "default", size: "small", onClick: H, children: "重置" })
|
|
2624
|
+
] }), e[29] = n.source, e[30] = H, e[31] = I, e[32] = v, e[33] = f, e[34] = A) : A = e[34];
|
|
2621
2625
|
let w;
|
|
2622
|
-
e[35] !== n.name || e[36] !== z || e[37] !== A ? (w = /* @__PURE__ */ q(
|
|
2626
|
+
e[35] !== n.name || e[36] !== z || e[37] !== A ? (w = /* @__PURE__ */ q(ve, { gap: "8px", align: "center", className: Mt.leftItems, children: [
|
|
2623
2627
|
z,
|
|
2624
2628
|
n.name,
|
|
2625
2629
|
A
|
|
2626
2630
|
] }), e[35] = n.name, e[36] = z, e[37] = A, e[38] = w) : w = e[38];
|
|
2627
2631
|
let W;
|
|
2628
2632
|
e[39] !== E || e[40] !== m ? (W = /* @__PURE__ */ c(Ci, { defaultShowFilter: m, onChange: E }), e[39] = E, e[40] = m, e[41] = W) : W = e[41];
|
|
2629
|
-
let
|
|
2630
|
-
e[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2631
|
-
let
|
|
2632
|
-
e[43] !== T || e[44] !== S ? (
|
|
2633
|
-
let
|
|
2634
|
-
e[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2633
|
+
let X;
|
|
2634
|
+
e[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ c(Ii, {}), e[42] = X) : X = e[42];
|
|
2635
|
+
let ee;
|
|
2636
|
+
e[43] !== T || e[44] !== S ? (ee = /* @__PURE__ */ c(_i, { defaultTableSize: T, onChange: S }), e[43] = T, e[44] = S, e[45] = ee) : ee = e[45];
|
|
2637
|
+
let te, Q, le;
|
|
2638
|
+
e[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = /* @__PURE__ */ c(yi, {}), Q = /* @__PURE__ */ c(We, { orientation: "vertical" }), le = /* @__PURE__ */ c(mi, {}), e[46] = te, e[47] = Q, e[48] = le) : (te = e[46], Q = e[47], le = e[48]);
|
|
2635
2639
|
let Z;
|
|
2636
2640
|
e[49] !== s?.enabled || e[50] !== s?.title || e[51] !== M ? (Z = s?.enabled && /* @__PURE__ */ q(Ee, { children: [
|
|
2637
2641
|
/* @__PURE__ */ c(We, { orientation: "vertical" }),
|
|
2638
|
-
/* @__PURE__ */ c(
|
|
2642
|
+
/* @__PURE__ */ c(pe, { menu: {
|
|
2639
2643
|
items: M
|
|
2640
|
-
}, trigger: ["click"], children: /* @__PURE__ */ c(
|
|
2644
|
+
}, trigger: ["click"], children: /* @__PURE__ */ c(me, { icon: /* @__PURE__ */ c(Ve, {}), iconPlacement: "end", children: s?.title && "批量操作" }) })
|
|
2641
2645
|
] }), e[49] = s?.enabled, e[50] = s?.title, e[51] = M, e[52] = Z) : Z = e[52];
|
|
2642
|
-
let
|
|
2643
|
-
e[53] !==
|
|
2646
|
+
let ae;
|
|
2647
|
+
e[53] !== a || e[54] !== O || e[55] !== o ? (ae = a && /* @__PURE__ */ q(Ee, { children: [
|
|
2644
2648
|
/* @__PURE__ */ c(We, { orientation: "vertical" }),
|
|
2645
2649
|
/* @__PURE__ */ q(Te.Compact, { children: [
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
items:
|
|
2649
|
-
}, trigger: ["click"], placement: "bottomRight", children: /* @__PURE__ */ c(
|
|
2650
|
+
a.render ? a.render(o) : /* @__PURE__ */ c(me, { type: "primary", ...a.attributes, onClick: /* @__PURE__ */ r(() => a.onClick?.(o), "onClick"), children: a.title }),
|
|
2651
|
+
O.length > 0 && /* @__PURE__ */ c(pe, { menu: {
|
|
2652
|
+
items: O
|
|
2653
|
+
}, trigger: ["click"], placement: "bottomRight", children: /* @__PURE__ */ c(me, { type: "primary", icon: /* @__PURE__ */ c(Ve, {}) }) })
|
|
2650
2654
|
] })
|
|
2651
|
-
] }), e[53] =
|
|
2655
|
+
] }), e[53] = a, e[54] = O, e[55] = o, e[56] = ae) : ae = e[56];
|
|
2652
2656
|
let re;
|
|
2653
|
-
e[57] !== W || e[58] !==
|
|
2657
|
+
e[57] !== W || e[58] !== ee || e[59] !== Z || e[60] !== ae ? (re = /* @__PURE__ */ q(ve, { gap: "8px", align: "center", className: Mt.rightItems, children: [
|
|
2654
2658
|
W,
|
|
2659
|
+
X,
|
|
2660
|
+
ee,
|
|
2661
|
+
te,
|
|
2655
2662
|
Q,
|
|
2656
|
-
J,
|
|
2657
2663
|
le,
|
|
2658
|
-
j,
|
|
2659
|
-
ee,
|
|
2660
2664
|
Z,
|
|
2661
|
-
|
|
2662
|
-
] }), e[57] = W, e[58] =
|
|
2665
|
+
ae
|
|
2666
|
+
] }), e[57] = W, e[58] = ee, e[59] = Z, e[60] = ae, e[61] = re) : re = e[61];
|
|
2663
2667
|
let se;
|
|
2664
|
-
e[62] !== re || e[63] !== w ? (se = /* @__PURE__ */ q(
|
|
2668
|
+
e[62] !== re || e[63] !== w ? (se = /* @__PURE__ */ q(ve, { align: "center", justify: "space-between", children: [
|
|
2665
2669
|
w,
|
|
2666
2670
|
re
|
|
2667
2671
|
] }), e[62] = re, e[63] = w, e[64] = se) : se = e[64];
|
|
2672
|
+
let ie;
|
|
2673
|
+
e[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ r(() => x(!1), "t20"), e[65] = ie) : ie = e[65];
|
|
2674
|
+
let oe;
|
|
2675
|
+
e[66] !== n.name || e[67] !== D || e[68] !== C || e[69] !== F || e[70] !== P ? (oe = /* @__PURE__ */ c(hn, { mode: P, open: F, defaultViewType: D, defaultViewName: n.name, onSaveView: C, onCancel: ie }), e[66] = n.name, e[67] = D, e[68] = C, e[69] = F, e[70] = P, e[71] = oe) : oe = e[71];
|
|
2668
2676
|
let ce;
|
|
2669
|
-
e[
|
|
2670
|
-
let X;
|
|
2671
|
-
e[66] !== n.name || e[67] !== D || e[68] !== C || e[69] !== F || e[70] !== P ? (X = /* @__PURE__ */ c(mn, { mode: P, open: F, defaultViewType: D, defaultViewName: n.name, onSaveView: C, onCancel: ce }), e[66] = n.name, e[67] = D, e[68] = C, e[69] = F, e[70] = P, e[71] = X) : X = e[71];
|
|
2672
|
-
let ae;
|
|
2673
|
-
return e[72] !== k || e[73] !== se || e[74] !== X ? (ae = /* @__PURE__ */ q(Ee, { children: [
|
|
2677
|
+
return e[72] !== k || e[73] !== se || e[74] !== oe ? (ce = /* @__PURE__ */ q(Ee, { children: [
|
|
2674
2678
|
se,
|
|
2675
2679
|
k,
|
|
2676
|
-
|
|
2677
|
-
] }), e[72] = k, e[73] = se, e[74] =
|
|
2680
|
+
oe
|
|
2681
|
+
] }), e[72] = k, e[73] = se, e[74] = oe, e[75] = ce) : ce = e[75], ce;
|
|
2678
2682
|
}
|
|
2679
2683
|
r(Li, "TopBar");
|
|
2680
|
-
const bi = "_userViews_1rq5j_1",
|
|
2684
|
+
const bi = "_userViews_1rq5j_1", pi = "_container_1rq5j_7", Oi = "_topBar_1rq5j_12", Di = "_filterPanel_1rq5j_27", ke = {
|
|
2681
2685
|
userViews: bi,
|
|
2682
|
-
container:
|
|
2683
|
-
topBar:
|
|
2686
|
+
container: pi,
|
|
2687
|
+
topBar: Oi,
|
|
2684
2688
|
filterPanel: Di
|
|
2685
2689
|
};
|
|
2686
2690
|
function wi(t) {
|
|
2687
|
-
const e = G(
|
|
2688
|
-
let l, n,
|
|
2691
|
+
const e = G(76);
|
|
2692
|
+
let l, n, a, i, s, o, u, d, f, h, m, E, T;
|
|
2689
2693
|
e[0] !== t ? ({
|
|
2690
2694
|
ref: h,
|
|
2691
2695
|
fields: s,
|
|
2692
2696
|
availableFilters: n,
|
|
2693
|
-
dataSource:
|
|
2697
|
+
dataSource: a,
|
|
2694
2698
|
actionColumn: l,
|
|
2695
2699
|
showFilter: m,
|
|
2696
2700
|
filterMode: o,
|
|
2697
2701
|
pagination: f,
|
|
2698
|
-
enableRowSelection:
|
|
2702
|
+
enableRowSelection: i,
|
|
2699
2703
|
viewTableSetting: T,
|
|
2700
2704
|
onClickPrimaryKey: u,
|
|
2701
2705
|
onSelectedDataChange: d,
|
|
2702
2706
|
...E
|
|
2703
|
-
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] =
|
|
2707
|
+
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = a, e[4] = i, e[5] = s, e[6] = o, e[7] = u, e[8] = d, e[9] = f, e[10] = h, e[11] = m, e[12] = E, e[13] = T) : (l = e[1], n = e[2], a = e[3], i = e[4], s = e[5], o = e[6], u = e[7], d = e[8], f = e[9], h = e[10], m = e[11], E = e[12], T = e[13]);
|
|
2704
2708
|
const {
|
|
2705
2709
|
page: S,
|
|
2706
2710
|
setPage: L,
|
|
@@ -2713,69 +2717,75 @@ function wi(t) {
|
|
|
2713
2717
|
tableSize: g,
|
|
2714
2718
|
setTableSize: M,
|
|
2715
2719
|
setCondition: V,
|
|
2716
|
-
setSorter:
|
|
2717
|
-
selectedCount:
|
|
2720
|
+
setSorter: O,
|
|
2721
|
+
selectedCount: p,
|
|
2718
2722
|
updateSelectedCount: k,
|
|
2719
2723
|
reset: B
|
|
2720
2724
|
} = Mi(E);
|
|
2721
|
-
let
|
|
2722
|
-
e[14] !== V ? (
|
|
2723
|
-
V(
|
|
2724
|
-
}, "t1"), e[14] = V, e[15] =
|
|
2725
|
-
const _ =
|
|
2725
|
+
let v;
|
|
2726
|
+
e[14] !== V ? (v = /* @__PURE__ */ r((K) => {
|
|
2727
|
+
V(K);
|
|
2728
|
+
}, "t1"), e[14] = V, e[15] = v) : v = e[15];
|
|
2729
|
+
const _ = v;
|
|
2726
2730
|
let C;
|
|
2727
|
-
e[16] !== S || e[17] !== x || e[18] !== L || e[19] !== D ? (C = /* @__PURE__ */ r((
|
|
2728
|
-
S !==
|
|
2731
|
+
e[16] !== S || e[17] !== x || e[18] !== L || e[19] !== D ? (C = /* @__PURE__ */ r((K, J) => {
|
|
2732
|
+
S !== K && L(K), x !== J && D(J);
|
|
2729
2733
|
}, "t2"), e[16] = S, e[17] = x, e[18] = L, e[19] = D, e[20] = C) : C = e[20];
|
|
2730
2734
|
const N = C;
|
|
2731
|
-
let
|
|
2732
|
-
e[21] !== d || e[22] !== k ? (
|
|
2733
|
-
d?.(
|
|
2734
|
-
}, "t3"), e[21] = d, e[22] = k, e[23] =
|
|
2735
|
-
const $ =
|
|
2735
|
+
let I;
|
|
2736
|
+
e[21] !== d || e[22] !== k ? (I = /* @__PURE__ */ r((K) => {
|
|
2737
|
+
d?.(K), k(K.length);
|
|
2738
|
+
}, "t3"), e[21] = d, e[22] = k, e[23] = I) : I = e[23];
|
|
2739
|
+
const $ = I;
|
|
2736
2740
|
let H;
|
|
2737
|
-
e[24] !== R || e[25] !== F || e[26] !==
|
|
2738
|
-
console.log("handleSortChanged.sorter",
|
|
2739
|
-
let
|
|
2740
|
-
Array.isArray(
|
|
2741
|
-
field: Array.isArray(
|
|
2742
|
-
direction:
|
|
2743
|
-
}] :
|
|
2744
|
-
const
|
|
2745
|
-
const
|
|
2746
|
-
return
|
|
2747
|
-
...
|
|
2748
|
-
sortOrder:
|
|
2741
|
+
e[24] !== R || e[25] !== F || e[26] !== O ? (H = /* @__PURE__ */ r((K) => {
|
|
2742
|
+
console.log("handleSortChanged.sorter", K);
|
|
2743
|
+
let J = [];
|
|
2744
|
+
Array.isArray(K) ? J = K.filter($i).map(Pi) : K.field ? J = [{
|
|
2745
|
+
field: Array.isArray(K.field) ? [...K.field].join(".") : K.field,
|
|
2746
|
+
direction: K.order === "ascend" ? "ASC" : "DESC"
|
|
2747
|
+
}] : J = [];
|
|
2748
|
+
const ne = R.map((de) => {
|
|
2749
|
+
const ue = J.find((Ce) => Ce.field == de.name);
|
|
2750
|
+
return ue ? {
|
|
2751
|
+
...de,
|
|
2752
|
+
sortOrder: ue.direction === "ASC" ? "ascend" : "descend"
|
|
2749
2753
|
} : {
|
|
2750
|
-
...
|
|
2754
|
+
...de,
|
|
2751
2755
|
sortOrder: null
|
|
2752
2756
|
};
|
|
2753
2757
|
});
|
|
2754
|
-
|
|
2755
|
-
}, "t4"), e[24] = R, e[25] = F, e[26] =
|
|
2756
|
-
const Y = H,
|
|
2758
|
+
O(J), F(ne);
|
|
2759
|
+
}, "t4"), e[24] = R, e[25] = F, e[26] = O, e[27] = H) : H = e[27];
|
|
2760
|
+
const Y = H, y = Le(null), z = Le(null);
|
|
2757
2761
|
let A;
|
|
2758
2762
|
e[28] !== B ? (A = /* @__PURE__ */ r(() => {
|
|
2759
|
-
B(),
|
|
2763
|
+
B(), y.current?.reset(), z.current?.reset();
|
|
2760
2764
|
}, "t5"), e[28] = B, e[29] = A) : A = e[29];
|
|
2761
2765
|
const w = A;
|
|
2762
2766
|
let W;
|
|
2763
2767
|
e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ r(() => {
|
|
2764
2768
|
z.current?.clearSelectedRowKeys();
|
|
2765
2769
|
}, "t6"), e[30] = W) : W = e[30];
|
|
2766
|
-
const
|
|
2767
|
-
let
|
|
2768
|
-
e[31] !== w || e[32] !== M ? (
|
|
2769
|
-
clearSelectedRowKeys:
|
|
2770
|
+
const X = W;
|
|
2771
|
+
let ee;
|
|
2772
|
+
e[31] !== w || e[32] !== M ? (ee = /* @__PURE__ */ r(() => ({
|
|
2773
|
+
clearSelectedRowKeys: X,
|
|
2770
2774
|
updateTableSize: M,
|
|
2771
2775
|
reset: w
|
|
2772
|
-
}), "t7"), e[31] = w, e[32] = M, e[33] =
|
|
2776
|
+
}), "t7"), e[31] = w, e[32] = M, e[33] = ee) : ee = e[33], Ae(h, ee);
|
|
2777
|
+
let te;
|
|
2778
|
+
e[34] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = /* @__PURE__ */ r(() => {
|
|
2779
|
+
X();
|
|
2780
|
+
}, "t8"), e[34] = te) : te = e[34];
|
|
2781
|
+
let Q;
|
|
2782
|
+
e[35] !== a ? (Q = [a], e[35] = a, e[36] = Q) : Q = e[36], Se(te, Q);
|
|
2773
2783
|
let le;
|
|
2774
|
-
e[
|
|
2784
|
+
e[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (le = {
|
|
2775
2785
|
display: "flex"
|
|
2776
|
-
}, e[
|
|
2777
|
-
let
|
|
2778
|
-
e[
|
|
2786
|
+
}, e[37] = le) : le = e[37];
|
|
2787
|
+
let Z;
|
|
2788
|
+
e[38] !== b || e[39] !== n || e[40] !== o || e[41] !== _ || e[42] !== P || e[43] !== m ? (Z = o === "editable" && /* @__PURE__ */ c("div", { className: ke.filterPanel, style: {
|
|
2779
2789
|
display: m ? "block" : "none"
|
|
2780
2790
|
}, children: /* @__PURE__ */ c(oa, { row: {
|
|
2781
2791
|
gutter: [24, 16],
|
|
@@ -2787,34 +2797,34 @@ function wi(t) {
|
|
|
2787
2797
|
md: 12,
|
|
2788
2798
|
sm: 24,
|
|
2789
2799
|
xs: 24
|
|
2790
|
-
}, ref:
|
|
2791
|
-
let
|
|
2792
|
-
e[
|
|
2800
|
+
}, ref: y, filters: b, availableFilters: n, resetButton: !1, onSearch: _, onChange: P }) }), e[38] = b, e[39] = n, e[40] = o, e[41] = _, e[42] = P, e[43] = m, e[44] = Z) : Z = e[44];
|
|
2801
|
+
let ae;
|
|
2802
|
+
e[45] !== b || e[46] !== o || e[47] !== _ || e[48] !== m ? (ae = o === "normal" && /* @__PURE__ */ c("div", { className: ke.filterPanel, style: {
|
|
2793
2803
|
display: m ? "block" : "none"
|
|
2794
|
-
}, children: /* @__PURE__ */ c(
|
|
2795
|
-
let Z;
|
|
2796
|
-
e[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = {
|
|
2797
|
-
pagination: !1
|
|
2798
|
-
}, e[47] = Z) : Z = e[47];
|
|
2799
|
-
const oe = T || !1;
|
|
2804
|
+
}, children: /* @__PURE__ */ c(sn, { ref: y, filters: b, resetButton: !1, onSearch: _ }) }), e[45] = b, e[46] = o, e[47] = _, e[48] = m, e[49] = ae) : ae = e[49];
|
|
2800
2805
|
let re;
|
|
2801
|
-
e[
|
|
2802
|
-
|
|
2803
|
-
|
|
2806
|
+
e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = {
|
|
2807
|
+
pagination: !1
|
|
2808
|
+
}, e[50] = re) : re = e[50];
|
|
2809
|
+
const se = T || !1;
|
|
2810
|
+
let ie;
|
|
2811
|
+
e[51] !== l || e[52] !== R || e[53] !== a.list || e[54] !== i || e[55] !== s || e[56] !== Y || e[57] !== $ || e[58] !== u || e[59] !== F || e[60] !== se || e[61] !== g ? (ie = /* @__PURE__ */ c(ci, { ref: z, dataSource: a.list, fields: s, columns: R, onColumnsChange: F, tableSize: g, actionColumn: l, onSortChanged: Y, onSelectChange: $, attributes: re, enableRowSelection: i, onClickPrimaryKey: u, viewTableSetting: se }), e[51] = l, e[52] = R, e[53] = a.list, e[54] = i, e[55] = s, e[56] = Y, e[57] = $, e[58] = u, e[59] = F, e[60] = se, e[61] = g, e[62] = ie) : ie = e[62];
|
|
2812
|
+
let oe;
|
|
2813
|
+
e[63] !== a.total || e[64] !== i || e[65] !== N || e[66] !== S || e[67] !== x || e[68] !== f || e[69] !== p ? (oe = (f !== !1 || i) && /* @__PURE__ */ q("div", { style: {
|
|
2804
2814
|
display: "flex",
|
|
2805
2815
|
alignItems: "center",
|
|
2806
2816
|
justifyContent: "space-between"
|
|
2807
2817
|
}, children: [
|
|
2808
|
-
/* @__PURE__ */ c("span", { children:
|
|
2809
|
-
/* @__PURE__ */ c(
|
|
2810
|
-
] }), e[
|
|
2818
|
+
/* @__PURE__ */ c("span", { children: p ? `已选择 ${p} 条数据` : "" }),
|
|
2819
|
+
/* @__PURE__ */ c(yn, { showTotal: Fi, defaultCurrent: S, current: S, pageSize: x || 10, total: a.total, pageSizeOptions: ["10", "20", "50", "100"], ...f, onChange: N })
|
|
2820
|
+
] }), e[63] = a.total, e[64] = i, e[65] = N, e[66] = S, e[67] = x, e[68] = f, e[69] = p, e[70] = oe) : oe = e[70];
|
|
2811
2821
|
let ce;
|
|
2812
|
-
return e[
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
] }), e[
|
|
2822
|
+
return e[71] !== Z || e[72] !== ae || e[73] !== ie || e[74] !== oe ? (ce = /* @__PURE__ */ q(Te, { orientation: "vertical", style: le, size: "small", children: [
|
|
2823
|
+
Z,
|
|
2824
|
+
ae,
|
|
2825
|
+
ie,
|
|
2826
|
+
oe
|
|
2827
|
+
] }), e[71] = Z, e[72] = ae, e[73] = ie, e[74] = oe, e[75] = ce) : ce = e[75], ce;
|
|
2818
2828
|
}
|
|
2819
2829
|
r(wi, "View");
|
|
2820
2830
|
function Fi(t) {
|
|
@@ -2840,8 +2850,8 @@ function Mi({
|
|
|
2840
2850
|
}) {
|
|
2841
2851
|
const {
|
|
2842
2852
|
defaultColumns: n,
|
|
2843
|
-
externalColumns:
|
|
2844
|
-
externalUpdateColumns:
|
|
2853
|
+
externalColumns: a,
|
|
2854
|
+
externalUpdateColumns: i,
|
|
2845
2855
|
defaultActiveFilters: s,
|
|
2846
2856
|
externalActiveFilters: o,
|
|
2847
2857
|
externalUpdateActiveFilters: u,
|
|
@@ -2863,58 +2873,58 @@ function Mi({
|
|
|
2863
2873
|
columns: g,
|
|
2864
2874
|
setColumns: M,
|
|
2865
2875
|
activeFilters: V,
|
|
2866
|
-
setActiveFilters:
|
|
2867
|
-
page:
|
|
2876
|
+
setActiveFilters: O,
|
|
2877
|
+
page: p,
|
|
2868
2878
|
setPage: k,
|
|
2869
2879
|
pageSize: B,
|
|
2870
|
-
setPageSize:
|
|
2880
|
+
setPageSize: v,
|
|
2871
2881
|
tableSize: _,
|
|
2872
2882
|
setTableSize: C,
|
|
2873
2883
|
condition: N,
|
|
2874
|
-
setCondition:
|
|
2884
|
+
setCondition: I,
|
|
2875
2885
|
sorter: $,
|
|
2876
2886
|
setSorter: H,
|
|
2877
2887
|
reset: Y
|
|
2878
|
-
} =
|
|
2888
|
+
} = cn({
|
|
2879
2889
|
defaultColumns: n,
|
|
2880
2890
|
defaultPageSize: e,
|
|
2881
2891
|
defaultActiveFilters: s || [],
|
|
2882
2892
|
defaultTableSize: E,
|
|
2883
2893
|
defaultCondition: R,
|
|
2884
2894
|
defaultSorter: L
|
|
2885
|
-
}),
|
|
2895
|
+
}), y = a ?? g, z = i ?? M, A = o ?? V, w = u ?? O, W = d ?? p, X = f ?? k, ee = h ?? B, te = m ?? v, Q = F ?? N, le = x ?? I, Z = b ?? $, ae = P ?? H, re = T ?? _, se = S ?? C, [ie, oe] = j(0);
|
|
2886
2896
|
return {
|
|
2887
2897
|
page: W,
|
|
2888
|
-
setPage: /* @__PURE__ */ r((
|
|
2889
|
-
|
|
2898
|
+
setPage: /* @__PURE__ */ r((fe) => {
|
|
2899
|
+
X(fe), D?.(Q, fe, ee, Z);
|
|
2890
2900
|
}, "setPageFn"),
|
|
2891
|
-
pageSize:
|
|
2892
|
-
setPageSize: /* @__PURE__ */ r((
|
|
2893
|
-
|
|
2901
|
+
pageSize: ee,
|
|
2902
|
+
setPageSize: /* @__PURE__ */ r((fe) => {
|
|
2903
|
+
te(fe), D?.(Q, W, fe, Z);
|
|
2894
2904
|
}, "setPageSizeFn"),
|
|
2895
|
-
columns:
|
|
2905
|
+
columns: y,
|
|
2896
2906
|
setColumns: z,
|
|
2897
2907
|
activeFilters: A,
|
|
2898
2908
|
setActiveFilters: w,
|
|
2899
2909
|
tableSize: re,
|
|
2900
|
-
setTableSize: /* @__PURE__ */ r((
|
|
2901
|
-
se(
|
|
2910
|
+
setTableSize: /* @__PURE__ */ r((fe) => {
|
|
2911
|
+
se(fe);
|
|
2902
2912
|
}, "setTableSizeFn"),
|
|
2903
|
-
condition:
|
|
2904
|
-
setCondition: /* @__PURE__ */ r((
|
|
2905
|
-
|
|
2913
|
+
condition: Q,
|
|
2914
|
+
setCondition: /* @__PURE__ */ r((fe) => {
|
|
2915
|
+
le(fe), D?.(fe, W, ee, Z);
|
|
2906
2916
|
}, "setConditionFn"),
|
|
2907
2917
|
sorter: Z,
|
|
2908
|
-
setSorter: /* @__PURE__ */ r((
|
|
2909
|
-
|
|
2918
|
+
setSorter: /* @__PURE__ */ r((fe) => {
|
|
2919
|
+
ae(fe), D?.(Q, W, ee, fe);
|
|
2910
2920
|
}, "setSorterFn"),
|
|
2911
|
-
selectedCount:
|
|
2912
|
-
updateSelectedCount: /* @__PURE__ */ r((
|
|
2913
|
-
|
|
2921
|
+
selectedCount: ie,
|
|
2922
|
+
updateSelectedCount: /* @__PURE__ */ r((fe) => {
|
|
2923
|
+
oe(fe);
|
|
2914
2924
|
}, "updateSelectedCountFn"),
|
|
2915
2925
|
reset: /* @__PURE__ */ r(() => {
|
|
2916
2926
|
Y(), D?.(
|
|
2917
|
-
R ||
|
|
2927
|
+
R || on,
|
|
2918
2928
|
t,
|
|
2919
2929
|
e,
|
|
2920
2930
|
L
|
|
@@ -2937,16 +2947,16 @@ function Gi(t) {
|
|
|
2937
2947
|
const e = G(19), {
|
|
2938
2948
|
view: l,
|
|
2939
2949
|
countUrl: n,
|
|
2940
|
-
active:
|
|
2941
|
-
onGetRecordCount:
|
|
2942
|
-
} = t, [s, o] =
|
|
2950
|
+
active: a,
|
|
2951
|
+
onGetRecordCount: i
|
|
2952
|
+
} = t, [s, o] = j(0);
|
|
2943
2953
|
let u, d;
|
|
2944
|
-
e[0] !== n || e[1] !==
|
|
2945
|
-
|
|
2954
|
+
e[0] !== n || e[1] !== i || e[2] !== l.condition ? (u = /* @__PURE__ */ r(() => {
|
|
2955
|
+
i && i(n, l.condition || Ue()).then((L) => {
|
|
2946
2956
|
o(L || 0);
|
|
2947
2957
|
});
|
|
2948
|
-
}, "t0"), d = [n,
|
|
2949
|
-
const f = `${ye.viewItem} ${
|
|
2958
|
+
}, "t0"), d = [n, i, l.condition], e[0] = n, e[1] = i, e[2] = l.condition, e[3] = u, e[4] = d) : (u = e[3], d = e[4]), Se(u, d);
|
|
2959
|
+
const f = `${ye.viewItem} ${a ? ye.active : ""}`;
|
|
2950
2960
|
let h;
|
|
2951
2961
|
e[5] !== l.name ? (h = /* @__PURE__ */ c("span", { className: ye.viewNameText, "data-tooltip": l.name, children: l.name }), e[5] = l.name, e[6] = h) : h = e[6];
|
|
2952
2962
|
let m;
|
|
@@ -2957,9 +2967,9 @@ function Gi(t) {
|
|
|
2957
2967
|
m
|
|
2958
2968
|
] }), e[9] = h, e[10] = m, e[11] = E) : E = e[11];
|
|
2959
2969
|
let T;
|
|
2960
|
-
e[12] !==
|
|
2970
|
+
e[12] !== a || e[13] !== s ? (T = !a && /* @__PURE__ */ c("div", { children: s && s > 999 ? "999+" : s || 0 }), e[12] = a, e[13] = s, e[14] = T) : T = e[14];
|
|
2961
2971
|
let S;
|
|
2962
|
-
return e[15] !== f || e[16] !== E || e[17] !== T ? (S = /* @__PURE__ */ q(
|
|
2972
|
+
return e[15] !== f || e[16] !== E || e[17] !== T ? (S = /* @__PURE__ */ q(ve, { align: "center", justify: "space-between", className: f, children: [
|
|
2963
2973
|
E,
|
|
2964
2974
|
T
|
|
2965
2975
|
] }), e[15] = f, e[16] = E, e[17] = T, e[18] = S) : S = e[18], S;
|
|
@@ -2969,29 +2979,29 @@ function Ht(t) {
|
|
|
2969
2979
|
const e = G(13), {
|
|
2970
2980
|
views: l,
|
|
2971
2981
|
activeView: n,
|
|
2972
|
-
countUrl:
|
|
2973
|
-
onSwitchView:
|
|
2982
|
+
countUrl: a,
|
|
2983
|
+
onSwitchView: i,
|
|
2974
2984
|
onGetRecordCount: s
|
|
2975
2985
|
} = t;
|
|
2976
2986
|
let o;
|
|
2977
|
-
if (e[0] !== n || e[1] !==
|
|
2987
|
+
if (e[0] !== n || e[1] !== a || e[2] !== s || e[3] !== i || e[4] !== l) {
|
|
2978
2988
|
let d;
|
|
2979
|
-
e[6] !== n || e[7] !==
|
|
2989
|
+
e[6] !== n || e[7] !== a || e[8] !== s || e[9] !== i ? (d = /* @__PURE__ */ r((f) => /* @__PURE__ */ c("div", { onClick: /* @__PURE__ */ r(() => i(f), "onClick"), style: {
|
|
2980
2990
|
width: "100%",
|
|
2981
2991
|
cursor: "pointer"
|
|
2982
|
-
}, children: /* @__PURE__ */ c(Gi, { active: f.id === n.id, countUrl:
|
|
2992
|
+
}, children: /* @__PURE__ */ c(Gi, { active: f.id === n.id, countUrl: a, view: f, onGetRecordCount: s }) }, f.id), "t12"), e[6] = n, e[7] = a, e[8] = s, e[9] = i, e[10] = d) : d = e[10], o = l.map(d), e[0] = n, e[1] = a, e[2] = s, e[3] = i, e[4] = l, e[5] = o;
|
|
2983
2993
|
} else
|
|
2984
2994
|
o = e[5];
|
|
2985
2995
|
let u;
|
|
2986
|
-
return e[11] !== o ? (u = /* @__PURE__ */ c(
|
|
2996
|
+
return e[11] !== o ? (u = /* @__PURE__ */ c(ve, { vertical: !0, align: "start", children: o }), e[11] = o, e[12] = u) : u = e[12], u;
|
|
2987
2997
|
}
|
|
2988
2998
|
r(Ht, "ViewItemGroup");
|
|
2989
2999
|
function Ki(t) {
|
|
2990
3000
|
const e = G(78), {
|
|
2991
3001
|
name: l,
|
|
2992
3002
|
views: n,
|
|
2993
|
-
activeView:
|
|
2994
|
-
countUrl:
|
|
3003
|
+
activeView: a,
|
|
3004
|
+
countUrl: i,
|
|
2995
3005
|
onSwitchView: s,
|
|
2996
3006
|
onShowViewPanelChange: o,
|
|
2997
3007
|
onCreateView: u,
|
|
@@ -3004,11 +3014,11 @@ function Ki(t) {
|
|
|
3004
3014
|
const E = m;
|
|
3005
3015
|
let T;
|
|
3006
3016
|
e[2] !== n ? (T = n.filter(ji), e[2] = n, e[3] = T) : T = e[3];
|
|
3007
|
-
const S = T, [L, b] =
|
|
3008
|
-
let
|
|
3009
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3017
|
+
const S = T, [L, b] = j(!1), [P, R] = j(!1), [F, x] = j("Create"), [D, g] = j(!1), [M, V] = j("PERSONAL");
|
|
3018
|
+
let O;
|
|
3019
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ r((he, Ie) => {
|
|
3010
3020
|
he.preventDefault(), he.stopPropagation();
|
|
3011
|
-
e: switch (
|
|
3021
|
+
e: switch (Ie) {
|
|
3012
3022
|
case "PERSONAL": {
|
|
3013
3023
|
b(!0);
|
|
3014
3024
|
break e;
|
|
@@ -3016,45 +3026,45 @@ function Ki(t) {
|
|
|
3016
3026
|
case "SHARED":
|
|
3017
3027
|
R(!0);
|
|
3018
3028
|
}
|
|
3019
|
-
}, "t2"), e[4] =
|
|
3020
|
-
const
|
|
3029
|
+
}, "t2"), e[4] = O) : O = e[4];
|
|
3030
|
+
const p = O;
|
|
3021
3031
|
let k;
|
|
3022
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ r((he,
|
|
3023
|
-
he.stopPropagation(), V(
|
|
3032
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ r((he, Ie) => {
|
|
3033
|
+
he.stopPropagation(), V(Ie), x("Create"), g(!0);
|
|
3024
3034
|
}, "t3"), e[5] = k) : k = e[5];
|
|
3025
3035
|
const B = k;
|
|
3026
|
-
let
|
|
3027
|
-
e[6] !==
|
|
3036
|
+
let v;
|
|
3037
|
+
e[6] !== a || e[7] !== u ? (v = /* @__PURE__ */ r((he, Ie) => {
|
|
3028
3038
|
u?.({
|
|
3029
|
-
...
|
|
3039
|
+
...a,
|
|
3030
3040
|
name: he,
|
|
3031
|
-
type:
|
|
3041
|
+
type: Ie,
|
|
3032
3042
|
source: "CUSTOM"
|
|
3033
3043
|
}, () => {
|
|
3034
3044
|
g(!1);
|
|
3035
3045
|
});
|
|
3036
|
-
}, "t4"), e[6] =
|
|
3037
|
-
const _ =
|
|
3046
|
+
}, "t4"), e[6] = a, e[7] = u, e[8] = v) : v = e[8];
|
|
3047
|
+
const _ = v;
|
|
3038
3048
|
let C;
|
|
3039
|
-
e[9] !== d ? (C = /* @__PURE__ */ r((he,
|
|
3040
|
-
d?.(he,
|
|
3049
|
+
e[9] !== d ? (C = /* @__PURE__ */ r((he, Ie) => {
|
|
3050
|
+
d?.(he, Ie);
|
|
3041
3051
|
}, "t5"), e[9] = d, e[10] = C) : C = e[10];
|
|
3042
3052
|
const N = C;
|
|
3043
|
-
let
|
|
3044
|
-
e[11] !== f ? (
|
|
3053
|
+
let I;
|
|
3054
|
+
e[11] !== f ? (I = /* @__PURE__ */ r((he) => {
|
|
3045
3055
|
f?.(he);
|
|
3046
|
-
}, "t6"), e[11] = f, e[12] =
|
|
3047
|
-
const $ =
|
|
3056
|
+
}, "t6"), e[11] = f, e[12] = I) : I = e[12];
|
|
3057
|
+
const $ = I;
|
|
3048
3058
|
let H;
|
|
3049
3059
|
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ r((he) => /* @__PURE__ */ q(Te, { children: [
|
|
3050
|
-
/* @__PURE__ */ c(
|
|
3051
|
-
/* @__PURE__ */ c(Wn, { onClick: /* @__PURE__ */ r((
|
|
3060
|
+
/* @__PURE__ */ c(Yt, { onClick: /* @__PURE__ */ r((Ie) => p(Ie, he), "onClick") }),
|
|
3061
|
+
/* @__PURE__ */ c(Wn, { onClick: /* @__PURE__ */ r((Ie) => B(Ie, he), "onClick") })
|
|
3052
3062
|
] }), "t7"), e[13] = H) : H = e[13];
|
|
3053
3063
|
const Y = H;
|
|
3054
|
-
let
|
|
3055
|
-
e[14] !== s ? (
|
|
3064
|
+
let y;
|
|
3065
|
+
e[14] !== s ? (y = /* @__PURE__ */ r((he) => s(he), "t8"), e[14] = s, e[15] = y) : y = e[15];
|
|
3056
3066
|
let z;
|
|
3057
|
-
e[16] !==
|
|
3067
|
+
e[16] !== a || e[17] !== i || e[18] !== h || e[19] !== E || e[20] !== y ? (z = /* @__PURE__ */ c(Ht, { views: E, activeView: a, countUrl: i, onSwitchView: y, onGetRecordCount: h }), e[16] = a, e[17] = i, e[18] = h, e[19] = E, e[20] = y, e[21] = z) : z = e[21];
|
|
3058
3068
|
let A;
|
|
3059
3069
|
e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = Y("PERSONAL"), e[22] = A) : A = e[22];
|
|
3060
3070
|
let w;
|
|
@@ -3066,63 +3076,63 @@ function Ki(t) {
|
|
|
3066
3076
|
}, e[23] = z, e[24] = w) : w = e[24];
|
|
3067
3077
|
let W;
|
|
3068
3078
|
e[25] !== s ? (W = /* @__PURE__ */ r((he) => s(he), "t12"), e[25] = s, e[26] = W) : W = e[26];
|
|
3069
|
-
let
|
|
3070
|
-
e[27] !==
|
|
3071
|
-
let
|
|
3072
|
-
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3073
|
-
let
|
|
3074
|
-
e[34] !==
|
|
3079
|
+
let X;
|
|
3080
|
+
e[27] !== a || e[28] !== i || e[29] !== h || e[30] !== S || e[31] !== W ? (X = /* @__PURE__ */ c(Ht, { views: S, activeView: a, countUrl: i, onSwitchView: W, onGetRecordCount: h }), e[27] = a, e[28] = i, e[29] = h, e[30] = S, e[31] = W, e[32] = X) : X = e[32];
|
|
3081
|
+
let ee;
|
|
3082
|
+
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ee = Y("SHARED"), e[33] = ee) : ee = e[33];
|
|
3083
|
+
let te;
|
|
3084
|
+
e[34] !== X ? (te = {
|
|
3075
3085
|
key: "2",
|
|
3076
3086
|
label: "公共",
|
|
3077
|
-
children:
|
|
3078
|
-
extra:
|
|
3079
|
-
}, e[34] =
|
|
3080
|
-
let
|
|
3081
|
-
e[36] !== w || e[37] !==
|
|
3082
|
-
const
|
|
3087
|
+
children: X,
|
|
3088
|
+
extra: ee
|
|
3089
|
+
}, e[34] = X, e[35] = te) : te = e[35];
|
|
3090
|
+
let Q;
|
|
3091
|
+
e[36] !== w || e[37] !== te ? (Q = [w, te], e[36] = w, e[37] = te, e[38] = Q) : Q = e[38];
|
|
3092
|
+
const le = Q;
|
|
3083
3093
|
let Z;
|
|
3084
3094
|
e[39] !== l ? (Z = /* @__PURE__ */ c("div", { className: ye.title, children: l }), e[39] = l, e[40] = Z) : Z = e[40];
|
|
3085
|
-
let
|
|
3086
|
-
e[41] !== o ? (
|
|
3095
|
+
let ae;
|
|
3096
|
+
e[41] !== o ? (ae = /* @__PURE__ */ r(() => {
|
|
3087
3097
|
o(!1);
|
|
3088
|
-
}, "t18"), e[41] = o, e[42] =
|
|
3098
|
+
}, "t18"), e[41] = o, e[42] = ae) : ae = e[42];
|
|
3089
3099
|
let re;
|
|
3090
3100
|
e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ c(Pe, { icon: /* @__PURE__ */ c(Gn, {}), active: !1 }), e[43] = re) : re = e[43];
|
|
3091
3101
|
let se;
|
|
3092
|
-
e[44] !==
|
|
3093
|
-
let
|
|
3094
|
-
e[46] !== Z || e[47] !== se ? (
|
|
3102
|
+
e[44] !== ae ? (se = /* @__PURE__ */ c("div", { onClick: ae, children: re }), e[44] = ae, e[45] = se) : se = e[45];
|
|
3103
|
+
let ie;
|
|
3104
|
+
e[46] !== Z || e[47] !== se ? (ie = /* @__PURE__ */ q(ve, { align: "center", justify: "space-between", className: ye.top, children: [
|
|
3095
3105
|
Z,
|
|
3096
3106
|
se
|
|
3097
|
-
] }), e[46] = Z, e[47] = se, e[48] =
|
|
3098
|
-
let
|
|
3099
|
-
e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3100
|
-
let
|
|
3101
|
-
e[50] !==
|
|
3102
|
-
let
|
|
3103
|
-
e[52] !==
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
] }), e[52] =
|
|
3107
|
-
let
|
|
3108
|
-
e[55] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3107
|
+
] }), e[46] = Z, e[47] = se, e[48] = ie) : ie = e[48];
|
|
3108
|
+
let oe;
|
|
3109
|
+
e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oe = ["1", "2"], e[49] = oe) : oe = e[49];
|
|
3110
|
+
let ce;
|
|
3111
|
+
e[50] !== le ? (ce = /* @__PURE__ */ c(Nn, { items: le, defaultActiveKey: oe, className: ye.customCollapse }), e[50] = le, e[51] = ce) : ce = e[51];
|
|
3112
|
+
let K;
|
|
3113
|
+
e[52] !== ie || e[53] !== ce ? (K = /* @__PURE__ */ q(ve, { vertical: !0, gap: "16px", children: [
|
|
3114
|
+
ie,
|
|
3115
|
+
ce
|
|
3116
|
+
] }), e[52] = ie, e[53] = ce, e[54] = K) : K = e[54];
|
|
3117
|
+
let J;
|
|
3118
|
+
e[55] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ r(() => b(!1), "t25"), e[55] = J) : J = e[55];
|
|
3109
3119
|
let ne;
|
|
3110
|
-
e[56] !== $ || e[57] !== N || e[58] !== L || e[59] !== E ? (ne = /* @__PURE__ */ c(Ut, { viewType: "PERSONAL", views: E, open: L, onCancel:
|
|
3111
|
-
let
|
|
3112
|
-
e[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3113
|
-
let fe;
|
|
3114
|
-
e[62] !== $ || e[63] !== N || e[64] !== P || e[65] !== S ? (fe = /* @__PURE__ */ c(Ut, { viewType: "SHARED", views: S, open: P, onCancel: me, onEditViewName: N, onDeleteView: $ }), e[62] = $, e[63] = N, e[64] = P, e[65] = S, e[66] = fe) : fe = e[66];
|
|
3115
|
-
let Ie;
|
|
3116
|
-
e[67] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ie = /* @__PURE__ */ r(() => g(!1), "t29"), e[67] = Ie) : Ie = e[67];
|
|
3120
|
+
e[56] !== $ || e[57] !== N || e[58] !== L || e[59] !== E ? (ne = /* @__PURE__ */ c(Ut, { viewType: "PERSONAL", views: E, open: L, onCancel: J, onEditViewName: N, onDeleteView: $ }), e[56] = $, e[57] = N, e[58] = L, e[59] = E, e[60] = ne) : ne = e[60];
|
|
3121
|
+
let de;
|
|
3122
|
+
e[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ r(() => R(!1), "t27"), e[61] = de) : de = e[61];
|
|
3117
3123
|
let ue;
|
|
3118
|
-
e[
|
|
3124
|
+
e[62] !== $ || e[63] !== N || e[64] !== P || e[65] !== S ? (ue = /* @__PURE__ */ c(Ut, { viewType: "SHARED", views: S, open: P, onCancel: de, onEditViewName: N, onDeleteView: $ }), e[62] = $, e[63] = N, e[64] = P, e[65] = S, e[66] = ue) : ue = e[66];
|
|
3125
|
+
let Ce;
|
|
3126
|
+
e[67] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ce = /* @__PURE__ */ r(() => g(!1), "t29"), e[67] = Ce) : Ce = e[67];
|
|
3127
|
+
let fe;
|
|
3128
|
+
e[68] !== M || e[69] !== _ || e[70] !== D || e[71] !== F ? (fe = /* @__PURE__ */ c(hn, { mode: F, open: D, defaultViewType: M, onSaveView: _, onCancel: Ce }), e[68] = M, e[69] = _, e[70] = D, e[71] = F, e[72] = fe) : fe = e[72];
|
|
3119
3129
|
let Ye;
|
|
3120
|
-
return e[73] !==
|
|
3121
|
-
|
|
3130
|
+
return e[73] !== K || e[74] !== ne || e[75] !== ue || e[76] !== fe ? (Ye = /* @__PURE__ */ q(Ee, { children: [
|
|
3131
|
+
K,
|
|
3122
3132
|
ne,
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
] }), e[73] =
|
|
3133
|
+
ue,
|
|
3134
|
+
fe
|
|
3135
|
+
] }), e[73] = K, e[74] = ne, e[75] = ue, e[76] = fe, e[77] = Ye) : Ye = e[77], Ye;
|
|
3126
3136
|
}
|
|
3127
3137
|
r(Ki, "ViewPanel");
|
|
3128
3138
|
function ji(t) {
|
|
@@ -3133,12 +3143,12 @@ function qi(t) {
|
|
|
3133
3143
|
return t.type === "PERSONAL";
|
|
3134
3144
|
}
|
|
3135
3145
|
r(qi, "_temp$1");
|
|
3136
|
-
function
|
|
3146
|
+
function hn(t) {
|
|
3137
3147
|
const e = G(23), {
|
|
3138
3148
|
mode: l,
|
|
3139
3149
|
open: n,
|
|
3140
|
-
defaultViewType:
|
|
3141
|
-
defaultViewName:
|
|
3150
|
+
defaultViewType: a,
|
|
3151
|
+
defaultViewName: i,
|
|
3142
3152
|
onSaveView: s,
|
|
3143
3153
|
onCancel: o
|
|
3144
3154
|
} = t;
|
|
@@ -3148,9 +3158,9 @@ function mn(t) {
|
|
|
3148
3158
|
}, "t0"), e[0] = u) : u = e[0];
|
|
3149
3159
|
const d = u;
|
|
3150
3160
|
let f, h;
|
|
3151
|
-
e[1] !==
|
|
3152
|
-
L.current?.setFieldValue("type",
|
|
3153
|
-
}, "t1"), h = [
|
|
3161
|
+
e[1] !== i || e[2] !== a ? (f = /* @__PURE__ */ r(() => {
|
|
3162
|
+
L.current?.setFieldValue("type", a || "PERSONAL"), L.current?.setFieldValue("name", i || "");
|
|
3163
|
+
}, "t1"), h = [a, i], e[1] = i, e[2] = a, e[3] = f, e[4] = h) : (f = e[3], h = e[4]), Se(f, h);
|
|
3154
3164
|
let m;
|
|
3155
3165
|
e[5] !== o ? (m = /* @__PURE__ */ r(() => {
|
|
3156
3166
|
o?.();
|
|
@@ -3166,15 +3176,15 @@ function mn(t) {
|
|
|
3166
3176
|
}], e[7] = T) : T = e[7];
|
|
3167
3177
|
const S = T, L = Le(null);
|
|
3168
3178
|
let b;
|
|
3169
|
-
e[8] !== s ? (b = /* @__PURE__ */ r((
|
|
3170
|
-
s?.(
|
|
3179
|
+
e[8] !== s ? (b = /* @__PURE__ */ r((p) => {
|
|
3180
|
+
s?.(p.name, p.type);
|
|
3171
3181
|
}, "t5"), e[8] = s, e[9] = b) : b = e[9];
|
|
3172
3182
|
const P = b, R = l === "Create" ? "创建视图" : "另存为新视图";
|
|
3173
3183
|
let F;
|
|
3174
3184
|
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = {
|
|
3175
3185
|
span: 5
|
|
3176
3186
|
}, e[10] = F) : F = e[10];
|
|
3177
|
-
const x =
|
|
3187
|
+
const x = a || "PERSONAL";
|
|
3178
3188
|
let D;
|
|
3179
3189
|
e[11] !== x ? (D = {
|
|
3180
3190
|
type: x
|
|
@@ -3182,34 +3192,38 @@ function mn(t) {
|
|
|
3182
3192
|
let g;
|
|
3183
3193
|
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ c(ut.Item, { label: "视图类型", name: "type", rules: [{
|
|
3184
3194
|
required: !0
|
|
3185
|
-
}], children: /* @__PURE__ */ c(
|
|
3195
|
+
}], children: /* @__PURE__ */ c(An.Group, { options: S, optionType: "button" }) }), e[13] = g) : g = e[13];
|
|
3186
3196
|
let M;
|
|
3187
3197
|
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ c(ut.Item, { label: "视图名称", name: "name", rules: [{
|
|
3188
3198
|
required: !0,
|
|
3189
3199
|
message: "请输入视图名称"
|
|
3200
|
+
}, {
|
|
3201
|
+
type: "string",
|
|
3202
|
+
min: 1,
|
|
3203
|
+
message: "请输入视图名称"
|
|
3190
3204
|
}], children: /* @__PURE__ */ c(ge, {}) }), e[14] = M) : M = e[14];
|
|
3191
3205
|
let V;
|
|
3192
3206
|
e[15] !== P || e[16] !== D ? (V = /* @__PURE__ */ q(ut, { ref: L, name: "basic", labelCol: F, initialValues: D, onFinish: P, autoComplete: "off", children: [
|
|
3193
3207
|
g,
|
|
3194
3208
|
M
|
|
3195
3209
|
] }), e[15] = P, e[16] = D, e[17] = V) : V = e[17];
|
|
3196
|
-
let
|
|
3197
|
-
return e[18] !== E || e[19] !== n || e[20] !== V || e[21] !== R ? (
|
|
3210
|
+
let O;
|
|
3211
|
+
return e[18] !== E || e[19] !== n || e[20] !== V || e[21] !== R ? (O = /* @__PURE__ */ c(lt, { title: R, open: n, onOk: d, okText: "确认", onCancel: E, cancelText: "取消", children: V }), e[18] = E, e[19] = n, e[20] = V, e[21] = R, e[22] = O) : O = e[22], O;
|
|
3198
3212
|
}
|
|
3199
|
-
r(
|
|
3213
|
+
r(hn, "SaveViewModal");
|
|
3200
3214
|
function Qi(t) {
|
|
3201
3215
|
const e = G(15), {
|
|
3202
3216
|
view: l,
|
|
3203
3217
|
editing: n,
|
|
3204
|
-
onEdit:
|
|
3205
|
-
onCancel:
|
|
3218
|
+
onEdit: a,
|
|
3219
|
+
onCancel: i,
|
|
3206
3220
|
onSave: s,
|
|
3207
3221
|
onDelete: o
|
|
3208
|
-
} = t, [u, d] =
|
|
3222
|
+
} = t, [u, d] = j(l.name);
|
|
3209
3223
|
let f;
|
|
3210
|
-
e[0] !==
|
|
3211
|
-
d(l.name),
|
|
3212
|
-
}, "t0"), e[0] =
|
|
3224
|
+
e[0] !== i || e[1] !== l.name ? (f = /* @__PURE__ */ r(() => {
|
|
3225
|
+
d(l.name), i();
|
|
3226
|
+
}, "t0"), e[0] = i, e[1] = l.name, e[2] = f) : f = e[2];
|
|
3213
3227
|
const h = f;
|
|
3214
3228
|
let m;
|
|
3215
3229
|
e[3] !== s || e[4] !== l || e[5] !== u ? (m = /* @__PURE__ */ r(() => {
|
|
@@ -3220,18 +3234,18 @@ function Qi(t) {
|
|
|
3220
3234
|
}, "t1"), e[3] = s, e[4] = l, e[5] = u, e[6] = m) : m = e[6];
|
|
3221
3235
|
const E = m;
|
|
3222
3236
|
let T;
|
|
3223
|
-
return e[7] !== n || e[8] !== h || e[9] !== E || e[10] !== o || e[11] !==
|
|
3237
|
+
return e[7] !== n || e[8] !== h || e[9] !== E || e[10] !== o || e[11] !== a || e[12] !== l || e[13] !== u ? (T = /* @__PURE__ */ c(Ee, { children: n ? /* @__PURE__ */ q(ve, { align: "center", justify: "space-between", gap: 12, style: {
|
|
3224
3238
|
width: "100%"
|
|
3225
3239
|
}, children: [
|
|
3226
3240
|
/* @__PURE__ */ c(ge, { value: u, onChange: /* @__PURE__ */ r((S) => d(S.target.value), "onChange") }),
|
|
3227
3241
|
/* @__PURE__ */ q(Te, { orientation: "horizontal", children: [
|
|
3228
|
-
/* @__PURE__ */ c(
|
|
3229
|
-
/* @__PURE__ */ c(
|
|
3242
|
+
/* @__PURE__ */ c(me, { type: "default", size: "small", onClick: h, children: "取消" }),
|
|
3243
|
+
/* @__PURE__ */ c(me, { type: "primary", size: "small", onClick: E, children: "保存" })
|
|
3230
3244
|
] })
|
|
3231
|
-
] }) : /* @__PURE__ */ q(
|
|
3245
|
+
] }) : /* @__PURE__ */ q(ve, { align: "center", justify: "space-between", gap: 12, style: {
|
|
3232
3246
|
width: "100%"
|
|
3233
3247
|
}, children: [
|
|
3234
|
-
/* @__PURE__ */ c(
|
|
3248
|
+
/* @__PURE__ */ c(Bt, { style: {
|
|
3235
3249
|
color: l.source === "SYSTEM" ? "rgba(0,0,0,0.25)" : ""
|
|
3236
3250
|
} }),
|
|
3237
3251
|
/* @__PURE__ */ c("span", { style: {
|
|
@@ -3239,28 +3253,28 @@ function Qi(t) {
|
|
|
3239
3253
|
textAlign: "left"
|
|
3240
3254
|
}, children: u }),
|
|
3241
3255
|
l.source === "CUSTOM" ? /* @__PURE__ */ q(Te, { orientation: "horizontal", children: [
|
|
3242
|
-
/* @__PURE__ */ c(Kn, { onClick: /* @__PURE__ */ r(() =>
|
|
3243
|
-
/* @__PURE__ */ c(
|
|
3256
|
+
/* @__PURE__ */ c(Kn, { onClick: /* @__PURE__ */ r(() => a(l), "onClick") }),
|
|
3257
|
+
/* @__PURE__ */ c(Rn, { title: "确认删除此视图?", description: "视图删除后不可恢复,其数据不受影响,是否确认删除?", onConfirm: /* @__PURE__ */ r(() => o(l), "onConfirm"), okText: "确认", cancelText: "取消", children: /* @__PURE__ */ c(jn, {}) })
|
|
3244
3258
|
] }) : /* @__PURE__ */ c(vt, { children: "系统" })
|
|
3245
|
-
] }) }), e[7] = n, e[8] = h, e[9] = E, e[10] = o, e[11] =
|
|
3259
|
+
] }) }), e[7] = n, e[8] = h, e[9] = E, e[10] = o, e[11] = a, e[12] = l, e[13] = u, e[14] = T) : T = e[14], T;
|
|
3246
3260
|
}
|
|
3247
3261
|
r(Qi, "ViewManageItem");
|
|
3248
3262
|
function Ut(t) {
|
|
3249
3263
|
const e = G(27), {
|
|
3250
3264
|
viewType: l,
|
|
3251
3265
|
views: n,
|
|
3252
|
-
open:
|
|
3253
|
-
onCancel:
|
|
3266
|
+
open: a,
|
|
3267
|
+
onCancel: i,
|
|
3254
3268
|
onEditViewName: s,
|
|
3255
3269
|
onDeleteView: o
|
|
3256
|
-
} = t, [u, d] =
|
|
3270
|
+
} = t, [u, d] = j(null);
|
|
3257
3271
|
let f;
|
|
3258
3272
|
e[0] !== u?.id ? (f = /* @__PURE__ */ r((k) => u?.id === k.id, "t0"), e[0] = u?.id, e[1] = f) : f = e[1];
|
|
3259
3273
|
const h = f, m = Xi;
|
|
3260
3274
|
let E;
|
|
3261
|
-
e[2] !==
|
|
3262
|
-
|
|
3263
|
-
}, "t1"), e[2] =
|
|
3275
|
+
e[2] !== i ? (E = /* @__PURE__ */ r(() => {
|
|
3276
|
+
i?.();
|
|
3277
|
+
}, "t1"), e[2] = i, e[3] = E) : E = e[3];
|
|
3264
3278
|
const T = E;
|
|
3265
3279
|
let S;
|
|
3266
3280
|
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ r(() => {
|
|
@@ -3296,10 +3310,10 @@ function Ut(t) {
|
|
|
3296
3310
|
e[16] !== F || e[17] !== D || e[18] !== h ? (k = /* @__PURE__ */ r((B) => /* @__PURE__ */ c(Qi, { editing: h(B), onCancel: L, onDelete: F, onEdit: P, onSave: D, view: B }), "t92"), e[16] = F, e[17] = D, e[18] = h, e[19] = k) : k = e[19], V = n.map(k), e[11] = F, e[12] = D, e[13] = h, e[14] = n, e[15] = V;
|
|
3297
3311
|
} else
|
|
3298
3312
|
V = e[15];
|
|
3299
|
-
let p;
|
|
3300
|
-
e[20] !== V ? (p = /* @__PURE__ */ c(Te, { orientation: "vertical", size: 12, style: M, children: V }), e[20] = V, e[21] = p) : p = e[21];
|
|
3301
3313
|
let O;
|
|
3302
|
-
|
|
3314
|
+
e[20] !== V ? (O = /* @__PURE__ */ c(Te, { orientation: "vertical", size: 12, style: M, children: V }), e[20] = V, e[21] = O) : O = e[21];
|
|
3315
|
+
let p;
|
|
3316
|
+
return e[22] !== T || e[23] !== a || e[24] !== g || e[25] !== O ? (p = /* @__PURE__ */ c(lt, { title: g, open: a, onOk: m, okText: "确认", cancelText: "取消", onCancel: T, children: O }), e[22] = T, e[23] = a, e[24] = g, e[25] = O, e[26] = p) : p = e[26], p;
|
|
3303
3317
|
}
|
|
3304
3318
|
r(Ut, "ViewManageModal");
|
|
3305
3319
|
function Xi() {
|
|
@@ -3315,8 +3329,8 @@ function tr(t) {
|
|
|
3315
3329
|
...l
|
|
3316
3330
|
} = t, {
|
|
3317
3331
|
defaultViews: n,
|
|
3318
|
-
defaultView:
|
|
3319
|
-
definition:
|
|
3332
|
+
defaultView: a,
|
|
3333
|
+
definition: i,
|
|
3320
3334
|
onLoadData: s,
|
|
3321
3335
|
onGetRecordCount: o,
|
|
3322
3336
|
onCreateView: u,
|
|
@@ -3338,78 +3352,78 @@ function tr(t) {
|
|
|
3338
3352
|
page: g,
|
|
3339
3353
|
setPage: M,
|
|
3340
3354
|
pageSize: V,
|
|
3341
|
-
setPageSize:
|
|
3342
|
-
tableSize:
|
|
3355
|
+
setPageSize: O,
|
|
3356
|
+
tableSize: p,
|
|
3343
3357
|
setTableSize: k,
|
|
3344
3358
|
condition: B,
|
|
3345
|
-
setCondition:
|
|
3359
|
+
setCondition: v,
|
|
3346
3360
|
sorter: _,
|
|
3347
3361
|
setSorter: C,
|
|
3348
3362
|
onSwitchView: N,
|
|
3349
|
-
views:
|
|
3363
|
+
views: I,
|
|
3350
3364
|
setViews: $,
|
|
3351
3365
|
reset: H
|
|
3352
3366
|
} = nr({
|
|
3353
3367
|
views: n,
|
|
3354
|
-
defaultView:
|
|
3355
|
-
definition:
|
|
3368
|
+
defaultView: a,
|
|
3369
|
+
definition: i
|
|
3356
3370
|
});
|
|
3357
3371
|
let Y;
|
|
3358
3372
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = [], e[0] = Y) : Y = e[0];
|
|
3359
|
-
const [
|
|
3360
|
-
console.log("onCreateView", ne), u?.(ne, (
|
|
3361
|
-
$([...
|
|
3373
|
+
const [y, z] = j(Y), A = Le(null), w = /* @__PURE__ */ r((ne, de) => {
|
|
3374
|
+
console.log("onCreateView", ne), u?.(ne, (ue) => {
|
|
3375
|
+
$([...I, ue]), N(ue), h?.(ue), de?.();
|
|
3362
3376
|
});
|
|
3363
|
-
}, "handleCreateView"), W = /* @__PURE__ */ r((ne,
|
|
3364
|
-
console.log("onUpdateView", ne), d?.(ne, (
|
|
3365
|
-
$(
|
|
3377
|
+
}, "handleCreateView"), W = /* @__PURE__ */ r((ne, de) => {
|
|
3378
|
+
console.log("onUpdateView", ne), d?.(ne, (ue) => {
|
|
3379
|
+
$(I.map((Ce) => Ce.id === ue.id ? ue : Ce)), H(), N(ue), h?.(ue), de?.();
|
|
3366
3380
|
});
|
|
3367
|
-
}, "handleUpdateView"),
|
|
3368
|
-
console.log("onDeleteView", ne), f?.(ne, (
|
|
3369
|
-
$(
|
|
3381
|
+
}, "handleUpdateView"), X = /* @__PURE__ */ r((ne, de) => {
|
|
3382
|
+
console.log("onDeleteView", ne), f?.(ne, (ue) => {
|
|
3383
|
+
$(I.filter((Ce) => Ce.id !== ue.id)), E.id === ue.id && (N(I[0]), h?.(I[0])), de?.();
|
|
3370
3384
|
});
|
|
3371
3385
|
}, "handleDeleteView");
|
|
3372
|
-
let
|
|
3373
|
-
e[1] !== b ? (
|
|
3386
|
+
let ee;
|
|
3387
|
+
e[1] !== b ? (ee = /* @__PURE__ */ r((ne) => {
|
|
3374
3388
|
b(ne);
|
|
3375
|
-
}, "t2"), e[1] = b, e[2] =
|
|
3376
|
-
const
|
|
3389
|
+
}, "t2"), e[1] = b, e[2] = ee) : ee = e[2];
|
|
3390
|
+
const te = ee, Q = /* @__PURE__ */ r((ne) => {
|
|
3377
3391
|
N(ne), s?.(ne.condition, 1, ne.pageSize, ne.sorter), h?.(ne);
|
|
3378
3392
|
}, "handleSwitchView");
|
|
3379
|
-
let
|
|
3380
|
-
e[3] !== H ? (
|
|
3393
|
+
let le;
|
|
3394
|
+
e[3] !== H ? (le = /* @__PURE__ */ r(() => {
|
|
3381
3395
|
H();
|
|
3382
|
-
}, "t3"), e[3] = H, e[4] =
|
|
3383
|
-
const Z =
|
|
3384
|
-
subscribe:
|
|
3396
|
+
}, "t3"), e[3] = H, e[4] = le) : le = e[4];
|
|
3397
|
+
const Z = le, {
|
|
3398
|
+
subscribe: ae
|
|
3385
3399
|
} = st();
|
|
3386
|
-
|
|
3400
|
+
ae({
|
|
3387
3401
|
name: "Viewer-Refresh-Data",
|
|
3388
3402
|
handle() {
|
|
3389
3403
|
s?.(B, g, V, _);
|
|
3390
3404
|
}
|
|
3391
3405
|
});
|
|
3392
3406
|
let re;
|
|
3393
|
-
e[5] !== E || e[6] !==
|
|
3407
|
+
e[5] !== E || e[6] !== i.countUrl || e[7] !== i.name || e[8] !== w || e[9] !== X || e[10] !== te || e[11] !== Q || e[12] !== W || e[13] !== o || e[14] !== L || e[15] !== I ? (re = L && /* @__PURE__ */ c(Ji, { className: ke.userViews, width: 220, children: /* @__PURE__ */ c(Ki, { name: i.name, views: I, activeView: E, countUrl: i.countUrl, onSwitchView: Q, onShowViewPanelChange: te, onGetRecordCount: o, onCreateView: w, onUpdateView: W, onDeleteView: X }) }), e[5] = E, e[6] = i.countUrl, e[7] = i.name, e[8] = w, e[9] = X, e[10] = te, e[11] = Q, e[12] = W, e[13] = o, e[14] = L, e[15] = I, e[16] = re) : re = e[16];
|
|
3394
3408
|
let se;
|
|
3395
3409
|
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (se = {
|
|
3396
3410
|
display: "flex"
|
|
3397
3411
|
}, e[17] = se) : se = e[17];
|
|
3398
|
-
let ce;
|
|
3399
|
-
e[18] !== E || e[19] !== a.name || e[20] !== w || e[21] !== Q || e[22] !== Z || e[23] !== W || e[24] !== m.batchActions || e[25] !== m.primaryAction || e[26] !== m.secondaryActions || e[27] !== S || e[28] !== b || e[29] !== k || e[30] !== T || e[31] !== L || e[32] !== I || e[33] !== P || e[34] !== v ? (ce = /* @__PURE__ */ c(Zi, { className: ke.topBar, children: /* @__PURE__ */ c(Li, { tableSelectedItems: I, title: a.name, activeView: E, views: v, defaultTableSize: E.tableSize, primaryAction: m.primaryAction, secondaryActions: m.secondaryActions, batchActions: m.batchActions, viewChanged: P, onReset: Z, showViewPanel: L, showFilter: T, onShowFilterChange: S, onShowViewPanelChange: b, onTableSizeChange: k, onCreateView: w, onUpdateView: W, onDeleteView: Q }) }), e[18] = E, e[19] = a.name, e[20] = w, e[21] = Q, e[22] = Z, e[23] = W, e[24] = m.batchActions, e[25] = m.primaryAction, e[26] = m.secondaryActions, e[27] = S, e[28] = b, e[29] = k, e[30] = T, e[31] = L, e[32] = I, e[33] = P, e[34] = v, e[35] = ce) : ce = e[35];
|
|
3400
|
-
const X = m.enableRowSelection ?? !0;
|
|
3401
|
-
let ae;
|
|
3402
|
-
e[36] !== x || e[37] !== R || e[38] !== B || e[39] !== a.availableFilters || e[40] !== a.fields || e[41] !== s || e[42] !== m.actionColumn || e[43] !== m.dataSource || e[44] !== m.onClickPrimaryKey || e[45] !== m.pagination || e[46] !== m.viewTableSetting || e[47] !== g || e[48] !== V || e[49] !== D || e[50] !== F || e[51] !== y || e[52] !== M || e[53] !== p || e[54] !== C || e[55] !== z || e[56] !== k || e[57] !== T || e[58] !== _ || e[59] !== X || e[60] !== O ? (ae = /* @__PURE__ */ c(wi, { ref: A, fields: a.fields, availableFilters: a.availableFilters, dataSource: m.dataSource, enableRowSelection: X, filterMode: "editable", pagination: m.pagination, showFilter: T, viewTableSetting: m.viewTableSetting, actionColumn: m.actionColumn, onClickPrimaryKey: m.onClickPrimaryKey, onSelectedDataChange: z, defaultActiveFilters: x, externalActiveFilters: x, externalUpdateActiveFilters: D, defaultColumns: R, externalColumns: R, externalUpdateColumns: F, defaultPage: g, externalPage: g, externalUpdatePage: M, defaultPageSize: V, externalPageSize: V, externalUpdatePageSize: p, defaultTableSize: O, externalTableSize: O, externalUpdateTableSize: k, defaultCondition: B, externalCondition: B, externalUpdateCondition: y, defaultSorter: _, externalSorter: _, externalUpdateSorter: C, onChange: s }), e[36] = x, e[37] = R, e[38] = B, e[39] = a.availableFilters, e[40] = a.fields, e[41] = s, e[42] = m.actionColumn, e[43] = m.dataSource, e[44] = m.onClickPrimaryKey, e[45] = m.pagination, e[46] = m.viewTableSetting, e[47] = g, e[48] = V, e[49] = D, e[50] = F, e[51] = y, e[52] = M, e[53] = p, e[54] = C, e[55] = z, e[56] = k, e[57] = T, e[58] = _, e[59] = X, e[60] = O, e[61] = ae) : ae = e[61];
|
|
3403
|
-
let te;
|
|
3404
|
-
e[62] !== ce || e[63] !== ae ? (te = /* @__PURE__ */ c(ht, { className: ke.container, children: /* @__PURE__ */ c(er, { children: /* @__PURE__ */ q(Te, { orientation: "vertical", style: se, size: "small", children: [
|
|
3405
|
-
ce,
|
|
3406
|
-
ae
|
|
3407
|
-
] }) }) }), e[62] = ce, e[63] = ae, e[64] = te) : te = e[64];
|
|
3408
3412
|
let ie;
|
|
3409
|
-
|
|
3413
|
+
e[18] !== E || e[19] !== i.name || e[20] !== w || e[21] !== X || e[22] !== Z || e[23] !== W || e[24] !== m.batchActions || e[25] !== m.primaryAction || e[26] !== m.secondaryActions || e[27] !== S || e[28] !== b || e[29] !== k || e[30] !== T || e[31] !== L || e[32] !== y || e[33] !== P || e[34] !== I ? (ie = /* @__PURE__ */ c(Zi, { className: ke.topBar, children: /* @__PURE__ */ c(Li, { tableSelectedItems: y, title: i.name, activeView: E, views: I, defaultTableSize: E.tableSize, primaryAction: m.primaryAction, secondaryActions: m.secondaryActions, batchActions: m.batchActions, viewChanged: P, onReset: Z, showViewPanel: L, showFilter: T, onShowFilterChange: S, onShowViewPanelChange: b, onTableSizeChange: k, onCreateView: w, onUpdateView: W, onDeleteView: X }) }), e[18] = E, e[19] = i.name, e[20] = w, e[21] = X, e[22] = Z, e[23] = W, e[24] = m.batchActions, e[25] = m.primaryAction, e[26] = m.secondaryActions, e[27] = S, e[28] = b, e[29] = k, e[30] = T, e[31] = L, e[32] = y, e[33] = P, e[34] = I, e[35] = ie) : ie = e[35];
|
|
3414
|
+
const oe = m.enableRowSelection ?? !0;
|
|
3415
|
+
let ce;
|
|
3416
|
+
e[36] !== x || e[37] !== R || e[38] !== B || e[39] !== i.availableFilters || e[40] !== i.fields || e[41] !== s || e[42] !== m.actionColumn || e[43] !== m.dataSource || e[44] !== m.onClickPrimaryKey || e[45] !== m.pagination || e[46] !== m.viewTableSetting || e[47] !== g || e[48] !== V || e[49] !== D || e[50] !== F || e[51] !== v || e[52] !== M || e[53] !== O || e[54] !== C || e[55] !== z || e[56] !== k || e[57] !== T || e[58] !== _ || e[59] !== oe || e[60] !== p ? (ce = /* @__PURE__ */ c(wi, { ref: A, fields: i.fields, availableFilters: i.availableFilters, dataSource: m.dataSource, enableRowSelection: oe, filterMode: "editable", pagination: m.pagination, showFilter: T, viewTableSetting: m.viewTableSetting, actionColumn: m.actionColumn, onClickPrimaryKey: m.onClickPrimaryKey, onSelectedDataChange: z, defaultActiveFilters: x, externalActiveFilters: x, externalUpdateActiveFilters: D, defaultColumns: R, externalColumns: R, externalUpdateColumns: F, defaultPage: g, externalPage: g, externalUpdatePage: M, defaultPageSize: V, externalPageSize: V, externalUpdatePageSize: O, defaultTableSize: p, externalTableSize: p, externalUpdateTableSize: k, defaultCondition: B, externalCondition: B, externalUpdateCondition: v, defaultSorter: _, externalSorter: _, externalUpdateSorter: C, onChange: s }), e[36] = x, e[37] = R, e[38] = B, e[39] = i.availableFilters, e[40] = i.fields, e[41] = s, e[42] = m.actionColumn, e[43] = m.dataSource, e[44] = m.onClickPrimaryKey, e[45] = m.pagination, e[46] = m.viewTableSetting, e[47] = g, e[48] = V, e[49] = D, e[50] = F, e[51] = v, e[52] = M, e[53] = O, e[54] = C, e[55] = z, e[56] = k, e[57] = T, e[58] = _, e[59] = oe, e[60] = p, e[61] = ce) : ce = e[61];
|
|
3417
|
+
let K;
|
|
3418
|
+
e[62] !== ie || e[63] !== ce ? (K = /* @__PURE__ */ c(ht, { className: ke.container, children: /* @__PURE__ */ c(er, { children: /* @__PURE__ */ q(Te, { orientation: "vertical", style: se, size: "small", children: [
|
|
3419
|
+
ie,
|
|
3420
|
+
ce
|
|
3421
|
+
] }) }) }), e[62] = ie, e[63] = ce, e[64] = K) : K = e[64];
|
|
3422
|
+
let J;
|
|
3423
|
+
return e[65] !== re || e[66] !== K ? (J = /* @__PURE__ */ q(ht, { children: [
|
|
3410
3424
|
re,
|
|
3411
|
-
|
|
3412
|
-
] }), e[65] = re, e[66] =
|
|
3425
|
+
K
|
|
3426
|
+
] }), e[65] = re, e[66] = K, e[67] = J) : J = e[67], J;
|
|
3413
3427
|
}
|
|
3414
3428
|
r(tr, "Viewer");
|
|
3415
3429
|
function nr({
|
|
@@ -3417,7 +3431,7 @@ function nr({
|
|
|
3417
3431
|
defaultShowViewPanel: e = !0,
|
|
3418
3432
|
...l
|
|
3419
3433
|
}) {
|
|
3420
|
-
const n = Le(l.defaultView), [
|
|
3434
|
+
const n = Le(l.defaultView), [a, i] = j(l.views), [s, o] = j(l.defaultView), [u, d] = j(t), [f, h] = j(e), {
|
|
3421
3435
|
columns: m,
|
|
3422
3436
|
setColumns: E,
|
|
3423
3437
|
page: T,
|
|
@@ -3432,63 +3446,63 @@ function nr({
|
|
|
3432
3446
|
setCondition: g,
|
|
3433
3447
|
sorter: M,
|
|
3434
3448
|
setSorter: V,
|
|
3435
|
-
reset:
|
|
3436
|
-
} =
|
|
3449
|
+
reset: O
|
|
3450
|
+
} = cn({
|
|
3437
3451
|
defaultColumns: s.columns,
|
|
3438
3452
|
defaultPageSize: s.pageSize,
|
|
3439
3453
|
defaultActiveFilters: s.filters,
|
|
3440
3454
|
defaultTableSize: s.tableSize,
|
|
3441
3455
|
defaultCondition: s.condition,
|
|
3442
3456
|
defaultSorter: s.sorter
|
|
3443
|
-
}), [
|
|
3444
|
-
return
|
|
3457
|
+
}), [p, k] = j(!1);
|
|
3458
|
+
return Se(() => {
|
|
3445
3459
|
k(!Ct(s, n.current));
|
|
3446
3460
|
}, [s]), {
|
|
3447
3461
|
activeView: s,
|
|
3448
3462
|
showFilter: u,
|
|
3449
|
-
setShowFilter: /* @__PURE__ */ r((
|
|
3450
|
-
d(
|
|
3463
|
+
setShowFilter: /* @__PURE__ */ r((y) => {
|
|
3464
|
+
d(y);
|
|
3451
3465
|
}, "setShowFilterFn"),
|
|
3452
3466
|
showViewPanel: f,
|
|
3453
|
-
setShowViewPanel: /* @__PURE__ */ r((
|
|
3454
|
-
h(
|
|
3467
|
+
setShowViewPanel: /* @__PURE__ */ r((y) => {
|
|
3468
|
+
h(y);
|
|
3455
3469
|
}, "setShowViewPanelFn"),
|
|
3456
3470
|
columns: m,
|
|
3457
|
-
setColumns: /* @__PURE__ */ r((
|
|
3458
|
-
E(
|
|
3471
|
+
setColumns: /* @__PURE__ */ r((y) => {
|
|
3472
|
+
E(y), o({
|
|
3459
3473
|
...s,
|
|
3460
|
-
columns:
|
|
3474
|
+
columns: y
|
|
3461
3475
|
});
|
|
3462
3476
|
}, "setColumnsFn"),
|
|
3463
3477
|
page: T,
|
|
3464
3478
|
setPage: S,
|
|
3465
3479
|
pageSize: L,
|
|
3466
|
-
setPageSize: /* @__PURE__ */ r((
|
|
3467
|
-
b(
|
|
3480
|
+
setPageSize: /* @__PURE__ */ r((y) => {
|
|
3481
|
+
b(y), o({
|
|
3468
3482
|
...s,
|
|
3469
|
-
pageSize:
|
|
3483
|
+
pageSize: y
|
|
3470
3484
|
});
|
|
3471
3485
|
}, "setPageSizeFn"),
|
|
3472
3486
|
activeFilters: P,
|
|
3473
|
-
setActiveFilters: /* @__PURE__ */ r((
|
|
3474
|
-
R(
|
|
3487
|
+
setActiveFilters: /* @__PURE__ */ r((y) => {
|
|
3488
|
+
R(y), o({
|
|
3475
3489
|
...s,
|
|
3476
|
-
filters:
|
|
3490
|
+
filters: y
|
|
3477
3491
|
});
|
|
3478
3492
|
}, "setActiveFiltersFn"),
|
|
3479
3493
|
tableSize: F,
|
|
3480
|
-
setTableSize: /* @__PURE__ */ r((
|
|
3481
|
-
x(
|
|
3494
|
+
setTableSize: /* @__PURE__ */ r((y) => {
|
|
3495
|
+
x(y), o({
|
|
3482
3496
|
...s,
|
|
3483
|
-
tableSize:
|
|
3497
|
+
tableSize: y
|
|
3484
3498
|
});
|
|
3485
3499
|
}, "setTableSizeFn"),
|
|
3486
3500
|
condition: D,
|
|
3487
|
-
setCondition: /* @__PURE__ */ r((
|
|
3488
|
-
g(
|
|
3501
|
+
setCondition: /* @__PURE__ */ r((y) => {
|
|
3502
|
+
g(y);
|
|
3489
3503
|
const z = P.map((A) => {
|
|
3490
|
-
if (
|
|
3491
|
-
const w =
|
|
3504
|
+
if (y.operator === U.AND) {
|
|
3505
|
+
const w = y.children?.find(
|
|
3492
3506
|
(W) => W.field === A.field.name
|
|
3493
3507
|
);
|
|
3494
3508
|
return w ? {
|
|
@@ -3500,10 +3514,10 @@ function nr({
|
|
|
3500
3514
|
value: { defaultValue: void 0 },
|
|
3501
3515
|
operator: { defaultValue: void 0 }
|
|
3502
3516
|
};
|
|
3503
|
-
} else return
|
|
3517
|
+
} else return y.field === A.field.name ? {
|
|
3504
3518
|
...A,
|
|
3505
|
-
value: { defaultValue:
|
|
3506
|
-
operator: { defaultValue:
|
|
3519
|
+
value: { defaultValue: y.value },
|
|
3520
|
+
operator: { defaultValue: y.operator }
|
|
3507
3521
|
} : {
|
|
3508
3522
|
...A,
|
|
3509
3523
|
value: { defaultValue: void 0 },
|
|
@@ -3512,24 +3526,24 @@ function nr({
|
|
|
3512
3526
|
});
|
|
3513
3527
|
R(z), o({
|
|
3514
3528
|
...s,
|
|
3515
|
-
condition:
|
|
3529
|
+
condition: y,
|
|
3516
3530
|
filters: z
|
|
3517
3531
|
});
|
|
3518
3532
|
}, "setConditionFn"),
|
|
3519
3533
|
sorter: M,
|
|
3520
|
-
setSorter: /* @__PURE__ */ r((
|
|
3521
|
-
V(
|
|
3534
|
+
setSorter: /* @__PURE__ */ r((y) => {
|
|
3535
|
+
V(y), o({
|
|
3522
3536
|
...s,
|
|
3523
|
-
sorter:
|
|
3537
|
+
sorter: y
|
|
3524
3538
|
});
|
|
3525
3539
|
}, "setSorterFn"),
|
|
3526
|
-
viewChanged:
|
|
3527
|
-
views:
|
|
3528
|
-
setViews:
|
|
3529
|
-
onSwitchView: /* @__PURE__ */ r((
|
|
3530
|
-
console.log("switch view",
|
|
3540
|
+
viewChanged: p,
|
|
3541
|
+
views: a,
|
|
3542
|
+
setViews: i,
|
|
3543
|
+
onSwitchView: /* @__PURE__ */ r((y) => {
|
|
3544
|
+
console.log("switch view", y), n.current = y, o(y), S(1), b(y.pageSize), E(y.columns), g(y.condition || Ue()), R(y.filters), x(y.tableSize), V(y.sorter || []);
|
|
3531
3545
|
}, "onSwitchViewFn"),
|
|
3532
|
-
reset:
|
|
3546
|
+
reset: O
|
|
3533
3547
|
};
|
|
3534
3548
|
}
|
|
3535
3549
|
r(nr, "useViewerState");
|
|
@@ -3538,7 +3552,7 @@ export {
|
|
|
3538
3552
|
fa as ACTION_CELL_TYPE,
|
|
3539
3553
|
_a as AVATAR_CELL_TYPE,
|
|
3540
3554
|
Me as ActionCell,
|
|
3541
|
-
|
|
3555
|
+
un as ActionsCell,
|
|
3542
3556
|
Fe as AssemblyFilter,
|
|
3543
3557
|
mi as AutoRefreshBarItem,
|
|
3544
3558
|
Dl as AvailableFilterSelect,
|
|
@@ -3546,7 +3560,7 @@ export {
|
|
|
3546
3560
|
Sa as AvatarCell,
|
|
3547
3561
|
Gl as BOOL_FILTER,
|
|
3548
3562
|
Pe as BarItem,
|
|
3549
|
-
|
|
3563
|
+
tn as BoolFilter,
|
|
3550
3564
|
Aa as CALENDAR_CELL_TYPE,
|
|
3551
3565
|
Wa as CURRENCY_CELL_TYPE,
|
|
3552
3566
|
La as CalendarTimeCell,
|
|
@@ -3554,51 +3568,51 @@ export {
|
|
|
3554
3568
|
Ga as CurrencyCell,
|
|
3555
3569
|
Na as DATETIME_CELL_TYPE,
|
|
3556
3570
|
Ra as DEFAULT_CALENDAR_FORMATS,
|
|
3557
|
-
|
|
3571
|
+
on as DEFAULT_CONDITION,
|
|
3558
3572
|
Re as DEFAULT_CURRENCY_FORMAT_OPTIONS,
|
|
3559
3573
|
Qe as DEFAULT_DATE_TIME_FORMAT,
|
|
3560
|
-
|
|
3574
|
+
fn as DateTimeCell,
|
|
3561
3575
|
oa as EditableFilterPanel,
|
|
3562
3576
|
ze as ExtendedOperator,
|
|
3563
|
-
|
|
3577
|
+
an as FallbackFilter,
|
|
3564
3578
|
Tr as FetcherViewer,
|
|
3565
3579
|
Ci as FilterBarItem,
|
|
3566
|
-
|
|
3580
|
+
sn as FilterPanel,
|
|
3567
3581
|
ul as Fullscreen,
|
|
3568
3582
|
zl as ID_FILTER,
|
|
3569
3583
|
Fa as IMAGE_CELL_TYPE,
|
|
3570
3584
|
$a as IMAGE_GROUP_CELL_TYPE,
|
|
3571
|
-
|
|
3585
|
+
Zt as IdFilter,
|
|
3572
3586
|
gl as IdOnOperatorChangeValueConverter,
|
|
3573
3587
|
Pa as ImageCell,
|
|
3574
3588
|
xa as ImageGroupCell,
|
|
3575
3589
|
Ma as LINK_CELL_TYPE,
|
|
3576
3590
|
Ua as LinkCell,
|
|
3577
3591
|
Bl as NUMBER_FILTER,
|
|
3578
|
-
|
|
3592
|
+
Jt as NumberFilter,
|
|
3579
3593
|
sl as NumberRange,
|
|
3580
3594
|
il as NumberTagValueItemSerializer,
|
|
3581
|
-
|
|
3595
|
+
pl as OPERATOR_zh_CN,
|
|
3582
3596
|
vi as Point,
|
|
3583
3597
|
Ii as RefreshDataBarItem,
|
|
3584
3598
|
cl as RemoteSelect,
|
|
3585
3599
|
aa as RemovableTypedFilter,
|
|
3586
3600
|
Wl as SELECT_FILTER,
|
|
3587
|
-
|
|
3588
|
-
|
|
3601
|
+
hn as SaveViewModal,
|
|
3602
|
+
en as SelectFilter,
|
|
3589
3603
|
yi as ShareLinkBarItem,
|
|
3590
3604
|
al as StringTagValueItemSerializer,
|
|
3591
3605
|
Da as TAGS_CELL_TYPE,
|
|
3592
|
-
|
|
3593
|
-
|
|
3606
|
+
Oa as TAG_CELL_TYPE,
|
|
3607
|
+
pa as TEXT_CELL_TYPE,
|
|
3594
3608
|
Ul as TEXT_FILTER,
|
|
3595
3609
|
$t as TableFieldItem,
|
|
3596
3610
|
Ja as TableSettingPanel,
|
|
3597
|
-
|
|
3611
|
+
mn as TagCell,
|
|
3598
3612
|
rt as TagInput,
|
|
3599
3613
|
wa as TagsCell,
|
|
3600
|
-
|
|
3601
|
-
|
|
3614
|
+
dn as TextCell,
|
|
3615
|
+
Xt as TextFilter,
|
|
3602
3616
|
Li as TopBar,
|
|
3603
3617
|
$l as TrueValidateValue,
|
|
3604
3618
|
et as TypedComponentRegistry,
|
|
@@ -3628,11 +3642,11 @@ export {
|
|
|
3628
3642
|
Ea as isNullOrUndefined,
|
|
3629
3643
|
Pl as isValidBetweenValue,
|
|
3630
3644
|
Ta as isValidImageSrc,
|
|
3631
|
-
|
|
3645
|
+
pt as isValidValue,
|
|
3632
3646
|
oi as mapToTableRecord,
|
|
3633
3647
|
ha as parseDayjs,
|
|
3634
3648
|
ja as typedCellRender,
|
|
3635
|
-
|
|
3649
|
+
cn as useActiveViewState,
|
|
3636
3650
|
yl as useFetchData,
|
|
3637
3651
|
Hl as useFilterState,
|
|
3638
3652
|
st as useRefreshDataEventBus,
|