@farris/ui-vue 1.6.5 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/avatar/index.esm.js +1 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +2 -2
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +7 -5
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +1 -1
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +3 -2
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +1 -1
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +498 -495
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +833 -832
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1 -1
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +3 -2
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1 -1
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +256 -254
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-bar/index.esm.js +416 -394
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +388 -386
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +1 -1
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +77 -76
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +4 -2
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +118 -118
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +80 -81
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +237 -237
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +1 -1
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +9 -3
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +114 -112
- package/components/order/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1 -1
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +1 -1
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +485 -463
- package/components/query-solution/index.umd.cjs +3 -3
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +1 -1
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +544 -545
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +6 -4
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/section/index.esm.js +1 -1
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +9 -7
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +77 -78
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +5 -3
- package/components/tabs/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +1 -1
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +2 -2
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/video/index.esm.js +1 -1
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.esm.js +211 -211
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/checkbox/index.esm.js +1 -1
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +25 -26
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +15 -9
- package/designer/data-grid/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +917 -916
- package/designer/farris-designer.all.umd.cjs +5 -5
- package/designer/input-group/index.esm.js +2 -1
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +685 -689
- package/designer/list-view/index.umd.cjs +3 -3
- package/designer/radio-group/index.esm.js +7 -3
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +5641 -5603
- package/farris.all.umd.cjs +21 -21
- package/locales/data-grid/ui/en.json +2 -1
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +2 -1
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +2 -1
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ var Pt = (e, t, r) => t in e ? Vt(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var vt = (e, t, r) => Pt(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import { ref as j, watch as me, computed as $, createVNode as I, resolveComponent as at, isVNode as yt, nextTick as Ot, inject as kt, Fragment as ut, createTextVNode as Ye, withDirectives as Ht, vModelCheckbox as Wt, defineComponent as Nt, reactive as Tt, createApp as At, onUnmounted as Lt, onMounted as Bt, Transition as jt, mergeProps as $t } from "vue";
|
|
5
5
|
import zt from "../popover/index.esm.js";
|
|
6
|
-
import { useI18n as
|
|
6
|
+
import { useI18n as Be } from "vue-i18n";
|
|
7
7
|
import { useCommonUtils as ct, useArrayProcessor as bt, useGuid as Gt, useNumberFormat as Ft, resolveField as _e, useDateFormat as Ut, setFieldValue as mt } from "../common/index.esm.js";
|
|
8
8
|
import { F_MODAL_SERVICE_TOKEN as Kt } from "../modal/index.esm.js";
|
|
9
9
|
import { cloneDeep as Et, isUndefined as gt, throttle as qt } from "lodash-es";
|
|
@@ -20,7 +20,7 @@ import { FSearchBox as nn } from "../search-box/index.esm.js";
|
|
|
20
20
|
import { LocaleService as rn } from "../locale/index.esm.js";
|
|
21
21
|
import { useCondition as ln, CompareType as He, ValueType as nt, TextValue as ht, RadioGroupValue as on, NumberSpinnerValue as an, NumberRangeValue as sn, MonthRangeValue as un, MonthPickerValue as cn, DateRangeValue as Ct, DateTimePickerValue as dn, DatePickerValue as fn, ComboLookupValue as vn, ComboListValue as hn, CheckBoxValue as mn } from "../condition/index.esm.js";
|
|
22
22
|
import { FDynamicFormInput as gn } from "../dynamic-form/index.esm.js";
|
|
23
|
-
var Ie = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(Ie || {}),
|
|
23
|
+
var Ie = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(Ie || {}), Ge = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(Ge || {}), rt = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(rt || {});
|
|
24
24
|
const Vr = {
|
|
25
25
|
/** 显示行号 */
|
|
26
26
|
enable: { type: Boolean, default: !1 },
|
|
@@ -52,10 +52,10 @@ const Vr = {
|
|
|
52
52
|
/** 禁用分页 */
|
|
53
53
|
disabled: { type: Boolean, default: !1 }
|
|
54
54
|
};
|
|
55
|
-
var D = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.filterable = 1] = "filterable", e[e.sortable = 2] = "sortable", e[e.filtered = 4] = "filtered", e[e.sorted = 8] = "sorted", e[e.ascending = 16] = "ascending", e[e.descending = 32] = "descending", e))(D || {}), _n = /* @__PURE__ */ ((e) => (e.NONE = "none", e.NUMBER = "number", e.DATE = "date", e.TEXT = "boolean", e.IMAGE = "boolean2", e.ENUM = "enum", e.CUSTOM = "custom", e))(_n || {}),
|
|
55
|
+
var D = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.filterable = 1] = "filterable", e[e.sortable = 2] = "sortable", e[e.filtered = 4] = "filtered", e[e.sorted = 8] = "sorted", e[e.ascending = 16] = "ascending", e[e.descending = 32] = "descending", e))(D || {}), _n = /* @__PURE__ */ ((e) => (e.NONE = "none", e.NUMBER = "number", e.DATE = "date", e.TEXT = "boolean", e.IMAGE = "boolean2", e.ENUM = "enum", e.CUSTOM = "custom", e))(_n || {}), ze = /* @__PURE__ */ ((e) => (e.DATE = "date", e.DATE_TIME = "datetime", e.NUMBER = "number", e.ENUM = "enum", e.IMAGE = "image", e.BOOLEAN = "boolean", e.BOOLEAN2 = "boolean2", e.TIMEAGO = "timeago", e.NONE = "none", e.CUSTOM = "custom", e.MULTI_LINGUAL = "multilingual", e))(ze || {});
|
|
56
56
|
function pn(e, t) {
|
|
57
57
|
var k, S, _, a, w, f, p, C, l;
|
|
58
|
-
const { isUndefined: r } = ct(), { pageIndex: o, totalItems: d, pagination:
|
|
58
|
+
const { isUndefined: r } = ct(), { pageIndex: o, totalItems: d, pagination: v } = t, n = j((k = e.pagination) == null ? void 0 : k.enable), c = j(((S = e.pagination) == null ? void 0 : S.disabled) || !1), u = j((_ = e.pagination) == null ? void 0 : _.size), b = j((a = e.pagination) == null ? void 0 : a.sizeLimits), h = j((w = e.pagination) == null ? void 0 : w.mode), g = j((f = e.pagination) == null ? void 0 : f.showIndex), m = j((p = e.pagination) == null ? void 0 : p.showLimits), N = j(((C = e.pagination) == null ? void 0 : C.showGoto) || !1), i = j(((l = e.pagination) == null ? void 0 : l.showPageInfo) || !0);
|
|
59
59
|
me(() => {
|
|
60
60
|
var s;
|
|
61
61
|
return (s = e.pagination) == null ? void 0 : s.disabled;
|
|
@@ -75,7 +75,7 @@ function pn(e, t) {
|
|
|
75
75
|
var s;
|
|
76
76
|
return (s = e.pagination) == null ? void 0 : s.showLimits;
|
|
77
77
|
}, (s, O) => {
|
|
78
|
-
s !== O && (
|
|
78
|
+
s !== O && (m.value = s);
|
|
79
79
|
}), me(() => {
|
|
80
80
|
var s;
|
|
81
81
|
return (s = e.pagination) == null ? void 0 : s.total;
|
|
@@ -111,10 +111,10 @@ function pn(e, t) {
|
|
|
111
111
|
if (!s)
|
|
112
112
|
return;
|
|
113
113
|
const { enable: O, total: z, size: X, index: L, sizeLimits: Y, showGoto: K, showIndex: R, showLimits: G, mode: Z, disabled: V } = s;
|
|
114
|
-
r(O) || (n.value = O), r(L) || (o.value = L), r(X) || (u.value = X), r(Y) || (b.value = Y), r(K) || (N.value = K), r(R) || (g.value = R), r(G) || (
|
|
114
|
+
r(O) || (n.value = O), r(L) || (o.value = L), r(X) || (u.value = X), r(Y) || (b.value = Y), r(K) || (N.value = K), r(R) || (g.value = R), r(G) || (m.value = G), r(Z) || (h.value = Z), r(z) || (d.value = z), r(V) || (c.value = V);
|
|
115
115
|
};
|
|
116
116
|
return me(() => e.pagination, (s, O) => {
|
|
117
|
-
s !== O && (
|
|
117
|
+
s !== O && (v.value = s, y(s));
|
|
118
118
|
}), {
|
|
119
119
|
disabled: c,
|
|
120
120
|
pageSize: u,
|
|
@@ -122,27 +122,27 @@ function pn(e, t) {
|
|
|
122
122
|
shouldRenderPagination: n,
|
|
123
123
|
showGotoPage: N,
|
|
124
124
|
showPageIndex: g,
|
|
125
|
-
showPageList:
|
|
125
|
+
showPageList: m,
|
|
126
126
|
showPageInfo: i,
|
|
127
|
-
mode:
|
|
127
|
+
mode: h,
|
|
128
128
|
updatePagination: y
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
131
|
function xt(e) {
|
|
132
132
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !yt(e);
|
|
133
133
|
}
|
|
134
|
-
function yn(e, t, r, o, d,
|
|
134
|
+
function yn(e, t, r, o, d, v, n, c, u, b, h) {
|
|
135
135
|
pn(e, r);
|
|
136
136
|
const {
|
|
137
137
|
showSelectAll: g,
|
|
138
|
-
showSelection:
|
|
138
|
+
showSelection: m,
|
|
139
139
|
selectedValues: N,
|
|
140
140
|
updateSelectAllStatus: i,
|
|
141
141
|
keepSelectingOnPaging: y,
|
|
142
142
|
clearSelection: k
|
|
143
143
|
} = u, S = j([]), _ = j([]), {
|
|
144
144
|
t: a
|
|
145
|
-
} =
|
|
145
|
+
} = Be(), w = [{
|
|
146
146
|
name: a("datagrid.settings.asc"),
|
|
147
147
|
value: "asc",
|
|
148
148
|
icon: "f-icon f-icon-col-ascendingorder"
|
|
@@ -163,7 +163,7 @@ function yn(e, t, r, o, d, h, n, c, u, b, m) {
|
|
|
163
163
|
filterFromServer: s
|
|
164
164
|
} = d;
|
|
165
165
|
function O() {
|
|
166
|
-
y.value || k(), r.updateVisibleDataSummary(
|
|
166
|
+
y.value || k(), r.updateVisibleDataSummary(h.value);
|
|
167
167
|
}
|
|
168
168
|
function z(F) {
|
|
169
169
|
_.value = F;
|
|
@@ -200,7 +200,7 @@ function yn(e, t, r, o, d, h, n, c, u, b, m) {
|
|
|
200
200
|
}
|
|
201
201
|
function Z(F) {
|
|
202
202
|
var x;
|
|
203
|
-
F.showPopover = !1, F.filterHistory = void 0,
|
|
203
|
+
F.showPopover = !1, F.filterHistory = void 0, v.updateFilterHistory(F, (x = F.column) == null ? void 0 : x.filter), G(F), R(F), f.value && s({
|
|
204
204
|
filterConditions: _.value,
|
|
205
205
|
sortConditions: S.value
|
|
206
206
|
});
|
|
@@ -253,7 +253,7 @@ function yn(e, t, r, o, d, h, n, c, u, b, m) {
|
|
|
253
253
|
function bn(e) {
|
|
254
254
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !yt(e);
|
|
255
255
|
}
|
|
256
|
-
function wn(e, t, r, o, d,
|
|
256
|
+
function wn(e, t, r, o, d, v, n, c, u, b, h, g, m, N, i) {
|
|
257
257
|
function y(V) {
|
|
258
258
|
const F = V.status;
|
|
259
259
|
return {
|
|
@@ -296,7 +296,7 @@ function wn(e, t, r, o, d, h, n, c, u, b, m, g, v, N, i) {
|
|
|
296
296
|
}, l = /* @__PURE__ */ new Map([[D.sortable, D.sortable | D.sorted | D.ascending], [D.sortable | D.sorted | D.ascending, D.sortable | D.sorted | D.descending], [D.sortable | D.sorted | D.descending, D.sortable]]), {
|
|
297
297
|
renderFilterContainer: s,
|
|
298
298
|
onConfirm: O
|
|
299
|
-
} = yn(e,
|
|
299
|
+
} = yn(e, v, n, c, u, b, h, g, m, N, i), z = j();
|
|
300
300
|
function X(V, F) {
|
|
301
301
|
F.filter((x) => x !== V && x.showPopover).forEach((x) => {
|
|
302
302
|
x.showPopover = !1;
|
|
@@ -334,8 +334,8 @@ function wn(e, t, r, o, d, h, n, c, u, b, m, g, v, N, i) {
|
|
|
334
334
|
const q = l.get(F), ie = (q & D.sorted) === D.sorted, H = (q & D.ascending) === D.ascending, T = (q & D.descending) === D.descending, E = V.column;
|
|
335
335
|
E && (E.sort = H ? "asc" : T ? "desc" : "none", E.sortOrder = ie ? E.sortOrder : 0, V.sortType = E.sort, V.status = q, ((J = e.sort) == null ? void 0 : J.mode) === "server" ? t.emit("sortChanged", {
|
|
336
336
|
filterConditions: u.createFilterConditions(),
|
|
337
|
-
sortConditions:
|
|
338
|
-
}) : (
|
|
337
|
+
sortConditions: v.createSortConditions(h)
|
|
338
|
+
}) : (v.applyColumnSorter(n, h), g.reCalculateVisualDataRows()));
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
function G(V, F, x) {
|
|
@@ -354,12 +354,12 @@ function wn(e, t, r, o, d, h, n, c, u, b, m, g, v, N, i) {
|
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
356
|
const Sn = "__setting__", Hr = "设置", Cn = 30, xn = "right", Je = "setting", On = "__command__", Wr = "操作", kn = 150, Nn = "right", lt = "commands";
|
|
357
|
-
function Tn(e, t, r, o, d,
|
|
357
|
+
function Tn(e, t, r, o, d, v, n, c) {
|
|
358
358
|
const u = "id", b = j();
|
|
359
|
-
let
|
|
359
|
+
let h;
|
|
360
360
|
const {
|
|
361
361
|
applySortableColumns: g,
|
|
362
|
-
collectionFilterableColumns:
|
|
362
|
+
collectionFilterableColumns: m,
|
|
363
363
|
collectionSortableColumns: N,
|
|
364
364
|
columnContext: i,
|
|
365
365
|
updateColumnSettingIcon: y
|
|
@@ -369,7 +369,7 @@ function Tn(e, t, r, o, d, h, n, c) {
|
|
|
369
369
|
calculateColumnsSize: S
|
|
370
370
|
} = o, {
|
|
371
371
|
fitHorizontalScroll: _
|
|
372
|
-
} =
|
|
372
|
+
} = v, a = j([]), w = $(() => !!a.value.length), f = $(() => i.value.primaryColumns.filter((M) => M.dataType !== lt && M.dataType !== Je));
|
|
373
373
|
let p = [];
|
|
374
374
|
const C = $(() => f.value.map((M) => ({
|
|
375
375
|
id: M.field,
|
|
@@ -382,7 +382,7 @@ function Tn(e, t, r, o, d, h, n, c) {
|
|
|
382
382
|
id: M.field,
|
|
383
383
|
name: M.title,
|
|
384
384
|
order: M.sort
|
|
385
|
-
}))), $(() =>
|
|
385
|
+
}))), $(() => m().map((M) => ({
|
|
386
386
|
id: M.field,
|
|
387
387
|
code: M.field,
|
|
388
388
|
controlType: "",
|
|
@@ -412,7 +412,7 @@ function Tn(e, t, r, o, d, h, n, c) {
|
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
function X() {
|
|
415
|
-
z(p),
|
|
415
|
+
z(p), h == null || h.destroy();
|
|
416
416
|
}
|
|
417
417
|
function L(M) {
|
|
418
418
|
return I("div", {
|
|
@@ -478,11 +478,11 @@ function Tn(e, t, r, o, d, h, n, c) {
|
|
|
478
478
|
function R() {
|
|
479
479
|
if (w.value) {
|
|
480
480
|
const M = Y(), J = K(M);
|
|
481
|
-
g(J, t, d),
|
|
481
|
+
g(J, t, d), v.reCalculateVisualDataRows(), S();
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
function G() {
|
|
485
|
-
b.value && (k.value = b.value.getConditions(), t.refresh(),
|
|
485
|
+
b.value && (k.value = b.value.getConditions(), t.refresh(), v.reCalculateVisualDataRows());
|
|
486
486
|
}
|
|
487
487
|
function Z() {
|
|
488
488
|
R(), G();
|
|
@@ -494,7 +494,7 @@ function Tn(e, t, r, o, d, h, n, c) {
|
|
|
494
494
|
z(p);
|
|
495
495
|
}
|
|
496
496
|
function x() {
|
|
497
|
-
|
|
497
|
+
h = n.open({
|
|
498
498
|
title: "",
|
|
499
499
|
width: 800,
|
|
500
500
|
showButtons: !0,
|
|
@@ -513,17 +513,17 @@ function Tn(e, t, r, o, d, h, n, c) {
|
|
|
513
513
|
openSettingPanel: x
|
|
514
514
|
};
|
|
515
515
|
}
|
|
516
|
-
function Fn(e, t, r, o, d,
|
|
517
|
-
const n = kt(Kt), c =
|
|
516
|
+
function Fn(e, t, r, o, d, v) {
|
|
517
|
+
const n = kt(Kt), c = Be(), u = $(() => ({
|
|
518
518
|
margin: "0px"
|
|
519
519
|
}));
|
|
520
520
|
function b(g) {
|
|
521
521
|
const {
|
|
522
|
-
openSettingPanel:
|
|
523
|
-
} = Tn(e, t, r, o, d,
|
|
524
|
-
|
|
522
|
+
openSettingPanel: m
|
|
523
|
+
} = Tn(e, t, r, o, d, v, n, c);
|
|
524
|
+
m();
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function h() {
|
|
527
527
|
return I("span", {
|
|
528
528
|
class: "fv-grid-settings-icon",
|
|
529
529
|
style: u.value,
|
|
@@ -533,16 +533,16 @@ function Fn(e, t, r, o, d, h) {
|
|
|
533
533
|
}, null)]);
|
|
534
534
|
}
|
|
535
535
|
return {
|
|
536
|
-
renderGridSettingsIcon:
|
|
536
|
+
renderGridSettingsIcon: h
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
539
|
function En(e, t, r, o) {
|
|
540
|
-
const
|
|
540
|
+
const v = j(-1), n = j(0), c = j(!1);
|
|
541
541
|
let u = "";
|
|
542
542
|
const b = $(() => ({
|
|
543
543
|
display: c.value ? "block" : "none",
|
|
544
544
|
left: `${n.value}px`
|
|
545
|
-
})),
|
|
545
|
+
})), h = $(() => ({
|
|
546
546
|
display: c.value ? "block" : "none"
|
|
547
547
|
}));
|
|
548
548
|
function g(i) {
|
|
@@ -552,25 +552,25 @@ function En(e, t, r, o) {
|
|
|
552
552
|
n.value = i.clientX - k;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function m(i) {
|
|
556
556
|
const y = t.value.primaryColumns.filter((S) => S.visible).find((S) => S.field === u) || t.value.leftColumns.filter((S) => S.visible).find((S) => S.field === u) || t.value.rightColumns.filter((S) => S.visible).find((S) => S.field === u), k = i.target.parentElement;
|
|
557
557
|
if (y && k) {
|
|
558
|
-
const { left: S } = k.getBoundingClientRect(), _ = i.clientX - S, a = (y.actualWidth || 0) + (_ -
|
|
558
|
+
const { left: S } = k.getBoundingClientRect(), _ = i.clientX - S, a = (y.actualWidth || 0) + (_ - v.value);
|
|
559
559
|
y.actualWidth = Math.max(40, a), r.calculateColumnsSize();
|
|
560
560
|
}
|
|
561
|
-
n.value = 0, c.value = !1, document.removeEventListener("mousemove", g), document.removeEventListener("mouseup",
|
|
561
|
+
n.value = 0, c.value = !1, document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", m), document.body.style.userSelect = "", u = "";
|
|
562
562
|
}
|
|
563
563
|
function N(i, y) {
|
|
564
564
|
u = y, c.value = !0;
|
|
565
565
|
const S = i.composedPath().find((_) => _.className.split(" ")[0] === "fv-grid");
|
|
566
566
|
if (S) {
|
|
567
567
|
const { left: _ } = S.getBoundingClientRect();
|
|
568
|
-
n.value = i.clientX - _,
|
|
568
|
+
n.value = i.clientX - _, v.value = i.clientX - _, document.addEventListener("mousemove", g), document.addEventListener("mouseup", m), document.body.style.userSelect = "none";
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
return { onClickColumnResizeBar: N, resizeHandleStyle: b, resizeOverlayStyle:
|
|
571
|
+
return { onClickColumnResizeBar: N, resizeHandleStyle: b, resizeOverlayStyle: h };
|
|
572
572
|
}
|
|
573
|
-
function Ar(e, t, r, o, d,
|
|
573
|
+
function Ar(e, t, r, o, d, v, n, c, u, b, h, g, m, N, i, y, k, S, _) {
|
|
574
574
|
const {
|
|
575
575
|
getDifference: a
|
|
576
576
|
} = bt(), {
|
|
@@ -593,7 +593,7 @@ function Ar(e, t, r, o, d, h, n, c, u, b, m, g, v, N, i, y, k, S, _) {
|
|
|
593
593
|
columnContext: G,
|
|
594
594
|
hasLeftFixedColumn: Z,
|
|
595
595
|
hasRightFixedColumn: V
|
|
596
|
-
} =
|
|
596
|
+
} = v, {
|
|
597
597
|
onClickColumnResizeBar: F,
|
|
598
598
|
resizeHandleStyle: x,
|
|
599
599
|
resizeOverlayStyle: M
|
|
@@ -634,9 +634,9 @@ function Ar(e, t, r, o, d, h, n, c, u, b, m, g, v, N, i, y, k, S, _) {
|
|
|
634
634
|
return (se.status & D.sortable) === D.sortable || (se.status & D.filterable) === D.filterable;
|
|
635
635
|
}, {
|
|
636
636
|
renderHeaderCellHandler: ne
|
|
637
|
-
} = wn(e, t, r, o, d,
|
|
637
|
+
} = wn(e, t, r, o, d, v, n, u, b, h, y, k, N, i, _), {
|
|
638
638
|
renderGridSettingsIcon: re
|
|
639
|
-
} = Fn(
|
|
639
|
+
} = Fn(v, n, b, g, y, k);
|
|
640
640
|
function we(se) {
|
|
641
641
|
var Te;
|
|
642
642
|
const Ne = {
|
|
@@ -781,13 +781,13 @@ function Lr() {
|
|
|
781
781
|
}
|
|
782
782
|
function Br(e, t, r, o, d) {
|
|
783
783
|
const {
|
|
784
|
-
columnContext:
|
|
784
|
+
columnContext: v
|
|
785
785
|
} = t, {
|
|
786
786
|
conditions: n,
|
|
787
787
|
clearCondition: c,
|
|
788
788
|
removeCondition: u
|
|
789
789
|
} = o, b = j([]);
|
|
790
|
-
function
|
|
790
|
+
function h() {
|
|
791
791
|
const y = [];
|
|
792
792
|
Array.from(n.value).forEach((k, S) => {
|
|
793
793
|
var a;
|
|
@@ -803,7 +803,7 @@ function Br(e, t, r, o, d) {
|
|
|
803
803
|
y.push(_);
|
|
804
804
|
}), b.value = y;
|
|
805
805
|
}
|
|
806
|
-
me(n, () =>
|
|
806
|
+
me(n, () => h());
|
|
807
807
|
function g(y) {
|
|
808
808
|
if (y && y.column) {
|
|
809
809
|
y.column.filter = null;
|
|
@@ -811,13 +811,13 @@ function Br(e, t, r, o, d) {
|
|
|
811
811
|
k = (k & D.filtered) === D.filtered ? k ^ D.filtered : k, y.status = k;
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function m(y) {
|
|
815
815
|
u(`field_filter_${y}`);
|
|
816
|
-
const k =
|
|
816
|
+
const k = v.value.primaryHeaderColumns.find((S) => S.field === y);
|
|
817
817
|
g(k), r.refresh(), d.reCalculateVisualDataRows();
|
|
818
818
|
}
|
|
819
819
|
function N() {
|
|
820
|
-
c(),
|
|
820
|
+
c(), v.value.primaryHeaderColumns.forEach((y) => g(y)), r.refresh(), d.reCalculateVisualDataRows();
|
|
821
821
|
}
|
|
822
822
|
function i() {
|
|
823
823
|
return I("div", {
|
|
@@ -827,7 +827,7 @@ function Br(e, t, r, o, d) {
|
|
|
827
827
|
fields: b.value,
|
|
828
828
|
mode: "display-only",
|
|
829
829
|
"show-reset": !0,
|
|
830
|
-
onRemove:
|
|
830
|
+
onRemove: m,
|
|
831
831
|
onReset: N
|
|
832
832
|
}, null)]);
|
|
833
833
|
}
|
|
@@ -837,26 +837,26 @@ function Br(e, t, r, o, d) {
|
|
|
837
837
|
}
|
|
838
838
|
function jr(e, t, r, o, d) {
|
|
839
839
|
const {
|
|
840
|
-
dropOnGroupPanel:
|
|
840
|
+
dropOnGroupPanel: v,
|
|
841
841
|
groupColumnItems: n
|
|
842
842
|
} = r, {
|
|
843
843
|
groupFields: c,
|
|
844
844
|
shouldGroupingData: u,
|
|
845
845
|
showGroupPanel: b
|
|
846
|
-
} = o,
|
|
846
|
+
} = o, h = j();
|
|
847
847
|
function g(i) {
|
|
848
848
|
c.value = i.map((y) => y.value), t.updateDataView(), d.reCalculateVisualDataRows();
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function m(i) {
|
|
851
851
|
i.preventDefault();
|
|
852
852
|
}
|
|
853
853
|
function N() {
|
|
854
854
|
return u.value && b.value && I("div", {
|
|
855
855
|
class: "fv-grid-group-panel",
|
|
856
|
-
onDrop:
|
|
857
|
-
onDragover:
|
|
856
|
+
onDrop: v,
|
|
857
|
+
onDragover: m
|
|
858
858
|
}, [n.value && I(at("f-tags"), {
|
|
859
|
-
ref:
|
|
859
|
+
ref: h,
|
|
860
860
|
style: "margin:0.375rem",
|
|
861
861
|
"tag-type": "default",
|
|
862
862
|
data: n.value,
|
|
@@ -872,7 +872,7 @@ function jr(e, t, r, o, d) {
|
|
|
872
872
|
function Rn(e, t) {
|
|
873
873
|
var N;
|
|
874
874
|
const r = String(Date.now()), o = ((N = e.rowOption) == null ? void 0 : N.height) || 28, d = j(t.value.primaryColumnsWidth);
|
|
875
|
-
function
|
|
875
|
+
function v(i) {
|
|
876
876
|
const y = {};
|
|
877
877
|
return i.reduce(
|
|
878
878
|
(k, S, _) => {
|
|
@@ -923,13 +923,13 @@ function Rn(e, t) {
|
|
|
923
923
|
// padding: `calc(${rowHeight * cell.rowSpan / 2}px - 1rem) 0`
|
|
924
924
|
};
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function h(i, y) {
|
|
927
927
|
return `${r}_${i.type}_r_${i.index}_c_${y}_${i.refreshKey || ""}`;
|
|
928
928
|
}
|
|
929
929
|
function g(i) {
|
|
930
930
|
return `${r}_${i.type}_r_${i.index}_${i.refreshKey || ""}`;
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function m(i) {
|
|
933
933
|
var S;
|
|
934
934
|
const y = i.height ? `${i.height}px` : "", k = {
|
|
935
935
|
top: `${i.top}px`,
|
|
@@ -945,44 +945,44 @@ function Rn(e, t) {
|
|
|
945
945
|
return me(t, () => {
|
|
946
946
|
d.value = t.value.primaryColumnsWidth;
|
|
947
947
|
}), {
|
|
948
|
-
calculateCellPositionInRow:
|
|
949
|
-
cellKey:
|
|
948
|
+
calculateCellPositionInRow: v,
|
|
949
|
+
cellKey: h,
|
|
950
950
|
cellPosition: u,
|
|
951
951
|
groupCellPosition: n,
|
|
952
952
|
rowKey: g,
|
|
953
|
-
rowPosition:
|
|
953
|
+
rowPosition: m,
|
|
954
954
|
rowSpanCellPosition: b,
|
|
955
955
|
summaryCellPosition: c
|
|
956
956
|
};
|
|
957
957
|
}
|
|
958
958
|
function In(e, t, r) {
|
|
959
|
-
const { hasChildrenField: o } = r, d = j("#9399a0"),
|
|
959
|
+
const { hasChildrenField: o } = r, d = j("#9399a0"), v = j(28);
|
|
960
960
|
function n() {
|
|
961
961
|
return [].concat(
|
|
962
|
-
...t.value.filter((
|
|
963
|
-
).sort((
|
|
962
|
+
...t.value.filter((m) => m.raw.__fv_descendant_index__.length !== 0).map((m) => [...m.raw.__fv_descendant_index__.slice(-1)]).flat()
|
|
963
|
+
).sort((m, N) => Number(m) - Number(N));
|
|
964
964
|
}
|
|
965
|
-
function c(
|
|
965
|
+
function c(h) {
|
|
966
966
|
const g = new Array(t.value.length).fill(0);
|
|
967
967
|
if (e.showLines) {
|
|
968
|
-
const
|
|
968
|
+
const m = n();
|
|
969
969
|
t.value.forEach((N, i) => {
|
|
970
|
-
const y =
|
|
971
|
-
g[i] = `repeating-linear-gradient(90deg, ${d.value} 0 1px, transparent 0px 2px) ${k ? "-10px" : "0px"} ${
|
|
970
|
+
const y = m.includes(i), k = N.raw[o.value];
|
|
971
|
+
g[i] = `repeating-linear-gradient(90deg, ${d.value} 0 1px, transparent 0px 2px) ${k ? "-10px" : "0px"} ${v.value / 2}px/20px 1px no-repeat,repeating-linear-gradient(${d.value} 0 1px, transparent 0px 2px) 0px 0px/1px ${y ? "50%" : "100%"} no-repeat`;
|
|
972
972
|
}), g[0] = "";
|
|
973
973
|
}
|
|
974
|
-
return g[
|
|
974
|
+
return g[h];
|
|
975
975
|
}
|
|
976
|
-
function u(
|
|
977
|
-
return
|
|
978
|
-
|
|
976
|
+
function u(h, g, m) {
|
|
977
|
+
return m[h].parents.set(h, !0).forEach((i) => {
|
|
978
|
+
m[i].childsLength = m[i].childWithLines.filter((y) => g[y].visible).length;
|
|
979
979
|
}), g;
|
|
980
980
|
}
|
|
981
|
-
function b(
|
|
982
|
-
const g =
|
|
981
|
+
function b(h) {
|
|
982
|
+
const g = h.raw.__fv_parent_index__ === void 0 || h.raw.__fv_parent_index__ === -1, N = g ? 0 : 8, i = 0, y = h.raw[o.value], k = `${h.layer * 10 + h.layer * N + i}px`, S = h.visible || gt(h.visible) ? {
|
|
983
983
|
paddingLeft: `calc(${k})`,
|
|
984
984
|
// paddingLeft,
|
|
985
|
-
background: c(
|
|
985
|
+
background: c(h.index),
|
|
986
986
|
display: "flex",
|
|
987
987
|
width: "100%",
|
|
988
988
|
position: "relative"
|
|
@@ -995,20 +995,20 @@ function In(e, t, r) {
|
|
|
995
995
|
}
|
|
996
996
|
function Mn(e, t, r) {
|
|
997
997
|
const o = j(e.iconField);
|
|
998
|
-
function d(
|
|
998
|
+
function d(v, n) {
|
|
999
999
|
if (o.value)
|
|
1000
|
-
return
|
|
1000
|
+
return v.raw[e.iconField];
|
|
1001
1001
|
let c = "";
|
|
1002
|
-
return
|
|
1002
|
+
return v.raw[r.value] !== !0 ? c = t.value.leafnodes : c = v.collapse ? t.value.fold : t.value.unfold, c;
|
|
1003
1003
|
}
|
|
1004
1004
|
return { treeNodeIconsClass: d };
|
|
1005
1005
|
}
|
|
1006
|
-
function Dn(e, t, r, o, d,
|
|
1007
|
-
const { dataView: u, hasRealChildren: b, reOrderVisibleIndex:
|
|
1006
|
+
function Dn(e, t, r, o, d, v, n, c) {
|
|
1007
|
+
const { dataView: u, hasRealChildren: b, reOrderVisibleIndex: h } = o, { collapseField: g, hasChildrenField: m } = d, { reCalculateVisualDataRows: N, updateVirticalScroll: i } = v;
|
|
1008
1008
|
function y(k) {
|
|
1009
|
-
if (k.raw[
|
|
1009
|
+
if (k.raw[m.value]) {
|
|
1010
1010
|
const _ = u.value[k.raw.__fv_index__];
|
|
1011
|
-
_[g.value] = !_[g.value], o.toggleChildrenVisibiltyByCollapseStatus(_), _[
|
|
1011
|
+
_[g.value] = !_[g.value], o.toggleChildrenVisibiltyByCollapseStatus(_), _[m.value] = b(_), h(), N(), i(), _[g.value] || t.emit("expandNode", { row: k });
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
1014
|
return { toggleTreeNode: y };
|
|
@@ -1018,7 +1018,7 @@ function Vn(e) {
|
|
|
1018
1018
|
return {};
|
|
1019
1019
|
}
|
|
1020
1020
|
function r(d) {
|
|
1021
|
-
const { valign:
|
|
1021
|
+
const { valign: v, align: n } = d;
|
|
1022
1022
|
return {
|
|
1023
1023
|
"d-flex": !0,
|
|
1024
1024
|
"h-100": !0,
|
|
@@ -1026,27 +1026,27 @@ function Vn(e) {
|
|
|
1026
1026
|
"justify-content-start": n !== "center" && n !== "right",
|
|
1027
1027
|
"justify-content-center": n === "center",
|
|
1028
1028
|
"justify-content-right": n === "right",
|
|
1029
|
-
"align-items-start":
|
|
1030
|
-
"align-items-center":
|
|
1031
|
-
"align-items-end":
|
|
1029
|
+
"align-items-start": v !== "middle" && v !== "bottom",
|
|
1030
|
+
"align-items-center": v === "middle",
|
|
1031
|
+
"align-items-end": v === "bottom"
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
1034
|
function o(d) {
|
|
1035
|
-
const { align:
|
|
1035
|
+
const { align: v, showEllipsis: n } = d;
|
|
1036
1036
|
return {
|
|
1037
1037
|
"w-100": !0,
|
|
1038
|
-
"text-left":
|
|
1039
|
-
"text-center":
|
|
1040
|
-
"text-right":
|
|
1038
|
+
"text-left": v !== "center" && v !== "right",
|
|
1039
|
+
"text-center": v === "center",
|
|
1040
|
+
"text-right": v === "right",
|
|
1041
1041
|
"text-truncate": n
|
|
1042
1042
|
};
|
|
1043
1043
|
}
|
|
1044
1044
|
return { cellContentPosition: t, cellContentClass: r, cellContentClassWithEllipsis: o };
|
|
1045
1045
|
}
|
|
1046
|
-
function $r(e, t, r, o, d,
|
|
1046
|
+
function $r(e, t, r, o, d, v, n, c, u, b, h, g, m) {
|
|
1047
1047
|
const {
|
|
1048
1048
|
onClickCell: N
|
|
1049
|
-
} =
|
|
1049
|
+
} = v, {
|
|
1050
1050
|
gridCellClass: i,
|
|
1051
1051
|
gridRowClass: y,
|
|
1052
1052
|
onClickRow: k,
|
|
@@ -1065,7 +1065,7 @@ function $r(e, t, r, o, d, h, n, c, u, b, m, g, v) {
|
|
|
1065
1065
|
shouldShowIcon: O
|
|
1066
1066
|
} = n, {
|
|
1067
1067
|
toggleTreeNode: z
|
|
1068
|
-
} = Dn(e, t, o, d, n,
|
|
1068
|
+
} = Dn(e, t, o, d, n, h), {
|
|
1069
1069
|
toggleSelectHierarchyItem: X,
|
|
1070
1070
|
selectTreeNode: L,
|
|
1071
1071
|
unSelectTreeNode: Y
|
|
@@ -1228,10 +1228,10 @@ function zr(e, t, r) {
|
|
|
1228
1228
|
const {
|
|
1229
1229
|
horizontalScrollThumbStyle: o,
|
|
1230
1230
|
onMouseDownScrollThumb: d,
|
|
1231
|
-
shouldShowHorizontalScrollbar:
|
|
1231
|
+
shouldShowHorizontalScrollbar: v
|
|
1232
1232
|
} = r;
|
|
1233
1233
|
function n() {
|
|
1234
|
-
return
|
|
1234
|
+
return v.value && I("div", {
|
|
1235
1235
|
class: "fv-grid-horizontal-scroll"
|
|
1236
1236
|
}, [I("div", {
|
|
1237
1237
|
class: "fv-grid-horizontal-scroll-thumb",
|
|
@@ -1243,16 +1243,16 @@ function zr(e, t, r) {
|
|
|
1243
1243
|
renderHorizontalScrollbar: n
|
|
1244
1244
|
};
|
|
1245
1245
|
}
|
|
1246
|
-
function Gr(e, t, r, o, d,
|
|
1246
|
+
function Gr(e, t, r, o, d, v) {
|
|
1247
1247
|
const {
|
|
1248
1248
|
clearSelection: n,
|
|
1249
1249
|
keepSelectingOnPaging: c
|
|
1250
|
-
} =
|
|
1250
|
+
} = v, {
|
|
1251
1251
|
pageIndex: u,
|
|
1252
1252
|
totalItems: b,
|
|
1253
|
-
updatePageSize:
|
|
1253
|
+
updatePageSize: h
|
|
1254
1254
|
} = r, g = j(), {
|
|
1255
|
-
pageSize:
|
|
1255
|
+
pageSize: m,
|
|
1256
1256
|
pageList: N,
|
|
1257
1257
|
showGotoPage: i,
|
|
1258
1258
|
showPageIndex: y,
|
|
@@ -1263,7 +1263,7 @@ function Gr(e, t, r, o, d, h) {
|
|
|
1263
1263
|
showPageInfo: w
|
|
1264
1264
|
} = d;
|
|
1265
1265
|
function f(O, z) {
|
|
1266
|
-
a.value && S.value !== "server" ? (r.navigatePageTo(O), o.resetScroll()) : (
|
|
1266
|
+
a.value && S.value !== "server" ? (r.navigatePageTo(O), o.resetScroll()) : (h(z), c.value || n());
|
|
1267
1267
|
}
|
|
1268
1268
|
function p(O) {
|
|
1269
1269
|
const {
|
|
@@ -1302,8 +1302,8 @@ function Gr(e, t, r, o, d, h) {
|
|
|
1302
1302
|
disabled: _.value,
|
|
1303
1303
|
currentPage: u.value,
|
|
1304
1304
|
"onUpdate:currentPage": (O) => u.value = O,
|
|
1305
|
-
pageSize:
|
|
1306
|
-
"onUpdate:pageSize": (O) =>
|
|
1305
|
+
pageSize: m.value,
|
|
1306
|
+
"onUpdate:pageSize": (O) => m.value = O,
|
|
1307
1307
|
showPageInfo: w.value,
|
|
1308
1308
|
showGoButton: i.value,
|
|
1309
1309
|
showPageList: k.value,
|
|
@@ -1321,15 +1321,15 @@ function Gr(e, t, r, o, d, h) {
|
|
|
1321
1321
|
}
|
|
1322
1322
|
function Ur(e, t, r, o, d) {
|
|
1323
1323
|
const {
|
|
1324
|
-
isSelectingHirarchyItem:
|
|
1324
|
+
isSelectingHirarchyItem: v,
|
|
1325
1325
|
multiSelectOnClickRow: n,
|
|
1326
1326
|
multiSelectOnlyOnCheck: c,
|
|
1327
1327
|
updateSelectAllStatus: u,
|
|
1328
1328
|
selectItem: b,
|
|
1329
|
-
toggleSelectItem:
|
|
1329
|
+
toggleSelectItem: h,
|
|
1330
1330
|
toggleSelectItemWithoutRow: g
|
|
1331
1331
|
} = r, {
|
|
1332
|
-
onMouseoverRow:
|
|
1332
|
+
onMouseoverRow: m,
|
|
1333
1333
|
sidebarRowClass: N,
|
|
1334
1334
|
onClickRow: i
|
|
1335
1335
|
} = t, {
|
|
@@ -1376,7 +1376,7 @@ function Ur(e, t, r, o, d) {
|
|
|
1376
1376
|
onClick: (Y) => {
|
|
1377
1377
|
C(Y, L);
|
|
1378
1378
|
},
|
|
1379
|
-
onMouseover: (Y) =>
|
|
1379
|
+
onMouseover: (Y) => m(Y, L)
|
|
1380
1380
|
}, [I("div", {
|
|
1381
1381
|
title: L.dataIndex,
|
|
1382
1382
|
class: {
|
|
@@ -1387,7 +1387,7 @@ function Ur(e, t, r, o, d) {
|
|
|
1387
1387
|
}, [L.raw.__fv_visible_index__ + 1])]);
|
|
1388
1388
|
}
|
|
1389
1389
|
function O(L, Y, K) {
|
|
1390
|
-
L.stopPropagation(),
|
|
1390
|
+
L.stopPropagation(), v.value ? n.value ? h(K) : b(K) : n.value ? h(K) : c.value ? g(K) : b(K), u();
|
|
1391
1391
|
}
|
|
1392
1392
|
function z(L) {
|
|
1393
1393
|
return (k.value || y.value) && L.value.map((Y, K) => I("div", {
|
|
@@ -1413,10 +1413,10 @@ function Ur(e, t, r, o, d) {
|
|
|
1413
1413
|
function Kr(e, t, r) {
|
|
1414
1414
|
const {
|
|
1415
1415
|
t: o
|
|
1416
|
-
} =
|
|
1416
|
+
} = Be(), {
|
|
1417
1417
|
columnContext: d
|
|
1418
|
-
} = r,
|
|
1419
|
-
const b =
|
|
1418
|
+
} = r, v = j(e.summary), n = $(() => {
|
|
1419
|
+
const b = v.value;
|
|
1420
1420
|
return b && b.enable && b.groupFields && b.groupFields.length > 0;
|
|
1421
1421
|
}), c = $(() => ({
|
|
1422
1422
|
width: "auto"
|
|
@@ -1447,10 +1447,10 @@ function qr(e, t, r) {
|
|
|
1447
1447
|
const {
|
|
1448
1448
|
verticalScrollThumbStyle: o,
|
|
1449
1449
|
onMouseDownScrollThumb: d,
|
|
1450
|
-
shouldShowVirticalScrollbar:
|
|
1450
|
+
shouldShowVirticalScrollbar: v
|
|
1451
1451
|
} = r;
|
|
1452
1452
|
function n() {
|
|
1453
|
-
return
|
|
1453
|
+
return v.value && I("div", {
|
|
1454
1454
|
class: "fv-grid-vertical-scroll"
|
|
1455
1455
|
}, [I("div", {
|
|
1456
1456
|
class: "fv-grid-vertical-scroll-thumb",
|
|
@@ -1465,28 +1465,28 @@ function qr(e, t, r) {
|
|
|
1465
1465
|
function Pn(e) {
|
|
1466
1466
|
const {
|
|
1467
1467
|
t
|
|
1468
|
-
} =
|
|
1468
|
+
} = Be();
|
|
1469
1469
|
function r(n, c) {
|
|
1470
1470
|
switch (n.command) {
|
|
1471
1471
|
case "edit":
|
|
1472
1472
|
case "remove":
|
|
1473
|
-
return c.status ===
|
|
1473
|
+
return c.status === Ge.initial;
|
|
1474
1474
|
case "accept":
|
|
1475
1475
|
case "cancel":
|
|
1476
|
-
return c.status ===
|
|
1476
|
+
return c.status === Ge.editing;
|
|
1477
1477
|
default:
|
|
1478
1478
|
return !n.hidden;
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
1481
1481
|
function o(n, c, u, b) {
|
|
1482
|
-
var
|
|
1483
|
-
switch ((
|
|
1482
|
+
var h, g, m, N, i;
|
|
1483
|
+
switch ((h = n.onClick) == null || h.call(n, c, u.dataIndex, u), n.command) {
|
|
1484
1484
|
case "edit":
|
|
1485
|
-
u.status,
|
|
1485
|
+
u.status, Ge.editing, (m = (g = e.commandOption) == null ? void 0 : g.onClickEditCommand) == null || m.call(g, b, u);
|
|
1486
1486
|
break;
|
|
1487
1487
|
case "accept":
|
|
1488
1488
|
case "cancel":
|
|
1489
|
-
u.status,
|
|
1489
|
+
u.status, Ge.initial;
|
|
1490
1490
|
break;
|
|
1491
1491
|
case "remove":
|
|
1492
1492
|
(i = (N = e.commandOption) == null ? void 0 : N.onClickDeleteCommand) == null || i.call(N, b, u);
|
|
@@ -1496,11 +1496,11 @@ function Pn(e) {
|
|
|
1496
1496
|
function d(n) {
|
|
1497
1497
|
return n === "编辑" ? t("datagrid.commandColumn.edit") : n === "确定" ? t("datagrid.commandColumn.accept") : n === "取消" ? t("datagrid.commandColumn.cancel") : n === "删除" ? t("datagrid.commandColumn.remove") : n;
|
|
1498
1498
|
}
|
|
1499
|
-
function
|
|
1499
|
+
function v(n, c) {
|
|
1500
1500
|
const {
|
|
1501
1501
|
column: u
|
|
1502
1502
|
} = n;
|
|
1503
|
-
return u.commands && u.commands.map((b,
|
|
1503
|
+
return u.commands && u.commands.map((b, h) => h ? r(b, c) && I(St, {
|
|
1504
1504
|
class: "ml-1",
|
|
1505
1505
|
type: b.type,
|
|
1506
1506
|
size: b.size || "small",
|
|
@@ -1522,13 +1522,13 @@ function Pn(e) {
|
|
|
1522
1522
|
}));
|
|
1523
1523
|
}
|
|
1524
1524
|
return {
|
|
1525
|
-
renderCommandColumn:
|
|
1525
|
+
renderCommandColumn: v
|
|
1526
1526
|
};
|
|
1527
1527
|
}
|
|
1528
1528
|
function Yr(e, t) {
|
|
1529
1529
|
const {
|
|
1530
1530
|
t: r
|
|
1531
|
-
} =
|
|
1531
|
+
} = Be();
|
|
1532
1532
|
function o() {
|
|
1533
1533
|
return I("div", {
|
|
1534
1534
|
class: "f-datagrid-norecords d-flex"
|
|
@@ -1542,16 +1542,16 @@ function Yr(e, t) {
|
|
|
1542
1542
|
};
|
|
1543
1543
|
}
|
|
1544
1544
|
function Xr(e) {
|
|
1545
|
-
const t = j(e.minHeight), r = j(e.minWidth), o = j(e.height), d = j(e.width),
|
|
1545
|
+
const t = j(e.minHeight), r = j(e.minWidth), o = j(e.height), d = j(e.width), v = $(() => o.value <= 0 ? 0 : Math.max(o.value, t.value)), n = $(() => d.value <= 0 ? 0 : Math.max(d.value, r.value));
|
|
1546
1546
|
return me([
|
|
1547
1547
|
() => e.height,
|
|
1548
1548
|
() => e.width,
|
|
1549
1549
|
() => e.minHeight,
|
|
1550
1550
|
() => e.minWidth
|
|
1551
|
-
], ([u, b,
|
|
1552
|
-
t.value = Number(
|
|
1551
|
+
], ([u, b, h, g]) => {
|
|
1552
|
+
t.value = Number(h), r.value = Number(g), o.value = Number(u), d.value = Number(b);
|
|
1553
1553
|
}), { containerStyleObject: $(() => ({
|
|
1554
|
-
height:
|
|
1554
|
+
height: v.value > 0 ? `${v.value}px` : e.fit ? "100%" : "",
|
|
1555
1555
|
width: n.value > 0 ? `${n.value}px` : e.fit ? "100%" : "",
|
|
1556
1556
|
flex: "1 1 0"
|
|
1557
1557
|
})) };
|
|
@@ -1575,7 +1575,7 @@ function Jr(e, t) {
|
|
|
1575
1575
|
rightHeaderColumns: [],
|
|
1576
1576
|
summaryColumns: []
|
|
1577
1577
|
});
|
|
1578
|
-
function
|
|
1578
|
+
function v() {
|
|
1579
1579
|
d.value = {
|
|
1580
1580
|
defaultColumnWidth: 120,
|
|
1581
1581
|
headerDepth: 1,
|
|
@@ -1608,13 +1608,13 @@ function Jr(e, t) {
|
|
|
1608
1608
|
p.length > 0 ? p[p.length - 1].showSetting = !0 : C.length > 0 && (C[C.length - 1].showSetting = !0);
|
|
1609
1609
|
}
|
|
1610
1610
|
function b(p) {
|
|
1611
|
-
|
|
1611
|
+
v();
|
|
1612
1612
|
const C = /* @__PURE__ */ new Map();
|
|
1613
1613
|
return c.value && c.value.reduce((l, s) => (l.set(s, !0), l), C), p.reduce((l, s) => (s.visible = s.visible !== !1, s.filter = s.filter || Hn, s.fixed === "left" ? (d.value.leftColumns.push(s), d.value.leftColumnsMap.set(s.field, s), d.value.leftColumnsWidth += s.actualWidth) : s.fixed === "right" ? (d.value.rightColumns.push(s), d.value.rightColumnsMap.set(s.field, s), d.value.rightColumnsWidth += s.actualWidth) : (d.value.primaryColumns.push(s), d.value.primaryColumnsMap.set(s.field, s), d.value.primaryColumnsWidth += s.actualWidth), C.has(s.field) && d.value.summaryColumns.push(s), l), d), u(), d;
|
|
1614
1614
|
}
|
|
1615
1615
|
b(e.columns);
|
|
1616
|
-
const
|
|
1617
|
-
function
|
|
1616
|
+
const h = $(() => d.value.leftColumns.length > 0), g = $(() => d.value.rightColumns.length > 0);
|
|
1617
|
+
function m(p, C) {
|
|
1618
1618
|
return C.sortable && C.sort && C.sort !== "none" && p.push(C), p;
|
|
1619
1619
|
}
|
|
1620
1620
|
function N(p, C) {
|
|
@@ -1632,7 +1632,7 @@ function Jr(e, t) {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
function S() {
|
|
1634
1634
|
const p = [];
|
|
1635
|
-
d.value.leftColumns.reduce(
|
|
1635
|
+
d.value.leftColumns.reduce(m, p), d.value.primaryColumns.reduce(m, p), d.value.rightColumns.reduce(m, p);
|
|
1636
1636
|
const C = Math.max(...p.map((l) => l.sortOrder || 0));
|
|
1637
1637
|
return p.sort(i).map((l) => {
|
|
1638
1638
|
const s = l.sortOrder || C + 1;
|
|
@@ -1669,7 +1669,7 @@ function Jr(e, t) {
|
|
|
1669
1669
|
applySortableColumns: w,
|
|
1670
1670
|
collectionSortableColumns: S,
|
|
1671
1671
|
columnContext: d,
|
|
1672
|
-
hasLeftFixedColumn:
|
|
1672
|
+
hasLeftFixedColumn: h,
|
|
1673
1673
|
hasRightFixedColumn: g,
|
|
1674
1674
|
updateColumnRenderContext: b,
|
|
1675
1675
|
updateColumnSettingIcon: u,
|
|
@@ -1687,8 +1687,8 @@ const Wn = [{
|
|
|
1687
1687
|
function An(e) {
|
|
1688
1688
|
var n, c;
|
|
1689
1689
|
j(((n = e.column) == null ? void 0 : n.filter) || !1), e.filter = e.filter || function(u) {
|
|
1690
|
-
var
|
|
1691
|
-
return String(((
|
|
1690
|
+
var h;
|
|
1691
|
+
return String(((h = e.column) == null ? void 0 : h.filter) || "").split(",").includes(String(u[e.field]));
|
|
1692
1692
|
};
|
|
1693
1693
|
const t = ",", r = {
|
|
1694
1694
|
multiSelect: !0,
|
|
@@ -1699,9 +1699,9 @@ function An(e) {
|
|
|
1699
1699
|
return (u == null ? void 0 : u.split(t).filter((b) => b !== "").map((b) => b.toLowerCase() === "true")) || [];
|
|
1700
1700
|
}
|
|
1701
1701
|
function d(u) {
|
|
1702
|
-
return u.map((
|
|
1702
|
+
return u.map((h) => h.value).join(t);
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function v(u) {
|
|
1705
1705
|
e.column && (e.column.filter = d(u));
|
|
1706
1706
|
}
|
|
1707
1707
|
return I(wt, {
|
|
@@ -1713,7 +1713,7 @@ function An(e) {
|
|
|
1713
1713
|
size: "Small",
|
|
1714
1714
|
selection: r,
|
|
1715
1715
|
"selection-values": o(((c = e.column) == null ? void 0 : c.filter) || ""),
|
|
1716
|
-
onSelectionUpdate: (u) =>
|
|
1716
|
+
onSelectionUpdate: (u) => v(u)
|
|
1717
1717
|
}, {
|
|
1718
1718
|
default: () => [Ye(" ")]
|
|
1719
1719
|
});
|
|
@@ -1729,16 +1729,16 @@ function Ln(e) {
|
|
|
1729
1729
|
}), d = $(() => {
|
|
1730
1730
|
var u, b;
|
|
1731
1731
|
return r.value || ((b = (u = e.column) == null ? void 0 : u.editor) == null ? void 0 : b.showTime);
|
|
1732
|
-
}),
|
|
1733
|
-
var u, b,
|
|
1732
|
+
}), v = $(() => {
|
|
1733
|
+
var u, b, h, g;
|
|
1734
1734
|
if (r.value)
|
|
1735
1735
|
return ((b = (u = e.column) == null ? void 0 : u.editor) == null ? void 0 : b.displayFormat) || "yyyy-MM-dd HH:mm:ss";
|
|
1736
1736
|
if (o.value)
|
|
1737
|
-
return ((g = (
|
|
1737
|
+
return ((g = (h = e.column) == null ? void 0 : h.editor) == null ? void 0 : g.displayFormat) || "yyyy-MM-dd";
|
|
1738
1738
|
});
|
|
1739
1739
|
e.filter = e.filter || function(u) {
|
|
1740
|
-
var
|
|
1741
|
-
const b = new Date(new Date((
|
|
1740
|
+
var h;
|
|
1741
|
+
const b = new Date(new Date((h = e.column) == null ? void 0 : h.filter).toLocaleDateString()).valueOf();
|
|
1742
1742
|
return new Date(new Date(u[e.field]).toLocaleDateString()).valueOf() === b;
|
|
1743
1743
|
};
|
|
1744
1744
|
function n(u) {
|
|
@@ -1749,8 +1749,8 @@ function Ln(e) {
|
|
|
1749
1749
|
}, [I(en, {
|
|
1750
1750
|
modelValue: t.value,
|
|
1751
1751
|
"onUpdate:modelValue": (u) => t.value = u,
|
|
1752
|
-
valueFormat:
|
|
1753
|
-
displayFormat:
|
|
1752
|
+
valueFormat: v.value,
|
|
1753
|
+
displayFormat: v.value,
|
|
1754
1754
|
onDatePicked: n,
|
|
1755
1755
|
showTime: d.value
|
|
1756
1756
|
}, null)]);
|
|
@@ -1761,14 +1761,14 @@ function Bn(e) {
|
|
|
1761
1761
|
isUndefined: t,
|
|
1762
1762
|
isNull: r
|
|
1763
1763
|
} = ct(), o = j(t((n = e.column) == null ? void 0 : n.filter) || r((c = e.column) == null ? void 0 : c.filter) ? null : (u = e.column) == null ? void 0 : u.filter), d = $(() => {
|
|
1764
|
-
var b,
|
|
1765
|
-
return t((
|
|
1764
|
+
var b, h, g, m;
|
|
1765
|
+
return t((h = (b = e.column) == null ? void 0 : b.editor) == null ? void 0 : h.precision) ? 2 : (m = (g = e.column) == null ? void 0 : g.editor) == null ? void 0 : m.precision;
|
|
1766
1766
|
});
|
|
1767
1767
|
e.filter = e.filter || function(b) {
|
|
1768
|
-
const
|
|
1769
|
-
return isNaN(
|
|
1768
|
+
const h = Number.parseFloat(String(o.value)), g = Number.parseFloat(b[e.field]);
|
|
1769
|
+
return isNaN(h) ? isNaN(g) : h === g;
|
|
1770
1770
|
};
|
|
1771
|
-
function
|
|
1771
|
+
function v(b) {
|
|
1772
1772
|
e.column && (e.column.filter = b), o.value = b;
|
|
1773
1773
|
}
|
|
1774
1774
|
return I("div", null, [I(tn, {
|
|
@@ -1777,37 +1777,40 @@ function Bn(e) {
|
|
|
1777
1777
|
nullable: !0,
|
|
1778
1778
|
showZero: !0,
|
|
1779
1779
|
precision: d.value,
|
|
1780
|
-
onValueChange:
|
|
1780
|
+
onValueChange: v
|
|
1781
1781
|
}, null)]);
|
|
1782
1782
|
}
|
|
1783
|
-
function jn(e, t, r, o, d,
|
|
1784
|
-
var
|
|
1785
|
-
const
|
|
1786
|
-
|
|
1787
|
-
|
|
1783
|
+
function jn(e, t, r, o, d, v) {
|
|
1784
|
+
var m;
|
|
1785
|
+
const {
|
|
1786
|
+
t: n
|
|
1787
|
+
} = Be(), c = j(((m = e.column) == null ? void 0 : m.filter) || "");
|
|
1788
|
+
e.filterHistory = e.filterHistory || d.getFilterHistory(e), e.filter = e.filter || function(N) {
|
|
1789
|
+
return (N[e.field] || "").startsWith(c.value);
|
|
1788
1790
|
};
|
|
1789
|
-
function
|
|
1790
|
-
e.column && (e.column.filter =
|
|
1791
|
+
function u(N, i) {
|
|
1792
|
+
e.column && (e.column.filter = N);
|
|
1791
1793
|
}
|
|
1792
|
-
const
|
|
1793
|
-
id:
|
|
1794
|
-
name:
|
|
1794
|
+
const b = o.rawView.value.reduce((N, i, y) => (N.push(i[e.field]), N), []), g = [...new Set(b)].map((N, i) => ({
|
|
1795
|
+
id: i,
|
|
1796
|
+
name: N
|
|
1795
1797
|
}));
|
|
1796
1798
|
return I("div", {
|
|
1797
1799
|
style: "display:flex;flex-direction:column;"
|
|
1798
1800
|
}, [I(nn, {
|
|
1799
|
-
modelValue:
|
|
1800
|
-
"onUpdate:modelValue": (
|
|
1801
|
+
modelValue: c.value,
|
|
1802
|
+
"onUpdate:modelValue": (N) => c.value = N,
|
|
1803
|
+
placeholder: n("datagrid.filter.searchBoxPlaceholder"),
|
|
1801
1804
|
showDropdown: !1,
|
|
1802
1805
|
"popup-right-boundary": r.value,
|
|
1803
|
-
"popup-offset-x":
|
|
1804
|
-
"recommended-data":
|
|
1806
|
+
"popup-offset-x": v.offsetX,
|
|
1807
|
+
"recommended-data": g,
|
|
1805
1808
|
buttonContent: "",
|
|
1806
1809
|
updateOn: "change",
|
|
1807
|
-
onChange: (
|
|
1810
|
+
onChange: (N, i) => u(N)
|
|
1808
1811
|
}, null)]);
|
|
1809
1812
|
}
|
|
1810
|
-
function $n(e, t, r, o, d,
|
|
1813
|
+
function $n(e, t, r, o, d, v) {
|
|
1811
1814
|
var i;
|
|
1812
1815
|
e.filter = e.filter || function(y) {
|
|
1813
1816
|
var S;
|
|
@@ -1817,7 +1820,7 @@ function $n(e, t, r, o, d, h) {
|
|
|
1817
1820
|
multiSelect: !0,
|
|
1818
1821
|
multiSelectMode: "OnCheckAndClick",
|
|
1819
1822
|
showCheckbox: !0
|
|
1820
|
-
}, u = o.rawView.value.reduce((y, k, S) => (y.push(k[e.field]), y), []),
|
|
1823
|
+
}, u = o.rawView.value.reduce((y, k, S) => (y.push(k[e.field]), y), []), h = [...new Set(u)].map((y, k) => ({
|
|
1821
1824
|
id: k,
|
|
1822
1825
|
name: y,
|
|
1823
1826
|
value: y
|
|
@@ -1825,14 +1828,14 @@ function $n(e, t, r, o, d, h) {
|
|
|
1825
1828
|
function g(y) {
|
|
1826
1829
|
return (y == null ? void 0 : y.split(n)) || [];
|
|
1827
1830
|
}
|
|
1828
|
-
function
|
|
1831
|
+
function m(y) {
|
|
1829
1832
|
return y.map((S) => S.value).join(n);
|
|
1830
1833
|
}
|
|
1831
1834
|
function N(y) {
|
|
1832
|
-
e.column && (e.column.filter =
|
|
1835
|
+
e.column && (e.column.filter = m(y));
|
|
1833
1836
|
}
|
|
1834
1837
|
return I(wt, {
|
|
1835
|
-
data:
|
|
1838
|
+
data: h,
|
|
1836
1839
|
"multi-select": !0,
|
|
1837
1840
|
"id-field": "value",
|
|
1838
1841
|
"value-field": "value",
|
|
@@ -1887,7 +1890,7 @@ function zn(e) {
|
|
|
1887
1890
|
});
|
|
1888
1891
|
}
|
|
1889
1892
|
function Zr(e, t, r, o, d) {
|
|
1890
|
-
const
|
|
1893
|
+
const v = /* @__PURE__ */ new Map([
|
|
1891
1894
|
["boolean", "boolean-filter"],
|
|
1892
1895
|
["date", "date-filter"],
|
|
1893
1896
|
["datetime", "date-filter"],
|
|
@@ -1906,8 +1909,8 @@ function Zr(e, t, r, o, d) {
|
|
|
1906
1909
|
["text-filter", jn]
|
|
1907
1910
|
]);
|
|
1908
1911
|
function c(u) {
|
|
1909
|
-
var
|
|
1910
|
-
const b = ((
|
|
1912
|
+
var m;
|
|
1913
|
+
const b = ((m = u.column) == null ? void 0 : m.dataType) || "string", h = v.get(b) || "text-editor", g = n.get(h);
|
|
1911
1914
|
if (g)
|
|
1912
1915
|
return g(
|
|
1913
1916
|
u,
|
|
@@ -1921,12 +1924,12 @@ function Zr(e, t, r, o, d) {
|
|
|
1921
1924
|
return { getFilterEditor: c };
|
|
1922
1925
|
}
|
|
1923
1926
|
function Qr(e) {
|
|
1924
|
-
var
|
|
1925
|
-
const { t } =
|
|
1927
|
+
var v, n;
|
|
1928
|
+
const { t } = Be(), r = j(((v = e.commandOption) == null ? void 0 : v.enable) || !1), o = j(((n = e.commandOption) == null ? void 0 : n.commands) || []);
|
|
1926
1929
|
function d(c) {
|
|
1927
1930
|
var u;
|
|
1928
|
-
if (r.value && !(c.value.findIndex((
|
|
1929
|
-
const
|
|
1931
|
+
if (r.value && !(c.value.findIndex((h) => h.dataType === lt) > -1)) {
|
|
1932
|
+
const h = {
|
|
1930
1933
|
field: On,
|
|
1931
1934
|
title: t("datagrid.commandColumn.title"),
|
|
1932
1935
|
width: kn,
|
|
@@ -1936,15 +1939,15 @@ function Qr(e) {
|
|
|
1936
1939
|
resizable: !1,
|
|
1937
1940
|
halign: ((u = e.commandOption) == null ? void 0 : u.halign) || "left",
|
|
1938
1941
|
visible: !0,
|
|
1939
|
-
formatter: e.commandOption.formatter ? (g,
|
|
1942
|
+
formatter: e.commandOption.formatter ? (g, m) => e.commandOption.formatter(g, m) : null
|
|
1940
1943
|
};
|
|
1941
|
-
c.value.push(
|
|
1944
|
+
c.value.push(h);
|
|
1942
1945
|
}
|
|
1943
1946
|
}
|
|
1944
1947
|
return { applyCommands: d };
|
|
1945
1948
|
}
|
|
1946
|
-
function el(e, t, r, o, d,
|
|
1947
|
-
const { columnContext: c } = r, { getGridHeaderCells: u } = d, { groupFields: b } =
|
|
1949
|
+
function el(e, t, r, o, d, v, n) {
|
|
1950
|
+
const { columnContext: c } = r, { getGridHeaderCells: u } = d, { groupFields: b } = v, h = j(-1), g = j(!1), m = $(() => b.value && b.value.map((_) => {
|
|
1948
1951
|
var a;
|
|
1949
1952
|
return {
|
|
1950
1953
|
name: ((a = c.value.primaryColumnsMap.get(_)) == null ? void 0 : a.title) || _,
|
|
@@ -1956,14 +1959,14 @@ function el(e, t, r, o, d, h, n) {
|
|
|
1956
1959
|
if (_.stopPropagation(), a && a.draggable) {
|
|
1957
1960
|
const l = `${(f = a.column) == null ? void 0 : f.title}:${(p = a.column) == null ? void 0 : p.field}`;
|
|
1958
1961
|
(C = _.dataTransfer) == null || C.setData("Text", l), setTimeout(() => {
|
|
1959
|
-
|
|
1962
|
+
h.value = w, g.value = !0;
|
|
1960
1963
|
});
|
|
1961
1964
|
}
|
|
1962
1965
|
}
|
|
1963
1966
|
function i(_, a) {
|
|
1964
|
-
if (_.preventDefault(),
|
|
1965
|
-
const { primaryColumns: w } = c.value, f = w[
|
|
1966
|
-
p[a].dataType !== lt && p[a].dataType !== Je && (p.splice(
|
|
1967
|
+
if (_.preventDefault(), h.value !== a && g.value) {
|
|
1968
|
+
const { primaryColumns: w } = c.value, f = w[h.value], p = w;
|
|
1969
|
+
p[a].dataType !== lt && p[a].dataType !== Je && (p.splice(h.value, 1), p.splice(a, 0, f), c.value.primaryHeaderColumns = Array.from(u(p).values()), h.value = a);
|
|
1967
1970
|
}
|
|
1968
1971
|
}
|
|
1969
1972
|
function y(_, a) {
|
|
@@ -1980,7 +1983,7 @@ function el(e, t, r, o, d, h, n) {
|
|
|
1980
1983
|
const f = a.split(":");
|
|
1981
1984
|
f[0];
|
|
1982
1985
|
const p = f[1];
|
|
1983
|
-
|
|
1986
|
+
v.groupFields.value.push(p);
|
|
1984
1987
|
}
|
|
1985
1988
|
o.updateDataView(), n.reCalculateVisualDataRows();
|
|
1986
1989
|
}
|
|
@@ -1991,17 +1994,17 @@ function el(e, t, r, o, d, h, n) {
|
|
|
1991
1994
|
dragend: k,
|
|
1992
1995
|
dropOnGroupPanel: S,
|
|
1993
1996
|
isDragging: g,
|
|
1994
|
-
groupColumnItems:
|
|
1997
|
+
groupColumnItems: m
|
|
1995
1998
|
};
|
|
1996
1999
|
}
|
|
1997
2000
|
function tl(e, t, r, o, d) {
|
|
1998
|
-
const { getGridHeaderCells:
|
|
2001
|
+
const { getGridHeaderCells: v } = d, n = 120, c = 50, u = $(() => {
|
|
1999
2002
|
var l;
|
|
2000
2003
|
return ((l = e.rowNumber) == null ? void 0 : l.enable) || !1;
|
|
2001
2004
|
}), b = $(() => {
|
|
2002
2005
|
var l, s;
|
|
2003
2006
|
return !e.hierarchy && (((l = e.selection) == null ? void 0 : l.multiSelect) || ((s = e.selection) == null ? void 0 : s.showCheckbox) || !1);
|
|
2004
|
-
}),
|
|
2007
|
+
}), h = $(
|
|
2005
2008
|
() => {
|
|
2006
2009
|
var l;
|
|
2007
2010
|
return 0 + (u.value ? ((l = e.rowNumber) == null ? void 0 : l.width) || 32 : 0) + (b.value ? c : 0);
|
|
@@ -2009,7 +2012,7 @@ function tl(e, t, r, o, d) {
|
|
|
2009
2012
|
), g = $(() => {
|
|
2010
2013
|
var l;
|
|
2011
2014
|
return ((l = e.columnOption) == null ? void 0 : l.fitColumns) || !1;
|
|
2012
|
-
}),
|
|
2015
|
+
}), m = $(() => {
|
|
2013
2016
|
var l;
|
|
2014
2017
|
return g.value ? ((l = e.columnOption) == null ? void 0 : l.fitMode) || "average" : "none";
|
|
2015
2018
|
});
|
|
@@ -2074,7 +2077,7 @@ function tl(e, t, r, o, d) {
|
|
|
2074
2077
|
percentage: k
|
|
2075
2078
|
};
|
|
2076
2079
|
function w(l) {
|
|
2077
|
-
l.value.leftHeaderColumns = Array.from(
|
|
2080
|
+
l.value.leftHeaderColumns = Array.from(v(l.value.leftColumns.filter((s) => s.visible)).values()), l.value.primaryHeaderColumns = Array.from(v(l.value.primaryColumns.filter((s) => s.visible)).values()), l.value.rightHeaderColumns = Array.from(v(l.value.rightColumns.filter((s) => s.visible)).values());
|
|
2078
2081
|
}
|
|
2079
2082
|
function f(l) {
|
|
2080
2083
|
l.value.leftColumnsWidth = 0, l.value.primaryColumnsWidth = 0, l.value.rightColumnsWidth = 0, l.value.leftColumns.filter((s) => s.visible).forEach((s) => {
|
|
@@ -2092,7 +2095,7 @@ function tl(e, t, r, o, d) {
|
|
|
2092
2095
|
l.value.rightColumns.filter((Z) => Z.visible).forEach((Z) => {
|
|
2093
2096
|
Z.actualWidth = i(Z, l.value, s), z += Z.actualWidth;
|
|
2094
2097
|
});
|
|
2095
|
-
const Y = O - z, K = a[
|
|
2098
|
+
const Y = O - z, K = a[m.value];
|
|
2096
2099
|
if (K && K(l, Y), l.value.primaryColumnsWidth + z <= O)
|
|
2097
2100
|
return l.value.primaryColumns = [...X, ...L], l.value.primaryColumnsWidth += z, l.value.rightColumns = [], l.value.rightColumnsWidth = 0, !0;
|
|
2098
2101
|
const R = /* @__PURE__ */ new Map();
|
|
@@ -2104,7 +2107,7 @@ function tl(e, t, r, o, d) {
|
|
|
2104
2107
|
function C() {
|
|
2105
2108
|
if (r.value) {
|
|
2106
2109
|
t.value.leftColumnsWidth = 0, t.value.primaryColumnsWidth = 0, t.value.rightColumnsWidth = 0;
|
|
2107
|
-
const l = r.value.clientWidth -
|
|
2110
|
+
const l = r.value.clientWidth - h.value;
|
|
2108
2111
|
t.value.leftColumns.filter((O) => O.visible).forEach((O) => {
|
|
2109
2112
|
O.actualWidth = i(O, t.value, l), t.value.leftColumnsWidth += O.actualWidth;
|
|
2110
2113
|
});
|
|
@@ -2115,7 +2118,7 @@ function tl(e, t, r, o, d) {
|
|
|
2115
2118
|
t.value.rightColumns.filter((X) => X.visible).forEach((X) => {
|
|
2116
2119
|
X.actualWidth = i(X, t.value, l), t.value.rightColumnsWidth += X.actualWidth;
|
|
2117
2120
|
});
|
|
2118
|
-
const O = l - t.value.leftColumnsWidth - t.value.rightColumnsWidth, z = a[
|
|
2121
|
+
const O = l - t.value.leftColumnsWidth - t.value.rightColumnsWidth, z = a[m.value];
|
|
2119
2122
|
z && z(t, O), o.value = O;
|
|
2120
2123
|
}
|
|
2121
2124
|
w(t), t.value = Object.assign({}, t.value);
|
|
@@ -2126,33 +2129,33 @@ function tl(e, t, r, o, d) {
|
|
|
2126
2129
|
return (l = e.columnOption) == null ? void 0 : l.fitColumns;
|
|
2127
2130
|
}, (l, s) => {
|
|
2128
2131
|
l !== s && l && C();
|
|
2129
|
-
}), me(
|
|
2132
|
+
}), me(m, (l, s) => {
|
|
2130
2133
|
l !== s && g.value && C();
|
|
2131
2134
|
}), { calculateColumnHeaders: w, calculateColumnsSize: C, calculateColumnsWidth: f };
|
|
2132
2135
|
}
|
|
2133
2136
|
function nl(e, t) {
|
|
2134
2137
|
var b;
|
|
2135
2138
|
const r = j((b = e.columnOption) == null ? void 0 : b.groups);
|
|
2136
|
-
function o(
|
|
2139
|
+
function o(h, g, m, N, i) {
|
|
2137
2140
|
const y = {
|
|
2138
2141
|
actualWidth: 0,
|
|
2139
2142
|
children: [],
|
|
2140
2143
|
depth: 1,
|
|
2141
|
-
field:
|
|
2144
|
+
field: h.field,
|
|
2142
2145
|
layer: 1,
|
|
2143
2146
|
left: 0,
|
|
2144
|
-
parent:
|
|
2147
|
+
parent: m,
|
|
2145
2148
|
resizable: !0,
|
|
2146
|
-
title:
|
|
2149
|
+
title: h.title || "",
|
|
2147
2150
|
status: D.none,
|
|
2148
2151
|
popoverRef: j(),
|
|
2149
2152
|
showPopover: !1,
|
|
2150
2153
|
column: null,
|
|
2151
2154
|
sortType: "none"
|
|
2152
2155
|
}, k = N || y;
|
|
2153
|
-
if (
|
|
2156
|
+
if (h.group) {
|
|
2154
2157
|
let S = 1;
|
|
2155
|
-
|
|
2158
|
+
h.group.reduce((_, a) => {
|
|
2156
2159
|
if (typeof a == "string") {
|
|
2157
2160
|
const w = g.get(a);
|
|
2158
2161
|
w && (i.fieldToRootMap.set(a, k), _.actualWidth += w.actualWidth, _.children.push(w));
|
|
@@ -2165,40 +2168,40 @@ function nl(e, t) {
|
|
|
2165
2168
|
}
|
|
2166
2169
|
return t.value.headerDepth = Math.max(t.value.headerDepth, y.depth), y;
|
|
2167
2170
|
}
|
|
2168
|
-
function d(
|
|
2171
|
+
function d(h) {
|
|
2169
2172
|
const g = {
|
|
2170
2173
|
groupedCells: /* @__PURE__ */ new Map(),
|
|
2171
2174
|
fieldToRootMap: /* @__PURE__ */ new Map()
|
|
2172
2175
|
};
|
|
2173
|
-
return r.value && r.value.reduce((
|
|
2174
|
-
const i = o(N,
|
|
2175
|
-
return
|
|
2176
|
+
return r.value && r.value.reduce((m, N) => {
|
|
2177
|
+
const i = o(N, h, null, null, g);
|
|
2178
|
+
return m.groupedCells.set(N.field, i), m;
|
|
2176
2179
|
}, g), g;
|
|
2177
2180
|
}
|
|
2178
|
-
function h
|
|
2179
|
-
if (!
|
|
2181
|
+
function v(h) {
|
|
2182
|
+
if (!h || h.length === 0)
|
|
2180
2183
|
return 0;
|
|
2181
|
-
const g =
|
|
2182
|
-
return g.children && g.children.length > 0 && (g.left =
|
|
2184
|
+
const g = h[0];
|
|
2185
|
+
return g.children && g.children.length > 0 && (g.left = v(g.children)), g.left;
|
|
2183
2186
|
}
|
|
2184
|
-
function n(
|
|
2185
|
-
const
|
|
2186
|
-
|
|
2187
|
+
function n(h, g) {
|
|
2188
|
+
const m = t.value.headerDepth;
|
|
2189
|
+
h.forEach((N) => {
|
|
2187
2190
|
N.layer = g ? g.layer + 1 : 1;
|
|
2188
2191
|
const i = N.children && N.children.length === 0;
|
|
2189
|
-
N.depth = i ?
|
|
2192
|
+
N.depth = i ? m - (N.layer - 1) : 1, N.left = i ? N.left : v(N.children), N.children && n(N.children, N);
|
|
2190
2193
|
});
|
|
2191
2194
|
}
|
|
2192
|
-
function c(
|
|
2193
|
-
const
|
|
2194
|
-
return
|
|
2195
|
+
function c(h, g) {
|
|
2196
|
+
const m = /* @__PURE__ */ new Map();
|
|
2197
|
+
return h.forEach((N) => {
|
|
2195
2198
|
const i = g.fieldToRootMap.get(N.field), y = i != null;
|
|
2196
|
-
y && !
|
|
2197
|
-
}), n(Array.from(
|
|
2199
|
+
y && !m.has(i.field) && m.set(i.field, i), y || m.set(N.field, N);
|
|
2200
|
+
}), n(Array.from(m.values())), m;
|
|
2198
2201
|
}
|
|
2199
|
-
function u(
|
|
2200
|
-
let g = /* @__PURE__ */ new Map(),
|
|
2201
|
-
if (
|
|
2202
|
+
function u(h) {
|
|
2203
|
+
let g = /* @__PURE__ */ new Map(), m = 0;
|
|
2204
|
+
if (h.reduce((N, i) => {
|
|
2202
2205
|
let y = D.none;
|
|
2203
2206
|
y = i.sortable ? y | D.sortable : y, y = i.filterable ? y | D.filterable : y, y = i.sort && i.sort !== "none" ? y | D.sorted | (i.sort === "asc" ? D.ascending : D.descending) : y;
|
|
2204
2207
|
const k = i.field;
|
|
@@ -2207,7 +2210,7 @@ function nl(e, t) {
|
|
|
2207
2210
|
children: [],
|
|
2208
2211
|
depth: 1,
|
|
2209
2212
|
layer: 1,
|
|
2210
|
-
left:
|
|
2213
|
+
left: m,
|
|
2211
2214
|
field: k,
|
|
2212
2215
|
parent: null,
|
|
2213
2216
|
resizable: i.resizable === void 0 ? !0 : i.resizable,
|
|
@@ -2220,7 +2223,7 @@ function nl(e, t) {
|
|
|
2220
2223
|
sortType: i.sort || "none",
|
|
2221
2224
|
showSetting: i.showSetting,
|
|
2222
2225
|
draggable: i.draggable
|
|
2223
|
-
}),
|
|
2226
|
+
}), m += i.actualWidth || 0, N;
|
|
2224
2227
|
}, g), r.value) {
|
|
2225
2228
|
const N = d(g);
|
|
2226
2229
|
g = c(g, N);
|
|
@@ -2232,7 +2235,7 @@ function nl(e, t) {
|
|
|
2232
2235
|
function Gn(e, t) {
|
|
2233
2236
|
var _;
|
|
2234
2237
|
Gt();
|
|
2235
|
-
const { idField: r } = t, o = j(e.summary), d = j(e.group),
|
|
2238
|
+
const { idField: r } = t, o = j(e.summary), d = j(e.group), v = j(((_ = e.group) == null ? void 0 : _.groupFields) || []), n = $(() => {
|
|
2236
2239
|
var a;
|
|
2237
2240
|
return (a = e.group) == null ? void 0 : a.enable;
|
|
2238
2241
|
}), c = $(() => {
|
|
@@ -2244,8 +2247,8 @@ function Gn(e, t) {
|
|
|
2244
2247
|
}), b = $(() => {
|
|
2245
2248
|
const a = d.value;
|
|
2246
2249
|
return a && a.showSummary;
|
|
2247
|
-
}),
|
|
2248
|
-
let
|
|
2250
|
+
}), h = j(0), g = /* @__PURE__ */ new Map();
|
|
2251
|
+
let m = [];
|
|
2249
2252
|
function N(a, w, f, p, C) {
|
|
2250
2253
|
const l = p[f];
|
|
2251
2254
|
l && (w.reduce((s, O, z) => {
|
|
@@ -2319,7 +2322,7 @@ function Gn(e, t) {
|
|
|
2319
2322
|
}), f;
|
|
2320
2323
|
}
|
|
2321
2324
|
function k(a, w, f) {
|
|
2322
|
-
return !a || a.length === 0 || !w.length ? w : (a.join(","), g.clear(),
|
|
2325
|
+
return !a || a.length === 0 || !w.length ? w : (a.join(","), g.clear(), m = [], w = w.filter((p) => !p.__fv_data_grid_group_row__), N(g, w, 0, a, f), m = y(g), m);
|
|
2323
2326
|
}
|
|
2324
2327
|
function S(a) {
|
|
2325
2328
|
return {
|
|
@@ -2328,16 +2331,16 @@ function Gn(e, t) {
|
|
|
2328
2331
|
"fv-grid-group-row-icon-collapse": a.collapse
|
|
2329
2332
|
};
|
|
2330
2333
|
}
|
|
2331
|
-
return { collpaseGroupIconClass: S, generateGroupData: k, groupFields:
|
|
2334
|
+
return { collpaseGroupIconClass: S, generateGroupData: k, groupFields: v, shouldGroupingData: n, showGroupPanel: c, groupRowSize: h };
|
|
2332
2335
|
}
|
|
2333
2336
|
function Rt(e) {
|
|
2334
|
-
const t = "parent", r = "layer", o = "hasChildren", d = (n, c = 1, u = [], b = null) => (n = n || [], n.reduce((
|
|
2335
|
-
Object.keys(g).includes(
|
|
2336
|
-
}), u.push(g), g.children && g.children.length && (g[o] = !0, d(g.children, c + 1, u, g.id)),
|
|
2337
|
+
const t = "parent", r = "layer", o = "hasChildren", d = (n, c = 1, u = [], b = null) => (n = n || [], n.reduce((h, g) => (g.id = g.id || g.data[e.idField], g[t] = b, g[r] = c, g[o] = g[o] === void 0 ? !1 : g[o], g.data && Object.keys(g.data).forEach((m) => {
|
|
2338
|
+
Object.keys(g).includes(m) || (g[m] = g.data[m]);
|
|
2339
|
+
}), u.push(g), g.children && g.children.length && (g[o] = !0, d(g.children, c + 1, u, g.id)), h), u), u);
|
|
2337
2340
|
return { flatTreeData: d, isNestedTree: (n) => n.some((c) => Array.isArray(c.children)) };
|
|
2338
2341
|
}
|
|
2339
2342
|
function Un(e, t, r, o) {
|
|
2340
|
-
const d = j(0),
|
|
2343
|
+
const d = j(0), v = j(!!e.hierarchy), { idField: n } = o, { collapseField: c, hasChildrenField: u, parentIdField: b } = r, h = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), { flatTreeData: N, isNestedTree: i } = Rt(e);
|
|
2341
2344
|
function y(T, E) {
|
|
2342
2345
|
g.clear(), T.reduce((W, U) => {
|
|
2343
2346
|
const oe = U[b.value] !== void 0 ? U[b.value] : "";
|
|
@@ -2351,10 +2354,10 @@ function Un(e, t, r, o) {
|
|
|
2351
2354
|
}, g);
|
|
2352
2355
|
}
|
|
2353
2356
|
function k(T) {
|
|
2354
|
-
|
|
2357
|
+
m.clear(), T.reduce((E, W) => {
|
|
2355
2358
|
const U = W[n.value];
|
|
2356
2359
|
return E.set(U, W), E;
|
|
2357
|
-
},
|
|
2360
|
+
}, m);
|
|
2358
2361
|
}
|
|
2359
2362
|
function S(T) {
|
|
2360
2363
|
T.forEach((E) => {
|
|
@@ -2376,7 +2379,7 @@ function Un(e, t, r, o) {
|
|
|
2376
2379
|
function a(T) {
|
|
2377
2380
|
T.forEach((E) => {
|
|
2378
2381
|
const W = E.__fv_parents__;
|
|
2379
|
-
Array.from(W.keys()).map((U) =>
|
|
2382
|
+
Array.from(W.keys()).map((U) => m.get(U)).forEach((U) => {
|
|
2380
2383
|
U.__fv_children_index__.push(E.__fv_index__);
|
|
2381
2384
|
});
|
|
2382
2385
|
}), _(T);
|
|
@@ -2419,20 +2422,20 @@ function Un(e, t, r, o) {
|
|
|
2419
2422
|
});
|
|
2420
2423
|
}
|
|
2421
2424
|
function O(T) {
|
|
2422
|
-
|
|
2425
|
+
h.clear(), T.forEach((E, W) => {
|
|
2423
2426
|
const U = E[n.value];
|
|
2424
|
-
|
|
2425
|
-
}), k(T), y(T,
|
|
2427
|
+
h.set(U, f(U, W));
|
|
2428
|
+
}), k(T), y(T, m), p(h, g, m), l(T, h), s(h);
|
|
2426
2429
|
}
|
|
2427
2430
|
function z(T) {
|
|
2428
|
-
const E = T[n.value], W =
|
|
2431
|
+
const E = T[n.value], W = h.get(E);
|
|
2429
2432
|
return W && W.children.size > 0;
|
|
2430
2433
|
}
|
|
2431
2434
|
function X(T) {
|
|
2432
2435
|
return T[u.value] && !z(T);
|
|
2433
2436
|
}
|
|
2434
2437
|
function L(T) {
|
|
2435
|
-
const E = T[n.value], W =
|
|
2438
|
+
const E = T[n.value], W = h.get(E);
|
|
2436
2439
|
return W && W.visibleInHierarchy;
|
|
2437
2440
|
}
|
|
2438
2441
|
function Y() {
|
|
@@ -2440,7 +2443,7 @@ function Un(e, t, r, o) {
|
|
|
2440
2443
|
}
|
|
2441
2444
|
function K(T, E) {
|
|
2442
2445
|
E.forEach((W) => {
|
|
2443
|
-
const U =
|
|
2446
|
+
const U = h.get(W[n.value]), oe = h.get(T), de = m.get(T);
|
|
2444
2447
|
oe && de && (U.visibleInHierarchy = !de[c.value] && oe.visibleInHierarchy);
|
|
2445
2448
|
}), Y();
|
|
2446
2449
|
}
|
|
@@ -2483,9 +2486,9 @@ function Un(e, t, r, o) {
|
|
|
2483
2486
|
return Z(T, "ToCollapse", W), T;
|
|
2484
2487
|
}
|
|
2485
2488
|
function J(T, E, W) {
|
|
2486
|
-
const oe = W.value[T][n.value], de =
|
|
2489
|
+
const oe = W.value[T][n.value], de = h.get(oe);
|
|
2487
2490
|
if (de) {
|
|
2488
|
-
const fe =
|
|
2491
|
+
const fe = h.get(de.parentId);
|
|
2489
2492
|
let ae = W.value.length - 1;
|
|
2490
2493
|
if (fe) {
|
|
2491
2494
|
const ue = Array.from(fe.children.keys()).indexOf(de.id);
|
|
@@ -2502,14 +2505,14 @@ function Un(e, t, r, o) {
|
|
|
2502
2505
|
}
|
|
2503
2506
|
function q(T, E, W) {
|
|
2504
2507
|
const U = W.value[T], oe = U[n.value];
|
|
2505
|
-
if (
|
|
2508
|
+
if (h.get(oe)) {
|
|
2506
2509
|
const ae = W.value.findIndex((ue) => ue[n.value] === oe) + 1;
|
|
2507
2510
|
U[u.value] = !0, U[c.value] = !1, E[u.value] = !1, E[b.value] = oe, W.value.splice(ae, 0, E);
|
|
2508
2511
|
}
|
|
2509
2512
|
}
|
|
2510
2513
|
function ie(T, E, W) {
|
|
2511
2514
|
const oe = W.value[T][n.value];
|
|
2512
|
-
if (
|
|
2515
|
+
if (h.get(oe)) {
|
|
2513
2516
|
const ae = W.value.findIndex((Ce) => Ce[n.value] === oe) + 1;
|
|
2514
2517
|
let ue = E;
|
|
2515
2518
|
i(E) && (ue = N(E)), ue.forEach((Ce) => {
|
|
@@ -2518,9 +2521,9 @@ function Un(e, t, r, o) {
|
|
|
2518
2521
|
}
|
|
2519
2522
|
}
|
|
2520
2523
|
function H(T, E) {
|
|
2521
|
-
const W = T[n.value], U =
|
|
2524
|
+
const W = T[n.value], U = h.get(W), oe = Array.from(U.descendant.keys());
|
|
2522
2525
|
oe.unshift(W);
|
|
2523
|
-
const de =
|
|
2526
|
+
const de = h.get(U.parentId);
|
|
2524
2527
|
if (de && (de.children.delete(W), de.children.size === 0)) {
|
|
2525
2528
|
const ae = E.find((ue) => ue[n.value] === U.parentId);
|
|
2526
2529
|
ae[u.value] = !1, ae[c.value] = !1;
|
|
@@ -2537,7 +2540,7 @@ function Un(e, t, r, o) {
|
|
|
2537
2540
|
insertChild: q,
|
|
2538
2541
|
insertChildren: ie,
|
|
2539
2542
|
isVisibleInTree: L,
|
|
2540
|
-
shouldStratifyData:
|
|
2543
|
+
shouldStratifyData: v,
|
|
2541
2544
|
toggleChildrenVisibiltyByCollapseStatus: G,
|
|
2542
2545
|
trimmedOriginalData: H
|
|
2543
2546
|
};
|
|
@@ -2567,19 +2570,19 @@ const Kn = {
|
|
|
2567
2570
|
const {
|
|
2568
2571
|
locale: r,
|
|
2569
2572
|
t: o
|
|
2570
|
-
} =
|
|
2573
|
+
} = Be(), d = j(e.animate), v = "fadeOut", n = $(() => e.options), c = j(!1), u = $(() => n.value.title && n.value.message), b = $(() => !n.value.title && n.value.message), h = $(() => {
|
|
2571
2574
|
const w = {
|
|
2572
2575
|
animated: c.value,
|
|
2573
2576
|
toast: !0,
|
|
2574
2577
|
"toast--only-content": !u.value
|
|
2575
2578
|
};
|
|
2576
|
-
return w[e.animate] = !1, w[
|
|
2579
|
+
return w[e.animate] = !1, w[v] = c.value, w["toasty-type-" + n.value.type] = !0, n.value.theme && (w[n.value.theme] = !0), w;
|
|
2577
2580
|
}), g = $(() => {
|
|
2578
2581
|
const p = `f-icon-${n.value && n.value.type ? n.value.type.replace("toasty-type-", "") : "default"}`, C = {
|
|
2579
2582
|
"f-icon": !0
|
|
2580
2583
|
};
|
|
2581
2584
|
return C[p] = !0, C;
|
|
2582
|
-
}),
|
|
2585
|
+
}), m = $(() => n.value.title || n.value.message), N = $(() => e.showCloseButton), i = $(() => !!n.value.buttons || !!t.slots.default), y = $(() => r.value === "en" ? {
|
|
2583
2586
|
wordBreak: "keep-all",
|
|
2584
2587
|
overflowWrap: "break-word"
|
|
2585
2588
|
} : {});
|
|
@@ -2606,7 +2609,7 @@ const Kn = {
|
|
|
2606
2609
|
}, [f.text]))), t.slots.default && t.slots.default()])]);
|
|
2607
2610
|
};
|
|
2608
2611
|
return () => I("div", {
|
|
2609
|
-
class:
|
|
2612
|
+
class: h.value,
|
|
2610
2613
|
style: "min-height:44px"
|
|
2611
2614
|
}, [N.value && I("button", {
|
|
2612
2615
|
title: o("messageBox.close"),
|
|
@@ -2614,7 +2617,7 @@ const Kn = {
|
|
|
2614
2617
|
onClick: k
|
|
2615
2618
|
}, [I("span", {
|
|
2616
2619
|
class: "f-icon modal_close"
|
|
2617
|
-
}, null)]),
|
|
2620
|
+
}, null)]), m.value && I("section", {
|
|
2618
2621
|
class: "modal-tips"
|
|
2619
2622
|
}, [!u.value && I("div", {
|
|
2620
2623
|
class: "float-left modal-tips-iconwrap"
|
|
@@ -2655,38 +2658,38 @@ const Kn = {
|
|
|
2655
2658
|
right: 12,
|
|
2656
2659
|
top: 20,
|
|
2657
2660
|
bottom: 12
|
|
2658
|
-
}, d = j(),
|
|
2659
|
-
const
|
|
2661
|
+
}, d = j(), v = j(e.options), n = j(e.showCloseButton), c = $(() => e.position || "bottom-right"), u = $(() => e.timeout != null ? e.timeout : 3e3), b = $(() => {
|
|
2662
|
+
const m = e.bottom ? e.bottom : o.bottom, N = e.top ? e.top : o.top, i = {
|
|
2660
2663
|
transition: "all 0.2s ease",
|
|
2661
2664
|
left: c.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
|
|
2662
2665
|
right: c.value.indexOf("right") > -1 ? `${e.right ? e.right : o.right}px` : "",
|
|
2663
2666
|
top: c.value.indexOf("top") > -1 ? `${N}px` : "",
|
|
2664
|
-
bottom: c.value.indexOf("bottom") > -1 ? `${
|
|
2667
|
+
bottom: c.value.indexOf("bottom") > -1 ? `${m}px` : ""
|
|
2665
2668
|
};
|
|
2666
2669
|
return c.value.indexOf("center") > -1 && (i.left = "50%", i.marginLeft = "calc(-24rem / 2)", c.value === "center-center" && (i.top = "50%", i.transform = "translate(-50%, -50%)")), i;
|
|
2667
2670
|
});
|
|
2668
|
-
function m
|
|
2671
|
+
function h(m) {
|
|
2669
2672
|
t.emit("close");
|
|
2670
2673
|
}
|
|
2671
2674
|
u.value && setTimeout(() => {
|
|
2672
|
-
|
|
2675
|
+
h();
|
|
2673
2676
|
}, u.value), t.expose({
|
|
2674
|
-
closeToast:
|
|
2677
|
+
closeToast: h,
|
|
2675
2678
|
container: d,
|
|
2676
2679
|
notifyPosition: c
|
|
2677
2680
|
});
|
|
2678
|
-
function g(
|
|
2679
|
-
|
|
2681
|
+
function g(m, N) {
|
|
2682
|
+
h();
|
|
2680
2683
|
}
|
|
2681
2684
|
return () => I("div", {
|
|
2682
2685
|
class: r.value,
|
|
2683
2686
|
style: b.value,
|
|
2684
2687
|
ref: d
|
|
2685
2688
|
}, [I(pt, {
|
|
2686
|
-
options:
|
|
2689
|
+
options: v.value,
|
|
2687
2690
|
showCloseButton: n.value,
|
|
2688
2691
|
animate: e.animate,
|
|
2689
|
-
onClose: (
|
|
2692
|
+
onClose: (m) => g(m, v.value)
|
|
2690
2693
|
}, null)]);
|
|
2691
2694
|
}
|
|
2692
2695
|
});
|
|
@@ -2709,8 +2712,8 @@ class It {
|
|
|
2709
2712
|
safeHtml: !0
|
|
2710
2713
|
}, this.globalConfig, {
|
|
2711
2714
|
...t
|
|
2712
|
-
}),
|
|
2713
|
-
|
|
2715
|
+
}), v = document.createElement("div");
|
|
2716
|
+
v.style.display = "contents";
|
|
2714
2717
|
const n = At({
|
|
2715
2718
|
setup() {
|
|
2716
2719
|
var b;
|
|
@@ -2721,14 +2724,14 @@ class It {
|
|
|
2721
2724
|
}, 220);
|
|
2722
2725
|
}
|
|
2723
2726
|
if (d.position.indexOf("top") > -1) {
|
|
2724
|
-
const
|
|
2727
|
+
const h = r.getNotifyInstances(d.position), g = h[h.length - 1];
|
|
2725
2728
|
if (g) {
|
|
2726
|
-
const
|
|
2727
|
-
d.top =
|
|
2729
|
+
const m = g.value.container.getBoundingClientRect();
|
|
2730
|
+
d.top = m.bottom;
|
|
2728
2731
|
}
|
|
2729
2732
|
}
|
|
2730
2733
|
return d.safeHtml && ((b = d.options) != null && b.message) && (d.options.message = r.escapeAllHtml(d.options.message)), Lt(() => {
|
|
2731
|
-
document.body.removeChild(
|
|
2734
|
+
document.body.removeChild(v);
|
|
2732
2735
|
}), Bt(() => {
|
|
2733
2736
|
r.updateNotifyPositionForCreate(d, c);
|
|
2734
2737
|
}), () => I(jt, {
|
|
@@ -2744,7 +2747,7 @@ class It {
|
|
|
2744
2747
|
});
|
|
2745
2748
|
}
|
|
2746
2749
|
});
|
|
2747
|
-
return n.provide("NotifyService", this), document.body.appendChild(
|
|
2750
|
+
return n.provide("NotifyService", this), document.body.appendChild(v), n.use(rn.i18n), n.mount(v), n;
|
|
2748
2751
|
}
|
|
2749
2752
|
getNotifyInstances(t) {
|
|
2750
2753
|
return this.notifyRefs.filter((r) => r.value.notifyPosition === t);
|
|
@@ -2753,8 +2756,8 @@ class It {
|
|
|
2753
2756
|
if (this.notifyRefs && this.notifyRefs.length) {
|
|
2754
2757
|
const o = window.innerHeight;
|
|
2755
2758
|
t.position.indexOf("bottom") > -1 && this.getNotifyInstances(t.position).forEach((d) => {
|
|
2756
|
-
const
|
|
2757
|
-
d.value.container.style.bottom =
|
|
2759
|
+
const v = d.value.container.getBoundingClientRect();
|
|
2760
|
+
d.value.container.style.bottom = v.height + o - v.bottom + "px";
|
|
2758
2761
|
});
|
|
2759
2762
|
}
|
|
2760
2763
|
this.notifyRefs = [...this.notifyRefs, r];
|
|
@@ -2762,8 +2765,8 @@ class It {
|
|
|
2762
2765
|
updateNotifyPositionForClose(t, r) {
|
|
2763
2766
|
const o = this.notifyRefs.indexOf(r);
|
|
2764
2767
|
if (t.position.indexOf("top") > -1) {
|
|
2765
|
-
const d = this.getNotifyInstances(t.position),
|
|
2766
|
-
d.slice(
|
|
2768
|
+
const d = this.getNotifyInstances(t.position), v = d.indexOf(r);
|
|
2769
|
+
d.slice(v + 1).forEach((n) => {
|
|
2767
2770
|
n.value.container.style.top = n.value.container.offsetTop - n.value.container.offsetHeight + "px";
|
|
2768
2771
|
});
|
|
2769
2772
|
}
|
|
@@ -2773,8 +2776,8 @@ class It {
|
|
|
2773
2776
|
return this.createNotifyInstance(t);
|
|
2774
2777
|
}
|
|
2775
2778
|
buildNotifyProps(t, r) {
|
|
2776
|
-
let o = "", d = "",
|
|
2777
|
-
typeof r == "string" ? o = r : r && (o = r.message || "", d = r.title || "", n = r.position || null, c = r.showCloseButton != null ? r.showCloseButton : null,
|
|
2779
|
+
let o = "", d = "", v, n, c;
|
|
2780
|
+
typeof r == "string" ? o = r : r && (o = r.message || "", d = r.title || "", n = r.position || null, c = r.showCloseButton != null ? r.showCloseButton : null, v = r.timeout != null ? r.timeout : null);
|
|
2778
2781
|
const b = {
|
|
2779
2782
|
options: {
|
|
2780
2783
|
type: t,
|
|
@@ -2782,7 +2785,7 @@ class It {
|
|
|
2782
2785
|
title: d
|
|
2783
2786
|
}
|
|
2784
2787
|
};
|
|
2785
|
-
return n != null && (b.position = n), c != null && (b.showCloseButton = c),
|
|
2788
|
+
return n != null && (b.position = n), c != null && (b.showCloseButton = c), v != null && (b.timeout = v), b;
|
|
2786
2789
|
}
|
|
2787
2790
|
info(t) {
|
|
2788
2791
|
const r = this.buildNotifyProps("info", t);
|
|
@@ -2816,7 +2819,7 @@ st.install = (e) => {
|
|
|
2816
2819
|
e.provide(Yn, t), e.provide("FNotifyService", t);
|
|
2817
2820
|
};
|
|
2818
2821
|
function rl(e, t, r, o, d) {
|
|
2819
|
-
const { toNumber:
|
|
2822
|
+
const { toNumber: v } = Ft(), n = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map(), g = j([]), m = j([]), N = Gn(e, d), { generateGroupData: i, groupFields: y, shouldGroupingData: k } = N, S = j(e.data || []), _ = Un(e, S, o, d), {
|
|
2820
2823
|
collapseTo: a,
|
|
2821
2824
|
expandTo: w,
|
|
2822
2825
|
generateHierarchyData: f,
|
|
@@ -2847,15 +2850,15 @@ function rl(e, t, r, o, d) {
|
|
|
2847
2850
|
function de(B, te) {
|
|
2848
2851
|
const ce = Math.ceil(B.length / te);
|
|
2849
2852
|
let he = 0;
|
|
2850
|
-
const Re = [], We = [],
|
|
2853
|
+
const Re = [], We = [], $e = [];
|
|
2851
2854
|
for (; he < ce; ) {
|
|
2852
2855
|
const De = B.slice(he * te, (he + 1) * te), be = i(y.value, De, t);
|
|
2853
2856
|
We[he] = be.filter((Se) => Se.__fv_data_grid_group_row__).length, Re.push(...be), he++;
|
|
2854
2857
|
}
|
|
2855
|
-
return We.reduce((De, be, Se) => (De = De + be,
|
|
2858
|
+
return We.reduce((De, be, Se) => (De = De + be, $e.push(De), De), 0), {
|
|
2856
2859
|
groupData: Re,
|
|
2857
2860
|
groupRowSizeList: We,
|
|
2858
|
-
accumulateGroupRowSize:
|
|
2861
|
+
accumulateGroupRowSize: $e
|
|
2859
2862
|
};
|
|
2860
2863
|
}
|
|
2861
2864
|
function fe() {
|
|
@@ -2869,14 +2872,14 @@ function rl(e, t, r, o, d) {
|
|
|
2869
2872
|
const tt = Oe[E.value - 1];
|
|
2870
2873
|
Re += E.value - 2 < 0 ? 0 : Se[E.value - 2], We = Re + te + tt;
|
|
2871
2874
|
}
|
|
2872
|
-
let
|
|
2875
|
+
let $e = 0;
|
|
2873
2876
|
const De = [];
|
|
2874
2877
|
if (Z.value.length) {
|
|
2875
2878
|
R(Z.value);
|
|
2876
2879
|
const Se = K.value !== e.idField;
|
|
2877
2880
|
for (let Fe = Re; Fe < We; Fe++) {
|
|
2878
2881
|
const Oe = Z.value[Fe];
|
|
2879
|
-
Oe.__fv_data_grid_group_row__ ? (
|
|
2882
|
+
Oe.__fv_data_grid_group_row__ ? ($e = 0, Oe.__fv_data_index__ = "") : Oe.__fv_data_grid_group_summary__ ? Oe.__fv_data_index__ = "" : ($e++, Oe.__fv_data_index__ = $e + (E.value - 1) * te), Oe.__fv_index__ = Fe, Oe.__fv_visible_index__ = Fe, e.rowOption && e.rowOption.disabledField && (Oe.__fv_disabled__ = Oe[(be = e.rowOption) == null ? void 0 : be.disabledField]), Se && (Oe[K.value] = Fe), J.value.forEach((tt) => {
|
|
2880
2883
|
const dt = q.get(tt) || 0;
|
|
2881
2884
|
q.set(tt, dt + _e(Oe, tt));
|
|
2882
2885
|
}), De.push(Oe);
|
|
@@ -2884,7 +2887,7 @@ function rl(e, t, r, o, d) {
|
|
|
2884
2887
|
}
|
|
2885
2888
|
return z.value && f(De), J.value.forEach((Se) => {
|
|
2886
2889
|
const Fe = q.get(Se) || 0;
|
|
2887
|
-
q.set(Se,
|
|
2890
|
+
q.set(Se, v(Fe.toFixed(2)));
|
|
2888
2891
|
}), V.value = [...De], De;
|
|
2889
2892
|
}
|
|
2890
2893
|
const ae = j(fe()), ue = $(() => (Y.value, ae.value.filter((B) => z.value ? B.__fv_visible__ !== !1 && O(B) : B.__fv_visible__ !== !1)));
|
|
@@ -2896,7 +2899,7 @@ function rl(e, t, r, o, d) {
|
|
|
2896
2899
|
const he = ce ? fe() : [...V.value];
|
|
2897
2900
|
let Re = he;
|
|
2898
2901
|
((De = e.filter) == null ? void 0 : De.mode) !== "server" && (Re = he.filter((be) => r.apply(be)));
|
|
2899
|
-
const We = B && B.length ? Re.filter((be) => B.reduce((Se, Fe) => Se && Fe.filter(be), !0)) : Re,
|
|
2902
|
+
const We = B && B.length ? Re.filter((be) => B.reduce((Se, Fe) => Se && Fe.filter(be), !0)) : Re, $e = te && te.length ? We.sort((be, Se) => {
|
|
2900
2903
|
const Fe = [...te], Oe = Fe.shift(), tt = _e(be, Oe.field) === void 0 || _e(be, Oe.field) === null ? "" : _e(be, Oe.field), dt = _e(Se, Oe.field) === void 0 || _e(Se, Oe.field) === null ? "" : _e(Se, Oe.field);
|
|
2901
2904
|
let ft = Oe.compare(
|
|
2902
2905
|
tt,
|
|
@@ -2911,7 +2914,7 @@ function rl(e, t, r, o, d) {
|
|
|
2911
2914
|
}
|
|
2912
2915
|
return ft;
|
|
2913
2916
|
}) : We;
|
|
2914
|
-
return ae.value =
|
|
2917
|
+
return ae.value = $e.map((be, Se) => {
|
|
2915
2918
|
if (be.__fv_data_grid_group_row__) {
|
|
2916
2919
|
const Fe = `group_of_${be.__fv_data_grid_group_field__}_${be.__fv_data_grid_group_value__}`;
|
|
2917
2920
|
be.__fv_data_grid_group_collapse__ = !!n.get(Fe);
|
|
@@ -2920,22 +2923,22 @@ function rl(e, t, r, o, d) {
|
|
|
2920
2923
|
}), ae.value;
|
|
2921
2924
|
}
|
|
2922
2925
|
function Ae(B) {
|
|
2923
|
-
return
|
|
2926
|
+
return h.clear(), m.value = B, m.value.reduce((te, ce) => (te.set(ce.field, ce), te), h), ge([], m.value);
|
|
2924
2927
|
}
|
|
2925
2928
|
function A(B, te) {
|
|
2926
|
-
return
|
|
2929
|
+
return h.set(B, te), m.value = Array.from(h.values()), ge([], m.value);
|
|
2927
2930
|
}
|
|
2928
2931
|
function ne(B) {
|
|
2929
|
-
return
|
|
2932
|
+
return h.delete(B), m.value = Array.from(h.values()), ge([], m.value);
|
|
2930
2933
|
}
|
|
2931
2934
|
function re(B, te) {
|
|
2932
|
-
return c.set(B, te), g.value = Array.from(c.values()), ge([], Array.from(
|
|
2935
|
+
return c.set(B, te), g.value = Array.from(c.values()), ge([], Array.from(h.values()));
|
|
2933
2936
|
}
|
|
2934
2937
|
function we(B) {
|
|
2935
|
-
return c.delete(B), g.value = Array.from(c.values()), ge([], Array.from(
|
|
2938
|
+
return c.delete(B), g.value = Array.from(c.values()), ge([], Array.from(h.values()), !0);
|
|
2936
2939
|
}
|
|
2937
2940
|
function P() {
|
|
2938
|
-
return c.clear(), g.value = [], ge([], Array.from(
|
|
2941
|
+
return c.clear(), g.value = [], ge([], Array.from(h.values()), !0);
|
|
2939
2942
|
}
|
|
2940
2943
|
function ee(B, te, ce) {
|
|
2941
2944
|
const he = `group_of_${B}_${te}`;
|
|
@@ -2947,7 +2950,7 @@ function rl(e, t, r, o, d) {
|
|
|
2947
2950
|
fieldType: "string",
|
|
2948
2951
|
filterValue: te,
|
|
2949
2952
|
filter: Re
|
|
2950
|
-
}), ge(Array.from(u.values()), Array.from(
|
|
2953
|
+
}), ge(Array.from(u.values()), Array.from(h.values()));
|
|
2951
2954
|
}
|
|
2952
2955
|
function pe(B) {
|
|
2953
2956
|
a(ae.value, B);
|
|
@@ -2957,7 +2960,7 @@ function rl(e, t, r, o, d) {
|
|
|
2957
2960
|
}
|
|
2958
2961
|
function ye(B, te, ce) {
|
|
2959
2962
|
const he = `group_of_${B}_${te}`;
|
|
2960
|
-
return n.set(he, !1), u.delete(`collapse_${B}_${te}`), ge(Array.from(u.values()), Array.from(
|
|
2963
|
+
return n.set(he, !1), u.delete(`collapse_${B}_${te}`), ge(Array.from(u.values()), Array.from(h.values()), !0);
|
|
2961
2964
|
}
|
|
2962
2965
|
function Ue(B) {
|
|
2963
2966
|
const te = B.raw[K.value], ce = (he) => !he.__fv_parents__.has(te);
|
|
@@ -2967,25 +2970,25 @@ function rl(e, t, r, o, d) {
|
|
|
2967
2970
|
fieldType: "string",
|
|
2968
2971
|
filterValue: String(te),
|
|
2969
2972
|
filter: ce
|
|
2970
|
-
}), ge(Array.from(b.values()), Array.from(
|
|
2973
|
+
}), ge(Array.from(b.values()), Array.from(h.values())), f(ae.value);
|
|
2971
2974
|
}
|
|
2972
2975
|
function Le(B) {
|
|
2973
2976
|
const te = B[K.value];
|
|
2974
2977
|
b.delete(`fold_${te}`);
|
|
2975
2978
|
}
|
|
2976
2979
|
function Ze(B) {
|
|
2977
|
-
Le(B.raw), ge(Array.from(b.values()), Array.from(
|
|
2980
|
+
Le(B.raw), ge(Array.from(b.values()), Array.from(h.values()), !0), f(ae.value);
|
|
2978
2981
|
}
|
|
2979
2982
|
function Ve() {
|
|
2980
2983
|
const B = fe();
|
|
2981
|
-
ae.value = B, ge(Array.from(b.values()), Array.from(
|
|
2984
|
+
ae.value = B, ge(Array.from(b.values()), Array.from(h.values())), e.hierarchy && f(ae.value);
|
|
2982
2985
|
}
|
|
2983
2986
|
function se(B) {
|
|
2984
2987
|
const ce = e.hierarchy && x(B) ? F(B) : B;
|
|
2985
2988
|
S.value = ce, Ve();
|
|
2986
2989
|
}
|
|
2987
2990
|
function Ne(B, te, ce) {
|
|
2988
|
-
return (B && B.length ? ae.value.filter((Re, We) => B.reduce((
|
|
2991
|
+
return (B && B.length ? ae.value.filter((Re, We) => B.reduce(($e, De) => $e && De.filter(Re), !0)) : ae.value).slice(te, ce);
|
|
2989
2992
|
}
|
|
2990
2993
|
function Te(B) {
|
|
2991
2994
|
const te = T(), ce = Math.ceil(ie.value / te);
|
|
@@ -3028,12 +3031,12 @@ function rl(e, t, r, o, d) {
|
|
|
3028
3031
|
}
|
|
3029
3032
|
function xe() {
|
|
3030
3033
|
const B = u.size > 0 ? Array.from(u.values()) : [];
|
|
3031
|
-
return ge(B, Array.from(
|
|
3034
|
+
return ge(B, Array.from(h.values()));
|
|
3032
3035
|
}
|
|
3033
3036
|
function Me(B) {
|
|
3034
3037
|
H.value.size = B;
|
|
3035
3038
|
}
|
|
3036
|
-
function
|
|
3039
|
+
function je(B) {
|
|
3037
3040
|
H.value && (Me(B), Ve());
|
|
3038
3041
|
}
|
|
3039
3042
|
function qe(B, te) {
|
|
@@ -3061,7 +3064,7 @@ function rl(e, t, r, o, d) {
|
|
|
3061
3064
|
});
|
|
3062
3065
|
B.forEach((te) => {
|
|
3063
3066
|
const ce = q.get(te) || 0;
|
|
3064
|
-
q.set(te,
|
|
3067
|
+
q.set(te, v(ce.toFixed(2)));
|
|
3065
3068
|
});
|
|
3066
3069
|
}
|
|
3067
3070
|
function et(B) {
|
|
@@ -3074,7 +3077,7 @@ function rl(e, t, r, o, d) {
|
|
|
3074
3077
|
});
|
|
3075
3078
|
te.forEach((ce) => {
|
|
3076
3079
|
const he = q.get(ce) || 0;
|
|
3077
|
-
q.set(ce,
|
|
3080
|
+
q.set(ce, v(he.toFixed(2)));
|
|
3078
3081
|
});
|
|
3079
3082
|
}
|
|
3080
3083
|
return {
|
|
@@ -3082,7 +3085,7 @@ function rl(e, t, r, o, d) {
|
|
|
3082
3085
|
addNewDataItem: Ee,
|
|
3083
3086
|
addSorter: A,
|
|
3084
3087
|
updatePageSize: Me,
|
|
3085
|
-
changePageSizeTo:
|
|
3088
|
+
changePageSizeTo: je,
|
|
3086
3089
|
collapse: ee,
|
|
3087
3090
|
collapseTo: pe,
|
|
3088
3091
|
dataView: ae,
|
|
@@ -3111,7 +3114,7 @@ function rl(e, t, r, o, d) {
|
|
|
3111
3114
|
removeSorter: ne,
|
|
3112
3115
|
reOrderVisibleIndex: Ce,
|
|
3113
3116
|
setSorters: Ae,
|
|
3114
|
-
sorters:
|
|
3117
|
+
sorters: m,
|
|
3115
3118
|
summaries: q,
|
|
3116
3119
|
updateSummary: ot,
|
|
3117
3120
|
toggleChildrenVisibiltyByCollapseStatus: X,
|
|
@@ -3257,7 +3260,7 @@ const Xn = [
|
|
|
3257
3260
|
]);
|
|
3258
3261
|
function ll(e, t) {
|
|
3259
3262
|
const r = j([]), o = /* @__PURE__ */ new Map(), { loadConditionGroup: d } = ln();
|
|
3260
|
-
function
|
|
3263
|
+
function v(w, f) {
|
|
3261
3264
|
switch (w) {
|
|
3262
3265
|
case "check-box":
|
|
3263
3266
|
return new mn({ value: f });
|
|
@@ -3362,16 +3365,16 @@ function ll(e, t) {
|
|
|
3362
3365
|
const f = w.dataType || "string";
|
|
3363
3366
|
return ((p = w.editor) == null ? void 0 : p.type) || n.get(f) || "text";
|
|
3364
3367
|
}
|
|
3365
|
-
function
|
|
3368
|
+
function h(w) {
|
|
3366
3369
|
var Y, K, R, G, Z;
|
|
3367
|
-
const f = `field_filter_${w.field}`, p = Date.now(), C = w.field, l = ((Y = w.column) == null ? void 0 : Y.title) || "", s = ((K = w.column) == null ? void 0 : K.dataType) || "string", O = c.get(s) || He.Equal, z = ((G = (R = w.column) == null ? void 0 : R.editor) == null ? void 0 : G.type) || n.get(s) || "text", X =
|
|
3370
|
+
const f = `field_filter_${w.field}`, p = Date.now(), C = w.field, l = ((Y = w.column) == null ? void 0 : Y.title) || "", s = ((K = w.column) == null ? void 0 : K.dataType) || "string", O = c.get(s) || He.Equal, z = ((G = (R = w.column) == null ? void 0 : R.editor) == null ? void 0 : G.type) || n.get(s) || "text", X = v(z, (Z = w.column) == null ? void 0 : Z.filter), L = z === "lookup" || z === "combo-lookup" ? nt.SmartHelp : z === "combo-list" ? nt.Enum : nt.Value;
|
|
3368
3371
|
o.set(f, { id: f, fieldCode: C, fieldName: l, compareType: O, valueType: L, value: X, conditionId: p, relation: 1 }), r.value = Array.from(o.values());
|
|
3369
3372
|
}
|
|
3370
3373
|
function g(w) {
|
|
3371
3374
|
const f = `field_filter_${w.field}`;
|
|
3372
3375
|
o.delete(f), r.value = Array.from(o.values());
|
|
3373
3376
|
}
|
|
3374
|
-
function
|
|
3377
|
+
function m(w) {
|
|
3375
3378
|
o.delete(w), r.value = Array.from(o.values());
|
|
3376
3379
|
}
|
|
3377
3380
|
function N() {
|
|
@@ -3404,13 +3407,13 @@ function ll(e, t) {
|
|
|
3404
3407
|
t.emit("filterChanged", w);
|
|
3405
3408
|
}
|
|
3406
3409
|
return {
|
|
3407
|
-
addColumnFilter:
|
|
3410
|
+
addColumnFilter: h,
|
|
3408
3411
|
apply: _,
|
|
3409
3412
|
clearCondition: N,
|
|
3410
3413
|
conditions: r,
|
|
3411
3414
|
getFilterEditorType: b,
|
|
3412
3415
|
removeColumnFilter: g,
|
|
3413
|
-
removeCondition:
|
|
3416
|
+
removeCondition: m,
|
|
3414
3417
|
filterFromServer: a,
|
|
3415
3418
|
createFilterConditions: u
|
|
3416
3419
|
};
|
|
@@ -3430,14 +3433,14 @@ function ol() {
|
|
|
3430
3433
|
function d(n, c) {
|
|
3431
3434
|
if (!c)
|
|
3432
3435
|
return;
|
|
3433
|
-
const u = r(n),
|
|
3434
|
-
|
|
3436
|
+
const u = r(n), h = [u.find((g) => g.name === c) || { id: Date.now(), name: c, selectable: !0 }, ...u.filter((g) => g.name !== c)];
|
|
3437
|
+
h.length > 5 && (h.length = 5), o(n, h);
|
|
3435
3438
|
}
|
|
3436
|
-
function
|
|
3437
|
-
const b = [...r(n).filter((g) => g.name !== c)],
|
|
3438
|
-
localStorage.setItem(
|
|
3439
|
+
function v(n, c) {
|
|
3440
|
+
const b = [...r(n).filter((g) => g.name !== c)], h = t(n);
|
|
3441
|
+
localStorage.setItem(h, JSON.stringify(b));
|
|
3439
3442
|
}
|
|
3440
|
-
return { getFilterHistory: r, removeFilterHistory:
|
|
3443
|
+
return { getFilterHistory: r, removeFilterHistory: v, setFilterHistory: o, updateFilterHistory: d };
|
|
3441
3444
|
}
|
|
3442
3445
|
function il(e) {
|
|
3443
3446
|
j(e.selection.showCheckbox || !1);
|
|
@@ -3450,27 +3453,27 @@ function il(e) {
|
|
|
3450
3453
|
}), o = $(() => {
|
|
3451
3454
|
var n;
|
|
3452
3455
|
return ((n = e.hierarchy) == null ? void 0 : n.parentIdField) || "parent";
|
|
3453
|
-
}), d = $(() => e.hierarchy && e.selection.showCheckbox),
|
|
3454
|
-
return { collapseField: t, hasChildrenField: r, parentIdField: o, shouldShowCheckBox: d, shouldShowIcon:
|
|
3456
|
+
}), d = $(() => e.hierarchy && e.selection.showCheckbox), v = $(() => (e.treeNodeIconsData.fold || e.iconField) && e.showTreeNodeIcons);
|
|
3457
|
+
return { collapseField: t, hasChildrenField: r, parentIdField: o, shouldShowCheckBox: d, shouldShowIcon: v };
|
|
3455
3458
|
}
|
|
3456
3459
|
function rr(e, t, r, o, d) {
|
|
3457
3460
|
var _, a, w, f, p, C;
|
|
3458
|
-
const { getDifference:
|
|
3461
|
+
const { getDifference: v, isBInA: n } = bt(), { dataView: c, visibleDataItems: u } = r, { idField: b } = o, h = j(((a = (_ = e.hierarchy) == null ? void 0 : _.cascadeOption) == null ? void 0 : a.autoCheckChildren) || !1), g = j(((f = (w = e.hierarchy) == null ? void 0 : w.cascadeOption) == null ? void 0 : f.autoCheckParent) || !1), m = j(((C = (p = e.hierarchy) == null ? void 0 : p.cascadeOption) == null ? void 0 : C.selectionRange) || "All");
|
|
3459
3462
|
me(() => {
|
|
3460
3463
|
var l;
|
|
3461
3464
|
return (l = e.hierarchy) == null ? void 0 : l.cascadeOption;
|
|
3462
3465
|
}, (l) => {
|
|
3463
|
-
|
|
3466
|
+
h.value = l ? !!l.autoCheckChildren : !1, g.value = l ? !!l.autoCheckParent : !1, m.value = l ? l.selectionRange : "All";
|
|
3464
3467
|
});
|
|
3465
|
-
const N = $(() =>
|
|
3468
|
+
const N = $(() => m.value === "OnlyParent"), i = $(() => m.value === "OnlyChildren");
|
|
3466
3469
|
function y(l, s) {
|
|
3467
3470
|
let O = l;
|
|
3468
3471
|
const z = c.value[s], X = z[b.value], Y = Array.from(z.__fv_descendant_index__).map((x) => c.value[x]), K = Y.filter((x) => x.__fv_visible__ !== !1).map((x) => x.__fv_visible_index__).filter((x) => t.value[x]).map((x) => t.value[x]), R = K.map((x) => x.raw[b.value]), G = n(l, R), Z = n(l, [X]);
|
|
3469
|
-
return Z && G && N.value && (O =
|
|
3472
|
+
return Z && G && N.value && (O = v(l, R), K.forEach((x) => {
|
|
3470
3473
|
x.disabled = !0;
|
|
3471
3474
|
}), Y.forEach((x) => {
|
|
3472
3475
|
x.__fv_disabled__ = !0;
|
|
3473
|
-
})), Z && G && i.value && (O =
|
|
3476
|
+
})), Z && G && i.value && (O = v(l, [X]), K.forEach((x) => {
|
|
3474
3477
|
x.disabled = !0;
|
|
3475
3478
|
}), Y.forEach((x) => {
|
|
3476
3479
|
x.__fv_disabled__ = !0;
|
|
@@ -3479,11 +3482,11 @@ function rr(e, t, r, o, d) {
|
|
|
3479
3482
|
function k(l, s) {
|
|
3480
3483
|
let O = l;
|
|
3481
3484
|
const z = s[b.value], L = Array.from(s.__fv_children_index__).map((F) => c.value[F]), Y = L.filter((F) => F.__fv_visible__ !== !1).map((F) => F.__fv_visible_index__).filter((F) => t.value[F]).map((F) => t.value[F]), K = Y.map((F) => F.raw[b.value]), R = n(l, K), G = n(l, [s[b.value]]);
|
|
3482
|
-
return G && R && N.value && (O =
|
|
3485
|
+
return G && R && N.value && (O = v(l, K), Y.forEach((F) => {
|
|
3483
3486
|
F.disabled = !0;
|
|
3484
3487
|
}), L.forEach((F) => {
|
|
3485
3488
|
F.__fv_disabled__ = !0;
|
|
3486
|
-
})), G && R && i.value && (O =
|
|
3489
|
+
})), G && R && i.value && (O = v(l, [z]), Y.forEach((F) => {
|
|
3487
3490
|
F.disabled = !0;
|
|
3488
3491
|
}), L.forEach((F) => {
|
|
3489
3492
|
F.__fv_disabled__ = !0;
|
|
@@ -3493,10 +3496,10 @@ function rr(e, t, r, o, d) {
|
|
|
3493
3496
|
let O = l.map((Y) => Y[b.value]);
|
|
3494
3497
|
return s.__fv_parent_index__ > 0 && (O = y(O, s.__fv_parent_index__)), s.__fv_children_index__.length > 0 && (O = k(O, s)), l.filter((Y) => O.includes(Y[b.value]));
|
|
3495
3498
|
}
|
|
3496
|
-
return { autoCheckChildren:
|
|
3499
|
+
return { autoCheckChildren: h, autoCheckParent: g, interactAfterCheckHierarchyItem: S };
|
|
3497
3500
|
}
|
|
3498
|
-
function al(e, t, r, o, d,
|
|
3499
|
-
const { getDifference: n, isBInA: c } = bt(), { dataView: u, fold: b, hasRealChildren:
|
|
3501
|
+
function al(e, t, r, o, d, v) {
|
|
3502
|
+
const { getDifference: n, isBInA: c } = bt(), { dataView: u, fold: b, hasRealChildren: h, unFold: g, reOrderVisibleIndex: m } = r, {
|
|
3500
3503
|
clearSelection: N,
|
|
3501
3504
|
selectDataItem: i,
|
|
3502
3505
|
unSelectDataItem: y,
|
|
@@ -3614,7 +3617,7 @@ function al(e, t, r, o, d, h) {
|
|
|
3614
3617
|
let E = _();
|
|
3615
3618
|
E = s(E, T), Z(H);
|
|
3616
3619
|
const W = E.map((U) => U[O.value]);
|
|
3617
|
-
|
|
3620
|
+
v.emit("selectionUpdate", E, W), H.checked ? v.emit("selectItem", H) : v.emit("unSelectItem", H);
|
|
3618
3621
|
}
|
|
3619
3622
|
function J(H, T) {
|
|
3620
3623
|
let E = -1;
|
|
@@ -3644,36 +3647,36 @@ function al(e, t, r, o, d, h) {
|
|
|
3644
3647
|
unSelectItemByIds: G
|
|
3645
3648
|
};
|
|
3646
3649
|
}
|
|
3647
|
-
function sl(e, t, r, o, d,
|
|
3650
|
+
function sl(e, t, r, o, d, v, n, c, u) {
|
|
3648
3651
|
var Qe;
|
|
3649
|
-
const { dataView: b, visibleDataItems:
|
|
3650
|
-
let w = 0, f =
|
|
3652
|
+
const { dataView: b, visibleDataItems: h } = t, { getVisualData: g, maxVisibleRowIndex: m, minVisibleRowIndex: N } = d, i = $(() => o.value.primaryColumnsWidth), y = $(() => o.value.leftColumnsWidth), k = $(() => o.value.rightColumnsWidth), S = ((Qe = e.rowOption) == null ? void 0 : Qe.height) || 28, _ = j(0), a = j(0);
|
|
3653
|
+
let w = 0, f = v.value - 1;
|
|
3651
3654
|
const p = j(0), C = j(0), l = j(0), s = j(e.virtualized), O = 24, z = 1.5;
|
|
3652
3655
|
let X = null;
|
|
3653
3656
|
function L() {
|
|
3654
|
-
const Q =
|
|
3657
|
+
const Q = h.value;
|
|
3655
3658
|
if (Q.length <= 0)
|
|
3656
3659
|
return 0;
|
|
3657
|
-
const le =
|
|
3658
|
-
return le.__fv_data_position__ > Q.length * S ? Q.length * S : (le.__fv_data_position__ || 0) + (le.__fv_data_height__ || 0) + Math.max(Q.length - 1 -
|
|
3660
|
+
const le = m.value < Q.length ? Q[m.value] : Q[Q.length - 1];
|
|
3661
|
+
return le.__fv_data_position__ > Q.length * S ? Q.length * S : (le.__fv_data_position__ || 0) + (le.__fv_data_height__ || 0) + Math.max(Q.length - 1 - m.value, 0) * S;
|
|
3659
3662
|
}
|
|
3660
3663
|
const Y = $(() => {
|
|
3661
3664
|
const Q = L();
|
|
3662
|
-
|
|
3665
|
+
h.value;
|
|
3663
3666
|
let le = C.value / Math.max(Q, C.value), ve = Math.floor(le * C.value);
|
|
3664
3667
|
for (; C.value > 0 && ve < O; )
|
|
3665
3668
|
le *= z, ve = Math.floor(le * C.value);
|
|
3666
3669
|
return ve;
|
|
3667
3670
|
}), K = $(() => Math.floor(l.value / Math.max(i.value, l.value) * p.value)), R = 0, G = 0, Z = $(() => p.value - (y.value + i.value + k.value + c.value));
|
|
3668
3671
|
function V(Q) {
|
|
3669
|
-
const ve = Math.floor(Q / S) + 1, xe =
|
|
3672
|
+
const ve = Math.floor(Q / S) + 1, xe = h.value;
|
|
3670
3673
|
return xe.length > ve ? xe[ve].__fv_visible_index__ - 1 : 0;
|
|
3671
3674
|
}
|
|
3672
3675
|
function F(Q, le, ve) {
|
|
3673
3676
|
let xe = Q, Me = le;
|
|
3674
|
-
const
|
|
3675
|
-
if (
|
|
3676
|
-
const qe = n +
|
|
3677
|
+
const je = le - Q + 1;
|
|
3678
|
+
if (je < n + v.value + n) {
|
|
3679
|
+
const qe = n + v.value + n - je, it = le + qe <= ve, ot = 0 + qe <= Q;
|
|
3677
3680
|
if (it)
|
|
3678
3681
|
Me += qe, f = Me;
|
|
3679
3682
|
else if (ot)
|
|
@@ -3687,12 +3690,12 @@ function sl(e, t, r, o, d, h, n, c, u) {
|
|
|
3687
3690
|
}
|
|
3688
3691
|
function x(Q) {
|
|
3689
3692
|
var et, B;
|
|
3690
|
-
const le =
|
|
3693
|
+
const le = h.value;
|
|
3691
3694
|
if (!le.length) {
|
|
3692
3695
|
r.value = [];
|
|
3693
3696
|
return;
|
|
3694
3697
|
}
|
|
3695
|
-
const ve = (et = e.pagination) != null && et.enable ? 0 : Math.max(w - n, 0), xe = le[le.length - 1].__fv_visible_index__, Me = (B = e.pagination) != null && B.enable ? le.length - 1 : Math.min(f + n, xe), { actualStart:
|
|
3698
|
+
const ve = (et = e.pagination) != null && et.enable ? 0 : Math.max(w - n, 0), xe = le[le.length - 1].__fv_visible_index__, Me = (B = e.pagination) != null && B.enable ? le.length - 1 : Math.min(f + n, xe), { actualStart: je, actualEnd: qe } = F(ve, Me, xe), it = le[je - 1], ot = g(je, qe, it, Q);
|
|
3696
3699
|
ot.length && (r.value = [...ot]);
|
|
3697
3700
|
}
|
|
3698
3701
|
const M = $(() => L() > C.value), J = $(() => Math.floor(i.value) > l.value);
|
|
@@ -3702,7 +3705,7 @@ function sl(e, t, r, o, d, h, n, c, u) {
|
|
|
3702
3705
|
Me && ve < C.value - le && (ve = C.value - le), (!Me || xe) && (ve = R), _.value !== ve && (_.value = ve);
|
|
3703
3706
|
}
|
|
3704
3707
|
function ie() {
|
|
3705
|
-
s.value && (w = V(Math.abs(_.value)), f = w +
|
|
3708
|
+
s.value && (w = V(Math.abs(_.value)), f = w + v.value - 1, (w < N.value || f > m.value - n / 2) && x());
|
|
3706
3709
|
}
|
|
3707
3710
|
function H(Q) {
|
|
3708
3711
|
let le = _.value + Q;
|
|
@@ -3722,7 +3725,7 @@ function sl(e, t, r, o, d, h, n, c, u) {
|
|
|
3722
3725
|
Math.abs(a.value) + l.value > i.value && (a.value = Math.min(l.value - i.value, 0));
|
|
3723
3726
|
}
|
|
3724
3727
|
function W() {
|
|
3725
|
-
_.value = 0, w = 0, f =
|
|
3728
|
+
_.value = 0, w = 0, f = v.value - 1, x();
|
|
3726
3729
|
}
|
|
3727
3730
|
function U() {
|
|
3728
3731
|
const Q = L();
|
|
@@ -3751,7 +3754,7 @@ function sl(e, t, r, o, d, h, n, c, u) {
|
|
|
3751
3754
|
})), ae = $(() => ({
|
|
3752
3755
|
transform: `translateY(${_.value}px)`
|
|
3753
3756
|
})), ue = $(() => ({
|
|
3754
|
-
height: `${(e.autoHeight ?
|
|
3757
|
+
height: `${(e.autoHeight ? h.value : b.value).length * S}px`,
|
|
3755
3758
|
width: `${i.value}px`,
|
|
3756
3759
|
transform: `translate(${a.value}px, ${_.value}px)`
|
|
3757
3760
|
})), Ce = $(() => ({
|
|
@@ -3808,9 +3811,9 @@ function sl(e, t, r, o, d, h, n, c, u) {
|
|
|
3808
3811
|
ye.value = !1, Ue.value = -1, Le.value = -1, document.removeEventListener("mouseup", Ne), X && (document.removeEventListener("mousemove", X), X = null), document.body.style.userSelect = "", Ze.value && (Ze.value.style.opacity = null);
|
|
3809
3812
|
}
|
|
3810
3813
|
function Te(Q, le, ve) {
|
|
3811
|
-
var
|
|
3814
|
+
var je;
|
|
3812
3815
|
u == null || u.onClickOutOfCell(Q), ye.value = !0;
|
|
3813
|
-
const xe = (
|
|
3816
|
+
const xe = (je = Q.target) == null ? void 0 : je.parentElement;
|
|
3814
3817
|
xe && (xe.style.opacity = "1", Ze.value = xe);
|
|
3815
3818
|
const Me = ve === "horizontal" ? Ve : qt(se, 50);
|
|
3816
3819
|
X || (X = Me), ve === "vertical" && (Ue.value = Q.pageY), ve === "horizontal" && (Le.value = Q.pageX), le.value && (le.value, document.addEventListener("mousemove", X), document.addEventListener("mouseup", Ne), document.body.style.userSelect = "none");
|
|
@@ -3858,11 +3861,11 @@ function sl(e, t, r, o, d, h, n, c, u) {
|
|
|
3858
3861
|
scrollTo: Ke
|
|
3859
3862
|
};
|
|
3860
3863
|
}
|
|
3861
|
-
function ul(e, t, r, o, d,
|
|
3862
|
-
const u = j(o.value - 1 + d), b = j(0), { renderDataRow:
|
|
3864
|
+
function ul(e, t, r, o, d, v, n, c) {
|
|
3865
|
+
const u = j(o.value - 1 + d), b = j(0), { renderDataRow: h } = v, g = n ? n.renderGroupRow : h, m = c ? c.renderSummaryRow : h;
|
|
3863
3866
|
function N(k) {
|
|
3864
|
-
let S =
|
|
3865
|
-
return k.__fv_data_grid_group_row__ && (S = g), k.__fv_data_grid_group_summary__ && (S =
|
|
3867
|
+
let S = h;
|
|
3868
|
+
return k.__fv_data_grid_group_row__ && (S = g), k.__fv_data_grid_group_summary__ && (S = m), S;
|
|
3866
3869
|
}
|
|
3867
3870
|
function i(k, S, _, a) {
|
|
3868
3871
|
const { dataView: w, visibleDataItems: f } = r, p = [], C = e.virtualized ? f.value : w.value;
|
|
@@ -3886,15 +3889,15 @@ function ul(e, t, r, o, d, h, n, c) {
|
|
|
3886
3889
|
return { getVisualData: i, maxVisibleRowIndex: u, minVisibleRowIndex: b, toggleGroupRow: y };
|
|
3887
3890
|
}
|
|
3888
3891
|
function cl(e) {
|
|
3889
|
-
var
|
|
3890
|
-
const { isUndefined: t } = ct(), r = ((
|
|
3892
|
+
var v;
|
|
3893
|
+
const { isUndefined: t } = ct(), r = ((v = e.rowOption) == null ? void 0 : v.height) || 28;
|
|
3891
3894
|
function o(n, c) {
|
|
3892
3895
|
const u = n.pre;
|
|
3893
3896
|
if (u) {
|
|
3894
|
-
let b = u.__fv_data_position__,
|
|
3897
|
+
let b = u.__fv_data_position__, h = u.__fv_data_height__;
|
|
3895
3898
|
(t(b) || // when virtual loading, position of tree node should recalculate after collapse tree node.
|
|
3896
|
-
e.virtualized && e.hierarchy && u.__fv_visible_index__ * r !== b) && (b = u.__fv_visible_index__ * r), t(
|
|
3897
|
-
const g = n.visible ? b +
|
|
3899
|
+
e.virtualized && e.hierarchy && u.__fv_visible_index__ * r !== b) && (b = u.__fv_visible_index__ * r), t(h) && (h = r);
|
|
3900
|
+
const g = n.visible ? b + h : u.__fv_data_position__;
|
|
3898
3901
|
n.top = g, c.__fv_data_position__ = g;
|
|
3899
3902
|
} else
|
|
3900
3903
|
n.top = 0, c.__fv_data_position__ = 0;
|
|
@@ -3917,16 +3920,16 @@ function lr() {
|
|
|
3917
3920
|
const o = Object.prototype.hasOwnProperty.call(r, "valueField") && r.valueField || "value", d = Object.prototype.hasOwnProperty.call(r, "textField") && r.textField || "name";
|
|
3918
3921
|
if (t != null && t.includes(",")) {
|
|
3919
3922
|
const u = t.split(",");
|
|
3920
|
-
if (!r.data.filter((
|
|
3923
|
+
if (!r.data.filter((m) => u.includes(m[o])).length)
|
|
3921
3924
|
return "";
|
|
3922
|
-
const
|
|
3923
|
-
return u.map((
|
|
3925
|
+
const h = (n = r.data) == null ? void 0 : n.reduce((m, N) => (m[N[o]] = N, m), {});
|
|
3926
|
+
return u.map((m) => {
|
|
3924
3927
|
var N;
|
|
3925
|
-
return (N = m
|
|
3928
|
+
return (N = h[m]) == null ? void 0 : N[d];
|
|
3926
3929
|
}).join(",") || t;
|
|
3927
3930
|
}
|
|
3928
|
-
const
|
|
3929
|
-
return (
|
|
3931
|
+
const v = (c = r.data) == null ? void 0 : c.find((u) => u[o] === t);
|
|
3932
|
+
return (v == null ? void 0 : v[d]) || t || "";
|
|
3930
3933
|
}
|
|
3931
3934
|
return {
|
|
3932
3935
|
renderEnumColumn: e
|
|
@@ -3946,19 +3949,19 @@ function ir() {
|
|
|
3946
3949
|
} = Ut();
|
|
3947
3950
|
function t(o, d) {
|
|
3948
3951
|
if (o) {
|
|
3949
|
-
let
|
|
3950
|
-
if (typeof d == "string" ?
|
|
3952
|
+
let v = "yyyy-MM-dd";
|
|
3953
|
+
if (typeof d == "string" ? v = d : typeof d == "object" && (v = d.format || "yyyy-MM-dd"), v = v.replace("YYYY", "yyyy").replace("-DD", "-dd"), typeof d == "object" && d.dateRange) {
|
|
3951
3954
|
const n = d.dateRangeDatesDelimiter || "~";
|
|
3952
3955
|
let [c, u] = o.split(n);
|
|
3953
|
-
return c = e(c,
|
|
3956
|
+
return c = e(c, v), u = e(u, v), c + n + u;
|
|
3954
3957
|
}
|
|
3955
|
-
return e(o,
|
|
3958
|
+
return e(o, v);
|
|
3956
3959
|
}
|
|
3957
3960
|
return o;
|
|
3958
3961
|
}
|
|
3959
3962
|
function r(o, d) {
|
|
3960
|
-
const
|
|
3961
|
-
return e(o,
|
|
3963
|
+
const v = d.dateFormat || "yyyy-MM-dd";
|
|
3964
|
+
return e(o, v);
|
|
3962
3965
|
}
|
|
3963
3966
|
return {
|
|
3964
3967
|
renderDateColumn: r,
|
|
@@ -4001,7 +4004,7 @@ function sr() {
|
|
|
4001
4004
|
function ur() {
|
|
4002
4005
|
const {
|
|
4003
4006
|
locale: e
|
|
4004
|
-
} =
|
|
4007
|
+
} = Be();
|
|
4005
4008
|
function t(r, o) {
|
|
4006
4009
|
return (r == null ? void 0 : r[e.value || "zh-CHS"]) || "";
|
|
4007
4010
|
}
|
|
@@ -4020,24 +4023,24 @@ function cr() {
|
|
|
4020
4023
|
renderDateColumn: o,
|
|
4021
4024
|
renderDateTimeColumn: d
|
|
4022
4025
|
} = ir(), {
|
|
4023
|
-
renderImageColumn:
|
|
4026
|
+
renderImageColumn: v
|
|
4024
4027
|
} = sr(), {
|
|
4025
4028
|
renderMultilingualColumn: n
|
|
4026
4029
|
} = ur();
|
|
4027
|
-
function c(
|
|
4028
|
-
return typeof
|
|
4030
|
+
function c(h) {
|
|
4031
|
+
return typeof h == "boolean" ? h.toString() : h;
|
|
4029
4032
|
}
|
|
4030
|
-
function u(
|
|
4033
|
+
function u(h, g, m) {
|
|
4031
4034
|
return g.customFormat ? (
|
|
4032
4035
|
// new Function(`return ${options.customFormat}`)() :
|
|
4033
|
-
g.customFormat(
|
|
4034
|
-
) : c(
|
|
4036
|
+
g.customFormat(h, m.raw)
|
|
4037
|
+
) : c(h);
|
|
4035
4038
|
}
|
|
4036
|
-
function b(
|
|
4039
|
+
function b(h, g, m) {
|
|
4037
4040
|
const {
|
|
4038
4041
|
column: N
|
|
4039
|
-
} =
|
|
4040
|
-
return
|
|
4042
|
+
} = h, i = _e(g.raw, N.field), y = m.options || m;
|
|
4043
|
+
return m.type === ze.NONE ? c(i) : m.type === ze.CUSTOM ? u(i, m, g) : m.type === ze.ENUM ? t(i, y) : m.type === ze.NUMBER ? r(i, y) : m.type === ze.BOOLEAN ? e(i, y) : m.type === ze.DATE ? o(i, y) : m.type === ze.DATE_TIME ? d(i, m) : m.type === ze.IMAGE ? v(i, y) : m.type === ze.MULTI_LINGUAL ? n(i, y) : c(i);
|
|
4041
4044
|
}
|
|
4042
4045
|
return {
|
|
4043
4046
|
renderFormatColumn: b
|
|
@@ -4074,7 +4077,7 @@ function dl(e, t, r) {
|
|
|
4074
4077
|
};
|
|
4075
4078
|
return l;
|
|
4076
4079
|
}
|
|
4077
|
-
function
|
|
4080
|
+
function h(_, a, w) {
|
|
4078
4081
|
return _.getEditor = (f) => t.getEditor(f, a, f.parent), _.setRef = (f) => n(f, _, w), _.update = (f) => {
|
|
4079
4082
|
f !== void 0 && (_.editingData = f);
|
|
4080
4083
|
}, _.accept = () => {
|
|
@@ -4088,7 +4091,7 @@ function dl(e, t, r) {
|
|
|
4088
4091
|
function g(_, a) {
|
|
4089
4092
|
a.dataType === "commands" ? _.formatter = (w, f) => a.formatter ? a.formatter(_, f) : c(_, f) : a.formatter && (_.formatter = (w, f) => typeof a.formatter == "function" ? a.formatter(w, f) : u(_, f, a.formatter));
|
|
4090
4093
|
}
|
|
4091
|
-
function
|
|
4094
|
+
function m(_, a, w) {
|
|
4092
4095
|
const f = a && a.data[w];
|
|
4093
4096
|
if (f && f.data === _.data) {
|
|
4094
4097
|
const C = f && f.spannedBy || f;
|
|
@@ -4096,13 +4099,13 @@ function dl(e, t, r) {
|
|
|
4096
4099
|
}
|
|
4097
4100
|
}
|
|
4098
4101
|
function N(_, a, w) {
|
|
4099
|
-
d.value &&
|
|
4102
|
+
d.value && m(_, a, w.field);
|
|
4100
4103
|
}
|
|
4101
4104
|
function i(_, a) {
|
|
4102
4105
|
a.showEllipsis !== void 0 && (_.showEllipsis = a.showEllipsis), _.showTips = o(a.showTips) ? !0 : a.showTips, _.column = a, _.align = a.align || "left", _.valign = a.valign || "middle", _.mode = e.editable ? Ie.editable : Ie.readonly;
|
|
4103
4106
|
}
|
|
4104
4107
|
function y(_, a, w, f) {
|
|
4105
|
-
i(_, a),
|
|
4108
|
+
i(_, a), h(_, a, f), g(_, a), N(_, w, a);
|
|
4106
4109
|
}
|
|
4107
4110
|
function k(_, a, w, f, p) {
|
|
4108
4111
|
const C = e.editable ? Ie.editable : Ie.readonly, l = b(_.field, C, a, w, f);
|
|
@@ -4110,9 +4113,9 @@ function dl(e, t, r) {
|
|
|
4110
4113
|
}
|
|
4111
4114
|
return { createCellByColumn: k, createCellByField: b, updateCellByColumn: y };
|
|
4112
4115
|
}
|
|
4113
|
-
function fl(e, t, r, o, d,
|
|
4116
|
+
function fl(e, t, r, o, d, v, n) {
|
|
4114
4117
|
var a, w;
|
|
4115
|
-
const c = j(e.rowOption), u = ((a = c.value) == null ? void 0 : a.height) || 28, b = ((w = c.value) == null ? void 0 : w.wrapContent) || !1, { idField:
|
|
4118
|
+
const c = j(e.rowOption), u = ((a = c.value) == null ? void 0 : a.height) || 28, b = ((w = c.value) == null ? void 0 : w.wrapContent) || !1, { idField: h } = d, { collapseField: g } = o, { updateRowPosition: m } = v, { createCellByColumn: N } = n, i = (f, p, C, l) => {
|
|
4116
4119
|
mt(_e(f, l), p, l), C.data[l].data = _e(p, l), C.data[l].editingData = _e(p, l);
|
|
4117
4120
|
};
|
|
4118
4121
|
function y(f, p, C, l, s, O) {
|
|
@@ -4141,7 +4144,7 @@ function fl(e, t, r, o, d, h, n) {
|
|
|
4141
4144
|
M.ref = H;
|
|
4142
4145
|
},
|
|
4143
4146
|
visible: G && x || G && !e.hierarchy,
|
|
4144
|
-
status:
|
|
4147
|
+
status: Ge.initial,
|
|
4145
4148
|
updateCell: (H, T) => {
|
|
4146
4149
|
i(H, C, M, T), t.updateSummary();
|
|
4147
4150
|
},
|
|
@@ -4151,7 +4154,7 @@ function fl(e, t, r, o, d, h, n) {
|
|
|
4151
4154
|
});
|
|
4152
4155
|
}
|
|
4153
4156
|
};
|
|
4154
|
-
return l || (C.__fv_data_position__ = 0), b || (M.height = u, C.__fv_data_height__ = M.height,
|
|
4157
|
+
return l || (C.__fv_data_position__ = 0), b || (M.height = u, C.__fv_data_height__ = M.height, m(M, C)), (ie = c.value) != null && ie.customRowStatus && (c.value.customRowStatus(M), C.__fv_disabled__ = M.disabled), M;
|
|
4155
4158
|
}
|
|
4156
4159
|
function k(f, p, C, l, s, O) {
|
|
4157
4160
|
const z = y(rt.data, s, p, C, l, O);
|
|
@@ -4163,7 +4166,7 @@ function fl(e, t, r, o, d, h, n) {
|
|
|
4163
4166
|
return Object.assign(f, { index: p, dataIndex: C, top: l, pre: s });
|
|
4164
4167
|
}
|
|
4165
4168
|
function _(f, p, C, l, s, O) {
|
|
4166
|
-
const z = f.__fv_data_index__, X = f[
|
|
4169
|
+
const z = f.__fv_data_index__, X = f[h.value], L = r.getEditingSnapshot(X);
|
|
4167
4170
|
return L === null ? k(
|
|
4168
4171
|
O,
|
|
4169
4172
|
f,
|
|
@@ -4176,61 +4179,61 @@ function fl(e, t, r, o, d, h, n) {
|
|
|
4176
4179
|
return { createEmptyRow: y, createNewRowFromDataItem: k, renderDataRow: _ };
|
|
4177
4180
|
}
|
|
4178
4181
|
function vl(e, t, r, o) {
|
|
4179
|
-
const d = j(e.summary), { idField:
|
|
4180
|
-
const
|
|
4181
|
-
return (
|
|
4182
|
+
const d = j(e.summary), { idField: v } = t, { createCellByField: n } = r, { createEmptyRow: c } = o, u = $(() => {
|
|
4183
|
+
const m = d.value;
|
|
4184
|
+
return (m == null ? void 0 : m.groupFields) || [];
|
|
4182
4185
|
}), b = $(() => {
|
|
4183
|
-
const
|
|
4184
|
-
return
|
|
4186
|
+
const m = d.value;
|
|
4187
|
+
return m && m.enable && m.groupFields && m.groupFields.length > 0;
|
|
4185
4188
|
});
|
|
4186
|
-
function m
|
|
4189
|
+
function h(m, N, i, y) {
|
|
4187
4190
|
if (b.value) {
|
|
4188
|
-
const k =
|
|
4191
|
+
const k = m.data[N];
|
|
4189
4192
|
let S = k.colSpan;
|
|
4190
4193
|
const _ = u.value.reduce((a, w) => (a.set(w, !0), a), /* @__PURE__ */ new Map());
|
|
4191
4194
|
y.reduce((a, w, f) => {
|
|
4192
4195
|
if (_.has(w.field)) {
|
|
4193
|
-
const p = n(w.field, Ie.readonly, f, i,
|
|
4194
|
-
|
|
4196
|
+
const p = n(w.field, Ie.readonly, f, i, m);
|
|
4197
|
+
m.data[w.field] = p, S - 1 > f && (S = f);
|
|
4195
4198
|
}
|
|
4196
4199
|
return a;
|
|
4197
|
-
},
|
|
4200
|
+
}, m), k.colSpan = S;
|
|
4198
4201
|
}
|
|
4199
4202
|
}
|
|
4200
|
-
function g(
|
|
4201
|
-
const a =
|
|
4202
|
-
return w.data[
|
|
4203
|
+
function g(m, N, i, y, k, S, _) {
|
|
4204
|
+
const a = m.__fv_data_grid_group_field__, w = c(rt.group, y, m, N, i, k);
|
|
4205
|
+
return w.data[v.value] = n(v.value, Ie.readonly, -1, m, w, 0), w.data[a] = n(a, Ie.readonly, 1, m, w, S.length), h(w, a, m, S), w;
|
|
4203
4206
|
}
|
|
4204
4207
|
return { renderGroupRow: g };
|
|
4205
4208
|
}
|
|
4206
4209
|
function hl(e, t, r, o) {
|
|
4207
|
-
const { idField: d } = t, { createCellByField:
|
|
4208
|
-
function c(u, b,
|
|
4209
|
-
const y = u.__fv_data_grid_group_field__, k = n(rt.summary, g, u, b,
|
|
4210
|
-
return k.data[d.value] =
|
|
4210
|
+
const { idField: d } = t, { createCellByField: v } = r, { createEmptyRow: n } = o;
|
|
4211
|
+
function c(u, b, h, g, m, N, i) {
|
|
4212
|
+
const y = u.__fv_data_grid_group_field__, k = n(rt.summary, g, u, b, h, m);
|
|
4213
|
+
return k.data[d.value] = v(d.value, Ie.readonly, -1, u, k), k.data[y] = v(y, Ie.readonly, 1, u, k, N.length), k;
|
|
4211
4214
|
}
|
|
4212
4215
|
return { renderSummaryRow: c };
|
|
4213
4216
|
}
|
|
4214
4217
|
function ml(e, t, r, o, d) {
|
|
4215
4218
|
var F;
|
|
4216
4219
|
const {
|
|
4217
|
-
idField:
|
|
4220
|
+
idField: v
|
|
4218
4221
|
} = r, n = j(e.editable), c = j(e.editOption), u = j(((F = e.rowOption) == null ? void 0 : F.wrapContent) || !1), {
|
|
4219
4222
|
onClickRow: b,
|
|
4220
|
-
onClickRowExcludeDblclick:
|
|
4223
|
+
onClickRowExcludeDblclick: h
|
|
4221
4224
|
} = o, g = /* @__PURE__ */ new Map([["boolean", "check-box"], ["datetime", "date-picker"], ["enum", "combo-list"], ["number", "number-spinner"], ["string", "input-group"], ["text", "text"], ["commands", "commands-editor"]]);
|
|
4222
|
-
let
|
|
4225
|
+
let m, N, i, y, k;
|
|
4223
4226
|
function S(x) {
|
|
4224
|
-
return N && N.raw[
|
|
4227
|
+
return N && N.raw[v.value] === x ? N : null;
|
|
4225
4228
|
}
|
|
4226
4229
|
const _ = Tt({});
|
|
4227
4230
|
function a(x, M, J = {}) {
|
|
4228
|
-
x.mode = Ie.editing,
|
|
4231
|
+
x.mode = Ie.editing, m = x, N = M, i = _e(M == null ? void 0 : M.raw, x.field), y = J;
|
|
4229
4232
|
for (const q in _)
|
|
4230
4233
|
delete _[q];
|
|
4231
4234
|
}
|
|
4232
4235
|
function w(x) {
|
|
4233
|
-
x.accept(), x.mode = Ie.editable,
|
|
4236
|
+
x.accept(), x.mode = Ie.editable, m = null;
|
|
4234
4237
|
const M = {};
|
|
4235
4238
|
N && (Object.keys(N).forEach((J) => {
|
|
4236
4239
|
M[J] = N == null ? void 0 : N[J];
|
|
@@ -4263,10 +4266,10 @@ function ml(e, t, r, o, d) {
|
|
|
4263
4266
|
if (!(J != null && J.closest(".popover"))) {
|
|
4264
4267
|
if (x instanceof MouseEvent || x.key !== "Enter") {
|
|
4265
4268
|
const q = J.closest(".fv-grid-cell");
|
|
4266
|
-
if (
|
|
4269
|
+
if (m && m.ref && m.ref === q)
|
|
4267
4270
|
return;
|
|
4268
4271
|
}
|
|
4269
|
-
f(
|
|
4272
|
+
f(m).then((q) => {
|
|
4270
4273
|
q && document.body.removeEventListener("click", p, !0);
|
|
4271
4274
|
});
|
|
4272
4275
|
}
|
|
@@ -4286,13 +4289,13 @@ function ml(e, t, r, o, d) {
|
|
|
4286
4289
|
});
|
|
4287
4290
|
}
|
|
4288
4291
|
function l(x, M, J, q = {}) {
|
|
4289
|
-
x.stopPropagation(),
|
|
4290
|
-
|
|
4292
|
+
x.stopPropagation(), h(x, J), n.value && c.value.editMode === "cell" && M.mode === Ie.editable && f(m).then(() => {
|
|
4293
|
+
m || C(J, M, q);
|
|
4291
4294
|
});
|
|
4292
4295
|
}
|
|
4293
4296
|
function s(x, M, J, q = {}) {
|
|
4294
|
-
x.stopPropagation(), b(x, J), n.value && c.value.editMode === "cell" && M.mode === Ie.editable && f(
|
|
4295
|
-
|
|
4297
|
+
x.stopPropagation(), b(x, J), n.value && c.value.editMode === "cell" && M.mode === Ie.editable && f(m).then(() => {
|
|
4298
|
+
m || C(J, M, q);
|
|
4296
4299
|
});
|
|
4297
4300
|
}
|
|
4298
4301
|
function O(x) {
|
|
@@ -4304,21 +4307,21 @@ function ml(e, t, r, o, d) {
|
|
|
4304
4307
|
function X(x) {
|
|
4305
4308
|
Object.values(x.data).filter((M) => M.mode === Ie.editable && M.field !== "__commands__").forEach((M) => {
|
|
4306
4309
|
M.mode = Ie.editing;
|
|
4307
|
-
}), x.status =
|
|
4310
|
+
}), x.status = Ge.editing, N = x;
|
|
4308
4311
|
}
|
|
4309
4312
|
function L(x, M) {
|
|
4310
4313
|
Object.values(x.data).filter((J) => J.mode === Ie.editing).forEach((J) => {
|
|
4311
4314
|
M ? J.accept() : J.cancel(), J.mode = Ie.editable;
|
|
4312
|
-
}), x.status =
|
|
4315
|
+
}), x.status = Ge.initial, N === x && (N = null);
|
|
4313
4316
|
}
|
|
4314
4317
|
function Y(x) {
|
|
4315
4318
|
n.value && c.value.editMode === "row" && N !== x && (N && L(N, !1), X(x));
|
|
4316
4319
|
}
|
|
4317
4320
|
function K(x) {
|
|
4318
|
-
L(x, !0), x.status =
|
|
4321
|
+
L(x, !0), x.status = Ge.initial;
|
|
4319
4322
|
}
|
|
4320
4323
|
function R(x) {
|
|
4321
|
-
L(x, !1), x.status =
|
|
4324
|
+
L(x, !1), x.status = Ge.initial;
|
|
4322
4325
|
}
|
|
4323
4326
|
function G(x, M, J) {
|
|
4324
4327
|
const q = M.dataType, ie = M.editor || {
|
|
@@ -4341,7 +4344,7 @@ function ml(e, t, r, o, d) {
|
|
|
4341
4344
|
}, null)) : x.data;
|
|
4342
4345
|
}
|
|
4343
4346
|
function Z() {
|
|
4344
|
-
f(
|
|
4347
|
+
f(m);
|
|
4345
4348
|
}
|
|
4346
4349
|
me(() => e.editable, () => {
|
|
4347
4350
|
n.value = e.editable;
|
|
@@ -4352,7 +4355,7 @@ function ml(e, t, r, o, d) {
|
|
|
4352
4355
|
c.value.editMode = x;
|
|
4353
4356
|
});
|
|
4354
4357
|
function V() {
|
|
4355
|
-
|
|
4358
|
+
m = null, N = null, y = null, k = null, document.body.removeEventListener("click", p, !0);
|
|
4356
4359
|
}
|
|
4357
4360
|
return {
|
|
4358
4361
|
clear: V,
|
|
@@ -4379,28 +4382,28 @@ function gl(e) {
|
|
|
4379
4382
|
}
|
|
4380
4383
|
return { idField: t, reviseIdentifyField: r };
|
|
4381
4384
|
}
|
|
4382
|
-
function _l(e, t, r, o, d,
|
|
4383
|
-
const { addNewDataItemAtLast: n } = r, { columnContext: c } = o, { onClickCell: u, onClickOutOfCell: b, onClickCellByKeyboard:
|
|
4385
|
+
function _l(e, t, r, o, d, v) {
|
|
4386
|
+
const { addNewDataItemAtLast: n } = r, { columnContext: c } = o, { onClickCell: u, onClickOutOfCell: b, onClickCellByKeyboard: h } = d;
|
|
4384
4387
|
function g(y, k) {
|
|
4385
|
-
const S = c.value.primaryColumns.findIndex((l) => l.field === y.field), _ = y.parent, a = _.index, w = c.value.primaryColumns.length - 1, f =
|
|
4388
|
+
const S = c.value.primaryColumns.findIndex((l) => l.field === y.field), _ = y.parent, a = _.index, w = c.value.primaryColumns.length - 1, f = v.value.length - 1, p = S === w, C = a === f;
|
|
4386
4389
|
if (S > -1 && !p) {
|
|
4387
4390
|
const l = c.value.primaryColumns[S + 1], s = _.data[l.field];
|
|
4388
4391
|
u(k, s, _, l);
|
|
4389
4392
|
}
|
|
4390
4393
|
if (p && !C) {
|
|
4391
|
-
const l =
|
|
4394
|
+
const l = v.value[a + 1], s = c.value.primaryColumns[0], O = l.data[c.value.primaryColumns[0].field];
|
|
4392
4395
|
u(k, O, l, s);
|
|
4393
4396
|
}
|
|
4394
4397
|
if (p && C) {
|
|
4395
4398
|
if (e.appendOnEnterAtLastCell) {
|
|
4396
4399
|
n();
|
|
4397
|
-
const l =
|
|
4400
|
+
const l = v.value[a + 1], s = c.value.primaryColumns[0], O = l.data[c.value.primaryColumns[0].field];
|
|
4398
4401
|
u(k, O, l, s);
|
|
4399
4402
|
}
|
|
4400
4403
|
t.emit("enterUpInLastCell");
|
|
4401
4404
|
}
|
|
4402
4405
|
}
|
|
4403
|
-
function
|
|
4406
|
+
function m(y, k) {
|
|
4404
4407
|
const S = c.value.primaryColumns.findIndex((f) => f.field === y.field), _ = y.parent, a = c.value.primaryColumns.length - 1;
|
|
4405
4408
|
if (S > 0 && S <= a) {
|
|
4406
4409
|
const f = c.value.primaryColumns[S - 1], p = _.data[f.field];
|
|
@@ -4422,7 +4425,7 @@ function _l(e, t, r, o, d, h) {
|
|
|
4422
4425
|
return;
|
|
4423
4426
|
}
|
|
4424
4427
|
if (_ && S === "Tab") {
|
|
4425
|
-
y.preventDefault(),
|
|
4428
|
+
y.preventDefault(), m(k, y);
|
|
4426
4429
|
return;
|
|
4427
4430
|
}
|
|
4428
4431
|
}
|
|
@@ -4430,23 +4433,23 @@ function _l(e, t, r, o, d, h) {
|
|
|
4430
4433
|
}
|
|
4431
4434
|
function pl(e, t, r, o) {
|
|
4432
4435
|
const { idField: d } = o, {
|
|
4433
|
-
currentSelectedDataId:
|
|
4436
|
+
currentSelectedDataId: v,
|
|
4434
4437
|
multiSelectOnClickRow: n,
|
|
4435
4438
|
multiSelectOnClickRowWithShift: c,
|
|
4436
4439
|
selectItem: u,
|
|
4437
4440
|
selectedValues: b,
|
|
4438
|
-
toggleSelectItem:
|
|
4441
|
+
toggleSelectItem: h,
|
|
4439
4442
|
updateSelectAllStatus: g,
|
|
4440
|
-
enableSelectRow:
|
|
4443
|
+
enableSelectRow: m,
|
|
4441
4444
|
multiSelectMode: N,
|
|
4442
4445
|
isSingleSelect: i,
|
|
4443
4446
|
getSelectedItems: y
|
|
4444
4447
|
} = r, k = j(0), S = j(-1);
|
|
4445
4448
|
function _(R) {
|
|
4446
|
-
|
|
4449
|
+
v.value = R;
|
|
4447
4450
|
}
|
|
4448
4451
|
function a(R) {
|
|
4449
|
-
return R.raw[d.value] ===
|
|
4452
|
+
return R.raw[d.value] === v.value;
|
|
4450
4453
|
}
|
|
4451
4454
|
function w(R, G) {
|
|
4452
4455
|
var F;
|
|
@@ -4489,17 +4492,17 @@ function pl(e, t, r, o) {
|
|
|
4489
4492
|
return Z;
|
|
4490
4493
|
}
|
|
4491
4494
|
function C(R) {
|
|
4492
|
-
const G =
|
|
4495
|
+
const G = v.value, Z = R.raw[d.value];
|
|
4493
4496
|
_(Z), G !== Z && t.emit("selectionChange", [R.raw], { id: Z, data: R.raw });
|
|
4494
4497
|
}
|
|
4495
4498
|
function l(R, G) {
|
|
4496
4499
|
var F, x;
|
|
4497
4500
|
if (c.value && !(G != null && G.shiftKey) || i.value) {
|
|
4498
|
-
(F = e.selection) != null && F.keepSelectingOnClick ? u(R) :
|
|
4501
|
+
(F = e.selection) != null && F.keepSelectingOnClick ? u(R) : h(R, (x = e.selection) == null ? void 0 : x.keepSelectingOnClick), g();
|
|
4499
4502
|
return;
|
|
4500
4503
|
}
|
|
4501
4504
|
if (c.value && (G == null ? void 0 : G.shiftKey) || n.value) {
|
|
4502
|
-
|
|
4505
|
+
h(R), g();
|
|
4503
4506
|
return;
|
|
4504
4507
|
}
|
|
4505
4508
|
}
|
|
@@ -4554,7 +4557,7 @@ function pl(e, t, r, o) {
|
|
|
4554
4557
|
};
|
|
4555
4558
|
}
|
|
4556
4559
|
function yl(e, t, r, o, d) {
|
|
4557
|
-
const { idField:
|
|
4560
|
+
const { idField: v } = r, { dataView: n, getSelectionItems: c } = t, u = j(""), b = $(() => e.selection.enableSelectRow), h = j(e.selection.multiSelect ?? !1), g = j(e.selection.multiSelectMode || "DependOnCheck"), m = j(e.selection.showCheckbox), N = j(e.selection.showSelectAll), i = j(e.selectionValues || []), y = $(() => e.selection.showSelection), k = $(() => {
|
|
4558
4561
|
var A;
|
|
4559
4562
|
return ((A = e.selection) == null ? void 0 : A.keepSelectingOnPaging) === void 0 ? !0 : e.selection.keepSelectingOnPaging;
|
|
4560
4563
|
}), S = j(!!i.value.length && o.value.length === i.value.length), _ = j(!!i.value.length && o.value.length !== i.value.length);
|
|
@@ -4563,19 +4566,19 @@ function yl(e, t, r, o, d) {
|
|
|
4563
4566
|
});
|
|
4564
4567
|
function a() {
|
|
4565
4568
|
if (!k.value) {
|
|
4566
|
-
const A = n.value.map((ne) => ne[
|
|
4569
|
+
const A = n.value.map((ne) => ne[v.value]);
|
|
4567
4570
|
i.value = i.value.filter((ne) => A.includes(ne));
|
|
4568
4571
|
}
|
|
4569
4572
|
}
|
|
4570
4573
|
function w() {
|
|
4571
|
-
const A = n.value.every((re) => i.value.includes(re[
|
|
4574
|
+
const A = n.value.every((re) => i.value.includes(re[v.value])), ne = n.value.every((re) => !i.value.includes(re[v.value]));
|
|
4572
4575
|
A && (S.value = !0, _.value = !1), ne && (S.value = !1, _.value = !1), !A && !ne && (S.value = !1, _.value = !0);
|
|
4573
4576
|
}
|
|
4574
4577
|
function f() {
|
|
4575
4578
|
return c(i.value);
|
|
4576
4579
|
}
|
|
4577
4580
|
function p() {
|
|
4578
|
-
const A = o.value.reduce((re, we) => (re.set(we.raw[
|
|
4581
|
+
const A = o.value.reduce((re, we) => (re.set(we.raw[v.value], we), re), /* @__PURE__ */ new Map());
|
|
4579
4582
|
return i.value.map((re) => A.get(re)).filter((re) => !!re);
|
|
4580
4583
|
}
|
|
4581
4584
|
function C(A) {
|
|
@@ -4583,15 +4586,15 @@ function yl(e, t, r, o, d) {
|
|
|
4583
4586
|
const ne = A.raw.__fv_children_index__;
|
|
4584
4587
|
if (ne && ne.length) {
|
|
4585
4588
|
const we = ne.map((P) => n.value[P]);
|
|
4586
|
-
(re = i.value) != null && re.length && we.some((ee) => !i.value.includes(ee[
|
|
4589
|
+
(re = i.value) != null && re.length && we.some((ee) => !i.value.includes(ee[v.value])) && (A.indeterminate = !0, A.raw.__fv_indeterminate__ = !0);
|
|
4587
4590
|
}
|
|
4588
4591
|
}
|
|
4589
|
-
const l = $(() => b.value &&
|
|
4590
|
-
() => b.value && !
|
|
4592
|
+
const l = $(() => b.value && h.value), s = $(
|
|
4593
|
+
() => b.value && !h.value && !m.value
|
|
4591
4594
|
), O = $(() => !!e.hierarchy), z = $(() => {
|
|
4592
|
-
const A =
|
|
4595
|
+
const A = m.value && g.value === "DependOnCheck";
|
|
4593
4596
|
return l.value && A;
|
|
4594
|
-
}), X = $(() => l.value && !
|
|
4597
|
+
}), X = $(() => l.value && !m.value), L = $(() => l.value && m.value && g.value === "OnCheckAndClick");
|
|
4595
4598
|
$(() => L.value);
|
|
4596
4599
|
function Y() {
|
|
4597
4600
|
const A = c(i.value);
|
|
@@ -4604,13 +4607,13 @@ function yl(e, t, r, o, d) {
|
|
|
4604
4607
|
d.emit("selectItem", A);
|
|
4605
4608
|
}
|
|
4606
4609
|
function G() {
|
|
4607
|
-
const A = o.value.filter((re) => re.indeterminate).map((re) => re.raw[
|
|
4610
|
+
const A = o.value.filter((re) => re.indeterminate).map((re) => re.raw[v.value]);
|
|
4608
4611
|
o.value.forEach((re) => {
|
|
4609
4612
|
re.checked = !1, re.indeterminate = !1, re.raw.__fv_checked__ = !1, re.raw.__fv_indeterminate__ = !1;
|
|
4610
4613
|
}), p().forEach((re) => {
|
|
4611
4614
|
re.checked = !0, re.raw.__fv_checked__ = !0;
|
|
4612
4615
|
}), A.forEach((re) => {
|
|
4613
|
-
const we = o.value.find((P) => P.raw[
|
|
4616
|
+
const we = o.value.find((P) => P.raw[v.value] === re);
|
|
4614
4617
|
C(we);
|
|
4615
4618
|
});
|
|
4616
4619
|
}
|
|
@@ -4619,11 +4622,11 @@ function yl(e, t, r, o, d) {
|
|
|
4619
4622
|
}), me(() => e.selectionValues, (A) => {
|
|
4620
4623
|
i.value = A, G();
|
|
4621
4624
|
}, { immediate: !0 }), me(() => e.selection, (A) => {
|
|
4622
|
-
|
|
4625
|
+
h.value = !!A.multiSelect, g.value = A.multiSelectMode || "DependOnCheck", m.value = !!A.showCheckbox;
|
|
4623
4626
|
});
|
|
4624
|
-
const Z = $(() => !
|
|
4627
|
+
const Z = $(() => !h.value);
|
|
4625
4628
|
function V(A) {
|
|
4626
|
-
return A.raw[
|
|
4629
|
+
return A.raw[v.value];
|
|
4627
4630
|
}
|
|
4628
4631
|
function F(A) {
|
|
4629
4632
|
return i.value.findIndex((re) => re === V(A));
|
|
@@ -4639,34 +4642,34 @@ function yl(e, t, r, o, d) {
|
|
|
4639
4642
|
const ne = A;
|
|
4640
4643
|
ne.__fv_checked__ = !0, ne.__fv_indeterminate__ = !1;
|
|
4641
4644
|
const re = new Set(i.value);
|
|
4642
|
-
re.add(ne[
|
|
4645
|
+
re.add(ne[v.value]), i.value = Array.from(re.values()), a();
|
|
4643
4646
|
}
|
|
4644
4647
|
function J(A) {
|
|
4645
4648
|
const ne = A;
|
|
4646
|
-
ne.__fv_checked__ = !1, ne.__fv_indeterminate__ = !1, i.value = i.value.filter((re) => re !== ne[
|
|
4649
|
+
ne.__fv_checked__ = !1, ne.__fv_indeterminate__ = !1, i.value = i.value.filter((re) => re !== ne[v.value]), a();
|
|
4647
4650
|
}
|
|
4648
4651
|
function q(A) {
|
|
4649
4652
|
const ne = A.raw;
|
|
4650
4653
|
ne.__fv_checked__ = !0, ne.__fv_indeterminate__ = !1;
|
|
4651
4654
|
const re = new Set(i.value);
|
|
4652
|
-
re.add(ne[
|
|
4655
|
+
re.add(ne[v.value]), i.value = Array.from(re.values()), a(), A.checked = !0, A.indeterminate = !1, Y(), R(A);
|
|
4653
4656
|
}
|
|
4654
4657
|
function ie(A) {
|
|
4655
4658
|
const ne = A.raw;
|
|
4656
|
-
ne.__fv_checked__ = !1, ne.__fv_indeterminate__ = !1, i.value = i.value.filter((re) => re !== ne[
|
|
4659
|
+
ne.__fv_checked__ = !1, ne.__fv_indeterminate__ = !1, i.value = i.value.filter((re) => re !== ne[v.value]), a(), A.checked = !1, A.indeterminate = !1, Y(), K(A);
|
|
4657
4660
|
}
|
|
4658
4661
|
function H(A) {
|
|
4659
|
-
q(A), u.value = A.raw[
|
|
4662
|
+
q(A), u.value = A.raw[v.value];
|
|
4660
4663
|
}
|
|
4661
4664
|
function T(A) {
|
|
4662
4665
|
ie(A), u.value = "";
|
|
4663
4666
|
}
|
|
4664
4667
|
function E(A) {
|
|
4665
|
-
A.__fv_checked__ = !1, A.__fv_indeterminate__ = !0, i.value = i.value.filter((ne) => ne !== A[
|
|
4668
|
+
A.__fv_checked__ = !1, A.__fv_indeterminate__ = !0, i.value = i.value.filter((ne) => ne !== A[v.value]), a();
|
|
4666
4669
|
}
|
|
4667
4670
|
function W(A) {
|
|
4668
4671
|
const ne = A.raw;
|
|
4669
|
-
ne.__fv_checked__ = !1, ne.__fv_indeterminate__ = !0, i.value = i.value.filter((re) => re !== ne[
|
|
4672
|
+
ne.__fv_checked__ = !1, ne.__fv_indeterminate__ = !0, i.value = i.value.filter((re) => re !== ne[v.value]), a(), A.checked = !1, A.indeterminate = !0;
|
|
4670
4673
|
}
|
|
4671
4674
|
function U(A) {
|
|
4672
4675
|
Z.value && x(), A.checked ? ie(A) : q(A);
|
|
@@ -4676,20 +4679,20 @@ function yl(e, t, r, o, d) {
|
|
|
4676
4679
|
Z.value && x(), ne ? A.checked ? T(A) : H(A) : re ? T(A) : H(A);
|
|
4677
4680
|
}
|
|
4678
4681
|
function de(A) {
|
|
4679
|
-
A.raw[
|
|
4682
|
+
A.raw[v.value] !== u.value && (x(), H(A));
|
|
4680
4683
|
}
|
|
4681
4684
|
function fe(A) {
|
|
4682
|
-
const ne = o.value.find((re) => re.raw[
|
|
4685
|
+
const ne = o.value.find((re) => re.raw[v.value] === A);
|
|
4683
4686
|
if (ne)
|
|
4684
4687
|
de(ne);
|
|
4685
4688
|
else {
|
|
4686
|
-
const re = n.value.find((we) => we[
|
|
4689
|
+
const re = n.value.find((we) => we[v.value] === A);
|
|
4687
4690
|
re && M(re);
|
|
4688
4691
|
}
|
|
4689
4692
|
}
|
|
4690
4693
|
function ae(A) {
|
|
4691
|
-
const ne = o.value.filter((P) => A.includes(P.raw[
|
|
4692
|
-
const ee = P[
|
|
4694
|
+
const ne = o.value.filter((P) => A.includes(P.raw[v.value])), re = ne.map((P) => P.raw[v.value]), we = n.value.filter((P) => {
|
|
4695
|
+
const ee = P[v.value];
|
|
4693
4696
|
return !re.includes(ee) && A.includes(ee);
|
|
4694
4697
|
});
|
|
4695
4698
|
(ne.length || we.length) && s.value && (u.value = A[0]), ne.forEach((P) => {
|
|
@@ -4702,11 +4705,11 @@ function yl(e, t, r, o, d) {
|
|
|
4702
4705
|
for (const ne of A) {
|
|
4703
4706
|
if (!i.value.includes(ne))
|
|
4704
4707
|
continue;
|
|
4705
|
-
const re = o.value.find((we) => we.raw[
|
|
4708
|
+
const re = o.value.find((we) => we.raw[v.value] === ne);
|
|
4706
4709
|
if (re)
|
|
4707
4710
|
T(re);
|
|
4708
4711
|
else {
|
|
4709
|
-
const we = n.value.find((P) => P[
|
|
4712
|
+
const we = n.value.find((P) => P[v.value] === ne);
|
|
4710
4713
|
we && J(we);
|
|
4711
4714
|
}
|
|
4712
4715
|
}
|
|
@@ -4719,22 +4722,22 @@ function yl(e, t, r, o, d) {
|
|
|
4719
4722
|
const ne = A.raw;
|
|
4720
4723
|
ne.__fv_checked__ = !0, ne.__fv_indeterminate__ = !1;
|
|
4721
4724
|
const re = new Set(i.value);
|
|
4722
|
-
re.add(ne[
|
|
4725
|
+
re.add(ne[v.value]), i.value = Array.from(re.values()), a(), A.checked = !0, A.indeterminate = !1;
|
|
4723
4726
|
}), Y();
|
|
4724
4727
|
}
|
|
4725
4728
|
function ge() {
|
|
4726
4729
|
o.value.forEach((A) => {
|
|
4727
4730
|
const ne = A.raw;
|
|
4728
|
-
ne.__fv_checked__ = !1, ne.__fv_indeterminate__ = !1, i.value = i.value.filter((re) => re !== ne[
|
|
4731
|
+
ne.__fv_checked__ = !1, ne.__fv_indeterminate__ = !1, i.value = i.value.filter((re) => re !== ne[v.value]), a(), A.checked = !1, A.indeterminate = !1;
|
|
4729
4732
|
}), Y();
|
|
4730
4733
|
}
|
|
4731
4734
|
function Ae() {
|
|
4732
|
-
return o.value.find((A) => A.raw[
|
|
4735
|
+
return o.value.find((A) => A.raw[v.value] === u.value);
|
|
4733
4736
|
}
|
|
4734
4737
|
return {
|
|
4735
4738
|
clearSelection: x,
|
|
4736
4739
|
currentSelectedDataId: u,
|
|
4737
|
-
enableMultiSelect:
|
|
4740
|
+
enableMultiSelect: h,
|
|
4738
4741
|
enableSelectRow: b,
|
|
4739
4742
|
findIndexInSelectedItems: F,
|
|
4740
4743
|
getSelectedItems: f,
|
|
@@ -4753,7 +4756,7 @@ function yl(e, t, r, o, d) {
|
|
|
4753
4756
|
selectItem: de,
|
|
4754
4757
|
selectItemById: fe,
|
|
4755
4758
|
selectItemByIds: ae,
|
|
4756
|
-
showCheckBox:
|
|
4759
|
+
showCheckBox: m,
|
|
4757
4760
|
showSelectAll: N,
|
|
4758
4761
|
toggleSelectItem: oe,
|
|
4759
4762
|
toggleSelectItemWithoutRow: U,
|
|
@@ -4772,10 +4775,10 @@ function yl(e, t, r, o, d) {
|
|
|
4772
4775
|
}
|
|
4773
4776
|
function bl(e, t) {
|
|
4774
4777
|
var S, _;
|
|
4775
|
-
const { t: r } =
|
|
4778
|
+
const { t: r } = Be(), o = String(Date.now()), d = 50, { showCheckBox: v, showSelectAll: n } = t, c = j(((S = e.rowNumber) == null ? void 0 : S.enable) ?? !1), u = $(() => e.hierarchy && v.value && e.selection.enableSelectRow && e.selection.multiSelect ? !1 : v.value), b = j(c.value ? ((_ = e.rowNumber) == null ? void 0 : _.width) ?? 32 : 0), h = j(u.value ? d : 0), g = $(() => {
|
|
4776
4779
|
var a, w;
|
|
4777
4780
|
return c.value ? ((a = e.rowNumber) == null ? void 0 : a.heading) === "序号" ? r("datagrid.lineNumberTitle") : (w = e.rowNumber) == null ? void 0 : w.heading : "";
|
|
4778
|
-
}),
|
|
4781
|
+
}), m = $(() => (u.value && !e.hierarchy ? Number(h.value) : 0) + (c.value ? Number(b.value) : 0));
|
|
4779
4782
|
me(() => e.rowNumber, (a) => {
|
|
4780
4783
|
a && a.enable !== void 0 && (c.value = a.enable), a && a.width !== void 0 && (b.value = a.width);
|
|
4781
4784
|
});
|
|
@@ -4783,7 +4786,7 @@ function bl(e, t) {
|
|
|
4783
4786
|
var f;
|
|
4784
4787
|
const w = {
|
|
4785
4788
|
top: `${a.top}px`,
|
|
4786
|
-
width: `${
|
|
4789
|
+
width: `${m.value}px`,
|
|
4787
4790
|
height: `${a.height || ""}px`
|
|
4788
4791
|
};
|
|
4789
4792
|
if ((f = e.rowOption) != null && f.customRowStyle) {
|
|
@@ -4793,7 +4796,7 @@ function bl(e, t) {
|
|
|
4793
4796
|
return w;
|
|
4794
4797
|
}
|
|
4795
4798
|
const i = $(() => ({
|
|
4796
|
-
width: `${
|
|
4799
|
+
width: `${m.value}px`
|
|
4797
4800
|
}));
|
|
4798
4801
|
function y(a) {
|
|
4799
4802
|
return `${o}_${a.type}_r_${a.index}_${a.refreshKey || ""}`;
|
|
@@ -4801,7 +4804,7 @@ function bl(e, t) {
|
|
|
4801
4804
|
function k(a) {
|
|
4802
4805
|
return `${o}_${a.type}_r_${a.index}_${a.refreshKey || ""}`;
|
|
4803
4806
|
}
|
|
4804
|
-
return { showRowNumer: c, showSidebarCheckBox: u, sidebarCellPosition: N, sidebarCornerCellStyle: i, sidebarTitle: g, sidebarWidth:
|
|
4807
|
+
return { showRowNumer: c, showSidebarCheckBox: u, sidebarCellPosition: N, sidebarCornerCellStyle: i, sidebarTitle: g, sidebarWidth: m, rowKey: k, cellKey: y };
|
|
4805
4808
|
}
|
|
4806
4809
|
const dr = {
|
|
4807
4810
|
ascend: (e, t) => e === t ? 0 : e === !1 ? -1 : 1,
|
|
@@ -4845,22 +4848,22 @@ function wl(e) {
|
|
|
4845
4848
|
function d(n) {
|
|
4846
4849
|
return o(n.column);
|
|
4847
4850
|
}
|
|
4848
|
-
function
|
|
4849
|
-
const u = d(n), b = (n.status & D.sortable) === D.sortable && (n.status & D.sorted) === D.sorted,
|
|
4851
|
+
function v(n, c) {
|
|
4852
|
+
const u = d(n), b = (n.status & D.sortable) === D.sortable && (n.status & D.sorted) === D.sorted, h = (n.status & D.ascending) === D.ascending, g = (n.status & D.descending) === D.descending;
|
|
4850
4853
|
if (b && u) {
|
|
4851
|
-
const
|
|
4852
|
-
|
|
4854
|
+
const m = h ? u.ascend : g ? u.decend : void 0;
|
|
4855
|
+
m ? c.addSorter(n.field, { field: n.field, compare: m }) : c.removeSorter(n.field);
|
|
4853
4856
|
} else
|
|
4854
4857
|
c.removeSorter(n.field);
|
|
4855
4858
|
}
|
|
4856
|
-
return { getSorterByColumn: o, updateSorter:
|
|
4859
|
+
return { getSorterByColumn: o, updateSorter: v };
|
|
4857
4860
|
}
|
|
4858
4861
|
function Sl(e, t) {
|
|
4859
|
-
const { t: r } =
|
|
4862
|
+
const { t: r } = Be(), o = kt("FLoadingService"), d = $(() => typeof e.loading == "object" ? e.loading.show : e.loading), v = $(() => typeof e.loading == "object" ? e.loading.message : `${r("datagrid.loadingMessage")}...`);
|
|
4860
4863
|
let n;
|
|
4861
4864
|
function c() {
|
|
4862
4865
|
const u = {
|
|
4863
|
-
message:
|
|
4866
|
+
message: v.value,
|
|
4864
4867
|
target: t.value,
|
|
4865
4868
|
type: 0,
|
|
4866
4869
|
targetPosition: "relative",
|
|
@@ -4869,14 +4872,14 @@ function Sl(e, t) {
|
|
|
4869
4872
|
return n = o.show(u), n;
|
|
4870
4873
|
}
|
|
4871
4874
|
return me(d, (u, b) => {
|
|
4872
|
-
var
|
|
4873
|
-
u !== b && (u ? c() : (
|
|
4874
|
-
}), { showLoading: d, loadingMessage:
|
|
4875
|
+
var h;
|
|
4876
|
+
u !== b && (u ? c() : (h = n == null ? void 0 : n.value) == null || h.close());
|
|
4877
|
+
}), { showLoading: d, loadingMessage: v, renderLoading: c };
|
|
4875
4878
|
}
|
|
4876
4879
|
function Cl(e) {
|
|
4877
4880
|
function t(o) {
|
|
4878
|
-
if (!(o.value.findIndex((
|
|
4879
|
-
const
|
|
4881
|
+
if (!(o.value.findIndex((v) => v.dataType === Je) > -1)) {
|
|
4882
|
+
const v = {
|
|
4880
4883
|
field: Sn,
|
|
4881
4884
|
width: Cn,
|
|
4882
4885
|
// headerFormatter:
|
|
@@ -4887,12 +4890,12 @@ function Cl(e) {
|
|
|
4887
4890
|
resizable: !1,
|
|
4888
4891
|
visible: !0
|
|
4889
4892
|
};
|
|
4890
|
-
o.value.push(
|
|
4893
|
+
o.value.push(v);
|
|
4891
4894
|
}
|
|
4892
4895
|
}
|
|
4893
4896
|
function r(o) {
|
|
4894
4897
|
if (!e.showSetting) {
|
|
4895
|
-
const d = o.value.findIndex((
|
|
4898
|
+
const d = o.value.findIndex((v) => v.dataType === Je);
|
|
4896
4899
|
d > -1 && o.value.splice(d, 1);
|
|
4897
4900
|
}
|
|
4898
4901
|
}
|
|
@@ -4906,14 +4909,14 @@ export {
|
|
|
4906
4909
|
kn as COMMAND_COLUMN_WIDTH,
|
|
4907
4910
|
Ie as CellMode,
|
|
4908
4911
|
_n as ColumnFormatterDataType,
|
|
4909
|
-
|
|
4912
|
+
ze as ColumnTemplateType,
|
|
4910
4913
|
D as HeaderCellStatus,
|
|
4911
4914
|
Je as SETTING_COLUMN_DATA_TYPE,
|
|
4912
4915
|
Sn as SETTING_COLUMN_FIELD,
|
|
4913
4916
|
xn as SETTING_COLUMN_FIXED,
|
|
4914
4917
|
Hr as SETTING_COLUMN_TITLE,
|
|
4915
4918
|
Cn as SETTING_COLUMN_WIDTH,
|
|
4916
|
-
|
|
4919
|
+
Ge as VisualDataStatus,
|
|
4917
4920
|
rt as VisualDataType,
|
|
4918
4921
|
Ar as getColumnHeader,
|
|
4919
4922
|
Pn as getCommandColumn,
|