@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
|
@@ -1397,13 +1397,13 @@ const Gt = /* @__PURE__ */ Te({
|
|
|
1397
1397
|
} = pe, We = bo(e, ue, l, Ve, de), {
|
|
1398
1398
|
calculateColumnsSize: Oe
|
|
1399
1399
|
} = We, Ae = wo(), nt = Co(l, h, y, Ae, pe), ot = Fo(e, t, G, y, de, S, pe), N = J(() => {
|
|
1400
|
-
const
|
|
1400
|
+
const _ = {
|
|
1401
1401
|
"fv-grid": !0,
|
|
1402
1402
|
"fv-grid-bordered": e.showBorder,
|
|
1403
1403
|
"fv-grid-horizontal-bordered": e.showHorizontalLines,
|
|
1404
1404
|
"fv-datagrid-strip": e.showStripe
|
|
1405
1405
|
};
|
|
1406
|
-
return bt(
|
|
1406
|
+
return bt(_, e.customClass);
|
|
1407
1407
|
}), ne = J(() => ({
|
|
1408
1408
|
"fv-grid-content": !0,
|
|
1409
1409
|
"fv-grid-content-hover": d.value,
|
|
@@ -1424,8 +1424,8 @@ const Gt = /* @__PURE__ */ Te({
|
|
|
1424
1424
|
renderVerticalScrollbar: Bt
|
|
1425
1425
|
} = Eo(e, l, pe);
|
|
1426
1426
|
function Vt() {
|
|
1427
|
-
var
|
|
1428
|
-
if (l.value && l.value.clientHeight > 0 && ((
|
|
1427
|
+
var _, K, be;
|
|
1428
|
+
if (l.value && l.value.clientHeight > 0 && ((_ = l.value) == null ? void 0 : _.clientWidth) > 0) {
|
|
1429
1429
|
const Se = Math.ceil(l.value.clientHeight / o);
|
|
1430
1430
|
Se > i.value && (i.value = Se, lt()), Le.value = ((K = p.value) == null ? void 0 : K.clientHeight) || 0, je.value = ((be = l.value) == null ? void 0 : be.clientWidth) || 0;
|
|
1431
1431
|
}
|
|
@@ -1439,64 +1439,64 @@ const Gt = /* @__PURE__ */ Te({
|
|
|
1439
1439
|
}), he(Ve, () => {
|
|
1440
1440
|
l.value && Oe();
|
|
1441
1441
|
});
|
|
1442
|
-
function Ot(
|
|
1443
|
-
y.collapseTo(
|
|
1442
|
+
function Ot(_) {
|
|
1443
|
+
y.collapseTo(_), y.reOrderVisibleIndex(), ze();
|
|
1444
1444
|
}
|
|
1445
|
-
function pt(
|
|
1446
|
-
y.expandTo(
|
|
1445
|
+
function pt(_) {
|
|
1446
|
+
y.expandTo(_), y.reOrderVisibleIndex(), ze();
|
|
1447
1447
|
}
|
|
1448
1448
|
function st() {
|
|
1449
|
-
const
|
|
1450
|
-
return
|
|
1449
|
+
const _ = g.getSelectionRow();
|
|
1450
|
+
return _ ? _.dataIndex - 1 : -1;
|
|
1451
1451
|
}
|
|
1452
1452
|
function Rt() {
|
|
1453
|
-
const
|
|
1454
|
-
y.insertNewDataItem(
|
|
1453
|
+
const _ = st();
|
|
1454
|
+
y.insertNewDataItem(_ === -1 ? 0 : _), C.value = Be(0, O.value + 0 - 1);
|
|
1455
1455
|
}
|
|
1456
1456
|
function Pt() {
|
|
1457
|
-
const
|
|
1458
|
-
y.insertNewChildDataItem(
|
|
1457
|
+
const _ = st();
|
|
1458
|
+
y.insertNewChildDataItem(_), C.value = Be(0, O.value + 0 - 1);
|
|
1459
1459
|
}
|
|
1460
|
-
function Nt(
|
|
1460
|
+
function Nt(_, K) {
|
|
1461
1461
|
const be = C.value.find((Me) => Me.raw[u.value] === K), Se = be ? be.dataIndex - 1 : -1;
|
|
1462
|
-
y.insertNewChildDataItems(
|
|
1462
|
+
y.insertNewChildDataItems(_, Se);
|
|
1463
1463
|
}
|
|
1464
1464
|
function Dt() {
|
|
1465
|
-
const
|
|
1466
|
-
y.removeHierarchyDataItem(
|
|
1465
|
+
const _ = st(), K = f.getNextSelectableHierarchyItemId(_);
|
|
1466
|
+
y.removeHierarchyDataItem(_), C.value = Be(0, O.value + 0 - 1), K && f.selectItemById(K);
|
|
1467
1467
|
}
|
|
1468
|
-
function vt(
|
|
1469
|
-
ae.onEditingRow(
|
|
1468
|
+
function vt(_) {
|
|
1469
|
+
ae.onEditingRow(_);
|
|
1470
1470
|
}
|
|
1471
|
-
function jt(
|
|
1472
|
-
ae.acceptEditingRow(
|
|
1471
|
+
function jt(_) {
|
|
1472
|
+
ae.acceptEditingRow(_);
|
|
1473
1473
|
}
|
|
1474
|
-
function I(
|
|
1475
|
-
ae.cancelEditingRow(
|
|
1474
|
+
function I(_) {
|
|
1475
|
+
ae.cancelEditingRow(_);
|
|
1476
1476
|
}
|
|
1477
|
-
function $(
|
|
1478
|
-
|
|
1477
|
+
function $(_) {
|
|
1478
|
+
_ && (a.value = _, j(a), te(a.value), le(y, Q), Oe());
|
|
1479
1479
|
}
|
|
1480
|
-
he(() => e.columns, (
|
|
1481
|
-
$(
|
|
1480
|
+
he(() => e.columns, (_) => {
|
|
1481
|
+
$(_);
|
|
1482
1482
|
});
|
|
1483
|
-
function _
|
|
1484
|
-
|
|
1483
|
+
function q(_, K) {
|
|
1484
|
+
_ && (y.load(_), y.reOrderVisibleIndex(), K != null && K.keepScrollPosition ? pe.scrollTo(pe.offsetY.value) : ze());
|
|
1485
1485
|
}
|
|
1486
|
-
function X(
|
|
1487
|
-
ge.activeRowById(
|
|
1486
|
+
function X(_) {
|
|
1487
|
+
ge.activeRowById(_);
|
|
1488
1488
|
}
|
|
1489
|
-
function oe(
|
|
1489
|
+
function oe(_, K = {
|
|
1490
1490
|
isCurrent: !0
|
|
1491
1491
|
}) {
|
|
1492
|
-
K != null && K.isCurrent && X(
|
|
1492
|
+
K != null && K.isCurrent && X(_), f.selectItemById(_);
|
|
1493
1493
|
}
|
|
1494
|
-
function ie(
|
|
1495
|
-
const K = C.value.find((be) => be.raw[r.idField.value] ===
|
|
1494
|
+
function ie(_) {
|
|
1495
|
+
const K = C.value.find((be) => be.raw[r.idField.value] === _);
|
|
1496
1496
|
K && ge.clickRowItem(K);
|
|
1497
1497
|
}
|
|
1498
|
-
function ke(
|
|
1499
|
-
f.selectItemByIds(
|
|
1498
|
+
function ke(_) {
|
|
1499
|
+
f.selectItemByIds(_);
|
|
1500
1500
|
}
|
|
1501
1501
|
function xe() {
|
|
1502
1502
|
return g.getSelectedItems();
|
|
@@ -1513,16 +1513,16 @@ const Gt = /* @__PURE__ */ Te({
|
|
|
1513
1513
|
function Ee() {
|
|
1514
1514
|
return g.getSelectionRow();
|
|
1515
1515
|
}
|
|
1516
|
-
function Fe(
|
|
1516
|
+
function Fe(_, K = {
|
|
1517
1517
|
clearCurrent: !0
|
|
1518
1518
|
}) {
|
|
1519
|
-
K != null && K.clearCurrent && X(""), f.unSelectItemByIds(
|
|
1519
|
+
K != null && K.clearCurrent && X(""), f.unSelectItemByIds(_);
|
|
1520
1520
|
}
|
|
1521
1521
|
function ut() {
|
|
1522
1522
|
return g.currentSelectedDataId.value;
|
|
1523
1523
|
}
|
|
1524
|
-
function ct(
|
|
1525
|
-
const Se = B.value.find((Me) => Me[u.value] ===
|
|
1524
|
+
function ct(_, K, be) {
|
|
1525
|
+
const Se = B.value.find((Me) => Me[u.value] === _);
|
|
1526
1526
|
if (Se) {
|
|
1527
1527
|
if (Object.keys(Se).forEach((we) => {
|
|
1528
1528
|
Object.prototype.hasOwnProperty.call(K, we) && (Se[we] = K[we]);
|
|
@@ -1535,7 +1535,7 @@ const Gt = /* @__PURE__ */ Te({
|
|
|
1535
1535
|
} = be;
|
|
1536
1536
|
we && !$e(K[we]) && (Se.__fv_collapse__ = K[we]), Xe && !$e(K[Xe]) && (Se.__fv_checked__ = K[Xe]), Ye && !$e(K[Ye]) && (Se.__fv_disabled__ = K[Ye]), Je && !$e(K[Je]) && (Se.__fv_visible__ = K[Je]);
|
|
1537
1537
|
}
|
|
1538
|
-
const Me = C.value.find((we) => we.raw[u.value] ===
|
|
1538
|
+
const Me = C.value.find((we) => we.raw[u.value] === _), Jt = C.value.findIndex((we) => we.raw[u.value] === _);
|
|
1539
1539
|
if (Me) {
|
|
1540
1540
|
if (Me.raw = Se, Object.keys(Me.data).forEach((we) => {
|
|
1541
1541
|
Me.data[we].updateData(Se);
|
|
@@ -1552,24 +1552,24 @@ const Gt = /* @__PURE__ */ Te({
|
|
|
1552
1552
|
}
|
|
1553
1553
|
}
|
|
1554
1554
|
}
|
|
1555
|
-
function dt(
|
|
1556
|
-
return Object.prototype.hasOwnProperty.call(
|
|
1555
|
+
function dt(_) {
|
|
1556
|
+
return Object.prototype.hasOwnProperty.call(_, "raw") ? y.hasRealChildren(_.raw) : y.hasRealChildren(_);
|
|
1557
1557
|
}
|
|
1558
|
-
function Cn(
|
|
1559
|
-
const K = y.dataView.value.find((be) => be[u.value] ===
|
|
1558
|
+
function Cn(_) {
|
|
1559
|
+
const K = y.dataView.value.find((be) => be[u.value] === _);
|
|
1560
1560
|
return K ? K[P.value] : "";
|
|
1561
1561
|
}
|
|
1562
1562
|
function Fn() {
|
|
1563
1563
|
return P.value;
|
|
1564
1564
|
}
|
|
1565
|
-
he(() => e.showSetting, (
|
|
1566
|
-
|
|
1565
|
+
he(() => e.showSetting, (_, K) => {
|
|
1566
|
+
_ !== K && (_ ? L(a) : Z(a), $(a.value));
|
|
1567
1567
|
});
|
|
1568
|
-
function Sn(
|
|
1569
|
-
return C.value.filter((K) =>
|
|
1568
|
+
function Sn(_) {
|
|
1569
|
+
return C.value.filter((K) => _.includes(K.raw[e.idField]));
|
|
1570
1570
|
}
|
|
1571
|
-
function xn(
|
|
1572
|
-
const K = r.idField.value, be = C.value.find((Se) => Se.raw[K] ===
|
|
1571
|
+
function xn(_) {
|
|
1572
|
+
const K = r.idField.value, be = C.value.find((Se) => Se.raw[K] === _);
|
|
1573
1573
|
be && ge.changeRow(be);
|
|
1574
1574
|
}
|
|
1575
1575
|
function Tn() {
|
|
@@ -1587,7 +1587,7 @@ const Gt = /* @__PURE__ */ Te({
|
|
|
1587
1587
|
acceptDataItem: jt,
|
|
1588
1588
|
cancelDataItem: I,
|
|
1589
1589
|
updateColumns: $,
|
|
1590
|
-
updateDataSource:
|
|
1590
|
+
updateDataSource: q,
|
|
1591
1591
|
selectItemById: oe,
|
|
1592
1592
|
selectItemByIds: ke,
|
|
1593
1593
|
getSelectedItems: xe,
|
|
@@ -1607,8 +1607,8 @@ const Gt = /* @__PURE__ */ Te({
|
|
|
1607
1607
|
calculateColumnsSize: Oe
|
|
1608
1608
|
});
|
|
1609
1609
|
const In = J(() => {
|
|
1610
|
-
const
|
|
1611
|
-
return pe.shouldShowHorizontalScrollbar.value && (
|
|
1610
|
+
const _ = {};
|
|
1611
|
+
return pe.shouldShowHorizontalScrollbar.value && (_.paddingBottom = "10px"), pe.shouldShowVirticalScrollbar.value && (_.paddingRight = "10px"), _;
|
|
1612
1612
|
}), En = J(() => ({
|
|
1613
1613
|
...W.value,
|
|
1614
1614
|
borderRadius: "5px"
|
|
@@ -1635,10 +1635,10 @@ const Gt = /* @__PURE__ */ Te({
|
|
|
1635
1635
|
class: ne.value,
|
|
1636
1636
|
onMouseover: () => d.value = !0,
|
|
1637
1637
|
onMouseleave: () => d.value = !1,
|
|
1638
|
-
onTouchstart: (
|
|
1639
|
-
|
|
1638
|
+
onTouchstart: (_) => {
|
|
1639
|
+
_.stopPropagation(), d.value = !0, pe.onTouchstartScrollThumb(_, l);
|
|
1640
1640
|
},
|
|
1641
|
-
onTouchend: (
|
|
1641
|
+
onTouchend: (_) => {
|
|
1642
1642
|
d.value = !1;
|
|
1643
1643
|
},
|
|
1644
1644
|
style: In.value
|
|
@@ -1746,8 +1746,8 @@ var wr = { exports: {} };
|
|
|
1746
1746
|
ee = I.clientX, j = I.clientY;
|
|
1747
1747
|
var $ = F(I) !== 1 || I.metaKey || I.ctrlKey;
|
|
1748
1748
|
if (!$) {
|
|
1749
|
-
var
|
|
1750
|
-
X && (ue = X, Be(), I.type === "mousedown" && (y(
|
|
1749
|
+
var q = I.target, X = je(q);
|
|
1750
|
+
X && (ue = X, Be(), I.type === "mousedown" && (y(q) ? q.focus() : I.preventDefault()));
|
|
1751
1751
|
}
|
|
1752
1752
|
}
|
|
1753
1753
|
function at(I) {
|
|
@@ -1758,7 +1758,7 @@ var wr = { exports: {} };
|
|
|
1758
1758
|
}
|
|
1759
1759
|
if (!(I.clientX !== void 0 && Math.abs(I.clientX - ee) <= (Y.slideFactorX || 0) && I.clientY !== void 0 && Math.abs(I.clientY - j) <= (Y.slideFactorY || 0))) {
|
|
1760
1760
|
if (Y.ignoreInputTextSelection) {
|
|
1761
|
-
var $ = m("clientX", I) || 0,
|
|
1761
|
+
var $ = m("clientX", I) || 0, q = m("clientY", I) || 0, X = l.elementFromPoint($, q);
|
|
1762
1762
|
if (y(X))
|
|
1763
1763
|
return;
|
|
1764
1764
|
}
|
|
@@ -1772,13 +1772,13 @@ var wr = { exports: {} };
|
|
|
1772
1772
|
for (var $ = I; v(I) && _e(v(I)) === !1; )
|
|
1773
1773
|
if (Y.invalid(I, $) || (I = v(I), !I))
|
|
1774
1774
|
return;
|
|
1775
|
-
var
|
|
1776
|
-
if (
|
|
1777
|
-
var X = Y.moves(I,
|
|
1775
|
+
var q = v(I);
|
|
1776
|
+
if (q && !Y.invalid(I, $)) {
|
|
1777
|
+
var X = Y.moves(I, q, $, g(I));
|
|
1778
1778
|
if (X)
|
|
1779
1779
|
return {
|
|
1780
1780
|
item: I,
|
|
1781
|
-
source:
|
|
1781
|
+
source: q
|
|
1782
1782
|
};
|
|
1783
1783
|
}
|
|
1784
1784
|
}
|
|
@@ -1807,13 +1807,13 @@ var wr = { exports: {} };
|
|
|
1807
1807
|
}
|
|
1808
1808
|
function Ae(I) {
|
|
1809
1809
|
if (Oe(), !!se.dragging) {
|
|
1810
|
-
var $ = G || W,
|
|
1810
|
+
var $ = G || W, q = m("clientX", I) || 0, X = m("clientY", I) || 0, oe = S(M, q, X), ie = me(oe, q, X);
|
|
1811
1811
|
ie && (G && Y.copySortSource || !G || ie !== R) ? nt($, ie) : Y.removeOnSpill ? ot() : N();
|
|
1812
1812
|
}
|
|
1813
1813
|
}
|
|
1814
1814
|
function nt(I, $) {
|
|
1815
|
-
var
|
|
1816
|
-
G && Y.copySortSource && $ === R &&
|
|
1815
|
+
var q = v(I);
|
|
1816
|
+
G && Y.copySortSource && $ === R && q.removeChild(W), fe($) ? se.emit("cancel", I, R) : se.emit("drop", I, $, R, Z), ne();
|
|
1817
1817
|
}
|
|
1818
1818
|
function ot() {
|
|
1819
1819
|
if (se.dragging) {
|
|
@@ -1823,8 +1823,8 @@ var wr = { exports: {} };
|
|
|
1823
1823
|
}
|
|
1824
1824
|
function N(I) {
|
|
1825
1825
|
if (se.dragging) {
|
|
1826
|
-
var $ = arguments.length > 0 ? I : Y.revertOnSpill,
|
|
1827
|
-
oe === !1 && $ && (G ? X && X.removeChild(G) : R.insertBefore(
|
|
1826
|
+
var $ = arguments.length > 0 ? I : Y.revertOnSpill, q = G || W, X = v(q), oe = fe(X);
|
|
1827
|
+
oe === !1 && $ && (G ? X && X.removeChild(G) : R.insertBefore(q, L)), oe || $ ? se.emit("cancel", q, R, R) : se.emit("drop", q, X, R, Z), ne();
|
|
1828
1828
|
}
|
|
1829
1829
|
}
|
|
1830
1830
|
function ne() {
|
|
@@ -1832,10 +1832,10 @@ var wr = { exports: {} };
|
|
|
1832
1832
|
Oe(), Vt(), Ot(), I && s.rm(I, "gu-transit"), Q && clearTimeout(Q), se.dragging = !1, le && se.emit("out", I, le, R), se.emit("dragend", I, ge), R = W = G = L = Z = Q = le = null;
|
|
1833
1833
|
}
|
|
1834
1834
|
function fe(I, $) {
|
|
1835
|
-
var
|
|
1836
|
-
return $ !== void 0 ?
|
|
1835
|
+
var q;
|
|
1836
|
+
return $ !== void 0 ? q = $ : M ? q = Z : q = g(G || W), I === R && q === L;
|
|
1837
1837
|
}
|
|
1838
|
-
function me(I, $,
|
|
1838
|
+
function me(I, $, q) {
|
|
1839
1839
|
for (var X = I; X && !oe(); )
|
|
1840
1840
|
X = v(X);
|
|
1841
1841
|
return X;
|
|
@@ -1843,7 +1843,7 @@ var wr = { exports: {} };
|
|
|
1843
1843
|
var ie = _e(X);
|
|
1844
1844
|
if (ie === !1)
|
|
1845
1845
|
return !1;
|
|
1846
|
-
var ke = pt(X, I), xe = vt(X, ke, $,
|
|
1846
|
+
var ke = pt(X, I), xe = vt(X, ke, $, q), Ie = fe(X, xe);
|
|
1847
1847
|
return Ie ? !0 : Y.accepts(W, X, R, xe);
|
|
1848
1848
|
}
|
|
1849
1849
|
}
|
|
@@ -1851,10 +1851,10 @@ var wr = { exports: {} };
|
|
|
1851
1851
|
if (!M)
|
|
1852
1852
|
return;
|
|
1853
1853
|
I.preventDefault();
|
|
1854
|
-
var $ = m("clientX", I) || 0,
|
|
1855
|
-
M.style.left = $ - 2 + "px", M.style.top =
|
|
1856
|
-
var X = G || W, oe = S(M, $,
|
|
1857
|
-
(ke || ie === null) && (Ee(), le = ie, Pe()), Dt(oe,
|
|
1854
|
+
var $ = m("clientX", I) || 0, q = m("clientY", I) || 0;
|
|
1855
|
+
M.style.left = $ - 2 + "px", M.style.top = q - 2 + "px";
|
|
1856
|
+
var X = G || W, oe = S(M, $, q), ie = me(oe, $, q), ke = ie !== null && ie !== le;
|
|
1857
|
+
(ke || ie === null) && (Ee(), le = ie, Pe()), Dt(oe, q);
|
|
1858
1858
|
var xe = v(X);
|
|
1859
1859
|
if (ie === R && G && !Y.copySortSource) {
|
|
1860
1860
|
xe && xe.removeChild(X);
|
|
@@ -1862,7 +1862,7 @@ var wr = { exports: {} };
|
|
|
1862
1862
|
}
|
|
1863
1863
|
var Ie, Re = pt(ie, oe);
|
|
1864
1864
|
if (de = st(Re, ie), Re !== null)
|
|
1865
|
-
Ie = vt(ie, Re, $,
|
|
1865
|
+
Ie = vt(ie, Re, $, q);
|
|
1866
1866
|
else if (Y.revertOnSpill === !0 && !G)
|
|
1867
1867
|
Ie = L, ie = R;
|
|
1868
1868
|
else {
|
|
@@ -1880,8 +1880,8 @@ var wr = { exports: {} };
|
|
|
1880
1880
|
le && ye("out");
|
|
1881
1881
|
}
|
|
1882
1882
|
}
|
|
1883
|
-
function It(I, $,
|
|
1884
|
-
(I === $ || I === g($)) && (Z = g($)), (I === null &&
|
|
1883
|
+
function It(I, $, q) {
|
|
1884
|
+
(I === $ || I === g($)) && (Z = g($)), (I === null && q || I !== $ && I !== g($)) && (Z = I);
|
|
1885
1885
|
}
|
|
1886
1886
|
function Et(I) {
|
|
1887
1887
|
s.rm(I, "gu-hide");
|
|
@@ -1906,15 +1906,15 @@ var wr = { exports: {} };
|
|
|
1906
1906
|
te && (v(te).removeChild(te), te = null);
|
|
1907
1907
|
}
|
|
1908
1908
|
function pt(I, $) {
|
|
1909
|
-
for (var
|
|
1910
|
-
|
|
1911
|
-
return
|
|
1909
|
+
for (var q = $; q !== I && v(q) !== I; )
|
|
1910
|
+
q = v(q);
|
|
1911
|
+
return q === p ? null : q;
|
|
1912
1912
|
}
|
|
1913
1913
|
function st(I, $) {
|
|
1914
1914
|
if (!$)
|
|
1915
1915
|
return de;
|
|
1916
|
-
var
|
|
1917
|
-
if (!
|
|
1916
|
+
var q = I || $ && $.lastElementChild;
|
|
1917
|
+
if (!q)
|
|
1918
1918
|
return !0;
|
|
1919
1919
|
var X = getComputedStyle(I), oe = /^inline/.test(X.getPropertyValue("display")) || /^(left|right)$/.test(X.getPropertyValue("float"));
|
|
1920
1920
|
if (oe)
|
|
@@ -1946,15 +1946,15 @@ var wr = { exports: {} };
|
|
|
1946
1946
|
return !0;
|
|
1947
1947
|
}
|
|
1948
1948
|
function Pt(I, $) {
|
|
1949
|
-
const
|
|
1950
|
-
if (te.style.left =
|
|
1951
|
-
if (te.style.height =
|
|
1949
|
+
const q = $.getBoundingClientRect();
|
|
1950
|
+
if (te.style.left = q.left + "px", te.style.top = q.top + "px", de) {
|
|
1951
|
+
if (te.style.height = q.height + "px", te.style.width = "4px", I) {
|
|
1952
1952
|
const X = I.getBoundingClientRect();
|
|
1953
|
-
X.top !==
|
|
1953
|
+
X.top !== q.top && (te.style.left = X.right + "px", te.style.top = X.top + "px", te.style.height = X.height + "px");
|
|
1954
1954
|
}
|
|
1955
|
-
} else if (te.style.height = "4px", te.style.width =
|
|
1955
|
+
} else if (te.style.height = "4px", te.style.width = q.width + "px", ae) {
|
|
1956
1956
|
const X = ae.getBoundingClientRect();
|
|
1957
|
-
|
|
1957
|
+
q.top < X.top && (te.style.display = "none");
|
|
1958
1958
|
}
|
|
1959
1959
|
$ === W && W && (te.style.display = "none");
|
|
1960
1960
|
}
|
|
@@ -1962,42 +1962,42 @@ var wr = { exports: {} };
|
|
|
1962
1962
|
Z = null;
|
|
1963
1963
|
var $ = I.lastElementChild;
|
|
1964
1964
|
if ($) {
|
|
1965
|
-
var
|
|
1966
|
-
de ? (te.style.left =
|
|
1965
|
+
var q = $.getBoundingClientRect();
|
|
1966
|
+
de ? (te.style.left = q.right + "px", te.style.top = q.top + "px", te.style.height = q.height + "px", te.style.width = "4px") : (te.style.left = q.left + "px", te.style.top = q.bottom + "px", te.style.height = "4px", te.style.width = q.width + "px"), $ === W && W && (te.style.display = "none");
|
|
1967
1967
|
} else
|
|
1968
1968
|
te.style.display = "none";
|
|
1969
1969
|
}
|
|
1970
1970
|
function Dt(I, $) {
|
|
1971
1971
|
if (!Y.mirrorContainer.contains(I) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ae = h(I), !ae || !ae.contains(I)))
|
|
1972
1972
|
return;
|
|
1973
|
-
const
|
|
1973
|
+
const q = document && document.querySelector(".dgComponentSelected"), X = ae.getBoundingClientRect();
|
|
1974
1974
|
if ($ - 30 < X.top && ae.scrollTop > 0) {
|
|
1975
1975
|
let oe = ae.scrollTop < 10 ? ae.scrollTop : 10;
|
|
1976
|
-
ae.scrollBy(0, -1 * oe),
|
|
1976
|
+
ae.scrollBy(0, -1 * oe), q && ae.contains(q) && (ge = ge + -1 * oe);
|
|
1977
1977
|
}
|
|
1978
1978
|
if ($ + 30 > X.bottom && ae.scrollTop < ae.scrollHeight - ae.clientHeight) {
|
|
1979
1979
|
const oe = ae.scrollHeight - ae.clientHeight - ae.scrollTop;
|
|
1980
1980
|
let ie = oe < 10 ? oe : 10;
|
|
1981
|
-
ae.scrollBy(0, ie),
|
|
1981
|
+
ae.scrollBy(0, ie), q && ae.contains(q) && (ge = ge + ie);
|
|
1982
1982
|
}
|
|
1983
1983
|
}
|
|
1984
|
-
function vt(I, $,
|
|
1984
|
+
function vt(I, $, q, X) {
|
|
1985
1985
|
var oe = Y.direction === "horizontal", ie = Y.direction === "mixed", ke = $ !== I ? Ie() : xe();
|
|
1986
1986
|
return ke;
|
|
1987
1987
|
function xe() {
|
|
1988
1988
|
var ye = I.children.length, Pe, Ee, Fe;
|
|
1989
1989
|
for (Pe = 0; Pe < ye; Pe++)
|
|
1990
|
-
if (Ee = I.children[Pe], Fe = Ee.getBoundingClientRect(), oe && Fe.left + Fe.width / 2 >
|
|
1990
|
+
if (Ee = I.children[Pe], Fe = Ee.getBoundingClientRect(), oe && Fe.left + Fe.width / 2 > q || !ie && !oe && Fe.top + Fe.height / 2 > X || ie && Fe.left + Fe.width > q && Fe.top + Fe.height > X)
|
|
1991
1991
|
return Ee;
|
|
1992
1992
|
return null;
|
|
1993
1993
|
}
|
|
1994
1994
|
function Ie() {
|
|
1995
1995
|
var ye = $.getBoundingClientRect();
|
|
1996
1996
|
if (ie) {
|
|
1997
|
-
var Pe = X - ye.top, Ee =
|
|
1997
|
+
var Pe = X - ye.top, Ee = q - ye.left, Fe = ye.bottom - X, ut = ye.right - q, ct = Math.min(Ee, ut, Pe, Fe), dt;
|
|
1998
1998
|
return de ? dt = ut < Ee : dt = Fe === ct || ut === ct || Ee === ct, Re(dt);
|
|
1999
1999
|
}
|
|
2000
|
-
return Re(oe ?
|
|
2000
|
+
return Re(oe ? q > ye.left + P(ye) / 2 : X > ye.top + E(ye) / 2);
|
|
2001
2001
|
}
|
|
2002
2002
|
function Re(ye) {
|
|
2003
2003
|
return ye ? g($) : $;
|