@farris/ui-vue 1.7.4 → 1.7.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 +2 -2
- package/components/avatar/index.umd.cjs +1 -1
- package/components/component/index.esm.js +102 -102
- package/components/component/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4 -2
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +393 -392
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +102 -102
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +2 -2
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/image/index.esm.js +2 -2
- package/components/image/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +4 -2
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +156 -156
- package/components/number-range/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +2 -2
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1 -1
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +1 -1
- package/components/tree-grid/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +62 -61
- package/designer/data-grid/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +351 -349
- package/designer/farris-designer.all.umd.cjs +4 -4
- package/designer/radio-group/index.esm.js +2 -2
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-layout-editor/index.esm.js +1 -1
- package/designer/response-layout-editor/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +142 -142
- package/designer/tabs/index.umd.cjs +1 -1
- package/designer/time-picker/index.esm.js +2 -2
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/tree-grid/index.esm.js +1 -1
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +2821 -2819
- package/farris.all.umd.cjs +25 -25
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +2 -14
- package/types/data-view/composition/types.d.ts +1 -1
|
@@ -274,8 +274,8 @@ var Do = { exports: {} };
|
|
|
274
274
|
K = F.clientX, P = F.clientY;
|
|
275
275
|
var U = T(F) !== 1 || F.metaKey || F.ctrlKey;
|
|
276
276
|
if (!U) {
|
|
277
|
-
var
|
|
278
|
-
oe && (ie = oe, Pe(), F.type === "mousedown" && (h(
|
|
277
|
+
var Y = F.target, oe = _e(Y);
|
|
278
|
+
oe && (ie = oe, Pe(), F.type === "mousedown" && (h(Y) ? Y.focus() : F.preventDefault()));
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
function ct(F) {
|
|
@@ -286,7 +286,7 @@ var Do = { exports: {} };
|
|
|
286
286
|
}
|
|
287
287
|
if (!(F.clientX !== void 0 && Math.abs(F.clientX - K) <= (Z.slideFactorX || 0) && F.clientY !== void 0 && Math.abs(F.clientY - P) <= (Z.slideFactorY || 0))) {
|
|
288
288
|
if (Z.ignoreInputTextSelection) {
|
|
289
|
-
var U = E("clientX", F) || 0,
|
|
289
|
+
var U = E("clientX", F) || 0, Y = E("clientY", F) || 0, oe = d.elementFromPoint(U, Y);
|
|
290
290
|
if (h(oe))
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
@@ -300,13 +300,13 @@ var Do = { exports: {} };
|
|
|
300
300
|
for (var U = F; s(F) && Xe(s(F)) === !1; )
|
|
301
301
|
if (Z.invalid(F, U) || (F = s(F), !F))
|
|
302
302
|
return;
|
|
303
|
-
var
|
|
304
|
-
if (
|
|
305
|
-
var oe = Z.moves(F,
|
|
303
|
+
var Y = s(F);
|
|
304
|
+
if (Y && !Z.invalid(F, U)) {
|
|
305
|
+
var oe = Z.moves(F, Y, U, D(F));
|
|
306
306
|
if (oe)
|
|
307
307
|
return {
|
|
308
308
|
item: F,
|
|
309
|
-
source:
|
|
309
|
+
source: Y
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
312
|
}
|
|
@@ -335,13 +335,13 @@ var Do = { exports: {} };
|
|
|
335
335
|
}
|
|
336
336
|
function We(F) {
|
|
337
337
|
if (Le(), !!de.dragging) {
|
|
338
|
-
var U = x || L,
|
|
338
|
+
var U = x || L, Y = E("clientX", F) || 0, oe = E("clientY", F) || 0, se = M(j, Y, oe), ue = pe(se, Y, oe);
|
|
339
339
|
ue && (x && Z.copySortSource || !x || ue !== V) ? lt(U, ue) : Z.removeOnSpill ? it() : A();
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
function lt(F, U) {
|
|
343
|
-
var
|
|
344
|
-
x && Z.copySortSource && U === V &&
|
|
343
|
+
var Y = s(F);
|
|
344
|
+
x && Z.copySortSource && U === V && Y.removeChild(L), ve(U) ? de.emit("cancel", F, V) : de.emit("drop", F, U, V, I), le();
|
|
345
345
|
}
|
|
346
346
|
function it() {
|
|
347
347
|
if (de.dragging) {
|
|
@@ -351,8 +351,8 @@ var Do = { exports: {} };
|
|
|
351
351
|
}
|
|
352
352
|
function A(F) {
|
|
353
353
|
if (de.dragging) {
|
|
354
|
-
var U = arguments.length > 0 ? F : Z.revertOnSpill,
|
|
355
|
-
se === !1 && U && (x ? oe && oe.removeChild(x) : V.insertBefore(
|
|
354
|
+
var U = arguments.length > 0 ? F : Z.revertOnSpill, Y = x || L, oe = s(Y), se = ve(oe);
|
|
355
|
+
se === !1 && U && (x ? oe && oe.removeChild(x) : V.insertBefore(Y, R)), se || U ? de.emit("cancel", Y, V, V) : de.emit("drop", Y, oe, V, I), le();
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
function le() {
|
|
@@ -360,10 +360,10 @@ var Do = { exports: {} };
|
|
|
360
360
|
Le(), Ot(), Pt(), F && p.rm(F, "gu-transit"), H && clearTimeout(H), de.dragging = !1, ne && de.emit("out", F, ne, V), de.emit("dragend", F, ce), V = L = x = R = I = H = ne = null;
|
|
361
361
|
}
|
|
362
362
|
function ve(F, U) {
|
|
363
|
-
var
|
|
364
|
-
return U !== void 0 ?
|
|
363
|
+
var Y;
|
|
364
|
+
return U !== void 0 ? Y = U : j ? Y = I : Y = D(x || L), F === V && Y === R;
|
|
365
365
|
}
|
|
366
|
-
function pe(F, U,
|
|
366
|
+
function pe(F, U, Y) {
|
|
367
367
|
for (var oe = F; oe && !se(); )
|
|
368
368
|
oe = s(oe);
|
|
369
369
|
return oe;
|
|
@@ -371,7 +371,7 @@ var Do = { exports: {} };
|
|
|
371
371
|
var ue = Xe(oe);
|
|
372
372
|
if (ue === !1)
|
|
373
373
|
return !1;
|
|
374
|
-
var Oe = bt(oe, F), Be = wt(oe, Oe, U,
|
|
374
|
+
var Oe = bt(oe, F), Be = wt(oe, Oe, U, Y), Ie = ve(oe, Be);
|
|
375
375
|
return Ie ? !0 : Z.accepts(L, oe, V, Be);
|
|
376
376
|
}
|
|
377
377
|
}
|
|
@@ -379,10 +379,10 @@ var Do = { exports: {} };
|
|
|
379
379
|
if (!j)
|
|
380
380
|
return;
|
|
381
381
|
F.preventDefault();
|
|
382
|
-
var U = E("clientX", F) || 0,
|
|
383
|
-
j.style.left = U - 2 + "px", j.style.top =
|
|
384
|
-
var oe = x || L, se = M(j, U,
|
|
385
|
-
(Oe || ue === null) && (Me(), ne = ue, je()), jt(se,
|
|
382
|
+
var U = E("clientX", F) || 0, Y = E("clientY", F) || 0;
|
|
383
|
+
j.style.left = U - 2 + "px", j.style.top = Y - 2 + "px";
|
|
384
|
+
var oe = x || L, se = M(j, U, Y), ue = pe(se, U, Y), Oe = ue !== null && ue !== ne;
|
|
385
|
+
(Oe || ue === null) && (Me(), ne = ue, je()), jt(se, Y);
|
|
386
386
|
var Be = s(oe);
|
|
387
387
|
if (ue === V && x && !Z.copySortSource) {
|
|
388
388
|
Be && Be.removeChild(oe);
|
|
@@ -390,7 +390,7 @@ var Do = { exports: {} };
|
|
|
390
390
|
}
|
|
391
391
|
var Ie, Ve = bt(ue, se);
|
|
392
392
|
if (Ce = dt(Ve, ue), Ve !== null)
|
|
393
|
-
Ie = wt(ue, Ve, U,
|
|
393
|
+
Ie = wt(ue, Ve, U, Y);
|
|
394
394
|
else if (Z.revertOnSpill === !0 && !x)
|
|
395
395
|
Ie = R, ue = V;
|
|
396
396
|
else {
|
|
@@ -408,8 +408,8 @@ var Do = { exports: {} };
|
|
|
408
408
|
ne && be("out");
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function Bt(F, U,
|
|
412
|
-
(F === U || F === D(U)) && (I = D(U)), (F === null &&
|
|
411
|
+
function Bt(F, U, Y) {
|
|
412
|
+
(F === U || F === D(U)) && (I = D(U)), (F === null && Y || F !== U && F !== D(U)) && (I = F);
|
|
413
413
|
}
|
|
414
414
|
function It(F) {
|
|
415
415
|
p.rm(F, "gu-hide");
|
|
@@ -434,15 +434,15 @@ var Do = { exports: {} };
|
|
|
434
434
|
X && (s(X).removeChild(X), X = null);
|
|
435
435
|
}
|
|
436
436
|
function bt(F, U) {
|
|
437
|
-
for (var
|
|
438
|
-
|
|
439
|
-
return
|
|
437
|
+
for (var Y = U; Y !== F && s(Y) !== F; )
|
|
438
|
+
Y = s(Y);
|
|
439
|
+
return Y === C ? null : Y;
|
|
440
440
|
}
|
|
441
441
|
function dt(F, U) {
|
|
442
442
|
if (!U)
|
|
443
443
|
return Ce;
|
|
444
|
-
var
|
|
445
|
-
if (!
|
|
444
|
+
var Y = F || U && U.lastElementChild;
|
|
445
|
+
if (!Y)
|
|
446
446
|
return !0;
|
|
447
447
|
var oe = getComputedStyle(F), se = /^inline/.test(oe.getPropertyValue("display")) || /^(left|right)$/.test(oe.getPropertyValue("float"));
|
|
448
448
|
if (se)
|
|
@@ -474,15 +474,15 @@ var Do = { exports: {} };
|
|
|
474
474
|
return !0;
|
|
475
475
|
}
|
|
476
476
|
function Lt(F, U) {
|
|
477
|
-
const
|
|
478
|
-
if (X.style.left =
|
|
479
|
-
if (X.style.height =
|
|
477
|
+
const Y = U.getBoundingClientRect();
|
|
478
|
+
if (X.style.left = Y.left + "px", X.style.top = Y.top + "px", Ce) {
|
|
479
|
+
if (X.style.height = Y.height + "px", X.style.width = "4px", F) {
|
|
480
480
|
const oe = F.getBoundingClientRect();
|
|
481
|
-
oe.top !==
|
|
481
|
+
oe.top !== Y.top && (X.style.left = oe.right + "px", X.style.top = oe.top + "px", X.style.height = oe.height + "px");
|
|
482
482
|
}
|
|
483
|
-
} else if (X.style.height = "4px", X.style.width =
|
|
483
|
+
} else if (X.style.height = "4px", X.style.width = Y.width + "px", re) {
|
|
484
484
|
const oe = re.getBoundingClientRect();
|
|
485
|
-
|
|
485
|
+
Y.top < oe.top && (X.style.display = "none");
|
|
486
486
|
}
|
|
487
487
|
U === L && L && (X.style.display = "none");
|
|
488
488
|
}
|
|
@@ -490,42 +490,42 @@ var Do = { exports: {} };
|
|
|
490
490
|
I = null;
|
|
491
491
|
var U = F.lastElementChild;
|
|
492
492
|
if (U) {
|
|
493
|
-
var
|
|
494
|
-
Ce ? (X.style.left =
|
|
493
|
+
var Y = U.getBoundingClientRect();
|
|
494
|
+
Ce ? (X.style.left = Y.right + "px", X.style.top = Y.top + "px", X.style.height = Y.height + "px", X.style.width = "4px") : (X.style.left = Y.left + "px", X.style.top = Y.bottom + "px", X.style.height = "4px", X.style.width = Y.width + "px"), U === L && L && (X.style.display = "none");
|
|
495
495
|
} else
|
|
496
496
|
X.style.display = "none";
|
|
497
497
|
}
|
|
498
498
|
function jt(F, U) {
|
|
499
499
|
if (!Z.mirrorContainer.contains(F) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (re = k(F), !re || !re.contains(F)))
|
|
500
500
|
return;
|
|
501
|
-
const
|
|
501
|
+
const Y = document && document.querySelector(".dgComponentSelected"), oe = re.getBoundingClientRect();
|
|
502
502
|
if (U - 30 < oe.top && re.scrollTop > 0) {
|
|
503
503
|
let se = re.scrollTop < 10 ? re.scrollTop : 10;
|
|
504
|
-
re.scrollBy(0, -1 * se),
|
|
504
|
+
re.scrollBy(0, -1 * se), Y && re.contains(Y) && (ce = ce + -1 * se);
|
|
505
505
|
}
|
|
506
506
|
if (U + 30 > oe.bottom && re.scrollTop < re.scrollHeight - re.clientHeight) {
|
|
507
507
|
const se = re.scrollHeight - re.clientHeight - re.scrollTop;
|
|
508
508
|
let ue = se < 10 ? se : 10;
|
|
509
|
-
re.scrollBy(0, ue),
|
|
509
|
+
re.scrollBy(0, ue), Y && re.contains(Y) && (ce = ce + ue);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
function wt(F, U,
|
|
512
|
+
function wt(F, U, Y, oe) {
|
|
513
513
|
var se = Z.direction === "horizontal", ue = Z.direction === "mixed", Oe = U !== F ? Ie() : Be();
|
|
514
514
|
return Oe;
|
|
515
515
|
function Be() {
|
|
516
516
|
var be = F.children.length, je, Me, De;
|
|
517
517
|
for (je = 0; je < be; je++)
|
|
518
|
-
if (Me = F.children[je], De = Me.getBoundingClientRect(), se && De.left + De.width / 2 >
|
|
518
|
+
if (Me = F.children[je], De = Me.getBoundingClientRect(), se && De.left + De.width / 2 > Y || !ue && !se && De.top + De.height / 2 > oe || ue && De.left + De.width > Y && De.top + De.height > oe)
|
|
519
519
|
return Me;
|
|
520
520
|
return null;
|
|
521
521
|
}
|
|
522
522
|
function Ie() {
|
|
523
523
|
var be = U.getBoundingClientRect();
|
|
524
524
|
if (ue) {
|
|
525
|
-
var je = oe - be.top, Me =
|
|
525
|
+
var je = oe - be.top, Me = Y - be.left, De = be.bottom - oe, ft = be.right - Y, mt = Math.min(Me, ft, je, De), vt;
|
|
526
526
|
return Ce ? vt = ft < Me : vt = De === mt || ft === mt || Me === mt, Ve(vt);
|
|
527
527
|
}
|
|
528
|
-
return Ve(se ?
|
|
528
|
+
return Ve(se ? Y > be.left + z(be) / 2 : oe > be.top + m(be) / 2);
|
|
529
529
|
}
|
|
530
530
|
function Ve(be) {
|
|
531
531
|
return be ? D(U) : U;
|
|
@@ -1463,13 +1463,13 @@ const $t = /* @__PURE__ */ Ee({
|
|
|
1463
1463
|
} = ge, Je = Ba(e, ie, d, Ne, Ce), {
|
|
1464
1464
|
calculateColumnsSize: Le
|
|
1465
1465
|
} = Je, We = Ia(), lt = Ma(d, k, h, We, ge), it = xa(e, n, x, h, Ce, M, ge), A = te(() => {
|
|
1466
|
-
const
|
|
1466
|
+
const G = {
|
|
1467
1467
|
"fv-grid": !0,
|
|
1468
1468
|
"fv-grid-bordered": e.showBorder,
|
|
1469
1469
|
"fv-grid-horizontal-bordered": e.showHorizontalLines,
|
|
1470
1470
|
"fv-datagrid-strip": e.showStripe
|
|
1471
1471
|
};
|
|
1472
|
-
return st(
|
|
1472
|
+
return st(G, e.customClass);
|
|
1473
1473
|
}), le = te(() => ({
|
|
1474
1474
|
"fv-grid-content": !0,
|
|
1475
1475
|
"fv-grid-content-hover": u.value,
|
|
@@ -1490,8 +1490,8 @@ const $t = /* @__PURE__ */ Ee({
|
|
|
1490
1490
|
renderVerticalScrollbar: kt
|
|
1491
1491
|
} = La(e, d, ge);
|
|
1492
1492
|
function Ot() {
|
|
1493
|
-
var
|
|
1494
|
-
if (d.value && d.value.clientHeight > 0 && ((
|
|
1493
|
+
var G, ae, we;
|
|
1494
|
+
if (d.value && d.value.clientHeight > 0 && ((G = d.value) == null ? void 0 : G.clientWidth) > 0) {
|
|
1495
1495
|
const Fe = Math.ceil(d.value.clientHeight / r);
|
|
1496
1496
|
Fe > i.value && (i.value = Fe, ut()), $e.value = ((ae = C.value) == null ? void 0 : ae.clientHeight) || 0, _e.value = ((we = d.value) == null ? void 0 : we.clientWidth) || 0;
|
|
1497
1497
|
}
|
|
@@ -1505,64 +1505,64 @@ const $t = /* @__PURE__ */ Ee({
|
|
|
1505
1505
|
}), me(Ne, () => {
|
|
1506
1506
|
d.value && Le();
|
|
1507
1507
|
});
|
|
1508
|
-
function Pt(
|
|
1509
|
-
h.collapseTo(
|
|
1508
|
+
function Pt(G) {
|
|
1509
|
+
h.collapseTo(G), h.reOrderVisibleIndex(), Ue();
|
|
1510
1510
|
}
|
|
1511
|
-
function bt(
|
|
1512
|
-
h.expandTo(
|
|
1511
|
+
function bt(G) {
|
|
1512
|
+
h.expandTo(G), h.reOrderVisibleIndex(), Ue();
|
|
1513
1513
|
}
|
|
1514
1514
|
function dt() {
|
|
1515
|
-
const
|
|
1516
|
-
return
|
|
1515
|
+
const G = D.getSelectionRow();
|
|
1516
|
+
return G ? G.dataIndex - 1 : -1;
|
|
1517
1517
|
}
|
|
1518
1518
|
function Nt() {
|
|
1519
|
-
const
|
|
1520
|
-
h.insertNewDataItem(
|
|
1519
|
+
const G = dt();
|
|
1520
|
+
h.insertNewDataItem(G === -1 ? 0 : G), a.value = Pe(0, O.value + 0 - 1);
|
|
1521
1521
|
}
|
|
1522
1522
|
function Lt() {
|
|
1523
|
-
const
|
|
1524
|
-
h.insertNewChildDataItem(
|
|
1523
|
+
const G = dt();
|
|
1524
|
+
h.insertNewChildDataItem(G), a.value = Pe(0, O.value + 0 - 1);
|
|
1525
1525
|
}
|
|
1526
|
-
function Vt(
|
|
1526
|
+
function Vt(G, ae) {
|
|
1527
1527
|
const we = a.value.find((xe) => xe.raw[c.value] === ae), Fe = we ? we.dataIndex - 1 : -1;
|
|
1528
|
-
h.insertNewChildDataItems(
|
|
1528
|
+
h.insertNewChildDataItems(G, Fe);
|
|
1529
1529
|
}
|
|
1530
1530
|
function jt() {
|
|
1531
|
-
const
|
|
1532
|
-
h.removeHierarchyDataItem(
|
|
1531
|
+
const G = dt(), ae = y.getNextSelectableHierarchyItemId(G);
|
|
1532
|
+
h.removeHierarchyDataItem(G), a.value = Pe(0, O.value + 0 - 1), ae && y.selectItemById(ae);
|
|
1533
1533
|
}
|
|
1534
|
-
function wt(
|
|
1535
|
-
re.onEditingRow(
|
|
1534
|
+
function wt(G) {
|
|
1535
|
+
re.onEditingRow(G);
|
|
1536
1536
|
}
|
|
1537
|
-
function At(
|
|
1538
|
-
re.acceptEditingRow(
|
|
1537
|
+
function At(G) {
|
|
1538
|
+
re.acceptEditingRow(G);
|
|
1539
1539
|
}
|
|
1540
|
-
function F(
|
|
1541
|
-
re.cancelEditingRow(
|
|
1540
|
+
function F(G) {
|
|
1541
|
+
re.cancelEditingRow(G);
|
|
1542
1542
|
}
|
|
1543
|
-
function U(
|
|
1544
|
-
|
|
1543
|
+
function U(G) {
|
|
1544
|
+
G && (l.value = G, P(l), X(l.value), ne(h, H), Le());
|
|
1545
1545
|
}
|
|
1546
|
-
me(() => e.columns, (
|
|
1547
|
-
U(
|
|
1546
|
+
me(() => e.columns, (G) => {
|
|
1547
|
+
U(G);
|
|
1548
1548
|
});
|
|
1549
|
-
function G
|
|
1550
|
-
|
|
1549
|
+
function Y(G, ae) {
|
|
1550
|
+
G && (h.load(G), h.reOrderVisibleIndex(), ae != null && ae.keepScrollPosition ? ge.scrollTo(ge.offsetY.value) : Ue());
|
|
1551
1551
|
}
|
|
1552
|
-
function oe(
|
|
1553
|
-
ce.activeRowById(
|
|
1552
|
+
function oe(G) {
|
|
1553
|
+
ce.activeRowById(G);
|
|
1554
1554
|
}
|
|
1555
|
-
function se(
|
|
1555
|
+
function se(G, ae = {
|
|
1556
1556
|
isCurrent: !0
|
|
1557
1557
|
}) {
|
|
1558
|
-
ae != null && ae.isCurrent && oe(
|
|
1558
|
+
ae != null && ae.isCurrent && oe(G), y.selectItemById(G);
|
|
1559
1559
|
}
|
|
1560
|
-
function ue(
|
|
1561
|
-
const ae = a.value.find((we) => we.raw[o.idField.value] ===
|
|
1560
|
+
function ue(G) {
|
|
1561
|
+
const ae = a.value.find((we) => we.raw[o.idField.value] === G);
|
|
1562
1562
|
ae && ce.clickRowItem(ae);
|
|
1563
1563
|
}
|
|
1564
|
-
function Oe(
|
|
1565
|
-
y.selectItemByIds(
|
|
1564
|
+
function Oe(G) {
|
|
1565
|
+
y.selectItemByIds(G);
|
|
1566
1566
|
}
|
|
1567
1567
|
function Be() {
|
|
1568
1568
|
return D.getSelectedItems();
|
|
@@ -1579,16 +1579,16 @@ const $t = /* @__PURE__ */ Ee({
|
|
|
1579
1579
|
function Me() {
|
|
1580
1580
|
return D.getSelectionRow();
|
|
1581
1581
|
}
|
|
1582
|
-
function De(
|
|
1582
|
+
function De(G, ae = {
|
|
1583
1583
|
clearCurrent: !0
|
|
1584
1584
|
}) {
|
|
1585
|
-
ae != null && ae.clearCurrent && oe(""), y.unSelectItemByIds(
|
|
1585
|
+
ae != null && ae.clearCurrent && oe(""), y.unSelectItemByIds(G);
|
|
1586
1586
|
}
|
|
1587
1587
|
function ft() {
|
|
1588
1588
|
return D.currentSelectedDataId.value;
|
|
1589
1589
|
}
|
|
1590
|
-
function mt(
|
|
1591
|
-
const Fe = b.value.find((xe) => xe[c.value] ===
|
|
1590
|
+
function mt(G, ae, we) {
|
|
1591
|
+
const Fe = b.value.find((xe) => xe[c.value] === G);
|
|
1592
1592
|
if (Fe) {
|
|
1593
1593
|
if (Object.keys(Fe).forEach((Se) => {
|
|
1594
1594
|
Object.prototype.hasOwnProperty.call(ae, Se) && (Fe[Se] = ae[Se]);
|
|
@@ -1601,7 +1601,7 @@ const $t = /* @__PURE__ */ Ee({
|
|
|
1601
1601
|
} = we;
|
|
1602
1602
|
Se && !qe(ae[Se]) && (Fe.__fv_collapse__ = ae[Se]), Ze && !qe(ae[Ze]) && (Fe.__fv_checked__ = ae[Ze]), Qe && !qe(ae[Qe]) && (Fe.__fv_disabled__ = ae[Qe]), et && !qe(ae[et]) && (Fe.__fv_visible__ = ae[et]);
|
|
1603
1603
|
}
|
|
1604
|
-
const xe = a.value.find((Se) => Se.raw[c.value] ===
|
|
1604
|
+
const xe = a.value.find((Se) => Se.raw[c.value] === G), Qt = a.value.findIndex((Se) => Se.raw[c.value] === G);
|
|
1605
1605
|
if (xe) {
|
|
1606
1606
|
if (xe.raw = Fe, Object.keys(xe.data).forEach((Se) => {
|
|
1607
1607
|
xe.data[Se].updateData(Fe);
|
|
@@ -1618,24 +1618,24 @@ const $t = /* @__PURE__ */ Ee({
|
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
1620
|
}
|
|
1621
|
-
function vt(
|
|
1622
|
-
return Object.prototype.hasOwnProperty.call(
|
|
1621
|
+
function vt(G) {
|
|
1622
|
+
return Object.prototype.hasOwnProperty.call(G, "raw") ? h.hasRealChildren(G.raw) : h.hasRealChildren(G);
|
|
1623
1623
|
}
|
|
1624
|
-
function ko(
|
|
1625
|
-
const ae = h.dataView.value.find((we) => we[c.value] ===
|
|
1624
|
+
function ko(G) {
|
|
1625
|
+
const ae = h.dataView.value.find((we) => we[c.value] === G);
|
|
1626
1626
|
return ae ? ae[z.value] : "";
|
|
1627
1627
|
}
|
|
1628
1628
|
function Oo() {
|
|
1629
1629
|
return z.value;
|
|
1630
1630
|
}
|
|
1631
|
-
me(() => e.showSetting, (
|
|
1632
|
-
|
|
1631
|
+
me(() => e.showSetting, (G, ae) => {
|
|
1632
|
+
G !== ae && (G ? R(l) : I(l), U(l.value));
|
|
1633
1633
|
});
|
|
1634
|
-
function Po(
|
|
1635
|
-
return a.value.filter((ae) =>
|
|
1634
|
+
function Po(G) {
|
|
1635
|
+
return a.value.filter((ae) => G.includes(ae.raw[e.idField]));
|
|
1636
1636
|
}
|
|
1637
|
-
function No(
|
|
1638
|
-
const ae = o.idField.value, we = a.value.find((Fe) => Fe.raw[ae] ===
|
|
1637
|
+
function No(G) {
|
|
1638
|
+
const ae = o.idField.value, we = a.value.find((Fe) => Fe.raw[ae] === G);
|
|
1639
1639
|
we && ce.changeRow(we);
|
|
1640
1640
|
}
|
|
1641
1641
|
function Lo() {
|
|
@@ -1653,7 +1653,7 @@ const $t = /* @__PURE__ */ Ee({
|
|
|
1653
1653
|
acceptDataItem: At,
|
|
1654
1654
|
cancelDataItem: F,
|
|
1655
1655
|
updateColumns: U,
|
|
1656
|
-
updateDataSource:
|
|
1656
|
+
updateDataSource: Y,
|
|
1657
1657
|
selectItemById: se,
|
|
1658
1658
|
selectItemByIds: Oe,
|
|
1659
1659
|
getSelectedItems: Be,
|
|
@@ -1673,8 +1673,8 @@ const $t = /* @__PURE__ */ Ee({
|
|
|
1673
1673
|
calculateColumnsSize: Le
|
|
1674
1674
|
});
|
|
1675
1675
|
const Vo = te(() => {
|
|
1676
|
-
const
|
|
1677
|
-
return ge.shouldShowHorizontalScrollbar.value && (
|
|
1676
|
+
const G = {};
|
|
1677
|
+
return ge.shouldShowHorizontalScrollbar.value && (G.paddingBottom = "10px"), ge.shouldShowVirticalScrollbar.value && (G.paddingRight = "10px"), G;
|
|
1678
1678
|
}), jo = te(() => ({
|
|
1679
1679
|
...L.value,
|
|
1680
1680
|
borderRadius: "5px"
|
|
@@ -1701,10 +1701,10 @@ const $t = /* @__PURE__ */ Ee({
|
|
|
1701
1701
|
class: le.value,
|
|
1702
1702
|
onMouseover: () => u.value = !0,
|
|
1703
1703
|
onMouseleave: () => u.value = !1,
|
|
1704
|
-
onTouchstart: (
|
|
1705
|
-
|
|
1704
|
+
onTouchstart: (G) => {
|
|
1705
|
+
G.stopPropagation(), u.value = !0, ge.onTouchstartScrollThumb(G, d);
|
|
1706
1706
|
},
|
|
1707
|
-
onTouchend: (
|
|
1707
|
+
onTouchend: (G) => {
|
|
1708
1708
|
u.value = !1;
|
|
1709
1709
|
},
|
|
1710
1710
|
style: Vo.value
|