@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,13 +274,13 @@ var yi = { exports: {} };
|
|
|
274
274
|
var $ = arguments.length;
|
|
275
275
|
$ === 1 && Array.isArray(D) === !1 && (O = D, D = []);
|
|
276
276
|
var R, j, F, P, B, M, L, N, z, _ = null, Q, G, te = !1, W = 0, U, H = O || {};
|
|
277
|
-
H.moves === void 0 && (H.moves = C), H.accepts === void 0 && (H.accepts = C), H.invalid === void 0 && (H.invalid =
|
|
277
|
+
H.moves === void 0 && (H.moves = C), H.accepts === void 0 && (H.accepts = C), H.invalid === void 0 && (H.invalid = fe), H.containers === void 0 && (H.containers = D || []), H.isContainer === void 0 && (H.isContainer = y), H.copy === void 0 && (H.copy = !1), H.copySortSource === void 0 && (H.copySortSource = !1), H.revertOnSpill === void 0 && (H.revertOnSpill = !1), H.removeOnSpill === void 0 && (H.removeOnSpill = !1), H.direction === void 0 && (H.direction = "vertical"), H.ignoreInputTextSelection === void 0 && (H.ignoreInputTextSelection = !0), H.mirrorContainer === void 0 && (H.mirrorContainer = s.body);
|
|
278
278
|
var Z = i({
|
|
279
279
|
containers: H.containers,
|
|
280
|
-
start:
|
|
280
|
+
start: pe,
|
|
281
281
|
end: Me,
|
|
282
282
|
cancel: q,
|
|
283
|
-
remove:
|
|
283
|
+
remove: ye,
|
|
284
284
|
destroy: Pe,
|
|
285
285
|
canMove: Se,
|
|
286
286
|
dragging: !1
|
|
@@ -311,8 +311,8 @@ var yi = { exports: {} };
|
|
|
311
311
|
P = X.clientX, B = X.clientY;
|
|
312
312
|
var ie = v(X) !== 1 || X.metaKey || X.ctrlKey;
|
|
313
313
|
if (!ie) {
|
|
314
|
-
var
|
|
315
|
-
Ie && (Q = Ie, ge(), X.type === "mousedown" && (x(
|
|
314
|
+
var be = X.target, Ie = Ve(be);
|
|
315
|
+
Ie && (Q = Ie, ge(), X.type === "mousedown" && (x(be) ? be.focus() : X.preventDefault()));
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
function Ee(X) {
|
|
@@ -323,7 +323,7 @@ var yi = { exports: {} };
|
|
|
323
323
|
}
|
|
324
324
|
if (!(X.clientX !== void 0 && Math.abs(X.clientX - P) <= (H.slideFactorX || 0) && X.clientY !== void 0 && Math.abs(X.clientY - B) <= (H.slideFactorY || 0))) {
|
|
325
325
|
if (H.ignoreInputTextSelection) {
|
|
326
|
-
var ie = E("clientX", X) || 0,
|
|
326
|
+
var ie = E("clientX", X) || 0, be = E("clientY", X) || 0, Ie = s.elementFromPoint(ie, be);
|
|
327
327
|
if (x(Ie))
|
|
328
328
|
return;
|
|
329
329
|
}
|
|
@@ -337,13 +337,13 @@ var yi = { exports: {} };
|
|
|
337
337
|
for (var ie = X; S(X) && ne(S(X)) === !1; )
|
|
338
338
|
if (H.invalid(X, ie) || (X = S(X), !X))
|
|
339
339
|
return;
|
|
340
|
-
var
|
|
341
|
-
if (
|
|
342
|
-
var Ie = H.moves(X,
|
|
340
|
+
var be = S(X);
|
|
341
|
+
if (be && !H.invalid(X, ie)) {
|
|
342
|
+
var Ie = H.moves(X, be, ie, T(X));
|
|
343
343
|
if (Ie)
|
|
344
344
|
return {
|
|
345
345
|
item: X,
|
|
346
|
-
source:
|
|
346
|
+
source: be
|
|
347
347
|
};
|
|
348
348
|
}
|
|
349
349
|
}
|
|
@@ -351,14 +351,14 @@ var yi = { exports: {} };
|
|
|
351
351
|
function Se(X) {
|
|
352
352
|
return !!Ve(X);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function pe(X) {
|
|
355
355
|
var ie = Ve(X);
|
|
356
356
|
ie && ee(ie);
|
|
357
357
|
}
|
|
358
358
|
function ee(X) {
|
|
359
359
|
mn(X.item, X.source) && (N = X.item.cloneNode(!0), Z.emit("cloned", N, X.item, "copy")), j = X.source, F = X.item, M = L = T(X.item), Z.dragging = !0, Z.emit("drag", F, j);
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function fe() {
|
|
362
362
|
return !1;
|
|
363
363
|
}
|
|
364
364
|
function Me() {
|
|
@@ -372,15 +372,15 @@ var yi = { exports: {} };
|
|
|
372
372
|
}
|
|
373
373
|
function Ye(X) {
|
|
374
374
|
if (Oe(), !!Z.dragging) {
|
|
375
|
-
var ie = N || F,
|
|
376
|
-
He && (N && H.copySortSource || !N || He !== j) ? Je(ie, He) : H.removeOnSpill ?
|
|
375
|
+
var ie = N || F, be = E("clientX", X) || 0, Ie = E("clientY", X) || 0, je = h(R, be, Ie), He = qe(je, be, Ie);
|
|
376
|
+
He && (N && H.copySortSource || !N || He !== j) ? Je(ie, He) : H.removeOnSpill ? ye() : q();
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
function Je(X, ie) {
|
|
380
|
-
var
|
|
381
|
-
N && H.copySortSource && ie === j &&
|
|
380
|
+
var be = S(X);
|
|
381
|
+
N && H.copySortSource && ie === j && be.removeChild(F), Ge(ie) ? Z.emit("cancel", X, j) : Z.emit("drop", X, ie, j, L), xe();
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function ye() {
|
|
384
384
|
if (Z.dragging) {
|
|
385
385
|
var X = N || F, ie = S(X);
|
|
386
386
|
ie && ie.removeChild(X), Z.emit(N ? "cancel" : "remove", X, ie, j), xe();
|
|
@@ -388,8 +388,8 @@ var yi = { exports: {} };
|
|
|
388
388
|
}
|
|
389
389
|
function q(X) {
|
|
390
390
|
if (Z.dragging) {
|
|
391
|
-
var ie = arguments.length > 0 ? X : H.revertOnSpill,
|
|
392
|
-
je === !1 && ie && (N ? Ie && Ie.removeChild(N) : j.insertBefore(
|
|
391
|
+
var ie = arguments.length > 0 ? X : H.revertOnSpill, be = N || F, Ie = S(be), je = Ge(Ie);
|
|
392
|
+
je === !1 && ie && (N ? Ie && Ie.removeChild(N) : j.insertBefore(be, M)), je || ie ? Z.emit("cancel", be, j, j) : Z.emit("drop", be, Ie, j, L), xe();
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
function xe() {
|
|
@@ -397,10 +397,10 @@ var yi = { exports: {} };
|
|
|
397
397
|
Oe(), We(), Pt(), X && f.rm(X, "gu-transit"), z && clearTimeout(z), Z.dragging = !1, _ && Z.emit("out", X, _, j), Z.emit("dragend", X, W), j = F = N = M = L = z = _ = null;
|
|
398
398
|
}
|
|
399
399
|
function Ge(X, ie) {
|
|
400
|
-
var
|
|
401
|
-
return ie !== void 0 ?
|
|
400
|
+
var be;
|
|
401
|
+
return ie !== void 0 ? be = ie : R ? be = L : be = T(N || F), X === j && be === M;
|
|
402
402
|
}
|
|
403
|
-
function qe(X, ie,
|
|
403
|
+
function qe(X, ie, be) {
|
|
404
404
|
for (var Ie = X; Ie && !je(); )
|
|
405
405
|
Ie = S(Ie);
|
|
406
406
|
return Ie;
|
|
@@ -408,7 +408,7 @@ var yi = { exports: {} };
|
|
|
408
408
|
var He = ne(Ie);
|
|
409
409
|
if (He === !1)
|
|
410
410
|
return !1;
|
|
411
|
-
var pt = Ot(Ie, X), ct = an(Ie, pt, ie,
|
|
411
|
+
var pt = Ot(Ie, X), ct = an(Ie, pt, ie, be), dt = Ge(Ie, ct);
|
|
412
412
|
return dt ? !0 : H.accepts(F, Ie, j, ct);
|
|
413
413
|
}
|
|
414
414
|
}
|
|
@@ -416,10 +416,10 @@ var yi = { exports: {} };
|
|
|
416
416
|
if (!R)
|
|
417
417
|
return;
|
|
418
418
|
X.preventDefault();
|
|
419
|
-
var ie = E("clientX", X) || 0,
|
|
420
|
-
R.style.left = ie - 2 + "px", R.style.top =
|
|
421
|
-
var Ie = N || F, je = h(R, ie,
|
|
422
|
-
(pt || He === null) && (vt(), _ = He, Ct()), vn(je,
|
|
419
|
+
var ie = E("clientX", X) || 0, be = E("clientY", X) || 0;
|
|
420
|
+
R.style.left = ie - 2 + "px", R.style.top = be - 2 + "px";
|
|
421
|
+
var Ie = N || F, je = h(R, ie, be), He = qe(je, ie, be), pt = He !== null && He !== _;
|
|
422
|
+
(pt || He === null) && (vt(), _ = He, Ct()), vn(je, be);
|
|
423
423
|
var ct = S(Ie);
|
|
424
424
|
if (He === j && N && !H.copySortSource) {
|
|
425
425
|
ct && ct.removeChild(Ie);
|
|
@@ -427,7 +427,7 @@ var yi = { exports: {} };
|
|
|
427
427
|
}
|
|
428
428
|
var dt, bt = Ot(He, je);
|
|
429
429
|
if (te = Ft(bt, He), bt !== null)
|
|
430
|
-
dt = an(He, bt, ie,
|
|
430
|
+
dt = an(He, bt, ie, be);
|
|
431
431
|
else if (H.revertOnSpill === !0 && !N)
|
|
432
432
|
dt = M, He = j;
|
|
433
433
|
else {
|
|
@@ -445,8 +445,8 @@ var yi = { exports: {} };
|
|
|
445
445
|
_ && Ke("out");
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
function Wt(X, ie,
|
|
449
|
-
(X === ie || X === T(ie)) && (L = T(ie)), (X === null &&
|
|
448
|
+
function Wt(X, ie, be) {
|
|
449
|
+
(X === ie || X === T(ie)) && (L = T(ie)), (X === null && be || X !== ie && X !== T(ie)) && (L = X);
|
|
450
450
|
}
|
|
451
451
|
function Y(X) {
|
|
452
452
|
f.rm(X, "gu-hide");
|
|
@@ -471,15 +471,15 @@ var yi = { exports: {} };
|
|
|
471
471
|
G && (S(G).removeChild(G), G = null);
|
|
472
472
|
}
|
|
473
473
|
function Ot(X, ie) {
|
|
474
|
-
for (var
|
|
475
|
-
|
|
476
|
-
return
|
|
474
|
+
for (var be = ie; be !== X && S(be) !== X; )
|
|
475
|
+
be = S(be);
|
|
476
|
+
return be === c ? null : be;
|
|
477
477
|
}
|
|
478
478
|
function Ft(X, ie) {
|
|
479
479
|
if (!ie)
|
|
480
480
|
return te;
|
|
481
|
-
var
|
|
482
|
-
if (!
|
|
481
|
+
var be = X || ie && ie.lastElementChild;
|
|
482
|
+
if (!be)
|
|
483
483
|
return !0;
|
|
484
484
|
var Ie = getComputedStyle(X), je = /^inline/.test(Ie.getPropertyValue("display")) || /^(left|right)$/.test(Ie.getPropertyValue("float"));
|
|
485
485
|
if (je)
|
|
@@ -511,15 +511,15 @@ var yi = { exports: {} };
|
|
|
511
511
|
return !0;
|
|
512
512
|
}
|
|
513
513
|
function fn(X, ie) {
|
|
514
|
-
const
|
|
515
|
-
if (G.style.left =
|
|
516
|
-
if (G.style.height =
|
|
514
|
+
const be = ie.getBoundingClientRect();
|
|
515
|
+
if (G.style.left = be.left + "px", G.style.top = be.top + "px", te) {
|
|
516
|
+
if (G.style.height = be.height + "px", G.style.width = "4px", X) {
|
|
517
517
|
const Ie = X.getBoundingClientRect();
|
|
518
|
-
Ie.top !==
|
|
518
|
+
Ie.top !== be.top && (G.style.left = Ie.right + "px", G.style.top = Ie.top + "px", G.style.height = Ie.height + "px");
|
|
519
519
|
}
|
|
520
|
-
} else if (G.style.height = "4px", G.style.width =
|
|
520
|
+
} else if (G.style.height = "4px", G.style.width = be.width + "px", U) {
|
|
521
521
|
const Ie = U.getBoundingClientRect();
|
|
522
|
-
|
|
522
|
+
be.top < Ie.top && (G.style.display = "none");
|
|
523
523
|
}
|
|
524
524
|
ie === F && F && (G.style.display = "none");
|
|
525
525
|
}
|
|
@@ -527,42 +527,42 @@ var yi = { exports: {} };
|
|
|
527
527
|
L = null;
|
|
528
528
|
var ie = X.lastElementChild;
|
|
529
529
|
if (ie) {
|
|
530
|
-
var
|
|
531
|
-
te ? (G.style.left =
|
|
530
|
+
var be = ie.getBoundingClientRect();
|
|
531
|
+
te ? (G.style.left = be.right + "px", G.style.top = be.top + "px", G.style.height = be.height + "px", G.style.width = "4px") : (G.style.left = be.left + "px", G.style.top = be.bottom + "px", G.style.height = "4px", G.style.width = be.width + "px"), ie === F && F && (G.style.display = "none");
|
|
532
532
|
} else
|
|
533
533
|
G.style.display = "none";
|
|
534
534
|
}
|
|
535
535
|
function vn(X, ie) {
|
|
536
536
|
if (!H.mirrorContainer.contains(X) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (U = g(X), !U || !U.contains(X)))
|
|
537
537
|
return;
|
|
538
|
-
const
|
|
538
|
+
const be = document && document.querySelector(".dgComponentSelected"), Ie = U.getBoundingClientRect();
|
|
539
539
|
if (ie - 30 < Ie.top && U.scrollTop > 0) {
|
|
540
540
|
let je = U.scrollTop < 10 ? U.scrollTop : 10;
|
|
541
|
-
U.scrollBy(0, -1 * je),
|
|
541
|
+
U.scrollBy(0, -1 * je), be && U.contains(be) && (W = W + -1 * je);
|
|
542
542
|
}
|
|
543
543
|
if (ie + 30 > Ie.bottom && U.scrollTop < U.scrollHeight - U.clientHeight) {
|
|
544
544
|
const je = U.scrollHeight - U.clientHeight - U.scrollTop;
|
|
545
545
|
let He = je < 10 ? je : 10;
|
|
546
|
-
U.scrollBy(0, He),
|
|
546
|
+
U.scrollBy(0, He), be && U.contains(be) && (W = W + He);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
function an(X, ie,
|
|
549
|
+
function an(X, ie, be, Ie) {
|
|
550
550
|
var je = H.direction === "horizontal", He = H.direction === "mixed", pt = ie !== X ? dt() : ct();
|
|
551
551
|
return pt;
|
|
552
552
|
function ct() {
|
|
553
553
|
var Ke = X.children.length, Ct, vt, rt;
|
|
554
554
|
for (Ct = 0; Ct < Ke; Ct++)
|
|
555
|
-
if (vt = X.children[Ct], rt = vt.getBoundingClientRect(), je && rt.left + rt.width / 2 >
|
|
555
|
+
if (vt = X.children[Ct], rt = vt.getBoundingClientRect(), je && rt.left + rt.width / 2 > be || !He && !je && rt.top + rt.height / 2 > Ie || He && rt.left + rt.width > be && rt.top + rt.height > Ie)
|
|
556
556
|
return vt;
|
|
557
557
|
return null;
|
|
558
558
|
}
|
|
559
559
|
function dt() {
|
|
560
560
|
var Ke = ie.getBoundingClientRect();
|
|
561
561
|
if (He) {
|
|
562
|
-
var Ct = Ie - Ke.top, vt =
|
|
562
|
+
var Ct = Ie - Ke.top, vt = be - Ke.left, rt = Ke.bottom - Ie, qt = Ke.right - be, Xt = Math.min(vt, qt, Ct, rt), Yt;
|
|
563
563
|
return te ? Yt = qt < vt : Yt = rt === Xt || qt === Xt || vt === Xt, bt(Yt);
|
|
564
564
|
}
|
|
565
|
-
return bt(je ?
|
|
565
|
+
return bt(je ? be > Ke.left + V(Ke) / 2 : Ie > Ke.top + I(Ke) / 2);
|
|
566
566
|
}
|
|
567
567
|
function bt(Ke) {
|
|
568
568
|
return Ke ? T(ie) : ie;
|
|
@@ -1494,19 +1494,19 @@ const Co = /* @__PURE__ */ Be({
|
|
|
1494
1494
|
onWheel: Ee,
|
|
1495
1495
|
dataGridWidth: Ve,
|
|
1496
1496
|
viewPortHeight: Se,
|
|
1497
|
-
viewPortWidth:
|
|
1497
|
+
viewPortWidth: pe,
|
|
1498
1498
|
resetScroll: ee,
|
|
1499
|
-
updateVisibleRowsOnLatestVisibleScope:
|
|
1500
|
-
} = me, Me = Ga(e, Q, s,
|
|
1499
|
+
updateVisibleRowsOnLatestVisibleScope: fe
|
|
1500
|
+
} = me, Me = Ga(e, Q, s, pe, te), {
|
|
1501
1501
|
calculateColumnsSize: Oe
|
|
1502
|
-
} = Me, Ye = Wa(), Je = qa(s, g, x, Ye, me),
|
|
1503
|
-
const
|
|
1502
|
+
} = Me, Ye = Wa(), Je = qa(s, g, x, Ye, me), ye = Xa(e, n, N, x, te, h, me), q = A(() => {
|
|
1503
|
+
const he = {
|
|
1504
1504
|
"fv-grid": !0,
|
|
1505
1505
|
"fv-grid-bordered": e.showBorder,
|
|
1506
1506
|
"fv-grid-horizontal-bordered": e.showHorizontalLines,
|
|
1507
1507
|
"fv-datagrid-strip": e.showStripe
|
|
1508
1508
|
};
|
|
1509
|
-
return It(
|
|
1509
|
+
return It(he, e.customClass);
|
|
1510
1510
|
}), xe = A(() => ({
|
|
1511
1511
|
"fv-grid-content": !0,
|
|
1512
1512
|
"fv-grid-content-hover": m.value,
|
|
@@ -1517,7 +1517,7 @@ const Co = /* @__PURE__ */ Be({
|
|
|
1517
1517
|
renderGridHeader: qe,
|
|
1518
1518
|
renderGridColumnResizeOverlay: tt,
|
|
1519
1519
|
shouldShowHeader: Wt
|
|
1520
|
-
} = Ya(e, n, s, d, g, N, x,
|
|
1520
|
+
} = Ya(e, n, s, d, g, N, x, ye, Je, y, Ye, Me, te, T, Pe, z, me, pe, u), {
|
|
1521
1521
|
renderDataGridSidebar: Y
|
|
1522
1522
|
} = Ja(e, W, T, Pe, me), {
|
|
1523
1523
|
renderDisableMask: Le
|
|
@@ -1527,79 +1527,79 @@ const Co = /* @__PURE__ */ Be({
|
|
|
1527
1527
|
renderVerticalScrollbar: Fe
|
|
1528
1528
|
} = Ka(e, s, me);
|
|
1529
1529
|
function We() {
|
|
1530
|
-
var
|
|
1531
|
-
if (s.value && s.value.clientHeight > 0 && ((
|
|
1530
|
+
var he, De, at;
|
|
1531
|
+
if (s.value && s.value.clientHeight > 0 && ((he = s.value) == null ? void 0 : he.clientWidth) > 0) {
|
|
1532
1532
|
const st = Math.ceil(s.value.clientHeight / o);
|
|
1533
|
-
st > a.value && (a.value = st,
|
|
1533
|
+
st > a.value && (a.value = st, fe()), Se.value = ((De = c.value) == null ? void 0 : De.clientHeight) || 0, Ve.value = ((at = s.value) == null ? void 0 : at.clientWidth) || 0;
|
|
1534
1534
|
}
|
|
1535
1535
|
s.value && (s.value.clientHeight > 0 || s.value.clientWidth > 0) && Oe();
|
|
1536
1536
|
}
|
|
1537
1537
|
Ae(() => {
|
|
1538
1538
|
s.value && (a.value = Math.max(Math.ceil(s.value.clientHeight / o), a.value), u.value = ge(0, $.value + 0 - 1), Ra(s.value, We), Oe(), et(() => {
|
|
1539
|
-
s.value && (Ve.value = s.value.clientWidth), c.value && (
|
|
1539
|
+
s.value && (Ve.value = s.value.clientWidth), c.value && (pe.value = c.value.clientWidth, Se.value = c.value.clientHeight);
|
|
1540
1540
|
})), I.value && S();
|
|
1541
1541
|
}), yt(() => {
|
|
1542
|
-
}), J(
|
|
1542
|
+
}), J(pe, () => {
|
|
1543
1543
|
s.value && Oe();
|
|
1544
1544
|
});
|
|
1545
|
-
function Pt(
|
|
1546
|
-
x.collapseTo(
|
|
1545
|
+
function Pt(he) {
|
|
1546
|
+
x.collapseTo(he), x.reOrderVisibleIndex(), ee();
|
|
1547
1547
|
}
|
|
1548
|
-
function Ot(
|
|
1549
|
-
x.expandTo(
|
|
1548
|
+
function Ot(he) {
|
|
1549
|
+
x.expandTo(he), x.reOrderVisibleIndex(), ee();
|
|
1550
1550
|
}
|
|
1551
1551
|
function Ft() {
|
|
1552
|
-
const
|
|
1553
|
-
return
|
|
1552
|
+
const he = T.getSelectionRow();
|
|
1553
|
+
return he ? he.dataIndex - 1 : -1;
|
|
1554
1554
|
}
|
|
1555
1555
|
function dn() {
|
|
1556
|
-
const
|
|
1557
|
-
x.insertNewDataItem(
|
|
1556
|
+
const he = Ft();
|
|
1557
|
+
x.insertNewDataItem(he === -1 ? 0 : he), u.value = ge(0, $.value + 0 - 1);
|
|
1558
1558
|
}
|
|
1559
1559
|
function fn() {
|
|
1560
|
-
const
|
|
1561
|
-
x.insertNewChildDataItem(
|
|
1560
|
+
const he = Ft();
|
|
1561
|
+
x.insertNewChildDataItem(he), u.value = ge(0, $.value + 0 - 1);
|
|
1562
1562
|
}
|
|
1563
|
-
function pn(
|
|
1563
|
+
function pn(he, De) {
|
|
1564
1564
|
const at = u.value.find((mt) => mt.raw[r.value] === De), st = at ? at.dataIndex - 1 : -1;
|
|
1565
|
-
x.insertNewChildDataItems(
|
|
1565
|
+
x.insertNewChildDataItems(he, st);
|
|
1566
1566
|
}
|
|
1567
1567
|
function vn() {
|
|
1568
|
-
const
|
|
1569
|
-
x.removeHierarchyDataItem(
|
|
1568
|
+
const he = Ft(), De = D.getNextSelectableHierarchyItemId(he);
|
|
1569
|
+
x.removeHierarchyDataItem(he), u.value = ge(0, $.value + 0 - 1), De && D.selectItemById(De);
|
|
1570
1570
|
}
|
|
1571
|
-
function an(
|
|
1572
|
-
U.onEditingRow(
|
|
1571
|
+
function an(he) {
|
|
1572
|
+
U.onEditingRow(he);
|
|
1573
1573
|
}
|
|
1574
|
-
function mn(
|
|
1575
|
-
U.acceptEditingRow(
|
|
1574
|
+
function mn(he) {
|
|
1575
|
+
U.acceptEditingRow(he);
|
|
1576
1576
|
}
|
|
1577
|
-
function X(
|
|
1578
|
-
U.cancelEditingRow(
|
|
1577
|
+
function X(he) {
|
|
1578
|
+
U.cancelEditingRow(he);
|
|
1579
1579
|
}
|
|
1580
|
-
function ie(
|
|
1581
|
-
|
|
1580
|
+
function ie(he) {
|
|
1581
|
+
he && (l.value = he, B(l), G(l.value), _(x, z), Oe());
|
|
1582
1582
|
}
|
|
1583
|
-
J(() => e.columns, (
|
|
1584
|
-
ie(
|
|
1583
|
+
J(() => e.columns, (he) => {
|
|
1584
|
+
ie(he);
|
|
1585
1585
|
});
|
|
1586
|
-
function
|
|
1587
|
-
|
|
1586
|
+
function be(he, De) {
|
|
1587
|
+
he && (x.load(he), x.reOrderVisibleIndex(), De != null && De.keepScrollPosition ? me.scrollTo(me.offsetY.value) : ee());
|
|
1588
1588
|
}
|
|
1589
|
-
function Ie(
|
|
1590
|
-
W.activeRowById(
|
|
1589
|
+
function Ie(he) {
|
|
1590
|
+
W.activeRowById(he);
|
|
1591
1591
|
}
|
|
1592
|
-
function je(
|
|
1592
|
+
function je(he, De = {
|
|
1593
1593
|
isCurrent: !0
|
|
1594
1594
|
}) {
|
|
1595
|
-
De != null && De.isCurrent && Ie(
|
|
1595
|
+
De != null && De.isCurrent && Ie(he), D.selectItemById(he);
|
|
1596
1596
|
}
|
|
1597
|
-
function He(
|
|
1598
|
-
const De = u.value.find((at) => at.raw[i.idField.value] ===
|
|
1597
|
+
function He(he) {
|
|
1598
|
+
const De = u.value.find((at) => at.raw[i.idField.value] === he);
|
|
1599
1599
|
De && W.clickRowItem(De);
|
|
1600
1600
|
}
|
|
1601
|
-
function pt(
|
|
1602
|
-
D.selectItemByIds(
|
|
1601
|
+
function pt(he) {
|
|
1602
|
+
D.selectItemByIds(he);
|
|
1603
1603
|
}
|
|
1604
1604
|
function ct() {
|
|
1605
1605
|
return T.getSelectedItems();
|
|
@@ -1616,16 +1616,16 @@ const Co = /* @__PURE__ */ Be({
|
|
|
1616
1616
|
function vt() {
|
|
1617
1617
|
return T.getSelectionRow();
|
|
1618
1618
|
}
|
|
1619
|
-
function rt(
|
|
1619
|
+
function rt(he, De = {
|
|
1620
1620
|
clearCurrent: !0
|
|
1621
1621
|
}) {
|
|
1622
|
-
De != null && De.clearCurrent && Ie(""), D.unSelectItemByIds(
|
|
1622
|
+
De != null && De.clearCurrent && Ie(""), D.unSelectItemByIds(he);
|
|
1623
1623
|
}
|
|
1624
1624
|
function qt() {
|
|
1625
1625
|
return T.currentSelectedDataId.value;
|
|
1626
1626
|
}
|
|
1627
|
-
function Xt(
|
|
1628
|
-
const st = k.value.find((mt) => mt[r.value] ===
|
|
1627
|
+
function Xt(he, De, at) {
|
|
1628
|
+
const st = k.value.find((mt) => mt[r.value] === he);
|
|
1629
1629
|
if (st) {
|
|
1630
1630
|
if (Object.keys(st).forEach((lt) => {
|
|
1631
1631
|
Object.prototype.hasOwnProperty.call(De, lt) && (st[lt] = De[lt]);
|
|
@@ -1634,11 +1634,11 @@ const Co = /* @__PURE__ */ Be({
|
|
|
1634
1634
|
collapseField: lt,
|
|
1635
1635
|
disabledField: kt,
|
|
1636
1636
|
checkedField: Et,
|
|
1637
|
-
visibleField:
|
|
1637
|
+
visibleField: ce
|
|
1638
1638
|
} = at;
|
|
1639
|
-
lt && !Rt(De[lt]) && (st.__fv_collapse__ = De[lt]), Et && !Rt(De[Et]) && (st.__fv_checked__ = De[Et]), kt && !Rt(De[kt]) && (st.__fv_disabled__ = De[kt]),
|
|
1639
|
+
lt && !Rt(De[lt]) && (st.__fv_collapse__ = De[lt]), Et && !Rt(De[Et]) && (st.__fv_checked__ = De[Et]), kt && !Rt(De[kt]) && (st.__fv_disabled__ = De[kt]), ce && !Rt(De[ce]) && (st.__fv_visible__ = De[ce]);
|
|
1640
1640
|
}
|
|
1641
|
-
const mt = u.value.find((lt) => lt.raw[r.value] ===
|
|
1641
|
+
const mt = u.value.find((lt) => lt.raw[r.value] === he), Mn = u.value.findIndex((lt) => lt.raw[r.value] === he);
|
|
1642
1642
|
if (mt) {
|
|
1643
1643
|
if (mt.raw = st, Object.keys(mt.data).forEach((lt) => {
|
|
1644
1644
|
mt.data[lt].updateData(st);
|
|
@@ -1647,32 +1647,32 @@ const Co = /* @__PURE__ */ Be({
|
|
|
1647
1647
|
collapseField: lt,
|
|
1648
1648
|
disabledField: kt,
|
|
1649
1649
|
checkedField: Et,
|
|
1650
|
-
visibleField:
|
|
1650
|
+
visibleField: ce
|
|
1651
1651
|
} = at;
|
|
1652
|
-
lt && !Rt(De[lt]) && (mt.collapse = De[lt]), Et && !Rt(De[Et]) && (mt.checked = De[Et]), kt && !Rt(De[kt]) && (mt.disabled = De[kt]),
|
|
1652
|
+
lt && !Rt(De[lt]) && (mt.collapse = De[lt]), Et && !Rt(De[Et]) && (mt.checked = De[Et]), kt && !Rt(De[kt]) && (mt.disabled = De[kt]), ce && !Rt(De[ce]) && (mt.visible = De[ce]);
|
|
1653
1653
|
}
|
|
1654
1654
|
u.value = [...u.value.slice(0, Mn), mt, ...u.value.slice(Mn + 1)], x.updateSummary();
|
|
1655
1655
|
}
|
|
1656
1656
|
}
|
|
1657
1657
|
}
|
|
1658
|
-
function Yt(
|
|
1659
|
-
return Object.prototype.hasOwnProperty.call(
|
|
1658
|
+
function Yt(he) {
|
|
1659
|
+
return Object.prototype.hasOwnProperty.call(he, "raw") ? x.hasRealChildren(he.raw) : x.hasRealChildren(he);
|
|
1660
1660
|
}
|
|
1661
|
-
function io(
|
|
1662
|
-
const De = x.dataView.value.find((at) => at[r.value] ===
|
|
1661
|
+
function io(he) {
|
|
1662
|
+
const De = x.dataView.value.find((at) => at[r.value] === he);
|
|
1663
1663
|
return De ? De[V.value] : "";
|
|
1664
1664
|
}
|
|
1665
1665
|
function ro() {
|
|
1666
1666
|
return V.value;
|
|
1667
1667
|
}
|
|
1668
|
-
J(() => e.showSetting, (
|
|
1669
|
-
|
|
1668
|
+
J(() => e.showSetting, (he, De) => {
|
|
1669
|
+
he !== De && (he ? M(l) : L(l), ie(l.value));
|
|
1670
1670
|
});
|
|
1671
|
-
function so(
|
|
1672
|
-
return u.value.filter((De) =>
|
|
1671
|
+
function so(he) {
|
|
1672
|
+
return u.value.filter((De) => he.includes(De.raw[e.idField]));
|
|
1673
1673
|
}
|
|
1674
|
-
function uo(
|
|
1675
|
-
const De = i.idField.value, at = u.value.find((st) => st.raw[De] ===
|
|
1674
|
+
function uo(he) {
|
|
1675
|
+
const De = i.idField.value, at = u.value.find((st) => st.raw[De] === he);
|
|
1676
1676
|
at && W.changeRow(at);
|
|
1677
1677
|
}
|
|
1678
1678
|
function Pn() {
|
|
@@ -1690,7 +1690,7 @@ const Co = /* @__PURE__ */ Be({
|
|
|
1690
1690
|
acceptDataItem: mn,
|
|
1691
1691
|
cancelDataItem: X,
|
|
1692
1692
|
updateColumns: ie,
|
|
1693
|
-
updateDataSource:
|
|
1693
|
+
updateDataSource: be,
|
|
1694
1694
|
selectItemById: je,
|
|
1695
1695
|
selectItemByIds: pt,
|
|
1696
1696
|
getSelectedItems: ct,
|
|
@@ -1710,8 +1710,8 @@ const Co = /* @__PURE__ */ Be({
|
|
|
1710
1710
|
calculateColumnsSize: Oe
|
|
1711
1711
|
});
|
|
1712
1712
|
const co = A(() => {
|
|
1713
|
-
const
|
|
1714
|
-
return me.shouldShowHorizontalScrollbar.value && (
|
|
1713
|
+
const he = {};
|
|
1714
|
+
return me.shouldShowHorizontalScrollbar.value && (he.paddingBottom = "10px"), me.shouldShowVirticalScrollbar.value && (he.paddingRight = "10px"), he;
|
|
1715
1715
|
}), fo = A(() => ({
|
|
1716
1716
|
...F.value,
|
|
1717
1717
|
borderRadius: "5px"
|
|
@@ -1738,10 +1738,10 @@ const Co = /* @__PURE__ */ Be({
|
|
|
1738
1738
|
class: xe.value,
|
|
1739
1739
|
onMouseover: () => m.value = !0,
|
|
1740
1740
|
onMouseleave: () => m.value = !1,
|
|
1741
|
-
onTouchstart: (
|
|
1742
|
-
|
|
1741
|
+
onTouchstart: (he) => {
|
|
1742
|
+
he.stopPropagation(), m.value = !0, me.onTouchstartScrollThumb(he, s);
|
|
1743
1743
|
},
|
|
1744
|
-
onTouchend: (
|
|
1744
|
+
onTouchend: (he) => {
|
|
1745
1745
|
m.value = !1;
|
|
1746
1746
|
},
|
|
1747
1747
|
style: co.value
|
|
@@ -2344,7 +2344,7 @@ const cu = {
|
|
|
2344
2344
|
class: "farris-label-info text-danger"
|
|
2345
2345
|
}, [Re("*")]), e.showType === "visible" && o.value])]);
|
|
2346
2346
|
}
|
|
2347
|
-
}), { globalStorageKey: vu } = Va(), re = {}, se = {},
|
|
2347
|
+
}), { globalStorageKey: vu } = Va(), re = {}, se = {}, de = {}, ve = {};
|
|
2348
2348
|
async function mu() {
|
|
2349
2349
|
{
|
|
2350
2350
|
const e = {
|
|
@@ -2353,11 +2353,11 @@ async function mu() {
|
|
|
2353
2353
|
propertyEffectMap: Xr,
|
|
2354
2354
|
schemaResolverMap: qr
|
|
2355
2355
|
};
|
|
2356
|
-
cl.register(re, se,
|
|
2356
|
+
cl.register(re, se, de, ve), ul.register(re, se, de, ve), Go.register(re, se, de, ve), dl.register(re, se, de, ve), fl.register(re, se, de, ve, e), pl.register(re, se, de, ve), yo.register(re, se, de, ve, e), Gn.register(re, se, de, ve, e), yo.register(re, se, de, ve, e), Gn.register(re, se, de, ve, e), vl.register(re, se, de, ve, e), es.register(re, se, de, ve), gl.register(re, se, de, ve), yl.register(re, se, de, ve, e), hl.register(re, se, de, ve), bl.register(re, se, de, ve, e), Cl.register(re, se, de, ve, e), wl.register(re, se, de, ve), Sl.register(re, se, de, ve, e), ts.register(re, se, de, ve), ms.register(re, se, de, ve), Tl.register(re, se, de, ve), ns.register(re, se, de, ve), cs.register(re, se, de, ve), Fl.register(re, se, de, ve), xl.register(re, se, de, ve, e), Wo.register(re, se, de, ve, e), Pl.register(re, se, de, ve, e), Il.register(re, se, de, ve), kl.register(re, se, de, ve, e), is.register(re, se, de, ve), El.register(re, se, de, ve), Bl.register(re, se, de, ve), Ml.register(re, se, de, ve, e), Dl.register(re, se, de, ve), Ol.register(re, se, de, ve, e), Ll.register(re, se, de, ve), Vl.register(re, se, de, ve), Nl.register(re, se, de, ve), Rl.register(re, se, de, ve, e), Al.register(re, se, de, ve, e), jl.register(re, se, de, ve), zl.register(re, se, de, ve, e), Hl.register(re, se, de, ve), $l.register(re, se, de, ve), ss.register(re, se, de), _l.register(re, se, de, ve), Ul.register(re, se, de, ve, e), Gl.register(re, se, de, ve), Wl.register(re, se, de, ve), ql.register(re, se, de, ve), Xl.register(re, se, de, ve, e), ds.register(re, se, de, ve), Yl.register(re, se, de, ve, e), Jl.register(re, se, de, ve), Ql.register(re, se, de, ve), Zl.register(re, se, de, ve, e), Kl.register(re, se, de, ve), hn.register(re, se, de, ve), ti.register(re, se, de, ve), ei.register(re, se, de, ve), ni.register(re, se, de, ve), oi.register(re, se, de, ve, e), ai.register(re, se, de, ve), os.register(re, se, de, ve), us.register(re, se, de, ve), li.register(re, se, de, ve, e), fs.register(re, se, de, ve), ii.register(re, se, de, ve), ps.register(re, se, de, ve), vs.register(re, se, de, ve), gs.register(re, se, de, ve), ri.register(re, se, de, ve, e), hs.register(re, se, de, ve), ys.register(re, se, de, ve), si.register(re, se, de, ve), ui.register(re, se, de, ve, e), ci.register(re, se, de, ve, e), di.register(re, se, de, ve);
|
|
2357
2357
|
const n = window[vu];
|
|
2358
2358
|
if (n)
|
|
2359
2359
|
for (const t in n)
|
|
2360
|
-
n[t].createPropsResolver = Gt, n[t].register(re, se,
|
|
2360
|
+
n[t].createPropsResolver = Gt, n[t].register(re, se, de);
|
|
2361
2361
|
}
|
|
2362
2362
|
}
|
|
2363
2363
|
function gu() {
|
|
@@ -4157,13 +4157,13 @@ const bn = /* @__PURE__ */ Be({
|
|
|
4157
4157
|
function Ve(q) {
|
|
4158
4158
|
q.width && (t.value = q.width), q.height && (o.value = q.height), q.buttons && (k.value = q.buttons), q.title && (y.value = q.title);
|
|
4159
4159
|
}
|
|
4160
|
-
let Se = null,
|
|
4160
|
+
let Se = null, pe = null;
|
|
4161
4161
|
xo(() => {
|
|
4162
4162
|
I.value = z();
|
|
4163
4163
|
}), Ae(() => {
|
|
4164
|
-
D.value && !C.value && (C.value = D.value.parentElement, F.value = C.value, N(E.value, D.value, F.value)), Q.value && document.body.classList.add("modal-open"), Se = Mu(e, n),
|
|
4164
|
+
D.value && !C.value && (C.value = D.value.parentElement, F.value = C.value, N(E.value, D.value, F.value)), Q.value && document.body.classList.add("modal-open"), Se = Mu(e, n), pe = Du(e, n);
|
|
4165
4165
|
}), yt(() => {
|
|
4166
|
-
M && M(), Se && Se.remove(),
|
|
4166
|
+
M && M(), Se && Se.remove(), pe && pe.remove();
|
|
4167
4167
|
}), n.expose({
|
|
4168
4168
|
modalElementRef: D,
|
|
4169
4169
|
updateModalOptions: Ve,
|
|
@@ -4190,7 +4190,7 @@ const bn = /* @__PURE__ */ Be({
|
|
|
4190
4190
|
class: "f-icon modal_close"
|
|
4191
4191
|
}, null)])]);
|
|
4192
4192
|
}
|
|
4193
|
-
function
|
|
4193
|
+
function fe() {
|
|
4194
4194
|
return p("div", {
|
|
4195
4195
|
class: "modal-footer",
|
|
4196
4196
|
style: oe.value
|
|
@@ -4226,7 +4226,7 @@ const bn = /* @__PURE__ */ Be({
|
|
|
4226
4226
|
}, [ee()])]);
|
|
4227
4227
|
}
|
|
4228
4228
|
function Oe() {
|
|
4229
|
-
return n.slots.footerTemplate ? n.slots.footerTemplate() : w.value &&
|
|
4229
|
+
return n.slots.footerTemplate ? n.slots.footerTemplate() : w.value && fe();
|
|
4230
4230
|
}
|
|
4231
4231
|
function Ye(q) {
|
|
4232
4232
|
if (q.stopPropagation(), e.allowClickMaskToClose) {
|
|
@@ -4254,13 +4254,13 @@ const bn = /* @__PURE__ */ Be({
|
|
|
4254
4254
|
src: m.value
|
|
4255
4255
|
}, null)]), Oe()]), !r.value && D.value && !O.value && $(D.value)]);
|
|
4256
4256
|
}
|
|
4257
|
-
function
|
|
4257
|
+
function ye(q) {
|
|
4258
4258
|
return q || "body";
|
|
4259
4259
|
}
|
|
4260
4260
|
return Ma(() => {
|
|
4261
4261
|
Q.value && (H.value = pa() || 1050);
|
|
4262
4262
|
}), () => p(Da, {
|
|
4263
|
-
to:
|
|
4263
|
+
to: ye(e.host)
|
|
4264
4264
|
}, {
|
|
4265
4265
|
default: () => [Q.value && p(Ba, {
|
|
4266
4266
|
name: "fade",
|
|
@@ -5699,28 +5699,28 @@ function qu() {
|
|
|
5699
5699
|
K < 0 && (P += Math.abs(K));
|
|
5700
5700
|
const ge = /* @__PURE__ */ new Map([["default", 0 + U], ["portrait", 0 + U], ["landscape", 0 + U]]), le = /* @__PURE__ */ new Map([["default", P + H], ["portrait", P + H], ["landscape", P + H]]);
|
|
5701
5701
|
U < 0 && (F += Math.abs(U)), ne > 0 && (F += ne);
|
|
5702
|
-
const Pe = /* @__PURE__ */ new Map([["default", F + ne], ["portrait", F + ne], ["landscape", F + ne]]), oe = /* @__PURE__ */ new Map([["default", 0 + K], ["portrait", 0 + K], ["landscape", 0 + K]]), me = M.left > o.left, Ee = M.bottom > o.bottom, Ve = me ? 0 : Ee ? F / 2 : ge.get(_), Se = Ee ? P + M.bottom : me ? P / 2 : le.get(_),
|
|
5703
|
-
return [{ x: Ve, y: Se }, { x:
|
|
5702
|
+
const Pe = /* @__PURE__ */ new Map([["default", F + ne], ["portrait", F + ne], ["landscape", F + ne]]), oe = /* @__PURE__ */ new Map([["default", 0 + K], ["portrait", 0 + K], ["landscape", 0 + K]]), me = M.left > o.left, Ee = M.bottom > o.bottom, Ve = me ? 0 : Ee ? F / 2 : ge.get(_), Se = Ee ? P + M.bottom : me ? P / 2 : le.get(_), pe = Pe.get(_), ee = oe.get(_);
|
|
5703
|
+
return [{ x: Ve, y: Se }, { x: pe, y: ee }, { x: ne, y: K }];
|
|
5704
5704
|
}
|
|
5705
5705
|
function g(F, P, B, M, L, N, z) {
|
|
5706
5706
|
const _ = z === "south" || z === "west" ? "portrait" : "landscape", Q = L, G = _ === "landscape" ? "west" : "north", te = z, W = s(Q, N, G, F, P), { x: U, y: H } = W, Z = c(G, te, F, P), { x: ne, y: K } = Z;
|
|
5707
5707
|
K < 0 && (P += Math.abs(K)), U > 0 && (F += U), ne < 0 && (F += Math.abs(ne));
|
|
5708
|
-
const ge = /* @__PURE__ */ new Map([["default", F + U], ["portrait", F + U], ["landscape", F + U]]), le = /* @__PURE__ */ new Map([["default", P + H], ["portrait", P + H], ["landscape", P + H]]), Pe = /* @__PURE__ */ new Map([["default", 0 + ne], ["portrait", 0 + ne], ["landscape", 0 + ne]]), oe = /* @__PURE__ */ new Map([["default", 0 + K], ["portrait", 0 + K], ["landscape", 0 + K]]), me = M.right > o.right, Ee = M.bottom > o.bottom, Ve = me ? F + M.right : Ee ? F / 2 : ge.get(_), Se = Ee ? P + M.bottom : me ? P / 2 : le.get(_),
|
|
5709
|
-
return [{ x: Ve, y: Se }, { x:
|
|
5708
|
+
const ge = /* @__PURE__ */ new Map([["default", F + U], ["portrait", F + U], ["landscape", F + U]]), le = /* @__PURE__ */ new Map([["default", P + H], ["portrait", P + H], ["landscape", P + H]]), Pe = /* @__PURE__ */ new Map([["default", 0 + ne], ["portrait", 0 + ne], ["landscape", 0 + ne]]), oe = /* @__PURE__ */ new Map([["default", 0 + K], ["portrait", 0 + K], ["landscape", 0 + K]]), me = M.right > o.right, Ee = M.bottom > o.bottom, Ve = me ? F + M.right : Ee ? F / 2 : ge.get(_), Se = Ee ? P + M.bottom : me ? P / 2 : le.get(_), pe = Pe.get(_), ee = oe.get(_);
|
|
5709
|
+
return [{ x: Ve, y: Se }, { x: pe, y: ee }, { x: ne, y: K }];
|
|
5710
5710
|
}
|
|
5711
5711
|
function u(F, P, B, M, L, N, z) {
|
|
5712
5712
|
const _ = z === "north" || z === "east" ? "portrait" : "landscape", Q = L, G = _ === "landscape" ? "east" : "south", te = z, W = s(Q, N, G, F, P), { x: U, y: H } = W, Z = c(G, te, F, P), { x: ne, y: K } = Z, ge = /* @__PURE__ */ new Map([["default", 0 + U], ["portrait", 0 + U], ["landscape", 0 + U]]), le = /* @__PURE__ */ new Map([["default", 0 + H], ["portrait", 0 + H], ["landscape", 0 + H]]);
|
|
5713
5713
|
U < 0 && (F += Math.abs(U)), H < 0 && (P += Math.abs(H)), ne > 0 && (F += ne), K > 0 && (P += K);
|
|
5714
|
-
const Pe = /* @__PURE__ */ new Map([["default", F + ne], ["portrait", F + ne], ["landscape", F + ne]]), oe = /* @__PURE__ */ new Map([["default", P + K], ["portrait", P + K], ["landscape", P + K]]), me = M.left > o.left, Ee = M.top > o.top, Ve = me ? 0 : Ee ? F / 2 : ge.get(_), Se = Ee ? 0 : me ? P / 2 : le.get(_),
|
|
5715
|
-
return [{ x: Ve, y: Se }, { x:
|
|
5714
|
+
const Pe = /* @__PURE__ */ new Map([["default", F + ne], ["portrait", F + ne], ["landscape", F + ne]]), oe = /* @__PURE__ */ new Map([["default", P + K], ["portrait", P + K], ["landscape", P + K]]), me = M.left > o.left, Ee = M.top > o.top, Ve = me ? 0 : Ee ? F / 2 : ge.get(_), Se = Ee ? 0 : me ? P / 2 : le.get(_), pe = Pe.get(_), ee = oe.get(_);
|
|
5715
|
+
return [{ x: Ve, y: Se }, { x: pe, y: ee }, { x: ne, y: K }];
|
|
5716
5716
|
}
|
|
5717
5717
|
function m(F, P, B, M, L, N, z) {
|
|
5718
5718
|
const _ = z === "north" || z === "west" ? "portrait" : "landscape", Q = L, G = _ === "landscape" ? "west" : "south", te = z, W = s(Q, N, G, F, P), { x: U, y: H } = W, Z = c(G, te, F, P), { x: ne, y: K } = Z;
|
|
5719
5719
|
ne < 0 && (F += Math.abs(ne));
|
|
5720
5720
|
const ge = /* @__PURE__ */ new Map([["default", F + U], ["portrait", F + U], ["landscape", F + U]]), le = /* @__PURE__ */ new Map([["default", 0 + H], ["portrait", 0 + H], ["landscape", 0 + H]]);
|
|
5721
5721
|
H < 0 && (P += Math.abs(H)), K > 0 && (P += K);
|
|
5722
|
-
const Pe = /* @__PURE__ */ new Map([["default", 0 + ne], ["portrait", 0 + ne], ["landscape", 0 + ne]]), oe = /* @__PURE__ */ new Map([["default", P + K], ["portrait", P + K], ["landscape", P + K]]), me = M.right > o.right, Ee = M.top > o.top, Ve = me ? F + M.right : Ee ? F / 2 : ge.get(_), Se = Ee ? 0 : me ? P / 2 : le.get(_),
|
|
5723
|
-
return [{ x: Ve, y: Se }, { x:
|
|
5722
|
+
const Pe = /* @__PURE__ */ new Map([["default", 0 + ne], ["portrait", 0 + ne], ["landscape", 0 + ne]]), oe = /* @__PURE__ */ new Map([["default", P + K], ["portrait", P + K], ["landscape", P + K]]), me = M.right > o.right, Ee = M.top > o.top, Ve = me ? F + M.right : Ee ? F / 2 : ge.get(_), Se = Ee ? 0 : me ? P / 2 : le.get(_), pe = Pe.get(_), ee = oe.get(_);
|
|
5723
|
+
return [{ x: Ve, y: Se }, { x: pe, y: ee }, { x: ne, y: K }];
|
|
5724
5724
|
}
|
|
5725
5725
|
const v = /* @__PURE__ */ new Map([
|
|
5726
5726
|
["north_east", d],
|
|
@@ -5807,8 +5807,8 @@ function qu() {
|
|
|
5807
5807
|
B,
|
|
5808
5808
|
Q,
|
|
5809
5809
|
M
|
|
5810
|
-
), Pe = z === "west" ? le.x < 0 ? Math.abs(le.x) : 0 : le.x > 0 ? le.x : 0, oe = U.left + U.right + H + Pe, me = _ === "north" ? le.y < 0 ? Math.abs(le.y) : 0 : le.y > 0 ? le.y : 0, Ee = U.top + U.bottom + Z + me, Ve = z === "east" ? F.x - U.left : F.x + U.right - oe, Se = _ === "south" ? F.y - U.top : F.y + U.bottom - Ee,
|
|
5811
|
-
return { width: oe, height: Ee, left: Ve, top: Se, startPoinInBoundray: { x:
|
|
5810
|
+
), Pe = z === "west" ? le.x < 0 ? Math.abs(le.x) : 0 : le.x > 0 ? le.x : 0, oe = U.left + U.right + H + Pe, me = _ === "north" ? le.y < 0 ? Math.abs(le.y) : 0 : le.y > 0 ? le.y : 0, Ee = U.top + U.bottom + Z + me, Ve = z === "east" ? F.x - U.left : F.x + U.right - oe, Se = _ === "south" ? F.y - U.top : F.y + U.bottom - Ee, pe = z === "east" ? U.left : oe - U.right, ee = _ === "north" ? Ee - U.bottom : U.top, fe = z === "west" ? le.x < 0 ? Math.abs(le.x) : 0 : le.x < 0 ? oe : oe - le.x, Me = _ === "north" ? le.y < 0 ? Math.abs(le.y) : 0 : le.y < 0 ? Ee : Ee - le.y;
|
|
5811
|
+
return { width: oe, height: Ee, left: Ve, top: Se, startPoinInBoundray: { x: pe, y: ee }, firstControlPoint: K, secondControlPoint: ge, endPoinInBoundray: { x: fe, y: Me } };
|
|
5812
5812
|
}
|
|
5813
5813
|
function T(F, P, B, M, L) {
|
|
5814
5814
|
F.style.position = "absolute", F.style.alignItems = "center", F.style.left = `${P}px`, F.style.top = `${B}px`, F.style.width = M + "px", F.style.height = L + "px";
|
|
@@ -8228,13 +8228,13 @@ function Gi(e, n, t) {
|
|
|
8228
8228
|
if (Ee) {
|
|
8229
8229
|
const {
|
|
8230
8230
|
pageIndex: Se,
|
|
8231
|
-
pageSize:
|
|
8231
|
+
pageSize: pe,
|
|
8232
8232
|
enablePager: ee,
|
|
8233
|
-
pageList:
|
|
8233
|
+
pageList: fe
|
|
8234
8234
|
} = Ee;
|
|
8235
8235
|
Object.assign(Ve, {
|
|
8236
8236
|
index: Se,
|
|
8237
|
-
size:
|
|
8237
|
+
size: pe,
|
|
8238
8238
|
enable: ee
|
|
8239
8239
|
});
|
|
8240
8240
|
} else
|
|
@@ -10127,92 +10127,92 @@ const rn = /* @__PURE__ */ Be({
|
|
|
10127
10127
|
usePopupComposition: F,
|
|
10128
10128
|
isPopuped: M
|
|
10129
10129
|
}), W = Qe(x), U = ue(pi);
|
|
10130
|
-
J(() => w.value, (
|
|
10131
|
-
wn.value =
|
|
10132
|
-
}), J(() => e.modelValue, (
|
|
10133
|
-
l.value =
|
|
10130
|
+
J(() => w.value, (ye) => {
|
|
10131
|
+
wn.value = ye;
|
|
10132
|
+
}), J(() => e.modelValue, (ye) => {
|
|
10133
|
+
l.value = ye;
|
|
10134
10134
|
});
|
|
10135
|
-
function H(
|
|
10136
|
-
c.idValues.value =
|
|
10135
|
+
function H(ye) {
|
|
10136
|
+
c.idValues.value = ye, ye || (g.value = []), n.emit("update:idValue", ye);
|
|
10137
10137
|
}
|
|
10138
|
-
J(() => e.idValue, (
|
|
10139
|
-
H(
|
|
10138
|
+
J(() => e.idValue, (ye) => {
|
|
10139
|
+
H(ye);
|
|
10140
10140
|
}), Ae(() => {
|
|
10141
10141
|
}), yt(() => {
|
|
10142
10142
|
Xn(e);
|
|
10143
|
-
}), J(() => T.value, (
|
|
10144
|
-
n.emit("resize",
|
|
10145
|
-
}), r.value === "Popup" && J([() => e.readonly, () => e.disabled], ([
|
|
10143
|
+
}), J(() => T.value, (ye) => {
|
|
10144
|
+
n.emit("resize", ye);
|
|
10145
|
+
}), r.value === "Popup" && J([() => e.readonly, () => e.disabled], ([ye, q]) => {
|
|
10146
10146
|
var xe;
|
|
10147
|
-
(
|
|
10147
|
+
(ye || q) && ((xe = a.value) == null || xe.forceClosePopup());
|
|
10148
10148
|
});
|
|
10149
10149
|
async function Z() {
|
|
10150
10150
|
n.emit("update:modelValue", ""), H(""), m.value = null, r.value === "Popup" && M.value && (v.canClose = !0, G.value || (u.value = !0, te("")));
|
|
10151
|
-
const
|
|
10151
|
+
const ye = {
|
|
10152
10152
|
items: null,
|
|
10153
10153
|
mappingFields: d.mappingFields,
|
|
10154
10154
|
options: {
|
|
10155
10155
|
...d
|
|
10156
10156
|
}
|
|
10157
10157
|
};
|
|
10158
|
-
n.emit("clear",
|
|
10158
|
+
n.emit("clear", ye), Xn(e, ye);
|
|
10159
10159
|
}
|
|
10160
|
-
J(() => G.value, (
|
|
10161
|
-
|
|
10160
|
+
J(() => G.value, (ye) => {
|
|
10161
|
+
ye && (Z(), G.value = !1);
|
|
10162
10162
|
});
|
|
10163
|
-
function ne(
|
|
10164
|
-
n.emit("search",
|
|
10163
|
+
function ne(ye) {
|
|
10164
|
+
n.emit("search", ye);
|
|
10165
10165
|
}
|
|
10166
|
-
function K(
|
|
10167
|
-
n.emit("navSelectionsChanged",
|
|
10166
|
+
function K(ye) {
|
|
10167
|
+
n.emit("navSelectionsChanged", ye);
|
|
10168
10168
|
}
|
|
10169
|
-
function ge(
|
|
10170
|
-
n.emit("pageIndexChanged",
|
|
10169
|
+
function ge(ye) {
|
|
10170
|
+
n.emit("pageIndexChanged", ye);
|
|
10171
10171
|
}
|
|
10172
|
-
function le(
|
|
10173
|
-
n.emit("pageSizeChanged",
|
|
10172
|
+
function le(ye) {
|
|
10173
|
+
n.emit("pageSizeChanged", ye);
|
|
10174
10174
|
}
|
|
10175
|
-
async function Pe(
|
|
10175
|
+
async function Pe(ye) {
|
|
10176
10176
|
const q = U == null ? void 0 : U.getCurrentModal();
|
|
10177
|
-
q && q.updateModalOptions(
|
|
10177
|
+
q && q.updateModalOptions(ye), ye.title && (i.value = ye.title);
|
|
10178
10178
|
}
|
|
10179
|
-
function oe(
|
|
10179
|
+
function oe(ye) {
|
|
10180
10180
|
const q = U == null ? void 0 : U.getCurrentModal();
|
|
10181
|
-
U && q.close(
|
|
10181
|
+
U && q.close(ye);
|
|
10182
10182
|
}
|
|
10183
|
-
function me(
|
|
10183
|
+
function me(ye) {
|
|
10184
10184
|
const q = U == null ? void 0 : U.getCurrentModal();
|
|
10185
|
-
q && q.maxDialog(
|
|
10185
|
+
q && q.maxDialog(ye);
|
|
10186
10186
|
}
|
|
10187
10187
|
const Ee = A(() => {
|
|
10188
|
-
const
|
|
10189
|
-
return
|
|
10190
|
-
}), Ve = A(() => d.multiSelect && d.showCascadeControl && d.enableCascade && gt.Tree === d.displayType.toUpperCase() && !d.treeToList), Se = A(() => g.value && g.value.length ? g.value.map((
|
|
10191
|
-
function
|
|
10188
|
+
const ye = U == null ? void 0 : U.getCurrentModal();
|
|
10189
|
+
return ye == null ? void 0 : ye.isMaximized;
|
|
10190
|
+
}), Ve = A(() => d.multiSelect && d.showCascadeControl && d.enableCascade && gt.Tree === d.displayType.toUpperCase() && !d.treeToList), Se = A(() => g.value && g.value.length ? g.value.map((ye) => ye[d.idField]) : []);
|
|
10191
|
+
function pe(ye) {
|
|
10192
10192
|
for (const q in d)
|
|
10193
|
-
|
|
10193
|
+
ye[q] !== void 0 && (d[q] = ye[q]);
|
|
10194
10194
|
}
|
|
10195
|
-
const ee = Zn((
|
|
10196
|
-
_(
|
|
10195
|
+
const ee = Zn((ye) => {
|
|
10196
|
+
_(ye);
|
|
10197
10197
|
}, 200);
|
|
10198
|
-
function
|
|
10198
|
+
function fe(ye) {
|
|
10199
10199
|
var xe;
|
|
10200
|
-
let q = (xe =
|
|
10201
|
-
q !== "" && (q = q.trim()), u.value =
|
|
10200
|
+
let q = (xe = ye.target) == null ? void 0 : xe.value;
|
|
10201
|
+
q !== "" && (q = q.trim()), u.value = ye.target._value !== q, e.allowFreeInput && H(""), u.value && (m.value = q), r.value === "Popup" && u.value && ee(ye);
|
|
10202
10202
|
}
|
|
10203
10203
|
function Me() {
|
|
10204
10204
|
u.value = !1;
|
|
10205
10205
|
}
|
|
10206
|
-
async function Oe(
|
|
10206
|
+
async function Oe(ye) {
|
|
10207
10207
|
await O() && (U == null || U.close());
|
|
10208
10208
|
}
|
|
10209
|
-
function Ye(
|
|
10209
|
+
function Ye(ye) {
|
|
10210
10210
|
e.togglePopupOnClickInput && (M.value ? L() : B());
|
|
10211
10211
|
}
|
|
10212
10212
|
function Je() {
|
|
10213
10213
|
document.body.classList.add("lookup-modal-open"), e.editable && setTimeout(() => {
|
|
10214
|
-
var
|
|
10215
|
-
(
|
|
10214
|
+
var ye;
|
|
10215
|
+
(ye = a.value.getTextbox()) == null || ye.focus();
|
|
10216
10216
|
}, 100);
|
|
10217
10217
|
}
|
|
10218
10218
|
return n.expose({
|
|
@@ -10220,13 +10220,13 @@ const rn = /* @__PURE__ */ Be({
|
|
|
10220
10220
|
updateIdValue: H,
|
|
10221
10221
|
mappingFields: d.mappingFields,
|
|
10222
10222
|
idField: d.idField,
|
|
10223
|
-
setProps:
|
|
10223
|
+
setProps: pe,
|
|
10224
10224
|
clear: Z
|
|
10225
10225
|
}), () => p(vi, {
|
|
10226
10226
|
ref: a,
|
|
10227
10227
|
id: e.id,
|
|
10228
10228
|
modelValue: l.value,
|
|
10229
|
-
"onUpdate:modelValue": (
|
|
10229
|
+
"onUpdate:modelValue": (ye) => l.value = ye,
|
|
10230
10230
|
disable: e.disabled,
|
|
10231
10231
|
readonly: e.readonly,
|
|
10232
10232
|
editable: C.value,
|
|
@@ -10242,7 +10242,7 @@ const rn = /* @__PURE__ */ Be({
|
|
|
10242
10242
|
placeholder: s.placeholder,
|
|
10243
10243
|
keepWidthWithReference: !1,
|
|
10244
10244
|
popupOnClick: !e.editable && r.value === "Popup",
|
|
10245
|
-
onInput:
|
|
10245
|
+
onInput: fe,
|
|
10246
10246
|
enableTitle: e.enableTitle,
|
|
10247
10247
|
placement: "auto",
|
|
10248
10248
|
onBeforeClearValue: Me,
|
|
@@ -10256,7 +10256,7 @@ const rn = /* @__PURE__ */ Be({
|
|
|
10256
10256
|
title: i.value || "",
|
|
10257
10257
|
enableFavorite: e.enableFavorite,
|
|
10258
10258
|
onCloseModal: oe,
|
|
10259
|
-
onMaximize: (
|
|
10259
|
+
onMaximize: (ye) => me(ye),
|
|
10260
10260
|
useHttpComposition: c,
|
|
10261
10261
|
userDataService: h,
|
|
10262
10262
|
useDialog: {
|
|
@@ -11620,61 +11620,61 @@ const Ki = {}, er = {}, { getPropertyConfigBySchema: ho } = Zi(Ki, er, Nu), bd =
|
|
|
11620
11620
|
let m = [], v = [];
|
|
11621
11621
|
const h = b(""), y = b(), C = b(), V = ue("SchemaService");
|
|
11622
11622
|
let I = [], S = null, x = "";
|
|
11623
|
-
const k = b(), T = b(0), w = A(() => m.map((
|
|
11623
|
+
const k = b(), T = b(0), w = A(() => m.map((pe) => !pe.hide).length === 1), E = ue("designerContext");
|
|
11624
11624
|
function D() {
|
|
11625
11625
|
v = [], k.value && k.value.categoryList && Array.isArray(k.value.categoryList) && k.value.categoryList.length > 0 && k.value.categoryList.forEach((ee) => {
|
|
11626
11626
|
if (ee.properties && Array.isArray(ee.properties) && ee.properties.length > 0) {
|
|
11627
|
-
const
|
|
11627
|
+
const fe = ee.properties.map((Me) => (Me.category = ee, Me.propertyType === "cascade" && Me.cascadeConfig && Me.cascadeConfig.map((Oe) => {
|
|
11628
11628
|
Oe.category = ee, Oe.cascadeParent = Me, v = v.concat(Oe);
|
|
11629
11629
|
}), Me));
|
|
11630
|
-
v = v.concat(
|
|
11630
|
+
v = v.concat(fe);
|
|
11631
11631
|
}
|
|
11632
11632
|
});
|
|
11633
11633
|
}
|
|
11634
|
-
function O(
|
|
11635
|
-
let ee =
|
|
11636
|
-
for (;
|
|
11637
|
-
ee +=
|
|
11634
|
+
function O(pe) {
|
|
11635
|
+
let ee = pe.offsetTop, fe = pe.offsetParent;
|
|
11636
|
+
for (; fe !== null; )
|
|
11637
|
+
ee += fe.offsetTop, fe = fe.offsetParent;
|
|
11638
11638
|
return ee;
|
|
11639
11639
|
}
|
|
11640
|
-
function $(
|
|
11641
|
-
|
|
11640
|
+
function $(pe, ee) {
|
|
11641
|
+
pe && ee && Object.keys(ee).length > 0 && Object.keys(ee).forEach((fe) => {
|
|
11642
11642
|
var Oe;
|
|
11643
|
-
const Me = ee[
|
|
11644
|
-
(Oe =
|
|
11643
|
+
const Me = ee[fe];
|
|
11644
|
+
(Oe = pe.style) == null || Oe.setProperty(fe, Me);
|
|
11645
11645
|
});
|
|
11646
11646
|
}
|
|
11647
11647
|
function R() {
|
|
11648
11648
|
return v.filter((ee) => {
|
|
11649
11649
|
if (typeof ee.visible == "function" && !ee.visible() || typeof ee.visible == "boolean" && !ee.visible)
|
|
11650
11650
|
return !1;
|
|
11651
|
-
const
|
|
11652
|
-
return !!(
|
|
11651
|
+
const fe = ee.propertyID.toLowerCase(), Me = ee.propertyName.toLowerCase();
|
|
11652
|
+
return !!(fe && fe.includes(h.value.toLowerCase()) || Me && Me.includes(h.value.toLowerCase()));
|
|
11653
11653
|
});
|
|
11654
11654
|
}
|
|
11655
|
-
function j(
|
|
11656
|
-
if (
|
|
11657
|
-
const Me = O(ee), Ye = O(
|
|
11655
|
+
function j(pe, ee, fe) {
|
|
11656
|
+
if (pe === 0) {
|
|
11657
|
+
const Me = O(ee), Ye = O(fe) - Me - 5;
|
|
11658
11658
|
ee == null || ee.scroll({
|
|
11659
11659
|
top: Ye,
|
|
11660
11660
|
behavior: "smooth"
|
|
11661
11661
|
});
|
|
11662
11662
|
}
|
|
11663
11663
|
}
|
|
11664
|
-
function F(
|
|
11665
|
-
I && I.length > 0 && (I.forEach((
|
|
11666
|
-
|
|
11664
|
+
function F(pe) {
|
|
11665
|
+
I && I.length > 0 && (I.forEach((fe) => {
|
|
11666
|
+
fe.style.cssText = "";
|
|
11667
11667
|
}), I = []);
|
|
11668
11668
|
const ee = C.value;
|
|
11669
11669
|
if (!h.value)
|
|
11670
11670
|
y.value && ee && (ee.scrollTop = 0);
|
|
11671
11671
|
else if (D(), v && v.length > 0) {
|
|
11672
|
-
const
|
|
11673
|
-
|
|
11672
|
+
const fe = R();
|
|
11673
|
+
fe && fe.length > 0 && setTimeout(() => {
|
|
11674
11674
|
let Me = null, Oe = -1, Ye = !1;
|
|
11675
|
-
|
|
11675
|
+
fe.forEach((Je, ye) => {
|
|
11676
11676
|
const q = Je.propertyType === "cascade" ? `.${Je.category.categoryId}-${Je.propertyID} .farris-label-text` : `.property-item .${Je.category.categoryId}-${Je.propertyID}.col-form-label`, xe = document.querySelector(q);
|
|
11677
|
-
xe && (Je.category.status !== "open" && (Je.category.status = "open", Ye = Oe < 0), Je.cascadeParent && (Je.cascadeParent.isExpand = !0), Oe < 0 && (Me = xe, Oe =
|
|
11677
|
+
xe && (Je.category.status !== "open" && (Je.category.status = "open", Ye = Oe < 0), Je.cascadeParent && (Je.cascadeParent.isExpand = !0), Oe < 0 && (Me = xe, Oe = ye), $(xe, {
|
|
11678
11678
|
color: "#5B89FE"
|
|
11679
11679
|
}), I.push(xe));
|
|
11680
11680
|
}), Oe > -1 && (Ye ? et(() => {
|
|
@@ -11683,30 +11683,30 @@ const Ki = {}, er = {}, { getPropertyConfigBySchema: ho } = Zi(Ki, er, Nu), bd =
|
|
|
11683
11683
|
}, 50);
|
|
11684
11684
|
}
|
|
11685
11685
|
}
|
|
11686
|
-
function P(
|
|
11686
|
+
function P(pe) {
|
|
11687
11687
|
F();
|
|
11688
11688
|
}
|
|
11689
11689
|
const B = Zn(P, 200);
|
|
11690
|
-
function M(
|
|
11690
|
+
function M(pe) {
|
|
11691
11691
|
const {
|
|
11692
11692
|
value: ee
|
|
11693
|
-
} =
|
|
11693
|
+
} = pe.target;
|
|
11694
11694
|
B(ee);
|
|
11695
11695
|
}
|
|
11696
|
-
function L(
|
|
11696
|
+
function L(pe) {
|
|
11697
11697
|
P(h.value);
|
|
11698
11698
|
}
|
|
11699
11699
|
function N() {
|
|
11700
11700
|
i.value || (g.value = !1), n.emit("closePropertyPanel");
|
|
11701
11701
|
}
|
|
11702
|
-
function z(
|
|
11702
|
+
function z(pe) {
|
|
11703
11703
|
h.value = "", F();
|
|
11704
11704
|
}
|
|
11705
|
-
function _(
|
|
11706
|
-
!
|
|
11705
|
+
function _(pe) {
|
|
11706
|
+
!pe.status || pe.status === "open" ? pe.status = "closed" : pe.status = "open";
|
|
11707
11707
|
}
|
|
11708
11708
|
function Q() {
|
|
11709
|
-
var
|
|
11709
|
+
var pe, ee;
|
|
11710
11710
|
if (m = [], !f.value || f.value.length === 0) {
|
|
11711
11711
|
m = [{
|
|
11712
11712
|
tabId: "default",
|
|
@@ -11715,26 +11715,26 @@ const Ki = {}, er = {}, { getPropertyConfigBySchema: ho } = Zi(Ki, er, Nu), bd =
|
|
|
11715
11715
|
}], k.value = null;
|
|
11716
11716
|
return;
|
|
11717
11717
|
}
|
|
11718
|
-
if ((
|
|
11719
|
-
if (
|
|
11720
|
-
const Me = m.find((Oe) => Oe.tabId ===
|
|
11721
|
-
Me ? (Me.categoryList.push(
|
|
11722
|
-
tabId:
|
|
11723
|
-
tabName:
|
|
11724
|
-
categoryList: [
|
|
11725
|
-
hide:
|
|
11718
|
+
if ((pe = f == null ? void 0 : f.value) == null || pe.forEach((fe) => {
|
|
11719
|
+
if (fe.tabId) {
|
|
11720
|
+
const Me = m.find((Oe) => Oe.tabId === fe.tabId);
|
|
11721
|
+
Me ? (Me.categoryList.push(fe), Me.hide && (Me.hide = fe.hide || fe.properties.length === 0)) : m.push({
|
|
11722
|
+
tabId: fe.tabId,
|
|
11723
|
+
tabName: fe.tabName,
|
|
11724
|
+
categoryList: [fe],
|
|
11725
|
+
hide: fe.hide || fe.properties.length === 0
|
|
11726
11726
|
});
|
|
11727
11727
|
} else {
|
|
11728
11728
|
const Me = m.find((Oe) => Oe.tabId === "default");
|
|
11729
|
-
Me ? Me.categoryList.push(
|
|
11729
|
+
Me ? Me.categoryList.push(fe) : m.push({
|
|
11730
11730
|
tabId: "default",
|
|
11731
11731
|
tabName: "属性",
|
|
11732
|
-
categoryList: [
|
|
11732
|
+
categoryList: [fe]
|
|
11733
11733
|
});
|
|
11734
11734
|
}
|
|
11735
11735
|
}), d.value) {
|
|
11736
|
-
const
|
|
11737
|
-
k.value =
|
|
11736
|
+
const fe = m == null ? void 0 : m.find((Me) => Me.tabId === d.value && !Me.hide);
|
|
11737
|
+
k.value = fe || m[0];
|
|
11738
11738
|
} else
|
|
11739
11739
|
k.value = m[0];
|
|
11740
11740
|
d.value = (ee = k.value) == null ? void 0 : ee.tabId;
|
|
@@ -11744,11 +11744,11 @@ const Ki = {}, er = {}, { getPropertyConfigBySchema: ho } = Zi(Ki, er, Nu), bd =
|
|
|
11744
11744
|
}), Ae(() => {
|
|
11745
11745
|
Q();
|
|
11746
11746
|
});
|
|
11747
|
-
function G(
|
|
11748
|
-
(!s.value || ee) && (s.value = ee || e.schema), f.value = ho(s.value, V, S, x,
|
|
11747
|
+
function G(pe, ee, fe = !0) {
|
|
11748
|
+
(!s.value || ee) && (s.value = ee || e.schema), f.value = ho(s.value, V, S, x, pe), E.filterPropertyEntity && (f.value = E.filterPropertyEntity(f.value, s.value)), Q(), a.value && z(h.value), fe && T.value++;
|
|
11749
11749
|
}
|
|
11750
|
-
function te(
|
|
11751
|
-
S =
|
|
11750
|
+
function te(pe, ee) {
|
|
11751
|
+
S = pe, x = ee;
|
|
11752
11752
|
}
|
|
11753
11753
|
function W() {
|
|
11754
11754
|
l.value = l.value === "panel" ? "sidebar" : "panel", l.value === "panel" ? (setTimeout(() => {
|
|
@@ -11777,8 +11777,8 @@ const Ki = {}, er = {}, { getPropertyConfigBySchema: ho } = Zi(Ki, er, Nu), bd =
|
|
|
11777
11777
|
f.value = ho(s.value, V, S, x), E.filterPropertyEntity && (f.value = E.filterPropertyEntity(f.value, s.value)), Q();
|
|
11778
11778
|
}
|
|
11779
11779
|
function Z() {
|
|
11780
|
-
var
|
|
11781
|
-
if (a.value && ((
|
|
11780
|
+
var pe;
|
|
11781
|
+
if (a.value && ((pe = k.value) == null ? void 0 : pe.tabId) !== "commands")
|
|
11782
11782
|
return p("div", {
|
|
11783
11783
|
class: "search"
|
|
11784
11784
|
}, [p("div", {
|
|
@@ -11808,17 +11808,17 @@ const Ki = {}, er = {}, { getPropertyConfigBySchema: ho } = Zi(Ki, er, Nu), bd =
|
|
|
11808
11808
|
class: "f-icon f-icon-search"
|
|
11809
11809
|
}, null)])])])]);
|
|
11810
11810
|
}
|
|
11811
|
-
function ne(
|
|
11812
|
-
return `${e.propertyName}_${
|
|
11811
|
+
function ne(pe) {
|
|
11812
|
+
return `${e.propertyName}_${pe.categoryId}`;
|
|
11813
11813
|
}
|
|
11814
|
-
function K(
|
|
11814
|
+
function K(pe) {
|
|
11815
11815
|
n.emit("propertyChanged", {
|
|
11816
|
-
...
|
|
11816
|
+
...pe,
|
|
11817
11817
|
designerItem: S
|
|
11818
11818
|
});
|
|
11819
11819
|
}
|
|
11820
11820
|
function ge() {
|
|
11821
|
-
var
|
|
11821
|
+
var pe, ee;
|
|
11822
11822
|
if (k.value)
|
|
11823
11823
|
return p("div", {
|
|
11824
11824
|
class: "panel-body",
|
|
@@ -11827,23 +11827,23 @@ const Ki = {}, er = {}, { getPropertyConfigBySchema: ho } = Zi(Ki, er, Nu), bd =
|
|
|
11827
11827
|
class: ["property-grid", {
|
|
11828
11828
|
"wide-panel": o.value
|
|
11829
11829
|
}]
|
|
11830
|
-
}, [(ee = (
|
|
11831
|
-
key: ne(
|
|
11832
|
-
"data-category-id":
|
|
11833
|
-
}, [!
|
|
11830
|
+
}, [(ee = (pe = k.value) == null ? void 0 : pe.categoryList) == null ? void 0 : ee.map((fe) => !fe.hide && p("li", {
|
|
11831
|
+
key: ne(fe),
|
|
11832
|
+
"data-category-id": fe == null ? void 0 : fe.categoryId
|
|
11833
|
+
}, [!fe.hideTitle && p("span", {
|
|
11834
11834
|
class: "group-label",
|
|
11835
|
-
onClick: () => _(
|
|
11835
|
+
onClick: () => _(fe)
|
|
11836
11836
|
}, [p("span", {
|
|
11837
11837
|
class: ["f-icon mr-2", {
|
|
11838
|
-
"f-legend-show":
|
|
11838
|
+
"f-legend-show": fe.status === "closed"
|
|
11839
11839
|
}, {
|
|
11840
|
-
"f-legend-collapse":
|
|
11840
|
+
"f-legend-collapse": fe.status === "open" || fe.status === void 0
|
|
11841
11841
|
}]
|
|
11842
|
-
}, null),
|
|
11843
|
-
hidden:
|
|
11842
|
+
}, null), fe.categoryName]), p("div", {
|
|
11843
|
+
hidden: fe.status === "closed"
|
|
11844
11844
|
}, [p(Sd, {
|
|
11845
|
-
key: `${
|
|
11846
|
-
category:
|
|
11845
|
+
key: `${fe == null ? void 0 : fe.categoryId}-${T.value}`,
|
|
11846
|
+
category: fe,
|
|
11847
11847
|
propertyData: s.value,
|
|
11848
11848
|
onTriggerRefreshPanel: H,
|
|
11849
11849
|
onValueChanged: K
|
|
@@ -11875,18 +11875,18 @@ const Ki = {}, er = {}, { getPropertyConfigBySchema: ho } = Zi(Ki, er, Nu), bd =
|
|
|
11875
11875
|
onClick: W
|
|
11876
11876
|
}, null)]);
|
|
11877
11877
|
}
|
|
11878
|
-
function me(
|
|
11879
|
-
k.value && k.value.tabId ===
|
|
11878
|
+
function me(pe) {
|
|
11879
|
+
k.value && k.value.tabId === pe.tabId || (k.value = pe, d.value = k.value.tabId, h.value = "");
|
|
11880
11880
|
}
|
|
11881
11881
|
function Ee() {
|
|
11882
|
-
return m.map((
|
|
11882
|
+
return m.map((pe) => p("div", {
|
|
11883
11883
|
class: ["title-label", {
|
|
11884
|
-
active: k.value && k.value.tabId ===
|
|
11884
|
+
active: k.value && k.value.tabId === pe.tabId
|
|
11885
11885
|
}, {
|
|
11886
|
-
"d-none":
|
|
11886
|
+
"d-none": pe.hide
|
|
11887
11887
|
}],
|
|
11888
|
-
onClick: () => me(
|
|
11889
|
-
}, [p("span", null, [
|
|
11888
|
+
onClick: () => me(pe)
|
|
11889
|
+
}, [p("span", null, [pe.tabName])]));
|
|
11890
11890
|
}
|
|
11891
11891
|
Ae(() => {
|
|
11892
11892
|
P(h.value);
|
|
@@ -12245,7 +12245,7 @@ class cg extends Qi {
|
|
|
12245
12245
|
* 获取可选的编辑器类型
|
|
12246
12246
|
*/
|
|
12247
12247
|
getAvailableEditorType(t) {
|
|
12248
|
-
var l;
|
|
12248
|
+
var l, i;
|
|
12249
12249
|
const o = this.checkCanChangeControlType(t, this.viewModelId);
|
|
12250
12250
|
if (!o)
|
|
12251
12251
|
return {
|
|
@@ -12256,7 +12256,7 @@ class cg extends Qi {
|
|
|
12256
12256
|
}]
|
|
12257
12257
|
};
|
|
12258
12258
|
let a = [];
|
|
12259
|
-
return this.designViewModelField && this.designViewModelField.$type === va.SimpleField ? a = Yn.getEditorTypesByMDataType(this.designViewModelField.type.name, this.designViewModelField.multiLanguage) : this.bindingVarible && (a = Yn.getEditorTypesByMDataType(this.bindingVarible.type, this.designViewModelField.multiLanguage)), { canChangeControlType: o, editorTypeList: a };
|
|
12259
|
+
return this.designViewModelField && this.designViewModelField.$type === va.SimpleField ? a = Yn.getEditorTypesByMDataType(this.designViewModelField.type.name, this.designViewModelField.multiLanguage) : this.bindingVarible && (a = Yn.getEditorTypesByMDataType(this.bindingVarible.type, !!((i = this.designViewModelField) != null && i.multiLanguage))), { canChangeControlType: o, editorTypeList: a };
|
|
12260
12260
|
}
|
|
12261
12261
|
changeBindingField(t, o, a) {
|
|
12262
12262
|
o.needRefreshEntityTree = !0;
|
|
@@ -15036,18 +15036,18 @@ const _t = /* @__PURE__ */ Be({
|
|
|
15036
15036
|
y.activeRowById(ee);
|
|
15037
15037
|
}
|
|
15038
15038
|
function W(ee) {
|
|
15039
|
-
const
|
|
15039
|
+
const fe = s.idField.value, Me = l.value.find((Ye) => Ye.raw[fe] === ee), Oe = l.value.findIndex((Ye) => Ye.raw[fe] === ee);
|
|
15040
15040
|
Me && Oe > -1 && P.onClickItem(Me, Oe);
|
|
15041
15041
|
}
|
|
15042
15042
|
function U(ee) {
|
|
15043
|
-
const
|
|
15043
|
+
const fe = s.idField.value, Me = l.value.find((Oe) => Oe.raw[fe] === ee);
|
|
15044
15044
|
Me && y.changeRow(Me);
|
|
15045
15045
|
}
|
|
15046
15046
|
function H(ee) {
|
|
15047
15047
|
v.updatePagination(ee);
|
|
15048
15048
|
}
|
|
15049
15049
|
function Z(ee) {
|
|
15050
|
-
return l.value.filter((
|
|
15050
|
+
return l.value.filter((fe) => ee.includes(fe.raw[e.idField]));
|
|
15051
15051
|
}
|
|
15052
15052
|
n.expose({
|
|
15053
15053
|
search: M,
|
|
@@ -15066,8 +15066,8 @@ const _t = /* @__PURE__ */ Be({
|
|
|
15066
15066
|
function ne(ee) {
|
|
15067
15067
|
e.multiSelect && (ee.preventDefault(), ee.stopPropagation());
|
|
15068
15068
|
}
|
|
15069
|
-
J(() => e.selectionValues, (ee,
|
|
15070
|
-
ee !==
|
|
15069
|
+
J(() => e.selectionValues, (ee, fe) => {
|
|
15070
|
+
ee !== fe && Q(ee);
|
|
15071
15071
|
});
|
|
15072
15072
|
const K = Ho(e, u), {
|
|
15073
15073
|
sidebarWidth: ge,
|
|
@@ -15079,7 +15079,7 @@ const _t = /* @__PURE__ */ Be({
|
|
|
15079
15079
|
} = Pe, Ve = _o(e, g, l, me, T, h, i, ge, C), {
|
|
15080
15080
|
shouldRenderPagination: Se
|
|
15081
15081
|
} = v, {
|
|
15082
|
-
renderDataGridPagination:
|
|
15082
|
+
renderDataGridPagination: pe
|
|
15083
15083
|
} = Uo(e, n, g, Ve, v, u);
|
|
15084
15084
|
return () => p("div", {
|
|
15085
15085
|
class: E.value,
|
|
@@ -18004,7 +18004,7 @@ function Fp(e, n, t, o, a, l, i, r, f, s, c, d, g, u, m, v) {
|
|
|
18004
18004
|
onMouseover: (Fe) => M(Fe, Y)
|
|
18005
18005
|
}, [Ve(Y, Le)]);
|
|
18006
18006
|
}
|
|
18007
|
-
function
|
|
18007
|
+
function pe(Y, Le) {
|
|
18008
18008
|
const ze = [];
|
|
18009
18009
|
if (Y.groupField && Le[Y.groupField]) {
|
|
18010
18010
|
const Fe = Y.data[Y.groupField];
|
|
@@ -18025,9 +18025,9 @@ function Fp(e, n, t, o, a, l, i, r, f, s, c, d, g, u, m, v) {
|
|
|
18025
18025
|
style: T(Y),
|
|
18026
18026
|
onClick: (Fe) => B(Fe, Y),
|
|
18027
18027
|
onMouseover: (Fe) => M(Fe, Y)
|
|
18028
|
-
}, [
|
|
18028
|
+
}, [pe(Y, Le)]);
|
|
18029
18029
|
}
|
|
18030
|
-
function
|
|
18030
|
+
function fe(Y, Le) {
|
|
18031
18031
|
var ze, Fe, We;
|
|
18032
18032
|
return Y.showTips && typeof ((ze = Y.column) == null ? void 0 : ze.formatter) != "function" && ((Fe = Y.column) == null ? void 0 : Fe.dataType) !== "commands" && ((We = Y.column) == null ? void 0 : We.dataType) !== "setting" ? p("div", {
|
|
18033
18033
|
class: R(Y),
|
|
@@ -18052,7 +18052,7 @@ function Fp(e, n, t, o, a, l, i, r, f, s, c, d, g, u, m, v) {
|
|
|
18052
18052
|
function Ye(Y, Le) {
|
|
18053
18053
|
return Y.mode === zr.editing ? p("div", {
|
|
18054
18054
|
style: H(Y)
|
|
18055
|
-
}, [Y.getEditor(Y)]) : Y.column.columnTemplate ? Y.column.columnTemplate(Y, Le) : Y.formatter ?
|
|
18055
|
+
}, [Y.getEditor(Y)]) : Y.column.columnTemplate ? Y.column.columnTemplate(Y, Le) : Y.formatter ? fe(Y, Le) : Oe(Y);
|
|
18056
18056
|
}
|
|
18057
18057
|
function Je(Y, Le, ze) {
|
|
18058
18058
|
return p("div", {
|
|
@@ -18085,10 +18085,10 @@ function Fp(e, n, t, o, a, l, i, r, f, s, c, d, g, u, m, v) {
|
|
|
18085
18085
|
}) : Ye(Fe, Y)])]);
|
|
18086
18086
|
})]);
|
|
18087
18087
|
}
|
|
18088
|
-
const
|
|
18088
|
+
const ye = [Je, Se, ee];
|
|
18089
18089
|
function q(Y, Le) {
|
|
18090
18090
|
const ze = I(Y);
|
|
18091
|
-
return m.value.map((Fe, We) =>
|
|
18091
|
+
return m.value.map((Fe, We) => ye[Fe.type](Fe, ze, We));
|
|
18092
18092
|
}
|
|
18093
18093
|
function xe(Y) {
|
|
18094
18094
|
const Le = I(Y);
|
|
@@ -18190,29 +18190,29 @@ const br = /* @__PURE__ */ Be({
|
|
|
18190
18190
|
sidebarWidth: Ee,
|
|
18191
18191
|
showSidebarCheckBox: Ve
|
|
18192
18192
|
} = me, Se = _o(e, S, u, _, ge, R, o, Ee, W), {
|
|
18193
|
-
onWheel:
|
|
18193
|
+
onWheel: pe,
|
|
18194
18194
|
dataGridWidth: ee,
|
|
18195
|
-
viewPortHeight:
|
|
18195
|
+
viewPortHeight: fe,
|
|
18196
18196
|
viewPortWidth: Me,
|
|
18197
18197
|
resetScroll: Oe,
|
|
18198
18198
|
updateVisibleRowsOnLatestVisibleScope: Ye
|
|
18199
18199
|
} = Se, Je = Ga(e, _, s, Me, G), {
|
|
18200
|
-
calculateColumnsSize:
|
|
18200
|
+
calculateColumnsSize: ye
|
|
18201
18201
|
} = Je, q = Wa(), xe = qa(s, g, S, q, Se), Ge = Xa(e, n, L, S, G, h, Se), qe = A(() => {
|
|
18202
|
-
const
|
|
18202
|
+
const ce = {
|
|
18203
18203
|
"fv-grid": !0,
|
|
18204
18204
|
"fv-grid-bordered": e.showBorder,
|
|
18205
18205
|
"fv-grid-horizontal-bordered": e.showHorizontalLines,
|
|
18206
18206
|
"fv-datagrid-strip": e.showStripe
|
|
18207
18207
|
};
|
|
18208
|
-
return It(
|
|
18208
|
+
return It(ce, e.customClass);
|
|
18209
18209
|
}), tt = A(() => ({
|
|
18210
18210
|
"fv-grid-content": !0,
|
|
18211
18211
|
"fv-grid-content-hover": m.value,
|
|
18212
18212
|
"fv-grid-wrap-content": v.value
|
|
18213
18213
|
})), Wt = A(() => {
|
|
18214
|
-
const
|
|
18215
|
-
return Se.shouldShowHorizontalScrollbar.value && (
|
|
18214
|
+
const ce = {};
|
|
18215
|
+
return Se.shouldShowHorizontalScrollbar.value && (ce.paddingBottom = "10px"), Se.shouldShowVirticalScrollbar.value && (ce.paddingRight = "10px"), ce;
|
|
18216
18216
|
}), {
|
|
18217
18217
|
renderGridHeader: Y,
|
|
18218
18218
|
renderGridColumnResizeOverlay: Le,
|
|
@@ -18236,89 +18236,91 @@ const br = /* @__PURE__ */ Be({
|
|
|
18236
18236
|
} = Gr(e, S, Ge, h, Se);
|
|
18237
18237
|
function vn() {
|
|
18238
18238
|
var Ne, Xe;
|
|
18239
|
-
const
|
|
18240
|
-
|
|
18239
|
+
const ce = Math.ceil(s.value.clientHeight / a);
|
|
18240
|
+
ce > l.value && (l.value = ce, Ye()), fe.value = ((Ne = c.value) == null ? void 0 : Ne.clientHeight) || 0, ee.value = ((Xe = s.value) == null ? void 0 : Xe.clientWidth) || 0, ye();
|
|
18241
18241
|
}
|
|
18242
18242
|
Ae(() => {
|
|
18243
|
-
s.value && (l.value = Math.max(Math.ceil(s.value.clientHeight / a), l.value), u.value = le(0, R.value + o - 1), Ra(s.value, vn),
|
|
18244
|
-
s.value && (ee.value = s.value.clientWidth), c.value && (Me.value = c.value.clientWidth,
|
|
18243
|
+
s.value && (l.value = Math.max(Math.ceil(s.value.clientHeight / a), l.value), u.value = le(0, R.value + o - 1), Ra(s.value, vn), ye(), et(() => {
|
|
18244
|
+
s.value && (ee.value = s.value.clientWidth), c.value && (Me.value = c.value.clientWidth, fe.value = c.value.clientHeight);
|
|
18245
18245
|
})), V.value && I();
|
|
18246
18246
|
}), yt(() => {
|
|
18247
18247
|
}), J(Me, () => {
|
|
18248
18248
|
});
|
|
18249
18249
|
function an() {
|
|
18250
|
-
S.insertNewDataItem()
|
|
18250
|
+
const ce = S.insertNewDataItem();
|
|
18251
|
+
return Oe(), ce;
|
|
18251
18252
|
}
|
|
18252
18253
|
function mn() {
|
|
18253
|
-
S.insertNewDataItem(u.value.length)
|
|
18254
|
+
const ce = S.insertNewDataItem(u.value.length);
|
|
18255
|
+
return Oe(), ce;
|
|
18254
18256
|
}
|
|
18255
|
-
function X(
|
|
18256
|
-
W.onEditingRow(
|
|
18257
|
+
function X(ce) {
|
|
18258
|
+
W.onEditingRow(ce);
|
|
18257
18259
|
}
|
|
18258
|
-
function ie(
|
|
18259
|
-
S.removeDataItem(
|
|
18260
|
+
function ie(ce) {
|
|
18261
|
+
S.removeDataItem(ce), Oe();
|
|
18260
18262
|
}
|
|
18261
|
-
function
|
|
18262
|
-
S.removeDataItemById(
|
|
18263
|
+
function be(ce) {
|
|
18264
|
+
S.removeDataItemById(ce), Oe();
|
|
18263
18265
|
}
|
|
18264
|
-
function Ie(
|
|
18265
|
-
W.acceptEditingRow(
|
|
18266
|
+
function Ie(ce) {
|
|
18267
|
+
W.acceptEditingRow(ce);
|
|
18266
18268
|
}
|
|
18267
|
-
function je(
|
|
18268
|
-
W.cancelEditingRow(
|
|
18269
|
+
function je(ce) {
|
|
18270
|
+
W.cancelEditingRow(ce);
|
|
18269
18271
|
}
|
|
18270
|
-
function He(
|
|
18272
|
+
function He(ce) {
|
|
18271
18273
|
u.value.forEach((Ne, Xe) => {
|
|
18272
18274
|
const ft = S.visibleDataItems.value.findIndex((ht) => ht === Ne.raw), xt = u.value[Xe - 1];
|
|
18273
|
-
|
|
18275
|
+
ce.forEach((ht) => {
|
|
18274
18276
|
Ne.data[ht.field] ? H.updateCellByColumn(Ne.data[ht.field], ht, xt, Ne.raw) : Ne.data[ht.field] = H.createCellByColumn(ht, ft, Ne.raw, Ne, xt);
|
|
18275
18277
|
});
|
|
18276
18278
|
});
|
|
18277
18279
|
}
|
|
18278
|
-
function pt(
|
|
18279
|
-
|
|
18280
|
+
function pt(ce) {
|
|
18281
|
+
ce && (i.value = ce, He(i.value), P(i), e.showSetting && B(i), Q(i.value), z(S, N), ye());
|
|
18280
18282
|
}
|
|
18281
18283
|
function ct() {
|
|
18282
18284
|
T.emptyCurrentRowId();
|
|
18283
18285
|
}
|
|
18284
|
-
J(() => e.showSetting, (
|
|
18285
|
-
|
|
18286
|
+
J(() => e.showSetting, (ce, Ne) => {
|
|
18287
|
+
ce !== Ne && pt(i.value);
|
|
18286
18288
|
});
|
|
18287
|
-
function dt(
|
|
18288
|
-
x.updatePagination(
|
|
18289
|
+
function dt(ce) {
|
|
18290
|
+
x.updatePagination(ce);
|
|
18289
18291
|
}
|
|
18290
|
-
function bt(
|
|
18291
|
-
|
|
18292
|
+
function bt(ce, Ne) {
|
|
18293
|
+
ce && (S.load(ce), u.value = le(0, R.value + o - 1), Ne != null && Ne.keepScrollTop ? Se.scrollTo(Se.offsetY.value) : Oe(), u.value.length || (D.value = []), Ve.value && w.value && O()), W.clear();
|
|
18292
18294
|
}
|
|
18293
|
-
J(S.shouldGroupingData, (
|
|
18294
|
-
|
|
18295
|
-
}), J(() => e.columns, (
|
|
18296
|
-
pt(
|
|
18295
|
+
J(S.shouldGroupingData, (ce, Ne) => {
|
|
18296
|
+
ce !== Ne && (S.updateDataView(), Oe());
|
|
18297
|
+
}), J(() => e.columns, (ce) => {
|
|
18298
|
+
pt(ce);
|
|
18297
18299
|
});
|
|
18298
|
-
function Ke(
|
|
18299
|
-
te.activeRowById(
|
|
18300
|
+
function Ke(ce) {
|
|
18301
|
+
te.activeRowById(ce);
|
|
18300
18302
|
}
|
|
18301
|
-
function Ct(
|
|
18303
|
+
function Ct(ce, Ne = {
|
|
18302
18304
|
isCurrent: !0
|
|
18303
18305
|
}) {
|
|
18304
|
-
Ne != null && Ne.isCurrent && Ke(
|
|
18306
|
+
Ne != null && Ne.isCurrent && Ke(ce), T.selectItemById(ce);
|
|
18305
18307
|
}
|
|
18306
|
-
function vt(
|
|
18307
|
-
const Ne = r.idField.value, Xe = u.value.find((ft) => ft.raw[Ne] ===
|
|
18308
|
+
function vt(ce) {
|
|
18309
|
+
const Ne = r.idField.value, Xe = u.value.find((ft) => ft.raw[Ne] === ce);
|
|
18308
18310
|
Xe && te.clickRowItem(Xe);
|
|
18309
18311
|
}
|
|
18310
|
-
function rt(
|
|
18311
|
-
const Ne = r.idField.value, Xe = u.value.find((ft) => ft.raw[Ne] ===
|
|
18312
|
+
function rt(ce) {
|
|
18313
|
+
const Ne = r.idField.value, Xe = u.value.find((ft) => ft.raw[Ne] === ce);
|
|
18312
18314
|
Xe && te.changeRow(Xe);
|
|
18313
18315
|
}
|
|
18314
|
-
function qt(
|
|
18315
|
-
T.selectItemByIds(
|
|
18316
|
+
function qt(ce) {
|
|
18317
|
+
T.selectItemByIds(ce);
|
|
18316
18318
|
}
|
|
18317
18319
|
function Xt() {
|
|
18318
18320
|
return u.value;
|
|
18319
18321
|
}
|
|
18320
|
-
function Yt(
|
|
18321
|
-
return u.value.filter((Ne) =>
|
|
18322
|
+
function Yt(ce) {
|
|
18323
|
+
return u.value.filter((Ne) => ce.includes(Ne.raw[e.idField]));
|
|
18322
18324
|
}
|
|
18323
18325
|
function io() {
|
|
18324
18326
|
return T.getSelectedItems();
|
|
@@ -18329,10 +18331,10 @@ const br = /* @__PURE__ */ Be({
|
|
|
18329
18331
|
function so() {
|
|
18330
18332
|
W.endEditCell();
|
|
18331
18333
|
}
|
|
18332
|
-
function uo(
|
|
18334
|
+
function uo(ce, Ne = {
|
|
18333
18335
|
clearCurrent: !0
|
|
18334
18336
|
}) {
|
|
18335
|
-
Ne != null && Ne.clearCurrent && Ke(""), T.unSelectItemByIds(
|
|
18337
|
+
Ne != null && Ne.clearCurrent && Ke(""), T.unSelectItemByIds(ce);
|
|
18336
18338
|
}
|
|
18337
18339
|
function Pn() {
|
|
18338
18340
|
T.clearSelection();
|
|
@@ -18343,8 +18345,8 @@ const br = /* @__PURE__ */ Be({
|
|
|
18343
18345
|
function fo() {
|
|
18344
18346
|
Se.scrollToBottom();
|
|
18345
18347
|
}
|
|
18346
|
-
function ra(
|
|
18347
|
-
Se.scrollToRowByIndex(
|
|
18348
|
+
function ra(ce) {
|
|
18349
|
+
Se.scrollToRowByIndex(ce);
|
|
18348
18350
|
}
|
|
18349
18351
|
function po() {
|
|
18350
18352
|
T.keepSelectingOnPaging.value || Pn(), S.updateVisibleDataSummary(u.value), dt({
|
|
@@ -18358,7 +18360,7 @@ const br = /* @__PURE__ */ Be({
|
|
|
18358
18360
|
addNewDataItem: an,
|
|
18359
18361
|
addNewDataItemAtLast: mn,
|
|
18360
18362
|
removeDataItem: ie,
|
|
18361
|
-
removeDataItemById:
|
|
18363
|
+
removeDataItemById: be,
|
|
18362
18364
|
editDataItem: X,
|
|
18363
18365
|
acceptDataItem: Ie,
|
|
18364
18366
|
cancelDataItem: je,
|
|
@@ -18385,7 +18387,7 @@ const br = /* @__PURE__ */ Be({
|
|
|
18385
18387
|
const vo = Wr(e, n, kn, L, W, u), {
|
|
18386
18388
|
renderDataArea: En
|
|
18387
18389
|
} = Fp(e, n, c, d, g, Pe, oe, L, W, h, vo, te, ge, Se, u, S), Bn = A(() => !u.value || !u.value.length), {
|
|
18388
|
-
renderEmpty:
|
|
18390
|
+
renderEmpty: he
|
|
18389
18391
|
} = el(e, n), De = A(() => ({
|
|
18390
18392
|
"d-flex": !0,
|
|
18391
18393
|
"justify-content-between": k.value && E.value,
|
|
@@ -18406,16 +18408,16 @@ const br = /* @__PURE__ */ Be({
|
|
|
18406
18408
|
useSortComposition: N,
|
|
18407
18409
|
useVirtualScrollComposition: Se
|
|
18408
18410
|
});
|
|
18409
|
-
function mt(
|
|
18411
|
+
function mt(ce) {
|
|
18410
18412
|
let Ne;
|
|
18411
18413
|
return p(Ss, {
|
|
18412
18414
|
class: "f-form-layout farris-form farris-form-controls-inline col-12 col-md-6 col-xl-3 col-el-2"
|
|
18413
|
-
}, xp(Ne = Object.keys(
|
|
18415
|
+
}, xp(Ne = Object.keys(ce.data).filter((Xe) => {
|
|
18414
18416
|
var ft, xt;
|
|
18415
|
-
return ((ft =
|
|
18417
|
+
return ((ft = ce.data[Xe].column) == null ? void 0 : ft.dataType) !== ga && ((xt = ce.data[Xe].column) == null ? void 0 : xt.dataType) !== ha;
|
|
18416
18418
|
}).map((Xe) => {
|
|
18417
18419
|
var xt, ht;
|
|
18418
|
-
const ft =
|
|
18420
|
+
const ft = ce.data[Xe];
|
|
18419
18421
|
return p("div", {
|
|
18420
18422
|
class: "farris-group-wrap w-100"
|
|
18421
18423
|
}, [p("div", {
|
|
@@ -18430,7 +18432,7 @@ const br = /* @__PURE__ */ Be({
|
|
|
18430
18432
|
default: () => [Ne]
|
|
18431
18433
|
});
|
|
18432
18434
|
}
|
|
18433
|
-
function Mn(
|
|
18435
|
+
function Mn(ce, Ne) {
|
|
18434
18436
|
const Xe = {}, ft = {}, xt = [], ht = [], sa = {};
|
|
18435
18437
|
Object.keys(Ne.data).filter((Jt) => {
|
|
18436
18438
|
var Lt, gn;
|
|
@@ -18449,7 +18451,7 @@ const br = /* @__PURE__ */ Be({
|
|
|
18449
18451
|
}), W.showRowEditPanel.value = !1;
|
|
18450
18452
|
}
|
|
18451
18453
|
function lt() {
|
|
18452
|
-
const
|
|
18454
|
+
const ce = T.currentSelectedDataId.value, Ne = u.value.find((Xe) => Xe.raw[e.idField] === ce);
|
|
18453
18455
|
return Ne ? p(Os, {
|
|
18454
18456
|
showHeader: !1,
|
|
18455
18457
|
modelValue: W.showRowEditPanel.value,
|
|
@@ -18478,24 +18480,24 @@ const br = /* @__PURE__ */ Be({
|
|
|
18478
18480
|
ref: f,
|
|
18479
18481
|
class: qe.value,
|
|
18480
18482
|
style: j.value,
|
|
18481
|
-
onWheel:
|
|
18483
|
+
onWheel: pe
|
|
18482
18484
|
}, [s.value && e.enableFilter && fn(), s.value && pn(), s.value && ze.value && Y(), p("div", {
|
|
18483
18485
|
ref: s,
|
|
18484
18486
|
class: tt.value,
|
|
18485
18487
|
style: Wt.value,
|
|
18486
|
-
onTouchstart: (
|
|
18487
|
-
|
|
18488
|
+
onTouchstart: (ce) => {
|
|
18489
|
+
ce.stopPropagation(), m.value = !0, Se.onTouchstartScrollThumb(ce, s);
|
|
18488
18490
|
},
|
|
18489
|
-
onTouchend: (
|
|
18491
|
+
onTouchend: (ce) => {
|
|
18490
18492
|
m.value = !1;
|
|
18491
18493
|
},
|
|
18492
|
-
onMouseover: (
|
|
18493
|
-
|
|
18494
|
+
onMouseover: (ce) => {
|
|
18495
|
+
ce.stopPropagation(), m.value = !0;
|
|
18494
18496
|
},
|
|
18495
|
-
onMouseleave: (
|
|
18496
|
-
|
|
18497
|
+
onMouseleave: (ce) => {
|
|
18498
|
+
ce.stopPropagation(), m.value = !1;
|
|
18497
18499
|
}
|
|
18498
|
-
}, [s.value && We(u), s.value && En(), s.value && Bn.value &&
|
|
18500
|
+
}, [s.value && We(u), s.value && En(), s.value && Bn.value && he(), s.value && Ft(), s.value && dn()]), s.value && Ot(), (k.value || E.value) && p("div", {
|
|
18499
18501
|
class: De.value,
|
|
18500
18502
|
style: at.value
|
|
18501
18503
|
}, [E.value && p("div", {
|
|
@@ -19294,7 +19296,7 @@ export {
|
|
|
19294
19296
|
Au as resolveSchemaWithDefaultValue,
|
|
19295
19297
|
Nu as resolveSchemaWithDefaultValueForDesigner,
|
|
19296
19298
|
mg as resolveToolbar,
|
|
19297
|
-
|
|
19299
|
+
ve as resolverMap,
|
|
19298
19300
|
ki as schemaMap,
|
|
19299
19301
|
Ii as schemaMapForDesigner,
|
|
19300
19302
|
Ei as schemaResolverMap,
|