@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
|
@@ -4,7 +4,7 @@ var pe = (e, t, n) => tn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
|
4
4
|
import { useGuid as nn, useNumberFormat as st, resolveField as se, useCommonUtils as lt, useDateFormat as on, setFieldValue as We, getCustomClass as Ke, getCustomStyle as et, excludeProperties as rn, withInstall as an } from "../../components/common/index.esm.js";
|
|
5
5
|
import sn, { listViewProps as ln, FListViewTable as cn } from "../../components/list-view/index.esm.js";
|
|
6
6
|
import { getSchemaByTypeForDesigner as un, createPropsResolver as dn, createCollectionBindingResolver as fn } from "../../components/dynamic-resolver/index.esm.js";
|
|
7
|
-
import { ref as O, createVNode as F, createTextVNode as ke, computed as W, defineComponent as Le, watch as Ne, Fragment as De, reactive as ct, createApp as
|
|
7
|
+
import { ref as O, createVNode as F, createTextVNode as ke, computed as W, defineComponent as Le, watch as Ne, Fragment as De, reactive as ct, createApp as vn, onUnmounted as mn, onMounted as Je, Transition as pn, mergeProps as gn, withModifiers as hn, withDirectives as _n, vModelText as yn, inject as Ye } from "vue";
|
|
8
8
|
import "../../components/popover/index.esm.js";
|
|
9
9
|
import { useI18n as je } from "vue-i18n";
|
|
10
10
|
import "../../components/modal/index.esm.js";
|
|
@@ -33,15 +33,15 @@ function In(e, t) {
|
|
|
33
33
|
function o(a, r) {
|
|
34
34
|
const c = document.createTreeWalker(a, NodeFilter.SHOW_TEXT);
|
|
35
35
|
return n(c).map((s) => ({ textNode: s, text: (s.textContent || "").toLocaleLowerCase() })).map(({ textNode: s, text: l }) => {
|
|
36
|
-
const
|
|
37
|
-
let
|
|
38
|
-
for (;
|
|
39
|
-
const w = l.indexOf(r,
|
|
36
|
+
const b = [];
|
|
37
|
+
let f = 0;
|
|
38
|
+
for (; f < l.length; ) {
|
|
39
|
+
const w = l.indexOf(r, f);
|
|
40
40
|
if (w === -1)
|
|
41
41
|
break;
|
|
42
|
-
|
|
42
|
+
b.push(w), f = w + r.length;
|
|
43
43
|
}
|
|
44
|
-
return
|
|
44
|
+
return b.map((w) => {
|
|
45
45
|
const C = new Range();
|
|
46
46
|
return C.setStart(s, w), C.setEnd(s, w + r.length), C;
|
|
47
47
|
});
|
|
@@ -110,10 +110,10 @@ function ut(e, t, n) {
|
|
|
110
110
|
function c() {
|
|
111
111
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function m() {
|
|
114
114
|
return !1;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function d() {
|
|
117
117
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
|
|
118
118
|
}
|
|
119
119
|
function u() {
|
|
@@ -137,10 +137,10 @@ function ut(e, t, n) {
|
|
|
137
137
|
const { getCustomButtons: x } = L.value;
|
|
138
138
|
return L.value.canMove || x && ((k = x()) != null && k.length) ? D : l(M.parent);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function b(M) {
|
|
141
141
|
return !!n && n.canAccepts(M);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function f() {
|
|
144
144
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
145
145
|
}
|
|
146
146
|
function w() {
|
|
@@ -159,7 +159,7 @@ function ut(e, t, n) {
|
|
|
159
159
|
function S(M) {
|
|
160
160
|
M && n != null && n.onChildElementMovedOut && n.onChildElementMovedOut(M);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function y(...M) {
|
|
163
163
|
if (n && n.getPropsConfig)
|
|
164
164
|
return n.getPropsConfig(...M);
|
|
165
165
|
}
|
|
@@ -172,14 +172,14 @@ function ut(e, t, n) {
|
|
|
172
172
|
x > -1 && D.getExpressions().splice(x, 1);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function v(M) {
|
|
176
176
|
if (!M || !(t != null && t.schema))
|
|
177
177
|
return;
|
|
178
178
|
const L = t.schema, { formSchemaUtils: D } = M;
|
|
179
179
|
D.removeCommunicationInComponent(L);
|
|
180
180
|
}
|
|
181
181
|
function p(M) {
|
|
182
|
-
n && n.onRemoveComponent && n.onRemoveComponent(), g(M),
|
|
182
|
+
n && n.onRemoveComponent && n.onRemoveComponent(), g(M), v(M), t != null && t.schema.contents && t.schema.contents.map((L) => {
|
|
183
183
|
let D = L.id;
|
|
184
184
|
L.type === "component-ref" && (D = L.component);
|
|
185
185
|
const x = e.value.querySelectorAll(`#${D}-design-item`);
|
|
@@ -233,8 +233,8 @@ function ut(e, t, n) {
|
|
|
233
233
|
}
|
|
234
234
|
return a.value = {
|
|
235
235
|
canMove: c(),
|
|
236
|
-
canSelectParent:
|
|
237
|
-
canDelete:
|
|
236
|
+
canSelectParent: m(),
|
|
237
|
+
canDelete: d(),
|
|
238
238
|
canNested: !u(),
|
|
239
239
|
contents: t == null ? void 0 : t.schema.contents,
|
|
240
240
|
elementRef: e,
|
|
@@ -242,11 +242,11 @@ function ut(e, t, n) {
|
|
|
242
242
|
schema: t == null ? void 0 : t.schema,
|
|
243
243
|
styles: o,
|
|
244
244
|
designerClass: i,
|
|
245
|
-
canAccepts:
|
|
245
|
+
canAccepts: b,
|
|
246
246
|
getBelongedComponentInstance: s,
|
|
247
247
|
getDraggableDesignItemElement: l,
|
|
248
|
-
getDraggingDisplayText:
|
|
249
|
-
getPropConfig:
|
|
248
|
+
getDraggingDisplayText: f,
|
|
249
|
+
getPropConfig: y,
|
|
250
250
|
getDragScopeElement: w,
|
|
251
251
|
onAcceptMovedChildElement: C,
|
|
252
252
|
onChildElementMovedOut: S,
|
|
@@ -277,18 +277,18 @@ function Dn(e) {
|
|
|
277
277
|
return !r.hidden;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
function o(r, c,
|
|
281
|
-
var u, s, l,
|
|
282
|
-
switch ((u = r.onClick) == null || u.call(r, c,
|
|
280
|
+
function o(r, c, m, d) {
|
|
281
|
+
var u, s, l, b, f;
|
|
282
|
+
switch ((u = r.onClick) == null || u.call(r, c, m.dataIndex, m), r.command) {
|
|
283
283
|
case "edit":
|
|
284
|
-
|
|
284
|
+
m.status, Fe.editing, (l = (s = e.commandOption) == null ? void 0 : s.onClickEditCommand) == null || l.call(s, d, m);
|
|
285
285
|
break;
|
|
286
286
|
case "accept":
|
|
287
287
|
case "cancel":
|
|
288
|
-
|
|
288
|
+
m.status, Fe.initial;
|
|
289
289
|
break;
|
|
290
290
|
case "remove":
|
|
291
|
-
(
|
|
291
|
+
(f = (b = e.commandOption) == null ? void 0 : b.onClickDeleteCommand) == null || f.call(b, d, m);
|
|
292
292
|
break;
|
|
293
293
|
}
|
|
294
294
|
}
|
|
@@ -297,27 +297,27 @@ function Dn(e) {
|
|
|
297
297
|
}
|
|
298
298
|
function a(r, c) {
|
|
299
299
|
const {
|
|
300
|
-
column:
|
|
300
|
+
column: m
|
|
301
301
|
} = r;
|
|
302
|
-
return
|
|
302
|
+
return m.commands && m.commands.map((d, u) => u ? n(d, c) && F(ot, {
|
|
303
303
|
class: "ml-1",
|
|
304
|
-
type:
|
|
305
|
-
size:
|
|
306
|
-
onClick: (s) => o(
|
|
304
|
+
type: d.type,
|
|
305
|
+
size: d.size || "small",
|
|
306
|
+
onClick: (s) => o(d, s, c, r),
|
|
307
307
|
style: {
|
|
308
308
|
"margin-bottom": "3px"
|
|
309
309
|
}
|
|
310
310
|
}, {
|
|
311
|
-
default: () => [ke(" "), i(
|
|
312
|
-
}) : n(
|
|
313
|
-
type:
|
|
314
|
-
size:
|
|
315
|
-
onClick: (s) => o(
|
|
311
|
+
default: () => [ke(" "), i(d.text), ke(" ")]
|
|
312
|
+
}) : n(d, c) && F(ot, {
|
|
313
|
+
type: d.type,
|
|
314
|
+
size: d.size || "small",
|
|
315
|
+
onClick: (s) => o(d, s, c, r),
|
|
316
316
|
style: {
|
|
317
317
|
"margin-bottom": "3px"
|
|
318
318
|
}
|
|
319
319
|
}, {
|
|
320
|
-
default: () => [ke(" "), i(
|
|
320
|
+
default: () => [ke(" "), i(d.text), ke(" ")]
|
|
321
321
|
}));
|
|
322
322
|
}
|
|
323
323
|
return {
|
|
@@ -328,57 +328,57 @@ function dt(e, t) {
|
|
|
328
328
|
var S;
|
|
329
329
|
nn();
|
|
330
330
|
const { idField: n } = t, o = O(e.summary), i = O(e.group), a = O(((S = e.group) == null ? void 0 : S.groupFields) || []), r = W(() => {
|
|
331
|
-
var
|
|
332
|
-
return (
|
|
331
|
+
var y;
|
|
332
|
+
return (y = e.group) == null ? void 0 : y.enable;
|
|
333
333
|
}), c = W(() => {
|
|
334
|
-
var
|
|
335
|
-
return (
|
|
336
|
-
}),
|
|
337
|
-
const
|
|
338
|
-
return (
|
|
339
|
-
}),
|
|
340
|
-
const
|
|
341
|
-
return
|
|
334
|
+
var y;
|
|
335
|
+
return (y = e.group) == null ? void 0 : y.showGroupPanel;
|
|
336
|
+
}), m = W(() => {
|
|
337
|
+
const y = o.value;
|
|
338
|
+
return (y == null ? void 0 : y.groupFields) || [];
|
|
339
|
+
}), d = W(() => {
|
|
340
|
+
const y = i.value;
|
|
341
|
+
return y && y.showSummary;
|
|
342
342
|
}), u = O(0), s = /* @__PURE__ */ new Map();
|
|
343
343
|
let l = [];
|
|
344
|
-
function y
|
|
345
|
-
const E = p[
|
|
344
|
+
function b(y, g, v, p, _) {
|
|
345
|
+
const E = p[v];
|
|
346
346
|
E && (g.reduce((h, B, Y) => {
|
|
347
347
|
var D;
|
|
348
348
|
const M = B[E];
|
|
349
349
|
let L = h.get(M);
|
|
350
350
|
if (!L) {
|
|
351
|
-
const x =
|
|
351
|
+
const x = m.value.reduce((k, $) => (k.set($, 0), k), /* @__PURE__ */ new Map());
|
|
352
352
|
L = {
|
|
353
353
|
field: E,
|
|
354
354
|
title: ((D = _.get(E)) == null ? void 0 : D.title) || E,
|
|
355
355
|
value: M,
|
|
356
|
-
layer:
|
|
356
|
+
layer: v,
|
|
357
357
|
details: [],
|
|
358
358
|
groupSummaries: x
|
|
359
359
|
}, h.set(M, L);
|
|
360
360
|
}
|
|
361
|
-
return
|
|
361
|
+
return m.value && m.value.forEach((x) => {
|
|
362
362
|
if (L) {
|
|
363
363
|
const k = L.groupSummaries.get(x) || 0;
|
|
364
364
|
L.groupSummaries.set(x, k + B[x]);
|
|
365
365
|
}
|
|
366
|
-
}),
|
|
366
|
+
}), m.value && m.value.forEach((x) => {
|
|
367
367
|
if (L) {
|
|
368
368
|
const k = L.groupSummaries.get(x) || 0;
|
|
369
369
|
L.groupSummaries.set(x, Number(k.toFixed(2)));
|
|
370
370
|
}
|
|
371
371
|
}), L.details.push(B), h;
|
|
372
|
-
},
|
|
373
|
-
h.nestGroup = /* @__PURE__ */ new Map(),
|
|
372
|
+
}, y), v < p.length - 1 && y.forEach((h, B) => {
|
|
373
|
+
h.nestGroup = /* @__PURE__ */ new Map(), b(h.nestGroup, h.details, v + 1, p, _), h.details = [];
|
|
374
374
|
}));
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
return e.group && e.group.formatter ? e.group.formatter(
|
|
376
|
+
function f(y, g) {
|
|
377
|
+
return e.group && e.group.formatter ? e.group.formatter(y.value, { ...y, total: g }) : `${y.title}:${y.value} (${g})`;
|
|
378
378
|
}
|
|
379
|
-
function w(
|
|
380
|
-
const
|
|
381
|
-
return
|
|
379
|
+
function w(y, g) {
|
|
380
|
+
const v = [];
|
|
381
|
+
return y.forEach((p) => {
|
|
382
382
|
const _ = {
|
|
383
383
|
// 如果存在二级分组,分组行标识保持唯一
|
|
384
384
|
[n.value]: `group_of_${g ? g[n.value] + "_" : ""}${p.field}_${p.value}`,
|
|
@@ -391,11 +391,11 @@ function dt(e, t) {
|
|
|
391
391
|
};
|
|
392
392
|
g && (_.groupParents = [...g.groupParents, g]);
|
|
393
393
|
let E = 0;
|
|
394
|
-
if (
|
|
394
|
+
if (v.push(_), p.nestGroup) {
|
|
395
395
|
const h = w(p.nestGroup, _);
|
|
396
|
-
|
|
396
|
+
v.push(...h), E += h.length;
|
|
397
397
|
}
|
|
398
|
-
if (p.details && p.details.length && (
|
|
398
|
+
if (p.details && p.details.length && (v.push(...p.details), E += p.details.length), d.value) {
|
|
399
399
|
const h = {
|
|
400
400
|
__fv_data_grid_group_field__: p.field,
|
|
401
401
|
__fv_data_grid_group_layer__: p.layer,
|
|
@@ -404,38 +404,38 @@ function dt(e, t) {
|
|
|
404
404
|
h[n.value] = `summary_of_${p.field}_${p.value}`, h[p.field] = Array.from(p.groupSummaries.entries()).reduce(
|
|
405
405
|
(B, [Y, M]) => `${B} ${Y} total:${M} `,
|
|
406
406
|
""
|
|
407
|
-
),
|
|
407
|
+
), v.push(h);
|
|
408
408
|
}
|
|
409
409
|
p.groupSummaries && p.groupSummaries.size && p.groupSummaries.forEach((h, B) => {
|
|
410
410
|
_[B] = h;
|
|
411
|
-
}), _[p.field] =
|
|
412
|
-
}),
|
|
411
|
+
}), _[p.field] = f(p, E), _.value = p.value;
|
|
412
|
+
}), v.forEach((p, _) => {
|
|
413
413
|
p.__fv_data_index__ = _;
|
|
414
|
-
}),
|
|
414
|
+
}), v;
|
|
415
415
|
}
|
|
416
|
-
function C(
|
|
417
|
-
return !
|
|
416
|
+
function C(y, g, v) {
|
|
417
|
+
return !y || y.length === 0 || !g.length ? g : (y.join(","), s.clear(), l = [], g = g.filter((p) => !p.__fv_data_grid_group_row__), b(s, g, 0, y, v), l = w(s), l);
|
|
418
418
|
}
|
|
419
|
-
function T(
|
|
419
|
+
function T(y) {
|
|
420
420
|
return {
|
|
421
421
|
"f-icon": !0,
|
|
422
422
|
"f-icon-arrow-chevron-down": !0,
|
|
423
|
-
"fv-grid-group-row-icon-collapse":
|
|
423
|
+
"fv-grid-group-row-icon-collapse": y.collapse
|
|
424
424
|
};
|
|
425
425
|
}
|
|
426
426
|
return { collpaseGroupIconClass: T, generateGroupData: C, groupFields: a, shouldGroupingData: r, showGroupPanel: c, groupRowSize: u };
|
|
427
427
|
}
|
|
428
428
|
function ft(e) {
|
|
429
|
-
const t = "parent", n = "layer", o = "hasChildren", i = (r, c = 1,
|
|
429
|
+
const t = "parent", n = "layer", o = "hasChildren", i = (r, c = 1, m = [], d = null) => (r = r || [], r.reduce((u, s) => (s.id = s.id || s.data[e.idField], s[t] = d, s[n] = c, s[o] = s[o] === void 0 ? !1 : s[o], s.data && Object.keys(s.data).forEach((l) => {
|
|
430
430
|
Object.keys(s).includes(l) || (s[l] = s.data[l]);
|
|
431
|
-
}),
|
|
431
|
+
}), m.push(s), s.children && s.children.length && (s[o] = !0, i(s.children, c + 1, m, s.id)), u), m), m);
|
|
432
432
|
return { flatTreeData: i, isNestedTree: (r) => r.some((c) => Array.isArray(c.children)) };
|
|
433
433
|
}
|
|
434
434
|
function Pn(e, t, n, o) {
|
|
435
|
-
const i = O(0), a = O(!!e.hierarchy), { idField: r } = o, { collapseField: c, hasChildrenField:
|
|
435
|
+
const i = O(0), a = O(!!e.hierarchy), { idField: r } = o, { collapseField: c, hasChildrenField: m, parentIdField: d } = n, u = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), { flatTreeData: b, isNestedTree: f } = ft(e);
|
|
436
436
|
function w(P, R) {
|
|
437
437
|
s.clear(), P.reduce((j, U) => {
|
|
438
|
-
const Z = U[
|
|
438
|
+
const Z = U[d.value] !== void 0 ? U[d.value] : "";
|
|
439
439
|
if (Z && R.has(Z)) {
|
|
440
440
|
const ie = R.get(Z), te = isNaN(Number(ie.__fv_layer__)) ? 1 : Number(ie.__fv_layer__);
|
|
441
441
|
U.__fv_layer__ = te + 1, U.__fv_parent_index__ = ie.__fv_index__, ie.__fv_hasChildren__ = !0;
|
|
@@ -468,7 +468,7 @@ function Pn(e, t, n, o) {
|
|
|
468
468
|
R.__fv_children_index__ = [...j].sort((U, Z) => U - Z);
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function y(P) {
|
|
472
472
|
P.forEach((R) => {
|
|
473
473
|
const j = R.__fv_parents__;
|
|
474
474
|
Array.from(j.keys()).map((U) => l.get(U)).forEach((U) => {
|
|
@@ -481,7 +481,7 @@ function Pn(e, t, n, o) {
|
|
|
481
481
|
R.__fv_child_with_lines__ = [], R.__fv_child_length__ = R.__fv_descendant_index__.length, R.__fv_descendant_index__.map((j) => P[j]).reduce((j, U) => (j.__fv_child_length__ += U.__fv_children_index__.length, j.__fv_child_with_lines__.push(...U.__fv_children_index__, U.__fv_index__), j), R);
|
|
482
482
|
});
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function v(P, R) {
|
|
485
485
|
return { id: P, index: R, parentId: "", parentIndex: -1, parents: /* @__PURE__ */ new Map(), children: /* @__PURE__ */ new Map(), descendant: /* @__PURE__ */ new Map(), collapsed: !1, visibleInHierarchy: !0 };
|
|
486
486
|
}
|
|
487
487
|
function p(P, R, j) {
|
|
@@ -501,7 +501,7 @@ function Pn(e, t, n, o) {
|
|
|
501
501
|
});
|
|
502
502
|
}
|
|
503
503
|
function E(P, R) {
|
|
504
|
-
P.filter((j) => j[
|
|
504
|
+
P.filter((j) => j[d.value] === void 0 || j[d.value] === "").forEach((j) => {
|
|
505
505
|
const U = j[r.value], Z = R.get(U);
|
|
506
506
|
_(Z);
|
|
507
507
|
});
|
|
@@ -516,7 +516,7 @@ function Pn(e, t, n, o) {
|
|
|
516
516
|
function B(P) {
|
|
517
517
|
u.clear(), P.forEach((R, j) => {
|
|
518
518
|
const U = R[r.value];
|
|
519
|
-
u.set(U,
|
|
519
|
+
u.set(U, v(U, j));
|
|
520
520
|
}), C(P), w(P, l), p(u, s, l), E(P, u), h(u);
|
|
521
521
|
}
|
|
522
522
|
function Y(P) {
|
|
@@ -524,7 +524,7 @@ function Pn(e, t, n, o) {
|
|
|
524
524
|
return j && j.children.size > 0;
|
|
525
525
|
}
|
|
526
526
|
function M(P) {
|
|
527
|
-
return P[
|
|
527
|
+
return P[m.value] && !Y(P);
|
|
528
528
|
}
|
|
529
529
|
function L(P) {
|
|
530
530
|
const R = P[r.value], j = u.get(R);
|
|
@@ -567,13 +567,13 @@ function Pn(e, t, n, o) {
|
|
|
567
567
|
function I(P) {
|
|
568
568
|
P.forEach((R, j) => {
|
|
569
569
|
var ie;
|
|
570
|
-
const U = R[r.value], Z = s.has(U) ? (ie = s.get(U)) == null ? void 0 : ie.map((te) => te.__fv_index__) : [], ae =
|
|
570
|
+
const U = R[r.value], Z = s.has(U) ? (ie = s.get(U)) == null ? void 0 : ie.map((te) => te.__fv_index__) : [], ae = v(U, j);
|
|
571
571
|
R.__fv_graph_node__ = ae, R.__fv_children_index__ = Z, R.__fv_descendant_index__ = [...Z], R.__fv_parents__ = /* @__PURE__ */ new Map(), M(R) && (R[c.value] = !0);
|
|
572
572
|
});
|
|
573
573
|
}
|
|
574
574
|
function z(P) {
|
|
575
575
|
var U, Z;
|
|
576
|
-
B(t.value), I(P), T(P),
|
|
576
|
+
B(t.value), I(P), T(P), y(P), e.showLines && g(P);
|
|
577
577
|
const j = ((U = e.hierarchy) == null ? void 0 : U.collapseTo) !== void 0 ? Number((Z = e.hierarchy) == null ? void 0 : Z.collapseTo) : 0;
|
|
578
578
|
return A(P, "ToCollapse", j), P;
|
|
579
579
|
}
|
|
@@ -591,7 +591,7 @@ function Pn(e, t, n, o) {
|
|
|
591
591
|
const fe = Array.from(ie.children.values())[ue + 1];
|
|
592
592
|
te = j.value.findIndex((N) => N[r.value] === fe.id);
|
|
593
593
|
}
|
|
594
|
-
R[
|
|
594
|
+
R[m.value] = !1, R[d.value] = ie.id, j.value.splice(te, 0, R);
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
}
|
|
@@ -599,7 +599,7 @@ function Pn(e, t, n, o) {
|
|
|
599
599
|
const U = j.value[P], Z = U[r.value];
|
|
600
600
|
if (u.get(Z)) {
|
|
601
601
|
const te = j.value.findIndex((ue) => ue[r.value] === Z) + 1;
|
|
602
|
-
U[
|
|
602
|
+
U[m.value] = !0, U[c.value] = !1, R[m.value] = !1, R[d.value] = Z, j.value.splice(te, 0, R);
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
function re(P, R, j) {
|
|
@@ -607,8 +607,8 @@ function Pn(e, t, n, o) {
|
|
|
607
607
|
if (u.get(Z)) {
|
|
608
608
|
const te = j.value.findIndex((be) => be[r.value] === Z) + 1;
|
|
609
609
|
let ue = R;
|
|
610
|
-
|
|
611
|
-
be[
|
|
610
|
+
f(R) && (ue = b(R)), ue.forEach((be) => {
|
|
611
|
+
be[d.value] = Z;
|
|
612
612
|
}), j.value.splice(te, 0, ...ue);
|
|
613
613
|
}
|
|
614
614
|
}
|
|
@@ -618,7 +618,7 @@ function Pn(e, t, n, o) {
|
|
|
618
618
|
const ae = u.get(U.parentId);
|
|
619
619
|
if (ae && (ae.children.delete(j), ae.children.size === 0)) {
|
|
620
620
|
const te = R.find((ue) => ue[r.value] === U.parentId);
|
|
621
|
-
te[
|
|
621
|
+
te[m.value] = !1, te[c.value] = !1;
|
|
622
622
|
}
|
|
623
623
|
return R.filter((te) => Z.indexOf(te.id) === -1);
|
|
624
624
|
}
|
|
@@ -662,11 +662,11 @@ const Bn = {
|
|
|
662
662
|
const {
|
|
663
663
|
locale: n,
|
|
664
664
|
t: o
|
|
665
|
-
} = je(), i = O(e.animate), a = "fadeOut", r = W(() => e.options), c = O(!1),
|
|
665
|
+
} = je(), i = O(e.animate), a = "fadeOut", r = W(() => e.options), c = O(!1), m = W(() => r.value.title && r.value.message), d = W(() => !r.value.title && r.value.message), u = W(() => {
|
|
666
666
|
const g = {
|
|
667
667
|
animated: c.value,
|
|
668
668
|
toast: !0,
|
|
669
|
-
"toast--only-content": !
|
|
669
|
+
"toast--only-content": !m.value
|
|
670
670
|
};
|
|
671
671
|
return g[e.animate] = !1, g[a] = c.value, g["toasty-type-" + r.value.type] = !0, r.value.theme && (g[r.value.theme] = !0), g;
|
|
672
672
|
}), s = W(() => {
|
|
@@ -674,7 +674,7 @@ const Bn = {
|
|
|
674
674
|
"f-icon": !0
|
|
675
675
|
};
|
|
676
676
|
return _[p] = !0, _;
|
|
677
|
-
}), l = W(() => r.value.title || r.value.message),
|
|
677
|
+
}), l = W(() => r.value.title || r.value.message), b = W(() => e.showCloseButton), f = W(() => !!r.value.buttons || !!t.slots.default), w = W(() => n.value === "en" ? {
|
|
678
678
|
wordBreak: "keep-all",
|
|
679
679
|
overflowWrap: "break-word"
|
|
680
680
|
} : {});
|
|
@@ -683,7 +683,7 @@ const Bn = {
|
|
|
683
683
|
t.emit("close", r.value);
|
|
684
684
|
}, 200);
|
|
685
685
|
}
|
|
686
|
-
function T(g,
|
|
686
|
+
function T(g, v) {
|
|
687
687
|
}
|
|
688
688
|
function S(g) {
|
|
689
689
|
return `f-preten-link ${g.customClass ? g.customClass : ""}`;
|
|
@@ -691,19 +691,19 @@ const Bn = {
|
|
|
691
691
|
Ne(i, () => {
|
|
692
692
|
i.value;
|
|
693
693
|
});
|
|
694
|
-
const
|
|
694
|
+
const y = () => {
|
|
695
695
|
var g;
|
|
696
696
|
return F(De, null, [F("div", {
|
|
697
697
|
class: "after-toast-msg text-right"
|
|
698
|
-
}, [!t.slots.default && ((g = r.value.buttons) == null ? void 0 : g.map((
|
|
699
|
-
class: S(
|
|
698
|
+
}, [!t.slots.default && ((g = r.value.buttons) == null ? void 0 : g.map((v) => F("span", {
|
|
699
|
+
class: S(v),
|
|
700
700
|
onClick: (p) => void 0
|
|
701
|
-
}, [
|
|
701
|
+
}, [v.text]))), t.slots.default && t.slots.default()])]);
|
|
702
702
|
};
|
|
703
703
|
return () => F("div", {
|
|
704
704
|
class: u.value,
|
|
705
705
|
style: "min-height:44px"
|
|
706
|
-
}, [
|
|
706
|
+
}, [b.value && F("button", {
|
|
707
707
|
title: o("messageBox.close"),
|
|
708
708
|
class: "toast-close f-btn-icon f-bare",
|
|
709
709
|
onClick: C
|
|
@@ -711,20 +711,20 @@ const Bn = {
|
|
|
711
711
|
class: "f-icon modal_close"
|
|
712
712
|
}, null)]), l.value && F("section", {
|
|
713
713
|
class: "modal-tips"
|
|
714
|
-
}, [!
|
|
714
|
+
}, [!m.value && F("div", {
|
|
715
715
|
class: "float-left modal-tips-iconwrap"
|
|
716
716
|
}, [F("span", {
|
|
717
717
|
class: s.value
|
|
718
718
|
}, null)]), F("div", {
|
|
719
719
|
class: "modal-tips-content"
|
|
720
|
-
}, [
|
|
720
|
+
}, [m.value && F(De, null, [F("h5", {
|
|
721
721
|
class: "toast-title modal-tips-title",
|
|
722
722
|
innerHTML: r.value.title
|
|
723
723
|
}, null), F("p", {
|
|
724
724
|
class: "toast-msg",
|
|
725
725
|
innerHTML: r.value.message,
|
|
726
726
|
style: w.value
|
|
727
|
-
}, null),
|
|
727
|
+
}, null), f.value && y()]), d.value && (r.value.buttons ? F("div", {
|
|
728
728
|
class: "toast-title-btns-wrapper d-flex"
|
|
729
729
|
}, [F("h5", {
|
|
730
730
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
@@ -732,7 +732,7 @@ const Bn = {
|
|
|
732
732
|
innerHTML: r.value.message
|
|
733
733
|
}, null), F("div", {
|
|
734
734
|
class: "after-toast-title text-right ml-auto"
|
|
735
|
-
}, [
|
|
735
|
+
}, [y()])]) : F("h5", {
|
|
736
736
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
737
737
|
style: w.value,
|
|
738
738
|
innerHTML: r.value.message
|
|
@@ -750,32 +750,32 @@ const Bn = {
|
|
|
750
750
|
right: 12,
|
|
751
751
|
top: 20,
|
|
752
752
|
bottom: 12
|
|
753
|
-
}, i = O(), a = O(e.options), r = O(e.showCloseButton), c = W(() => e.position || "bottom-right"),
|
|
754
|
-
const l = e.bottom ? e.bottom : o.bottom,
|
|
753
|
+
}, i = O(), a = O(e.options), r = O(e.showCloseButton), c = W(() => e.position || "bottom-right"), m = W(() => e.timeout != null ? e.timeout : 3e3), d = W(() => {
|
|
754
|
+
const l = e.bottom ? e.bottom : o.bottom, b = e.top ? e.top : o.top, f = {
|
|
755
755
|
transition: "all 0.2s ease",
|
|
756
756
|
left: c.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
|
|
757
757
|
right: c.value.indexOf("right") > -1 ? `${e.right ? e.right : o.right}px` : "",
|
|
758
|
-
top: c.value.indexOf("top") > -1 ? `${
|
|
758
|
+
top: c.value.indexOf("top") > -1 ? `${b}px` : "",
|
|
759
759
|
bottom: c.value.indexOf("bottom") > -1 ? `${l}px` : ""
|
|
760
760
|
};
|
|
761
|
-
return c.value.indexOf("center") > -1 && (
|
|
761
|
+
return c.value.indexOf("center") > -1 && (f.left = "50%", f.marginLeft = "calc(-24rem / 2)", c.value === "center-center" && (f.top = "50%", f.transform = "translate(-50%, -50%)")), f;
|
|
762
762
|
});
|
|
763
763
|
function u(l) {
|
|
764
764
|
t.emit("close");
|
|
765
765
|
}
|
|
766
|
-
|
|
766
|
+
m.value && setTimeout(() => {
|
|
767
767
|
u();
|
|
768
|
-
},
|
|
768
|
+
}, m.value), t.expose({
|
|
769
769
|
closeToast: u,
|
|
770
770
|
container: i,
|
|
771
771
|
notifyPosition: c
|
|
772
772
|
});
|
|
773
|
-
function s(l,
|
|
773
|
+
function s(l, b) {
|
|
774
774
|
u();
|
|
775
775
|
}
|
|
776
776
|
return () => F("div", {
|
|
777
777
|
class: n.value,
|
|
778
|
-
style:
|
|
778
|
+
style: d.value,
|
|
779
779
|
ref: i
|
|
780
780
|
}, [F(Xe, {
|
|
781
781
|
options: a.value,
|
|
@@ -785,7 +785,7 @@ const Bn = {
|
|
|
785
785
|
}, null)]);
|
|
786
786
|
}
|
|
787
787
|
});
|
|
788
|
-
class
|
|
788
|
+
class vt {
|
|
789
789
|
constructor() {
|
|
790
790
|
pe(this, "notifyRefs", []);
|
|
791
791
|
pe(this, "globalConfig", ct({}));
|
|
@@ -806,11 +806,11 @@ class mt {
|
|
|
806
806
|
...t
|
|
807
807
|
}), a = document.createElement("div");
|
|
808
808
|
a.style.display = "contents";
|
|
809
|
-
const r =
|
|
809
|
+
const r = vn({
|
|
810
810
|
setup() {
|
|
811
|
-
var
|
|
811
|
+
var d;
|
|
812
812
|
const c = O();
|
|
813
|
-
function
|
|
813
|
+
function m() {
|
|
814
814
|
c.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
815
815
|
n.updateNotifyPositionForClose(i, c), r.unmount();
|
|
816
816
|
}, 220);
|
|
@@ -822,7 +822,7 @@ class mt {
|
|
|
822
822
|
i.top = l.bottom;
|
|
823
823
|
}
|
|
824
824
|
}
|
|
825
|
-
return i.safeHtml && ((
|
|
825
|
+
return i.safeHtml && ((d = i.options) != null && d.message) && (i.options.message = n.escapeAllHtml(i.options.message)), mn(() => {
|
|
826
826
|
document.body.removeChild(a);
|
|
827
827
|
}), Je(() => {
|
|
828
828
|
n.updateNotifyPositionForCreate(i, c);
|
|
@@ -834,7 +834,7 @@ class mt {
|
|
|
834
834
|
default: () => [F(Re, gn({
|
|
835
835
|
ref: c
|
|
836
836
|
}, i, {
|
|
837
|
-
onClose:
|
|
837
|
+
onClose: m
|
|
838
838
|
}), null)]
|
|
839
839
|
});
|
|
840
840
|
}
|
|
@@ -870,14 +870,14 @@ class mt {
|
|
|
870
870
|
buildNotifyProps(t, n) {
|
|
871
871
|
let o = "", i = "", a, r, c;
|
|
872
872
|
typeof n == "string" ? o = n : n && (o = n.message || "", i = n.title || "", r = n.position || null, c = n.showCloseButton != null ? n.showCloseButton : null, a = n.timeout != null ? n.timeout : null);
|
|
873
|
-
const
|
|
873
|
+
const d = {
|
|
874
874
|
options: {
|
|
875
875
|
type: t,
|
|
876
876
|
message: o,
|
|
877
877
|
title: i
|
|
878
878
|
}
|
|
879
879
|
};
|
|
880
|
-
return r != null && (
|
|
880
|
+
return r != null && (d.position = r), c != null && (d.showCloseButton = c), a != null && (d.timeout = a), d;
|
|
881
881
|
}
|
|
882
882
|
info(t) {
|
|
883
883
|
const n = this.buildNotifyProps("info", t);
|
|
@@ -907,14 +907,14 @@ class mt {
|
|
|
907
907
|
const An = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
908
908
|
Re.install = (e) => {
|
|
909
909
|
e.component(Re.name, Re), e.component(Xe.name, Xe);
|
|
910
|
-
const t = new
|
|
910
|
+
const t = new vt();
|
|
911
911
|
e.provide(An, t), e.provide("FNotifyService", t);
|
|
912
912
|
};
|
|
913
913
|
function $n(e, t, n, o, i) {
|
|
914
|
-
const { toNumber: a } = st(), r = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(),
|
|
915
|
-
collapseTo:
|
|
914
|
+
const { toNumber: a } = st(), r = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), s = O([]), l = O([]), b = dt(e, i), { generateGroupData: f, groupFields: w, shouldGroupingData: C } = b, T = O(e.data || []), S = Pn(e, T, o, i), {
|
|
915
|
+
collapseTo: y,
|
|
916
916
|
expandTo: g,
|
|
917
|
-
generateHierarchyData:
|
|
917
|
+
generateHierarchyData: v,
|
|
918
918
|
hasRealChildren: p,
|
|
919
919
|
insertSibling: _,
|
|
920
920
|
insertChild: E,
|
|
@@ -938,48 +938,48 @@ function $n(e, t, n, o, i) {
|
|
|
938
938
|
function P() {
|
|
939
939
|
return ee.value && ee.value.enable && ee.value.size > 0 ? ee.value.size : A.value.length;
|
|
940
940
|
}
|
|
941
|
-
const R = O(1), j = W(() => ee.value && ee.value.enable && ee.value.mode !== "server"), U = W(() => ee.value && ee.value.enable && ee.value.mode === "server"), Z = new
|
|
941
|
+
const R = O(1), j = W(() => ee.value && ee.value.enable && ee.value.mode !== "server"), U = W(() => ee.value && ee.value.enable && ee.value.mode === "server"), Z = new vt();
|
|
942
942
|
function ae(V, H) {
|
|
943
943
|
const X = Math.ceil(V.length / H);
|
|
944
944
|
let oe = 0;
|
|
945
|
-
const
|
|
945
|
+
const me = [], Ce = [], Te = [];
|
|
946
946
|
for (; oe < X; ) {
|
|
947
|
-
const ye = V.slice(oe * H, (oe + 1) * H), le =
|
|
948
|
-
Ce[oe] = le.filter((ce) => ce.__fv_data_grid_group_row__).length,
|
|
947
|
+
const ye = V.slice(oe * H, (oe + 1) * H), le = f(w.value, ye, t);
|
|
948
|
+
Ce[oe] = le.filter((ce) => ce.__fv_data_grid_group_row__).length, me.push(...le), oe++;
|
|
949
949
|
}
|
|
950
950
|
return Ce.reduce((ye, le, ce) => (ye = ye + le, Te.push(ye), ye), 0), {
|
|
951
|
-
groupData:
|
|
951
|
+
groupData: me,
|
|
952
952
|
groupRowSizeList: Ce,
|
|
953
953
|
accumulateGroupRowSize: Te
|
|
954
954
|
};
|
|
955
955
|
}
|
|
956
956
|
function ie() {
|
|
957
957
|
var le;
|
|
958
|
-
A.value = T.value, j.value && (re.value = A.value.length), C.value && !j.value && (A.value =
|
|
958
|
+
A.value = T.value, j.value && (re.value = A.value.length), C.value && !j.value && (A.value = f(w.value, T.value, t)), K = J.value.reduce((ce, ve) => (ce.set(ve, 0), ce), K);
|
|
959
959
|
const V = 0, H = P(), X = (R.value - 1) * H;
|
|
960
|
-
let
|
|
960
|
+
let me = X > A.value.length - 1 || U.value ? V : X, Ce = U.value ? A.value.length : Math.min(me + H, A.value.length);
|
|
961
961
|
if (C.value && j.value) {
|
|
962
|
-
const { accumulateGroupRowSize: ce, groupData:
|
|
963
|
-
A.value =
|
|
962
|
+
const { accumulateGroupRowSize: ce, groupData: ve, groupRowSizeList: de } = ae(T.value, H);
|
|
963
|
+
A.value = ve;
|
|
964
964
|
const Ve = de[R.value - 1];
|
|
965
|
-
|
|
965
|
+
me += R.value - 2 < 0 ? 0 : ce[R.value - 2], Ce = me + H + Ve;
|
|
966
966
|
}
|
|
967
967
|
let Te = 0;
|
|
968
968
|
const ye = [];
|
|
969
969
|
if (A.value.length) {
|
|
970
970
|
k(A.value);
|
|
971
971
|
const ce = x.value !== e.idField;
|
|
972
|
-
for (let
|
|
973
|
-
const de = A.value[
|
|
974
|
-
de.__fv_data_grid_group_row__ ? (Te = 0, de.__fv_data_index__ = "") : de.__fv_data_grid_group_summary__ ? de.__fv_data_index__ = "" : (Te++, de.__fv_data_index__ = Te + (R.value - 1) * H), de.__fv_index__ =
|
|
972
|
+
for (let ve = me; ve < Ce; ve++) {
|
|
973
|
+
const de = A.value[ve];
|
|
974
|
+
de.__fv_data_grid_group_row__ ? (Te = 0, de.__fv_data_index__ = "") : de.__fv_data_grid_group_summary__ ? de.__fv_data_index__ = "" : (Te++, de.__fv_data_index__ = Te + (R.value - 1) * H), de.__fv_index__ = ve, de.__fv_visible_index__ = ve, e.rowOption && e.rowOption.disabledField && (de.__fv_disabled__ = de[(le = e.rowOption) == null ? void 0 : le.disabledField]), ce && (de[x.value] = ve), J.value.forEach((Ve) => {
|
|
975
975
|
const Ue = K.get(Ve) || 0;
|
|
976
976
|
K.set(Ve, Ue + se(de, Ve));
|
|
977
977
|
}), ye.push(de);
|
|
978
978
|
}
|
|
979
979
|
}
|
|
980
|
-
return Y.value &&
|
|
981
|
-
const
|
|
982
|
-
K.set(ce, a(
|
|
980
|
+
return Y.value && v(ye), J.value.forEach((ce) => {
|
|
981
|
+
const ve = K.get(ce) || 0;
|
|
982
|
+
K.set(ce, a(ve.toFixed(2)));
|
|
983
983
|
}), Q.value = [...ye], ye;
|
|
984
984
|
}
|
|
985
985
|
const te = O(ie()), ue = W(() => (D.value, te.value.filter((V) => Y.value ? V.__fv_visible__ !== !1 && B(V) : V.__fv_visible__ !== !1)));
|
|
@@ -989,16 +989,16 @@ function $n(e, t, n, o, i) {
|
|
|
989
989
|
function fe(V, H, X = !1) {
|
|
990
990
|
var ye;
|
|
991
991
|
const oe = X ? ie() : [...Q.value];
|
|
992
|
-
let
|
|
993
|
-
((ye = e.filter) == null ? void 0 : ye.mode) !== "server" && (
|
|
994
|
-
const Ce = V && V.length ?
|
|
995
|
-
const
|
|
992
|
+
let me = oe;
|
|
993
|
+
((ye = e.filter) == null ? void 0 : ye.mode) !== "server" && (me = oe.filter((le) => n.apply(le)));
|
|
994
|
+
const Ce = V && V.length ? me.filter((le) => V.reduce((ce, ve) => ce && ve.filter(le), !0)) : me, Te = H && H.length ? Ce.sort((le, ce) => {
|
|
995
|
+
const ve = [...H], de = ve.shift(), Ve = se(le, de.field) === void 0 || se(le, de.field) === null ? "" : se(le, de.field), Ue = se(ce, de.field) === void 0 || se(ce, de.field) === null ? "" : se(ce, de.field);
|
|
996
996
|
let Ge = de.compare(
|
|
997
997
|
Ve,
|
|
998
998
|
Ue
|
|
999
999
|
);
|
|
1000
|
-
for (; Ge === 0 &&
|
|
1001
|
-
const Me =
|
|
1000
|
+
for (; Ge === 0 && ve.length !== 0; ) {
|
|
1001
|
+
const Me = ve.shift();
|
|
1002
1002
|
if (Me) {
|
|
1003
1003
|
const Zt = se(le, Me.field) === void 0 || se(le, Me.field) === null ? "" : se(le, Me.field), Kt = se(ce, Me.field) === void 0 || se(ce, Me.field) === null ? "" : se(ce, Me.field);
|
|
1004
1004
|
Ge = Me.compare(Zt, Kt);
|
|
@@ -1008,8 +1008,8 @@ function $n(e, t, n, o, i) {
|
|
|
1008
1008
|
}) : Ce;
|
|
1009
1009
|
return te.value = Te.map((le, ce) => {
|
|
1010
1010
|
if (le.__fv_data_grid_group_row__) {
|
|
1011
|
-
const
|
|
1012
|
-
le.__fv_data_grid_group_collapse__ = !!r.get(
|
|
1011
|
+
const ve = `group_of_${le.__fv_data_grid_group_field__}_${le.__fv_data_grid_group_value__}`;
|
|
1012
|
+
le.__fv_data_grid_group_collapse__ = !!r.get(ve);
|
|
1013
1013
|
}
|
|
1014
1014
|
return le.__fv_index__ = ce, le.__fv_visible_index__ = ce, le;
|
|
1015
1015
|
}), te.value;
|
|
@@ -1035,52 +1035,52 @@ function $n(e, t, n, o, i) {
|
|
|
1035
1035
|
function Pe(V, H, X) {
|
|
1036
1036
|
const oe = `group_of_${V}_${H}`;
|
|
1037
1037
|
r.set(oe, !0);
|
|
1038
|
-
const
|
|
1039
|
-
return
|
|
1038
|
+
const me = (Ce) => Ce[V] !== H;
|
|
1039
|
+
return m.set(`collapse_${V}_${H}`, {
|
|
1040
1040
|
field: V,
|
|
1041
1041
|
fieldName: V,
|
|
1042
1042
|
fieldType: "string",
|
|
1043
1043
|
filterValue: H,
|
|
1044
|
-
filter:
|
|
1045
|
-
}), fe(Array.from(
|
|
1044
|
+
filter: me
|
|
1045
|
+
}), fe(Array.from(m.values()), Array.from(u.values()));
|
|
1046
1046
|
}
|
|
1047
1047
|
function xt(V) {
|
|
1048
|
-
|
|
1048
|
+
y(te.value, V);
|
|
1049
1049
|
}
|
|
1050
1050
|
function Ot(V) {
|
|
1051
1051
|
g(te.value, V);
|
|
1052
1052
|
}
|
|
1053
1053
|
function It(V, H, X) {
|
|
1054
1054
|
const oe = `group_of_${V}_${H}`;
|
|
1055
|
-
return r.set(oe, !1),
|
|
1055
|
+
return r.set(oe, !1), m.delete(`collapse_${V}_${H}`), fe(Array.from(m.values()), Array.from(u.values()), !0);
|
|
1056
1056
|
}
|
|
1057
1057
|
function Dt(V) {
|
|
1058
1058
|
const H = V.raw[x.value], X = (oe) => !oe.__fv_parents__.has(H);
|
|
1059
|
-
|
|
1059
|
+
d.set(`fold_${H}`, {
|
|
1060
1060
|
field: "id",
|
|
1061
1061
|
fieldName: "id",
|
|
1062
1062
|
fieldType: "string",
|
|
1063
1063
|
filterValue: String(H),
|
|
1064
1064
|
filter: X
|
|
1065
|
-
}), fe(Array.from(
|
|
1065
|
+
}), fe(Array.from(d.values()), Array.from(u.values())), v(te.value);
|
|
1066
1066
|
}
|
|
1067
1067
|
function He(V) {
|
|
1068
1068
|
const H = V[x.value];
|
|
1069
|
-
|
|
1069
|
+
d.delete(`fold_${H}`);
|
|
1070
1070
|
}
|
|
1071
1071
|
function Pt(V) {
|
|
1072
|
-
He(V.raw), fe(Array.from(
|
|
1072
|
+
He(V.raw), fe(Array.from(d.values()), Array.from(u.values()), !0), v(te.value);
|
|
1073
1073
|
}
|
|
1074
1074
|
function Se() {
|
|
1075
1075
|
const V = ie();
|
|
1076
|
-
te.value = V, fe(Array.from(
|
|
1076
|
+
te.value = V, fe(Array.from(d.values()), Array.from(u.values())), e.hierarchy && v(te.value);
|
|
1077
1077
|
}
|
|
1078
1078
|
function Bt(V) {
|
|
1079
1079
|
const X = e.hierarchy && I(V) ? ne(V) : V;
|
|
1080
1080
|
T.value = X, Se();
|
|
1081
1081
|
}
|
|
1082
1082
|
function Rt(V, H, X) {
|
|
1083
|
-
return (V && V.length ? te.value.filter((
|
|
1083
|
+
return (V && V.length ? te.value.filter((me, Ce) => V.reduce((Te, ye) => Te && ye.filter(me), !0)) : te.value).slice(H, X);
|
|
1084
1084
|
}
|
|
1085
1085
|
function At(V) {
|
|
1086
1086
|
const H = P(), X = Math.ceil(re.value / H);
|
|
@@ -1122,7 +1122,7 @@ function $n(e, t, n, o, i) {
|
|
|
1122
1122
|
T.value = L(H, T.value), Se();
|
|
1123
1123
|
}
|
|
1124
1124
|
function zt() {
|
|
1125
|
-
const V =
|
|
1125
|
+
const V = m.size > 0 ? Array.from(m.values()) : [];
|
|
1126
1126
|
return fe(V, Array.from(u.values()));
|
|
1127
1127
|
}
|
|
1128
1128
|
function Ze(V) {
|
|
@@ -1142,7 +1142,7 @@ function $n(e, t, n, o, i) {
|
|
|
1142
1142
|
}
|
|
1143
1143
|
function Xt(V) {
|
|
1144
1144
|
return V.map((X) => {
|
|
1145
|
-
const oe = Q.value.findIndex((
|
|
1145
|
+
const oe = Q.value.findIndex((me) => "" + me[x.value] == "" + X);
|
|
1146
1146
|
return oe > -1 ? Q.value[oe] : null;
|
|
1147
1147
|
}).filter((X) => X != null);
|
|
1148
1148
|
}
|
|
@@ -1164,8 +1164,8 @@ function $n(e, t, n, o, i) {
|
|
|
1164
1164
|
K = H.reduce((X, oe) => (X.set(oe, 0), X), K);
|
|
1165
1165
|
for (const X of V)
|
|
1166
1166
|
H.forEach((oe) => {
|
|
1167
|
-
const
|
|
1168
|
-
K.set(oe,
|
|
1167
|
+
const me = K.get(oe) || 0;
|
|
1168
|
+
K.set(oe, me + se(X.raw, oe));
|
|
1169
1169
|
});
|
|
1170
1170
|
H.forEach((X) => {
|
|
1171
1171
|
const oe = K.get(X) || 0;
|
|
@@ -1352,38 +1352,38 @@ const Ln = [
|
|
|
1352
1352
|
]);
|
|
1353
1353
|
function Wn(e, t) {
|
|
1354
1354
|
const n = O([]), o = /* @__PURE__ */ new Map(), { loadConditionGroup: i } = wn();
|
|
1355
|
-
function a(g,
|
|
1355
|
+
function a(g, v) {
|
|
1356
1356
|
switch (g) {
|
|
1357
1357
|
case "check-box":
|
|
1358
|
-
return new xn({ value:
|
|
1358
|
+
return new xn({ value: v });
|
|
1359
1359
|
case "combo-list":
|
|
1360
|
-
return new Vn({ value:
|
|
1360
|
+
return new Vn({ value: v });
|
|
1361
1361
|
case "combo-lookup":
|
|
1362
|
-
return new Nn({ value:
|
|
1362
|
+
return new Nn({ value: v });
|
|
1363
1363
|
case "input-group":
|
|
1364
|
-
return new qe({ value:
|
|
1364
|
+
return new qe({ value: v });
|
|
1365
1365
|
case "date-picker":
|
|
1366
|
-
return new Mn({ value:
|
|
1366
|
+
return new Mn({ value: v });
|
|
1367
1367
|
case "date-range":
|
|
1368
|
-
return new rt({ value:
|
|
1368
|
+
return new rt({ value: v });
|
|
1369
1369
|
case "datetime-picker":
|
|
1370
|
-
return new Fn({ value:
|
|
1370
|
+
return new Fn({ value: v });
|
|
1371
1371
|
case "datetime-range":
|
|
1372
|
-
return new rt({ value:
|
|
1372
|
+
return new rt({ value: v });
|
|
1373
1373
|
case "lookup":
|
|
1374
|
-
return new qe({ value:
|
|
1374
|
+
return new qe({ value: v });
|
|
1375
1375
|
case "month-picker":
|
|
1376
|
-
return new kn({ value:
|
|
1376
|
+
return new kn({ value: v });
|
|
1377
1377
|
case "month-range":
|
|
1378
|
-
return new En({ value:
|
|
1378
|
+
return new En({ value: v });
|
|
1379
1379
|
case "number-range":
|
|
1380
|
-
return new Tn({ value:
|
|
1380
|
+
return new Tn({ value: v });
|
|
1381
1381
|
case "number-spinner":
|
|
1382
|
-
return new Sn({ value:
|
|
1382
|
+
return new Sn({ value: v });
|
|
1383
1383
|
case "radio-group":
|
|
1384
|
-
return new Cn({ value:
|
|
1384
|
+
return new Cn({ value: v });
|
|
1385
1385
|
default:
|
|
1386
|
-
return new qe({ value:
|
|
1386
|
+
return new qe({ value: v });
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
1389
|
const r = /* @__PURE__ */ new Map([
|
|
@@ -1406,108 +1406,108 @@ function Wn(e, t) {
|
|
|
1406
1406
|
["enum", we.In],
|
|
1407
1407
|
["reference", we.Equal]
|
|
1408
1408
|
]);
|
|
1409
|
-
function
|
|
1410
|
-
n.value.forEach((
|
|
1411
|
-
p === n.value.length - 1 ?
|
|
1409
|
+
function m() {
|
|
1410
|
+
n.value.forEach((v, p) => {
|
|
1411
|
+
p === n.value.length - 1 ? v.relation = 0 : v.relation = 1;
|
|
1412
1412
|
});
|
|
1413
1413
|
const g = [];
|
|
1414
|
-
return n.value.forEach((
|
|
1415
|
-
const { valueType: p } =
|
|
1414
|
+
return n.value.forEach((v) => {
|
|
1415
|
+
const { valueType: p } = v.value, _ = v.value.value;
|
|
1416
1416
|
if (p === "boolean") {
|
|
1417
1417
|
const E = [];
|
|
1418
1418
|
_.length === 1 && E.push({
|
|
1419
|
-
filterField:
|
|
1420
|
-
compare:
|
|
1421
|
-
value:
|
|
1422
|
-
relation: n.value.length > 1 ?
|
|
1419
|
+
filterField: v.fieldCode,
|
|
1420
|
+
compare: v.compareType || v.compareType === 0 ? v.compareType : we.Like,
|
|
1421
|
+
value: v.value.value[0],
|
|
1422
|
+
relation: n.value.length > 1 ? v.relation || v.relation === 0 ? v.relation : 1 : 0,
|
|
1423
1423
|
expresstype: xe.Value,
|
|
1424
|
-
lbracket:
|
|
1425
|
-
rbracket:
|
|
1424
|
+
lbracket: v.lBracket || null,
|
|
1425
|
+
rbracket: v.rBracket || null
|
|
1426
1426
|
}), _.length > 1 && E.push({
|
|
1427
|
-
filterField:
|
|
1428
|
-
compare:
|
|
1429
|
-
value:
|
|
1427
|
+
filterField: v.fieldCode,
|
|
1428
|
+
compare: v.compareType || v.compareType === 0 ? v.compareType : we.Like,
|
|
1429
|
+
value: v.value.value[0],
|
|
1430
1430
|
relation: 2,
|
|
1431
1431
|
expresstype: xe.Value,
|
|
1432
|
-
lbracket:
|
|
1433
|
-
rbracket:
|
|
1432
|
+
lbracket: v.lBracket ? v.lBracket + "(" : "(",
|
|
1433
|
+
rbracket: v.rBracket || null
|
|
1434
1434
|
}, {
|
|
1435
|
-
filterField:
|
|
1436
|
-
compare:
|
|
1437
|
-
value:
|
|
1438
|
-
relation: n.value.length > 1 ?
|
|
1435
|
+
filterField: v.fieldCode,
|
|
1436
|
+
compare: v.compareType || v.compareType === 0 ? v.compareType : we.Like,
|
|
1437
|
+
value: v.value.value[1],
|
|
1438
|
+
relation: n.value.length > 1 ? v.relation || v.relation === 0 ? v.relation : 1 : 0,
|
|
1439
1439
|
expresstype: xe.Value,
|
|
1440
|
-
lbracket:
|
|
1441
|
-
rbracket:
|
|
1440
|
+
lbracket: v.lBracket || null,
|
|
1441
|
+
rbracket: v.rBracket ? v.rBracket + ")" : ")"
|
|
1442
1442
|
}), g.push(...E);
|
|
1443
1443
|
} else
|
|
1444
1444
|
g.push({
|
|
1445
|
-
filterField:
|
|
1446
|
-
compare:
|
|
1447
|
-
value:
|
|
1448
|
-
relation: n.value.length > 1 ?
|
|
1445
|
+
filterField: v.fieldCode,
|
|
1446
|
+
compare: v.compareType || v.compareType === 0 ? v.compareType : we.Like,
|
|
1447
|
+
value: v.value.value,
|
|
1448
|
+
relation: n.value.length > 1 ? v.relation || v.relation === 0 ? v.relation : 1 : 0,
|
|
1449
1449
|
expresstype: xe.Value,
|
|
1450
|
-
lbracket:
|
|
1451
|
-
rbracket:
|
|
1450
|
+
lbracket: v.lBracket || null,
|
|
1451
|
+
rbracket: v.rBracket || null
|
|
1452
1452
|
});
|
|
1453
1453
|
}), g;
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1455
|
+
function d(g) {
|
|
1456
1456
|
var p;
|
|
1457
|
-
const
|
|
1458
|
-
return ((p = g.editor) == null ? void 0 : p.type) || r.get(
|
|
1457
|
+
const v = g.dataType || "string";
|
|
1458
|
+
return ((p = g.editor) == null ? void 0 : p.type) || r.get(v) || "text";
|
|
1459
1459
|
}
|
|
1460
1460
|
function u(g) {
|
|
1461
1461
|
var D, x, k, $, A;
|
|
1462
|
-
const
|
|
1463
|
-
o.set(
|
|
1462
|
+
const v = `field_filter_${g.field}`, p = Date.now(), _ = g.field, E = ((D = g.column) == null ? void 0 : D.title) || "", h = ((x = g.column) == null ? void 0 : x.dataType) || "string", B = c.get(h) || we.Equal, Y = (($ = (k = g.column) == null ? void 0 : k.editor) == null ? void 0 : $.type) || r.get(h) || "text", M = a(Y, (A = g.column) == null ? void 0 : A.filter), L = Y === "lookup" || Y === "combo-lookup" ? xe.SmartHelp : Y === "combo-list" ? xe.Enum : xe.Value;
|
|
1463
|
+
o.set(v, { id: v, fieldCode: _, fieldName: E, compareType: B, valueType: L, value: M, conditionId: p, relation: 1 }), n.value = Array.from(o.values());
|
|
1464
1464
|
}
|
|
1465
1465
|
function s(g) {
|
|
1466
|
-
const
|
|
1467
|
-
o.delete(
|
|
1466
|
+
const v = `field_filter_${g.field}`;
|
|
1467
|
+
o.delete(v), n.value = Array.from(o.values());
|
|
1468
1468
|
}
|
|
1469
1469
|
function l(g) {
|
|
1470
1470
|
o.delete(g), n.value = Array.from(o.values());
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1472
|
+
function b() {
|
|
1473
1473
|
o.clear(), n.value = [];
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1476
|
-
const { valueType:
|
|
1477
|
-
return zn.get(
|
|
1475
|
+
function f(g) {
|
|
1476
|
+
const { valueType: v } = g.value, p = g.compareType || "0", _ = Ln[Number(p)];
|
|
1477
|
+
return zn.get(v)[_];
|
|
1478
1478
|
}
|
|
1479
1479
|
function w(g) {
|
|
1480
|
-
const
|
|
1481
|
-
const h =
|
|
1480
|
+
const v = g.relation === 2 ? 0 : 1, p = g.items.map((E) => {
|
|
1481
|
+
const h = f(E);
|
|
1482
1482
|
return (Y) => h(Y, E.fieldCode, E.value.getValue());
|
|
1483
1483
|
}), _ = g.children && g.children.length ? g.children.map((E) => w(E)) : [];
|
|
1484
|
-
return { relation:
|
|
1484
|
+
return { relation: v, filterFunctions: p, children: _ };
|
|
1485
1485
|
}
|
|
1486
1486
|
function C() {
|
|
1487
1487
|
const g = i(n.value);
|
|
1488
1488
|
return w(g);
|
|
1489
1489
|
}
|
|
1490
|
-
function T(g,
|
|
1491
|
-
const p =
|
|
1492
|
-
return
|
|
1490
|
+
function T(g, v) {
|
|
1491
|
+
const p = v.filterFunctions.map((E) => E(g)), _ = v.children.map((E) => T(g, E));
|
|
1492
|
+
return v.relation === 1 ? p.every((E) => E) && _.every((E) => E) : p.includes(!0) || _.includes(!0);
|
|
1493
1493
|
}
|
|
1494
1494
|
function S(g) {
|
|
1495
|
-
const
|
|
1496
|
-
return T(g,
|
|
1495
|
+
const v = C();
|
|
1496
|
+
return T(g, v);
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1498
|
+
function y(g) {
|
|
1499
1499
|
t.emit("filterChanged", g);
|
|
1500
1500
|
}
|
|
1501
1501
|
return {
|
|
1502
1502
|
addColumnFilter: u,
|
|
1503
1503
|
apply: S,
|
|
1504
|
-
clearCondition:
|
|
1504
|
+
clearCondition: b,
|
|
1505
1505
|
conditions: n,
|
|
1506
|
-
getFilterEditorType:
|
|
1506
|
+
getFilterEditorType: d,
|
|
1507
1507
|
removeColumnFilter: s,
|
|
1508
1508
|
removeCondition: l,
|
|
1509
|
-
filterFromServer:
|
|
1510
|
-
createFilterConditions:
|
|
1509
|
+
filterFromServer: y,
|
|
1510
|
+
createFilterConditions: m
|
|
1511
1511
|
};
|
|
1512
1512
|
}
|
|
1513
1513
|
function Yn(e) {
|
|
@@ -1525,51 +1525,51 @@ function Yn(e) {
|
|
|
1525
1525
|
return { collapseField: t, hasChildrenField: n, parentIdField: o, shouldShowCheckBox: i, shouldShowIcon: a };
|
|
1526
1526
|
}
|
|
1527
1527
|
function Xn(e, t, n, o, i, a, r, c) {
|
|
1528
|
-
const
|
|
1529
|
-
function
|
|
1528
|
+
const m = O(o.value - 1 + i), d = O(0), { renderDataRow: u } = a, s = r ? r.renderGroupRow : u, l = c ? c.renderSummaryRow : u;
|
|
1529
|
+
function b(C) {
|
|
1530
1530
|
let T = u;
|
|
1531
1531
|
return C.__fv_data_grid_group_row__ && (T = s), C.__fv_data_grid_group_summary__ && (T = l), T;
|
|
1532
1532
|
}
|
|
1533
|
-
function
|
|
1534
|
-
const { dataView: g, visibleDataItems:
|
|
1533
|
+
function f(C, T, S, y) {
|
|
1534
|
+
const { dataView: g, visibleDataItems: v } = n, p = [], _ = e.virtualized ? v.value : g.value;
|
|
1535
1535
|
if (_.length > 0) {
|
|
1536
|
-
const E =
|
|
1536
|
+
const E = y ? Date.now().toString() : "";
|
|
1537
1537
|
let h = C, B = 0;
|
|
1538
1538
|
const Y = T - C + 1;
|
|
1539
1539
|
for (; p.length < Y && h < _.length; ) {
|
|
1540
|
-
const M = _[h], L = _[h - 1] || S, D = p[B - 1], x = L ? (L.__fv_data_position__ || 0) + (L.__fv_data_height__ || 0) : 0, $ =
|
|
1540
|
+
const M = _[h], L = _[h - 1] || S, D = p[B - 1], x = L ? (L.__fv_data_position__ || 0) + (L.__fv_data_height__ || 0) : 0, $ = b(M)(M, L, D, h, x, t.value);
|
|
1541
1541
|
$.refreshKey = E, $.visible && (p.push($), B++), h++;
|
|
1542
1542
|
}
|
|
1543
1543
|
}
|
|
1544
|
-
return
|
|
1544
|
+
return d.value = p.length > 0 ? p[0].raw.__fv_visible_index__ : 0, m.value = p.length > 0 ? p[p.length - 1].raw.__fv_visible_index__ : 0, p;
|
|
1545
1545
|
}
|
|
1546
1546
|
function w(C, T, S) {
|
|
1547
|
-
const
|
|
1548
|
-
n[C](
|
|
1547
|
+
const y = T.groupField || "", { groupValue: g, raw: v } = T;
|
|
1548
|
+
n[C](y, g, v.groupParents || []);
|
|
1549
1549
|
const { dataView: p } = n, _ = S[0].index, E = Math.min(_ + o.value + i + 1, p.value.length - 1);
|
|
1550
|
-
return
|
|
1550
|
+
return f(_, E);
|
|
1551
1551
|
}
|
|
1552
|
-
return { getVisualData:
|
|
1552
|
+
return { getVisualData: f, maxVisibleRowIndex: m, minVisibleRowIndex: d, toggleGroupRow: w };
|
|
1553
1553
|
}
|
|
1554
1554
|
function Jn(e) {
|
|
1555
1555
|
var a;
|
|
1556
1556
|
const { isUndefined: t } = lt(), n = ((a = e.rowOption) == null ? void 0 : a.height) || 28;
|
|
1557
1557
|
function o(r, c) {
|
|
1558
|
-
const
|
|
1559
|
-
if (
|
|
1560
|
-
let
|
|
1561
|
-
(t(
|
|
1562
|
-
e.virtualized && e.hierarchy &&
|
|
1563
|
-
const s = r.visible ?
|
|
1558
|
+
const m = r.pre;
|
|
1559
|
+
if (m) {
|
|
1560
|
+
let d = m.__fv_data_position__, u = m.__fv_data_height__;
|
|
1561
|
+
(t(d) || // when virtual loading, position of tree node should recalculate after collapse tree node.
|
|
1562
|
+
e.virtualized && e.hierarchy && m.__fv_visible_index__ * n !== d) && (d = m.__fv_visible_index__ * n), t(u) && (u = n);
|
|
1563
|
+
const s = r.visible ? d + u : m.__fv_data_position__;
|
|
1564
1564
|
r.top = s, c.__fv_data_position__ = s;
|
|
1565
1565
|
} else
|
|
1566
1566
|
r.top = 0, c.__fv_data_position__ = 0;
|
|
1567
1567
|
}
|
|
1568
|
-
function i(r, c,
|
|
1568
|
+
function i(r, c, m) {
|
|
1569
1569
|
if (r && !c.ref) {
|
|
1570
1570
|
c.ref = r;
|
|
1571
|
-
const
|
|
1572
|
-
c.cellHeight !== r.offsetHeight && (c.cellHeight = r.offsetHeight), c.cellHeight && c.cellHeight > (
|
|
1571
|
+
const d = c.parent;
|
|
1572
|
+
c.cellHeight !== r.offsetHeight && (c.cellHeight = r.offsetHeight), c.cellHeight && c.cellHeight > (d.height || 0) && (d.height = c.cellHeight, m.__fv_data_height__ = d.height), o(d, m);
|
|
1573
1573
|
}
|
|
1574
1574
|
!r && c.ref && (c.ref = r);
|
|
1575
1575
|
}
|
|
@@ -1582,16 +1582,16 @@ function Qn() {
|
|
|
1582
1582
|
return "";
|
|
1583
1583
|
const o = Object.prototype.hasOwnProperty.call(n, "valueField") && n.valueField || "value", i = Object.prototype.hasOwnProperty.call(n, "textField") && n.textField || "name";
|
|
1584
1584
|
if (t != null && t.includes(",")) {
|
|
1585
|
-
const
|
|
1586
|
-
if (!n.data.filter((l) =>
|
|
1585
|
+
const m = t.split(",");
|
|
1586
|
+
if (!n.data.filter((l) => m.includes(l[o])).length)
|
|
1587
1587
|
return "";
|
|
1588
|
-
const u = (r = n.data) == null ? void 0 : r.reduce((l,
|
|
1589
|
-
return
|
|
1590
|
-
var
|
|
1591
|
-
return (
|
|
1588
|
+
const u = (r = n.data) == null ? void 0 : r.reduce((l, b) => (l[b[o]] = b, l), {});
|
|
1589
|
+
return m.map((l) => {
|
|
1590
|
+
var b;
|
|
1591
|
+
return (b = u[l]) == null ? void 0 : b[i];
|
|
1592
1592
|
}).join(",") || t;
|
|
1593
1593
|
}
|
|
1594
|
-
const a = (c = n.data) == null ? void 0 : c.find((
|
|
1594
|
+
const a = (c = n.data) == null ? void 0 : c.find((m) => m[o] === t);
|
|
1595
1595
|
return (a == null ? void 0 : a[i]) || t || "";
|
|
1596
1596
|
}
|
|
1597
1597
|
return {
|
|
@@ -1615,8 +1615,8 @@ function Kn() {
|
|
|
1615
1615
|
let a = "yyyy-MM-dd";
|
|
1616
1616
|
if (typeof i == "string" ? a = i : typeof i == "object" && (a = i.format || "yyyy-MM-dd"), a = a.replace("YYYY", "yyyy").replace("-DD", "-dd"), typeof i == "object" && i.dateRange) {
|
|
1617
1617
|
const r = i.dateRangeDatesDelimiter || "~";
|
|
1618
|
-
let [c,
|
|
1619
|
-
return c = e(c, a),
|
|
1618
|
+
let [c, m] = o.split(r);
|
|
1619
|
+
return c = e(c, a), m = e(m, a), c + r + m;
|
|
1620
1620
|
}
|
|
1621
1621
|
return e(o, a);
|
|
1622
1622
|
}
|
|
@@ -1693,42 +1693,42 @@ function oo() {
|
|
|
1693
1693
|
function c(u) {
|
|
1694
1694
|
return typeof u == "boolean" ? u.toString() : u;
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function m(u, s, l) {
|
|
1697
1697
|
return s.customFormat ? (
|
|
1698
1698
|
// new Function(`return ${options.customFormat}`)() :
|
|
1699
1699
|
s.customFormat(u, l.raw)
|
|
1700
1700
|
) : c(u);
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1702
|
+
function d(u, s, l) {
|
|
1703
1703
|
const {
|
|
1704
|
-
column:
|
|
1705
|
-
} = u,
|
|
1706
|
-
return l.type === Ee.NONE ? c(
|
|
1704
|
+
column: b
|
|
1705
|
+
} = u, f = se(s.raw, b.field), w = l.options || l;
|
|
1706
|
+
return l.type === Ee.NONE ? c(f) : l.type === Ee.CUSTOM ? m(f, l, s) : l.type === Ee.ENUM ? t(f, w) : l.type === Ee.NUMBER ? n(f, w) : l.type === Ee.BOOLEAN ? e(f, w) : l.type === Ee.DATE ? o(f, w) : l.type === Ee.DATE_TIME ? i(f, l) : l.type === Ee.IMAGE ? a(f, w) : l.type === Ee.MULTI_LINGUAL ? r(f, w) : c(f);
|
|
1707
1707
|
}
|
|
1708
1708
|
return {
|
|
1709
|
-
renderFormatColumn:
|
|
1709
|
+
renderFormatColumn: d
|
|
1710
1710
|
};
|
|
1711
1711
|
}
|
|
1712
1712
|
function ro(e, t, n) {
|
|
1713
1713
|
var T;
|
|
1714
1714
|
const { isUndefined: o } = lt(), i = O(e.mergeCell);
|
|
1715
1715
|
(T = O(e.rowOption).value) != null && T.wrapContent;
|
|
1716
|
-
const { updateVisualInfomation: r } = n, { renderCommandColumn: c } = Dn(e), { renderFormatColumn:
|
|
1717
|
-
function
|
|
1716
|
+
const { updateVisualInfomation: r } = n, { renderCommandColumn: c } = Dn(e), { renderFormatColumn: m } = oo();
|
|
1717
|
+
function d(S, y, g, v, p, _ = 1) {
|
|
1718
1718
|
const E = {
|
|
1719
1719
|
colSpan: _,
|
|
1720
1720
|
rowSpan: 1,
|
|
1721
1721
|
index: g,
|
|
1722
1722
|
field: S,
|
|
1723
|
-
data: se(
|
|
1724
|
-
editingData: se(
|
|
1723
|
+
data: se(v, S),
|
|
1724
|
+
editingData: se(v, S),
|
|
1725
1725
|
parent: p,
|
|
1726
|
-
mode:
|
|
1726
|
+
mode: y,
|
|
1727
1727
|
align: "left",
|
|
1728
1728
|
valign: "start",
|
|
1729
1729
|
showEllipsis: !0,
|
|
1730
1730
|
getEditor: (h) => h.data,
|
|
1731
|
-
setRef: (h) => r(h, E,
|
|
1731
|
+
setRef: (h) => r(h, E, v),
|
|
1732
1732
|
update: () => {
|
|
1733
1733
|
},
|
|
1734
1734
|
accept: () => {
|
|
@@ -1740,48 +1740,48 @@ function ro(e, t, n) {
|
|
|
1740
1740
|
};
|
|
1741
1741
|
return E;
|
|
1742
1742
|
}
|
|
1743
|
-
function u(S,
|
|
1744
|
-
return S.getEditor = (
|
|
1745
|
-
|
|
1743
|
+
function u(S, y, g) {
|
|
1744
|
+
return S.getEditor = (v) => t.getEditor(v, y, v.parent), S.setRef = (v) => r(v, S, g), S.update = (v) => {
|
|
1745
|
+
v !== void 0 && (S.editingData = v);
|
|
1746
1746
|
}, S.accept = () => {
|
|
1747
|
-
We(S.editingData, g,
|
|
1747
|
+
We(S.editingData, g, y.field), S.data = se(g, y.field);
|
|
1748
1748
|
}, S.cancel = () => {
|
|
1749
1749
|
S.editingData = S.data;
|
|
1750
|
-
}, S.updateData = (
|
|
1751
|
-
We(se(
|
|
1750
|
+
}, S.updateData = (v) => {
|
|
1751
|
+
We(se(v, y.field), g, y.field), S.data = se(g, y.field), S.editingData = se(g, y.field);
|
|
1752
1752
|
}, S;
|
|
1753
1753
|
}
|
|
1754
|
-
function s(S,
|
|
1755
|
-
|
|
1754
|
+
function s(S, y) {
|
|
1755
|
+
y.dataType === "commands" ? S.formatter = (g, v) => y.formatter ? y.formatter(S, v) : c(S, v) : y.formatter && (S.formatter = (g, v) => typeof y.formatter == "function" ? y.formatter(g, v) : m(S, v, y.formatter));
|
|
1756
1756
|
}
|
|
1757
|
-
function l(S,
|
|
1758
|
-
const
|
|
1759
|
-
if (
|
|
1760
|
-
const _ =
|
|
1757
|
+
function l(S, y, g) {
|
|
1758
|
+
const v = y && y.data[g];
|
|
1759
|
+
if (v && v.data === S.data) {
|
|
1760
|
+
const _ = v && v.spannedBy || v;
|
|
1761
1761
|
_.rowSpan++, _.spanned = _.spanned || [], _.spanned.push(S), S.colSpan = 0, S.rowSpan = 0, S.spannedBy = _;
|
|
1762
1762
|
}
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1765
|
-
i.value && l(S,
|
|
1764
|
+
function b(S, y, g) {
|
|
1765
|
+
i.value && l(S, y, g.field);
|
|
1766
1766
|
}
|
|
1767
|
-
function
|
|
1768
|
-
|
|
1767
|
+
function f(S, y) {
|
|
1768
|
+
y.showEllipsis !== void 0 && (S.showEllipsis = y.showEllipsis), S.showTips = o(y.showTips) ? !0 : y.showTips, S.column = y, S.align = y.align || "left", S.valign = y.valign || "middle", S.mode = e.editable ? _e.editable : _e.readonly;
|
|
1769
1769
|
}
|
|
1770
|
-
function w(S,
|
|
1771
|
-
|
|
1770
|
+
function w(S, y, g, v) {
|
|
1771
|
+
f(S, y), u(S, y, v), s(S, y), b(S, g, y);
|
|
1772
1772
|
}
|
|
1773
|
-
function C(S,
|
|
1774
|
-
const _ = e.editable ? _e.editable : _e.readonly, E =
|
|
1773
|
+
function C(S, y, g, v, p) {
|
|
1774
|
+
const _ = e.editable ? _e.editable : _e.readonly, E = d(S.field, _, y, g, v);
|
|
1775
1775
|
return w(E, S, p, g), E;
|
|
1776
1776
|
}
|
|
1777
|
-
return { createCellByColumn: C, createCellByField:
|
|
1777
|
+
return { createCellByColumn: C, createCellByField: d, updateCellByColumn: w };
|
|
1778
1778
|
}
|
|
1779
1779
|
function io(e, t, n, o, i, a, r) {
|
|
1780
|
-
var
|
|
1781
|
-
const c = O(e.rowOption),
|
|
1782
|
-
We(se(
|
|
1780
|
+
var y, g;
|
|
1781
|
+
const c = O(e.rowOption), m = ((y = c.value) == null ? void 0 : y.height) || 28, d = ((g = c.value) == null ? void 0 : g.wrapContent) || !1, { idField: u } = i, { collapseField: s } = o, { updateRowPosition: l } = a, { createCellByColumn: b } = r, f = (v, p, _, E) => {
|
|
1782
|
+
We(se(v, E), p, E), _.data[E].data = se(p, E), _.data[E].editingData = se(p, E);
|
|
1783
1783
|
};
|
|
1784
|
-
function w(
|
|
1784
|
+
function w(v, p, _, E, h, B) {
|
|
1785
1785
|
var J, K, re;
|
|
1786
1786
|
const {
|
|
1787
1787
|
__fv_data_grid_group_field__: Y,
|
|
@@ -1798,7 +1798,7 @@ function io(e, t, n, o, i, a, r) {
|
|
|
1798
1798
|
parentIndex: x,
|
|
1799
1799
|
pre: E,
|
|
1800
1800
|
top: B,
|
|
1801
|
-
type:
|
|
1801
|
+
type: v,
|
|
1802
1802
|
raw: _,
|
|
1803
1803
|
checked: A,
|
|
1804
1804
|
disabled: ne,
|
|
@@ -1809,30 +1809,30 @@ function io(e, t, n, o, i, a, r) {
|
|
|
1809
1809
|
visible: $ && I || $ && !e.hierarchy,
|
|
1810
1810
|
status: Fe.initial,
|
|
1811
1811
|
updateCell: (ee, P) => {
|
|
1812
|
-
|
|
1812
|
+
f(ee, _, z, P), t.updateSummary();
|
|
1813
1813
|
},
|
|
1814
1814
|
updateCells: (ee, P) => {
|
|
1815
1815
|
P.forEach((R) => {
|
|
1816
|
-
|
|
1816
|
+
f(ee, _, z, R);
|
|
1817
1817
|
});
|
|
1818
1818
|
}
|
|
1819
1819
|
};
|
|
1820
|
-
return E || (_.__fv_data_position__ = 0),
|
|
1820
|
+
return E || (_.__fv_data_position__ = 0), d || (z.height = m, _.__fv_data_height__ = z.height, l(z, _)), (re = c.value) != null && re.customRowStatus && (c.value.customRowStatus(z), _.__fv_disabled__ = z.disabled), z;
|
|
1821
1821
|
}
|
|
1822
|
-
function C(
|
|
1822
|
+
function C(v, p, _, E, h, B) {
|
|
1823
1823
|
const Y = w(Ie.data, h, p, _, E, B);
|
|
1824
|
-
return
|
|
1825
|
-
Y.data[M.field] =
|
|
1824
|
+
return v.forEach((M, L) => {
|
|
1825
|
+
Y.data[M.field] = b(M, L, p, Y, E);
|
|
1826
1826
|
}), Y;
|
|
1827
1827
|
}
|
|
1828
|
-
function T(
|
|
1829
|
-
return Object.assign(
|
|
1828
|
+
function T(v, p, _, E, h) {
|
|
1829
|
+
return Object.assign(v, { index: p, dataIndex: _, top: E, pre: h });
|
|
1830
1830
|
}
|
|
1831
|
-
function S(
|
|
1832
|
-
const Y =
|
|
1831
|
+
function S(v, p, _, E, h, B) {
|
|
1832
|
+
const Y = v.__fv_data_index__, M = v[u.value], L = n.getEditingSnapshot(M);
|
|
1833
1833
|
return L === null ? C(
|
|
1834
1834
|
B,
|
|
1835
|
-
|
|
1835
|
+
v,
|
|
1836
1836
|
p,
|
|
1837
1837
|
_,
|
|
1838
1838
|
E,
|
|
@@ -1842,38 +1842,38 @@ function io(e, t, n, o, i, a, r) {
|
|
|
1842
1842
|
return { createEmptyRow: w, createNewRowFromDataItem: C, renderDataRow: S };
|
|
1843
1843
|
}
|
|
1844
1844
|
function ao(e, t, n, o) {
|
|
1845
|
-
const i = O(e.summary), { idField: a } = t, { createCellByField: r } = n, { createEmptyRow: c } = o,
|
|
1845
|
+
const i = O(e.summary), { idField: a } = t, { createCellByField: r } = n, { createEmptyRow: c } = o, m = W(() => {
|
|
1846
1846
|
const l = i.value;
|
|
1847
1847
|
return (l == null ? void 0 : l.groupFields) || [];
|
|
1848
|
-
}),
|
|
1848
|
+
}), d = W(() => {
|
|
1849
1849
|
const l = i.value;
|
|
1850
1850
|
return l && l.enable && l.groupFields && l.groupFields.length > 0;
|
|
1851
1851
|
});
|
|
1852
|
-
function u(l,
|
|
1853
|
-
if (
|
|
1854
|
-
const C = l.data[
|
|
1852
|
+
function u(l, b, f, w) {
|
|
1853
|
+
if (d.value) {
|
|
1854
|
+
const C = l.data[b];
|
|
1855
1855
|
let T = C.colSpan;
|
|
1856
|
-
const S =
|
|
1857
|
-
w.reduce((
|
|
1856
|
+
const S = m.value.reduce((y, g) => (y.set(g, !0), y), /* @__PURE__ */ new Map());
|
|
1857
|
+
w.reduce((y, g, v) => {
|
|
1858
1858
|
if (S.has(g.field)) {
|
|
1859
|
-
const p = r(g.field, _e.readonly,
|
|
1860
|
-
l.data[g.field] = p, T - 1 >
|
|
1859
|
+
const p = r(g.field, _e.readonly, v, f, l);
|
|
1860
|
+
l.data[g.field] = p, T - 1 > v && (T = v);
|
|
1861
1861
|
}
|
|
1862
|
-
return
|
|
1862
|
+
return y;
|
|
1863
1863
|
}, l), C.colSpan = T;
|
|
1864
1864
|
}
|
|
1865
1865
|
}
|
|
1866
|
-
function s(l,
|
|
1867
|
-
const
|
|
1868
|
-
return g.data[a.value] = r(a.value, _e.readonly, -1, l, g, 0), g.data[
|
|
1866
|
+
function s(l, b, f, w, C, T, S) {
|
|
1867
|
+
const y = l.__fv_data_grid_group_field__, g = c(Ie.group, w, l, b, f, C);
|
|
1868
|
+
return g.data[a.value] = r(a.value, _e.readonly, -1, l, g, 0), g.data[y] = r(y, _e.readonly, 1, l, g, T.length), u(g, y, l, T), g;
|
|
1869
1869
|
}
|
|
1870
1870
|
return { renderGroupRow: s };
|
|
1871
1871
|
}
|
|
1872
1872
|
function so(e, t, n, o) {
|
|
1873
1873
|
const { idField: i } = t, { createCellByField: a } = n, { createEmptyRow: r } = o;
|
|
1874
|
-
function c(
|
|
1875
|
-
const w =
|
|
1876
|
-
return C.data[i.value] = a(i.value, _e.readonly, -1,
|
|
1874
|
+
function c(m, d, u, s, l, b, f) {
|
|
1875
|
+
const w = m.__fv_data_grid_group_field__, C = r(Ie.summary, s, m, d, u, l);
|
|
1876
|
+
return C.data[i.value] = a(i.value, _e.readonly, -1, m, C), C.data[w] = a(w, _e.readonly, 1, m, C, b.length), C;
|
|
1877
1877
|
}
|
|
1878
1878
|
return { renderSummaryRow: c };
|
|
1879
1879
|
}
|
|
@@ -1881,42 +1881,42 @@ function lo(e, t, n, o, i) {
|
|
|
1881
1881
|
var ne;
|
|
1882
1882
|
const {
|
|
1883
1883
|
idField: a
|
|
1884
|
-
} = n, r = O(e.editable), c = O(e.editOption),
|
|
1885
|
-
onClickRow:
|
|
1884
|
+
} = n, r = O(e.editable), c = O(e.editOption), m = O(((ne = e.rowOption) == null ? void 0 : ne.wrapContent) || !1), {
|
|
1885
|
+
onClickRow: d,
|
|
1886
1886
|
onClickRowExcludeDblclick: u
|
|
1887
1887
|
} = o, s = /* @__PURE__ */ new Map([["boolean", "check-box"], ["datetime", "date-picker"], ["enum", "combo-list"], ["number", "number-spinner"], ["string", "input-group"], ["text", "text"], ["commands", "commands-editor"]]);
|
|
1888
|
-
let l,
|
|
1888
|
+
let l, b, f, w, C;
|
|
1889
1889
|
function T(I) {
|
|
1890
|
-
return
|
|
1890
|
+
return b && b.raw[a.value] === I ? b : null;
|
|
1891
1891
|
}
|
|
1892
1892
|
const S = ct({});
|
|
1893
|
-
function
|
|
1894
|
-
I.mode = _e.editing, l = I,
|
|
1893
|
+
function y(I, z, J = {}) {
|
|
1894
|
+
I.mode = _e.editing, l = I, b = z, f = se(z == null ? void 0 : z.raw, I.field), w = J;
|
|
1895
1895
|
for (const K in S)
|
|
1896
1896
|
delete S[K];
|
|
1897
1897
|
}
|
|
1898
1898
|
function g(I) {
|
|
1899
1899
|
I.accept(), I.mode = _e.editable, l = null;
|
|
1900
1900
|
const z = {};
|
|
1901
|
-
|
|
1902
|
-
z[J] =
|
|
1903
|
-
}),
|
|
1901
|
+
b && (Object.keys(b).forEach((J) => {
|
|
1902
|
+
z[J] = b == null ? void 0 : b[J];
|
|
1903
|
+
}), b = null), t.emit("endEditCell", {
|
|
1904
1904
|
cell: I,
|
|
1905
1905
|
row: z,
|
|
1906
1906
|
newValue: se(z == null ? void 0 : z.raw, I.field),
|
|
1907
|
-
oldValue:
|
|
1907
|
+
oldValue: f,
|
|
1908
1908
|
column: w,
|
|
1909
1909
|
editor: S
|
|
1910
1910
|
});
|
|
1911
1911
|
}
|
|
1912
|
-
function
|
|
1912
|
+
function v(I) {
|
|
1913
1913
|
const z = Promise.resolve(!0);
|
|
1914
1914
|
return I ? z.then(() => tt(e.beforeEndEditCell) ? !0 : typeof e.beforeEndEditCell == "function" ? e.beforeEndEditCell({
|
|
1915
1915
|
cell: I,
|
|
1916
|
-
row:
|
|
1916
|
+
row: b,
|
|
1917
1917
|
newValue: I.editingData,
|
|
1918
|
-
oldValue:
|
|
1919
|
-
}) : () => !0).then((J) => (J && (g(I),
|
|
1918
|
+
oldValue: f
|
|
1919
|
+
}) : () => !0).then((J) => (J && (g(I), b && (b = null)), J)) : z;
|
|
1920
1920
|
}
|
|
1921
1921
|
function p(I) {
|
|
1922
1922
|
if (C && C !== I.target) {
|
|
@@ -1932,7 +1932,7 @@ function lo(e, t, n, o, i) {
|
|
|
1932
1932
|
if (l && l.ref && l.ref === K)
|
|
1933
1933
|
return;
|
|
1934
1934
|
}
|
|
1935
|
-
|
|
1935
|
+
v(l).then((K) => {
|
|
1936
1936
|
K && document.body.removeEventListener("click", p, !0);
|
|
1937
1937
|
});
|
|
1938
1938
|
}
|
|
@@ -1948,16 +1948,16 @@ function lo(e, t, n, o, i) {
|
|
|
1948
1948
|
column: J
|
|
1949
1949
|
}) : !K;
|
|
1950
1950
|
}).then((K) => {
|
|
1951
|
-
K && (
|
|
1951
|
+
K && (y(z, I, J), document.body.removeEventListener("click", p, !0), document.body.addEventListener("click", p, !0));
|
|
1952
1952
|
});
|
|
1953
1953
|
}
|
|
1954
1954
|
function E(I, z, J, K = {}) {
|
|
1955
|
-
I.stopPropagation(), u(I, J), r.value && c.value.editMode === "cell" && z.mode === _e.editable &&
|
|
1955
|
+
I.stopPropagation(), u(I, J), r.value && c.value.editMode === "cell" && z.mode === _e.editable && v(l).then(() => {
|
|
1956
1956
|
l || _(J, z, K);
|
|
1957
1957
|
});
|
|
1958
1958
|
}
|
|
1959
1959
|
function h(I, z, J, K = {}) {
|
|
1960
|
-
I.stopPropagation(),
|
|
1960
|
+
I.stopPropagation(), d(I, J), r.value && c.value.editMode === "cell" && z.mode === _e.editable && v(l).then(() => {
|
|
1961
1961
|
l || _(J, z, K);
|
|
1962
1962
|
});
|
|
1963
1963
|
}
|
|
@@ -1970,15 +1970,15 @@ function lo(e, t, n, o, i) {
|
|
|
1970
1970
|
function M(I) {
|
|
1971
1971
|
Object.values(I.data).filter((z) => z.mode === _e.editable && z.field !== "__commands__").forEach((z) => {
|
|
1972
1972
|
z.mode = _e.editing;
|
|
1973
|
-
}), I.status = Fe.editing,
|
|
1973
|
+
}), I.status = Fe.editing, b = I;
|
|
1974
1974
|
}
|
|
1975
1975
|
function L(I, z) {
|
|
1976
1976
|
Object.values(I.data).filter((J) => J.mode === _e.editing).forEach((J) => {
|
|
1977
1977
|
z ? J.accept() : J.cancel(), J.mode = _e.editable;
|
|
1978
|
-
}), I.status = Fe.initial,
|
|
1978
|
+
}), I.status = Fe.initial, b === I && (b = null);
|
|
1979
1979
|
}
|
|
1980
1980
|
function D(I) {
|
|
1981
|
-
r.value && c.value.editMode === "row" &&
|
|
1981
|
+
r.value && c.value.editMode === "row" && b !== I && (b && L(b, !1), M(I));
|
|
1982
1982
|
}
|
|
1983
1983
|
function x(I) {
|
|
1984
1984
|
L(I, !0), I.status = Fe.initial;
|
|
@@ -1990,7 +1990,7 @@ function lo(e, t, n, o, i) {
|
|
|
1990
1990
|
const K = z.dataType, re = z.editor || {
|
|
1991
1991
|
type: s.get(K) || "input-group"
|
|
1992
1992
|
};
|
|
1993
|
-
return !
|
|
1993
|
+
return !m.value && re.type === "text" && (re.type = "input-group"), re ? (re.type === "input-group" && (re.textAlign = z.align !== "center" && z.align !== "right" ? "left" : z.align, re.updateOn = "change"), re.type === "number-spinner" && (re.updateOn = "change"), re.type === "textarea" && (re.lineBreak = "alt enter"), re.context = {
|
|
1994
1994
|
rowData: J.raw,
|
|
1995
1995
|
column: z,
|
|
1996
1996
|
cell: I,
|
|
@@ -2007,7 +2007,7 @@ function lo(e, t, n, o, i) {
|
|
|
2007
2007
|
}, null)) : I.data;
|
|
2008
2008
|
}
|
|
2009
2009
|
function A() {
|
|
2010
|
-
|
|
2010
|
+
v(l);
|
|
2011
2011
|
}
|
|
2012
2012
|
Ne(() => e.editable, () => {
|
|
2013
2013
|
r.value = e.editable;
|
|
@@ -2018,7 +2018,7 @@ function lo(e, t, n, o, i) {
|
|
|
2018
2018
|
c.value.editMode = I;
|
|
2019
2019
|
});
|
|
2020
2020
|
function Q() {
|
|
2021
|
-
l = null,
|
|
2021
|
+
l = null, b = null, w = null, C = null, document.body.removeEventListener("click", p, !0);
|
|
2022
2022
|
}
|
|
2023
2023
|
return {
|
|
2024
2024
|
clear: Q,
|
|
@@ -2050,19 +2050,19 @@ function uo(e, t, n, o) {
|
|
|
2050
2050
|
currentSelectedDataId: a,
|
|
2051
2051
|
multiSelectOnClickRow: r,
|
|
2052
2052
|
multiSelectOnClickRowWithShift: c,
|
|
2053
|
-
selectItem:
|
|
2054
|
-
selectedValues:
|
|
2053
|
+
selectItem: m,
|
|
2054
|
+
selectedValues: d,
|
|
2055
2055
|
toggleSelectItem: u,
|
|
2056
2056
|
updateSelectAllStatus: s,
|
|
2057
2057
|
enableSelectRow: l,
|
|
2058
|
-
multiSelectMode:
|
|
2059
|
-
isSingleSelect:
|
|
2058
|
+
multiSelectMode: b,
|
|
2059
|
+
isSingleSelect: f,
|
|
2060
2060
|
getSelectedItems: w
|
|
2061
2061
|
} = n, C = O(0), T = O(-1);
|
|
2062
2062
|
function S(k) {
|
|
2063
2063
|
a.value = k;
|
|
2064
2064
|
}
|
|
2065
|
-
function
|
|
2065
|
+
function y(k) {
|
|
2066
2066
|
return k.raw[i.value] === a.value;
|
|
2067
2067
|
}
|
|
2068
2068
|
function g(k, $) {
|
|
@@ -2072,7 +2072,7 @@ function uo(e, t, n, o) {
|
|
|
2072
2072
|
"fv-grid-group-row": k.type === Ie.group,
|
|
2073
2073
|
"fv-grid-summary-row": k.type === Ie.summary,
|
|
2074
2074
|
"fv-grid-row-hover": A === T.value,
|
|
2075
|
-
"fv-grid-row-selected":
|
|
2075
|
+
"fv-grid-row-selected": y(k),
|
|
2076
2076
|
"fv-grid-row-odd": A % 2 > 0,
|
|
2077
2077
|
"fv-grid-row-even": A % 2 === 0,
|
|
2078
2078
|
"fv-grid-disabled": k.disabled
|
|
@@ -2083,7 +2083,7 @@ function uo(e, t, n, o) {
|
|
|
2083
2083
|
}
|
|
2084
2084
|
return Q;
|
|
2085
2085
|
}
|
|
2086
|
-
function
|
|
2086
|
+
function v(k, $) {
|
|
2087
2087
|
var Q;
|
|
2088
2088
|
const A = {
|
|
2089
2089
|
"fv-grid-cell": !0
|
|
@@ -2111,8 +2111,8 @@ function uo(e, t, n, o) {
|
|
|
2111
2111
|
}
|
|
2112
2112
|
function E(k, $) {
|
|
2113
2113
|
var ne, I;
|
|
2114
|
-
if (c.value && !($ != null && $.shiftKey) ||
|
|
2115
|
-
(ne = e.selection) != null && ne.keepSelectingOnClick ?
|
|
2114
|
+
if (c.value && !($ != null && $.shiftKey) || f.value) {
|
|
2115
|
+
(ne = e.selection) != null && ne.keepSelectingOnClick ? m(k) : u(k, (I = e.selection) == null ? void 0 : I.keepSelectingOnClick), s();
|
|
2116
2116
|
return;
|
|
2117
2117
|
}
|
|
2118
2118
|
if (c.value && ($ == null ? void 0 : $.shiftKey) || r.value) {
|
|
@@ -2143,7 +2143,7 @@ function uo(e, t, n, o) {
|
|
|
2143
2143
|
const A = $ ?? k.dataIndex, Q = {
|
|
2144
2144
|
"fv-grid-sidebar-row": !0,
|
|
2145
2145
|
"fv-grid-sidebar-row-hover": A === T.value,
|
|
2146
|
-
"fv-grid-sidebar-row-selected":
|
|
2146
|
+
"fv-grid-sidebar-row-selected": y(k),
|
|
2147
2147
|
"fv-grid-sidebar-row-odd": A % 2 > 0,
|
|
2148
2148
|
"fv-grid-sidebar-row-even": A % 2 === 0,
|
|
2149
2149
|
"d-flex": !0,
|
|
@@ -2160,7 +2160,7 @@ function uo(e, t, n, o) {
|
|
|
2160
2160
|
clickRowItem: M,
|
|
2161
2161
|
selectRow: E,
|
|
2162
2162
|
changeRow: _,
|
|
2163
|
-
gridCellClass:
|
|
2163
|
+
gridCellClass: v,
|
|
2164
2164
|
gridHierarchyCellClass: p,
|
|
2165
2165
|
gridRowClass: g,
|
|
2166
2166
|
onClickRow: Y,
|
|
@@ -2171,48 +2171,48 @@ function uo(e, t, n, o) {
|
|
|
2171
2171
|
};
|
|
2172
2172
|
}
|
|
2173
2173
|
function fo(e, t, n, o, i) {
|
|
2174
|
-
const { idField: a } = n, { dataView: r, getSelectionItems: c } = t,
|
|
2174
|
+
const { idField: a } = n, { dataView: r, getSelectionItems: c } = t, m = O(""), d = W(() => e.selection.enableSelectRow), u = O(e.selection.multiSelect ?? !1), s = O(e.selection.multiSelectMode || "DependOnCheck"), l = O(e.selection.showCheckbox), b = O(e.selection.showSelectAll), f = O(e.selectionValues || []), w = W(() => e.selection.showSelection), C = W(() => {
|
|
2175
2175
|
var N;
|
|
2176
2176
|
return ((N = e.selection) == null ? void 0 : N.keepSelectingOnPaging) === void 0 ? !0 : e.selection.keepSelectingOnPaging;
|
|
2177
|
-
}), T = O(!!
|
|
2177
|
+
}), T = O(!!f.value.length && o.value.length === f.value.length), S = O(!!f.value.length && o.value.length !== f.value.length);
|
|
2178
2178
|
Ne(() => e.selection.showSelectAll, (N, G) => {
|
|
2179
|
-
N !== G && (
|
|
2179
|
+
N !== G && (b.value = N);
|
|
2180
2180
|
});
|
|
2181
|
-
function
|
|
2181
|
+
function y() {
|
|
2182
2182
|
if (!C.value) {
|
|
2183
2183
|
const N = r.value.map((G) => G[a.value]);
|
|
2184
|
-
|
|
2184
|
+
f.value = f.value.filter((G) => N.includes(G));
|
|
2185
2185
|
}
|
|
2186
2186
|
}
|
|
2187
2187
|
function g() {
|
|
2188
|
-
const N = r.value.every((q) =>
|
|
2188
|
+
const N = r.value.every((q) => f.value.includes(q[a.value])), G = r.value.every((q) => !f.value.includes(q[a.value]));
|
|
2189
2189
|
N && (T.value = !0, S.value = !1), G && (T.value = !1, S.value = !1), !N && !G && (T.value = !1, S.value = !0);
|
|
2190
2190
|
}
|
|
2191
|
-
function
|
|
2192
|
-
return c(
|
|
2191
|
+
function v() {
|
|
2192
|
+
return c(f.value);
|
|
2193
2193
|
}
|
|
2194
2194
|
function p() {
|
|
2195
2195
|
const N = o.value.reduce((q, ge) => (q.set(ge.raw[a.value], ge), q), /* @__PURE__ */ new Map());
|
|
2196
|
-
return
|
|
2196
|
+
return f.value.map((q) => N.get(q)).filter((q) => !!q);
|
|
2197
2197
|
}
|
|
2198
2198
|
function _(N) {
|
|
2199
2199
|
var q;
|
|
2200
2200
|
const G = N.raw.__fv_children_index__;
|
|
2201
2201
|
if (G && G.length) {
|
|
2202
2202
|
const ge = G.map((he) => r.value[he]);
|
|
2203
|
-
(q =
|
|
2203
|
+
(q = f.value) != null && q.length && ge.some((Pe) => !f.value.includes(Pe[a.value])) && (N.indeterminate = !0, N.raw.__fv_indeterminate__ = !0);
|
|
2204
2204
|
}
|
|
2205
2205
|
}
|
|
2206
|
-
const E = W(() =>
|
|
2207
|
-
() =>
|
|
2206
|
+
const E = W(() => d.value && u.value), h = W(
|
|
2207
|
+
() => d.value && !u.value && !l.value
|
|
2208
2208
|
), B = W(() => !!e.hierarchy), Y = W(() => {
|
|
2209
2209
|
const N = l.value && s.value === "DependOnCheck";
|
|
2210
2210
|
return E.value && N;
|
|
2211
2211
|
}), M = W(() => E.value && !l.value), L = W(() => E.value && l.value && s.value === "OnCheckAndClick");
|
|
2212
2212
|
W(() => L.value);
|
|
2213
2213
|
function D() {
|
|
2214
|
-
const N = c(
|
|
2215
|
-
i.emit("selectionUpdate", N,
|
|
2214
|
+
const N = c(f.value);
|
|
2215
|
+
i.emit("selectionUpdate", N, f.value);
|
|
2216
2216
|
}
|
|
2217
2217
|
function x(N) {
|
|
2218
2218
|
i.emit("unSelectItem", N);
|
|
@@ -2234,7 +2234,7 @@ function fo(e, t, n, o, i) {
|
|
|
2234
2234
|
Ne(() => o.value, () => {
|
|
2235
2235
|
$();
|
|
2236
2236
|
}), Ne(() => e.selectionValues, (N) => {
|
|
2237
|
-
|
|
2237
|
+
f.value = N, $();
|
|
2238
2238
|
}, { immediate: !0 }), Ne(() => e.selection, (N) => {
|
|
2239
2239
|
u.value = !!N.multiSelect, s.value = N.multiSelectMode || "DependOnCheck", l.value = !!N.showCheckbox;
|
|
2240
2240
|
});
|
|
@@ -2243,47 +2243,47 @@ function fo(e, t, n, o, i) {
|
|
|
2243
2243
|
return N.raw[a.value];
|
|
2244
2244
|
}
|
|
2245
2245
|
function ne(N) {
|
|
2246
|
-
return
|
|
2246
|
+
return f.value.findIndex((q) => q === Q(N));
|
|
2247
2247
|
}
|
|
2248
2248
|
function I() {
|
|
2249
2249
|
p().forEach((q) => {
|
|
2250
2250
|
q.checked = !1;
|
|
2251
|
-
}), c(
|
|
2251
|
+
}), c(f.value).forEach((q) => {
|
|
2252
2252
|
q.__fv_checked__ = !1;
|
|
2253
|
-
}),
|
|
2253
|
+
}), f.value = [], m.value = "", g();
|
|
2254
2254
|
}
|
|
2255
2255
|
function z(N) {
|
|
2256
2256
|
const G = N;
|
|
2257
2257
|
G.__fv_checked__ = !0, G.__fv_indeterminate__ = !1;
|
|
2258
|
-
const q = new Set(
|
|
2259
|
-
q.add(G[a.value]),
|
|
2258
|
+
const q = new Set(f.value);
|
|
2259
|
+
q.add(G[a.value]), f.value = Array.from(q.values()), y();
|
|
2260
2260
|
}
|
|
2261
2261
|
function J(N) {
|
|
2262
2262
|
const G = N;
|
|
2263
|
-
G.__fv_checked__ = !1, G.__fv_indeterminate__ = !1,
|
|
2263
|
+
G.__fv_checked__ = !1, G.__fv_indeterminate__ = !1, f.value = f.value.filter((q) => q !== G[a.value]), y();
|
|
2264
2264
|
}
|
|
2265
2265
|
function K(N) {
|
|
2266
2266
|
const G = N.raw;
|
|
2267
2267
|
G.__fv_checked__ = !0, G.__fv_indeterminate__ = !1;
|
|
2268
|
-
const q = new Set(
|
|
2269
|
-
q.add(G[a.value]),
|
|
2268
|
+
const q = new Set(f.value);
|
|
2269
|
+
q.add(G[a.value]), f.value = Array.from(q.values()), y(), N.checked = !0, N.indeterminate = !1, D(), k(N);
|
|
2270
2270
|
}
|
|
2271
2271
|
function re(N) {
|
|
2272
2272
|
const G = N.raw;
|
|
2273
|
-
G.__fv_checked__ = !1, G.__fv_indeterminate__ = !1,
|
|
2273
|
+
G.__fv_checked__ = !1, G.__fv_indeterminate__ = !1, f.value = f.value.filter((q) => q !== G[a.value]), y(), N.checked = !1, N.indeterminate = !1, D(), x(N);
|
|
2274
2274
|
}
|
|
2275
2275
|
function ee(N) {
|
|
2276
|
-
K(N),
|
|
2276
|
+
K(N), m.value = N.raw[a.value];
|
|
2277
2277
|
}
|
|
2278
2278
|
function P(N) {
|
|
2279
|
-
re(N),
|
|
2279
|
+
re(N), m.value = "";
|
|
2280
2280
|
}
|
|
2281
2281
|
function R(N) {
|
|
2282
|
-
N.__fv_checked__ = !1, N.__fv_indeterminate__ = !0,
|
|
2282
|
+
N.__fv_checked__ = !1, N.__fv_indeterminate__ = !0, f.value = f.value.filter((G) => G !== N[a.value]), y();
|
|
2283
2283
|
}
|
|
2284
2284
|
function j(N) {
|
|
2285
2285
|
const G = N.raw;
|
|
2286
|
-
G.__fv_checked__ = !1, G.__fv_indeterminate__ = !0,
|
|
2286
|
+
G.__fv_checked__ = !1, G.__fv_indeterminate__ = !0, f.value = f.value.filter((q) => q !== G[a.value]), y(), N.checked = !1, N.indeterminate = !0;
|
|
2287
2287
|
}
|
|
2288
2288
|
function U(N) {
|
|
2289
2289
|
A.value && I(), N.checked ? re(N) : K(N);
|
|
@@ -2293,7 +2293,7 @@ function fo(e, t, n, o, i) {
|
|
|
2293
2293
|
A.value && I(), G ? N.checked ? P(N) : ee(N) : q ? P(N) : ee(N);
|
|
2294
2294
|
}
|
|
2295
2295
|
function ae(N) {
|
|
2296
|
-
N.raw[a.value] !==
|
|
2296
|
+
N.raw[a.value] !== m.value && (I(), ee(N));
|
|
2297
2297
|
}
|
|
2298
2298
|
function ie(N) {
|
|
2299
2299
|
const G = o.value.find((q) => q.raw[a.value] === N);
|
|
@@ -2309,7 +2309,7 @@ function fo(e, t, n, o, i) {
|
|
|
2309
2309
|
const Pe = he[a.value];
|
|
2310
2310
|
return !q.includes(Pe) && N.includes(Pe);
|
|
2311
2311
|
});
|
|
2312
|
-
(G.length || ge.length) && h.value && (
|
|
2312
|
+
(G.length || ge.length) && h.value && (m.value = N[0]), G.forEach((he) => {
|
|
2313
2313
|
ee(he);
|
|
2314
2314
|
}), ge.forEach((he) => {
|
|
2315
2315
|
z(he);
|
|
@@ -2317,7 +2317,7 @@ function fo(e, t, n, o, i) {
|
|
|
2317
2317
|
}
|
|
2318
2318
|
function ue(N) {
|
|
2319
2319
|
for (const G of N) {
|
|
2320
|
-
if (!
|
|
2320
|
+
if (!f.value.includes(G))
|
|
2321
2321
|
continue;
|
|
2322
2322
|
const q = o.value.find((ge) => ge.raw[a.value] === G);
|
|
2323
2323
|
if (q)
|
|
@@ -2327,34 +2327,34 @@ function fo(e, t, n, o, i) {
|
|
|
2327
2327
|
ge && J(ge);
|
|
2328
2328
|
}
|
|
2329
2329
|
}
|
|
2330
|
-
|
|
2330
|
+
f.value = f.value.filter(
|
|
2331
2331
|
(G) => !N.includes(G)
|
|
2332
|
-
),
|
|
2332
|
+
), y();
|
|
2333
2333
|
}
|
|
2334
2334
|
function be() {
|
|
2335
2335
|
o.value.forEach((N) => {
|
|
2336
2336
|
const G = N.raw;
|
|
2337
2337
|
G.__fv_checked__ = !0, G.__fv_indeterminate__ = !1;
|
|
2338
|
-
const q = new Set(
|
|
2339
|
-
q.add(G[a.value]),
|
|
2338
|
+
const q = new Set(f.value);
|
|
2339
|
+
q.add(G[a.value]), f.value = Array.from(q.values()), y(), N.checked = !0, N.indeterminate = !1;
|
|
2340
2340
|
}), D();
|
|
2341
2341
|
}
|
|
2342
2342
|
function fe() {
|
|
2343
2343
|
o.value.forEach((N) => {
|
|
2344
2344
|
const G = N.raw;
|
|
2345
|
-
G.__fv_checked__ = !1, G.__fv_indeterminate__ = !1,
|
|
2345
|
+
G.__fv_checked__ = !1, G.__fv_indeterminate__ = !1, f.value = f.value.filter((q) => q !== G[a.value]), y(), N.checked = !1, N.indeterminate = !1;
|
|
2346
2346
|
}), D();
|
|
2347
2347
|
}
|
|
2348
2348
|
function Be() {
|
|
2349
|
-
return o.value.find((N) => N.raw[a.value] ===
|
|
2349
|
+
return o.value.find((N) => N.raw[a.value] === m.value);
|
|
2350
2350
|
}
|
|
2351
2351
|
return {
|
|
2352
2352
|
clearSelection: I,
|
|
2353
|
-
currentSelectedDataId:
|
|
2353
|
+
currentSelectedDataId: m,
|
|
2354
2354
|
enableMultiSelect: u,
|
|
2355
|
-
enableSelectRow:
|
|
2355
|
+
enableSelectRow: d,
|
|
2356
2356
|
findIndexInSelectedItems: ne,
|
|
2357
|
-
getSelectedItems:
|
|
2357
|
+
getSelectedItems: v,
|
|
2358
2358
|
getSelectionRow: Be,
|
|
2359
2359
|
indeterminate: j,
|
|
2360
2360
|
indeterminateDataItem: R,
|
|
@@ -2365,13 +2365,13 @@ function fo(e, t, n, o, i) {
|
|
|
2365
2365
|
multiSelectOnlyOnCheck: Y,
|
|
2366
2366
|
select: ee,
|
|
2367
2367
|
selectAll: be,
|
|
2368
|
-
selectedValues:
|
|
2368
|
+
selectedValues: f,
|
|
2369
2369
|
selectDataItem: z,
|
|
2370
2370
|
selectItem: ae,
|
|
2371
2371
|
selectItemById: ie,
|
|
2372
2372
|
selectItemByIds: te,
|
|
2373
2373
|
showCheckBox: l,
|
|
2374
|
-
showSelectAll:
|
|
2374
|
+
showSelectAll: b,
|
|
2375
2375
|
toggleSelectItem: Z,
|
|
2376
2376
|
toggleSelectItemWithoutRow: U,
|
|
2377
2377
|
unSelect: P,
|
|
@@ -2387,8 +2387,8 @@ function fo(e, t, n, o, i) {
|
|
|
2387
2387
|
emitSelectionChanged: D
|
|
2388
2388
|
};
|
|
2389
2389
|
}
|
|
2390
|
-
function it(e, t, n, o, i, a, r, c,
|
|
2391
|
-
const u = O(e.size), s = O(e.textField), l = O(e.titleField),
|
|
2390
|
+
function it(e, t, n, o, i, a, r, c, m, d) {
|
|
2391
|
+
const u = O(e.size), s = O(e.textField), l = O(e.titleField), b = O(e.disableField), f = W(() => {
|
|
2392
2392
|
var h, B;
|
|
2393
2393
|
return ((h = e.selection) == null ? void 0 : h.multiSelect) && ((B = e.selection) == null ? void 0 : B.showCheckbox);
|
|
2394
2394
|
}), {
|
|
@@ -2397,9 +2397,9 @@ function it(e, t, n, o, i, a, r, c, v, f) {
|
|
|
2397
2397
|
onMouseoutItem: T
|
|
2398
2398
|
} = a, {
|
|
2399
2399
|
getKey: S,
|
|
2400
|
-
listViewItemClass:
|
|
2400
|
+
listViewItemClass: y,
|
|
2401
2401
|
listViewItemStyle: g,
|
|
2402
|
-
onCheckItem:
|
|
2402
|
+
onCheckItem: v,
|
|
2403
2403
|
onClickItem: p
|
|
2404
2404
|
} = r, _ = W(() => {
|
|
2405
2405
|
const h = {
|
|
@@ -2414,7 +2414,7 @@ function it(e, t, n, o, i, a, r, c, v, f) {
|
|
|
2414
2414
|
});
|
|
2415
2415
|
function E(h, B, Y) {
|
|
2416
2416
|
return h.checked = c.findIndexInSelectedItems(h) > -1, F("li", {
|
|
2417
|
-
class:
|
|
2417
|
+
class: y(h, B),
|
|
2418
2418
|
id: S(h, B),
|
|
2419
2419
|
key: S(h, B),
|
|
2420
2420
|
style: g(h, B),
|
|
@@ -2422,17 +2422,17 @@ function it(e, t, n, o, i, a, r, c, v, f) {
|
|
|
2422
2422
|
onMouseenter: (M) => w(M, h, B),
|
|
2423
2423
|
onMouseover: (M) => C(M, h, B),
|
|
2424
2424
|
onMouseout: (M) => T(M, h, B)
|
|
2425
|
-
}, [
|
|
2425
|
+
}, [f.value && F("div", {
|
|
2426
2426
|
class: "f-list-select",
|
|
2427
2427
|
onClick: (M) => M.stopPropagation()
|
|
2428
2428
|
}, [F(Qe, {
|
|
2429
2429
|
id: "list-" + S(h, B),
|
|
2430
2430
|
customClass: "listview-checkbox float-left",
|
|
2431
|
-
disabled: h[
|
|
2431
|
+
disabled: h[b.value],
|
|
2432
2432
|
checked: h.checked,
|
|
2433
2433
|
"onUpdate:checked": (M) => h.checked = M,
|
|
2434
2434
|
onChange: (M) => {
|
|
2435
|
-
|
|
2435
|
+
v(h, B, !M.checked);
|
|
2436
2436
|
}
|
|
2437
2437
|
}, null)]), F("div", {
|
|
2438
2438
|
class: "f-list-content"
|
|
@@ -2446,19 +2446,19 @@ function it(e, t, n, o, i, a, r, c, v, f) {
|
|
|
2446
2446
|
renderItem: E
|
|
2447
2447
|
};
|
|
2448
2448
|
}
|
|
2449
|
-
function
|
|
2449
|
+
function vo(e, t, n, o, i, a, r, c, m, d) {
|
|
2450
2450
|
const u = O(e.multiSelect), s = O(e.disableField), l = O(e.textField), {
|
|
2451
|
-
onMouseenterItem:
|
|
2452
|
-
onMouseoverItem:
|
|
2451
|
+
onMouseenterItem: b,
|
|
2452
|
+
onMouseoverItem: f,
|
|
2453
2453
|
onMouseoutItem: w
|
|
2454
2454
|
} = a, {
|
|
2455
2455
|
getKey: C,
|
|
2456
2456
|
listViewItemClass: T,
|
|
2457
2457
|
listViewItemStyle: S,
|
|
2458
|
-
onCheckItem:
|
|
2458
|
+
onCheckItem: y,
|
|
2459
2459
|
onClickItem: g
|
|
2460
2460
|
} = r;
|
|
2461
|
-
function
|
|
2461
|
+
function v(_, E, h) {
|
|
2462
2462
|
return e.contentTemplate ? F(De, null, [e.contentTemplate({
|
|
2463
2463
|
item: _.raw,
|
|
2464
2464
|
index: E,
|
|
@@ -2478,8 +2478,8 @@ function mo(e, t, n, o, i, a, r, c, v, f) {
|
|
|
2478
2478
|
key: C(_, E),
|
|
2479
2479
|
style: S(_, E),
|
|
2480
2480
|
onClick: (B) => g(_, E, B),
|
|
2481
|
-
onMouseenter: (B) =>
|
|
2482
|
-
onMouseover: (B) =>
|
|
2481
|
+
onMouseenter: (B) => b(B, _, E),
|
|
2482
|
+
onMouseover: (B) => f(B, _, E),
|
|
2483
2483
|
onMouseout: (B) => w(B, _, E)
|
|
2484
2484
|
}, [u.value && F("div", {
|
|
2485
2485
|
class: "f-list-select",
|
|
@@ -2490,33 +2490,33 @@ function mo(e, t, n, o, i, a, r, c, v, f) {
|
|
|
2490
2490
|
disabled: _[s.value] || !_.checked,
|
|
2491
2491
|
checked: _.checked,
|
|
2492
2492
|
"onUpdate:checked": (B) => _.checked = B,
|
|
2493
|
-
onChange: (B) =>
|
|
2493
|
+
onChange: (B) => y(_, E, !B.checked)
|
|
2494
2494
|
}, null)]), F("div", {
|
|
2495
2495
|
class: "f-list-content"
|
|
2496
|
-
}, [
|
|
2496
|
+
}, [v(_, E, h)])]);
|
|
2497
2497
|
}
|
|
2498
2498
|
return {
|
|
2499
2499
|
renderItem: p
|
|
2500
2500
|
};
|
|
2501
2501
|
}
|
|
2502
|
-
function
|
|
2502
|
+
function mo(e, t, n, o, i, a, r, c, m, d) {
|
|
2503
2503
|
const u = O(e.multiSelect), s = O(e.disableField), l = O(e.textField), {
|
|
2504
|
-
onMouseenterItem:
|
|
2505
|
-
onMouseoverItem:
|
|
2504
|
+
onMouseenterItem: b,
|
|
2505
|
+
onMouseoverItem: f,
|
|
2506
2506
|
onMouseoutItem: w
|
|
2507
2507
|
} = a, {
|
|
2508
2508
|
getKey: C,
|
|
2509
2509
|
listViewItemClass: T,
|
|
2510
2510
|
onCheckItem: S,
|
|
2511
|
-
onClickItem:
|
|
2511
|
+
onClickItem: y
|
|
2512
2512
|
} = r, {
|
|
2513
2513
|
dragstart: g,
|
|
2514
|
-
dragenter:
|
|
2514
|
+
dragenter: v,
|
|
2515
2515
|
dragover: p,
|
|
2516
2516
|
dragend: _
|
|
2517
2517
|
} = o, {
|
|
2518
2518
|
removeItem: E
|
|
2519
|
-
} =
|
|
2519
|
+
} = m, h = W(() => ({
|
|
2520
2520
|
margin: u.value ? "10px 0" : "10px 0px 10px 14px"
|
|
2521
2521
|
}));
|
|
2522
2522
|
function B(x, k = "") {
|
|
@@ -2538,13 +2538,13 @@ function vo(e, t, n, o, i, a, r, c, v, f) {
|
|
|
2538
2538
|
class: T(x, k),
|
|
2539
2539
|
id: C(x, k),
|
|
2540
2540
|
key: C(x, k),
|
|
2541
|
-
onClick: (A) =>
|
|
2542
|
-
onMouseenter: (A) =>
|
|
2543
|
-
onMouseover: (A) =>
|
|
2541
|
+
onClick: (A) => y(x, k, A),
|
|
2542
|
+
onMouseenter: (A) => b(A, x, k),
|
|
2543
|
+
onMouseover: (A) => f(A, x, k),
|
|
2544
2544
|
onMouseout: (A) => w(A, x, k),
|
|
2545
2545
|
draggable: "true",
|
|
2546
2546
|
onDragstart: (A) => g(A, x, k),
|
|
2547
|
-
onDragenter: (A) =>
|
|
2547
|
+
onDragenter: (A) => v(A, k),
|
|
2548
2548
|
onDragend: (A) => _(A, x),
|
|
2549
2549
|
onDragover: (A) => p(A)
|
|
2550
2550
|
}, [u.value && F("div", {
|
|
@@ -2578,24 +2578,24 @@ function vo(e, t, n, o, i, a, r, c, v, f) {
|
|
|
2578
2578
|
renderItem: D
|
|
2579
2579
|
};
|
|
2580
2580
|
}
|
|
2581
|
-
function po(e, t, n, o, i, a, r, c,
|
|
2581
|
+
function po(e, t, n, o, i, a, r, c, m, d) {
|
|
2582
2582
|
var C;
|
|
2583
2583
|
const u = O(((C = e.group) == null ? void 0 : C.groupFields) || []), {
|
|
2584
2584
|
collpaseGroupIconClass: s
|
|
2585
2585
|
} = i, {
|
|
2586
2586
|
toggleGroupRow: l
|
|
2587
|
-
} =
|
|
2588
|
-
function
|
|
2587
|
+
} = d;
|
|
2588
|
+
function b(T, S) {
|
|
2589
2589
|
S.collapse = !S.collapse, n.value = l(S.collapse ? "collapse" : "expand", S, n.value);
|
|
2590
2590
|
}
|
|
2591
|
-
function
|
|
2591
|
+
function f(T, S, y) {
|
|
2592
2592
|
return t.slots.group ? F(De, null, [t.slots.content && t.slots.group({
|
|
2593
2593
|
item: T.raw,
|
|
2594
2594
|
index: S,
|
|
2595
|
-
selectedItem:
|
|
2595
|
+
selectedItem: y
|
|
2596
2596
|
})]) : F("div", {
|
|
2597
2597
|
class: "f-navlookup-recentHeader",
|
|
2598
|
-
onClick: (g) =>
|
|
2598
|
+
onClick: (g) => b(g, T)
|
|
2599
2599
|
}, [F("div", {
|
|
2600
2600
|
class: "fv-grid-group-row-icon"
|
|
2601
2601
|
}, [F("span", {
|
|
@@ -2604,8 +2604,8 @@ function po(e, t, n, o, i, a, r, c, v, f) {
|
|
|
2604
2604
|
class: "f-navlookup-recommandLabel"
|
|
2605
2605
|
}, [T.raw[u.value[T.layer]]])]);
|
|
2606
2606
|
}
|
|
2607
|
-
function w(T, S,
|
|
2608
|
-
return T.layer > -1 &&
|
|
2607
|
+
function w(T, S, y) {
|
|
2608
|
+
return T.layer > -1 && f(T, S, y);
|
|
2609
2609
|
}
|
|
2610
2610
|
return {
|
|
2611
2611
|
renderItem: w
|
|
@@ -2617,32 +2617,32 @@ function go(e, t, n, o) {
|
|
|
2617
2617
|
if (c > -1 && c < i.value.length) {
|
|
2618
2618
|
if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(i.value[c]))
|
|
2619
2619
|
return;
|
|
2620
|
-
const
|
|
2621
|
-
a(), t.emit("removeItem",
|
|
2620
|
+
const m = i.value.splice(c, 1);
|
|
2621
|
+
a(), t.emit("removeItem", m[0]);
|
|
2622
2622
|
}
|
|
2623
2623
|
}
|
|
2624
2624
|
return { removeItem: r };
|
|
2625
2625
|
}
|
|
2626
|
-
function ho(e, t, n, o, i, a, r, c,
|
|
2626
|
+
function ho(e, t, n, o, i, a, r, c, m, d) {
|
|
2627
2627
|
const {
|
|
2628
2628
|
t: u
|
|
2629
|
-
} = je(), s = O(e.view), l = O(e.view === "CardView"),
|
|
2629
|
+
} = je(), s = O(e.view), l = O(e.view === "CardView"), b = O({}), f = O(u("listView.emptyMessage")), w = go(e, t, o, m), C = W(() => ({
|
|
2630
2630
|
"f-list-view-group": !0,
|
|
2631
2631
|
"f-list-view-group-multiselect": e.multiSelect,
|
|
2632
2632
|
"d-flex": l.value,
|
|
2633
2633
|
"flex-wrap": l.value
|
|
2634
2634
|
})), T = W(() => !!n.value && n.value.length > 0), S = W(() => n.value.length === 0);
|
|
2635
2635
|
W(() => S.value && !t.slots.empty);
|
|
2636
|
-
function
|
|
2637
|
-
return s.value === "SingleView" ? it : s.value === "DraggableView" ?
|
|
2636
|
+
function y() {
|
|
2637
|
+
return s.value === "SingleView" ? it : s.value === "DraggableView" ? mo : (s.value === "ContentView" || s.value === "CardView") && (e.contentTemplate || t.slots.content) ? vo : it;
|
|
2638
2638
|
}
|
|
2639
|
-
const g =
|
|
2640
|
-
renderItem:
|
|
2641
|
-
} = g(e, t, n,
|
|
2639
|
+
const g = y(), {
|
|
2640
|
+
renderItem: v
|
|
2641
|
+
} = g(e, t, n, d, i, a, m, r, w, c), {
|
|
2642
2642
|
renderItem: p
|
|
2643
|
-
} = po(e, t, n,
|
|
2643
|
+
} = po(e, t, n, d, i, a, m, r, w, c), _ = [v, p];
|
|
2644
2644
|
function E() {
|
|
2645
|
-
return n.value.filter((Y) => Y.visible !== !1).map((Y, M) => _[Y.type](Y, M,
|
|
2645
|
+
return n.value.filter((Y) => Y.visible !== !1).map((Y, M) => _[Y.type](Y, M, b));
|
|
2646
2646
|
}
|
|
2647
2647
|
function h() {
|
|
2648
2648
|
return F("div", {
|
|
@@ -2650,7 +2650,7 @@ function ho(e, t, n, o, i, a, r, c, v, f) {
|
|
|
2650
2650
|
style: "margin: 0 auto;"
|
|
2651
2651
|
}, [F("p", {
|
|
2652
2652
|
class: "f-empty-title"
|
|
2653
|
-
}, [e.emptyTemplate ? e.emptyTemplate() : t.slots.empty ? t.slots.empty() :
|
|
2653
|
+
}, [e.emptyTemplate ? e.emptyTemplate() : t.slots.empty ? t.slots.empty() : f.value])]);
|
|
2654
2654
|
}
|
|
2655
2655
|
function B() {
|
|
2656
2656
|
return F("ul", {
|
|
@@ -2674,18 +2674,18 @@ function _o(e, t, n) {
|
|
|
2674
2674
|
}
|
|
2675
2675
|
function at(e, t, n) {
|
|
2676
2676
|
const o = O(e.headerClass), i = O(e.placeholder), a = O(""), r = W(() => !a.value), c = W(() => !!a.value);
|
|
2677
|
-
function
|
|
2677
|
+
function m(l) {
|
|
2678
2678
|
a.value = "";
|
|
2679
2679
|
}
|
|
2680
2680
|
Ne(a, (l) => {
|
|
2681
2681
|
e.enableHighlightSearch && n.search(l), t.emit("afterSearch", l);
|
|
2682
2682
|
});
|
|
2683
|
-
const
|
|
2683
|
+
const d = W(() => {
|
|
2684
2684
|
const l = {
|
|
2685
2685
|
"form-group": !0,
|
|
2686
2686
|
"farris-form-group": !0
|
|
2687
2687
|
};
|
|
2688
|
-
return o.value && o.value.split(" ").reduce((
|
|
2688
|
+
return o.value && o.value.split(" ").reduce((f, w) => (f[w] = !0, f), l), l;
|
|
2689
2689
|
});
|
|
2690
2690
|
function u(l) {
|
|
2691
2691
|
}
|
|
@@ -2694,7 +2694,7 @@ function at(e, t, n) {
|
|
|
2694
2694
|
class: "f-list-view-header",
|
|
2695
2695
|
onClick: hn(() => u, ["prevent", "stop"])
|
|
2696
2696
|
}, [F("div", {
|
|
2697
|
-
class:
|
|
2697
|
+
class: d.value
|
|
2698
2698
|
}, [F("div", {
|
|
2699
2699
|
class: "farris-input-wrap"
|
|
2700
2700
|
}, [F("div", {
|
|
@@ -2712,7 +2712,7 @@ function at(e, t, n) {
|
|
|
2712
2712
|
class: "input-group-append"
|
|
2713
2713
|
}, [c.value && F("span", {
|
|
2714
2714
|
class: "input-group-text input-group-clear",
|
|
2715
|
-
onClick: (l) =>
|
|
2715
|
+
onClick: (l) => m()
|
|
2716
2716
|
}, [F("i", {
|
|
2717
2717
|
class: "f-icon f-icon-close-circle"
|
|
2718
2718
|
}, null)]), r.value && F("span", {
|
|
@@ -2727,19 +2727,19 @@ function at(e, t, n) {
|
|
|
2727
2727
|
}
|
|
2728
2728
|
function yo() {
|
|
2729
2729
|
const e = O(""), t = O(-1), n = O(""), o = O(-1), i = O(!1);
|
|
2730
|
-
function a(s, l,
|
|
2731
|
-
o.value =
|
|
2730
|
+
function a(s, l, b) {
|
|
2731
|
+
o.value = b;
|
|
2732
2732
|
}
|
|
2733
|
-
function r(s, l,
|
|
2734
|
-
i.value || (o.value =
|
|
2733
|
+
function r(s, l, b) {
|
|
2734
|
+
i.value || (o.value = b);
|
|
2735
2735
|
}
|
|
2736
|
-
function c(s, l,
|
|
2736
|
+
function c(s, l, b) {
|
|
2737
2737
|
o.value = -1;
|
|
2738
2738
|
}
|
|
2739
|
-
function
|
|
2739
|
+
function m() {
|
|
2740
2740
|
i.value = !0;
|
|
2741
2741
|
}
|
|
2742
|
-
function
|
|
2742
|
+
function d() {
|
|
2743
2743
|
i.value = !1;
|
|
2744
2744
|
}
|
|
2745
2745
|
function u() {
|
|
@@ -2753,16 +2753,16 @@ function yo() {
|
|
|
2753
2753
|
onMouseenterItem: a,
|
|
2754
2754
|
onMouseoverItem: r,
|
|
2755
2755
|
onMouseoutItem: c,
|
|
2756
|
-
resumeHover:
|
|
2757
|
-
suspendHover:
|
|
2756
|
+
resumeHover: d,
|
|
2757
|
+
suspendHover: m
|
|
2758
2758
|
};
|
|
2759
2759
|
}
|
|
2760
2760
|
function bo(e, t, n, o) {
|
|
2761
|
-
const i = O(e.idField), { dataView: a } = n, r = O(-1), c = O(!1), { activeIndex:
|
|
2762
|
-
let
|
|
2761
|
+
const i = O(e.idField), { dataView: a } = n, r = O(-1), c = O(!1), { activeIndex: m, focusedItemId: d, hoverIndex: u, resumeHover: s, suspendHover: l } = o;
|
|
2762
|
+
let b, f = 0, w = 0;
|
|
2763
2763
|
function C(p, _) {
|
|
2764
|
-
const E = p -
|
|
2765
|
-
|
|
2764
|
+
const E = p - f, h = _ - w;
|
|
2765
|
+
b.style.left = parseInt(b.style.left) + E + "px", b.style.top = parseInt(b.style.top) + h + "px", f = p, w = _;
|
|
2766
2766
|
}
|
|
2767
2767
|
function T(p) {
|
|
2768
2768
|
const { left: _, top: E } = p.getBoundingClientRect(), h = p.cloneNode(!0);
|
|
@@ -2789,16 +2789,16 @@ function bo(e, t, n, o) {
|
|
|
2789
2789
|
}
|
|
2790
2790
|
function S(p, _, E) {
|
|
2791
2791
|
if (p.stopPropagation(), l(), _) {
|
|
2792
|
-
if (
|
|
2792
|
+
if (b = T(p.target), p.dataTransfer) {
|
|
2793
2793
|
const h = new Image();
|
|
2794
2794
|
h.src = "", p.dataTransfer.setDragImage(h, 0, 0);
|
|
2795
2795
|
}
|
|
2796
|
-
|
|
2796
|
+
f = p.pageX, w = p.pageY, setTimeout(() => {
|
|
2797
2797
|
r.value = E, c.value = !0, _.moving = !0;
|
|
2798
2798
|
});
|
|
2799
2799
|
}
|
|
2800
2800
|
}
|
|
2801
|
-
function
|
|
2801
|
+
function y(p, _) {
|
|
2802
2802
|
if (p.preventDefault(), r.value !== _) {
|
|
2803
2803
|
const E = a.value[r.value], h = a.value;
|
|
2804
2804
|
h.splice(r.value, 1), h.splice(_, 0, E), r.value = _, C(p.pageX, p.pageY);
|
|
@@ -2807,28 +2807,28 @@ function bo(e, t, n, o) {
|
|
|
2807
2807
|
function g(p) {
|
|
2808
2808
|
p.preventDefault(), p.dataTransfer && (p.dataTransfer.dropEffect = "move"), C(p.pageX, p.pageY);
|
|
2809
2809
|
}
|
|
2810
|
-
function
|
|
2811
|
-
_ && (_.moving = !1,
|
|
2810
|
+
function v(p, _) {
|
|
2811
|
+
_ && (_.moving = !1, b && (document.body.removeChild(b), b = null)), a.value.forEach((E, h) => {
|
|
2812
2812
|
E.__fv_index__ = h;
|
|
2813
|
-
}), c.value = !1, s(), u.value = _.raw.__fv_index__,
|
|
2813
|
+
}), c.value = !1, s(), u.value = _.raw.__fv_index__, m.value = _.raw.__fv_index__, d.value = _.raw[i.value], t.emit("change", a.value), t.emit("activeChange", [_.raw]);
|
|
2814
2814
|
}
|
|
2815
2815
|
return {
|
|
2816
2816
|
dragstart: S,
|
|
2817
|
-
dragenter:
|
|
2817
|
+
dragenter: y,
|
|
2818
2818
|
dragover: g,
|
|
2819
|
-
dragend:
|
|
2819
|
+
dragend: v,
|
|
2820
2820
|
isDragging: c
|
|
2821
2821
|
};
|
|
2822
2822
|
}
|
|
2823
2823
|
function wo(e, t, n, o, i, a) {
|
|
2824
|
-
const r = O(e.idField), c = O(e.disableField),
|
|
2824
|
+
const r = O(e.idField), c = O(e.disableField), m = O(e.draggable);
|
|
2825
2825
|
O(e.itemClass);
|
|
2826
|
-
const
|
|
2826
|
+
const d = O(e.selection.multiSelect ?? !1), u = O(e.selection.multiSelectMode), { isDragging: s } = o, { activeIndex: l, focusedItemId: b, hoverIndex: f } = i, { clearSelection: w, getSelectedItems: C, toggleSelectItem: T, currentSelectedDataId: S } = a, y = O(C()), g = (D) => y.value.length === 0 ? !1 : y.value.some((x) => {
|
|
2827
2827
|
let k = "";
|
|
2828
2828
|
return x.data ? k = x.data[r.value] : k = x[r.value], k === D;
|
|
2829
2829
|
});
|
|
2830
|
-
function
|
|
2831
|
-
|
|
2830
|
+
function v() {
|
|
2831
|
+
y.value = C();
|
|
2832
2832
|
}
|
|
2833
2833
|
function p(D, x) {
|
|
2834
2834
|
return D.raw[r.value] != null ? D.raw[r.value] : "";
|
|
@@ -2836,15 +2836,15 @@ function wo(e, t, n, o, i, a) {
|
|
|
2836
2836
|
function _(D, x) {
|
|
2837
2837
|
const k = {
|
|
2838
2838
|
"f-list-view-group-item": !0,
|
|
2839
|
-
"f-list-view-draggable-item":
|
|
2839
|
+
"f-list-view-draggable-item": m.value,
|
|
2840
2840
|
"f-un-click": !D.checked,
|
|
2841
2841
|
"f-un-select": !!D.raw[c.value],
|
|
2842
2842
|
"f-listview-active": (
|
|
2843
2843
|
// 多选
|
|
2844
|
-
|
|
2845
|
-
!
|
|
2844
|
+
d.value && g(p(D)) || // 单选
|
|
2845
|
+
!d.value && D.raw[r.value] === S.value
|
|
2846
2846
|
),
|
|
2847
|
-
"f-listview-hover": !s.value && x ===
|
|
2847
|
+
"f-listview-hover": !s.value && x === f.value,
|
|
2848
2848
|
moving: !!D.moving
|
|
2849
2849
|
};
|
|
2850
2850
|
if (typeof e.itemClass == "string")
|
|
@@ -2858,8 +2858,8 @@ function wo(e, t, n, o, i, a) {
|
|
|
2858
2858
|
function E(D, x) {
|
|
2859
2859
|
const k = (
|
|
2860
2860
|
// 多选
|
|
2861
|
-
|
|
2862
|
-
!
|
|
2861
|
+
d.value && g(p(D)) || // 单选
|
|
2862
|
+
!d.value && D.raw[r.value] === S.value
|
|
2863
2863
|
), $ = {};
|
|
2864
2864
|
if (k && ($.backgroundColor = "#dae9ff"), typeof e.itemStyle == "string")
|
|
2865
2865
|
return et($, e.itemStyle);
|
|
@@ -2869,92 +2869,92 @@ function wo(e, t, n, o, i, a) {
|
|
|
2869
2869
|
}
|
|
2870
2870
|
return $;
|
|
2871
2871
|
}
|
|
2872
|
-
const h = W(() => !
|
|
2872
|
+
const h = W(() => !d.value);
|
|
2873
2873
|
function B(D, x, k) {
|
|
2874
|
-
D.checked = k, !D.raw[c.value] && (h.value && (
|
|
2874
|
+
D.checked = k, !D.raw[c.value] && (h.value && (b.value = D.raw[r.value]), T(D));
|
|
2875
2875
|
}
|
|
2876
|
-
const Y = W(() =>
|
|
2876
|
+
const Y = W(() => d.value && u.value === "OnCheckClearByClick"), M = W(() => !d.value || d.value && (u.value === "OnCheckAndClick" || u.value === "OnClick"));
|
|
2877
2877
|
function L(D, x, k) {
|
|
2878
2878
|
if (D.raw[c.value]) {
|
|
2879
2879
|
k == null || k.preventDefault(), k == null || k.stopPropagation();
|
|
2880
2880
|
return;
|
|
2881
2881
|
}
|
|
2882
|
-
|
|
2882
|
+
b.value = D.raw[r.value], l.value = x, Y.value && w(), M.value && (T(D), v()), t.emit("clickItem", { data: y.value, index: x, dataItem: D.raw }), t.emit("activeChange", y.value);
|
|
2883
2883
|
}
|
|
2884
2884
|
return {
|
|
2885
2885
|
getKey: p,
|
|
2886
|
-
selectedItems:
|
|
2886
|
+
selectedItems: y,
|
|
2887
2887
|
listViewItemClass: _,
|
|
2888
2888
|
listViewItemStyle: E,
|
|
2889
|
-
updateSelectedItems:
|
|
2889
|
+
updateSelectedItems: v,
|
|
2890
2890
|
onCheckItem: B,
|
|
2891
2891
|
onClickItem: L
|
|
2892
2892
|
};
|
|
2893
2893
|
}
|
|
2894
|
-
function
|
|
2894
|
+
function mt(e, t) {
|
|
2895
2895
|
let n;
|
|
2896
2896
|
function o(s) {
|
|
2897
|
-
const { properties: l, title:
|
|
2898
|
-
if (
|
|
2899
|
-
const T =
|
|
2897
|
+
const { properties: l, title: b, ignore: f } = s, w = f && Array.isArray(f), C = Object.keys(l).reduce((T, S) => ((!w || !f.find((y) => y === S)) && (T[S] = l[S].type === "object" && l[S].properties ? o(l[S]) : Ae(l[S].default)), T), {});
|
|
2898
|
+
if (b && (!w || !f.find((T) => T === "id"))) {
|
|
2899
|
+
const T = b.toLowerCase().replace(/-/g, "_");
|
|
2900
2900
|
C.id = `${T}_${Math.random().toString().slice(2, 6)}`;
|
|
2901
2901
|
}
|
|
2902
2902
|
return C;
|
|
2903
2903
|
}
|
|
2904
2904
|
function i(s) {
|
|
2905
|
-
const { properties: l, title:
|
|
2906
|
-
if (
|
|
2907
|
-
const w =
|
|
2908
|
-
if (
|
|
2909
|
-
const C =
|
|
2905
|
+
const { properties: l, title: b, required: f } = s;
|
|
2906
|
+
if (f && Array.isArray(f)) {
|
|
2907
|
+
const w = f.reduce((C, T) => (C[T] = l[T].type === "object" && l[T].properties ? o(l[T]) : Ae(l[T].default), C), {});
|
|
2908
|
+
if (b && f.find((C) => C === "id")) {
|
|
2909
|
+
const C = b.toLowerCase().replace(/-/g, "_");
|
|
2910
2910
|
w.id = `${C}_${Math.random().toString().slice(2, 6)}`;
|
|
2911
2911
|
}
|
|
2912
2912
|
return w;
|
|
2913
2913
|
}
|
|
2914
2914
|
return {
|
|
2915
|
-
type:
|
|
2915
|
+
type: b
|
|
2916
2916
|
};
|
|
2917
2917
|
}
|
|
2918
|
-
function a(s, l = {},
|
|
2919
|
-
const
|
|
2920
|
-
if (
|
|
2921
|
-
let w = i(
|
|
2918
|
+
function a(s, l = {}, b) {
|
|
2919
|
+
const f = e[s];
|
|
2920
|
+
if (f) {
|
|
2921
|
+
let w = i(f);
|
|
2922
2922
|
const C = t[s];
|
|
2923
|
-
return w = C ? C({ getSchemaByType: a }, w, l,
|
|
2923
|
+
return w = C ? C({ getSchemaByType: a }, w, l, b) : w, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(w), w;
|
|
2924
2924
|
}
|
|
2925
2925
|
return null;
|
|
2926
2926
|
}
|
|
2927
2927
|
function r(s, l) {
|
|
2928
|
-
const
|
|
2929
|
-
return Object.keys(
|
|
2928
|
+
const b = o(l);
|
|
2929
|
+
return Object.keys(b).reduce((f, w) => (Object.prototype.hasOwnProperty.call(s, w) && (f[w] && nt(f[w]) && nt(s[w] || !s[w]) ? Object.assign(f[w], s[w] || {}) : f[w] = s[w]), f), b), b;
|
|
2930
2930
|
}
|
|
2931
2931
|
function c(s, l) {
|
|
2932
|
-
return Object.keys(s).filter((
|
|
2932
|
+
return Object.keys(s).filter((f) => s[f] != null).reduce((f, w) => {
|
|
2933
2933
|
if (l.has(w)) {
|
|
2934
2934
|
const C = l.get(w);
|
|
2935
2935
|
if (typeof C == "string")
|
|
2936
|
-
|
|
2936
|
+
f[C] = s[w];
|
|
2937
2937
|
else {
|
|
2938
2938
|
const T = C(w, s[w], s);
|
|
2939
|
-
Object.assign(
|
|
2939
|
+
Object.assign(f, T);
|
|
2940
2940
|
}
|
|
2941
2941
|
} else
|
|
2942
|
-
|
|
2943
|
-
return
|
|
2942
|
+
f[w] = s[w];
|
|
2943
|
+
return f;
|
|
2944
2944
|
}, {});
|
|
2945
2945
|
}
|
|
2946
|
-
function
|
|
2947
|
-
const
|
|
2948
|
-
return c(
|
|
2946
|
+
function m(s, l, b = /* @__PURE__ */ new Map()) {
|
|
2947
|
+
const f = r(s, l);
|
|
2948
|
+
return c(f, b);
|
|
2949
2949
|
}
|
|
2950
|
-
function
|
|
2951
|
-
var
|
|
2950
|
+
function d(s) {
|
|
2951
|
+
var b;
|
|
2952
2952
|
const l = s.type;
|
|
2953
2953
|
if (l) {
|
|
2954
|
-
const
|
|
2955
|
-
if (!
|
|
2954
|
+
const f = e[l];
|
|
2955
|
+
if (!f)
|
|
2956
2956
|
return s;
|
|
2957
|
-
const w = r(s,
|
|
2957
|
+
const w = r(s, f), C = ((b = s.editor) == null ? void 0 : b.type) || "";
|
|
2958
2958
|
if (C) {
|
|
2959
2959
|
const T = e[C], S = r(s.editor, T);
|
|
2960
2960
|
w.editor = S;
|
|
@@ -2966,62 +2966,62 @@ function vt(e, t) {
|
|
|
2966
2966
|
function u(s) {
|
|
2967
2967
|
n = s;
|
|
2968
2968
|
}
|
|
2969
|
-
return { getSchemaByType: a, resolveSchemaWithDefaultValue:
|
|
2969
|
+
return { getSchemaByType: a, resolveSchemaWithDefaultValue: d, resolveSchemaToProps: m, mappingSchemaToProps: c, setDesignerContext: u };
|
|
2970
2970
|
}
|
|
2971
|
-
const pt = {}, gt = {}, { getSchemaByType: Qr, resolveSchemaWithDefaultValue: Co, resolveSchemaToProps: So, mappingSchemaToProps: To, setDesignerContext: Zr } =
|
|
2971
|
+
const pt = {}, gt = {}, { getSchemaByType: Qr, resolveSchemaWithDefaultValue: Co, resolveSchemaToProps: So, mappingSchemaToProps: To, setDesignerContext: Zr } = mt(pt, gt);
|
|
2972
2972
|
function Eo(e = {}) {
|
|
2973
|
-
function t(
|
|
2973
|
+
function t(d, u, s, l) {
|
|
2974
2974
|
if (typeof s == "number")
|
|
2975
|
-
return l[
|
|
2975
|
+
return l[d].length === s;
|
|
2976
2976
|
if (typeof s == "object") {
|
|
2977
|
-
const
|
|
2978
|
-
if (
|
|
2979
|
-
return Number(l[
|
|
2980
|
-
if (
|
|
2981
|
-
return Number(l[
|
|
2982
|
-
if (
|
|
2983
|
-
return Number(l[
|
|
2977
|
+
const b = Object.keys(s)[0], f = s[b];
|
|
2978
|
+
if (b === "not")
|
|
2979
|
+
return Number(l[d].length) !== Number(f);
|
|
2980
|
+
if (b === "moreThan")
|
|
2981
|
+
return Number(l[d].length) >= Number(f);
|
|
2982
|
+
if (b === "lessThan")
|
|
2983
|
+
return Number(l[d].length) <= Number(f);
|
|
2984
2984
|
}
|
|
2985
2985
|
return !1;
|
|
2986
2986
|
}
|
|
2987
|
-
function n(
|
|
2988
|
-
return l[
|
|
2987
|
+
function n(d, u, s, l) {
|
|
2988
|
+
return l[d] && l[d].propertyValue && String(l[d].propertyValue.value) === String(s);
|
|
2989
2989
|
}
|
|
2990
2990
|
const o = /* @__PURE__ */ new Map([
|
|
2991
2991
|
["length", t],
|
|
2992
2992
|
["getProperty", n]
|
|
2993
2993
|
]);
|
|
2994
|
-
Object.keys(e).reduce((
|
|
2995
|
-
function i(
|
|
2996
|
-
const s =
|
|
2997
|
-
return typeof u == "number" ? [{ target: s, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: s, operator: "getProperty", param:
|
|
2994
|
+
Object.keys(e).reduce((d, u) => (d.set(u, e[u]), d), o);
|
|
2995
|
+
function i(d, u) {
|
|
2996
|
+
const s = d;
|
|
2997
|
+
return typeof u == "number" ? [{ target: s, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: s, operator: "getProperty", param: d, value: !!u }] : typeof u == "object" ? Object.keys(u).map((l) => {
|
|
2998
2998
|
if (l === "length")
|
|
2999
2999
|
return { target: s, operator: "length", param: null, value: u[l] };
|
|
3000
|
-
const
|
|
3001
|
-
return { target: s, operator: "getProperty", param:
|
|
3000
|
+
const b = l, f = u[l];
|
|
3001
|
+
return { target: s, operator: "getProperty", param: b, value: f };
|
|
3002
3002
|
}) : [];
|
|
3003
3003
|
}
|
|
3004
|
-
function a(
|
|
3005
|
-
return Object.keys(
|
|
3006
|
-
const
|
|
3007
|
-
return s.push(...
|
|
3004
|
+
function a(d) {
|
|
3005
|
+
return Object.keys(d).reduce((s, l) => {
|
|
3006
|
+
const b = i(l, d[l]);
|
|
3007
|
+
return s.push(...b), s;
|
|
3008
3008
|
}, []);
|
|
3009
3009
|
}
|
|
3010
|
-
function r(
|
|
3011
|
-
if (o.has(
|
|
3012
|
-
const s = o.get(
|
|
3013
|
-
return s && s(
|
|
3010
|
+
function r(d, u) {
|
|
3011
|
+
if (o.has(d.operator)) {
|
|
3012
|
+
const s = o.get(d.operator);
|
|
3013
|
+
return s && s(d.target, d.param, d.value, u) || !1;
|
|
3014
3014
|
}
|
|
3015
3015
|
return !1;
|
|
3016
3016
|
}
|
|
3017
|
-
function c(
|
|
3018
|
-
return a(
|
|
3017
|
+
function c(d, u) {
|
|
3018
|
+
return a(d).reduce((b, f) => b && r(f, u), !0);
|
|
3019
3019
|
}
|
|
3020
|
-
function
|
|
3021
|
-
const s = Object.keys(
|
|
3020
|
+
function m(d, u) {
|
|
3021
|
+
const s = Object.keys(d), l = s.includes("allOf"), b = s.includes("anyOf"), f = l || b, T = (f ? d[f ? l ? "allOf" : "anyOf" : "allOf"] : [d]).map((y) => c(y, u));
|
|
3022
3022
|
return l ? !T.includes(!1) : T.includes(!0);
|
|
3023
3023
|
}
|
|
3024
|
-
return { parseValueSchema:
|
|
3024
|
+
return { parseValueSchema: m };
|
|
3025
3025
|
}
|
|
3026
3026
|
const ko = {
|
|
3027
3027
|
convertTo: (e, t, n, o) => {
|
|
@@ -3265,94 +3265,94 @@ function ht(e, t, n) {
|
|
|
3265
3265
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
3266
3266
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
3267
3267
|
]), a = Eo();
|
|
3268
|
-
function r(
|
|
3269
|
-
return () => a.parseValueSchema(
|
|
3268
|
+
function r(f, w) {
|
|
3269
|
+
return () => a.parseValueSchema(f, w);
|
|
3270
3270
|
}
|
|
3271
|
-
function c(
|
|
3272
|
-
return
|
|
3271
|
+
function c(f, w, C) {
|
|
3272
|
+
return f.includes("visible") && w.visible !== void 0 ? typeof w.visible == "boolean" ? () => !!w.visible : w.visible === void 0 ? !0 : r(w.visible, C) : () => !0;
|
|
3273
3273
|
}
|
|
3274
|
-
function
|
|
3275
|
-
return
|
|
3274
|
+
function m(f, w, C) {
|
|
3275
|
+
return f.includes("readonly") && w.readonly !== void 0 ? typeof w.readonly == "boolean" ? () => !!w.readonly : r(w.readonly, C) : () => !1;
|
|
3276
3276
|
}
|
|
3277
|
-
function f
|
|
3278
|
-
const C =
|
|
3277
|
+
function d(f, w) {
|
|
3278
|
+
const C = f.$converter || w;
|
|
3279
3279
|
return typeof C == "string" && C && o.has(C) ? o.get(C) || null : C || null;
|
|
3280
3280
|
}
|
|
3281
|
-
function u(
|
|
3282
|
-
return Object.keys(
|
|
3283
|
-
const _ = O(1), E = p, h =
|
|
3281
|
+
function u(f, w, C, T, S, y = "", g = "") {
|
|
3282
|
+
return Object.keys(f).map((p) => {
|
|
3283
|
+
const _ = O(1), E = p, h = f[p], B = Object.keys(h), Y = h.title, M = h.type, L = i.get(M) || { type: "input-group", enableClear: !1 }, D = h.editor ? Object.assign({}, L, h.editor) : Object.assign({}, L), x = c(B, h, w), k = m(B, h, w);
|
|
3284
3284
|
D.readonly = D.readonly === void 0 ? k() : D.readonly;
|
|
3285
|
-
const $ = h.type === "cascade" ? u(h.properties, w, C, T, S,
|
|
3286
|
-
let Q =
|
|
3285
|
+
const $ = h.type === "cascade" ? u(h.properties, w, C, T, S, y, g) : [], A = !0;
|
|
3286
|
+
let Q = d(h, g);
|
|
3287
3287
|
const ne = W({
|
|
3288
3288
|
get() {
|
|
3289
3289
|
if (_.value) {
|
|
3290
3290
|
if (["class", "style"].find((P) => P === E) && !Q && (Q = o.get("/converter/appearance.converter") || null), Q && Q.convertFrom)
|
|
3291
|
-
return Q.convertFrom(C, p, S,
|
|
3291
|
+
return Q.convertFrom(C, p, S, y);
|
|
3292
3292
|
const ee = C[p];
|
|
3293
3293
|
return Object.prototype.hasOwnProperty.call(h, "defaultValue") && (ee === void 0 || typeof ee == "string" && ee === "") ? h.type === "boolean" ? h.defaultValue : h.defaultValue || "" : ee;
|
|
3294
3294
|
}
|
|
3295
3295
|
return null;
|
|
3296
3296
|
},
|
|
3297
3297
|
set(ee) {
|
|
3298
|
-
_.value += 1, Q && Q.convertTo ? (Q.convertTo(T, p, ee, S,
|
|
3298
|
+
_.value += 1, Q && Q.convertTo ? (Q.convertTo(T, p, ee, S, y), Q.convertTo(C, p, ee, S, y)) : (T[p] = ee, C[p] = ee);
|
|
3299
3299
|
}
|
|
3300
3300
|
}), { refreshPanelAfterChanged: I, description: z, isExpand: J, parentPropertyID: K } = h, re = { propertyID: E, propertyName: Y, propertyType: M, propertyValue: ne, editor: D, visible: x, readonly: k, cascadeConfig: $, hideCascadeTitle: A, refreshPanelAfterChanged: I, description: z, isExpand: J, parentPropertyID: K };
|
|
3301
3301
|
return w[E] = re, re;
|
|
3302
3302
|
});
|
|
3303
3303
|
}
|
|
3304
|
-
function s(
|
|
3305
|
-
const T = {}, S = e[
|
|
3304
|
+
function s(f, w, C = {}) {
|
|
3305
|
+
const T = {}, S = e[f];
|
|
3306
3306
|
return S && S.categories ? Object.keys(S.categories).map((g) => {
|
|
3307
|
-
const
|
|
3307
|
+
const v = S.categories[g], p = v == null ? void 0 : v.title, _ = u(v.properties || {}, T, {}, C, w);
|
|
3308
3308
|
return { categoryId: g, categoryName: p, properties: _ };
|
|
3309
3309
|
}) : [];
|
|
3310
3310
|
}
|
|
3311
|
-
function l(
|
|
3312
|
-
const
|
|
3311
|
+
function l(f, w, C, T, S = "") {
|
|
3312
|
+
const y = w.$ref.schema, g = w.$ref.converter, v = C[y], p = v.type, _ = n(v), E = {}, h = e[p];
|
|
3313
3313
|
if (h && h.categories) {
|
|
3314
|
-
const B = h.categories[
|
|
3314
|
+
const B = h.categories[f], Y = B == null ? void 0 : B.title;
|
|
3315
3315
|
g && Object.keys(B.properties).forEach((D) => {
|
|
3316
3316
|
B.properties[D].$converter = g;
|
|
3317
3317
|
});
|
|
3318
|
-
const M = (B == null ? void 0 : B.properties) || {}, L = u(M, E, _,
|
|
3319
|
-
return { categoryId:
|
|
3318
|
+
const M = (B == null ? void 0 : B.properties) || {}, L = u(M, E, _, v, T, S);
|
|
3319
|
+
return { categoryId: f, categoryName: Y, properties: L };
|
|
3320
3320
|
}
|
|
3321
|
-
return { categoryId:
|
|
3321
|
+
return { categoryId: f, categoryName: "", properties: [] };
|
|
3322
3322
|
}
|
|
3323
|
-
function
|
|
3324
|
-
const
|
|
3325
|
-
let p = S || e[
|
|
3323
|
+
function b(f, w, C, T, S) {
|
|
3324
|
+
const y = f.type, g = n(f), v = {};
|
|
3325
|
+
let p = S || e[y];
|
|
3326
3326
|
if (p && Object.keys(p).length === 0 && C && C.getPropConfig && (p = C.getPropConfig(T)), p && p.categories) {
|
|
3327
3327
|
const _ = [];
|
|
3328
3328
|
return Object.keys(p.categories).map((E) => {
|
|
3329
3329
|
const h = p.categories[E];
|
|
3330
3330
|
if (h.$ref) {
|
|
3331
|
-
_.push(l(E, h,
|
|
3331
|
+
_.push(l(E, h, f, w, T));
|
|
3332
3332
|
return;
|
|
3333
3333
|
}
|
|
3334
|
-
const B = h == null ? void 0 : h.title, Y = h == null ? void 0 : h.tabId, M = h == null ? void 0 : h.tabName, L = h == null ? void 0 : h.hide, D = h == null ? void 0 : h.hideTitle, x = u(h.properties || {},
|
|
3334
|
+
const B = h == null ? void 0 : h.title, Y = h == null ? void 0 : h.tabId, M = h == null ? void 0 : h.tabName, L = h == null ? void 0 : h.hide, D = h == null ? void 0 : h.hideTitle, x = u(h.properties || {}, v, g, f, w, T, h.$converter), { setPropertyRelates: k } = h, $ = h == null ? void 0 : h.parentPropertyID;
|
|
3335
3335
|
_.push({ categoryId: E, categoryName: B, tabId: Y, tabName: M, hide: L, properties: x, hideTitle: D, setPropertyRelates: k, parentPropertyID: $ });
|
|
3336
3336
|
}), _;
|
|
3337
3337
|
}
|
|
3338
3338
|
return [];
|
|
3339
3339
|
}
|
|
3340
3340
|
return {
|
|
3341
|
-
getPropertyConfigBySchema:
|
|
3341
|
+
getPropertyConfigBySchema: b,
|
|
3342
3342
|
getPropertyConfigByType: s,
|
|
3343
3343
|
propertyConverterMap: o
|
|
3344
3344
|
};
|
|
3345
3345
|
}
|
|
3346
3346
|
const _t = {}, yt = {};
|
|
3347
3347
|
ht(_t, yt, Co);
|
|
3348
|
-
const bt = {}, wt = {}, { getSchemaByType: Kr, resolveSchemaWithDefaultValue: Wo, resolveSchemaToProps: ei, mappingSchemaToProps: ti, setDesignerContext: ni } =
|
|
3348
|
+
const bt = {}, wt = {}, { getSchemaByType: Kr, resolveSchemaWithDefaultValue: Wo, resolveSchemaToProps: ei, mappingSchemaToProps: ti, setDesignerContext: ni } = mt(bt, wt), Ct = {}, St = {};
|
|
3349
3349
|
ht(Ct, St, Wo);
|
|
3350
|
-
function Yo(e, t, n = /* @__PURE__ */ new Map(), o = (r, c,
|
|
3350
|
+
function Yo(e, t, n = /* @__PURE__ */ new Map(), o = (r, c, m, d) => c, i = {}, a = (r) => r) {
|
|
3351
3351
|
return pt[t.title] = t, gt[t.title] = o, _t[t.title] = i, yt[t.title] = a, bt[t.title] = t, wt[t.title] = o, Ct[t.title] = i, St[t.title] = a, (r = {}, c = !0) => {
|
|
3352
3352
|
if (!c)
|
|
3353
3353
|
return To(r, n);
|
|
3354
|
-
const
|
|
3355
|
-
return Object.assign(
|
|
3354
|
+
const m = So(r, t, n), d = Object.keys(e).reduce((u, s) => (u[s] = e[s].default, u), {});
|
|
3355
|
+
return Object.assign(d, m);
|
|
3356
3356
|
};
|
|
3357
3357
|
}
|
|
3358
3358
|
function Xo(e, t) {
|
|
@@ -3387,12 +3387,12 @@ function Qo(e, t) {
|
|
|
3387
3387
|
}), s;
|
|
3388
3388
|
}
|
|
3389
3389
|
function r(u, s, l) {
|
|
3390
|
-
var C, T, S,
|
|
3391
|
-
const
|
|
3392
|
-
if (["double-list-template", "tree-list-template", "list-template"].includes(
|
|
3390
|
+
var C, T, S, y;
|
|
3391
|
+
const b = (T = (C = s == null ? void 0 : s.parentComponentInstance) == null ? void 0 : C.schema) == null ? void 0 : T.type, f = (y = (S = n.getFormSchema()) == null ? void 0 : S.module) == null ? void 0 : y.templateId;
|
|
3392
|
+
if (["double-list-template", "tree-list-template", "list-template"].includes(f))
|
|
3393
3393
|
return u;
|
|
3394
3394
|
const w = [ze["content-container"].type, ze["response-layout-item"].type, ze["splitter-pane"].type];
|
|
3395
|
-
if (
|
|
3395
|
+
if (b && w.includes(b)) {
|
|
3396
3396
|
const g = e.getSchemaByType(
|
|
3397
3397
|
"section",
|
|
3398
3398
|
{
|
|
@@ -3402,8 +3402,8 @@ function Qo(e, t) {
|
|
|
3402
3402
|
t
|
|
3403
3403
|
);
|
|
3404
3404
|
if (g && g.contents && g.contents.length) {
|
|
3405
|
-
const
|
|
3406
|
-
return
|
|
3405
|
+
const v = g.contents[0];
|
|
3406
|
+
return v.contents = [u], g;
|
|
3407
3407
|
}
|
|
3408
3408
|
}
|
|
3409
3409
|
return u;
|
|
@@ -3413,7 +3413,7 @@ function Qo(e, t) {
|
|
|
3413
3413
|
return Object.assign(s, {
|
|
3414
3414
|
id: u.componentId + "-listView",
|
|
3415
3415
|
appearance: {
|
|
3416
|
-
class: ""
|
|
3416
|
+
class: "f-grid-is-sub"
|
|
3417
3417
|
},
|
|
3418
3418
|
type: "list-view",
|
|
3419
3419
|
dataSource: u.dataSource || "",
|
|
@@ -3422,27 +3422,23 @@ function Qo(e, t) {
|
|
|
3422
3422
|
}
|
|
3423
3423
|
}), [s];
|
|
3424
3424
|
}
|
|
3425
|
-
function
|
|
3426
|
-
var w, C;
|
|
3425
|
+
function m(u) {
|
|
3427
3426
|
const s = e.getSchemaByType("component"), l = c(u);
|
|
3428
|
-
|
|
3429
|
-
const d = (C = (w = n.getFormSchema()) == null ? void 0 : w.module) == null ? void 0 : C.templateId;
|
|
3430
|
-
return ["double-list-template", "tree-list-template", "list-template"].includes(d) && (y = "f-struct-wrapper f-utils-fill-flex-column"), Object.assign(s, {
|
|
3427
|
+
return Object.assign(s, {
|
|
3431
3428
|
id: `${u.componentId}-component`,
|
|
3432
3429
|
viewModel: `${u.componentId}-component-viewmodel`,
|
|
3433
3430
|
componentType: u.componentType,
|
|
3434
|
-
contents: l
|
|
3435
|
-
appearance: { class: y }
|
|
3431
|
+
contents: l
|
|
3436
3432
|
}), s;
|
|
3437
3433
|
}
|
|
3438
|
-
function
|
|
3439
|
-
const s = a(u), l =
|
|
3440
|
-
return
|
|
3434
|
+
function d(u) {
|
|
3435
|
+
const s = a(u), l = m(u), b = i(u), f = n.getFormSchema();
|
|
3436
|
+
return f.module.viewmodels.push(b), f.module.components.push(l), o.assembleDesignViewModel(), r(s, u);
|
|
3441
3437
|
}
|
|
3442
|
-
return { createComponent:
|
|
3438
|
+
return { createComponent: d };
|
|
3443
3439
|
}
|
|
3444
3440
|
function Et(e, t, n, o) {
|
|
3445
|
-
var a, r, c,
|
|
3441
|
+
var a, r, c, m, d, u;
|
|
3446
3442
|
const i = n.parentComponentInstance;
|
|
3447
3443
|
if (i && o) {
|
|
3448
3444
|
const s = Math.random().toString(36).slice(2, 6), l = {
|
|
@@ -3452,11 +3448,11 @@ function Et(e, t, n, o) {
|
|
|
3452
3448
|
parentContainerId: i.schema.id,
|
|
3453
3449
|
parentComponentInstance: i,
|
|
3454
3450
|
// editable: true,
|
|
3455
|
-
bindTo: ((
|
|
3456
|
-
dataSource: (u = (
|
|
3451
|
+
bindTo: ((m = n.bindingSourceContext) == null ? void 0 : m.bindTo) || "",
|
|
3452
|
+
dataSource: (u = (d = n.bindingSourceContext) == null ? void 0 : d.bindingEntity) == null ? void 0 : u.label
|
|
3457
3453
|
// selectedFields: context.bindingSourceContext?.bindingEntityFields
|
|
3458
|
-
}, { createComponent:
|
|
3459
|
-
return
|
|
3454
|
+
}, { createComponent: b } = Qo(e, o);
|
|
3455
|
+
return b(l);
|
|
3460
3456
|
} else
|
|
3461
3457
|
return t;
|
|
3462
3458
|
}
|
|
@@ -3573,25 +3569,25 @@ function lr() {
|
|
|
3573
3569
|
const cr = O(0);
|
|
3574
3570
|
function ur(e) {
|
|
3575
3571
|
const { formSchemaUtils: t, formStateMachineUtils: n } = e;
|
|
3576
|
-
function o(
|
|
3572
|
+
function o(m, d = "") {
|
|
3577
3573
|
return {
|
|
3578
|
-
path:
|
|
3579
|
-
field:
|
|
3580
|
-
fullPath:
|
|
3574
|
+
path: d + m.code,
|
|
3575
|
+
field: m.id,
|
|
3576
|
+
fullPath: m.code
|
|
3581
3577
|
};
|
|
3582
3578
|
}
|
|
3583
|
-
function i(
|
|
3584
|
-
return t.getViewModelById(
|
|
3579
|
+
function i(m, d = "") {
|
|
3580
|
+
return t.getViewModelById(m).states.map((s) => o(s, d));
|
|
3585
3581
|
}
|
|
3586
|
-
function a(
|
|
3587
|
-
const
|
|
3588
|
-
if (
|
|
3582
|
+
function a(m) {
|
|
3583
|
+
const d = t.getRootViewModelId(), u = i(m);
|
|
3584
|
+
if (m === d)
|
|
3589
3585
|
return u;
|
|
3590
|
-
const s = i(
|
|
3586
|
+
const s = i(d, "root-component.");
|
|
3591
3587
|
return [...u, ...s];
|
|
3592
3588
|
}
|
|
3593
|
-
function r(
|
|
3594
|
-
return
|
|
3589
|
+
function r(m) {
|
|
3590
|
+
return m.binding && m.binding.path || m.id || "";
|
|
3595
3591
|
}
|
|
3596
3592
|
function c() {
|
|
3597
3593
|
return n && n.getRenderStates() || [];
|
|
@@ -3652,12 +3648,12 @@ class dr {
|
|
|
3652
3648
|
return c && c.value || "";
|
|
3653
3649
|
},
|
|
3654
3650
|
convertTo: (o, i, a, r, c) => {
|
|
3655
|
-
var
|
|
3651
|
+
var m;
|
|
3656
3652
|
if (i === "dataPicking" && (a != null && a.target)) {
|
|
3657
|
-
const
|
|
3658
|
-
((
|
|
3659
|
-
(s) => s.id ===
|
|
3660
|
-
)) ? o.dictPickingExpressionId =
|
|
3653
|
+
const d = `${a.target}_dataPicking`;
|
|
3654
|
+
((m = a.rules) == null ? void 0 : m.some(
|
|
3655
|
+
(s) => s.id === d && s.value
|
|
3656
|
+
)) ? o.dictPickingExpressionId = d : delete o.dictPickingExpressionId;
|
|
3661
3657
|
}
|
|
3662
3658
|
r.updateExpression(a);
|
|
3663
3659
|
}
|
|
@@ -3717,10 +3713,10 @@ class dr {
|
|
|
3717
3713
|
buildChildEntityTreeData(t = null, n) {
|
|
3718
3714
|
const o = [];
|
|
3719
3715
|
return t == null || t.forEach((i) => {
|
|
3720
|
-
var
|
|
3716
|
+
var m, d;
|
|
3721
3717
|
const a = this.createTreeNode(i, n);
|
|
3722
3718
|
a.type = "entity";
|
|
3723
|
-
const r = this.buildEntityFieldsTreeData((
|
|
3719
|
+
const r = this.buildEntityFieldsTreeData((m = i.type) == null ? void 0 : m.fields, [...n, i.label]), c = this.buildChildEntityTreeData((d = i.type) == null ? void 0 : d.entities, [...n, i.label]);
|
|
3724
3720
|
c != null && c.length && (r == null || r.push(...c)), o.push({
|
|
3725
3721
|
data: a,
|
|
3726
3722
|
children: r || [],
|
|
@@ -3770,12 +3766,12 @@ class dr {
|
|
|
3770
3766
|
return a.messageType != null && (c.messageType = a.messageType), c;
|
|
3771
3767
|
}
|
|
3772
3768
|
buildRule(t, n, o, i) {
|
|
3773
|
-
const { expression: a, message: r, messageType: c } = n,
|
|
3769
|
+
const { expression: a, message: r, messageType: c } = n, m = {
|
|
3774
3770
|
id: `${t}_${o}`,
|
|
3775
3771
|
type: o,
|
|
3776
3772
|
value: a
|
|
3777
3773
|
};
|
|
3778
|
-
return (o === "validate" || o === "dataPicking" || o === "required") && (
|
|
3774
|
+
return (o === "validate" || o === "dataPicking" || o === "required") && (m.message = r), o === "dataPicking" && (m.messageType = c), o === "validate" && i && (m.elementId = i), m;
|
|
3779
3775
|
}
|
|
3780
3776
|
getExpressionData() {
|
|
3781
3777
|
const { expressions: t } = this.formSchemaService.getFormSchema().module;
|
|
@@ -3783,34 +3779,34 @@ class dr {
|
|
|
3783
3779
|
}
|
|
3784
3780
|
updateExpression(t, n, o, i) {
|
|
3785
3781
|
const a = n === "Field" ? t.binding.field : t.id, r = this.buildRule(a, o, i, t.type === "form-group" ? t.id : "");
|
|
3786
|
-
let
|
|
3787
|
-
const
|
|
3788
|
-
if (
|
|
3789
|
-
const u =
|
|
3782
|
+
let m = this.getExpressionData().find((u) => u.targetType === n && u.target === a);
|
|
3783
|
+
const d = (u) => u.value.trim() === "";
|
|
3784
|
+
if (m) {
|
|
3785
|
+
const u = m.rules.find((s) => s.id === r.id);
|
|
3790
3786
|
if (u)
|
|
3791
|
-
|
|
3787
|
+
d(r) ? m.rules = m.rules.filter((s) => s.id !== r.id) : (Object.assign(u, r), i === "validate" && t.type === "form-group" && (u.elementId = t.id));
|
|
3792
3788
|
else {
|
|
3793
|
-
if (
|
|
3789
|
+
if (d(r))
|
|
3794
3790
|
return null;
|
|
3795
|
-
|
|
3791
|
+
m.rules = m.rules || [], m.rules.push(r);
|
|
3796
3792
|
}
|
|
3797
3793
|
} else {
|
|
3798
|
-
if (
|
|
3794
|
+
if (d(r))
|
|
3799
3795
|
return null;
|
|
3800
|
-
|
|
3796
|
+
m = {
|
|
3801
3797
|
target: `${a}`,
|
|
3802
3798
|
rules: [r],
|
|
3803
3799
|
targetType: n
|
|
3804
3800
|
};
|
|
3805
3801
|
}
|
|
3806
|
-
return
|
|
3802
|
+
return m;
|
|
3807
3803
|
}
|
|
3808
3804
|
getExpressionEditorOptions(t, n, o, i) {
|
|
3809
3805
|
return o.reduce((a, r) => {
|
|
3810
|
-
var
|
|
3811
|
-
const c = n === "Field" ? (
|
|
3806
|
+
var m, d;
|
|
3807
|
+
const c = n === "Field" ? (m = t == null ? void 0 : t.binding) == null ? void 0 : m.field : t.id;
|
|
3812
3808
|
return a[r] = {
|
|
3813
|
-
hide: n === "Field" ? !!((
|
|
3809
|
+
hide: n === "Field" ? !!((d = t == null ? void 0 : t.binding) != null && d.field) : !1,
|
|
3814
3810
|
description: "",
|
|
3815
3811
|
title: this.expressionNames[r],
|
|
3816
3812
|
type: "string",
|
|
@@ -3982,12 +3978,12 @@ class fr {
|
|
|
3982
3978
|
* @returns
|
|
3983
3979
|
*/
|
|
3984
3980
|
getPropertyEditorParams(t, n = [], o = "visible", i = {}, a = {}, r = "") {
|
|
3985
|
-
const { getVariables: c, getControlName:
|
|
3981
|
+
const { getVariables: c, getControlName: m, getStateMachines: d } = ur(this.designerHostService), u = this.getRealTargetType(t), s = n && n.length > 0 ? n : ["Const", "Variable", "StateMachine", "Expression"], l = {
|
|
3986
3982
|
type: "property-editor",
|
|
3987
3983
|
propertyTypes: s
|
|
3988
3984
|
};
|
|
3989
|
-
return s.map((
|
|
3990
|
-
switch (
|
|
3985
|
+
return s.map((b) => {
|
|
3986
|
+
switch (b) {
|
|
3991
3987
|
case "Const":
|
|
3992
3988
|
Object.assign(l, {
|
|
3993
3989
|
constType: "enum",
|
|
@@ -3998,16 +3994,16 @@ class fr {
|
|
|
3998
3994
|
l.expressionConfig = this.getExpressionOptions(t, u, r || o);
|
|
3999
3995
|
break;
|
|
4000
3996
|
case "StateMachine":
|
|
4001
|
-
l.stateMachines =
|
|
3997
|
+
l.stateMachines = d();
|
|
4002
3998
|
break;
|
|
4003
3999
|
case "Variable":
|
|
4004
4000
|
Object.assign(l, {
|
|
4005
|
-
controlName:
|
|
4001
|
+
controlName: m(t),
|
|
4006
4002
|
newVariablePrefix: "is",
|
|
4007
4003
|
newVariableType: "Boolean",
|
|
4008
4004
|
variables: c(this.viewModelId),
|
|
4009
|
-
onBeforeOpenVariables: (
|
|
4010
|
-
|
|
4005
|
+
onBeforeOpenVariables: (f) => {
|
|
4006
|
+
f.value = c(this.viewModelId);
|
|
4011
4007
|
}
|
|
4012
4008
|
}, a);
|
|
4013
4009
|
break;
|
|
@@ -4037,22 +4033,22 @@ class fr {
|
|
|
4037
4033
|
title: "行为",
|
|
4038
4034
|
description: ""
|
|
4039
4035
|
}, r = this.getVisibleProperty(t, n);
|
|
4040
|
-
for (const
|
|
4041
|
-
r[
|
|
4036
|
+
for (const m in o)
|
|
4037
|
+
r[m] = Object.assign(r[m] || {}, o[m]);
|
|
4042
4038
|
const c = this;
|
|
4043
4039
|
return {
|
|
4044
4040
|
...a,
|
|
4045
4041
|
properties: { ...r },
|
|
4046
|
-
setPropertyRelates(
|
|
4047
|
-
if (
|
|
4048
|
-
switch (
|
|
4042
|
+
setPropertyRelates(m, d) {
|
|
4043
|
+
if (m) {
|
|
4044
|
+
switch (m.propertyID) {
|
|
4049
4045
|
case "disabled":
|
|
4050
4046
|
case "readonly":
|
|
4051
4047
|
case "visible":
|
|
4052
|
-
c.afterMutilEditorChanged(t,
|
|
4048
|
+
c.afterMutilEditorChanged(t, m);
|
|
4053
4049
|
break;
|
|
4054
4050
|
}
|
|
4055
|
-
i && i(
|
|
4051
|
+
i && i(m, d);
|
|
4056
4052
|
}
|
|
4057
4053
|
}
|
|
4058
4054
|
};
|
|
@@ -4105,17 +4101,17 @@ class fr {
|
|
|
4105
4101
|
const n = t.propertyValue;
|
|
4106
4102
|
if (!((n && n.type) === "Expression" && n.expressionInfo))
|
|
4107
4103
|
return;
|
|
4108
|
-
const { expressionId: a, expressionInfo: r } = n, { targetId: c, targetType:
|
|
4104
|
+
const { expressionId: a, expressionInfo: r } = n, { targetId: c, targetType: m, expressionType: d, value: u, message: s } = r, l = this.formSchemaUtils.getModule();
|
|
4109
4105
|
l.expressions = l.expressions || [];
|
|
4110
|
-
const { expressions:
|
|
4111
|
-
let
|
|
4112
|
-
|
|
4113
|
-
const w =
|
|
4106
|
+
const { expressions: b } = l;
|
|
4107
|
+
let f = b.find((C) => C.target === c);
|
|
4108
|
+
f || (f = { target: c, rules: [], targetType: m }, b.push(f));
|
|
4109
|
+
const w = f.rules.find((C) => C.type === d);
|
|
4114
4110
|
if (w)
|
|
4115
4111
|
w.value = u, w.message = s;
|
|
4116
4112
|
else {
|
|
4117
|
-
const C = { id: a, type:
|
|
4118
|
-
|
|
4113
|
+
const C = { id: a, type: d, value: u, message: s };
|
|
4114
|
+
f.rules.push(C);
|
|
4119
4115
|
}
|
|
4120
4116
|
delete n.expressionInfo;
|
|
4121
4117
|
}
|
|
@@ -4129,8 +4125,8 @@ class fr {
|
|
|
4129
4125
|
const o = t.propertyValue;
|
|
4130
4126
|
if (o && o.type === "Expression")
|
|
4131
4127
|
return;
|
|
4132
|
-
const a = t.propertyID, r = this.formSchemaUtils.getExpressions(), c = n.binding ? n.binding.field : n.id,
|
|
4133
|
-
!
|
|
4128
|
+
const a = t.propertyID, r = this.formSchemaUtils.getExpressions(), c = n.binding ? n.binding.field : n.id, m = r.find((d) => d.target === c);
|
|
4129
|
+
!m || !m.rules || (m.rules = m.rules.filter((d) => d.type !== a));
|
|
4134
4130
|
}
|
|
4135
4131
|
getExpressionOptions(t, n, o) {
|
|
4136
4132
|
return new dr(this.formSchemaUtils).getExpressionOptions(t, n, o);
|
|
@@ -4152,7 +4148,7 @@ class fr {
|
|
|
4152
4148
|
}, n;
|
|
4153
4149
|
}
|
|
4154
4150
|
}
|
|
4155
|
-
class
|
|
4151
|
+
class vr extends fr {
|
|
4156
4152
|
constructor(t, n) {
|
|
4157
4153
|
super(t, n);
|
|
4158
4154
|
}
|
|
@@ -4160,8 +4156,8 @@ class mr extends fr {
|
|
|
4160
4156
|
return this.getBasicPropConfig(t), this.getAppearanceProperties(t), this.getEventPropConfig(t), this.propertyConfig;
|
|
4161
4157
|
}
|
|
4162
4158
|
getBasicPropConfig(t) {
|
|
4163
|
-
var r, c,
|
|
4164
|
-
const n = (
|
|
4159
|
+
var r, c, m;
|
|
4160
|
+
const n = (m = (c = (r = this.formSchemaUtils.getFormSchema()) == null ? void 0 : r.module) == null ? void 0 : c.entity[0]) == null ? void 0 : m.entities[0], o = this.assembleSchemaEntityToTree(n, 0), i = this, a = super.getBasicPropConfig(t);
|
|
4165
4161
|
this.propertyConfig.categories.basic = {
|
|
4166
4162
|
description: "Basic Information",
|
|
4167
4163
|
title: "基本信息",
|
|
@@ -4180,12 +4176,12 @@ class mr extends fr {
|
|
|
4180
4176
|
readonly: !0
|
|
4181
4177
|
}
|
|
4182
4178
|
},
|
|
4183
|
-
setPropertyRelates(
|
|
4184
|
-
switch (
|
|
4179
|
+
setPropertyRelates(d, u) {
|
|
4180
|
+
switch (d && d.propertyID) {
|
|
4185
4181
|
case "dataSource": {
|
|
4186
4182
|
const s = i.formSchemaUtils.getViewModelById(i.viewModelId);
|
|
4187
4183
|
if (s) {
|
|
4188
|
-
const l = o.find((
|
|
4184
|
+
const l = o.find((b) => b.label === d.propertyValue);
|
|
4189
4185
|
s.bindTo = l.bindTo;
|
|
4190
4186
|
}
|
|
4191
4187
|
i.designViewModelUtils.assembleDesignViewModel();
|
|
@@ -4317,9 +4313,9 @@ class mr extends fr {
|
|
|
4317
4313
|
refreshPanelAfterChanged: !0,
|
|
4318
4314
|
tabId: "commands",
|
|
4319
4315
|
tabName: "交互",
|
|
4320
|
-
setPropertyRelates(c,
|
|
4321
|
-
const
|
|
4322
|
-
delete t[o.viewModelId],
|
|
4316
|
+
setPropertyRelates(c, m) {
|
|
4317
|
+
const d = c.propertyValue;
|
|
4318
|
+
delete t[o.viewModelId], d && (d.setPropertyRelates = this.setPropertyRelates, o.eventsEditorUtils.saveRelatedParameters(t, o.viewModelId, d.events, d)), t.remoteSort = !!t.columnSorted, t.command && (t.command.onClickEditCommand = t.onClickEditCommand, t.command.onClickDeleteCommand = t.onClickDeleteCommand);
|
|
4323
4319
|
}
|
|
4324
4320
|
};
|
|
4325
4321
|
}
|
|
@@ -4328,7 +4324,7 @@ class mr extends fr {
|
|
|
4328
4324
|
return t && t.bindTo ? t.bindTo.trim() !== "/" : !1;
|
|
4329
4325
|
}
|
|
4330
4326
|
}
|
|
4331
|
-
function
|
|
4327
|
+
function mr(e, t) {
|
|
4332
4328
|
const n = e.schema, o = O(!0), i = O(!0);
|
|
4333
4329
|
function a(s) {
|
|
4334
4330
|
return !1;
|
|
@@ -4339,26 +4335,26 @@ function vr(e, t) {
|
|
|
4339
4335
|
function c() {
|
|
4340
4336
|
return !1;
|
|
4341
4337
|
}
|
|
4342
|
-
function
|
|
4338
|
+
function m() {
|
|
4343
4339
|
return !0;
|
|
4344
4340
|
}
|
|
4345
|
-
function
|
|
4346
|
-
return new
|
|
4341
|
+
function d(s) {
|
|
4342
|
+
return new vr(s, t).getPropertyConfig(n);
|
|
4347
4343
|
}
|
|
4348
4344
|
function u() {
|
|
4349
|
-
var s, l,
|
|
4345
|
+
var s, l, b, f;
|
|
4350
4346
|
if (e && t) {
|
|
4351
4347
|
const w = (s = e == null ? void 0 : e.componentInstance) == null ? void 0 : s.value.belongedComponentId;
|
|
4352
4348
|
let C = "", T = "";
|
|
4353
4349
|
const { formSchemaUtils: S } = t;
|
|
4354
4350
|
if (w) {
|
|
4355
|
-
const g = S.getRootViewModelId(),
|
|
4356
|
-
(p == null ? void 0 : p.type) === ((l = Oe["tab-page"]) == null ? void 0 : l.type) && ((
|
|
4351
|
+
const g = S.getRootViewModelId(), v = S.getComponentByViewModelId(g), p = S.selectNode(v, (_) => _.contents && _.contents.find((E) => E.component === w));
|
|
4352
|
+
(p == null ? void 0 : p.type) === ((l = Oe["tab-page"]) == null ? void 0 : l.type) && ((b = p == null ? void 0 : p.contents) != null && b.length) && (C = p.title || ""), (p == null ? void 0 : p.type) === ((f = Oe.section) == null ? void 0 : f.type) && (p == null ? void 0 : p.showHeader) !== !1 && (C = p.mainTitle || ""), C = C ? `${C} > ` : "", T = C ? p.id : "";
|
|
4357
4353
|
}
|
|
4358
|
-
const
|
|
4354
|
+
const y = Oe["list-view"].name;
|
|
4359
4355
|
t == null || t.formSchemaUtils.getControlBasicInfoMap().set(e.schema.id, {
|
|
4360
|
-
componentTitle:
|
|
4361
|
-
parentPathName: `${C}${
|
|
4356
|
+
componentTitle: y,
|
|
4357
|
+
parentPathName: `${C}${y}`,
|
|
4362
4358
|
reliedComponentId: T
|
|
4363
4359
|
});
|
|
4364
4360
|
}
|
|
@@ -4367,10 +4363,10 @@ function vr(e, t) {
|
|
|
4367
4363
|
canAccepts: a,
|
|
4368
4364
|
checkCanDeleteComponent: r,
|
|
4369
4365
|
checkCanMoveComponent: c,
|
|
4370
|
-
hideNestedPaddingInDesginerView:
|
|
4366
|
+
hideNestedPaddingInDesginerView: m,
|
|
4371
4367
|
triggerBelongedComponentToMoveWhenMoved: o,
|
|
4372
4368
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
4373
|
-
getPropsConfig:
|
|
4369
|
+
getPropsConfig: d,
|
|
4374
4370
|
setComponentBasicInfoMap: u
|
|
4375
4371
|
};
|
|
4376
4372
|
}
|
|
@@ -4630,12 +4626,12 @@ const pr = "https://json-schema.org/draft/2020-12/schema", gr = "https://farris-
|
|
|
4630
4626
|
props: kt,
|
|
4631
4627
|
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change"],
|
|
4632
4628
|
setup(e, t) {
|
|
4633
|
-
const n = O(), o = O(!0), i = O(!1), a = O([]), r = 0, c = O(e.columns),
|
|
4629
|
+
const n = O(), o = O(!0), i = O(!1), a = O([]), r = 0, c = O(e.columns), m = Wn(e, t), d = co(e), u = Yn(e), s = dt(e, d), l = $n(e, /* @__PURE__ */ new Map(), m, u, d), b = fo(e, l, d, a, t), f = In(e, n), w = O(), C = Ye("designer-host-service"), T = Ye("design-item-context"), S = mr(T, C), y = ut(w, T, S), g = W(() => l.dataView.value.length), v = uo(e, t, b, d), p = lo(e, t, d, v), _ = Jn(e), E = ro(e, {}, _), h = io(e, l, p, u, d, _, E), B = ao(e, d, E, h), Y = so(e, d, E, h), M = Xn(e, c, l, g, r, h, B, Y), {
|
|
4634
4630
|
getVisualData: L
|
|
4635
4631
|
} = M;
|
|
4636
4632
|
a.value = L(0, g.value + r - 1), Je(() => {
|
|
4637
|
-
w.value.componentInstance =
|
|
4638
|
-
}), t.expose(
|
|
4633
|
+
w.value.componentInstance = y;
|
|
4634
|
+
}), t.expose(y.value);
|
|
4639
4635
|
const D = W(() => {
|
|
4640
4636
|
const J = {
|
|
4641
4637
|
"f-list-view": !0,
|
|
@@ -4650,8 +4646,8 @@ const pr = "https://json-schema.org/draft/2020-12/schema", gr = "https://farris-
|
|
|
4650
4646
|
}
|
|
4651
4647
|
const $ = k(), {
|
|
4652
4648
|
renderHeader: A
|
|
4653
|
-
} = $(e, t,
|
|
4654
|
-
ho(e, t, a, l, s, Q,
|
|
4649
|
+
} = $(e, t, f), Q = yo(), ne = bo(e, t, l, Q), I = wo(e, t, a, ne, Q, b);
|
|
4650
|
+
ho(e, t, a, l, s, Q, b, M, I, ne);
|
|
4655
4651
|
function z(J) {
|
|
4656
4652
|
e.multiSelect && (J.preventDefault(), J.stopPropagation());
|
|
4657
4653
|
}
|