@ahoo-wang/fetcher-viewer 3.11.5 → 3.11.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
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var r = (t, e) =>
|
|
1
|
+
var pn = Object.defineProperty;
|
|
2
|
+
var r = (t, e) => pn(t, "name", { value: e, configurable: !0 });
|
|
3
3
|
import { jsx as c, jsxs as J, Fragment as Te } from "react/jsx-runtime";
|
|
4
4
|
import { c as G } from "react/compiler-runtime";
|
|
5
|
-
import { Select as rt, InputNumber as tt, Space as Se, Input as Ke, Flex as Ae, Spin as Tt, Empty as nt, Button as me, Row as Et, Col as _t, Checkbox as
|
|
6
|
-
import
|
|
5
|
+
import { Select as rt, InputNumber as tt, Space as Se, Input as Ke, Flex as Ae, Spin as Tt, Empty as nt, Button as me, Row as Et, Col as _t, Checkbox as qt, Divider as Ue, Modal as st, theme as Ln, Typography as je, DatePicker as ft, Alert as bn, Dropdown as Fe, Avatar as dt, Tag as pt, Image as St, Badge as Rn, Table as On, Popover as Dn, message as wn, Pagination as Fn, Collapse as Pn, Radio as $n, Form as mt, Popconfirm as xn, Layout as Ct } from "antd";
|
|
6
|
+
import Qt, { useState as Q, useCallback as Xt, useEffect as ye, useImperativeHandle as be, useRef as De, createElement as Ot } from "react";
|
|
7
7
|
import { useDebouncedExecutePromise as Vn, useFullscreen as Mn, useFetcherListQuery as kn, useFetcherPagedQuery as Hn, useRefs as Un } from "@ahoo-wang/fetcher-react";
|
|
8
|
-
import { FullscreenOutlined as zn, FullscreenExitOutlined as gn, MinusOutlined as Bn, ClearOutlined as Yn, SearchOutlined as Wn, PlusOutlined as
|
|
9
|
-
import { ContentTypeValues as tl, fetcherRegistrar as
|
|
10
|
-
import { post as ll, path as We, request as ot, attribute as ct, del as il, put as
|
|
8
|
+
import { FullscreenOutlined as zn, FullscreenExitOutlined as gn, MinusOutlined as Bn, ClearOutlined as Yn, SearchOutlined as Wn, PlusOutlined as Zt, DownOutlined as ge, DragOutlined as Jt, SettingOutlined as en, ColumnHeightOutlined as Gn, FilterOutlined as Kn, ReloadOutlined as jn, LinkOutlined as qn, ExclamationCircleOutlined as Qn, MenuUnfoldOutlined as Xn, MenuFoldOutlined as Zn, EditOutlined as Jn, DeleteOutlined as el } from "@ant-design/icons";
|
|
9
|
+
import { ContentTypeValues as tl, fetcherRegistrar as tn, TextResultExtractor as nl } from "@ahoo-wang/fetcher";
|
|
10
|
+
import { post as ll, path as We, request as ot, attribute as ct, del as il, put as nn, api as ln, autoGeneratedError as Qe } from "@ahoo-wang/fetcher-decorator";
|
|
11
11
|
import { JsonEventStreamResultExtractor as al } from "@ahoo-wang/fetcher-eventstream";
|
|
12
|
-
import { ResourceAttributionPathSpec as
|
|
12
|
+
import { ResourceAttributionPathSpec as an, QueryClientFactory as rn, listQuery as rl, and as lt, eq as Dt, isIn as wt, all as xe, EMPTY_VALUE_OPERATORS as sl, Operator as z } from "@ahoo-wang/fetcher-wow";
|
|
13
13
|
import { SerialTypedEventBus as ol, BroadcastTypedEventBus as cl } from "@ahoo-wang/fetcher-eventbus";
|
|
14
14
|
const ul = {
|
|
15
15
|
serialize(t) {
|
|
@@ -42,8 +42,8 @@ function ut(t) {
|
|
|
42
42
|
e[7] !== l || e[8] !== d ? (m = /* @__PURE__ */ r((v) => {
|
|
43
43
|
if (!l)
|
|
44
44
|
return;
|
|
45
|
-
const
|
|
46
|
-
l(
|
|
45
|
+
const L = d.deserialize(v);
|
|
46
|
+
l(L);
|
|
47
47
|
}, "t3"), e[7] = l, e[8] = d, e[9] = m) : m = e[9];
|
|
48
48
|
const h = m;
|
|
49
49
|
let T = null;
|
|
@@ -60,14 +60,14 @@ function ut(t) {
|
|
|
60
60
|
}
|
|
61
61
|
r(ut, "TagInput");
|
|
62
62
|
ut.displayName = "TagInput";
|
|
63
|
-
const
|
|
63
|
+
const Ft = /* @__PURE__ */ r((t) => Array.isArray(t) ? t : [t, void 0], "convertToRangeValue"), ht = ["最小值", "最大值"];
|
|
64
64
|
function ml(t) {
|
|
65
65
|
const e = G(35), l = t.value !== void 0;
|
|
66
66
|
let n;
|
|
67
|
-
e[0] !== t.defaultValue ? (n =
|
|
67
|
+
e[0] !== t.defaultValue ? (n = Ft(t.defaultValue), e[0] = t.defaultValue, e[1] = n) : n = e[1];
|
|
68
68
|
const [i, a] = Q(n);
|
|
69
69
|
let s;
|
|
70
|
-
e[2] !== i || e[3] !== l || e[4] !== t.value ? (s = l ?
|
|
70
|
+
e[2] !== i || e[3] !== l || e[4] !== t.value ? (s = l ? Ft(t.value) : i, e[2] = i, e[3] = l, e[4] = t.value, e[5] = s) : s = e[5];
|
|
71
71
|
const o = s, [u, f] = o;
|
|
72
72
|
let d;
|
|
73
73
|
e[6] !== l || e[7] !== t ? (d = /* @__PURE__ */ r((x) => {
|
|
@@ -83,12 +83,12 @@ function ml(t) {
|
|
|
83
83
|
e[12] !== m || e[13] !== u ? (E = /* @__PURE__ */ r((x) => {
|
|
84
84
|
m([u, x ?? void 0]);
|
|
85
85
|
}, "t4"), e[12] = m, e[13] = u, e[14] = E) : E = e[14];
|
|
86
|
-
const v = E,
|
|
86
|
+
const v = E, L = f !== void 0 ? f : t.max, D = u !== void 0 ? u : t.min;
|
|
87
87
|
let b;
|
|
88
88
|
e[15] !== t.placeholder ? (b = t.placeholder ? [t.placeholder[0] || ht[0], t.placeholder[1] || ht[1]] : ht, e[15] = t.placeholder, e[16] = b) : b = e[16];
|
|
89
89
|
const R = b;
|
|
90
90
|
let P;
|
|
91
|
-
e[17] !== T || e[18] !== R[0] || e[19] !== t.min || e[20] !== t.precision || e[21] !== u || e[22] !==
|
|
91
|
+
e[17] !== T || e[18] !== R[0] || e[19] !== t.min || e[20] !== t.precision || e[21] !== u || e[22] !== L ? (P = /* @__PURE__ */ c(tt, { value: u, min: t.min, max: L, precision: t.precision, placeholder: R[0], onChange: T }), e[17] = T, e[18] = R[0], e[19] = t.min, e[20] = t.precision, e[21] = u, e[22] = L, e[23] = P) : P = e[23];
|
|
92
92
|
let F;
|
|
93
93
|
e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ c(Ke, { style: {
|
|
94
94
|
width: 30,
|
|
@@ -151,8 +151,8 @@ function Tl(t) {
|
|
|
151
151
|
] }) : /* @__PURE__ */ c(nt, { image: nt.PRESENTED_IMAGE_SIMPLE }), e[13] = u, e[14] = E) : E = e[14];
|
|
152
152
|
let v;
|
|
153
153
|
e[15] !== u || e[16] !== l || e[17] !== f ? (v = u ? [] : f ?? l, e[15] = u, e[16] = l, e[17] = f, e[18] = v) : v = e[18];
|
|
154
|
-
let
|
|
155
|
-
return e[19] !== u || e[20] !== i || e[21] !== T || e[22] !== E || e[23] !== v ? (
|
|
154
|
+
let L;
|
|
155
|
+
return e[19] !== u || e[20] !== i || e[21] !== T || e[22] !== E || e[23] !== v ? (L = /* @__PURE__ */ c(rt, { showSearch: T, loading: u, notFoundContent: E, options: v, ...i }), e[19] = u, e[20] = i, e[21] = T, e[22] = E, e[23] = v, e[24] = L) : L = e[24], L;
|
|
156
156
|
}
|
|
157
157
|
r(Tl, "RemoteSelect");
|
|
158
158
|
Tl.displayName = "RemoteSelect";
|
|
@@ -174,18 +174,18 @@ function El(t) {
|
|
|
174
174
|
}
|
|
175
175
|
r(El, "Fullscreen");
|
|
176
176
|
El.displayName = "FullScreen";
|
|
177
|
-
const
|
|
177
|
+
const Lt = "viewer";
|
|
178
178
|
var _l = Object.defineProperty, Sl = Object.getOwnPropertyDescriptor, Ve = /* @__PURE__ */ r((t, e, l, n) => {
|
|
179
179
|
for (var i = n > 1 ? void 0 : n ? Sl(e, l) : e, a = t.length - 1, s; a >= 0; a--)
|
|
180
180
|
(s = t[a]) && (i = (n ? s(e, l, i) : s(i)) || i);
|
|
181
181
|
return n && i && _l(e, l, i), i;
|
|
182
182
|
}, "__decorateClass"), Ce = /* @__PURE__ */ r((t, e) => (l, n) => e(l, n, t), "__decorateParam"), Cl = /* @__PURE__ */ ((t) => (t.CREATE_VIEW = "/tenant/{tenantId}/owner/{ownerId}/view/type/{type}", t.DEFAULT_DELETE_AGGREGATE = "/tenant/{tenantId}/owner/{ownerId}/view/{id}", t.DEFAULT_RECOVER_AGGREGATE = "/tenant/{tenantId}/owner/{ownerId}/view/{id}/recover", t.EDIT_VIEW = "/tenant/{tenantId}/owner/{ownerId}/view/{id}/type/{type}", t))(Cl || {});
|
|
183
|
-
const
|
|
184
|
-
basePath:
|
|
183
|
+
const sn = {
|
|
184
|
+
basePath: Lt
|
|
185
185
|
};
|
|
186
186
|
var Pe;
|
|
187
|
-
let
|
|
188
|
-
constructor(e =
|
|
187
|
+
let Le = (Pe = class {
|
|
188
|
+
constructor(e = sn) {
|
|
189
189
|
this.apiMetadata = e;
|
|
190
190
|
}
|
|
191
191
|
createView(e, l, n) {
|
|
@@ -209,7 +209,7 @@ Ve([
|
|
|
209
209
|
Ce(0, We("type")),
|
|
210
210
|
Ce(1, ot()),
|
|
211
211
|
Ce(2, ct())
|
|
212
|
-
],
|
|
212
|
+
], Le.prototype, "createView", 1);
|
|
213
213
|
Ve([
|
|
214
214
|
il(
|
|
215
215
|
"/tenant/{tenantId}/owner/{ownerId}/view/{id}"
|
|
@@ -218,18 +218,18 @@ Ve([
|
|
|
218
218
|
Ce(0, We("id")),
|
|
219
219
|
Ce(1, ot()),
|
|
220
220
|
Ce(2, ct())
|
|
221
|
-
],
|
|
221
|
+
], Le.prototype, "defaultDeleteAggregate", 1);
|
|
222
222
|
Ve([
|
|
223
|
-
|
|
223
|
+
nn(
|
|
224
224
|
"/tenant/{tenantId}/owner/{ownerId}/view/{id}/recover"
|
|
225
225
|
/* DEFAULT_RECOVER_AGGREGATE */
|
|
226
226
|
),
|
|
227
227
|
Ce(0, We("id")),
|
|
228
228
|
Ce(1, ot()),
|
|
229
229
|
Ce(2, ct())
|
|
230
|
-
],
|
|
230
|
+
], Le.prototype, "defaultRecoverAggregate", 1);
|
|
231
231
|
Ve([
|
|
232
|
-
|
|
232
|
+
nn(
|
|
233
233
|
"/tenant/{tenantId}/owner/{ownerId}/view/{id}/type/{type}"
|
|
234
234
|
/* EDIT_VIEW */
|
|
235
235
|
),
|
|
@@ -237,44 +237,44 @@ Ve([
|
|
|
237
237
|
Ce(1, We("id")),
|
|
238
238
|
Ce(2, ot()),
|
|
239
239
|
Ce(3, ct())
|
|
240
|
-
],
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
],
|
|
240
|
+
], Le.prototype, "editView", 1);
|
|
241
|
+
Le = Ve([
|
|
242
|
+
ln()
|
|
243
|
+
], Le);
|
|
244
244
|
var $e;
|
|
245
|
-
let
|
|
246
|
-
constructor(e =
|
|
245
|
+
let Pt = ($e = class extends Le {
|
|
246
|
+
constructor(e = sn) {
|
|
247
247
|
super(e);
|
|
248
248
|
}
|
|
249
249
|
}, r($e, "ViewStreamCommandClient"), $e);
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
Pt = Ve([
|
|
251
|
+
ln("", {
|
|
252
252
|
headers: { Accept: tl.TEXT_EVENT_STREAM },
|
|
253
253
|
resultExtractor: al
|
|
254
254
|
})
|
|
255
|
-
],
|
|
255
|
+
], Pt);
|
|
256
256
|
const vl = {
|
|
257
|
-
contextAlias:
|
|
257
|
+
contextAlias: Lt,
|
|
258
258
|
aggregateName: "view",
|
|
259
|
-
resourceAttribution:
|
|
259
|
+
resourceAttribution: an.TENANT
|
|
260
260
|
};
|
|
261
|
-
var
|
|
262
|
-
const Rr = new
|
|
261
|
+
var yl = /* @__PURE__ */ ((t) => (t.view_created = "视图已创建", t.view_edited = "视图已修改", t))(yl || {});
|
|
262
|
+
const Rr = new rn(vl);
|
|
263
263
|
var ze = /* @__PURE__ */ ((t) => (t.AGGREGATE_ID = "aggregateId", t.TENANT_ID = "tenantId", t.OWNER_ID = "ownerId", t.VERSION = "version", t.EVENT_ID = "eventId", t.FIRST_OPERATOR = "firstOperator", t.OPERATOR = "operator", t.FIRST_EVENT_TIME = "firstEventTime", t.EVENT_TIME = "eventTime", t.DELETED = "deleted", t.STATE = "state", t.STATE_COLUMNS = "state.columns", t.STATE_COLUMNS_FIXED = "state.columns.fixed", t.STATE_COLUMNS_HIDDEN = "state.columns.hidden", t.STATE_COLUMNS_NAME = "state.columns.name", t.STATE_COLUMNS_SORT_ORDER = "state.columns.sortOrder", t.STATE_COLUMNS_WIDTH = "state.columns.width", t.STATE_CONDITION = "state.condition", t.STATE_CONDITION_CHILDREN = "state.condition.children", t.STATE_CONDITION_CHILDREN_CHILDREN = "state.condition.children.children", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN = "state.condition.children.children.children", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN_CHILDREN = "state.condition.children.children.children.children", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN_FIELD = "state.condition.children.children.children.field", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN_OPERATOR = "state.condition.children.children.children.operator", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN_OPTIONS = "state.condition.children.children.children.options", t.STATE_CONDITION_CHILDREN_CHILDREN_CHILDREN_VALUE = "state.condition.children.children.children.value", t.STATE_CONDITION_CHILDREN_CHILDREN_FIELD = "state.condition.children.children.field", t.STATE_CONDITION_CHILDREN_CHILDREN_OPERATOR = "state.condition.children.children.operator", t.STATE_CONDITION_CHILDREN_CHILDREN_OPTIONS = "state.condition.children.children.options", t.STATE_CONDITION_CHILDREN_CHILDREN_VALUE = "state.condition.children.children.value", t.STATE_CONDITION_CHILDREN_FIELD = "state.condition.children.field", t.STATE_CONDITION_CHILDREN_OPERATOR = "state.condition.children.operator", t.STATE_CONDITION_CHILDREN_OPTIONS = "state.condition.children.options", t.STATE_CONDITION_CHILDREN_VALUE = "state.condition.children.value", t.STATE_CONDITION_FIELD = "state.condition.field", t.STATE_CONDITION_OPERATOR = "state.condition.operator", t.STATE_CONDITION_OPTIONS = "state.condition.options", t.STATE_CONDITION_VALUE = "state.condition.value", t.STATE_DEFINITION_ID = "state.definitionId", t.STATE_FILTERS = "state.filters", t.STATE_FILTERS_CONDITION_OPTIONS = "state.filters.conditionOptions", t.STATE_FILTERS_FIELD = "state.filters.field", t.STATE_FILTERS_FIELD_FORMAT = "state.filters.field.format", t.STATE_FILTERS_FIELD_LABEL = "state.filters.field.label", t.STATE_FILTERS_FIELD_NAME = "state.filters.field.name", t.STATE_FILTERS_FIELD_TYPE = "state.filters.field.type", t.STATE_FILTERS_KEY = "state.filters.key", t.STATE_FILTERS_LABEL = "state.filters.label", t.STATE_FILTERS_LABEL_CLASS_NAME = "state.filters.label.className", t.STATE_FILTERS_LABEL_STYLE = "state.filters.label.style", t.STATE_FILTERS_OPERATOR = "state.filters.operator", t.STATE_FILTERS_OPERATOR_DEFAULT_OPERATOR = "state.filters.operator.defaultOperator", t.STATE_FILTERS_OPERATOR_LOCALE = "state.filters.operator.locale", t.STATE_FILTERS_OPERATOR_SUPPORTED_OPERATORS = "state.filters.operator.supportedOperators", t.STATE_FILTERS_TYPE = "state.filters.type", t.STATE_FILTERS_VALUE = "state.filters.value", t.STATE_FILTERS_VALUE_CLASS_NAME = "state.filters.value.className", t.STATE_FILTERS_VALUE_DEFAULT_VALUE = "state.filters.value.defaultValue", t.STATE_FILTERS_VALUE_PLACEHOLDER = "state.filters.value.placeholder", t.STATE_FILTERS_VALUE_STYLE = "state.filters.value.style", t.STATE_ID = "state.id", t.STATE_INTERNAL_CONDITION = "state.internalCondition", t.STATE_INTERNAL_CONDITION_CHILDREN = "state.internalCondition.children", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN = "state.internalCondition.children.children", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN = "state.internalCondition.children.children.children", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN_CHILDREN = "state.internalCondition.children.children.children.children", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN_FIELD = "state.internalCondition.children.children.children.field", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN_OPERATOR = "state.internalCondition.children.children.children.operator", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN_OPTIONS = "state.internalCondition.children.children.children.options", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_CHILDREN_VALUE = "state.internalCondition.children.children.children.value", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_FIELD = "state.internalCondition.children.children.field", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_OPERATOR = "state.internalCondition.children.children.operator", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_OPTIONS = "state.internalCondition.children.children.options", t.STATE_INTERNAL_CONDITION_CHILDREN_CHILDREN_VALUE = "state.internalCondition.children.children.value", t.STATE_INTERNAL_CONDITION_CHILDREN_FIELD = "state.internalCondition.children.field", t.STATE_INTERNAL_CONDITION_CHILDREN_OPERATOR = "state.internalCondition.children.operator", t.STATE_INTERNAL_CONDITION_CHILDREN_OPTIONS = "state.internalCondition.children.options", t.STATE_INTERNAL_CONDITION_CHILDREN_VALUE = "state.internalCondition.children.value", t.STATE_INTERNAL_CONDITION_FIELD = "state.internalCondition.field", t.STATE_INTERNAL_CONDITION_OPERATOR = "state.internalCondition.operator", t.STATE_INTERNAL_CONDITION_OPTIONS = "state.internalCondition.options", t.STATE_INTERNAL_CONDITION_VALUE = "state.internalCondition.value", t.STATE_IS_DEFAULT = "state.isDefault", t.STATE_NAME = "state.name", t.STATE_PAGE_SIZE = "state.pageSize", t.STATE_SORTER = "state.sorter", t.STATE_SORTER_COLUMN_KEY = "state.sorter.columnKey", t.STATE_SORTER_FIELD = "state.sorter.field", t.STATE_SORTER_ORDER = "state.sorter.order", t.STATE_SOURCE = "state.source", t.STATE_TABLE_SIZE = "state.tableSize", t.STATE_TYPE = "state.type", t))(ze || {});
|
|
264
|
-
const
|
|
265
|
-
contextAlias:
|
|
264
|
+
const Il = {
|
|
265
|
+
contextAlias: Lt,
|
|
266
266
|
aggregateName: "viewer_definition",
|
|
267
|
-
resourceAttribution:
|
|
267
|
+
resourceAttribution: an.NONE
|
|
268
268
|
};
|
|
269
269
|
var Nl = /* @__PURE__ */ ((t) => (t.viewer_definition_saved = "viewer_definition_saved", t))(Nl || {});
|
|
270
|
-
const Al = new
|
|
271
|
-
var
|
|
272
|
-
function
|
|
273
|
-
const [e, l] = Q(), [n, i] = Q(!0), [a, s] = Q(), [o, u] = Q(0), f =
|
|
270
|
+
const Al = new rn(Il);
|
|
271
|
+
var pl = /* @__PURE__ */ ((t) => (t.AGGREGATE_ID = "aggregateId", t.TENANT_ID = "tenantId", t.OWNER_ID = "ownerId", t.VERSION = "version", t.EVENT_ID = "eventId", t.FIRST_OPERATOR = "firstOperator", t.OPERATOR = "operator", t.FIRST_EVENT_TIME = "firstEventTime", t.EVENT_TIME = "eventTime", t.DELETED = "deleted", t.STATE = "state", t.STATE_AVAILABLE_FILTERS = "state.availableFilters", t.STATE_AVAILABLE_FILTERS_FILTERS = "state.availableFilters.filters", t.STATE_AVAILABLE_FILTERS_FILTERS_COMPONENT = "state.availableFilters.filters.component", t.STATE_AVAILABLE_FILTERS_FILTERS_FIELD = "state.availableFilters.filters.field", t.STATE_AVAILABLE_FILTERS_FILTERS_FIELD_FORMAT = "state.availableFilters.filters.field.format", t.STATE_AVAILABLE_FILTERS_FILTERS_FIELD_LABEL = "state.availableFilters.filters.field.label", t.STATE_AVAILABLE_FILTERS_FILTERS_FIELD_NAME = "state.availableFilters.filters.field.name", t.STATE_AVAILABLE_FILTERS_FILTERS_FIELD_TYPE = "state.availableFilters.filters.field.type", t.STATE_AVAILABLE_FILTERS_FILTERS_OPERATOR = "state.availableFilters.filters.operator", t.STATE_AVAILABLE_FILTERS_FILTERS_OPERATOR_DEFAULT_OPERATOR = "state.availableFilters.filters.operator.defaultOperator", t.STATE_AVAILABLE_FILTERS_FILTERS_OPERATOR_LOCALE = "state.availableFilters.filters.operator.locale", t.STATE_AVAILABLE_FILTERS_FILTERS_OPERATOR_SUPPORTED_OPERATORS = "state.availableFilters.filters.operator.supportedOperators", t.STATE_AVAILABLE_FILTERS_FILTERS_VALUE = "state.availableFilters.filters.value", t.STATE_AVAILABLE_FILTERS_FILTERS_VALUE_CLASS_NAME = "state.availableFilters.filters.value.className", t.STATE_AVAILABLE_FILTERS_FILTERS_VALUE_DEFAULT_VALUE = "state.availableFilters.filters.value.defaultValue", t.STATE_AVAILABLE_FILTERS_FILTERS_VALUE_PLACEHOLDER = "state.availableFilters.filters.value.placeholder", t.STATE_AVAILABLE_FILTERS_FILTERS_VALUE_STYLE = "state.availableFilters.filters.value.style", t.STATE_AVAILABLE_FILTERS_LABEL = "state.availableFilters.label", t.STATE_CHECKABLE = "state.checkable", t.STATE_COUNT_URL = "state.countUrl", t.STATE_DATA_URL = "state.dataUrl", t.STATE_FIELDS = "state.fields", t.STATE_FIELDS_ATTRIBUTES = "state.fields.attributes", t.STATE_FIELDS_LABEL = "state.fields.label", t.STATE_FIELDS_NAME = "state.fields.name", t.STATE_FIELDS_PRIMARY_KEY = "state.fields.primaryKey", t.STATE_FIELDS_SORTER = "state.fields.sorter", t.STATE_FIELDS_SORTER_MULTIPLE = "state.fields.sorter.multiple", t.STATE_ID = "state.id", t.STATE_NAME = "state.name", t))(pl || {});
|
|
272
|
+
function Ll(t) {
|
|
273
|
+
const [e, l] = Q(), [n, i] = Q(!0), [a, s] = Q(), [o, u] = Q(0), f = Xt(() => {
|
|
274
274
|
u((d) => d + 1), i(!0), s(void 0);
|
|
275
275
|
}, []);
|
|
276
|
-
return
|
|
277
|
-
const d = new AbortController(), m =
|
|
276
|
+
return ye(() => {
|
|
277
|
+
const d = new AbortController(), m = tn.default;
|
|
278
278
|
return Al.createSnapshotQueryClient({
|
|
279
279
|
fetcher: m
|
|
280
280
|
}).getStateById(t, {}, d).then((T) => {
|
|
@@ -286,7 +286,7 @@ function pl(t) {
|
|
|
286
286
|
};
|
|
287
287
|
}, [t, o]), { viewerDefinition: e, loading: n, error: a, refetch: f };
|
|
288
288
|
}
|
|
289
|
-
r(
|
|
289
|
+
r(Ll, "useViewerDefinition");
|
|
290
290
|
function bl(t, e, l) {
|
|
291
291
|
const {
|
|
292
292
|
loading: n,
|
|
@@ -296,10 +296,10 @@ function bl(t, e, l) {
|
|
|
296
296
|
url: "/viewer/view/snapshot/list/state",
|
|
297
297
|
initialQuery: rl({
|
|
298
298
|
condition: lt(
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
299
|
+
Dt(ze.DELETED, !1),
|
|
300
|
+
wt(ze.TENANT_ID, "(0)", e),
|
|
301
|
+
wt(ze.OWNER_ID, "(shared)", l),
|
|
302
|
+
Dt(ze.STATE_DEFINITION_ID, t)
|
|
303
303
|
),
|
|
304
304
|
limit: 999
|
|
305
305
|
}),
|
|
@@ -313,7 +313,7 @@ function Rl(t) {
|
|
|
313
313
|
url: e?.dataUrl || "",
|
|
314
314
|
autoExecute: !0
|
|
315
315
|
});
|
|
316
|
-
return
|
|
316
|
+
return ye(() => {
|
|
317
317
|
l && e && s({
|
|
318
318
|
condition: l?.condition ? l.internalCondition ? lt(l.internalCondition, l.condition) : xe() : xe(),
|
|
319
319
|
pagination: {
|
|
@@ -340,7 +340,7 @@ function Rl(t) {
|
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
342
|
r(Rl, "useFetchData");
|
|
343
|
-
const bt = new
|
|
343
|
+
const bt = new Le();
|
|
344
344
|
function Or(t) {
|
|
345
345
|
const e = G(41);
|
|
346
346
|
let l, n, i;
|
|
@@ -359,14 +359,14 @@ function Or(t) {
|
|
|
359
359
|
enableRowSelection: T,
|
|
360
360
|
onSwitchView: E,
|
|
361
361
|
viewTableSetting: v,
|
|
362
|
-
primaryAction:
|
|
362
|
+
primaryAction: L,
|
|
363
363
|
secondaryActions: D,
|
|
364
364
|
batchActions: b
|
|
365
365
|
} = l, {
|
|
366
366
|
viewerDefinition: R,
|
|
367
367
|
loading: P,
|
|
368
368
|
error: F
|
|
369
|
-
} =
|
|
369
|
+
} = Ll(u), {
|
|
370
370
|
views: w,
|
|
371
371
|
loading: H
|
|
372
372
|
} = bl(u, s, a);
|
|
@@ -379,7 +379,7 @@ function Or(t) {
|
|
|
379
379
|
defaultView: V
|
|
380
380
|
}, e[7] = V, e[8] = R, e[9] = $) : $ = e[9];
|
|
381
381
|
const {
|
|
382
|
-
dataSource:
|
|
382
|
+
dataSource: p,
|
|
383
383
|
loading: M,
|
|
384
384
|
setQuery: W,
|
|
385
385
|
reload: N
|
|
@@ -389,18 +389,18 @@ function Or(t) {
|
|
|
389
389
|
W?.(U, Z, ee, j);
|
|
390
390
|
}, "t5"), e[10] = W, e[11] = _) : _ = e[11];
|
|
391
391
|
const S = _;
|
|
392
|
-
let
|
|
393
|
-
e[12] !== E ? (
|
|
392
|
+
let I;
|
|
393
|
+
e[12] !== E ? (I = /* @__PURE__ */ r((U) => {
|
|
394
394
|
E?.(U);
|
|
395
|
-
}, "t6"), e[12] = E, e[13] =
|
|
396
|
-
const C =
|
|
397
|
-
publish:
|
|
395
|
+
}, "t6"), e[12] = E, e[13] = I) : I = e[13];
|
|
396
|
+
const C = I, A = Fl, O = wl, B = Dl, y = Ol, {
|
|
397
|
+
publish: g,
|
|
398
398
|
subscribe: Y
|
|
399
399
|
} = Rt();
|
|
400
400
|
let k;
|
|
401
|
-
if (e[14] !==
|
|
402
|
-
refreshData:
|
|
403
|
-
}), "t7"), e[14] =
|
|
401
|
+
if (e[14] !== g ? (k = /* @__PURE__ */ r(() => ({
|
|
402
|
+
refreshData: g
|
|
403
|
+
}), "t7"), e[14] = g, e[15] = k) : k = e[15], be(o, k), Y({
|
|
404
404
|
name: "Viewer-Refresh-Data",
|
|
405
405
|
handle: /* @__PURE__ */ r(async () => {
|
|
406
406
|
await N();
|
|
@@ -440,12 +440,12 @@ function Or(t) {
|
|
|
440
440
|
}
|
|
441
441
|
if (w && w.length > 0 && V) {
|
|
442
442
|
let U;
|
|
443
|
-
e[22] !==
|
|
443
|
+
e[22] !== p ? (U = p || {
|
|
444
444
|
list: [],
|
|
445
445
|
total: 0
|
|
446
|
-
}, e[22] =
|
|
446
|
+
}, e[22] = p, e[23] = U) : U = e[23];
|
|
447
447
|
let Z;
|
|
448
|
-
return e[24] !== m || e[25] !== b || e[26] !== V || e[27] !== T || e[28] !== M || e[29] !== S || e[30] !== C || e[31] !== h || e[32] !== d || e[33] !==
|
|
448
|
+
return e[24] !== m || e[25] !== b || e[26] !== V || e[27] !== T || e[28] !== M || e[29] !== S || e[30] !== C || e[31] !== h || e[32] !== d || e[33] !== L || e[34] !== D || e[35] !== U || e[36] !== v || e[37] !== R || e[38] !== w ? (Z = /* @__PURE__ */ c(hr, { defaultViews: w, defaultView: V, definition: R, loading: M, dataSource: U, pagination: d, actionColumn: m, onClickPrimaryKey: h, enableRowSelection: T, primaryAction: L, secondaryActions: D, batchActions: b, onGetRecordCount: A, onSwitchView: C, onLoadData: S, viewTableSetting: v, onCreateView: O, onUpdateView: B, onDeleteView: y }), e[24] = m, e[25] = b, e[26] = V, e[27] = T, e[28] = M, e[29] = S, e[30] = C, e[31] = h, e[32] = d, e[33] = L, e[34] = D, e[35] = U, e[36] = v, e[37] = R, e[38] = w, e[39] = Z) : Z = e[39], Z;
|
|
449
449
|
}
|
|
450
450
|
let K;
|
|
451
451
|
return e[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ c("div", { style: {
|
|
@@ -491,7 +491,7 @@ function wl(t, e) {
|
|
|
491
491
|
}
|
|
492
492
|
r(wl, "_temp2$3");
|
|
493
493
|
function Fl(t, e) {
|
|
494
|
-
return
|
|
494
|
+
return tn.default.post(t, {
|
|
495
495
|
body: e
|
|
496
496
|
}, {
|
|
497
497
|
resultExtractor: nl
|
|
@@ -550,7 +550,7 @@ const $l = {
|
|
|
550
550
|
UNDEFINED: "未设置"
|
|
551
551
|
};
|
|
552
552
|
var Ge = /* @__PURE__ */ ((t) => (t.UNDEFINED = "UNDEFINED", t))(Ge || {});
|
|
553
|
-
const xl = "_filterContent_goy0q_1", Vl = "_filterGroupLabel_goy0q_6",
|
|
553
|
+
const xl = "_filterContent_goy0q_1", Vl = "_filterGroupLabel_goy0q_6", $t = {
|
|
554
554
|
filterContent: xl,
|
|
555
555
|
filterGroupLabel: Vl
|
|
556
556
|
}, Ml = [];
|
|
@@ -577,21 +577,21 @@ function kl(t) {
|
|
|
577
577
|
let T, E;
|
|
578
578
|
e[8] !== o ? (T = /* @__PURE__ */ r(() => {
|
|
579
579
|
f(o);
|
|
580
|
-
}, "t4"), E = [o], e[8] = o, e[9] = T, e[10] = E) : (T = e[9], E = e[10]),
|
|
580
|
+
}, "t4"), E = [o], e[8] = o, e[9] = T, e[10] = E) : (T = e[9], E = e[10]), ye(T, E);
|
|
581
581
|
let v;
|
|
582
582
|
if (e[11] !== a || e[12] !== l || e[13] !== h || e[14] !== u) {
|
|
583
583
|
let D;
|
|
584
584
|
e[16] !== a || e[17] !== l.length || e[18] !== h || e[19] !== u ? (D = /* @__PURE__ */ r((b, R) => /* @__PURE__ */ J("div", { children: [
|
|
585
|
-
/* @__PURE__ */ c("span", { className:
|
|
586
|
-
/* @__PURE__ */ c(Et, { wrap: !0, gutter: [16, 16], children: b.filters.map((P) => /* @__PURE__ */ c(_t, { span: 6, children: /* @__PURE__ */ c(
|
|
585
|
+
/* @__PURE__ */ c("span", { className: $t.filterGroupLabel, children: b.label }),
|
|
586
|
+
/* @__PURE__ */ c(Et, { wrap: !0, gutter: [16, 16], children: b.filters.map((P) => /* @__PURE__ */ c(_t, { span: 6, children: /* @__PURE__ */ c(qt, { checked: u.includes(P.field.name), onChange: /* @__PURE__ */ r((F) => {
|
|
587
587
|
h(P, F.target.checked);
|
|
588
588
|
}, "onChange"), disabled: a.some((F) => F.field.name === P.field.name), children: P.field.label }) }, P.field.name)) }, R),
|
|
589
589
|
R < l.length - 1 && /* @__PURE__ */ c(Ue, { size: "middle" })
|
|
590
590
|
] }, b.label), "t72"), e[16] = a, e[17] = l.length, e[18] = h, e[19] = u, e[20] = D) : D = e[20], v = l.map(D), e[11] = a, e[12] = l, e[13] = h, e[14] = u, e[15] = v;
|
|
591
591
|
} else
|
|
592
592
|
v = e[15];
|
|
593
|
-
let
|
|
594
|
-
return e[21] !== v ? (
|
|
593
|
+
let L;
|
|
594
|
+
return e[21] !== v ? (L = /* @__PURE__ */ c("div", { className: $t.filterContent, children: v }), e[21] = v, e[22] = L) : L = e[22], L;
|
|
595
595
|
}
|
|
596
596
|
r(kl, "AvailableFilterSelect");
|
|
597
597
|
function Hl(t) {
|
|
@@ -612,13 +612,13 @@ function Ul(t) {
|
|
|
612
612
|
}
|
|
613
613
|
r(Ul, "AvailableFilterSelectModal");
|
|
614
614
|
function zl(t) {
|
|
615
|
-
return !Array.isArray(t) || t.length !== 2 ? !1 :
|
|
615
|
+
return !Array.isArray(t) || t.length !== 2 ? !1 : xt(t[0]) && xt(t[1]);
|
|
616
616
|
}
|
|
617
617
|
r(zl, "isValidBetweenValue");
|
|
618
|
-
function
|
|
618
|
+
function xt(t) {
|
|
619
619
|
return t != null;
|
|
620
620
|
}
|
|
621
|
-
r(
|
|
621
|
+
r(xt, "isValidValue");
|
|
622
622
|
function Dr() {
|
|
623
623
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
624
624
|
}
|
|
@@ -708,11 +708,12 @@ function Me(t) {
|
|
|
708
708
|
background: d.colorBgContainer,
|
|
709
709
|
border: h,
|
|
710
710
|
borderRight: "none",
|
|
711
|
+
whiteSpace: "nowrap",
|
|
711
712
|
...T
|
|
712
713
|
}, e[2] = h, e[3] = T, e[4] = d.colorBgContainer, e[5] = E) : E = e[5];
|
|
713
714
|
const v = n.label?.className;
|
|
714
|
-
let
|
|
715
|
-
e[6] !== n.field.label || e[7] !== E || e[8] !== v ? (
|
|
715
|
+
let L;
|
|
716
|
+
e[6] !== n.field.label || e[7] !== E || e[8] !== v ? (L = /* @__PURE__ */ c(je, { style: E, className: v, children: n.field.label }), e[6] = n.field.label, e[7] = E, e[8] = v, e[9] = L) : L = e[9];
|
|
716
717
|
let D;
|
|
717
718
|
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = {
|
|
718
719
|
minWidth: 120
|
|
@@ -720,15 +721,15 @@ function Me(t) {
|
|
|
720
721
|
let b;
|
|
721
722
|
e[11] !== o.operator || e[12] !== o.setOperator || e[13] !== f || e[14] !== n.operator ? (b = /* @__PURE__ */ c(rt, { style: D, ...n.operator, onChange: o.setOperator, value: o.operator, options: f }), e[11] = o.operator, e[12] = o.setOperator, e[13] = f, e[14] = n.operator, e[15] = b) : b = e[15];
|
|
722
723
|
let R;
|
|
723
|
-
return e[16] !== n.className || e[17] !== m || e[18] !==
|
|
724
|
-
|
|
724
|
+
return e[16] !== n.className || e[17] !== m || e[18] !== L || e[19] !== b || e[20] !== u ? (R = /* @__PURE__ */ J(Se.Compact, { block: !0, style: m, className: n.className, children: [
|
|
725
|
+
L,
|
|
725
726
|
b,
|
|
726
727
|
u
|
|
727
|
-
] }), e[16] = n.className, e[17] = m, e[18] =
|
|
728
|
+
] }), e[16] = n.className, e[17] = m, e[18] = L, e[19] = b, e[20] = u, e[21] = R) : R = e[21], R;
|
|
728
729
|
}
|
|
729
730
|
r(Me, "AssemblyFilter");
|
|
730
731
|
const ql = "text";
|
|
731
|
-
function
|
|
732
|
+
function on(t) {
|
|
732
733
|
const e = G(6);
|
|
733
734
|
let l;
|
|
734
735
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [z.EQ, z.NE, z.CONTAINS, z.STARTS_WITH, z.ENDS_WITH, z.IN, z.NOT_IN], e[0] = l) : l = e[0];
|
|
@@ -756,8 +757,8 @@ function sn(t) {
|
|
|
756
757
|
i = e[5];
|
|
757
758
|
return i;
|
|
758
759
|
}
|
|
759
|
-
r(
|
|
760
|
-
|
|
760
|
+
r(on, "TextFilter");
|
|
761
|
+
on.displayName = "TextFilter";
|
|
761
762
|
const Ql = "id", Xl = /* @__PURE__ */ r((t, e, l) => {
|
|
762
763
|
if (l == null)
|
|
763
764
|
return l;
|
|
@@ -768,7 +769,7 @@ const Ql = "id", Xl = /* @__PURE__ */ r((t, e, l) => {
|
|
|
768
769
|
const n = l.trim();
|
|
769
770
|
return n ? [n] : [];
|
|
770
771
|
}, "IdOnOperatorChangeValueConverter");
|
|
771
|
-
function
|
|
772
|
+
function cn(t) {
|
|
772
773
|
const e = G(6);
|
|
773
774
|
let l;
|
|
774
775
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [z.ID, z.IDS], e[0] = l) : l = e[0];
|
|
@@ -787,10 +788,10 @@ function on(t) {
|
|
|
787
788
|
i = e[5];
|
|
788
789
|
return i;
|
|
789
790
|
}
|
|
790
|
-
r(
|
|
791
|
-
|
|
791
|
+
r(cn, "IdFilter");
|
|
792
|
+
cn.displayName = "IdConditionFilter";
|
|
792
793
|
const Zl = "number";
|
|
793
|
-
function
|
|
794
|
+
function un(t) {
|
|
794
795
|
const e = G(6);
|
|
795
796
|
let l;
|
|
796
797
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [z.EQ, z.NE, z.GT, z.LT, z.GTE, z.LTE, z.BETWEEN, z.IN, z.NOT_IN], e[0] = l) : l = e[0];
|
|
@@ -831,14 +832,14 @@ function cn(t) {
|
|
|
831
832
|
i = e[5];
|
|
832
833
|
return i;
|
|
833
834
|
}
|
|
834
|
-
r(
|
|
835
|
+
r(un, "NumberFilter");
|
|
835
836
|
function Jl(t, e) {
|
|
836
837
|
return t === z.BETWEEN ? Array.isArray(e) ? e[0] !== void 0 && e[1] !== void 0 : !1 : e != null;
|
|
837
838
|
}
|
|
838
839
|
r(Jl, "_temp$a");
|
|
839
|
-
|
|
840
|
+
un.displayName = "NumberFilter";
|
|
840
841
|
const ei = "select";
|
|
841
|
-
function
|
|
842
|
+
function fn(t) {
|
|
842
843
|
const e = G(6);
|
|
843
844
|
let l;
|
|
844
845
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [z.IN, z.NOT_IN], e[0] = l) : l = e[0];
|
|
@@ -856,10 +857,10 @@ function un(t) {
|
|
|
856
857
|
i = e[5];
|
|
857
858
|
return i;
|
|
858
859
|
}
|
|
859
|
-
r(
|
|
860
|
-
|
|
860
|
+
r(fn, "SelectFilter");
|
|
861
|
+
fn.displayName = "SelectFilter";
|
|
861
862
|
const ti = "bool";
|
|
862
|
-
function
|
|
863
|
+
function dn(t) {
|
|
863
864
|
const e = G(3);
|
|
864
865
|
let l;
|
|
865
866
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [Ge.UNDEFINED, z.TRUE, z.FALSE], e[0] = l) : l = e[0];
|
|
@@ -875,31 +876,31 @@ function fn(t) {
|
|
|
875
876
|
n = e[2];
|
|
876
877
|
return n;
|
|
877
878
|
}
|
|
878
|
-
r(
|
|
879
|
-
|
|
880
|
-
function
|
|
879
|
+
r(dn, "BoolFilter");
|
|
880
|
+
dn.displayName = "BoolFilter";
|
|
881
|
+
function mn(t) {
|
|
881
882
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
882
883
|
}
|
|
883
|
-
r(
|
|
884
|
-
var Ze = { exports: {} }, ni = Ze.exports,
|
|
884
|
+
r(mn, "getDefaultExportFromCjs");
|
|
885
|
+
var Ze = { exports: {} }, ni = Ze.exports, Vt;
|
|
885
886
|
function li() {
|
|
886
|
-
return
|
|
887
|
+
return Vt || (Vt = 1, (function(t, e) {
|
|
887
888
|
(function(l, n) {
|
|
888
889
|
t.exports = n();
|
|
889
890
|
})(ni, (function() {
|
|
890
|
-
var l = 1e3, n = 6e4, i = 36e5, a = "millisecond", s = "second", o = "minute", u = "hour", f = "day", d = "week", m = "month", h = "quarter", T = "year", E = "date", v = "Invalid Date",
|
|
891
|
+
var l = 1e3, n = 6e4, i = 36e5, a = "millisecond", s = "second", o = "minute", u = "hour", f = "day", d = "week", m = "month", h = "quarter", T = "year", E = "date", v = "Invalid Date", L = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, D = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: /* @__PURE__ */ r(function(N) {
|
|
891
892
|
var _ = ["th", "st", "nd", "rd"], S = N % 100;
|
|
892
893
|
return "[" + N + (_[(S - 20) % 10] || _[S] || _[0]) + "]";
|
|
893
894
|
}, "ordinal") }, R = /* @__PURE__ */ r(function(N, _, S) {
|
|
894
|
-
var
|
|
895
|
-
return !
|
|
895
|
+
var I = String(N);
|
|
896
|
+
return !I || I.length >= _ ? N : "" + Array(_ + 1 - I.length).join(S) + N;
|
|
896
897
|
}, "m"), P = { s: R, z: /* @__PURE__ */ r(function(N) {
|
|
897
|
-
var _ = -N.utcOffset(), S = Math.abs(_),
|
|
898
|
-
return (_ <= 0 ? "+" : "-") + R(
|
|
898
|
+
var _ = -N.utcOffset(), S = Math.abs(_), I = Math.floor(S / 60), C = S % 60;
|
|
899
|
+
return (_ <= 0 ? "+" : "-") + R(I, 2, "0") + ":" + R(C, 2, "0");
|
|
899
900
|
}, "z"), m: /* @__PURE__ */ r(function N(_, S) {
|
|
900
901
|
if (_.date() < S.date()) return -N(S, _);
|
|
901
|
-
var
|
|
902
|
-
return +(-(
|
|
902
|
+
var I = 12 * (S.year() - _.year()) + (S.month() - _.month()), C = _.clone().add(I, m), A = S - C < 0, O = _.clone().add(I + (A ? -1 : 1), m);
|
|
903
|
+
return +(-(I + (S - C) / (A ? C - O : O - C)) || 0);
|
|
903
904
|
}, "t"), a: /* @__PURE__ */ r(function(N) {
|
|
904
905
|
return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
|
|
905
906
|
}, "a"), p: /* @__PURE__ */ r(function(N) {
|
|
@@ -910,7 +911,7 @@ function li() {
|
|
|
910
911
|
w[F] = b;
|
|
911
912
|
var H = "$isDayjsObject", x = /* @__PURE__ */ r(function(N) {
|
|
912
913
|
return N instanceof M || !(!N || !N[H]);
|
|
913
|
-
}, "S"), V = /* @__PURE__ */ r(function N(_, S,
|
|
914
|
+
}, "S"), V = /* @__PURE__ */ r(function N(_, S, I) {
|
|
914
915
|
var C;
|
|
915
916
|
if (!_) return F;
|
|
916
917
|
if (typeof _ == "string") {
|
|
@@ -919,16 +920,16 @@ function li() {
|
|
|
919
920
|
var O = _.split("-");
|
|
920
921
|
if (!C && O.length > 1) return N(O[0]);
|
|
921
922
|
} else {
|
|
922
|
-
var
|
|
923
|
-
w[
|
|
923
|
+
var B = _.name;
|
|
924
|
+
w[B] = _, C = B;
|
|
924
925
|
}
|
|
925
|
-
return !
|
|
926
|
+
return !I && C && (F = C), C || !I && F;
|
|
926
927
|
}, "t"), $ = /* @__PURE__ */ r(function(N, _) {
|
|
927
928
|
if (x(N)) return N.clone();
|
|
928
929
|
var S = typeof _ == "object" ? _ : {};
|
|
929
930
|
return S.date = N, S.args = arguments, new M(S);
|
|
930
|
-
}, "O"),
|
|
931
|
-
|
|
931
|
+
}, "O"), p = P;
|
|
932
|
+
p.l = V, p.i = x, p.w = function(N, _) {
|
|
932
933
|
return $(N, { locale: _.$L, utc: _.$u, x: _.$x, $offset: _.$offset });
|
|
933
934
|
};
|
|
934
935
|
var M = (function() {
|
|
@@ -938,16 +939,16 @@ function li() {
|
|
|
938
939
|
r(N, "M");
|
|
939
940
|
var _ = N.prototype;
|
|
940
941
|
return _.parse = function(S) {
|
|
941
|
-
this.$d = (function(
|
|
942
|
-
var C =
|
|
942
|
+
this.$d = (function(I) {
|
|
943
|
+
var C = I.date, A = I.utc;
|
|
943
944
|
if (C === null) return /* @__PURE__ */ new Date(NaN);
|
|
944
|
-
if (
|
|
945
|
+
if (p.u(C)) return /* @__PURE__ */ new Date();
|
|
945
946
|
if (C instanceof Date) return new Date(C);
|
|
946
947
|
if (typeof C == "string" && !/Z$/i.test(C)) {
|
|
947
|
-
var O = C.match(
|
|
948
|
+
var O = C.match(L);
|
|
948
949
|
if (O) {
|
|
949
|
-
var
|
|
950
|
-
return A ? new Date(Date.UTC(O[1],
|
|
950
|
+
var B = O[2] - 1 || 0, y = (O[7] || "0").substring(0, 3);
|
|
951
|
+
return A ? new Date(Date.UTC(O[1], B, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, y)) : new Date(O[1], B, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, y);
|
|
951
952
|
}
|
|
952
953
|
}
|
|
953
954
|
return new Date(C);
|
|
@@ -956,84 +957,84 @@ function li() {
|
|
|
956
957
|
var S = this.$d;
|
|
957
958
|
this.$y = S.getFullYear(), this.$M = S.getMonth(), this.$D = S.getDate(), this.$W = S.getDay(), this.$H = S.getHours(), this.$m = S.getMinutes(), this.$s = S.getSeconds(), this.$ms = S.getMilliseconds();
|
|
958
959
|
}, _.$utils = function() {
|
|
959
|
-
return
|
|
960
|
+
return p;
|
|
960
961
|
}, _.isValid = function() {
|
|
961
962
|
return this.$d.toString() !== v;
|
|
962
|
-
}, _.isSame = function(S,
|
|
963
|
+
}, _.isSame = function(S, I) {
|
|
963
964
|
var C = $(S);
|
|
964
|
-
return this.startOf(
|
|
965
|
-
}, _.isAfter = function(S,
|
|
966
|
-
return $(S) < this.startOf(
|
|
967
|
-
}, _.isBefore = function(S,
|
|
968
|
-
return this.endOf(
|
|
969
|
-
}, _.$g = function(S,
|
|
970
|
-
return
|
|
965
|
+
return this.startOf(I) <= C && C <= this.endOf(I);
|
|
966
|
+
}, _.isAfter = function(S, I) {
|
|
967
|
+
return $(S) < this.startOf(I);
|
|
968
|
+
}, _.isBefore = function(S, I) {
|
|
969
|
+
return this.endOf(I) < $(S);
|
|
970
|
+
}, _.$g = function(S, I, C) {
|
|
971
|
+
return p.u(S) ? this[I] : this.set(C, S);
|
|
971
972
|
}, _.unix = function() {
|
|
972
973
|
return Math.floor(this.valueOf() / 1e3);
|
|
973
974
|
}, _.valueOf = function() {
|
|
974
975
|
return this.$d.getTime();
|
|
975
|
-
}, _.startOf = function(S,
|
|
976
|
-
var C = this, A = !!
|
|
977
|
-
var ne =
|
|
976
|
+
}, _.startOf = function(S, I) {
|
|
977
|
+
var C = this, A = !!p.u(I) || I, O = p.p(S), B = /* @__PURE__ */ r(function(ee, j) {
|
|
978
|
+
var ne = p.w(C.$u ? Date.UTC(C.$y, j, ee) : new Date(C.$y, j, ee), C);
|
|
978
979
|
return A ? ne : ne.endOf(f);
|
|
979
|
-
}, "l"),
|
|
980
|
-
return
|
|
981
|
-
}, "$"),
|
|
980
|
+
}, "l"), y = /* @__PURE__ */ r(function(ee, j) {
|
|
981
|
+
return p.w(C.toDate()[ee].apply(C.toDate("s"), (A ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(j)), C);
|
|
982
|
+
}, "$"), g = this.$W, Y = this.$M, k = this.$D, K = "set" + (this.$u ? "UTC" : "");
|
|
982
983
|
switch (O) {
|
|
983
984
|
case T:
|
|
984
|
-
return A ?
|
|
985
|
+
return A ? B(1, 0) : B(31, 11);
|
|
985
986
|
case m:
|
|
986
|
-
return A ?
|
|
987
|
+
return A ? B(1, Y) : B(0, Y + 1);
|
|
987
988
|
case d:
|
|
988
|
-
var U = this.$locale().weekStart || 0, Z = (
|
|
989
|
-
return
|
|
989
|
+
var U = this.$locale().weekStart || 0, Z = (g < U ? g + 7 : g) - U;
|
|
990
|
+
return B(A ? k - Z : k + (6 - Z), Y);
|
|
990
991
|
case f:
|
|
991
992
|
case E:
|
|
992
|
-
return
|
|
993
|
+
return y(K + "Hours", 0);
|
|
993
994
|
case u:
|
|
994
|
-
return
|
|
995
|
+
return y(K + "Minutes", 1);
|
|
995
996
|
case o:
|
|
996
|
-
return
|
|
997
|
+
return y(K + "Seconds", 2);
|
|
997
998
|
case s:
|
|
998
|
-
return
|
|
999
|
+
return y(K + "Milliseconds", 3);
|
|
999
1000
|
default:
|
|
1000
1001
|
return this.clone();
|
|
1001
1002
|
}
|
|
1002
1003
|
}, _.endOf = function(S) {
|
|
1003
1004
|
return this.startOf(S, !1);
|
|
1004
|
-
}, _.$set = function(S,
|
|
1005
|
-
var C, A =
|
|
1005
|
+
}, _.$set = function(S, I) {
|
|
1006
|
+
var C, A = p.p(S), O = "set" + (this.$u ? "UTC" : ""), B = (C = {}, C[f] = O + "Date", C[E] = O + "Date", C[m] = O + "Month", C[T] = O + "FullYear", C[u] = O + "Hours", C[o] = O + "Minutes", C[s] = O + "Seconds", C[a] = O + "Milliseconds", C)[A], y = A === f ? this.$D + (I - this.$W) : I;
|
|
1006
1007
|
if (A === m || A === T) {
|
|
1007
|
-
var
|
|
1008
|
-
|
|
1009
|
-
} else
|
|
1008
|
+
var g = this.clone().set(E, 1);
|
|
1009
|
+
g.$d[B](y), g.init(), this.$d = g.set(E, Math.min(this.$D, g.daysInMonth())).$d;
|
|
1010
|
+
} else B && this.$d[B](y);
|
|
1010
1011
|
return this.init(), this;
|
|
1011
|
-
}, _.set = function(S,
|
|
1012
|
-
return this.clone().$set(S,
|
|
1012
|
+
}, _.set = function(S, I) {
|
|
1013
|
+
return this.clone().$set(S, I);
|
|
1013
1014
|
}, _.get = function(S) {
|
|
1014
|
-
return this[
|
|
1015
|
-
}, _.add = function(S,
|
|
1015
|
+
return this[p.p(S)]();
|
|
1016
|
+
}, _.add = function(S, I) {
|
|
1016
1017
|
var C, A = this;
|
|
1017
1018
|
S = Number(S);
|
|
1018
|
-
var O =
|
|
1019
|
+
var O = p.p(I), B = /* @__PURE__ */ r(function(Y) {
|
|
1019
1020
|
var k = $(A);
|
|
1020
|
-
return
|
|
1021
|
+
return p.w(k.date(k.date() + Math.round(Y * S)), A);
|
|
1021
1022
|
}, "y");
|
|
1022
1023
|
if (O === m) return this.set(m, this.$M + S);
|
|
1023
1024
|
if (O === T) return this.set(T, this.$y + S);
|
|
1024
|
-
if (O === f) return
|
|
1025
|
-
if (O === d) return
|
|
1026
|
-
var
|
|
1027
|
-
return
|
|
1028
|
-
}, _.subtract = function(S,
|
|
1029
|
-
return this.add(-1 * S,
|
|
1025
|
+
if (O === f) return B(1);
|
|
1026
|
+
if (O === d) return B(7);
|
|
1027
|
+
var y = (C = {}, C[o] = n, C[u] = i, C[s] = l, C)[O] || 1, g = this.$d.getTime() + S * y;
|
|
1028
|
+
return p.w(g, this);
|
|
1029
|
+
}, _.subtract = function(S, I) {
|
|
1030
|
+
return this.add(-1 * S, I);
|
|
1030
1031
|
}, _.format = function(S) {
|
|
1031
|
-
var
|
|
1032
|
+
var I = this, C = this.$locale();
|
|
1032
1033
|
if (!this.isValid()) return C.invalidDate || v;
|
|
1033
|
-
var A = S || "YYYY-MM-DDTHH:mm:ssZ", O =
|
|
1034
|
-
return j && (j[ne] || j(
|
|
1034
|
+
var A = S || "YYYY-MM-DDTHH:mm:ssZ", O = p.z(this), B = this.$H, y = this.$m, g = this.$M, Y = C.weekdays, k = C.months, K = C.meridiem, U = /* @__PURE__ */ r(function(j, ne, te, ie) {
|
|
1035
|
+
return j && (j[ne] || j(I, A)) || te[ne].slice(0, ie);
|
|
1035
1036
|
}, "h"), Z = /* @__PURE__ */ r(function(j) {
|
|
1036
|
-
return
|
|
1037
|
+
return p.s(B % 12 || 12, j, "0");
|
|
1037
1038
|
}, "d"), ee = K || function(j, ne, te) {
|
|
1038
1039
|
var ie = j < 12 ? "AM" : "PM";
|
|
1039
1040
|
return te ? ie.toLowerCase() : ie;
|
|
@@ -1042,51 +1043,51 @@ function li() {
|
|
|
1042
1043
|
return ne || (function(te) {
|
|
1043
1044
|
switch (te) {
|
|
1044
1045
|
case "YY":
|
|
1045
|
-
return String(
|
|
1046
|
+
return String(I.$y).slice(-2);
|
|
1046
1047
|
case "YYYY":
|
|
1047
|
-
return
|
|
1048
|
+
return p.s(I.$y, 4, "0");
|
|
1048
1049
|
case "M":
|
|
1049
|
-
return
|
|
1050
|
+
return g + 1;
|
|
1050
1051
|
case "MM":
|
|
1051
|
-
return
|
|
1052
|
+
return p.s(g + 1, 2, "0");
|
|
1052
1053
|
case "MMM":
|
|
1053
|
-
return U(C.monthsShort,
|
|
1054
|
+
return U(C.monthsShort, g, k, 3);
|
|
1054
1055
|
case "MMMM":
|
|
1055
|
-
return U(k,
|
|
1056
|
+
return U(k, g);
|
|
1056
1057
|
case "D":
|
|
1057
|
-
return
|
|
1058
|
+
return I.$D;
|
|
1058
1059
|
case "DD":
|
|
1059
|
-
return
|
|
1060
|
+
return p.s(I.$D, 2, "0");
|
|
1060
1061
|
case "d":
|
|
1061
|
-
return String(
|
|
1062
|
+
return String(I.$W);
|
|
1062
1063
|
case "dd":
|
|
1063
|
-
return U(C.weekdaysMin,
|
|
1064
|
+
return U(C.weekdaysMin, I.$W, Y, 2);
|
|
1064
1065
|
case "ddd":
|
|
1065
|
-
return U(C.weekdaysShort,
|
|
1066
|
+
return U(C.weekdaysShort, I.$W, Y, 3);
|
|
1066
1067
|
case "dddd":
|
|
1067
|
-
return Y[
|
|
1068
|
+
return Y[I.$W];
|
|
1068
1069
|
case "H":
|
|
1069
|
-
return String(
|
|
1070
|
+
return String(B);
|
|
1070
1071
|
case "HH":
|
|
1071
|
-
return
|
|
1072
|
+
return p.s(B, 2, "0");
|
|
1072
1073
|
case "h":
|
|
1073
1074
|
return Z(1);
|
|
1074
1075
|
case "hh":
|
|
1075
1076
|
return Z(2);
|
|
1076
1077
|
case "a":
|
|
1077
|
-
return ee(
|
|
1078
|
+
return ee(B, y, !0);
|
|
1078
1079
|
case "A":
|
|
1079
|
-
return ee(
|
|
1080
|
+
return ee(B, y, !1);
|
|
1080
1081
|
case "m":
|
|
1081
|
-
return String(
|
|
1082
|
+
return String(y);
|
|
1082
1083
|
case "mm":
|
|
1083
|
-
return
|
|
1084
|
+
return p.s(y, 2, "0");
|
|
1084
1085
|
case "s":
|
|
1085
|
-
return String(
|
|
1086
|
+
return String(I.$s);
|
|
1086
1087
|
case "ss":
|
|
1087
|
-
return
|
|
1088
|
+
return p.s(I.$s, 2, "0");
|
|
1088
1089
|
case "SSS":
|
|
1089
|
-
return
|
|
1090
|
+
return p.s(I.$ms, 3, "0");
|
|
1090
1091
|
case "Z":
|
|
1091
1092
|
return O;
|
|
1092
1093
|
}
|
|
@@ -1095,11 +1096,11 @@ function li() {
|
|
|
1095
1096
|
}));
|
|
1096
1097
|
}, _.utcOffset = function() {
|
|
1097
1098
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1098
|
-
}, _.diff = function(S,
|
|
1099
|
-
var A, O = this,
|
|
1100
|
-
return
|
|
1099
|
+
}, _.diff = function(S, I, C) {
|
|
1100
|
+
var A, O = this, B = p.p(I), y = $(S), g = (y.utcOffset() - this.utcOffset()) * n, Y = this - y, k = /* @__PURE__ */ r(function() {
|
|
1101
|
+
return p.m(O, y);
|
|
1101
1102
|
}, "D");
|
|
1102
|
-
switch (
|
|
1103
|
+
switch (B) {
|
|
1103
1104
|
case T:
|
|
1104
1105
|
A = k() / 12;
|
|
1105
1106
|
break;
|
|
@@ -1110,10 +1111,10 @@ function li() {
|
|
|
1110
1111
|
A = k() / 3;
|
|
1111
1112
|
break;
|
|
1112
1113
|
case d:
|
|
1113
|
-
A = (Y -
|
|
1114
|
+
A = (Y - g) / 6048e5;
|
|
1114
1115
|
break;
|
|
1115
1116
|
case f:
|
|
1116
|
-
A = (Y -
|
|
1117
|
+
A = (Y - g) / 864e5;
|
|
1117
1118
|
break;
|
|
1118
1119
|
case u:
|
|
1119
1120
|
A = Y / i;
|
|
@@ -1127,17 +1128,17 @@ function li() {
|
|
|
1127
1128
|
default:
|
|
1128
1129
|
A = Y;
|
|
1129
1130
|
}
|
|
1130
|
-
return C ? A :
|
|
1131
|
+
return C ? A : p.a(A);
|
|
1131
1132
|
}, _.daysInMonth = function() {
|
|
1132
1133
|
return this.endOf(m).$D;
|
|
1133
1134
|
}, _.$locale = function() {
|
|
1134
1135
|
return w[this.$L];
|
|
1135
|
-
}, _.locale = function(S,
|
|
1136
|
+
}, _.locale = function(S, I) {
|
|
1136
1137
|
if (!S) return this.$L;
|
|
1137
|
-
var C = this.clone(), A = V(S,
|
|
1138
|
+
var C = this.clone(), A = V(S, I, !0);
|
|
1138
1139
|
return A && (C.$L = A), C;
|
|
1139
1140
|
}, _.clone = function() {
|
|
1140
|
-
return
|
|
1141
|
+
return p.w(this.$d, this);
|
|
1141
1142
|
}, _.toDate = function() {
|
|
1142
1143
|
return new Date(this.valueOf());
|
|
1143
1144
|
}, _.toJSON = function() {
|
|
@@ -1162,11 +1163,11 @@ function li() {
|
|
|
1162
1163
|
}
|
|
1163
1164
|
r(li, "requireDayjs_min");
|
|
1164
1165
|
var vt = li();
|
|
1165
|
-
const
|
|
1166
|
-
if (t === Ge.UNDEFINED || e === Ge.UNDEFINED ||
|
|
1166
|
+
const yt = /* @__PURE__ */ mn(vt), ii = "datetime", ai = "HH:mm:ss", Mt = "day", It = /* @__PURE__ */ new Set([z.RECENT_DAYS, z.EARLIER_DAYS]), kt = /* @__PURE__ */ new Set([z.GT, z.LT, z.GTE, z.LTE]), ri = /* @__PURE__ */ r((t, e, l) => {
|
|
1167
|
+
if (t === Ge.UNDEFINED || e === Ge.UNDEFINED || It.has(t) && It.has(e))
|
|
1167
1168
|
return l;
|
|
1168
|
-
if (
|
|
1169
|
-
if (
|
|
1169
|
+
if (kt.has(t)) {
|
|
1170
|
+
if (kt.has(e))
|
|
1170
1171
|
return l;
|
|
1171
1172
|
if (e === z.BETWEEN)
|
|
1172
1173
|
return [l, void 0];
|
|
@@ -1178,9 +1179,9 @@ const It = /* @__PURE__ */ dn(vt), ii = "datetime", ai = "HH:mm:ss", Vt = "day",
|
|
|
1178
1179
|
return;
|
|
1179
1180
|
const l = e[0];
|
|
1180
1181
|
let n = e[1];
|
|
1181
|
-
return n.startOf(
|
|
1182
|
+
return n.startOf(Mt).isSame(n) && (n = n.endOf(Mt)), [l.valueOf(), n.valueOf()];
|
|
1182
1183
|
}
|
|
1183
|
-
if (
|
|
1184
|
+
if (It.has(t))
|
|
1184
1185
|
return e;
|
|
1185
1186
|
if (t === z.BEFORE_TODAY)
|
|
1186
1187
|
return vt.isDayjs(e) ? e.format(ai) : void 0;
|
|
@@ -1188,7 +1189,7 @@ const It = /* @__PURE__ */ dn(vt), ii = "datetime", ai = "HH:mm:ss", Vt = "day",
|
|
|
1188
1189
|
return e.valueOf();
|
|
1189
1190
|
}
|
|
1190
1191
|
}, "TimestampConditionValueParser");
|
|
1191
|
-
function
|
|
1192
|
+
function hn(t) {
|
|
1192
1193
|
const e = G(6);
|
|
1193
1194
|
let l;
|
|
1194
1195
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [z.GT, z.LT, z.GTE, z.LTE, z.BETWEEN, z.TODAY, z.BEFORE_TODAY, z.TOMORROW, z.THIS_WEEK, z.NEXT_WEEK, z.LAST_WEEK, z.THIS_MONTH, z.LAST_MONTH, z.RECENT_DAYS, z.EARLIER_DAYS], e[0] = l) : l = e[0];
|
|
@@ -1233,8 +1234,8 @@ function mn(t) {
|
|
|
1233
1234
|
i = e[5];
|
|
1234
1235
|
return i;
|
|
1235
1236
|
}
|
|
1236
|
-
r(
|
|
1237
|
-
|
|
1237
|
+
r(hn, "DateTimeFilter");
|
|
1238
|
+
hn.displayName = "DateTimeFilter";
|
|
1238
1239
|
const at = class at {
|
|
1239
1240
|
constructor() {
|
|
1240
1241
|
this.registry = /* @__PURE__ */ new Map();
|
|
@@ -1341,14 +1342,14 @@ const at = class at {
|
|
|
1341
1342
|
r(at, "TypedComponentRegistry");
|
|
1342
1343
|
let it = at;
|
|
1343
1344
|
const oi = it.create([
|
|
1344
|
-
[Ql,
|
|
1345
|
-
[ql,
|
|
1346
|
-
[Zl,
|
|
1347
|
-
[ei,
|
|
1348
|
-
[ti,
|
|
1349
|
-
[ii,
|
|
1345
|
+
[Ql, cn],
|
|
1346
|
+
[ql, on],
|
|
1347
|
+
[Zl, un],
|
|
1348
|
+
[ei, fn],
|
|
1349
|
+
[ti, dn],
|
|
1350
|
+
[ii, hn]
|
|
1350
1351
|
]);
|
|
1351
|
-
function
|
|
1352
|
+
function Tn(t) {
|
|
1352
1353
|
const e = G(2), {
|
|
1353
1354
|
type: l,
|
|
1354
1355
|
ref: n
|
|
@@ -1356,9 +1357,9 @@ function hn(t) {
|
|
|
1356
1357
|
be(n, ci);
|
|
1357
1358
|
const i = `Unsupported filter type:[${l}]`;
|
|
1358
1359
|
let a;
|
|
1359
|
-
return e[0] !== i ? (a = /* @__PURE__ */ c(
|
|
1360
|
+
return e[0] !== i ? (a = /* @__PURE__ */ c(bn, { title: i, type: "warning", showIcon: !0 }), e[0] = i, e[1] = a) : a = e[1], a;
|
|
1360
1361
|
}
|
|
1361
|
-
r(
|
|
1362
|
+
r(Tn, "FallbackFilter");
|
|
1362
1363
|
function ci() {
|
|
1363
1364
|
return {
|
|
1364
1365
|
getValue() {
|
|
@@ -1368,7 +1369,7 @@ function ci() {
|
|
|
1368
1369
|
};
|
|
1369
1370
|
}
|
|
1370
1371
|
r(ci, "_temp$9");
|
|
1371
|
-
|
|
1372
|
+
Tn.displayName = "FallbackFilter";
|
|
1372
1373
|
const ui = {
|
|
1373
1374
|
flex: "auto",
|
|
1374
1375
|
width: "100%"
|
|
@@ -1376,7 +1377,7 @@ const ui = {
|
|
|
1376
1377
|
function Nt(t) {
|
|
1377
1378
|
const e = G(10);
|
|
1378
1379
|
let l;
|
|
1379
|
-
e[0] !== t.type ? (l = oi.get(t.type) ||
|
|
1380
|
+
e[0] !== t.type ? (l = oi.get(t.type) || Tn, e[0] = t.type, e[1] = l) : l = e[1];
|
|
1380
1381
|
const n = l;
|
|
1381
1382
|
let i;
|
|
1382
1383
|
e[2] !== t.value ? (i = {
|
|
@@ -1391,7 +1392,7 @@ function Nt(t) {
|
|
|
1391
1392
|
}, e[4] = t, e[5] = a, e[6] = s) : s = e[6];
|
|
1392
1393
|
const o = s;
|
|
1393
1394
|
let u;
|
|
1394
|
-
return e[7] !== n || e[8] !== o ? (u =
|
|
1395
|
+
return e[7] !== n || e[8] !== o ? (u = Qt.createElement(n, o), e[7] = n, e[8] = o, e[9] = u) : u = e[9], u;
|
|
1395
1396
|
}
|
|
1396
1397
|
r(Nt, "TypedFilter");
|
|
1397
1398
|
Nt.displayName = "TypedFilter";
|
|
@@ -1458,11 +1459,11 @@ const hi = {
|
|
|
1458
1459
|
saveButton: "保存",
|
|
1459
1460
|
cancelButton: "取消"
|
|
1460
1461
|
}
|
|
1461
|
-
},
|
|
1462
|
+
}, Ht = hi;
|
|
1462
1463
|
function Re() {
|
|
1463
|
-
const [t, e] = Q(
|
|
1464
|
+
const [t, e] = Q(Ht), l = Xt(
|
|
1464
1465
|
(n) => {
|
|
1465
|
-
e(Ti(
|
|
1466
|
+
e(Ti(Ht, n));
|
|
1466
1467
|
},
|
|
1467
1468
|
[e]
|
|
1468
1469
|
);
|
|
@@ -1483,15 +1484,15 @@ r(Ti, "mergeWithAssign");
|
|
|
1483
1484
|
const Ei = {
|
|
1484
1485
|
gutter: [8, 8],
|
|
1485
1486
|
wrap: !0
|
|
1486
|
-
},
|
|
1487
|
+
}, En = {
|
|
1487
1488
|
xxl: 6,
|
|
1488
1489
|
xl: 8,
|
|
1489
1490
|
lg: 12,
|
|
1490
1491
|
md: 12,
|
|
1491
1492
|
sm: 24,
|
|
1492
1493
|
xs: 24
|
|
1493
|
-
}, _i =
|
|
1494
|
-
function
|
|
1494
|
+
}, _i = En;
|
|
1495
|
+
function _n(t) {
|
|
1495
1496
|
const e = G(44), {
|
|
1496
1497
|
ref: l,
|
|
1497
1498
|
row: n,
|
|
@@ -1502,27 +1503,27 @@ function En(t) {
|
|
|
1502
1503
|
actions: u,
|
|
1503
1504
|
resetButton: f,
|
|
1504
1505
|
searchButton: d
|
|
1505
|
-
} = t, m = n === void 0 ? Ei : n, h = i === void 0 ?
|
|
1506
|
+
} = t, m = n === void 0 ? Ei : n, h = i === void 0 ? En : i, T = a === void 0 ? _i : a, E = Un(), {
|
|
1506
1507
|
locale: v
|
|
1507
1508
|
} = Re();
|
|
1508
|
-
let
|
|
1509
|
-
e[0] !== E ? (
|
|
1510
|
-
const
|
|
1511
|
-
return lt(...
|
|
1512
|
-
}, "t3"), e[0] = E, e[1] =
|
|
1513
|
-
const D =
|
|
1509
|
+
let L;
|
|
1510
|
+
e[0] !== E ? (L = /* @__PURE__ */ r(() => {
|
|
1511
|
+
const y = Array.from(E.values()).map(Si).filter(Boolean);
|
|
1512
|
+
return lt(...y);
|
|
1513
|
+
}, "t3"), e[0] = E, e[1] = L) : L = e[1];
|
|
1514
|
+
const D = L;
|
|
1514
1515
|
let b;
|
|
1515
1516
|
e[2] !== D || e[3] !== o ? (b = /* @__PURE__ */ r(() => {
|
|
1516
1517
|
if (!o)
|
|
1517
1518
|
return;
|
|
1518
|
-
const
|
|
1519
|
-
o(
|
|
1519
|
+
const y = D();
|
|
1520
|
+
o(y);
|
|
1520
1521
|
}, "t4"), e[2] = D, e[3] = o, e[4] = b) : b = e[4];
|
|
1521
1522
|
const R = b;
|
|
1522
1523
|
let P;
|
|
1523
1524
|
e[5] !== E ? (P = /* @__PURE__ */ r(() => {
|
|
1524
|
-
for (const
|
|
1525
|
-
|
|
1525
|
+
for (const y of E.values())
|
|
1526
|
+
y.reset();
|
|
1526
1527
|
}, "t5"), e[5] = E, e[6] = P) : P = e[6];
|
|
1527
1528
|
const F = P;
|
|
1528
1529
|
let w;
|
|
@@ -1539,14 +1540,14 @@ function En(t) {
|
|
|
1539
1540
|
maxHeight: "128px",
|
|
1540
1541
|
overflowY: "auto"
|
|
1541
1542
|
}, e[12] = $) : $ = e[12];
|
|
1542
|
-
let
|
|
1543
|
+
let p;
|
|
1543
1544
|
if (e[13] !== h || e[14] !== E || e[15] !== s) {
|
|
1544
|
-
let
|
|
1545
|
-
e[17] !== h || e[18] !== E ? (
|
|
1545
|
+
let y;
|
|
1546
|
+
e[17] !== h || e[18] !== E ? (y = /* @__PURE__ */ r((g) => /* @__PURE__ */ Ot(_t, { ...h, key: g.key }, /* @__PURE__ */ Ot(mi, { ...g, key: g.key, ref: E.register(g.key) })), "t102"), e[17] = h, e[18] = E, e[19] = y) : y = e[19], p = s.map(y), e[13] = h, e[14] = E, e[15] = s, e[16] = p;
|
|
1546
1547
|
} else
|
|
1547
|
-
|
|
1548
|
+
p = e[16];
|
|
1548
1549
|
let M;
|
|
1549
|
-
e[20] !== m || e[21] !==
|
|
1550
|
+
e[20] !== m || e[21] !== p ? (M = /* @__PURE__ */ c(Et, { style: $, ...m, children: p }), e[20] = m, e[21] = p, e[22] = M) : M = e[22];
|
|
1550
1551
|
let W;
|
|
1551
1552
|
e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = {
|
|
1552
1553
|
marginTop: "16px"
|
|
@@ -1559,9 +1560,9 @@ function En(t) {
|
|
|
1559
1560
|
e[25] !== F || e[26] !== V || e[27] !== H ? (_ = H && /* @__PURE__ */ c(me, { icon: /* @__PURE__ */ c(Yn, {}), onClick: F, ...V, children: V?.children || "Reset" }), e[25] = F, e[26] = V, e[27] = H, e[28] = _) : _ = e[28];
|
|
1560
1561
|
let S;
|
|
1561
1562
|
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ c(Wn, {}), e[29] = S) : S = e[29];
|
|
1562
|
-
const
|
|
1563
|
+
const I = d?.children || v.filterPanel?.searchButtonTitle || "Search";
|
|
1563
1564
|
let C;
|
|
1564
|
-
e[30] !== R || e[31] !== d || e[32] !==
|
|
1565
|
+
e[30] !== R || e[31] !== d || e[32] !== I ? (C = /* @__PURE__ */ c(me, { type: "primary", icon: S, onClick: R, ...d, children: I }), e[30] = R, e[31] = d, e[32] = I, e[33] = C) : C = e[33];
|
|
1565
1566
|
let A;
|
|
1566
1567
|
e[34] !== u || e[35] !== _ || e[36] !== C ? (A = /* @__PURE__ */ J(Se.Compact, { children: [
|
|
1567
1568
|
u,
|
|
@@ -1569,14 +1570,14 @@ function En(t) {
|
|
|
1569
1570
|
C
|
|
1570
1571
|
] }), e[34] = u, e[35] = _, e[36] = C, e[37] = A) : A = e[37];
|
|
1571
1572
|
let O;
|
|
1572
|
-
e[38] !== T || e[39] !== A ? (O = /* @__PURE__ */ c(Et, { justify: "end", style: W, children: /* @__PURE__ */ c(_t, {
|
|
1573
|
-
let
|
|
1574
|
-
return e[41] !== M || e[42] !== O ? (
|
|
1573
|
+
e[38] !== T || e[39] !== A ? (O = /* @__PURE__ */ c(Et, { justify: "end", style: W, children: /* @__PURE__ */ c(_t, { style: N, ...T, children: A }) }), e[38] = T, e[39] = A, e[40] = O) : O = e[40];
|
|
1574
|
+
let B;
|
|
1575
|
+
return e[41] !== M || e[42] !== O ? (B = /* @__PURE__ */ J(Te, { children: [
|
|
1575
1576
|
M,
|
|
1576
1577
|
O
|
|
1577
|
-
] }), e[41] = M, e[42] = O, e[43] =
|
|
1578
|
+
] }), e[41] = M, e[42] = O, e[43] = B) : B = e[43], B;
|
|
1578
1579
|
}
|
|
1579
|
-
r(
|
|
1580
|
+
r(_n, "FilterPanel");
|
|
1580
1581
|
function Si(t) {
|
|
1581
1582
|
return t?.getValue()?.condition;
|
|
1582
1583
|
}
|
|
@@ -1600,13 +1601,13 @@ function Ci(t) {
|
|
|
1600
1601
|
T(!1);
|
|
1601
1602
|
return;
|
|
1602
1603
|
}
|
|
1603
|
-
const S = _.map(vi),
|
|
1604
|
-
m(
|
|
1604
|
+
const S = _.map(vi), I = [...d, ...S];
|
|
1605
|
+
m(I), f && f(I), T(!1);
|
|
1605
1606
|
}, "t0"), e[0] = d, e[1] = f, e[2] = v) : v = e[2];
|
|
1606
|
-
const
|
|
1607
|
+
const L = v;
|
|
1607
1608
|
let D;
|
|
1608
1609
|
e[3] !== d || e[4] !== f ? (D = /* @__PURE__ */ r((_) => {
|
|
1609
|
-
const S = d.filter((
|
|
1610
|
+
const S = d.filter((I) => I.key !== _);
|
|
1610
1611
|
m(S), f && f(S);
|
|
1611
1612
|
}, "t1"), e[3] = d, e[4] = f, e[5] = D) : D = e[5];
|
|
1612
1613
|
const b = D;
|
|
@@ -1621,22 +1622,22 @@ function Ci(t) {
|
|
|
1621
1622
|
R = e[8];
|
|
1622
1623
|
const P = R;
|
|
1623
1624
|
let F, w;
|
|
1624
|
-
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ r(() => T(!0), "t3"), w = /* @__PURE__ */ c(
|
|
1625
|
+
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ r(() => T(!0), "t3"), w = /* @__PURE__ */ c(Zt, {}), e[11] = F, e[12] = w) : (F = e[11], w = e[12]);
|
|
1625
1626
|
const H = E.filterPanel?.addFilterTitle || "Add Filter";
|
|
1626
1627
|
let x;
|
|
1627
1628
|
e[13] !== H ? (x = /* @__PURE__ */ c(me, { onClick: F, icon: w, children: H }), e[13] = H, e[14] = x) : x = e[14];
|
|
1628
1629
|
let V;
|
|
1629
|
-
e[15] !== i || e[16] !== P || e[17] !== u || e[18] !== l || e[19] !== o || e[20] !== n || e[21] !== x ? (V = /* @__PURE__ */ c(
|
|
1630
|
+
e[15] !== i || e[16] !== P || e[17] !== u || e[18] !== l || e[19] !== o || e[20] !== n || e[21] !== x ? (V = /* @__PURE__ */ c(_n, { ref: l, filters: P, onSearch: u, actions: x, resetButton: o, row: n, col: i }), e[15] = i, e[16] = P, e[17] = u, e[18] = l, e[19] = o, e[20] = n, e[21] = x, e[22] = V) : V = e[22];
|
|
1630
1631
|
const $ = E.filterPanel?.addFilterTitle || "Add Filter";
|
|
1631
|
-
let
|
|
1632
|
-
e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1632
|
+
let p;
|
|
1633
|
+
e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ r(() => T(!1), "t9"), e[23] = p) : p = e[23];
|
|
1633
1634
|
let M;
|
|
1634
1635
|
e[24] !== d || e[25] !== a ? (M = {
|
|
1635
1636
|
filters: a,
|
|
1636
1637
|
activeFilters: d
|
|
1637
1638
|
}, e[24] = d, e[25] = a, e[26] = M) : M = e[26];
|
|
1638
1639
|
let W;
|
|
1639
|
-
e[27] !==
|
|
1640
|
+
e[27] !== L || e[28] !== h || e[29] !== M || e[30] !== $ ? (W = /* @__PURE__ */ c(Ul, { title: $, open: h, onCancel: p, onSave: L, availableFilters: M }), e[27] = L, e[28] = h, e[29] = M, e[30] = $, e[31] = W) : W = e[31];
|
|
1640
1641
|
let N;
|
|
1641
1642
|
return e[32] !== W || e[33] !== V ? (N = /* @__PURE__ */ J(Te, { children: [
|
|
1642
1643
|
V,
|
|
@@ -1654,10 +1655,10 @@ function vi(t) {
|
|
|
1654
1655
|
};
|
|
1655
1656
|
}
|
|
1656
1657
|
r(vi, "_temp$7");
|
|
1657
|
-
const
|
|
1658
|
+
const yi = "REFRESH_DATA_EVENTS", Ii = new ol(yi), He = new cl({ delegate: Ii });
|
|
1658
1659
|
function Rt() {
|
|
1659
1660
|
const t = /* @__PURE__ */ r(() => He.emit("REFRESH"), "publish"), e = /* @__PURE__ */ r((l) => He.on(l), "subscribe");
|
|
1660
|
-
return
|
|
1661
|
+
return ye(() => () => {
|
|
1661
1662
|
He.handlers.forEach((l) => {
|
|
1662
1663
|
He.off(l.name);
|
|
1663
1664
|
});
|
|
@@ -1668,50 +1669,50 @@ function Rt() {
|
|
|
1668
1669
|
};
|
|
1669
1670
|
}
|
|
1670
1671
|
r(Rt, "useRefreshDataEventBus");
|
|
1671
|
-
const
|
|
1672
|
-
function
|
|
1672
|
+
const Sn = xe();
|
|
1673
|
+
function Cn({
|
|
1673
1674
|
defaultPage: t = 1,
|
|
1674
1675
|
defaultPageSize: e = 10,
|
|
1675
1676
|
defaultTableSize: l = "middle",
|
|
1676
|
-
defaultCondition: n =
|
|
1677
|
+
defaultCondition: n = Sn,
|
|
1677
1678
|
defaultSorter: i = [],
|
|
1678
1679
|
...a
|
|
1679
1680
|
}) {
|
|
1680
|
-
const { defaultColumns: s, defaultActiveFilters: o } = a, [u, f] = Q(s), [d, m] = Q(o), [h, T] = Q(t), [E, v] = Q(e), [
|
|
1681
|
+
const { defaultColumns: s, defaultActiveFilters: o } = a, [u, f] = Q(s), [d, m] = Q(o), [h, T] = Q(t), [E, v] = Q(e), [L, D] = Q(l), [b, R] = Q(i), [P, F] = Q(n);
|
|
1681
1682
|
return {
|
|
1682
1683
|
columns: u,
|
|
1683
|
-
setColumns: /* @__PURE__ */ r((
|
|
1684
|
-
f(
|
|
1684
|
+
setColumns: /* @__PURE__ */ r((p) => {
|
|
1685
|
+
f(p.map((M) => ({ ...M })));
|
|
1685
1686
|
}, "setColumnsFn"),
|
|
1686
1687
|
activeFilters: d,
|
|
1687
|
-
setActiveFilters: /* @__PURE__ */ r((
|
|
1688
|
-
m(
|
|
1688
|
+
setActiveFilters: /* @__PURE__ */ r((p) => {
|
|
1689
|
+
m(p.map((M) => ({ ...M })));
|
|
1689
1690
|
}, "setActiveFiltersFn"),
|
|
1690
1691
|
page: h,
|
|
1691
1692
|
setPage: T,
|
|
1692
1693
|
pageSize: E,
|
|
1693
1694
|
setPageSize: v,
|
|
1694
1695
|
condition: P,
|
|
1695
|
-
setCondition: /* @__PURE__ */ r((
|
|
1696
|
-
F({ ...
|
|
1696
|
+
setCondition: /* @__PURE__ */ r((p) => {
|
|
1697
|
+
F({ ...p });
|
|
1697
1698
|
}, "setConditionFn"),
|
|
1698
1699
|
sorter: b,
|
|
1699
|
-
setSorter: /* @__PURE__ */ r((
|
|
1700
|
-
R(
|
|
1700
|
+
setSorter: /* @__PURE__ */ r((p) => {
|
|
1701
|
+
R(p.map((M) => ({ ...M })));
|
|
1701
1702
|
}, "setSorterFn"),
|
|
1702
|
-
tableSize:
|
|
1703
|
+
tableSize: L,
|
|
1703
1704
|
setTableSize: D,
|
|
1704
1705
|
reset: /* @__PURE__ */ r(() => {
|
|
1705
1706
|
f(s), m(o), T(t), v(e), F(n), R(i), D(l);
|
|
1706
1707
|
}, "resetFn")
|
|
1707
1708
|
};
|
|
1708
1709
|
}
|
|
1709
|
-
r(
|
|
1710
|
+
r(Cn, "useActiveViewState");
|
|
1710
1711
|
const Ni = "action";
|
|
1711
|
-
function
|
|
1712
|
+
function Ut(t) {
|
|
1712
1713
|
return typeof t.data == "object" && typeof t.data.value == "string" && typeof t.data.record == "object" && typeof t.data.index == "number" && (t.attributes === void 0 || typeof t.attributes == "object");
|
|
1713
1714
|
}
|
|
1714
|
-
r(
|
|
1715
|
+
r(Ut, "isActionCellProps");
|
|
1715
1716
|
function Be(t) {
|
|
1716
1717
|
const e = G(8), {
|
|
1717
1718
|
data: l,
|
|
@@ -1730,7 +1731,7 @@ function Be(t) {
|
|
|
1730
1731
|
}
|
|
1731
1732
|
r(Be, "ActionCell");
|
|
1732
1733
|
const Ai = "actions";
|
|
1733
|
-
function
|
|
1734
|
+
function pi(t) {
|
|
1734
1735
|
const {
|
|
1735
1736
|
data: e
|
|
1736
1737
|
} = t;
|
|
@@ -1742,7 +1743,7 @@ function Li(t) {
|
|
|
1742
1743
|
key: i,
|
|
1743
1744
|
label: /* @__PURE__ */ c(Te, { children: n })
|
|
1744
1745
|
}))), l.length > 0 ? /* @__PURE__ */ J(Se, { children: [
|
|
1745
|
-
|
|
1746
|
+
Ut(e.value.primaryAction) ? /* @__PURE__ */ c(Be, { ...e.value.primaryAction }) : /* @__PURE__ */ c(Te, { children: e.value.primaryAction(e.record) }),
|
|
1746
1747
|
/* @__PURE__ */ c(Fe, { menu: {
|
|
1747
1748
|
items: l
|
|
1748
1749
|
}, children: /* @__PURE__ */ c(me, { type: "link", style: {
|
|
@@ -1751,17 +1752,17 @@ function Li(t) {
|
|
|
1751
1752
|
e.value.moreActionTitle || "More",
|
|
1752
1753
|
/* @__PURE__ */ c(ge, {})
|
|
1753
1754
|
] }) }) })
|
|
1754
|
-
] }) : /* @__PURE__ */ c(Te, { children:
|
|
1755
|
+
] }) : /* @__PURE__ */ c(Te, { children: Ut(e.value.primaryAction) ? /* @__PURE__ */ c(Be, { ...e.value.primaryAction }) : /* @__PURE__ */ c(Te, { children: e.value.primaryAction(e.record) }) });
|
|
1755
1756
|
}
|
|
1756
|
-
r(
|
|
1757
|
-
function
|
|
1758
|
-
return
|
|
1757
|
+
r(pi, "renderActions");
|
|
1758
|
+
function vn(t) {
|
|
1759
|
+
return pi(t);
|
|
1759
1760
|
}
|
|
1760
|
-
r(
|
|
1761
|
-
function
|
|
1762
|
-
return
|
|
1761
|
+
r(vn, "ActionsCell");
|
|
1762
|
+
function Li(t) {
|
|
1763
|
+
return yt.isDayjs(t) ? t : yt(t);
|
|
1763
1764
|
}
|
|
1764
|
-
r(
|
|
1765
|
+
r(Li, "parseDayjs");
|
|
1765
1766
|
function bi(t) {
|
|
1766
1767
|
return t == null;
|
|
1767
1768
|
}
|
|
@@ -1794,9 +1795,9 @@ function Di(t) {
|
|
|
1794
1795
|
return e[7] !== a || e[8] !== l.value ? (s = /* @__PURE__ */ c(dt, { ...a, children: l.value }), e[7] = a, e[8] = l.value, e[9] = s) : s = e[9], s;
|
|
1795
1796
|
}
|
|
1796
1797
|
r(Di, "AvatarCell");
|
|
1797
|
-
var Je = { exports: {} }, wi = Je.exports,
|
|
1798
|
+
var Je = { exports: {} }, wi = Je.exports, zt;
|
|
1798
1799
|
function Fi() {
|
|
1799
|
-
return
|
|
1800
|
+
return zt || (zt = 1, (function(t, e) {
|
|
1800
1801
|
(function(l, n) {
|
|
1801
1802
|
t.exports = n();
|
|
1802
1803
|
})(wi, (function() {
|
|
@@ -1812,10 +1813,10 @@ function Fi() {
|
|
|
1812
1813
|
}
|
|
1813
1814
|
r(Fi, "requireCalendar");
|
|
1814
1815
|
var Pi = Fi();
|
|
1815
|
-
const $i = /* @__PURE__ */
|
|
1816
|
+
const $i = /* @__PURE__ */ mn(Pi), {
|
|
1816
1817
|
Text: Xe
|
|
1817
1818
|
} = je, xi = "datetime", et = "YYYY-MM-DD HH:mm:ss";
|
|
1818
|
-
function
|
|
1819
|
+
function yn(t) {
|
|
1819
1820
|
const e = G(10), {
|
|
1820
1821
|
data: l,
|
|
1821
1822
|
attributes: n
|
|
@@ -1832,7 +1833,7 @@ function vn(t) {
|
|
|
1832
1833
|
o = /* @__PURE__ */ c(Xe, { ...m, children: "-" });
|
|
1833
1834
|
break e;
|
|
1834
1835
|
}
|
|
1835
|
-
const T =
|
|
1836
|
+
const T = Li(l.value);
|
|
1836
1837
|
if (!T.isValid()) {
|
|
1837
1838
|
o = /* @__PURE__ */ c(Xe, { ...m, children: "-" });
|
|
1838
1839
|
break e;
|
|
@@ -1851,8 +1852,8 @@ function vn(t) {
|
|
|
1851
1852
|
let u;
|
|
1852
1853
|
return e[6] !== i || e[7] !== a || e[8] !== s ? (u = /* @__PURE__ */ c(i, { ...a, children: s }), e[6] = i, e[7] = a, e[8] = s, e[9] = u) : u = e[9], u;
|
|
1853
1854
|
}
|
|
1854
|
-
r(
|
|
1855
|
-
|
|
1855
|
+
r(yn, "DateTimeCell");
|
|
1856
|
+
yt.extend($i);
|
|
1856
1857
|
const Vi = "calendar-time", Mi = {
|
|
1857
1858
|
sameDay: "[今天] HH:mm",
|
|
1858
1859
|
nextDay: "[明天] HH:mm",
|
|
@@ -1884,7 +1885,7 @@ function ki(t) {
|
|
|
1884
1885
|
...o
|
|
1885
1886
|
}, e[7] = d, e[8] = o, e[9] = m) : m = e[9];
|
|
1886
1887
|
let h;
|
|
1887
|
-
return e[10] !== l || e[11] !== m ? (h = /* @__PURE__ */ c(
|
|
1888
|
+
return e[10] !== l || e[11] !== m ? (h = /* @__PURE__ */ c(yn, { data: l, attributes: m }), e[10] = l, e[11] = m, e[12] = h) : h = e[12], h;
|
|
1888
1889
|
}
|
|
1889
1890
|
r(ki, "CalendarTimeCell");
|
|
1890
1891
|
const {
|
|
@@ -1897,7 +1898,7 @@ function In(t) {
|
|
|
1897
1898
|
}
|
|
1898
1899
|
r(In, "TextCell");
|
|
1899
1900
|
const zi = "tag";
|
|
1900
|
-
function
|
|
1901
|
+
function Nn(t) {
|
|
1901
1902
|
const e = G(3), {
|
|
1902
1903
|
data: l,
|
|
1903
1904
|
attributes: n
|
|
@@ -1906,9 +1907,9 @@ function yn(t) {
|
|
|
1906
1907
|
return null;
|
|
1907
1908
|
const i = n?.children ?? l.value;
|
|
1908
1909
|
let a;
|
|
1909
|
-
return e[0] !== n || e[1] !== i ? (a = /* @__PURE__ */ c(
|
|
1910
|
+
return e[0] !== n || e[1] !== i ? (a = /* @__PURE__ */ c(pt, { ...n, children: i }), e[0] = n, e[1] = i, e[2] = a) : a = e[2], a;
|
|
1910
1911
|
}
|
|
1911
|
-
r(
|
|
1912
|
+
r(Nn, "TagCell");
|
|
1912
1913
|
const gi = "tags";
|
|
1913
1914
|
function Bi(t) {
|
|
1914
1915
|
const e = G(14), {
|
|
@@ -1926,7 +1927,7 @@ function Bi(t) {
|
|
|
1926
1927
|
let f;
|
|
1927
1928
|
e[7] !== s || e[8] !== n.index || e[9] !== n.record ? (f = /* @__PURE__ */ r((d, m) => {
|
|
1928
1929
|
const h = s[d];
|
|
1929
|
-
return /* @__PURE__ */ c(
|
|
1930
|
+
return /* @__PURE__ */ c(Nn, { data: {
|
|
1930
1931
|
value: d,
|
|
1931
1932
|
record: n.record,
|
|
1932
1933
|
index: n.index
|
|
@@ -1973,7 +1974,7 @@ function Ki(t) {
|
|
|
1973
1974
|
e[3] !== l.value[0] || e[4] !== o ? (u = /* @__PURE__ */ c(St, { src: l.value[0], ...o }), e[3] = l.value[0], e[4] = o, e[5] = u) : u = e[5];
|
|
1974
1975
|
const f = u;
|
|
1975
1976
|
let d;
|
|
1976
|
-
e[6] !== l.value.length || e[7] !== s || e[8] !== f ? (d = s ? /* @__PURE__ */ c(
|
|
1977
|
+
e[6] !== l.value.length || e[7] !== s || e[8] !== f ? (d = s ? /* @__PURE__ */ c(Rn, { count: l.value.length, children: f }) : f, e[6] = l.value.length, e[7] = s, e[8] = f, e[9] = d) : d = e[9];
|
|
1977
1978
|
let m;
|
|
1978
1979
|
return e[10] !== a || e[11] !== l.value || e[12] !== d ? (m = /* @__PURE__ */ c(St.PreviewGroup, { items: l.value, ...a, children: d }), e[10] = a, e[11] = l.value, e[12] = d, e[13] = m) : m = e[13], m;
|
|
1979
1980
|
}
|
|
@@ -2059,11 +2060,11 @@ function ia(t) {
|
|
|
2059
2060
|
r(ia, "CurrencyCell");
|
|
2060
2061
|
const aa = it.create([
|
|
2061
2062
|
[Ni, Be],
|
|
2062
|
-
[Ai,
|
|
2063
|
+
[Ai, vn],
|
|
2063
2064
|
[Ui, In],
|
|
2064
|
-
[zi,
|
|
2065
|
+
[zi, Nn],
|
|
2065
2066
|
[gi, Bi],
|
|
2066
|
-
[xi,
|
|
2067
|
+
[xi, yn],
|
|
2067
2068
|
[Vi, ki],
|
|
2068
2069
|
[Yi, Wi],
|
|
2069
2070
|
[Gi, Ki],
|
|
@@ -2080,14 +2081,14 @@ function ra(t, e) {
|
|
|
2080
2081
|
record: i,
|
|
2081
2082
|
index: a
|
|
2082
2083
|
};
|
|
2083
|
-
return
|
|
2084
|
+
return Qt.createElement(l, {
|
|
2084
2085
|
attributes: e,
|
|
2085
2086
|
data: s
|
|
2086
2087
|
});
|
|
2087
2088
|
};
|
|
2088
2089
|
}
|
|
2089
2090
|
r(ra, "typedCellRender");
|
|
2090
|
-
function
|
|
2091
|
+
function gt(t) {
|
|
2091
2092
|
const e = G(11);
|
|
2092
2093
|
let l;
|
|
2093
2094
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
|
|
@@ -2097,16 +2098,16 @@ function zt(t) {
|
|
|
2097
2098
|
let i;
|
|
2098
2099
|
e[1] !== t ? (i = /* @__PURE__ */ r((u) => t.onVisibleChange(!u.target.checked), "t2"), e[1] = t, e[2] = i) : i = e[2];
|
|
2099
2100
|
let a;
|
|
2100
|
-
e[3] !== t.columnDefinition.label || e[4] !== t.columnDefinition.primaryKey || e[5] !== n || e[6] !== i ? (a = /* @__PURE__ */ c(
|
|
2101
|
+
e[3] !== t.columnDefinition.label || e[4] !== t.columnDefinition.primaryKey || e[5] !== n || e[6] !== i ? (a = /* @__PURE__ */ c(qt, { checked: n, disabled: t.columnDefinition.primaryKey, onChange: i, children: t.columnDefinition.label }), e[3] = t.columnDefinition.label, e[4] = t.columnDefinition.primaryKey, e[5] = n, e[6] = i, e[7] = a) : a = e[7];
|
|
2101
2102
|
let s;
|
|
2102
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ c(
|
|
2103
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ c(Jt, {}), e[8] = s) : s = e[8];
|
|
2103
2104
|
let o;
|
|
2104
2105
|
return e[9] !== a ? (o = /* @__PURE__ */ J(Ae, { align: "center", justify: "space-between", style: l, children: [
|
|
2105
2106
|
a,
|
|
2106
2107
|
s
|
|
2107
2108
|
] }), e[9] = a, e[10] = o) : o = e[10], o;
|
|
2108
2109
|
}
|
|
2109
|
-
r(
|
|
2110
|
+
r(gt, "TableFieldItem");
|
|
2110
2111
|
const sa = "_item_59wbi_1", oa = "_dragging_59wbi_9", ca = "_tips_59wbi_31", ua = "_groupTitle_59wbi_38", we = {
|
|
2111
2112
|
item: sa,
|
|
2112
2113
|
dragging: oa,
|
|
@@ -2124,20 +2125,20 @@ function fa(t) {
|
|
|
2124
2125
|
let m, h;
|
|
2125
2126
|
e[0] !== i ? (m = /* @__PURE__ */ r(() => {
|
|
2126
2127
|
d(i);
|
|
2127
|
-
}, "t0"), h = [i], e[0] = i, e[1] = m, e[2] = h) : (m = e[1], h = e[2]),
|
|
2128
|
-
const T = f.map(_a), E = T.filter(Ea), v = T.filter(Ta),
|
|
2129
|
-
const Y = T.map((k, K) => K ===
|
|
2128
|
+
}, "t0"), h = [i], e[0] = i, e[1] = m, e[2] = h) : (m = e[1], h = e[2]), ye(m, h);
|
|
2129
|
+
const T = f.map(_a), E = T.filter(Ea), v = T.filter(Ta), L = T.filter(ha), D = /* @__PURE__ */ r((y, g) => {
|
|
2130
|
+
const Y = T.map((k, K) => K === y ? {
|
|
2130
2131
|
...k,
|
|
2131
|
-
hidden:
|
|
2132
|
+
hidden: g
|
|
2132
2133
|
} : k);
|
|
2133
2134
|
d(Y), a?.(Y);
|
|
2134
2135
|
}, "handleVisibilityChange");
|
|
2135
2136
|
let b;
|
|
2136
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ r((
|
|
2137
|
-
const k =
|
|
2138
|
-
k.style.backgroundColor = "#F5F5F5", k.style.transform = "scale(1.02)", k.style.opacity = "1.0", k.style.boxShadow = "0 2px 8px rgba(0, 0, 0, 0.15)", k.style.position = "absolute", k.style.top = "-1000px", k.style.width = `${
|
|
2137
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ r((y, g, Y) => {
|
|
2138
|
+
const k = y.currentTarget.cloneNode(!0);
|
|
2139
|
+
k.style.backgroundColor = "#F5F5F5", k.style.transform = "scale(1.02)", k.style.opacity = "1.0", k.style.boxShadow = "0 2px 8px rgba(0, 0, 0, 0.15)", k.style.position = "absolute", k.style.top = "-1000px", k.style.width = `${y.currentTarget.clientWidth}px`, k.style.height = `${y.currentTarget.clientHeight}px`, document.body.appendChild(k), y.dataTransfer.setDragImage(k, y.nativeEvent.offsetX, y.nativeEvent.offsetY), setTimeout(() => document.body.removeChild(k), 0), y.dataTransfer.effectAllowed = "move", u({
|
|
2139
2140
|
index: Y,
|
|
2140
|
-
group:
|
|
2141
|
+
group: g
|
|
2141
2142
|
});
|
|
2142
2143
|
}, "t2"), e[3] = b) : b = e[3];
|
|
2143
2144
|
const R = b, P = ma;
|
|
@@ -2145,17 +2146,17 @@ function fa(t) {
|
|
|
2145
2146
|
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ r(() => {
|
|
2146
2147
|
u(null);
|
|
2147
2148
|
}, "t3"), e[4] = F) : F = e[4];
|
|
2148
|
-
const w = F, H = /* @__PURE__ */ r((
|
|
2149
|
-
if (!o || o.index === Y ||
|
|
2149
|
+
const w = F, H = /* @__PURE__ */ r((y, g, Y) => {
|
|
2150
|
+
if (!o || o.index === Y || g === "fixed" && E.length >= 3)
|
|
2150
2151
|
return;
|
|
2151
|
-
const k =
|
|
2152
|
-
U.fixed =
|
|
2153
|
-
}, "handleDrop"), x = /* @__PURE__ */ r((
|
|
2154
|
-
const Y = n.find((k) => k.name ===
|
|
2155
|
-
return Y ? /* @__PURE__ */ c("div", { className: `${we.item} ${o?.index ===
|
|
2156
|
-
}, "renderDraggableItem"), V = /* @__PURE__ */ r((
|
|
2157
|
-
const
|
|
2158
|
-
return
|
|
2152
|
+
const k = g === "fixed" ? Y + 1 : Y, K = [...T], [U] = K.splice(o.index, 1);
|
|
2153
|
+
U.fixed = g === "fixed", K.splice(k, 0, U), K.forEach(da), d(K), a?.(K);
|
|
2154
|
+
}, "handleDrop"), x = /* @__PURE__ */ r((y, g) => {
|
|
2155
|
+
const Y = n.find((k) => k.name === y.name);
|
|
2156
|
+
return Y ? /* @__PURE__ */ c("div", { className: `${we.item} ${o?.index === y.index ? we.dragging : ""}`, draggable: !Y.primaryKey, onDragStart: /* @__PURE__ */ r((k) => R(k, g, y.index), "onDragStart"), onDragOver: P, onDragEnd: w, onDrop: /* @__PURE__ */ r((k) => H(k, g, y.index), "onDrop"), children: /* @__PURE__ */ c(gt, { columnDefinition: Y, fixed: y.fixed || !1, hidden: y.hidden, onVisibleChange: /* @__PURE__ */ r((k) => D(y.index, k), "onVisibleChange") }) }, Y.name) : /* @__PURE__ */ c(Te, {});
|
|
2157
|
+
}, "renderDraggableItem"), V = /* @__PURE__ */ r((y) => {
|
|
2158
|
+
const g = n.find((Y) => Y.name === y.name);
|
|
2159
|
+
return g ? /* @__PURE__ */ c("div", { className: we.item, children: /* @__PURE__ */ c(gt, { columnDefinition: g, fixed: y.fixed || !1, hidden: y.hidden, onVisibleChange: /* @__PURE__ */ r((Y) => D(y.index, Y), "onVisibleChange") }) }, g.name) : /* @__PURE__ */ c(Te, {});
|
|
2159
2160
|
}, "renderStaticItem");
|
|
2160
2161
|
let $;
|
|
2161
2162
|
e[5] !== t.initialColumns ? ($ = /* @__PURE__ */ r(() => ({
|
|
@@ -2163,29 +2164,29 @@ function fa(t) {
|
|
|
2163
2164
|
d(t.initialColumns);
|
|
2164
2165
|
}, "reset")
|
|
2165
2166
|
}), "t4"), e[5] = t.initialColumns, e[6] = $) : $ = e[6], be(l, $);
|
|
2166
|
-
const
|
|
2167
|
+
const p = Se, M = 0, W = "vertical";
|
|
2167
2168
|
let N;
|
|
2168
2169
|
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = {
|
|
2169
2170
|
display: "flex"
|
|
2170
2171
|
}, e[7] = N) : N = e[7];
|
|
2171
2172
|
let _;
|
|
2172
2173
|
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ c("div", { className: we.groupTitle, children: "已显示字段" }), e[8] = _) : _ = e[8];
|
|
2173
|
-
const S = E.map((
|
|
2174
|
-
let
|
|
2175
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2176
|
-
const C = v.map((
|
|
2174
|
+
const S = E.map((y) => x(y, "fixed"));
|
|
2175
|
+
let I;
|
|
2176
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ c("div", { className: we.tips, children: "请将需要锁定的字段拖至上方(最多支持3列)" }), e[9] = I) : I = e[9];
|
|
2177
|
+
const C = v.map((y) => x(y, "visible"));
|
|
2177
2178
|
let A;
|
|
2178
2179
|
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ c("div", { className: we.groupTitle, children: "未显示字段" }), e[10] = A) : A = e[10];
|
|
2179
|
-
const O =
|
|
2180
|
-
let
|
|
2181
|
-
return e[11] !==
|
|
2180
|
+
const O = L.map((y) => V(y));
|
|
2181
|
+
let B;
|
|
2182
|
+
return e[11] !== p || e[12] !== s || e[13] !== I || e[14] !== C || e[15] !== A || e[16] !== O || e[17] !== N || e[18] !== _ || e[19] !== S ? (B = /* @__PURE__ */ J(p, { size: M, orientation: W, style: N, className: s, children: [
|
|
2182
2183
|
_,
|
|
2183
2184
|
S,
|
|
2184
|
-
|
|
2185
|
+
I,
|
|
2185
2186
|
C,
|
|
2186
2187
|
A,
|
|
2187
2188
|
O
|
|
2188
|
-
] }), e[11] =
|
|
2189
|
+
] }), e[11] = p, e[12] = s, e[13] = I, e[14] = C, e[15] = A, e[16] = O, e[17] = N, e[18] = _, e[19] = S, e[20] = B) : B = e[20], B;
|
|
2189
2190
|
}
|
|
2190
2191
|
r(fa, "TableSettingPanel");
|
|
2191
2192
|
function da(t, e) {
|
|
@@ -2240,15 +2241,15 @@ function va(t) {
|
|
|
2240
2241
|
})) : [];
|
|
2241
2242
|
}
|
|
2242
2243
|
r(va, "mapToTableRecord");
|
|
2243
|
-
function
|
|
2244
|
+
function ya(t, ...e) {
|
|
2244
2245
|
let l = 0;
|
|
2245
2246
|
return t.replace(/%@/g, () => e[l++] ?? "");
|
|
2246
2247
|
}
|
|
2247
|
-
r(
|
|
2248
|
+
r(ya, "format");
|
|
2248
2249
|
String.prototype.format = function(...t) {
|
|
2249
|
-
return
|
|
2250
|
+
return ya(this.toString(), ...t);
|
|
2250
2251
|
};
|
|
2251
|
-
function
|
|
2252
|
+
function Ia(t) {
|
|
2252
2253
|
const e = G(41), {
|
|
2253
2254
|
ref: l,
|
|
2254
2255
|
fields: n,
|
|
@@ -2265,7 +2266,7 @@ function ya(t) {
|
|
|
2265
2266
|
loading: E,
|
|
2266
2267
|
attributes: v
|
|
2267
2268
|
} = t, {
|
|
2268
|
-
selectedRowKeys:
|
|
2269
|
+
selectedRowKeys: L,
|
|
2269
2270
|
setSelectedRowKeys: D,
|
|
2270
2271
|
reset: b,
|
|
2271
2272
|
clearSelectedRowKeys: R
|
|
@@ -2284,13 +2285,13 @@ function ya(t) {
|
|
|
2284
2285
|
sortOrder: N.sortOrder,
|
|
2285
2286
|
width: N.width,
|
|
2286
2287
|
hidden: N.hidden,
|
|
2287
|
-
render: /* @__PURE__ */ r((S,
|
|
2288
|
+
render: /* @__PURE__ */ r((S, I, C) => {
|
|
2288
2289
|
if (_?.render)
|
|
2289
|
-
return _.render(S,
|
|
2290
|
+
return _.render(S, I, C);
|
|
2290
2291
|
if (_?.primaryKey)
|
|
2291
2292
|
return /* @__PURE__ */ c(Be, { data: {
|
|
2292
2293
|
value: S,
|
|
2293
|
-
record:
|
|
2294
|
+
record: I,
|
|
2294
2295
|
index: C
|
|
2295
2296
|
}, attributes: {
|
|
2296
2297
|
onClick: /* @__PURE__ */ r((O) => {
|
|
@@ -2299,9 +2300,9 @@ function ya(t) {
|
|
|
2299
2300
|
..._.attributes
|
|
2300
2301
|
} });
|
|
2301
2302
|
const A = ra(_?.type || "text", _?.attributes || {});
|
|
2302
|
-
return A ? A(S,
|
|
2303
|
+
return A ? A(S, I, C) : /* @__PURE__ */ c(In, { data: {
|
|
2303
2304
|
value: String(S),
|
|
2304
|
-
record:
|
|
2305
|
+
record: I,
|
|
2305
2306
|
index: C
|
|
2306
2307
|
} });
|
|
2307
2308
|
}, "render"),
|
|
@@ -2312,22 +2313,22 @@ function ya(t) {
|
|
|
2312
2313
|
let _;
|
|
2313
2314
|
e[11] !== s.title || e[12] !== i || e[13] !== n || e[14] !== a || e[15] !== T ? (_ = /* @__PURE__ */ r(() => {
|
|
2314
2315
|
if (T) {
|
|
2315
|
-
const
|
|
2316
|
+
const I = /* @__PURE__ */ c(fa, { fields: n, initialColumns: i, onChange: a });
|
|
2316
2317
|
return /* @__PURE__ */ J("div", { className: Ca.configurableColumnHeader, children: [
|
|
2317
2318
|
/* @__PURE__ */ c("span", { children: s.title }),
|
|
2318
|
-
/* @__PURE__ */ c(
|
|
2319
|
+
/* @__PURE__ */ c(Dn, { content: I, title: T.title || "Setting", placement: "bottomRight", trigger: "click", children: /* @__PURE__ */ c(en, {}) })
|
|
2319
2320
|
] });
|
|
2320
2321
|
}
|
|
2321
2322
|
return s.title;
|
|
2322
2323
|
}, "t12"), e[11] = s.title, e[12] = i, e[13] = n, e[14] = a, e[15] = T, e[16] = _) : _ = e[16];
|
|
2323
2324
|
let S;
|
|
2324
|
-
e[17] !== i.length || e[18] !== t.actionColumn ? (S = /* @__PURE__ */ r((
|
|
2325
|
+
e[17] !== i.length || e[18] !== t.actionColumn ? (S = /* @__PURE__ */ r((I, C) => {
|
|
2325
2326
|
const O = {
|
|
2326
2327
|
value: t.actionColumn.actions(C),
|
|
2327
2328
|
record: C,
|
|
2328
2329
|
index: i.length + 1
|
|
2329
2330
|
};
|
|
2330
|
-
return /* @__PURE__ */ c(
|
|
2331
|
+
return /* @__PURE__ */ c(vn, { data: O });
|
|
2331
2332
|
}, "t22"), e[17] = i.length, e[18] = t.actionColumn, e[19] = S) : S = e[19], P.push({
|
|
2332
2333
|
key: "action",
|
|
2333
2334
|
title: _,
|
|
@@ -2341,13 +2342,13 @@ function ya(t) {
|
|
|
2341
2342
|
} else
|
|
2342
2343
|
P = e[7];
|
|
2343
2344
|
let F;
|
|
2344
|
-
e[20] !== f || e[21] !== m || e[22] !==
|
|
2345
|
-
selectedRowKeys:
|
|
2345
|
+
e[20] !== f || e[21] !== m || e[22] !== L || e[23] !== D ? (F = f ? {
|
|
2346
|
+
selectedRowKeys: L,
|
|
2346
2347
|
fixed: !0,
|
|
2347
2348
|
onChange: /* @__PURE__ */ r((W, N) => {
|
|
2348
2349
|
D(W), m?.(N);
|
|
2349
2350
|
}, "onChange")
|
|
2350
|
-
} : void 0, e[20] = f, e[21] = m, e[22] =
|
|
2351
|
+
} : void 0, e[20] = f, e[21] = m, e[22] = L, e[23] = D, e[24] = F) : F = e[24];
|
|
2351
2352
|
const w = F;
|
|
2352
2353
|
let H;
|
|
2353
2354
|
e[25] !== R || e[26] !== b ? (H = /* @__PURE__ */ r(() => ({
|
|
@@ -2361,14 +2362,14 @@ function ya(t) {
|
|
|
2361
2362
|
x: "max-content"
|
|
2362
2363
|
}, e[30] = V) : V = e[30];
|
|
2363
2364
|
const $ = o || "middle";
|
|
2364
|
-
let
|
|
2365
|
-
e[31] !== d ? (
|
|
2365
|
+
let p;
|
|
2366
|
+
e[31] !== d ? (p = /* @__PURE__ */ r((W, N, _, S) => {
|
|
2366
2367
|
S.action === "sort" && d && (Array.isArray(_) ? d(_) : d([_]));
|
|
2367
|
-
}, "t5"), e[31] = d, e[32] =
|
|
2368
|
+
}, "t5"), e[31] = d, e[32] = p) : p = e[32];
|
|
2368
2369
|
let M;
|
|
2369
|
-
return e[33] !== v || e[34] !== E || e[35] !== w || e[36] !== x || e[37] !== $ || e[38] !==
|
|
2370
|
+
return e[33] !== v || e[34] !== E || e[35] !== w || e[36] !== x || e[37] !== $ || e[38] !== p || e[39] !== P ? (M = /* @__PURE__ */ c(On, { loading: E, dataSource: x, rowSelection: w, columns: P, ...v, scroll: V, size: $, onChange: p }), e[33] = v, e[34] = E, e[35] = w, e[36] = x, e[37] = $, e[38] = p, e[39] = P, e[40] = M) : M = e[40], M;
|
|
2370
2371
|
}
|
|
2371
|
-
r(
|
|
2372
|
+
r(Ia, "ViewTable");
|
|
2372
2373
|
function Na(t) {
|
|
2373
2374
|
return t.primaryKey;
|
|
2374
2375
|
}
|
|
@@ -2387,7 +2388,7 @@ function Aa() {
|
|
|
2387
2388
|
};
|
|
2388
2389
|
}
|
|
2389
2390
|
r(Aa, "useViewTableState");
|
|
2390
|
-
const
|
|
2391
|
+
const pa = [{
|
|
2391
2392
|
label: "1 分钟",
|
|
2392
2393
|
key: "1",
|
|
2393
2394
|
refreshInterval: 60 * 1e3
|
|
@@ -2399,25 +2400,25 @@ const La = [{
|
|
|
2399
2400
|
label: "5 分钟",
|
|
2400
2401
|
key: "5",
|
|
2401
2402
|
refreshInterval: 300 * 1e3
|
|
2402
|
-
}],
|
|
2403
|
+
}], Bt = {
|
|
2403
2404
|
label: "从不",
|
|
2404
2405
|
key: "0",
|
|
2405
2406
|
refreshInterval: 0
|
|
2406
2407
|
};
|
|
2407
|
-
function
|
|
2408
|
+
function La(t) {
|
|
2408
2409
|
const e = G(26), {
|
|
2409
2410
|
items: l
|
|
2410
|
-
} = t, n = l === void 0 ?
|
|
2411
|
+
} = t, n = l === void 0 ? pa : l;
|
|
2411
2412
|
let i;
|
|
2412
|
-
e[0] !== n ? (i = [...n,
|
|
2413
|
-
const a = i, [s, o] = Q(
|
|
2413
|
+
e[0] !== n ? (i = [...n, Bt], e[0] = n, e[1] = i) : i = e[1];
|
|
2414
|
+
const a = i, [s, o] = Q(Bt), u = De(null), {
|
|
2414
2415
|
publish: f
|
|
2415
2416
|
} = Rt(), {
|
|
2416
2417
|
locale: d
|
|
2417
2418
|
} = Re();
|
|
2418
2419
|
let m;
|
|
2419
2420
|
e[2] !== a ? (m = /* @__PURE__ */ r((V) => {
|
|
2420
|
-
const $ = a.find((
|
|
2421
|
+
const $ = a.find((p) => p.key === V.key);
|
|
2421
2422
|
$ && o($);
|
|
2422
2423
|
}, "t3"), e[2] = a, e[3] = m) : m = e[3];
|
|
2423
2424
|
const h = m;
|
|
@@ -2428,19 +2429,19 @@ function pa(t) {
|
|
|
2428
2429
|
u.current && clearInterval(u.current);
|
|
2429
2430
|
}), "t4"), e[4] = f, e[5] = s.refreshInterval, e[6] = T) : T = e[6];
|
|
2430
2431
|
let E;
|
|
2431
|
-
e[7] !== f || e[8] !== s ? (E = [s, f], e[7] = f, e[8] = s, e[9] = E) : E = e[9],
|
|
2432
|
+
e[7] !== f || e[8] !== s ? (E = [s, f], e[7] = f, e[8] = s, e[9] = E) : E = e[9], ye(T, E);
|
|
2432
2433
|
let v;
|
|
2433
2434
|
e[10] !== a ? (v = a.map(ba), e[10] = a, e[11] = v) : v = e[11];
|
|
2434
|
-
const
|
|
2435
|
+
const L = v;
|
|
2435
2436
|
let D;
|
|
2436
2437
|
e[12] !== s.key ? (D = [s.key], e[12] = s.key, e[13] = D) : D = e[13];
|
|
2437
2438
|
let b;
|
|
2438
|
-
e[14] !== h || e[15] !==
|
|
2439
|
-
items:
|
|
2439
|
+
e[14] !== h || e[15] !== L || e[16] !== D ? (b = {
|
|
2440
|
+
items: L,
|
|
2440
2441
|
onClick: h,
|
|
2441
2442
|
selectable: !0,
|
|
2442
2443
|
defaultSelectedKeys: D
|
|
2443
|
-
}, e[14] = h, e[15] =
|
|
2444
|
+
}, e[14] = h, e[15] = L, e[16] = D, e[17] = b) : b = e[17];
|
|
2444
2445
|
const R = b;
|
|
2445
2446
|
let P;
|
|
2446
2447
|
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = ["click"], e[18] = P) : P = e[18];
|
|
@@ -2456,7 +2457,7 @@ function pa(t) {
|
|
|
2456
2457
|
let x;
|
|
2457
2458
|
return e[23] !== R || e[24] !== H ? (x = /* @__PURE__ */ c(Fe, { menu: R, trigger: P, children: H }), e[23] = R, e[24] = H, e[25] = x) : x = e[25], x;
|
|
2458
2459
|
}
|
|
2459
|
-
r(
|
|
2460
|
+
r(La, "AutoRefreshBarItem");
|
|
2460
2461
|
function ba(t) {
|
|
2461
2462
|
return {
|
|
2462
2463
|
key: t.key,
|
|
@@ -2464,7 +2465,7 @@ function ba(t) {
|
|
|
2464
2465
|
};
|
|
2465
2466
|
}
|
|
2466
2467
|
r(ba, "_temp$4");
|
|
2467
|
-
const Ra = "_item_1c27u_1", Oa = "_active_1c27u_16",
|
|
2468
|
+
const Ra = "_item_1c27u_1", Oa = "_active_1c27u_16", Yt = {
|
|
2468
2469
|
item: Ra,
|
|
2469
2470
|
active: Oa
|
|
2470
2471
|
};
|
|
@@ -2472,7 +2473,7 @@ function ke(t) {
|
|
|
2472
2473
|
const e = G(3), {
|
|
2473
2474
|
icon: l,
|
|
2474
2475
|
active: n
|
|
2475
|
-
} = t, i = `${
|
|
2476
|
+
} = t, i = `${Yt.item} ${n ? Yt.active : ""}`;
|
|
2476
2477
|
let a;
|
|
2477
2478
|
return e[0] !== l || e[1] !== i ? (a = /* @__PURE__ */ c("div", { className: i, children: l }), e[0] = l, e[1] = i, e[2] = a) : a = e[2], a;
|
|
2478
2479
|
}
|
|
@@ -2488,7 +2489,7 @@ function Da(t) {
|
|
|
2488
2489
|
let u, f;
|
|
2489
2490
|
e[0] !== n ? (u = /* @__PURE__ */ r(() => {
|
|
2490
2491
|
s(n);
|
|
2491
|
-
}, "t0"), f = [n], e[0] = n, e[1] = u, e[2] = f) : (u = e[1], f = e[2]),
|
|
2492
|
+
}, "t0"), f = [n], e[0] = n, e[1] = u, e[2] = f) : (u = e[1], f = e[2]), ye(u, f);
|
|
2492
2493
|
const d = o.topBar?.tableSize?.middle || "标准";
|
|
2493
2494
|
let m;
|
|
2494
2495
|
e[3] !== d ? (m = {
|
|
@@ -2504,14 +2505,14 @@ function Da(t) {
|
|
|
2504
2505
|
let E;
|
|
2505
2506
|
e[7] !== m || e[8] !== T ? (E = [m, T], e[7] = m, e[8] = T, e[9] = E) : E = e[9];
|
|
2506
2507
|
const v = E;
|
|
2507
|
-
let
|
|
2508
|
-
e[10] !== i ? (
|
|
2508
|
+
let L;
|
|
2509
|
+
e[10] !== i ? (L = /* @__PURE__ */ r((x) => {
|
|
2509
2510
|
const {
|
|
2510
2511
|
key: V
|
|
2511
2512
|
} = x;
|
|
2512
2513
|
s(V), i?.(V);
|
|
2513
|
-
}, "t7"), e[10] = i, e[11] =
|
|
2514
|
-
const D =
|
|
2514
|
+
}, "t7"), e[10] = i, e[11] = L) : L = e[11];
|
|
2515
|
+
const D = L, b = a || "middle";
|
|
2515
2516
|
let R;
|
|
2516
2517
|
e[12] !== b ? (R = [b], e[12] = b, e[13] = R) : R = e[13];
|
|
2517
2518
|
let P;
|
|
@@ -2543,7 +2544,7 @@ function Fa(t) {
|
|
|
2543
2544
|
let u, f;
|
|
2544
2545
|
e[0] !== i ? (u = /* @__PURE__ */ r(() => {
|
|
2545
2546
|
o(i);
|
|
2546
|
-
}, "t0"), f = [i], e[0] = i, e[1] = u, e[2] = f) : (u = e[1], f = e[2]),
|
|
2547
|
+
}, "t0"), f = [i], e[0] = i, e[1] = u, e[2] = f) : (u = e[1], f = e[2]), ye(u, f);
|
|
2547
2548
|
let d;
|
|
2548
2549
|
e[3] !== s || e[4] !== a ? (d = /* @__PURE__ */ r(() => {
|
|
2549
2550
|
o(!s), a?.(!s);
|
|
@@ -2591,7 +2592,7 @@ function xa(t) {
|
|
|
2591
2592
|
const e = G(10), {
|
|
2592
2593
|
className: l,
|
|
2593
2594
|
style: n
|
|
2594
|
-
} = t, [i, a] =
|
|
2595
|
+
} = t, [i, a] = wn.useMessage();
|
|
2595
2596
|
let s;
|
|
2596
2597
|
e[0] !== i ? (s = /* @__PURE__ */ r(async () => {
|
|
2597
2598
|
const m = window.location.href;
|
|
@@ -2613,11 +2614,11 @@ function xa(t) {
|
|
|
2613
2614
|
] }), e[7] = a, e[8] = f, e[9] = d) : d = e[9], d;
|
|
2614
2615
|
}
|
|
2615
2616
|
r(xa, "ShareLinkBarItem");
|
|
2616
|
-
const Va = "_leftItems_1hvhw_1", Ma = "_rightItems_1hvhw_6",
|
|
2617
|
+
const Va = "_leftItems_1hvhw_1", Ma = "_rightItems_1hvhw_6", Wt = {
|
|
2617
2618
|
leftItems: Va,
|
|
2618
2619
|
rightItems: Ma
|
|
2619
2620
|
};
|
|
2620
|
-
function
|
|
2621
|
+
function Gt(t, e, l) {
|
|
2621
2622
|
return t.render ? {
|
|
2622
2623
|
key: e,
|
|
2623
2624
|
label: t.render(l)
|
|
@@ -2626,7 +2627,7 @@ function Wt(t, e, l) {
|
|
|
2626
2627
|
label: /* @__PURE__ */ c(me, { type: "link", ...t.attributes, onClick: /* @__PURE__ */ r(() => t.onClick?.(l), "onClick"), children: t.title })
|
|
2627
2628
|
};
|
|
2628
2629
|
}
|
|
2629
|
-
r(
|
|
2630
|
+
r(Gt, "renderMenuItem");
|
|
2630
2631
|
const ka = [{
|
|
2631
2632
|
label: "覆盖当前视图",
|
|
2632
2633
|
key: "Update"
|
|
@@ -2650,7 +2651,7 @@ function Ha(t) {
|
|
|
2650
2651
|
onShowFilterChange: T,
|
|
2651
2652
|
defaultTableSize: E,
|
|
2652
2653
|
onTableSizeChange: v,
|
|
2653
|
-
onCreateView:
|
|
2654
|
+
onCreateView: L,
|
|
2654
2655
|
onUpdateView: D
|
|
2655
2656
|
} = t, [b, R] = Q("Create"), [P, F] = Q(!1), [w] = Q("PERSONAL");
|
|
2656
2657
|
let H;
|
|
@@ -2660,7 +2661,7 @@ function Ha(t) {
|
|
|
2660
2661
|
let le;
|
|
2661
2662
|
if (e[1] !== s.actions || e[2] !== o) {
|
|
2662
2663
|
let X;
|
|
2663
|
-
e[4] !== o ? (X = /* @__PURE__ */ r((ce, fe) =>
|
|
2664
|
+
e[4] !== o ? (X = /* @__PURE__ */ r((ce, fe) => Gt(ce, fe, o), "t23"), e[4] = o, e[5] = X) : X = e[5], le = s.actions.map(X), e[1] = s.actions, e[2] = o, e[3] = le;
|
|
2664
2665
|
} else
|
|
2665
2666
|
le = e[3];
|
|
2666
2667
|
x = le;
|
|
@@ -2672,17 +2673,17 @@ function Ha(t) {
|
|
|
2672
2673
|
let le;
|
|
2673
2674
|
if (e[7] !== a || e[8] !== o) {
|
|
2674
2675
|
let X;
|
|
2675
|
-
e[10] !== o ? (X = /* @__PURE__ */ r((ce, fe) =>
|
|
2676
|
+
e[10] !== o ? (X = /* @__PURE__ */ r((ce, fe) => Gt(ce, fe, o), "t32"), e[10] = o, e[11] = X) : X = e[11], le = a.map(X), e[7] = a, e[8] = o, e[9] = le;
|
|
2676
2677
|
} else
|
|
2677
2678
|
le = e[9];
|
|
2678
2679
|
$ = le;
|
|
2679
2680
|
}
|
|
2680
|
-
const [
|
|
2681
|
+
const [p, M] = st.useModal();
|
|
2681
2682
|
let W;
|
|
2682
|
-
e[12] !== n || e[13] !==
|
|
2683
|
+
e[12] !== n || e[13] !== p || e[14] !== D ? (W = /* @__PURE__ */ r((le) => {
|
|
2683
2684
|
e: switch (le) {
|
|
2684
2685
|
case "Update": {
|
|
2685
|
-
|
|
2686
|
+
p.confirm({
|
|
2686
2687
|
title: "确认覆盖当前视图?",
|
|
2687
2688
|
icon: /* @__PURE__ */ c(Qn, {}),
|
|
2688
2689
|
content: "确认后将覆盖原筛选条件",
|
|
@@ -2697,11 +2698,11 @@ function Ha(t) {
|
|
|
2697
2698
|
case "SaveAs":
|
|
2698
2699
|
F(!0), R("SaveAs");
|
|
2699
2700
|
}
|
|
2700
|
-
}, "t2"), e[12] = n, e[13] =
|
|
2701
|
+
}, "t2"), e[12] = n, e[13] = p, e[14] = D, e[15] = W) : W = e[15];
|
|
2701
2702
|
const N = W;
|
|
2702
2703
|
let _;
|
|
2703
|
-
e[16] !== n || e[17] !==
|
|
2704
|
-
|
|
2704
|
+
e[16] !== n || e[17] !== L ? (_ = /* @__PURE__ */ r((le, X) => {
|
|
2705
|
+
L?.({
|
|
2705
2706
|
...n,
|
|
2706
2707
|
name: le,
|
|
2707
2708
|
type: X,
|
|
@@ -2710,33 +2711,33 @@ function Ha(t) {
|
|
|
2710
2711
|
}, () => {
|
|
2711
2712
|
F(!1);
|
|
2712
2713
|
});
|
|
2713
|
-
}, "t3"), e[16] = n, e[17] =
|
|
2714
|
+
}, "t3"), e[16] = n, e[17] = L, e[18] = _) : _ = e[18];
|
|
2714
2715
|
const S = _;
|
|
2715
|
-
let
|
|
2716
|
-
e[19] !== N ? (
|
|
2716
|
+
let I;
|
|
2717
|
+
e[19] !== N ? (I = {
|
|
2717
2718
|
items: ka,
|
|
2718
2719
|
onClick: /* @__PURE__ */ r((X) => {
|
|
2719
2720
|
N(X.key);
|
|
2720
2721
|
}, "handleMenuClick")
|
|
2721
|
-
}, e[19] = N, e[20] =
|
|
2722
|
-
const C =
|
|
2722
|
+
}, e[19] = N, e[20] = I) : I = e[20];
|
|
2723
|
+
const C = I;
|
|
2723
2724
|
let A;
|
|
2724
2725
|
e[21] !== m ? (A = /* @__PURE__ */ r(() => {
|
|
2725
2726
|
m?.();
|
|
2726
2727
|
}, "t5"), e[21] = m, e[22] = A) : A = e[22];
|
|
2727
2728
|
const O = A;
|
|
2728
|
-
let g;
|
|
2729
|
-
e[23] !== f ? (g = /* @__PURE__ */ r(() => {
|
|
2730
|
-
f?.(!0);
|
|
2731
|
-
}, "t6"), e[23] = f, e[24] = g) : g = e[24];
|
|
2732
|
-
const I = g;
|
|
2733
2729
|
let B;
|
|
2734
|
-
e[
|
|
2735
|
-
|
|
2730
|
+
e[23] !== f ? (B = /* @__PURE__ */ r(() => {
|
|
2731
|
+
f?.(!0);
|
|
2732
|
+
}, "t6"), e[23] = f, e[24] = B) : B = e[24];
|
|
2733
|
+
const y = B;
|
|
2734
|
+
let g;
|
|
2735
|
+
e[25] !== y || e[26] !== u || e[27] !== l ? (g = !u && /* @__PURE__ */ J(Te, { children: [
|
|
2736
|
+
/* @__PURE__ */ c("div", { onClick: y, children: /* @__PURE__ */ c(ke, { icon: /* @__PURE__ */ c(Xn, {}), active: !1 }) }),
|
|
2736
2737
|
/* @__PURE__ */ c(Ue, { orientation: "vertical" }),
|
|
2737
2738
|
l,
|
|
2738
2739
|
/* @__PURE__ */ c(Pa, {})
|
|
2739
|
-
] }), e[25] =
|
|
2740
|
+
] }), e[25] = y, e[26] = u, e[27] = l, e[28] = g) : g = e[28];
|
|
2740
2741
|
let Y;
|
|
2741
2742
|
e[29] !== n.source || e[30] !== O || e[31] !== C || e[32] !== N || e[33] !== d ? (Y = d && /* @__PURE__ */ J(Te, { children: [
|
|
2742
2743
|
/* @__PURE__ */ c("div", { style: {
|
|
@@ -2746,11 +2747,11 @@ function Ha(t) {
|
|
|
2746
2747
|
/* @__PURE__ */ c(me, { type: "default", size: "small", onClick: O, children: "重置" })
|
|
2747
2748
|
] }), e[29] = n.source, e[30] = O, e[31] = C, e[32] = N, e[33] = d, e[34] = Y) : Y = e[34];
|
|
2748
2749
|
let k;
|
|
2749
|
-
e[35] !== n.name || e[36] !==
|
|
2750
|
-
|
|
2750
|
+
e[35] !== n.name || e[36] !== g || e[37] !== Y ? (k = /* @__PURE__ */ J(Ae, { gap: "8px", align: "center", className: Wt.leftItems, children: [
|
|
2751
|
+
g,
|
|
2751
2752
|
n.name,
|
|
2752
2753
|
Y
|
|
2753
|
-
] }), e[35] = n.name, e[36] =
|
|
2754
|
+
] }), e[35] = n.name, e[36] = g, e[37] = Y, e[38] = k) : k = e[38];
|
|
2754
2755
|
let K;
|
|
2755
2756
|
e[39] !== T || e[40] !== h ? (K = /* @__PURE__ */ c(Fa, { defaultShowFilter: h, onChange: T }), e[39] = T, e[40] = h, e[41] = K) : K = e[41];
|
|
2756
2757
|
let U;
|
|
@@ -2758,7 +2759,7 @@ function Ha(t) {
|
|
|
2758
2759
|
let Z;
|
|
2759
2760
|
e[43] !== E || e[44] !== v ? (Z = /* @__PURE__ */ c(Da, { defaultTableSize: E, onChange: v }), e[43] = E, e[44] = v, e[45] = Z) : Z = e[45];
|
|
2760
2761
|
let ee, j, ne;
|
|
2761
|
-
e[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ c(xa, {}), j = /* @__PURE__ */ c(Ue, { orientation: "vertical" }), ne = /* @__PURE__ */ c(
|
|
2762
|
+
e[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ c(xa, {}), j = /* @__PURE__ */ c(Ue, { orientation: "vertical" }), ne = /* @__PURE__ */ c(La, {}), e[46] = ee, e[47] = j, e[48] = ne) : (ee = e[46], j = e[47], ne = e[48]);
|
|
2762
2763
|
let te;
|
|
2763
2764
|
e[49] !== s?.enabled || e[50] !== s?.title || e[51] !== x ? (te = s?.enabled && /* @__PURE__ */ J(Te, { children: [
|
|
2764
2765
|
/* @__PURE__ */ c(Ue, { orientation: "vertical" }),
|
|
@@ -2777,7 +2778,7 @@ function Ha(t) {
|
|
|
2777
2778
|
] })
|
|
2778
2779
|
] }), e[53] = i, e[54] = $, e[55] = o, e[56] = ie) : ie = e[56];
|
|
2779
2780
|
let re;
|
|
2780
|
-
e[57] !== K || e[58] !== Z || e[59] !== te || e[60] !== ie ? (re = /* @__PURE__ */ J(Ae, { gap: "8px", align: "center", className:
|
|
2781
|
+
e[57] !== K || e[58] !== Z || e[59] !== te || e[60] !== ie ? (re = /* @__PURE__ */ J(Ae, { gap: "8px", align: "center", className: Wt.rightItems, children: [
|
|
2781
2782
|
K,
|
|
2782
2783
|
U,
|
|
2783
2784
|
Z,
|
|
@@ -2795,7 +2796,7 @@ function Ha(t) {
|
|
|
2795
2796
|
let ue;
|
|
2796
2797
|
e[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ue = /* @__PURE__ */ r(() => F(!1), "t20"), e[65] = ue) : ue = e[65];
|
|
2797
2798
|
let oe;
|
|
2798
|
-
e[66] !== n.name || e[67] !== w || e[68] !== S || e[69] !== P || e[70] !== b ? (oe = /* @__PURE__ */ c(
|
|
2799
|
+
e[66] !== n.name || e[67] !== w || e[68] !== S || e[69] !== P || e[70] !== b ? (oe = /* @__PURE__ */ c(An, { mode: b, open: P, defaultViewType: w, defaultViewName: n.name, onSaveView: S, onCancel: ue }), e[66] = n.name, e[67] = w, e[68] = S, e[69] = P, e[70] = b, e[71] = oe) : oe = e[71];
|
|
2799
2800
|
let ae;
|
|
2800
2801
|
return e[72] !== M || e[73] !== se || e[74] !== oe ? (ae = /* @__PURE__ */ J(Te, { children: [
|
|
2801
2802
|
se,
|
|
@@ -2830,7 +2831,7 @@ function Ya(t) {
|
|
|
2830
2831
|
...E
|
|
2831
2832
|
} = t, e[0] = t, e[1] = l, e[2] = n, e[3] = i, e[4] = a, e[5] = s, e[6] = o, e[7] = u, e[8] = f, e[9] = d, e[10] = m, e[11] = h, e[12] = T, e[13] = E, e[14] = v) : (l = e[1], n = e[2], i = e[3], a = e[4], s = e[5], o = e[6], u = e[7], f = e[8], d = e[9], m = e[10], h = e[11], T = e[12], E = e[13], v = e[14]);
|
|
2832
2833
|
const {
|
|
2833
|
-
page:
|
|
2834
|
+
page: L,
|
|
2834
2835
|
setPage: D,
|
|
2835
2836
|
activeFilters: b,
|
|
2836
2837
|
setActiveFilters: R,
|
|
@@ -2841,7 +2842,7 @@ function Ya(t) {
|
|
|
2841
2842
|
tableSize: x,
|
|
2842
2843
|
setTableSize: V,
|
|
2843
2844
|
setCondition: $,
|
|
2844
|
-
setSorter:
|
|
2845
|
+
setSorter: p,
|
|
2845
2846
|
selectedCount: M,
|
|
2846
2847
|
updateSelectedCount: W
|
|
2847
2848
|
} = Qa(E), {
|
|
@@ -2852,18 +2853,18 @@ function Ya(t) {
|
|
|
2852
2853
|
$(X);
|
|
2853
2854
|
}, "t1"), e[15] = $, e[16] = _) : _ = e[16];
|
|
2854
2855
|
const S = _;
|
|
2855
|
-
let
|
|
2856
|
-
e[17] !==
|
|
2857
|
-
|
|
2858
|
-
}, "t2"), e[17] =
|
|
2859
|
-
const C =
|
|
2856
|
+
let I;
|
|
2857
|
+
e[17] !== L || e[18] !== w || e[19] !== D || e[20] !== H ? (I = /* @__PURE__ */ r((X, ce) => {
|
|
2858
|
+
L !== X && D(X), w !== ce && H(ce);
|
|
2859
|
+
}, "t2"), e[17] = L, e[18] = w, e[19] = D, e[20] = H, e[21] = I) : I = e[21];
|
|
2860
|
+
const C = I;
|
|
2860
2861
|
let A;
|
|
2861
2862
|
e[22] !== d || e[23] !== W ? (A = /* @__PURE__ */ r((X) => {
|
|
2862
2863
|
d?.(X), W(X.length);
|
|
2863
2864
|
}, "t3"), e[22] = d, e[23] = W, e[24] = A) : A = e[24];
|
|
2864
2865
|
const O = A;
|
|
2865
|
-
let
|
|
2866
|
-
e[25] !== P || e[26] !== F || e[27] !==
|
|
2866
|
+
let B;
|
|
2867
|
+
e[25] !== P || e[26] !== F || e[27] !== p ? (B = /* @__PURE__ */ r((X) => {
|
|
2867
2868
|
let ce = [];
|
|
2868
2869
|
Array.isArray(X) ? ce = X.filter(Ka).map(Ga) : X.field ? ce = [{
|
|
2869
2870
|
field: Array.isArray(X.field) ? [...X.field].join(".") : X.field,
|
|
@@ -2879,12 +2880,12 @@ function Ya(t) {
|
|
|
2879
2880
|
sortOrder: null
|
|
2880
2881
|
};
|
|
2881
2882
|
});
|
|
2882
|
-
|
|
2883
|
-
}, "t4"), e[25] = P, e[26] = F, e[27] =
|
|
2884
|
-
const
|
|
2883
|
+
p(ce), F(fe);
|
|
2884
|
+
}, "t4"), e[25] = P, e[26] = F, e[27] = p, e[28] = B) : B = e[28];
|
|
2885
|
+
const y = B, g = De(null), Y = De(null);
|
|
2885
2886
|
let k;
|
|
2886
2887
|
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ r(() => {
|
|
2887
|
-
|
|
2888
|
+
g.current?.reset(), Y.current?.reset();
|
|
2888
2889
|
}, "t5"), e[29] = k) : k = e[29];
|
|
2889
2890
|
const K = k;
|
|
2890
2891
|
let U;
|
|
@@ -2903,7 +2904,7 @@ function Ya(t) {
|
|
|
2903
2904
|
Z();
|
|
2904
2905
|
}, "t8"), e[33] = j) : j = e[33];
|
|
2905
2906
|
let ne;
|
|
2906
|
-
e[34] !== i ? (ne = [i], e[34] = i, e[35] = ne) : ne = e[35],
|
|
2907
|
+
e[34] !== i ? (ne = [i], e[34] = i, e[35] = ne) : ne = e[35], ye(j, ne);
|
|
2907
2908
|
let te;
|
|
2908
2909
|
e[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = {
|
|
2909
2910
|
display: "flex"
|
|
@@ -2921,27 +2922,27 @@ function Ya(t) {
|
|
|
2921
2922
|
md: 12,
|
|
2922
2923
|
sm: 24,
|
|
2923
2924
|
xs: 24
|
|
2924
|
-
}, ref:
|
|
2925
|
+
}, ref: g, filters: b, availableFilters: n, resetButton: !1, onSearch: S, onChange: R }) }), e[37] = b, e[38] = n, e[39] = o, e[40] = S, e[41] = R, e[42] = T, e[43] = ie) : ie = e[43];
|
|
2925
2926
|
let re;
|
|
2926
2927
|
e[44] !== b || e[45] !== o || e[46] !== S || e[47] !== T ? (re = o === "normal" && /* @__PURE__ */ c("div", { className: Ye.filterPanel, style: {
|
|
2927
2928
|
display: T ? "block" : "none"
|
|
2928
|
-
}, children: /* @__PURE__ */ c(
|
|
2929
|
+
}, children: /* @__PURE__ */ c(_n, { ref: g, filters: b, resetButton: !1, onSearch: S }) }), e[44] = b, e[45] = o, e[46] = S, e[47] = T, e[48] = re) : re = e[48];
|
|
2929
2930
|
let se;
|
|
2930
2931
|
e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (se = {
|
|
2931
2932
|
pagination: !1
|
|
2932
2933
|
}, e[49] = se) : se = e[49];
|
|
2933
2934
|
const ue = v || !1;
|
|
2934
2935
|
let oe;
|
|
2935
|
-
e[50] !== l || e[51] !== P || e[52] !== i.list || e[53] !== a || e[54] !== s || e[55] !==
|
|
2936
|
+
e[50] !== l || e[51] !== P || e[52] !== i.list || e[53] !== a || e[54] !== s || e[55] !== y || e[56] !== O || e[57] !== u || e[58] !== f || e[59] !== F || e[60] !== ue || e[61] !== x ? (oe = /* @__PURE__ */ c(Ia, { ref: Y, loading: u, dataSource: i.list, fields: s, columns: P, onColumnsChange: F, tableSize: x, actionColumn: l, onSortChanged: y, onSelectChange: O, attributes: se, enableRowSelection: a, onClickPrimaryKey: f, viewTableSetting: ue }), e[50] = l, e[51] = P, e[52] = i.list, e[53] = a, e[54] = s, e[55] = y, e[56] = O, e[57] = u, e[58] = f, e[59] = F, e[60] = ue, e[61] = x, e[62] = oe) : oe = e[62];
|
|
2936
2937
|
let ae;
|
|
2937
|
-
e[63] !== i.total || e[64] !== a || e[65] !== C || e[66] !== N || e[67] !==
|
|
2938
|
+
e[63] !== i.total || e[64] !== a || e[65] !== C || e[66] !== N || e[67] !== L || e[68] !== w || e[69] !== m || e[70] !== M ? (ae = (m !== !1 || a) && /* @__PURE__ */ J("div", { style: {
|
|
2938
2939
|
display: "flex",
|
|
2939
2940
|
alignItems: "center",
|
|
2940
2941
|
justifyContent: "space-between"
|
|
2941
2942
|
}, children: [
|
|
2942
2943
|
/* @__PURE__ */ c("span", { children: M ? N.selectedCountLabel ? N.selectedCountLabel.format(M) : `已选择 ${M} 条数据` : "" }),
|
|
2943
|
-
/* @__PURE__ */ c(
|
|
2944
|
-
] }), e[63] = i.total, e[64] = a, e[65] = C, e[66] = N, e[67] =
|
|
2944
|
+
/* @__PURE__ */ c(Fn, { showTotal: Wa, defaultCurrent: L, current: L, pageSize: w || 10, total: i.total, pageSizeOptions: ["10", "20", "50", "100"], ...m, onChange: C })
|
|
2945
|
+
] }), e[63] = i.total, e[64] = a, e[65] = C, e[66] = N, e[67] = L, e[68] = w, e[69] = m, e[70] = M, e[71] = ae) : ae = e[71];
|
|
2945
2946
|
let le;
|
|
2946
2947
|
return e[72] !== ie || e[73] !== re || e[74] !== oe || e[75] !== ae ? (le = /* @__PURE__ */ J(Se, { orientation: "vertical", style: te, size: "small", children: [
|
|
2947
2948
|
ie,
|
|
@@ -2986,7 +2987,7 @@ function Qa({
|
|
|
2986
2987
|
defaultTableSize: T,
|
|
2987
2988
|
externalTableSize: E,
|
|
2988
2989
|
externalUpdateTableSize: v,
|
|
2989
|
-
defaultSorter:
|
|
2990
|
+
defaultSorter: L,
|
|
2990
2991
|
externalSorter: D,
|
|
2991
2992
|
externalUpdateSorter: b,
|
|
2992
2993
|
defaultCondition: R,
|
|
@@ -2998,25 +2999,25 @@ function Qa({
|
|
|
2998
2999
|
setColumns: x,
|
|
2999
3000
|
activeFilters: V,
|
|
3000
3001
|
setActiveFilters: $,
|
|
3001
|
-
page:
|
|
3002
|
+
page: p,
|
|
3002
3003
|
setPage: M,
|
|
3003
3004
|
pageSize: W,
|
|
3004
3005
|
setPageSize: N,
|
|
3005
3006
|
tableSize: _,
|
|
3006
3007
|
setTableSize: S,
|
|
3007
|
-
condition:
|
|
3008
|
+
condition: I,
|
|
3008
3009
|
setCondition: C,
|
|
3009
3010
|
sorter: A,
|
|
3010
3011
|
setSorter: O,
|
|
3011
|
-
reset:
|
|
3012
|
-
} =
|
|
3012
|
+
reset: B
|
|
3013
|
+
} = Cn({
|
|
3013
3014
|
defaultColumns: n,
|
|
3014
3015
|
defaultPageSize: e,
|
|
3015
3016
|
defaultActiveFilters: s || [],
|
|
3016
3017
|
defaultTableSize: T,
|
|
3017
3018
|
defaultCondition: R,
|
|
3018
|
-
defaultSorter:
|
|
3019
|
-
}),
|
|
3019
|
+
defaultSorter: L
|
|
3020
|
+
}), y = i ?? H, g = a ?? x, Y = o ?? V, k = u ?? $, K = f ?? p, U = d ?? M, Z = m ?? W, ee = h ?? N, j = P ?? I, ne = F ?? C, te = D ?? A, ie = b ?? O, re = E ?? _, se = v ?? S, [ue, oe] = Q(0);
|
|
3020
3021
|
return {
|
|
3021
3022
|
page: K,
|
|
3022
3023
|
setPage: /* @__PURE__ */ r((q) => {
|
|
@@ -3026,8 +3027,8 @@ function Qa({
|
|
|
3026
3027
|
setPageSize: /* @__PURE__ */ r((q) => {
|
|
3027
3028
|
ee(q), w?.(j, K, q, te);
|
|
3028
3029
|
}, "setPageSizeFn"),
|
|
3029
|
-
columns:
|
|
3030
|
-
setColumns:
|
|
3030
|
+
columns: y,
|
|
3031
|
+
setColumns: g,
|
|
3031
3032
|
activeFilters: Y,
|
|
3032
3033
|
setActiveFilters: k,
|
|
3033
3034
|
tableSize: re,
|
|
@@ -3047,17 +3048,17 @@ function Qa({
|
|
|
3047
3048
|
oe(q);
|
|
3048
3049
|
}, "updateSelectedCountFn"),
|
|
3049
3050
|
reset: /* @__PURE__ */ r(() => {
|
|
3050
|
-
|
|
3051
|
-
R ||
|
|
3051
|
+
B(), w?.(
|
|
3052
|
+
R || Sn,
|
|
3052
3053
|
t,
|
|
3053
3054
|
e,
|
|
3054
|
-
|
|
3055
|
+
L
|
|
3055
3056
|
);
|
|
3056
3057
|
}, "resetFn")
|
|
3057
3058
|
};
|
|
3058
3059
|
}
|
|
3059
3060
|
r(Qa, "useViewState");
|
|
3060
|
-
const Xa = "_top_1wlaq_1", Za = "_title_1wlaq_4", Ja = "_customCollapse_1wlaq_8", er = "_viewItem_1wlaq_24", tr = "_active_1wlaq_32", nr = "_viewName_1wlaq_36", lr = "_viewNameText_1wlaq_48", ir = "_viewNameTag_1wlaq_85",
|
|
3061
|
+
const Xa = "_top_1wlaq_1", Za = "_title_1wlaq_4", Ja = "_customCollapse_1wlaq_8", er = "_viewItem_1wlaq_24", tr = "_active_1wlaq_32", nr = "_viewName_1wlaq_36", lr = "_viewNameText_1wlaq_48", ir = "_viewNameTag_1wlaq_85", pe = {
|
|
3061
3062
|
top: Xa,
|
|
3062
3063
|
title: Za,
|
|
3063
3064
|
customCollapse: Ja,
|
|
@@ -3076,17 +3077,17 @@ function ar(t) {
|
|
|
3076
3077
|
} = t, [s, o] = Q(0);
|
|
3077
3078
|
let u, f;
|
|
3078
3079
|
e[0] !== n || e[1] !== a || e[2] !== l.condition ? (u = /* @__PURE__ */ r(() => {
|
|
3079
|
-
a && a(n, l.condition || xe()).then((
|
|
3080
|
-
o(
|
|
3080
|
+
a && a(n, l.condition || xe()).then((L) => {
|
|
3081
|
+
o(L || 0);
|
|
3081
3082
|
});
|
|
3082
|
-
}, "t0"), f = [n, a, l.condition], e[0] = n, e[1] = a, e[2] = l.condition, e[3] = u, e[4] = f) : (u = e[3], f = e[4]),
|
|
3083
|
-
const d = `${
|
|
3083
|
+
}, "t0"), f = [n, a, l.condition], e[0] = n, e[1] = a, e[2] = l.condition, e[3] = u, e[4] = f) : (u = e[3], f = e[4]), ye(u, f);
|
|
3084
|
+
const d = `${pe.viewItem} ${i ? pe.active : ""}`;
|
|
3084
3085
|
let m;
|
|
3085
|
-
e[5] !== l.name ? (m = /* @__PURE__ */ c("span", { className:
|
|
3086
|
+
e[5] !== l.name ? (m = /* @__PURE__ */ c("span", { className: pe.viewNameText, "data-tooltip": l.name, children: l.name }), e[5] = l.name, e[6] = m) : m = e[6];
|
|
3086
3087
|
let h;
|
|
3087
|
-
e[7] !== l.source ? (h = l.source === "SYSTEM" && /* @__PURE__ */ c(
|
|
3088
|
+
e[7] !== l.source ? (h = l.source === "SYSTEM" && /* @__PURE__ */ c(pt, { className: pe.viewNameTag, children: "系统" }), e[7] = l.source, e[8] = h) : h = e[8];
|
|
3088
3089
|
let T;
|
|
3089
|
-
e[9] !== m || e[10] !== h ? (T = /* @__PURE__ */ J("div", { className:
|
|
3090
|
+
e[9] !== m || e[10] !== h ? (T = /* @__PURE__ */ J("div", { className: pe.viewName, children: [
|
|
3090
3091
|
m,
|
|
3091
3092
|
h
|
|
3092
3093
|
] }), e[9] = m, e[10] = h, e[11] = T) : T = e[11];
|
|
@@ -3099,7 +3100,7 @@ function ar(t) {
|
|
|
3099
3100
|
] }), e[15] = d, e[16] = T, e[17] = E, e[18] = v) : v = e[18], v;
|
|
3100
3101
|
}
|
|
3101
3102
|
r(ar, "ViewItem");
|
|
3102
|
-
function
|
|
3103
|
+
function Kt(t) {
|
|
3103
3104
|
const e = G(13), {
|
|
3104
3105
|
views: l,
|
|
3105
3106
|
activeView: n,
|
|
@@ -3119,7 +3120,7 @@ function Gt(t) {
|
|
|
3119
3120
|
let u;
|
|
3120
3121
|
return e[11] !== o ? (u = /* @__PURE__ */ c(Ae, { vertical: !0, align: "start", children: o }), e[11] = o, e[12] = u) : u = e[12], u;
|
|
3121
3122
|
}
|
|
3122
|
-
r(
|
|
3123
|
+
r(Kt, "ViewItemGroup");
|
|
3123
3124
|
function rr(t) {
|
|
3124
3125
|
const e = G(80), {
|
|
3125
3126
|
name: l,
|
|
@@ -3138,11 +3139,11 @@ function rr(t) {
|
|
|
3138
3139
|
const T = h;
|
|
3139
3140
|
let E;
|
|
3140
3141
|
e[2] !== n ? (E = n.filter(sr), e[2] = n, e[3] = E) : E = e[3];
|
|
3141
|
-
const v = E, [
|
|
3142
|
+
const v = E, [L, D] = Q(!1), [b, R] = Q(!1), [P, F] = Q("Create"), [w, H] = Q(!1), [x, V] = Q("PERSONAL"), {
|
|
3142
3143
|
locale: $
|
|
3143
3144
|
} = Re();
|
|
3144
|
-
let
|
|
3145
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3145
|
+
let p;
|
|
3146
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ r((de, Ne) => {
|
|
3146
3147
|
de.preventDefault(), de.stopPropagation();
|
|
3147
3148
|
e: switch (Ne) {
|
|
3148
3149
|
case "PERSONAL": {
|
|
@@ -3152,8 +3153,8 @@ function rr(t) {
|
|
|
3152
3153
|
case "SHARED":
|
|
3153
3154
|
R(!0);
|
|
3154
3155
|
}
|
|
3155
|
-
}, "t2"), e[4] =
|
|
3156
|
-
const M =
|
|
3156
|
+
}, "t2"), e[4] = p) : p = e[4];
|
|
3157
|
+
const M = p;
|
|
3157
3158
|
let W;
|
|
3158
3159
|
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ r((de, Ne) => {
|
|
3159
3160
|
de.stopPropagation(), V(Ne), F("Create"), H(!0);
|
|
@@ -3172,42 +3173,42 @@ function rr(t) {
|
|
|
3172
3173
|
});
|
|
3173
3174
|
}, "t4"), e[6] = i, e[7] = u, e[8] = _) : _ = e[8];
|
|
3174
3175
|
const S = _;
|
|
3175
|
-
let
|
|
3176
|
-
e[9] !== f ? (
|
|
3176
|
+
let I;
|
|
3177
|
+
e[9] !== f ? (I = /* @__PURE__ */ r((de, Ne) => {
|
|
3177
3178
|
f?.(de, Ne);
|
|
3178
|
-
}, "t5"), e[9] = f, e[10] =
|
|
3179
|
-
const C =
|
|
3179
|
+
}, "t5"), e[9] = f, e[10] = I) : I = e[10];
|
|
3180
|
+
const C = I;
|
|
3180
3181
|
let A;
|
|
3181
3182
|
e[11] !== d ? (A = /* @__PURE__ */ r((de) => {
|
|
3182
3183
|
d?.(de);
|
|
3183
3184
|
}, "t6"), e[11] = d, e[12] = A) : A = e[12];
|
|
3184
3185
|
const O = A;
|
|
3185
|
-
let
|
|
3186
|
-
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3187
|
-
/* @__PURE__ */ c(
|
|
3188
|
-
/* @__PURE__ */ c(
|
|
3189
|
-
] }), "t7"), e[13] =
|
|
3190
|
-
const
|
|
3186
|
+
let B;
|
|
3187
|
+
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ r((de) => /* @__PURE__ */ J(Se, { children: [
|
|
3188
|
+
/* @__PURE__ */ c(en, { onClick: /* @__PURE__ */ r((Ne) => M(Ne, de), "onClick") }),
|
|
3189
|
+
/* @__PURE__ */ c(Zt, { onClick: /* @__PURE__ */ r((Ne) => N(Ne, de), "onClick") })
|
|
3190
|
+
] }), "t7"), e[13] = B) : B = e[13];
|
|
3191
|
+
const y = B, g = $.view?.viewType?.personal || "个人";
|
|
3191
3192
|
let Y;
|
|
3192
3193
|
e[14] !== s ? (Y = /* @__PURE__ */ r((de) => s(de), "t9"), e[14] = s, e[15] = Y) : Y = e[15];
|
|
3193
3194
|
let k;
|
|
3194
|
-
e[16] !== i || e[17] !== a || e[18] !== m || e[19] !== T || e[20] !== Y ? (k = /* @__PURE__ */ c(
|
|
3195
|
+
e[16] !== i || e[17] !== a || e[18] !== m || e[19] !== T || e[20] !== Y ? (k = /* @__PURE__ */ c(Kt, { views: T, activeView: i, countUrl: a, onSwitchView: Y, onGetRecordCount: m }), e[16] = i, e[17] = a, e[18] = m, e[19] = T, e[20] = Y, e[21] = k) : k = e[21];
|
|
3195
3196
|
let K;
|
|
3196
|
-
e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K =
|
|
3197
|
+
e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = y("PERSONAL"), e[22] = K) : K = e[22];
|
|
3197
3198
|
let U;
|
|
3198
|
-
e[23] !== k || e[24] !==
|
|
3199
|
+
e[23] !== k || e[24] !== g ? (U = {
|
|
3199
3200
|
key: "1",
|
|
3200
|
-
label:
|
|
3201
|
+
label: g,
|
|
3201
3202
|
children: k,
|
|
3202
3203
|
extra: K
|
|
3203
|
-
}, e[23] = k, e[24] =
|
|
3204
|
+
}, e[23] = k, e[24] = g, e[25] = U) : U = e[25];
|
|
3204
3205
|
const Z = $.view?.viewType?.shared || "公共";
|
|
3205
3206
|
let ee;
|
|
3206
3207
|
e[26] !== s ? (ee = /* @__PURE__ */ r((de) => s(de), "t14"), e[26] = s, e[27] = ee) : ee = e[27];
|
|
3207
3208
|
let j;
|
|
3208
|
-
e[28] !== i || e[29] !== a || e[30] !== m || e[31] !== v || e[32] !== ee ? (j = /* @__PURE__ */ c(
|
|
3209
|
+
e[28] !== i || e[29] !== a || e[30] !== m || e[31] !== v || e[32] !== ee ? (j = /* @__PURE__ */ c(Kt, { views: v, activeView: i, countUrl: a, onSwitchView: ee, onGetRecordCount: m }), e[28] = i, e[29] = a, e[30] = m, e[31] = v, e[32] = ee, e[33] = j) : j = e[33];
|
|
3209
3210
|
let ne;
|
|
3210
|
-
e[34] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne =
|
|
3211
|
+
e[34] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = y("SHARED"), e[34] = ne) : ne = e[34];
|
|
3211
3212
|
let te;
|
|
3212
3213
|
e[35] !== Z || e[36] !== j ? (te = {
|
|
3213
3214
|
key: "2",
|
|
@@ -3219,7 +3220,7 @@ function rr(t) {
|
|
|
3219
3220
|
e[38] !== U || e[39] !== te ? (ie = [U, te], e[38] = U, e[39] = te, e[40] = ie) : ie = e[40];
|
|
3220
3221
|
const re = ie;
|
|
3221
3222
|
let se;
|
|
3222
|
-
e[41] !== l ? (se = /* @__PURE__ */ c("div", { className:
|
|
3223
|
+
e[41] !== l ? (se = /* @__PURE__ */ c("div", { className: pe.title, children: l }), e[41] = l, e[42] = se) : se = e[42];
|
|
3223
3224
|
let ue;
|
|
3224
3225
|
e[43] !== o ? (ue = /* @__PURE__ */ r(() => {
|
|
3225
3226
|
o(!1);
|
|
@@ -3229,14 +3230,14 @@ function rr(t) {
|
|
|
3229
3230
|
let ae;
|
|
3230
3231
|
e[46] !== ue ? (ae = /* @__PURE__ */ c("div", { onClick: ue, children: oe }), e[46] = ue, e[47] = ae) : ae = e[47];
|
|
3231
3232
|
let le;
|
|
3232
|
-
e[48] !== se || e[49] !== ae ? (le = /* @__PURE__ */ J(Ae, { align: "center", justify: "space-between", className:
|
|
3233
|
+
e[48] !== se || e[49] !== ae ? (le = /* @__PURE__ */ J(Ae, { align: "center", justify: "space-between", className: pe.top, children: [
|
|
3233
3234
|
se,
|
|
3234
3235
|
ae
|
|
3235
3236
|
] }), e[48] = se, e[49] = ae, e[50] = le) : le = e[50];
|
|
3236
3237
|
let X;
|
|
3237
3238
|
e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = ["1", "2"], e[51] = X) : X = e[51];
|
|
3238
3239
|
let ce;
|
|
3239
|
-
e[52] !== re ? (ce = /* @__PURE__ */ c(
|
|
3240
|
+
e[52] !== re ? (ce = /* @__PURE__ */ c(Pn, { items: re, defaultActiveKey: X, className: pe.customCollapse }), e[52] = re, e[53] = ce) : ce = e[53];
|
|
3240
3241
|
let fe;
|
|
3241
3242
|
e[54] !== le || e[55] !== ce ? (fe = /* @__PURE__ */ J(Ae, { vertical: !0, gap: "16px", children: [
|
|
3242
3243
|
le,
|
|
@@ -3245,22 +3246,22 @@ function rr(t) {
|
|
|
3245
3246
|
let he;
|
|
3246
3247
|
e[57] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = /* @__PURE__ */ r(() => D(!1), "t27"), e[57] = he) : he = e[57];
|
|
3247
3248
|
let Ee;
|
|
3248
|
-
e[58] !== O || e[59] !== C || e[60] !==
|
|
3249
|
+
e[58] !== O || e[59] !== C || e[60] !== L || e[61] !== T ? (Ee = /* @__PURE__ */ c(jt, { viewType: "PERSONAL", views: T, open: L, onCancel: he, onEditViewName: C, onDeleteView: O }), e[58] = O, e[59] = C, e[60] = L, e[61] = T, e[62] = Ee) : Ee = e[62];
|
|
3249
3250
|
let q;
|
|
3250
3251
|
e[63] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = /* @__PURE__ */ r(() => R(!1), "t29"), e[63] = q) : q = e[63];
|
|
3251
3252
|
let ve;
|
|
3252
|
-
e[64] !== O || e[65] !== C || e[66] !== b || e[67] !== v ? (ve = /* @__PURE__ */ c(
|
|
3253
|
+
e[64] !== O || e[65] !== C || e[66] !== b || e[67] !== v ? (ve = /* @__PURE__ */ c(jt, { viewType: "SHARED", views: v, open: b, onCancel: q, onEditViewName: C, onDeleteView: O }), e[64] = O, e[65] = C, e[66] = b, e[67] = v, e[68] = ve) : ve = e[68];
|
|
3253
3254
|
let _e;
|
|
3254
3255
|
e[69] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ r(() => H(!1), "t31"), e[69] = _e) : _e = e[69];
|
|
3255
|
-
let
|
|
3256
|
-
e[70] !== x || e[71] !== S || e[72] !== w || e[73] !== P ? (
|
|
3256
|
+
let Ie;
|
|
3257
|
+
e[70] !== x || e[71] !== S || e[72] !== w || e[73] !== P ? (Ie = /* @__PURE__ */ c(An, { mode: P, open: w, defaultViewType: x, onSaveView: S, onCancel: _e }), e[70] = x, e[71] = S, e[72] = w, e[73] = P, e[74] = Ie) : Ie = e[74];
|
|
3257
3258
|
let qe;
|
|
3258
|
-
return e[75] !== fe || e[76] !== Ee || e[77] !== ve || e[78] !==
|
|
3259
|
+
return e[75] !== fe || e[76] !== Ee || e[77] !== ve || e[78] !== Ie ? (qe = /* @__PURE__ */ J(Te, { children: [
|
|
3259
3260
|
fe,
|
|
3260
3261
|
Ee,
|
|
3261
3262
|
ve,
|
|
3262
|
-
|
|
3263
|
-
] }), e[75] = fe, e[76] = Ee, e[77] = ve, e[78] =
|
|
3263
|
+
Ie
|
|
3264
|
+
] }), e[75] = fe, e[76] = Ee, e[77] = ve, e[78] = Ie, e[79] = qe) : qe = e[79], qe;
|
|
3264
3265
|
}
|
|
3265
3266
|
r(rr, "ViewPanel");
|
|
3266
3267
|
function sr(t) {
|
|
@@ -3271,7 +3272,7 @@ function or(t) {
|
|
|
3271
3272
|
return t.type === "PERSONAL";
|
|
3272
3273
|
}
|
|
3273
3274
|
r(or, "_temp$1");
|
|
3274
|
-
function
|
|
3275
|
+
function An(t) {
|
|
3275
3276
|
const e = G(39), {
|
|
3276
3277
|
mode: l,
|
|
3277
3278
|
open: n,
|
|
@@ -3290,17 +3291,17 @@ function Nn(t) {
|
|
|
3290
3291
|
let m, h;
|
|
3291
3292
|
e[1] !== a || e[2] !== i ? (m = /* @__PURE__ */ r(() => {
|
|
3292
3293
|
F.current?.setFieldValue("type", i || "PERSONAL"), F.current?.setFieldValue("name", a || "");
|
|
3293
|
-
}, "t1"), h = [i, a], e[1] = a, e[2] = i, e[3] = m, e[4] = h) : (m = e[3], h = e[4]),
|
|
3294
|
+
}, "t1"), h = [i, a], e[1] = a, e[2] = i, e[3] = m, e[4] = h) : (m = e[3], h = e[4]), ye(m, h);
|
|
3294
3295
|
let T;
|
|
3295
3296
|
e[5] !== o ? (T = /* @__PURE__ */ r(() => {
|
|
3296
3297
|
o?.();
|
|
3297
3298
|
}, "t3"), e[5] = o, e[6] = T) : T = e[6];
|
|
3298
3299
|
const E = T, v = u.personalView || "个人视图";
|
|
3299
|
-
let
|
|
3300
|
-
e[7] !== v ? (
|
|
3300
|
+
let L;
|
|
3301
|
+
e[7] !== v ? (L = {
|
|
3301
3302
|
label: v,
|
|
3302
3303
|
value: "PERSONAL"
|
|
3303
|
-
}, e[7] = v, e[8] =
|
|
3304
|
+
}, e[7] = v, e[8] = L) : L = e[8];
|
|
3304
3305
|
const D = u.sharedView || "公共视图";
|
|
3305
3306
|
let b;
|
|
3306
3307
|
e[9] !== D ? (b = {
|
|
@@ -3308,11 +3309,11 @@ function Nn(t) {
|
|
|
3308
3309
|
value: "SHARED"
|
|
3309
3310
|
}, e[9] = D, e[10] = b) : b = e[10];
|
|
3310
3311
|
let R;
|
|
3311
|
-
e[11] !==
|
|
3312
|
+
e[11] !== L || e[12] !== b ? (R = [L, b], e[11] = L, e[12] = b, e[13] = R) : R = e[13];
|
|
3312
3313
|
const P = R, F = De(null);
|
|
3313
3314
|
let w;
|
|
3314
|
-
e[14] !== s ? (w = /* @__PURE__ */ r((
|
|
3315
|
-
s?.(
|
|
3315
|
+
e[14] !== s ? (w = /* @__PURE__ */ r((y) => {
|
|
3316
|
+
s?.(y.name, y.type);
|
|
3316
3317
|
}, "t9"), e[14] = s, e[15] = w) : w = e[15];
|
|
3317
3318
|
const H = w, x = l === "Create" ? u.createViewMethod?.create || "创建视图" : u.createViewMethod?.saveAs || "另存为新视图";
|
|
3318
3319
|
let V;
|
|
@@ -3320,38 +3321,38 @@ function Nn(t) {
|
|
|
3320
3321
|
span: 5
|
|
3321
3322
|
}, e[16] = V) : V = e[16];
|
|
3322
3323
|
const $ = i || "PERSONAL";
|
|
3323
|
-
let
|
|
3324
|
-
e[17] !== $ ? (
|
|
3324
|
+
let p;
|
|
3325
|
+
e[17] !== $ ? (p = {
|
|
3325
3326
|
type: $
|
|
3326
|
-
}, e[17] = $, e[18] =
|
|
3327
|
+
}, e[17] = $, e[18] = p) : p = e[18];
|
|
3327
3328
|
const M = u.view?.viewType?.name || "视图类型";
|
|
3328
3329
|
let W;
|
|
3329
3330
|
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = [{
|
|
3330
3331
|
required: !0
|
|
3331
3332
|
}], e[19] = W) : W = e[19];
|
|
3332
3333
|
let N;
|
|
3333
|
-
e[20] !== P ? (N = /* @__PURE__ */ c(
|
|
3334
|
+
e[20] !== P ? (N = /* @__PURE__ */ c($n.Group, { options: P, optionType: "button" }), e[20] = P, e[21] = N) : N = e[21];
|
|
3334
3335
|
let _;
|
|
3335
3336
|
e[22] !== M || e[23] !== N ? (_ = /* @__PURE__ */ c(mt.Item, { label: M, name: "type", rules: W, children: N }), e[22] = M, e[23] = N, e[24] = _) : _ = e[24];
|
|
3336
3337
|
const S = u.view?.viewName || "视图名称";
|
|
3337
|
-
let
|
|
3338
|
-
e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3338
|
+
let I, C;
|
|
3339
|
+
e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = [{
|
|
3339
3340
|
required: !0
|
|
3340
3341
|
}, {
|
|
3341
3342
|
type: "string",
|
|
3342
3343
|
min: 1
|
|
3343
|
-
}], C = /* @__PURE__ */ c(Ke, {}), e[25] =
|
|
3344
|
+
}], C = /* @__PURE__ */ c(Ke, {}), e[25] = I, e[26] = C) : (I = e[25], C = e[26]);
|
|
3344
3345
|
let A;
|
|
3345
|
-
e[27] !== S ? (A = /* @__PURE__ */ c(mt.Item, { label: S, name: "name", rules:
|
|
3346
|
+
e[27] !== S ? (A = /* @__PURE__ */ c(mt.Item, { label: S, name: "name", rules: I, children: C }), e[27] = S, e[28] = A) : A = e[28];
|
|
3346
3347
|
let O;
|
|
3347
|
-
e[29] !== H || e[30] !==
|
|
3348
|
+
e[29] !== H || e[30] !== p || e[31] !== _ || e[32] !== A ? (O = /* @__PURE__ */ J(mt, { ref: F, name: "basic", labelCol: V, initialValues: p, onFinish: H, autoComplete: "off", children: [
|
|
3348
3349
|
_,
|
|
3349
3350
|
A
|
|
3350
|
-
] }), e[29] = H, e[30] =
|
|
3351
|
-
let
|
|
3352
|
-
return e[34] !== E || e[35] !== n || e[36] !== x || e[37] !== O ? (
|
|
3351
|
+
] }), e[29] = H, e[30] = p, e[31] = _, e[32] = A, e[33] = O) : O = e[33];
|
|
3352
|
+
let B;
|
|
3353
|
+
return e[34] !== E || e[35] !== n || e[36] !== x || e[37] !== O ? (B = /* @__PURE__ */ c(st, { title: x, open: n, onOk: d, okText: "确认", onCancel: E, cancelText: "取消", children: O }), e[34] = E, e[35] = n, e[36] = x, e[37] = O, e[38] = B) : B = e[38], B;
|
|
3353
3354
|
}
|
|
3354
|
-
r(
|
|
3355
|
+
r(An, "SaveViewModal");
|
|
3355
3356
|
function cr(t) {
|
|
3356
3357
|
const e = G(16), {
|
|
3357
3358
|
view: l,
|
|
@@ -3380,7 +3381,7 @@ function cr(t) {
|
|
|
3380
3381
|
return e[7] !== n || e[8] !== h || e[9] !== E || e[10] !== d || e[11] !== o || e[12] !== i || e[13] !== l || e[14] !== u ? (v = /* @__PURE__ */ c(Te, { children: n ? /* @__PURE__ */ J(Ae, { align: "center", justify: "space-between", gap: 12, style: {
|
|
3381
3382
|
width: "100%"
|
|
3382
3383
|
}, children: [
|
|
3383
|
-
/* @__PURE__ */ c(Ke, { value: u, onChange: /* @__PURE__ */ r((
|
|
3384
|
+
/* @__PURE__ */ c(Ke, { value: u, onChange: /* @__PURE__ */ r((L) => f(L.target.value), "onChange") }),
|
|
3384
3385
|
/* @__PURE__ */ J(Se, { orientation: "horizontal", children: [
|
|
3385
3386
|
/* @__PURE__ */ c(me, { type: "default", size: "small", onClick: h, children: d.viewPanel?.cancelButton || "取消" }),
|
|
3386
3387
|
/* @__PURE__ */ c(me, { type: "primary", size: "small", onClick: E, children: d.viewPanel?.saveButton || "保存" })
|
|
@@ -3388,7 +3389,7 @@ function cr(t) {
|
|
|
3388
3389
|
] }) : /* @__PURE__ */ J(Ae, { align: "center", justify: "space-between", gap: 12, style: {
|
|
3389
3390
|
width: "100%"
|
|
3390
3391
|
}, children: [
|
|
3391
|
-
/* @__PURE__ */ c(
|
|
3392
|
+
/* @__PURE__ */ c(Jt, { style: {
|
|
3392
3393
|
color: l.source === "SYSTEM" ? "rgba(0,0,0,0.25)" : ""
|
|
3393
3394
|
} }),
|
|
3394
3395
|
/* @__PURE__ */ c("span", { style: {
|
|
@@ -3397,12 +3398,12 @@ function cr(t) {
|
|
|
3397
3398
|
}, children: u }),
|
|
3398
3399
|
l.source === "CUSTOM" ? /* @__PURE__ */ J(Se, { orientation: "horizontal", children: [
|
|
3399
3400
|
/* @__PURE__ */ c(Jn, { onClick: /* @__PURE__ */ r(() => i(l), "onClick") }),
|
|
3400
|
-
/* @__PURE__ */ c(
|
|
3401
|
-
] }) : /* @__PURE__ */ c(
|
|
3401
|
+
/* @__PURE__ */ c(xn, { title: "确认删除此视图?", description: "视图删除后不可恢复,其数据不受影响,是否确认删除?", onConfirm: /* @__PURE__ */ r(() => o(l), "onConfirm"), okText: "确认", cancelText: "取消", children: /* @__PURE__ */ c(el, {}) })
|
|
3402
|
+
] }) : /* @__PURE__ */ c(pt, { children: "系统" })
|
|
3402
3403
|
] }) }), e[7] = n, e[8] = h, e[9] = E, e[10] = d, e[11] = o, e[12] = i, e[13] = l, e[14] = u, e[15] = v) : v = e[15], v;
|
|
3403
3404
|
}
|
|
3404
3405
|
r(cr, "ViewManageItem");
|
|
3405
|
-
function
|
|
3406
|
+
function jt(t) {
|
|
3406
3407
|
const e = G(27), {
|
|
3407
3408
|
viewType: l,
|
|
3408
3409
|
views: n,
|
|
@@ -3423,7 +3424,7 @@ function Kt(t) {
|
|
|
3423
3424
|
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ r(() => {
|
|
3424
3425
|
f(null);
|
|
3425
3426
|
}, "t2"), e[4] = v) : v = e[4];
|
|
3426
|
-
const
|
|
3427
|
+
const L = v;
|
|
3427
3428
|
let D;
|
|
3428
3429
|
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ r((M) => {
|
|
3429
3430
|
f(M);
|
|
@@ -3450,15 +3451,15 @@ function Kt(t) {
|
|
|
3450
3451
|
let V;
|
|
3451
3452
|
if (e[11] !== P || e[12] !== w || e[13] !== m || e[14] !== n) {
|
|
3452
3453
|
let M;
|
|
3453
|
-
e[16] !== P || e[17] !== w || e[18] !== m ? (M = /* @__PURE__ */ r((W) => /* @__PURE__ */ c(cr, { editing: m(W), onCancel:
|
|
3454
|
+
e[16] !== P || e[17] !== w || e[18] !== m ? (M = /* @__PURE__ */ r((W) => /* @__PURE__ */ c(cr, { editing: m(W), onCancel: L, onDelete: P, onEdit: b, onSave: w, view: W }), "t92"), e[16] = P, e[17] = w, e[18] = m, e[19] = M) : M = e[19], V = n.map(M), e[11] = P, e[12] = w, e[13] = m, e[14] = n, e[15] = V;
|
|
3454
3455
|
} else
|
|
3455
3456
|
V = e[15];
|
|
3456
3457
|
let $;
|
|
3457
3458
|
e[20] !== V ? ($ = /* @__PURE__ */ c(Se, { orientation: "vertical", size: 12, style: x, children: V }), e[20] = V, e[21] = $) : $ = e[21];
|
|
3458
|
-
let
|
|
3459
|
-
return e[22] !== E || e[23] !== i || e[24] !== H || e[25] !== $ ? (
|
|
3459
|
+
let p;
|
|
3460
|
+
return e[22] !== E || e[23] !== i || e[24] !== H || e[25] !== $ ? (p = /* @__PURE__ */ c(st, { title: H, open: i, onOk: h, okText: "确认", cancelText: "取消", onCancel: E, children: $ }), e[22] = E, e[23] = i, e[24] = H, e[25] = $, e[26] = p) : p = e[26], p;
|
|
3460
3461
|
}
|
|
3461
|
-
r(
|
|
3462
|
+
r(jt, "ViewManageModal");
|
|
3462
3463
|
function ur() {
|
|
3463
3464
|
}
|
|
3464
3465
|
r(ur, "_temp");
|
|
@@ -3495,7 +3496,7 @@ function hr(t) {
|
|
|
3495
3496
|
const {
|
|
3496
3497
|
activeView: E,
|
|
3497
3498
|
showFilter: v,
|
|
3498
|
-
setShowFilter:
|
|
3499
|
+
setShowFilter: L,
|
|
3499
3500
|
showViewPanel: D,
|
|
3500
3501
|
setShowViewPanel: b,
|
|
3501
3502
|
viewChanged: R,
|
|
@@ -3506,21 +3507,21 @@ function hr(t) {
|
|
|
3506
3507
|
page: x,
|
|
3507
3508
|
setPage: V,
|
|
3508
3509
|
pageSize: $,
|
|
3509
|
-
setPageSize:
|
|
3510
|
+
setPageSize: p,
|
|
3510
3511
|
tableSize: M,
|
|
3511
3512
|
setTableSize: W,
|
|
3512
3513
|
condition: N,
|
|
3513
3514
|
setCondition: _,
|
|
3514
3515
|
sorter: S,
|
|
3515
|
-
setSorter:
|
|
3516
|
+
setSorter: I,
|
|
3516
3517
|
onSwitchView: C,
|
|
3517
3518
|
views: A,
|
|
3518
3519
|
setViews: O,
|
|
3519
|
-
reset:
|
|
3520
|
+
reset: B
|
|
3520
3521
|
} = Tr(T);
|
|
3521
|
-
let
|
|
3522
|
-
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3523
|
-
const [
|
|
3522
|
+
let y;
|
|
3523
|
+
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = [], e[17] = y) : y = e[17];
|
|
3524
|
+
const [g, Y] = Q(y), k = De(null);
|
|
3524
3525
|
let K;
|
|
3525
3526
|
e[18] !== s || e[19] !== d || e[20] !== O || e[21] !== C || e[22] !== A ? (K = /* @__PURE__ */ r((q, ve) => {
|
|
3526
3527
|
console.log("onCreateView", q), s?.(q, (_e) => {
|
|
@@ -3531,14 +3532,14 @@ function hr(t) {
|
|
|
3531
3532
|
let Z;
|
|
3532
3533
|
e[24] !== m || e[25] !== O || e[26] !== C || e[27] !== A ? (Z = /* @__PURE__ */ r((q, ve) => {
|
|
3533
3534
|
console.log("onUpdateView", q), m?.(q, (_e) => {
|
|
3534
|
-
O(A.map((
|
|
3535
|
+
O(A.map((Ie) => Ie.id === _e.id ? _e : Ie)), C(_e), ve?.();
|
|
3535
3536
|
});
|
|
3536
3537
|
}, "t4"), e[24] = m, e[25] = O, e[26] = C, e[27] = A, e[28] = Z) : Z = e[28];
|
|
3537
3538
|
const ee = Z;
|
|
3538
3539
|
let j;
|
|
3539
3540
|
e[29] !== E.id || e[30] !== o || e[31] !== d || e[32] !== O || e[33] !== C || e[34] !== A ? (j = /* @__PURE__ */ r((q, ve) => {
|
|
3540
3541
|
console.log("onDeleteView", q), o?.(q, (_e) => {
|
|
3541
|
-
O(A.filter((
|
|
3542
|
+
O(A.filter((Ie) => Ie.id !== _e.id)), E.id === _e.id && (C(A[0]), d?.(A[0])), ve?.();
|
|
3542
3543
|
});
|
|
3543
3544
|
}, "t5"), e[29] = E.id, e[30] = o, e[31] = d, e[32] = O, e[33] = C, e[34] = A, e[35] = j) : j = e[35];
|
|
3544
3545
|
const ne = j;
|
|
@@ -3553,10 +3554,10 @@ function hr(t) {
|
|
|
3553
3554
|
}, "t7"), e[38] = f, e[39] = d, e[40] = C, e[41] = re) : re = e[41];
|
|
3554
3555
|
const se = re;
|
|
3555
3556
|
let ue;
|
|
3556
|
-
e[42] !== f || e[43] !==
|
|
3557
|
-
const q =
|
|
3557
|
+
e[42] !== f || e[43] !== B ? (ue = /* @__PURE__ */ r(() => {
|
|
3558
|
+
const q = B();
|
|
3558
3559
|
k.current?.reset(), f?.(q.condition, 1, q.pageSize, q.sorter);
|
|
3559
|
-
}, "t8"), e[42] = f, e[43] =
|
|
3560
|
+
}, "t8"), e[42] = f, e[43] = B, e[44] = ue) : ue = e[44];
|
|
3560
3561
|
const oe = ue;
|
|
3561
3562
|
let ae;
|
|
3562
3563
|
e[45] !== E || e[46] !== a.countUrl || e[47] !== a.name || e[48] !== U || e[49] !== ne || e[50] !== ie || e[51] !== se || e[52] !== ee || e[53] !== u || e[54] !== D || e[55] !== A ? (ae = D && /* @__PURE__ */ c(dr, { className: Ye.userViews, width: 220, children: /* @__PURE__ */ c(rr, { name: a.name, views: A, activeView: E, countUrl: a.countUrl, onSwitchView: se, onShowViewPanelChange: ie, onGetRecordCount: u, onCreateView: U, onUpdateView: ee, onDeleteView: ne }) }), e[45] = E, e[46] = a.countUrl, e[47] = a.name, e[48] = U, e[49] = ne, e[50] = ie, e[51] = se, e[52] = ee, e[53] = u, e[54] = D, e[55] = A, e[56] = ae) : ae = e[56];
|
|
@@ -3565,10 +3566,10 @@ function hr(t) {
|
|
|
3565
3566
|
display: "flex"
|
|
3566
3567
|
}, e[57] = le) : le = e[57];
|
|
3567
3568
|
let X;
|
|
3568
|
-
e[58] !== E || e[59] !== a.name || e[60] !== U || e[61] !== ne || e[62] !== oe || e[63] !== ee || e[64] !== h.batchActions || e[65] !== h.primaryAction || e[66] !== h.secondaryActions || e[67] !==
|
|
3569
|
+
e[58] !== E || e[59] !== a.name || e[60] !== U || e[61] !== ne || e[62] !== oe || e[63] !== ee || e[64] !== h.batchActions || e[65] !== h.primaryAction || e[66] !== h.secondaryActions || e[67] !== L || e[68] !== b || e[69] !== W || e[70] !== v || e[71] !== D || e[72] !== g || e[73] !== R || e[74] !== A ? (X = /* @__PURE__ */ c(fr, { className: Ye.topBar, children: /* @__PURE__ */ c(Ha, { tableSelectedItems: g, title: a.name, activeView: E, views: A, defaultTableSize: E.tableSize, primaryAction: h.primaryAction, secondaryActions: h.secondaryActions, batchActions: h.batchActions, viewChanged: R, onReset: oe, showViewPanel: D, showFilter: v, onShowFilterChange: L, onShowViewPanelChange: b, onTableSizeChange: W, onCreateView: U, onUpdateView: ee, onDeleteView: ne }) }), e[58] = E, e[59] = a.name, e[60] = U, e[61] = ne, e[62] = oe, e[63] = ee, e[64] = h.batchActions, e[65] = h.primaryAction, e[66] = h.secondaryActions, e[67] = L, e[68] = b, e[69] = W, e[70] = v, e[71] = D, e[72] = g, e[73] = R, e[74] = A, e[75] = X) : X = e[75];
|
|
3569
3570
|
const ce = h.enableRowSelection ?? !0;
|
|
3570
3571
|
let fe;
|
|
3571
|
-
e[76] !== w || e[77] !== E.id || e[78] !== P || e[79] !== N || e[80] !== a.availableFilters || e[81] !== a.fields || e[82] !== f || e[83] !== h.actionColumn || e[84] !== h.dataSource || e[85] !== h.loading || e[86] !== h.onClickPrimaryKey || e[87] !== h.pagination || e[88] !== h.viewTableSetting || e[89] !== x || e[90] !== $ || e[91] !== H || e[92] !== F || e[93] !== _ || e[94] !== V || e[95] !==
|
|
3572
|
+
e[76] !== w || e[77] !== E.id || e[78] !== P || e[79] !== N || e[80] !== a.availableFilters || e[81] !== a.fields || e[82] !== f || e[83] !== h.actionColumn || e[84] !== h.dataSource || e[85] !== h.loading || e[86] !== h.onClickPrimaryKey || e[87] !== h.pagination || e[88] !== h.viewTableSetting || e[89] !== x || e[90] !== $ || e[91] !== H || e[92] !== F || e[93] !== _ || e[94] !== V || e[95] !== p || e[96] !== I || e[97] !== W || e[98] !== v || e[99] !== S || e[100] !== ce || e[101] !== M ? (fe = /* @__PURE__ */ c(Ya, { ref: k, fields: a.fields, availableFilters: a.availableFilters, dataSource: h.dataSource, enableRowSelection: ce, loading: h.loading, filterMode: "editable", pagination: h.pagination, showFilter: v, viewTableSetting: h.viewTableSetting, actionColumn: h.actionColumn, onClickPrimaryKey: h.onClickPrimaryKey, onSelectedDataChange: Y, defaultActiveFilters: w, externalActiveFilters: w, externalUpdateActiveFilters: H, defaultColumns: P, externalColumns: P, externalUpdateColumns: F, defaultPage: x, externalPage: x, externalUpdatePage: V, defaultPageSize: $, externalPageSize: $, externalUpdatePageSize: p, defaultTableSize: M, externalTableSize: M, externalUpdateTableSize: W, defaultCondition: N, externalCondition: N, externalUpdateCondition: _, defaultSorter: S, externalSorter: S, externalUpdateSorter: I, onChange: f }, E.id), e[76] = w, e[77] = E.id, e[78] = P, e[79] = N, e[80] = a.availableFilters, e[81] = a.fields, e[82] = f, e[83] = h.actionColumn, e[84] = h.dataSource, e[85] = h.loading, e[86] = h.onClickPrimaryKey, e[87] = h.pagination, e[88] = h.viewTableSetting, e[89] = x, e[90] = $, e[91] = H, e[92] = F, e[93] = _, e[94] = V, e[95] = p, e[96] = I, e[97] = W, e[98] = v, e[99] = S, e[100] = ce, e[101] = M, e[102] = fe) : fe = e[102];
|
|
3572
3573
|
let he;
|
|
3573
3574
|
e[103] !== X || e[104] !== fe ? (he = /* @__PURE__ */ c(Ct, { className: Ye.container, children: /* @__PURE__ */ c(mr, { children: /* @__PURE__ */ J(Se, { orientation: "vertical", style: le, size: "small", children: [
|
|
3574
3575
|
X,
|
|
@@ -3591,7 +3592,7 @@ function Tr({
|
|
|
3591
3592
|
setColumns: T,
|
|
3592
3593
|
page: E,
|
|
3593
3594
|
setPage: v,
|
|
3594
|
-
pageSize:
|
|
3595
|
+
pageSize: L,
|
|
3595
3596
|
setPageSize: D,
|
|
3596
3597
|
activeFilters: b,
|
|
3597
3598
|
setActiveFilters: R,
|
|
@@ -3601,62 +3602,62 @@ function Tr({
|
|
|
3601
3602
|
setCondition: H,
|
|
3602
3603
|
sorter: x,
|
|
3603
3604
|
setSorter: V
|
|
3604
|
-
} =
|
|
3605
|
+
} = Cn({
|
|
3605
3606
|
defaultColumns: s.columns,
|
|
3606
3607
|
defaultPageSize: s.pageSize,
|
|
3607
3608
|
defaultActiveFilters: s.filters,
|
|
3608
3609
|
defaultTableSize: s.tableSize,
|
|
3609
3610
|
defaultCondition: s.condition,
|
|
3610
3611
|
defaultSorter: s.sorter
|
|
3611
|
-
}), [$,
|
|
3612
|
-
return
|
|
3613
|
-
|
|
3612
|
+
}), [$, p] = Q(!1);
|
|
3613
|
+
return ye(() => {
|
|
3614
|
+
p(!At(s, n.current));
|
|
3614
3615
|
}, [s]), {
|
|
3615
3616
|
activeView: s,
|
|
3616
3617
|
showFilter: u,
|
|
3617
|
-
setShowFilter: /* @__PURE__ */ r((
|
|
3618
|
-
f(
|
|
3618
|
+
setShowFilter: /* @__PURE__ */ r((y) => {
|
|
3619
|
+
f(y);
|
|
3619
3620
|
}, "setShowFilterFn"),
|
|
3620
3621
|
showViewPanel: d,
|
|
3621
|
-
setShowViewPanel: /* @__PURE__ */ r((
|
|
3622
|
-
m(
|
|
3622
|
+
setShowViewPanel: /* @__PURE__ */ r((y) => {
|
|
3623
|
+
m(y);
|
|
3623
3624
|
}, "setShowViewPanelFn"),
|
|
3624
3625
|
columns: h,
|
|
3625
|
-
setColumns: /* @__PURE__ */ r((
|
|
3626
|
-
T(
|
|
3626
|
+
setColumns: /* @__PURE__ */ r((y) => {
|
|
3627
|
+
T(y), o({
|
|
3627
3628
|
...s,
|
|
3628
|
-
columns:
|
|
3629
|
+
columns: y
|
|
3629
3630
|
});
|
|
3630
3631
|
}, "setColumnsFn"),
|
|
3631
3632
|
page: E,
|
|
3632
3633
|
setPage: v,
|
|
3633
|
-
pageSize:
|
|
3634
|
-
setPageSize: /* @__PURE__ */ r((
|
|
3635
|
-
D(
|
|
3634
|
+
pageSize: L,
|
|
3635
|
+
setPageSize: /* @__PURE__ */ r((y) => {
|
|
3636
|
+
D(y), o({
|
|
3636
3637
|
...s,
|
|
3637
|
-
pageSize:
|
|
3638
|
+
pageSize: y
|
|
3638
3639
|
});
|
|
3639
3640
|
}, "setPageSizeFn"),
|
|
3640
3641
|
activeFilters: b,
|
|
3641
|
-
setActiveFilters: /* @__PURE__ */ r((
|
|
3642
|
-
R(
|
|
3642
|
+
setActiveFilters: /* @__PURE__ */ r((y) => {
|
|
3643
|
+
R(y), o({
|
|
3643
3644
|
...s,
|
|
3644
|
-
filters:
|
|
3645
|
+
filters: y
|
|
3645
3646
|
});
|
|
3646
3647
|
}, "setActiveFiltersFn"),
|
|
3647
3648
|
tableSize: P,
|
|
3648
|
-
setTableSize: /* @__PURE__ */ r((
|
|
3649
|
-
F(
|
|
3649
|
+
setTableSize: /* @__PURE__ */ r((y) => {
|
|
3650
|
+
F(y), o({
|
|
3650
3651
|
...s,
|
|
3651
|
-
tableSize:
|
|
3652
|
+
tableSize: y
|
|
3652
3653
|
});
|
|
3653
3654
|
}, "setTableSizeFn"),
|
|
3654
3655
|
condition: w,
|
|
3655
|
-
setCondition: /* @__PURE__ */ r((
|
|
3656
|
-
H(
|
|
3657
|
-
const
|
|
3658
|
-
if (
|
|
3659
|
-
const k =
|
|
3656
|
+
setCondition: /* @__PURE__ */ r((y) => {
|
|
3657
|
+
H(y);
|
|
3658
|
+
const g = b.map((Y) => {
|
|
3659
|
+
if (y.operator === z.AND) {
|
|
3660
|
+
const k = y.children?.find(
|
|
3660
3661
|
(K) => K.field === Y.field.name
|
|
3661
3662
|
);
|
|
3662
3663
|
return k ? {
|
|
@@ -3668,34 +3669,34 @@ function Tr({
|
|
|
3668
3669
|
value: null,
|
|
3669
3670
|
operator: null
|
|
3670
3671
|
};
|
|
3671
|
-
} else return
|
|
3672
|
+
} else return y.field === Y.field.name ? {
|
|
3672
3673
|
...Y,
|
|
3673
|
-
value: { defaultValue:
|
|
3674
|
-
operator: { defaultValue:
|
|
3674
|
+
value: { defaultValue: y.value },
|
|
3675
|
+
operator: { defaultValue: y.operator }
|
|
3675
3676
|
} : {
|
|
3676
3677
|
...Y,
|
|
3677
3678
|
value: null,
|
|
3678
3679
|
operator: null
|
|
3679
3680
|
};
|
|
3680
3681
|
});
|
|
3681
|
-
R(
|
|
3682
|
+
R(g), o({
|
|
3682
3683
|
...s,
|
|
3683
|
-
condition:
|
|
3684
|
-
filters:
|
|
3684
|
+
condition: y,
|
|
3685
|
+
filters: g
|
|
3685
3686
|
});
|
|
3686
3687
|
}, "setConditionFn"),
|
|
3687
3688
|
sorter: x,
|
|
3688
|
-
setSorter: /* @__PURE__ */ r((
|
|
3689
|
-
V(
|
|
3689
|
+
setSorter: /* @__PURE__ */ r((y) => {
|
|
3690
|
+
V(y), o({
|
|
3690
3691
|
...s,
|
|
3691
|
-
sorter:
|
|
3692
|
+
sorter: y
|
|
3692
3693
|
});
|
|
3693
3694
|
}, "setSorterFn"),
|
|
3694
3695
|
viewChanged: $,
|
|
3695
3696
|
views: i,
|
|
3696
3697
|
setViews: a,
|
|
3697
|
-
onSwitchView: /* @__PURE__ */ r((
|
|
3698
|
-
n.current =
|
|
3698
|
+
onSwitchView: /* @__PURE__ */ r((y) => {
|
|
3699
|
+
n.current = y, o(y), v(1), D(y.pageSize), T(y.columns), H(y.condition || xe()), R(y.filters), F(y.tableSize), V(y.sorter || []);
|
|
3699
3700
|
}, "onSwitchViewFn"),
|
|
3700
3701
|
reset: /* @__PURE__ */ r(() => (o(n.current), v(1), D(n.current.pageSize), T(n.current.columns), R(n.current.filters), H(n.current.condition || xe()), F(n.current.tableSize), V(n.current.sorter || []), n.current), "resetFn")
|
|
3701
3702
|
};
|
|
@@ -3706,15 +3707,15 @@ export {
|
|
|
3706
3707
|
Ni as ACTION_CELL_TYPE,
|
|
3707
3708
|
Oi as AVATAR_CELL_TYPE,
|
|
3708
3709
|
Be as ActionCell,
|
|
3709
|
-
|
|
3710
|
+
vn as ActionsCell,
|
|
3710
3711
|
Me as AssemblyFilter,
|
|
3711
|
-
|
|
3712
|
+
La as AutoRefreshBarItem,
|
|
3712
3713
|
kl as AvailableFilterSelect,
|
|
3713
3714
|
Ul as AvailableFilterSelectModal,
|
|
3714
3715
|
Di as AvatarCell,
|
|
3715
3716
|
ti as BOOL_FILTER,
|
|
3716
3717
|
ke as BarItem,
|
|
3717
|
-
|
|
3718
|
+
dn as BoolFilter,
|
|
3718
3719
|
Vi as CALENDAR_CELL_TYPE,
|
|
3719
3720
|
la as CURRENCY_CELL_TYPE,
|
|
3720
3721
|
ki as CalendarTimeCell,
|
|
@@ -3722,28 +3723,28 @@ export {
|
|
|
3722
3723
|
ia as CurrencyCell,
|
|
3723
3724
|
xi as DATETIME_CELL_TYPE,
|
|
3724
3725
|
Mi as DEFAULT_CALENDAR_FORMATS,
|
|
3725
|
-
|
|
3726
|
+
Sn as DEFAULT_CONDITION,
|
|
3726
3727
|
Oe as DEFAULT_CURRENCY_FORMAT_OPTIONS,
|
|
3727
3728
|
et as DEFAULT_DATE_TIME_FORMAT,
|
|
3728
|
-
|
|
3729
|
+
yn as DateTimeCell,
|
|
3729
3730
|
Ci as EditableFilterPanel,
|
|
3730
3731
|
Ge as ExtendedOperator,
|
|
3731
|
-
|
|
3732
|
+
Tn as FallbackFilter,
|
|
3732
3733
|
Or as FetcherViewer,
|
|
3733
3734
|
Fa as FilterBarItem,
|
|
3734
|
-
|
|
3735
|
+
_n as FilterPanel,
|
|
3735
3736
|
El as Fullscreen,
|
|
3736
3737
|
Ql as ID_FILTER,
|
|
3737
3738
|
Yi as IMAGE_CELL_TYPE,
|
|
3738
3739
|
Gi as IMAGE_GROUP_CELL_TYPE,
|
|
3739
|
-
|
|
3740
|
+
cn as IdFilter,
|
|
3740
3741
|
Xl as IdOnOperatorChangeValueConverter,
|
|
3741
3742
|
Wi as ImageCell,
|
|
3742
3743
|
Ki as ImageGroupCell,
|
|
3743
3744
|
qi as LINK_CELL_TYPE,
|
|
3744
3745
|
Zi as LinkCell,
|
|
3745
3746
|
Zl as NUMBER_FILTER,
|
|
3746
|
-
|
|
3747
|
+
un as NumberFilter,
|
|
3747
3748
|
ml as NumberRange,
|
|
3748
3749
|
fl as NumberTagValueItemSerializer,
|
|
3749
3750
|
$l as OPERATOR_zh_CN,
|
|
@@ -3752,62 +3753,62 @@ export {
|
|
|
3752
3753
|
Tl as RemoteSelect,
|
|
3753
3754
|
mi as RemovableTypedFilter,
|
|
3754
3755
|
ei as SELECT_FILTER,
|
|
3755
|
-
|
|
3756
|
-
|
|
3756
|
+
An as SaveViewModal,
|
|
3757
|
+
fn as SelectFilter,
|
|
3757
3758
|
xa as ShareLinkBarItem,
|
|
3758
3759
|
ul as StringTagValueItemSerializer,
|
|
3759
3760
|
gi as TAGS_CELL_TYPE,
|
|
3760
3761
|
zi as TAG_CELL_TYPE,
|
|
3761
3762
|
Ui as TEXT_CELL_TYPE,
|
|
3762
3763
|
ql as TEXT_FILTER,
|
|
3763
|
-
|
|
3764
|
+
gt as TableFieldItem,
|
|
3764
3765
|
fa as TableSettingPanel,
|
|
3765
|
-
|
|
3766
|
+
Nn as TagCell,
|
|
3766
3767
|
ut as TagInput,
|
|
3767
3768
|
Bi as TagsCell,
|
|
3768
3769
|
In as TextCell,
|
|
3769
|
-
|
|
3770
|
+
on as TextFilter,
|
|
3770
3771
|
Ha as TopBar,
|
|
3771
3772
|
gl as TrueValidateValue,
|
|
3772
3773
|
it as TypedComponentRegistry,
|
|
3773
3774
|
Nt as TypedFilter,
|
|
3774
|
-
|
|
3775
|
+
Lt as VIEWER_BOUNDED_CONTEXT_ALIAS,
|
|
3775
3776
|
Ya as View,
|
|
3776
3777
|
ze as ViewAggregatedFields,
|
|
3777
|
-
|
|
3778
|
+
Le as ViewCommandClient,
|
|
3778
3779
|
Cl as ViewCommandEndpointPaths,
|
|
3779
|
-
|
|
3780
|
+
yl as ViewDomainEventTypeMapTitle,
|
|
3780
3781
|
ar as ViewItem,
|
|
3781
|
-
|
|
3782
|
+
Kt as ViewItemGroup,
|
|
3782
3783
|
cr as ViewManageItem,
|
|
3783
|
-
|
|
3784
|
+
jt as ViewManageModal,
|
|
3784
3785
|
rr as ViewPanel,
|
|
3785
|
-
|
|
3786
|
-
|
|
3786
|
+
Pt as ViewStreamCommandClient,
|
|
3787
|
+
Ia as ViewTable,
|
|
3787
3788
|
hr as Viewer,
|
|
3788
|
-
|
|
3789
|
+
pl as ViewerDefinitionAggregatedFields,
|
|
3789
3790
|
Nl as ViewerDefinitionDomainEventTypeMapTitle,
|
|
3790
3791
|
aa as cellRegistry,
|
|
3791
3792
|
Dr as currentTimeZone,
|
|
3792
3793
|
At as deepEqual,
|
|
3793
3794
|
oi as filterRegistry,
|
|
3794
3795
|
ea as formatCurrency,
|
|
3795
|
-
|
|
3796
|
+
Ut as isActionCellProps,
|
|
3796
3797
|
bi as isNullOrUndefined,
|
|
3797
3798
|
zl as isValidBetweenValue,
|
|
3798
3799
|
Ri as isValidImageSrc,
|
|
3799
|
-
|
|
3800
|
+
xt as isValidValue,
|
|
3800
3801
|
va as mapToTableRecord,
|
|
3801
|
-
|
|
3802
|
+
Li as parseDayjs,
|
|
3802
3803
|
ra as typedCellRender,
|
|
3803
|
-
|
|
3804
|
+
Cn as useActiveViewState,
|
|
3804
3805
|
Rl as useFetchData,
|
|
3805
3806
|
Kl as useFilterState,
|
|
3806
3807
|
Re as useLocale,
|
|
3807
3808
|
Rt as useRefreshDataEventBus,
|
|
3808
3809
|
Qa as useViewState,
|
|
3809
3810
|
Aa as useViewTableState,
|
|
3810
|
-
|
|
3811
|
+
Ll as useViewerDefinition,
|
|
3811
3812
|
Tr as useViewerState,
|
|
3812
3813
|
bl as useViewerViews,
|
|
3813
3814
|
Rr as viewQueryClientFactory,
|