@ninebone/grid 0.0.57 → 0.0.58
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/dist/nine-grid.js +154 -154
- package/dist/nine-grid.js.map +1 -1
- package/dist/nine-grid.umd.js +21 -21
- package/dist/nine-grid.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/nine-grid.js
CHANGED
|
@@ -658,7 +658,7 @@ class Hu extends HTMLElement {
|
|
|
658
658
|
}
|
|
659
659
|
customElements.get("nine-grid2") || customElements.define("nine-grid2", Hu);
|
|
660
660
|
var Gn, Kn, Zn, as, ql;
|
|
661
|
-
class
|
|
661
|
+
class Ir extends HTMLElement {
|
|
662
662
|
constructor() {
|
|
663
663
|
super();
|
|
664
664
|
Y(this, Gn);
|
|
@@ -861,7 +861,7 @@ class Mr extends HTMLElement {
|
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
863
|
Gn = new WeakMap(), Kn = new WeakMap(), Zn = new WeakMap(), as = new WeakMap(), ql = new WeakMap();
|
|
864
|
-
class ki extends
|
|
864
|
+
class ki extends Ir {
|
|
865
865
|
constructor() {
|
|
866
866
|
super();
|
|
867
867
|
}
|
|
@@ -888,7 +888,7 @@ class ki extends Mr {
|
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
890
|
var Cs;
|
|
891
|
-
class zu extends
|
|
891
|
+
class zu extends Ir {
|
|
892
892
|
constructor() {
|
|
893
893
|
super();
|
|
894
894
|
Y(this, Cs);
|
|
@@ -1408,7 +1408,7 @@ class Yu {
|
|
|
1408
1408
|
}
|
|
1409
1409
|
}
|
|
1410
1410
|
kt = new WeakMap(), wr = new WeakMap(), Li = new WeakMap(), Xl = new WeakMap(), so = new WeakMap();
|
|
1411
|
-
var Ot, ls, io, no, oo,
|
|
1411
|
+
var Ot, ls, io, no, oo, Nr, ao, lo, cr, ho, Yl, Gl, Kl, Zl, Jl, Ql, co, uo, fo, po;
|
|
1412
1412
|
class Gu {
|
|
1413
1413
|
constructor(C) {
|
|
1414
1414
|
Y(this, Ot);
|
|
@@ -1416,7 +1416,7 @@ class Gu {
|
|
|
1416
1416
|
Y(this, io);
|
|
1417
1417
|
Y(this, no);
|
|
1418
1418
|
Y(this, oo);
|
|
1419
|
-
Y(this,
|
|
1419
|
+
Y(this, Nr);
|
|
1420
1420
|
Y(this, ao);
|
|
1421
1421
|
Y(this, lo);
|
|
1422
1422
|
Y(this, cr, 0);
|
|
@@ -1514,26 +1514,26 @@ class Gu {
|
|
|
1514
1514
|
});
|
|
1515
1515
|
});
|
|
1516
1516
|
Y(this, co, (C) => {
|
|
1517
|
-
clearInterval(f(this, ls)), tt(this, io, C.touches[0].pageX), tt(this, no, C.touches[0].pageX - $(".ng-container-body table", f(this, Ot).body).position().left), tt(this, oo, C.touches[0].pageY), tt(this,
|
|
1517
|
+
clearInterval(f(this, ls)), tt(this, io, C.touches[0].pageX), tt(this, no, C.touches[0].pageX - $(".ng-container-body table", f(this, Ot).body).position().left), tt(this, oo, C.touches[0].pageY), tt(this, Nr, C.touches[0].pageY), tt(this, lo, /* @__PURE__ */ new Date());
|
|
1518
1518
|
const t = f(this, ho).call(this, C.touches[0].pageY);
|
|
1519
1519
|
t && tt(this, ao, parseInt(t.dataset.row));
|
|
1520
1520
|
});
|
|
1521
1521
|
Y(this, uo, (C) => {
|
|
1522
1522
|
if (!(C.touches.length > 1 || C.changedTouches.length > 1)) {
|
|
1523
|
-
if (C.preventDefault(), Math.abs(C.changedTouches[0].pageY - f(this,
|
|
1524
|
-
if (C.changedTouches[0].pageY > f(this,
|
|
1525
|
-
if (f(this, cr) + C.changedTouches[0].pageY - f(this,
|
|
1526
|
-
const o = f(this, Yl).call(this, C.changedTouches[0].pageY - f(this,
|
|
1523
|
+
if (C.preventDefault(), Math.abs(C.changedTouches[0].pageY - f(this, Nr)) > 0) {
|
|
1524
|
+
if (C.changedTouches[0].pageY > f(this, Nr)) {
|
|
1525
|
+
if (f(this, cr) + C.changedTouches[0].pageY - f(this, Nr) > 0 && f(this, Ot).view.getVisibleFirstRow() != 0) {
|
|
1526
|
+
const o = f(this, Yl).call(this, C.changedTouches[0].pageY - f(this, Nr));
|
|
1527
1527
|
if (o > 0) {
|
|
1528
1528
|
for (var t = f(this, Ot).view.getVisibleFirstRow(), l = t; l < t + o; l++)
|
|
1529
1529
|
tt(this, cr, f(this, cr) - f(this, Ot).view.getRowHeight(l));
|
|
1530
1530
|
f(this, Ot).dataManager.viewRecords.rawIndex -= o, f(this, Ot).view.redrawV3();
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
1533
|
-
} else C.changedTouches[0].pageY < f(this,
|
|
1534
|
-
tt(this, cr, f(this, cr) + (C.changedTouches[0].pageY - f(this,
|
|
1533
|
+
} else C.changedTouches[0].pageY < f(this, Nr) && f(this, Gl).call(this, f(this, Nr) - C.changedTouches[0].pageY) > 0 && f(this, Ot).view.redrawV3();
|
|
1534
|
+
tt(this, cr, f(this, cr) + (C.changedTouches[0].pageY - f(this, Nr))), f(this, Ot).body.querySelectorAll("tbody.bindable").forEach((o) => {
|
|
1535
1535
|
o.style.transform = `translateY(${f(this, cr)}px)`;
|
|
1536
|
-
}), tt(this,
|
|
1536
|
+
}), tt(this, Nr, C.changedTouches[0].pageY);
|
|
1537
1537
|
} else if (Math.abs(C.changedTouches[0].pageX - f(this, io)) > 20) {
|
|
1538
1538
|
var c = C.changedTouches[0].pageX - f(this, no);
|
|
1539
1539
|
c > 0 && (c = 0), $(".ng-container-body table", f(this, Ot).body).css({ left: c }), f(this, Ot).body.querySelector("ng-hscrollbar").adjustThumb2();
|
|
@@ -1567,9 +1567,9 @@ class Gu {
|
|
|
1567
1567
|
tt(this, Ot, C), this.resetEvent();
|
|
1568
1568
|
}
|
|
1569
1569
|
}
|
|
1570
|
-
Ot = new WeakMap(), ls = new WeakMap(), io = new WeakMap(), no = new WeakMap(), oo = new WeakMap(),
|
|
1570
|
+
Ot = new WeakMap(), ls = new WeakMap(), io = new WeakMap(), no = new WeakMap(), oo = new WeakMap(), Nr = new WeakMap(), ao = new WeakMap(), lo = new WeakMap(), cr = new WeakMap(), ho = new WeakMap(), Yl = new WeakMap(), Gl = new WeakMap(), Kl = new WeakMap(), Zl = new WeakMap(), Jl = new WeakMap(), Ql = new WeakMap(), co = new WeakMap(), uo = new WeakMap(), fo = new WeakMap(), po = new WeakMap();
|
|
1571
1571
|
var th, eh, Pi, mo, Di;
|
|
1572
|
-
class Ku extends
|
|
1572
|
+
class Ku extends Ir {
|
|
1573
1573
|
constructor() {
|
|
1574
1574
|
super();
|
|
1575
1575
|
Y(this, th);
|
|
@@ -1718,12 +1718,12 @@ class Zu extends ki {
|
|
|
1718
1718
|
}
|
|
1719
1719
|
Bi = new WeakMap(), Fi = new WeakMap(), go = new WeakMap(), qi = new WeakMap(), Hi = new WeakMap();
|
|
1720
1720
|
customElements.get("ng-checkbox") || customElements.define("ng-checkbox", Zu);
|
|
1721
|
-
var ti,
|
|
1721
|
+
var ti, Dr, bo, zi, yo, rh;
|
|
1722
1722
|
class Ju extends HTMLElement {
|
|
1723
1723
|
constructor() {
|
|
1724
1724
|
super();
|
|
1725
1725
|
Y(this, ti);
|
|
1726
|
-
Y(this,
|
|
1726
|
+
Y(this, Dr);
|
|
1727
1727
|
Y(this, bo);
|
|
1728
1728
|
Y(this, zi);
|
|
1729
1729
|
Y(this, yo, (t) => {
|
|
@@ -1731,15 +1731,15 @@ class Ju extends HTMLElement {
|
|
|
1731
1731
|
});
|
|
1732
1732
|
it(this, "expand", () => {
|
|
1733
1733
|
if (H.j.querySelectorAll(this).hasClass("expand")) return;
|
|
1734
|
-
$(this).addClass("expand"), f(this,
|
|
1735
|
-
const t = parseInt(f(this,
|
|
1734
|
+
$(this).addClass("expand"), f(this, Dr).style.color = f(this, bo);
|
|
1735
|
+
const t = parseInt(f(this, Dr).dataset.col), l = f(this, Dr).colSpan || 1;
|
|
1736
1736
|
for (var c = 0; c < l; c++)
|
|
1737
1737
|
f(this, ti).columns.width(t + c, f(this, zi)[c]);
|
|
1738
1738
|
});
|
|
1739
1739
|
Y(this, rh, () => {
|
|
1740
1740
|
if (!H.j.querySelectorAll(this).hasClass("expand")) return;
|
|
1741
|
-
$(this).removeClass("expand"), tt(this, bo, f(this,
|
|
1742
|
-
const t = parseInt(f(this,
|
|
1741
|
+
$(this).removeClass("expand"), tt(this, bo, f(this, Dr).style.color), f(this, Dr).style.color = "transparent", tt(this, zi, []);
|
|
1742
|
+
const t = parseInt(f(this, Dr).dataset.col), l = f(this, Dr).colSpan || 1, c = 20 / l;
|
|
1743
1743
|
for (var o = 0; o < l; o++) {
|
|
1744
1744
|
const r = f(this, ti).body.querySelector(`colgroup col[data-col="${t + o}"]`);
|
|
1745
1745
|
f(this, zi).push(r.getAttribute("width")), f(this, ti).columns.width(t + o, c);
|
|
@@ -1753,10 +1753,10 @@ class Ju extends HTMLElement {
|
|
|
1753
1753
|
@import "https://cdn.jsdelivr.net/npm/ninegrid2@${H.version}/dist/css/ngColExpand.css";
|
|
1754
1754
|
${H.getCustomPath(this, "ngColExpand.css")}
|
|
1755
1755
|
</style>
|
|
1756
|
-
`, tt(this, ti, this.getRootNode().host), tt(this,
|
|
1756
|
+
`, tt(this, ti, this.getRootNode().host), tt(this, Dr, this.closest("th,td")), H.j.querySelectorAll(this).addClass("expand"), $(this).off("click", f(this, yo)), $(this).on("click", f(this, yo));
|
|
1757
1757
|
}
|
|
1758
1758
|
}
|
|
1759
|
-
ti = new WeakMap(),
|
|
1759
|
+
ti = new WeakMap(), Dr = new WeakMap(), bo = new WeakMap(), zi = new WeakMap(), yo = new WeakMap(), rh = new WeakMap();
|
|
1760
1760
|
customElements.get("ng-col-expand") || customElements.define("ng-col-expand", Ju);
|
|
1761
1761
|
class Qu extends HTMLElement {
|
|
1762
1762
|
constructor() {
|
|
@@ -1834,16 +1834,16 @@ class td extends HTMLElement {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
customElements.get("ng-col-mover-grip") || customElements.define("ng-col-mover-grip", Qu);
|
|
1836
1836
|
customElements.get("ng-col-mover-indi") || customElements.define("ng-col-mover-indi", td);
|
|
1837
|
-
var we,
|
|
1837
|
+
var we, Or, Br, vo, xr, Ui, Fr, wo, lu, xo, hu, _o, So, Vi, Wi, ko;
|
|
1838
1838
|
class ed {
|
|
1839
1839
|
constructor(C) {
|
|
1840
1840
|
Y(this, we);
|
|
1841
|
-
Y(this,
|
|
1842
|
-
Y(this,
|
|
1841
|
+
Y(this, Or);
|
|
1842
|
+
Y(this, Br);
|
|
1843
1843
|
Y(this, vo);
|
|
1844
1844
|
Y(this, xr);
|
|
1845
1845
|
Y(this, Ui);
|
|
1846
|
-
Y(this,
|
|
1846
|
+
Y(this, Fr);
|
|
1847
1847
|
it(this, "resetEvent", () => {
|
|
1848
1848
|
$(document).off("mouseup", f(this, Vi)), $(".ng-table thead", f(this, we).body).off("mousedown", f(this, _o)), f(this, we).body.querySelectorAll(".ng-table thead").forEach((C) => {
|
|
1849
1849
|
C.removeEventListener("click", f(this, wo));
|
|
@@ -1917,43 +1917,43 @@ class ed {
|
|
|
1917
1917
|
target: l
|
|
1918
1918
|
//e.target,
|
|
1919
1919
|
//target : e.target.closest("th,td"),
|
|
1920
|
-
}), tt(this, vo, t + f(this,
|
|
1921
|
-
const c = f(this,
|
|
1922
|
-
c.innerHTML = $(C.target).html(), $(c).css({ font: $(l).css("font") }), f(this,
|
|
1920
|
+
}), tt(this, vo, t + f(this, Or)[0].getBoundingClientRect().x);
|
|
1921
|
+
const c = f(this, Or)[0].shadowRoot.querySelector("span");
|
|
1922
|
+
c.innerHTML = $(C.target).html(), $(c).css({ font: $(l).css("font") }), f(this, Or).show(), f(this, Or).width($(l).width()), f(this, Or).height($(l).height()), f(this, Or).offset({ top: $(l).offset().top - 1 }), $(document).on("mousemove", f(this, Wi)), f(this, ko).call(this, C.pageX);
|
|
1923
1923
|
const o = f(this, we).tableUtils.getElement("thead", f(this, xr).row, C.clientX);
|
|
1924
|
-
f(this,
|
|
1924
|
+
f(this, Br).height($(o).height());
|
|
1925
1925
|
});
|
|
1926
1926
|
Y(this, Vi, (C) => {
|
|
1927
|
-
if (tt(this, Ui, !1), $(document).off("mousemove", f(this, Wi)), $(document).off("touchmove", f(this, xo)), f(this,
|
|
1927
|
+
if (tt(this, Ui, !1), $(document).off("mousemove", f(this, Wi)), $(document).off("touchmove", f(this, xo)), f(this, Fr) && $(f(this, Fr).target).css({ cursor: f(this, Fr).cursor }), f(this, xr)) {
|
|
1928
1928
|
var t = f(this, we).tableUtils.getElement("thead", f(this, xr).row, C.clientX);
|
|
1929
1929
|
f(this, we).columns.moveColumn(f(this, xr).target, t);
|
|
1930
1930
|
}
|
|
1931
|
-
tt(this,
|
|
1931
|
+
tt(this, Fr, null), tt(this, xr, null), f(this, Or).hide(), f(this, Br).hide();
|
|
1932
1932
|
});
|
|
1933
1933
|
Y(this, Wi, (C) => {
|
|
1934
1934
|
if (f(this, xr) != null) {
|
|
1935
|
-
f(this,
|
|
1935
|
+
f(this, Fr) && $(f(this, Fr).target).css({ cursor: f(this, Fr).cursor }), tt(this, Fr, { target: C.target, cursor: $(C.target).css("cursor") }), $(C.target).css({ cursor: C.target.closest("thead") || C.target.tagName == "ng-col-mover-grip" ? "move" : "not-allowed" });
|
|
1936
1936
|
var t = f(this, we).tableUtils.getElement("thead", f(this, xr).row, C.clientX);
|
|
1937
1937
|
if (t)
|
|
1938
1938
|
if (f(this, xr).col > parseInt(t.dataset.col)) {
|
|
1939
1939
|
var l = $(t).offset();
|
|
1940
|
-
f(this,
|
|
1940
|
+
f(this, Br).show(), f(this, Br).offset({ left: parseInt(l.left - 1), top: l.top });
|
|
1941
1941
|
} else if (f(this, xr).col < parseInt(t.dataset.col)) {
|
|
1942
1942
|
var l = $(t).offset();
|
|
1943
|
-
f(this,
|
|
1943
|
+
f(this, Br).show(), f(this, Br).offset({ left: parseInt(l.left + $(t).width() - 1), top: l.top });
|
|
1944
1944
|
} else
|
|
1945
|
-
f(this,
|
|
1945
|
+
f(this, Br).hide();
|
|
1946
1946
|
f(this, ko).call(this, C.pageX);
|
|
1947
1947
|
}
|
|
1948
1948
|
});
|
|
1949
1949
|
Y(this, ko, (C) => {
|
|
1950
|
-
f(this,
|
|
1950
|
+
f(this, Or).offset({ left: C - f(this, vo) });
|
|
1951
1951
|
});
|
|
1952
|
-
tt(this, we, C), $(".ng-container", f(this, we).body).append($("<ng-col-mover-grip></ng-col-mover-grip>").hide()).append($("<ng-col-mover-indi></ng-col-mover-indi>").hide()), tt(this,
|
|
1952
|
+
tt(this, we, C), $(".ng-container", f(this, we).body).append($("<ng-col-mover-grip></ng-col-mover-grip>").hide()).append($("<ng-col-mover-indi></ng-col-mover-indi>").hide()), tt(this, Or, $("ng-col-mover-grip", f(this, we).body)), tt(this, Br, $("ng-col-mover-indi", f(this, we).body)), this.resetEvent();
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
1955
|
-
we = new WeakMap(),
|
|
1956
|
-
var Ie, _r, Sr, Rs, Ms,
|
|
1955
|
+
we = new WeakMap(), Or = new WeakMap(), Br = new WeakMap(), vo = new WeakMap(), xr = new WeakMap(), Ui = new WeakMap(), Fr = new WeakMap(), wo = new WeakMap(), lu = new WeakMap(), xo = new WeakMap(), hu = new WeakMap(), _o = new WeakMap(), So = new WeakMap(), Vi = new WeakMap(), Wi = new WeakMap(), ko = new WeakMap();
|
|
1956
|
+
var Ie, _r, Sr, Rs, Ms, qr, kr, Is, Ns, Co, Eo, Ao, cu, To, sh, Ro, Xi, Yi, Gi, ei, Ki, ih;
|
|
1957
1957
|
class rd {
|
|
1958
1958
|
constructor(C) {
|
|
1959
1959
|
Y(this, Ie);
|
|
@@ -1961,7 +1961,7 @@ class rd {
|
|
|
1961
1961
|
Y(this, Sr);
|
|
1962
1962
|
Y(this, Rs);
|
|
1963
1963
|
Y(this, Ms);
|
|
1964
|
-
Y(this,
|
|
1964
|
+
Y(this, qr);
|
|
1965
1965
|
Y(this, kr);
|
|
1966
1966
|
Y(this, Is);
|
|
1967
1967
|
Y(this, Ns, []);
|
|
@@ -2022,11 +2022,11 @@ class rd {
|
|
|
2022
2022
|
if (C.target = C.target.closest("th,td"), !(C.buttons != 1 || C.altKey || C.ctrlKey || C.shiftkey)) {
|
|
2023
2023
|
if (tt(this, Is, !!C.target.closest(".ng-container-right")), C.pageX - $(C.target).offset().left <= 3) {
|
|
2024
2024
|
var t = $(`.col-indicator[data-col=${C.target.dataset.col}]`, f(this, Ie).body).not(".dummy")[0];
|
|
2025
|
-
tt(this,
|
|
2025
|
+
tt(this, qr, f(this, Ie).tableUtils.prev(t)), tt(this, kr, $(t));
|
|
2026
2026
|
} else {
|
|
2027
2027
|
if ($(C.target).width() - C.offsetX > 2) return;
|
|
2028
2028
|
var l = parseInt(C.target.dataset.col) + C.target.colSpan - 1, t = $(`.col-indicator[data-col=${l}]`, f(this, Ie).body).not(".dummy")[0];
|
|
2029
|
-
tt(this,
|
|
2029
|
+
tt(this, qr, $(t)), tt(this, kr, f(this, Ie).tableUtils.next(t));
|
|
2030
2030
|
}
|
|
2031
2031
|
f(this, _r).show(), f(this, Sr).offset({ top: $(".ng-container-body", f(this, Ie).body).offset().top, left: f(this, kr).offset().left - 1 }), f(this, Sr).height(f(this, Ie).body.querySelector(".ng-container-body").offsetHeight), f(this, Rs).offset({ top: $(".ng-container-body", f(this, Ie).body).offset().top }), f(this, Ki).call(this, C.pageX), $(f(this, _r)).off("mousemove", f(this, Yi)).off("mouseup", f(this, ei)).on("mousemove", f(this, Yi)).on("mouseup", f(this, ei));
|
|
2032
2032
|
}
|
|
@@ -2043,14 +2043,14 @@ class rd {
|
|
|
2043
2043
|
Y(this, ei, (C) => {
|
|
2044
2044
|
if (!f(this, Sr).is(":visible")) return;
|
|
2045
2045
|
var t;
|
|
2046
|
-
f(this, Is) ? t = f(this, kr).offset().left - f(this, Sr).offset().left + f(this, kr).width() : t = f(this, Sr).offset().left - f(this,
|
|
2047
|
-
const l = f(this, Is) ? f(this, kr)[0].dataset.col : f(this,
|
|
2046
|
+
f(this, Is) ? t = f(this, kr).offset().left - f(this, Sr).offset().left + f(this, kr).width() : t = f(this, Sr).offset().left - f(this, qr).offset().left + 1, t <= 1 && (t = 0);
|
|
2047
|
+
const l = f(this, Is) ? f(this, kr)[0].dataset.col : f(this, qr)[0].dataset.col;
|
|
2048
2048
|
f(this, Ie).columns.width(l, t), $(f(this, _r)).off("mousemove", f(this, Yi)), $(f(this, _r)).off("mouseup", f(this, ei)), f(this, _r).hide();
|
|
2049
2049
|
});
|
|
2050
2050
|
Y(this, Ki, (C) => {
|
|
2051
|
-
!f(this, Is) && C < f(this,
|
|
2051
|
+
!f(this, Is) && C < f(this, qr).offset().left && (C = f(this, qr).offset().left), f(this, Sr).offset({ left: C });
|
|
2052
2052
|
var t = parseInt(f(this, Sr).offset().left), l, c, o;
|
|
2053
|
-
f(this, Is) ? (c = f(this, kr).width() + f(this, kr).offset().left - f(this, Sr).offset().left, o = c < 10 ? 10 : c - 1, l = parseInt(f(this, kr).width() + f(this, kr).offset().left - f(this, Sr).offset().left)) : (c = parseInt(t - f(this,
|
|
2053
|
+
f(this, Is) ? (c = f(this, kr).width() + f(this, kr).offset().left - f(this, Sr).offset().left, o = c < 10 ? 10 : c - 1, l = parseInt(f(this, kr).width() + f(this, kr).offset().left - f(this, Sr).offset().left)) : (c = parseInt(t - f(this, qr).offset().left), o = c, l = parseInt(t - f(this, qr).offset().left + 1), t = t - o), l <= 1 && (l = 0), f(this, Rs).offset({ left: t }), f(this, Rs).width(o), f(this, Rs).find("span").text(l);
|
|
2054
2054
|
});
|
|
2055
2055
|
Y(this, ih, (C) => {
|
|
2056
2056
|
var t = C.target.closest("th,td"), l = f(this, Ie).tableUtils.prev(t), c = f(this, Ie).tableUtils.next(t), o = f(this, Ie).getBand(t.dataset.col) == H.BAND.RIGHT ? C.offsetX <= 2 ? $(t) : c : C.offsetX <= 2 ? l : $(t);
|
|
@@ -2059,8 +2059,8 @@ class rd {
|
|
|
2059
2059
|
tt(this, Ie, C), tt(this, _r, $('<div class="resizer-col-panel"><div class="grip"></div><div class="tooltip"><div></div><span></span><div></div></div></div>').hide()), $(f(this, Ie).body).append(f(this, _r)), tt(this, Sr, f(this, _r).find(".grip")), tt(this, Rs, f(this, _r).find(".tooltip")), this.resetEvent();
|
|
2060
2060
|
}
|
|
2061
2061
|
}
|
|
2062
|
-
Ie = new WeakMap(), _r = new WeakMap(), Sr = new WeakMap(), Rs = new WeakMap(), Ms = new WeakMap(),
|
|
2063
|
-
var ue, ri,
|
|
2062
|
+
Ie = new WeakMap(), _r = new WeakMap(), Sr = new WeakMap(), Rs = new WeakMap(), Ms = new WeakMap(), qr = new WeakMap(), kr = new WeakMap(), Is = new WeakMap(), Ns = new WeakMap(), Co = new WeakMap(), Eo = new WeakMap(), Ao = new WeakMap(), cu = new WeakMap(), To = new WeakMap(), sh = new WeakMap(), Ro = new WeakMap(), Xi = new WeakMap(), Yi = new WeakMap(), Gi = new WeakMap(), ei = new WeakMap(), Ki = new WeakMap(), ih = new WeakMap();
|
|
2063
|
+
var ue, ri, jr, Zi, Mo, nh;
|
|
2064
2064
|
class sd {
|
|
2065
2065
|
constructor(C) {
|
|
2066
2066
|
Y(this, ue);
|
|
@@ -2081,7 +2081,7 @@ class sd {
|
|
|
2081
2081
|
var l = Array.from(C.querySelectorAll("col"));
|
|
2082
2082
|
return l[t];
|
|
2083
2083
|
});
|
|
2084
|
-
Y(this,
|
|
2084
|
+
Y(this, jr, (C, t, l) => {
|
|
2085
2085
|
var c = [];
|
|
2086
2086
|
if (!C) return c;
|
|
2087
2087
|
for (var o = t; o <= l; o++)
|
|
@@ -2119,11 +2119,11 @@ class sd {
|
|
|
2119
2119
|
}, l = C.colSpan || 1, c = C.closest("table"), o = parseInt(C.dataset.col), r = C.closest("tr").sectionRowIndex;
|
|
2120
2120
|
$("thead tr", c).each((e, i) => {
|
|
2121
2121
|
if (i.sectionRowIndex < r && i.sectionRowIndex != 0) return !0;
|
|
2122
|
-
t.thead.cells = t.thead.cells.concat(f(this,
|
|
2123
|
-
}), t.tfoot.cells = f(this,
|
|
2122
|
+
t.thead.cells = t.thead.cells.concat(f(this, jr).call(this, i, o, o + l - 1));
|
|
2123
|
+
}), t.tfoot.cells = f(this, jr).call(this, c.querySelector("tfoot"), o, o + l - 1), t.tbody.cells = f(this, jr).call(this, c.querySelector("tbody.bindable"), o, o + l - 1), t.fixed.cells = f(this, jr).call(this, c.querySelector("tbody.fixed"), o, o + l - 1);
|
|
2124
2124
|
const n = f(this, ue).shadowRoot.querySelector("ng-foot").shadowRoot.querySelector("ng-layout");
|
|
2125
|
-
t.org.thead.cells = f(this,
|
|
2126
|
-
t.template.cells = t.template.cells.concat(f(this,
|
|
2125
|
+
t.org.thead.cells = f(this, jr).call(this, n.currentTable.querySelector("thead"), o, o + l - 1), t.org.tfoot.cells = f(this, jr).call(this, n.currentTable.querySelector("tfoot"), o, o + l - 1), t.org.tbody.cells = f(this, jr).call(this, n.currentTable.querySelector("tbody.bindable"), o, o + l - 1), t.org.fixed.cells = f(this, jr).call(this, n.currentTable.querySelector("tbody.fixed"), o, o + l - 1), f(this, ue).template.each((e, i) => {
|
|
2126
|
+
t.template.cells = t.template.cells.concat(f(this, jr).call(this, i, o, o + l - 1));
|
|
2127
2127
|
});
|
|
2128
2128
|
for (var s = o; s <= o + l - 1; s++)
|
|
2129
2129
|
t.cols.push(f(this, ri).call(this, f(this, ue).body, s));
|
|
@@ -2259,7 +2259,7 @@ class sd {
|
|
|
2259
2259
|
tt(this, ue, C);
|
|
2260
2260
|
}
|
|
2261
2261
|
}
|
|
2262
|
-
ue = new WeakMap(), ri = new WeakMap(),
|
|
2262
|
+
ue = new WeakMap(), ri = new WeakMap(), jr = new WeakMap(), Zi = new WeakMap(), Mo = new WeakMap(), nh = new WeakMap();
|
|
2263
2263
|
var oh, Ji, Le, rr, Io, Os, si, Qi, ah, lh, hh, ch, uu;
|
|
2264
2264
|
class id extends ki {
|
|
2265
2265
|
constructor() {
|
|
@@ -2605,7 +2605,7 @@ class ad extends HTMLElement {
|
|
|
2605
2605
|
}
|
|
2606
2606
|
Po = new WeakMap(), bh = new WeakMap();
|
|
2607
2607
|
customElements.get("ng-context-menu-panel") || customElements.define("ng-context-menu-panel", ad);
|
|
2608
|
-
var
|
|
2608
|
+
var Hr, Do, yh, vh, wh;
|
|
2609
2609
|
class ld {
|
|
2610
2610
|
/**
|
|
2611
2611
|
* focus event, keyboard event, mouse event : common.js
|
|
@@ -2614,37 +2614,37 @@ class ld {
|
|
|
2614
2614
|
* ninegrid.EVENT.ROW_POS_CHANGED, ninegrid.EVENT.CELL_POS_CHANGED : ngCellManager.js
|
|
2615
2615
|
*/
|
|
2616
2616
|
constructor(C) {
|
|
2617
|
-
Y(this,
|
|
2617
|
+
Y(this, Hr);
|
|
2618
2618
|
Y(this, Do, () => {
|
|
2619
|
-
$(".ng-table tbody", f(this,
|
|
2619
|
+
$(".ng-table tbody", f(this, Hr).shadowRoot).on("click", "th,td", f(this, yh)), $(".ng-table thead", f(this, Hr).shadowRoot).on("click", "th,td", f(this, vh)), $(".ng-table tfoot", f(this, Hr).shadowRoot).on("click", "th,td", f(this, wh));
|
|
2620
2620
|
});
|
|
2621
2621
|
Y(this, yh, (C) => {
|
|
2622
2622
|
if (![1, 2].includes(C.detail)) return;
|
|
2623
2623
|
const t = ["altKey", "ctrlKey", "shiftKey", "clientX", "clientY", "offsetX", "offsetY", "pageX", "pageY", "screenX", "screenY", "button", "buttons", "whitch"], l = C.target.closest("th,td"), c = C.detail == 1 ? H.EVENT.CELL_CLICK : H.EVENT.CELL_DBL_CLICK, o = new CustomEvent(c, { bubbles: !0, composed: !0, detail: { target: l } });
|
|
2624
|
-
o.col = l.dataset.col, o.row = l.dataset.row, o.subrow = parseInt(l.dataset.matrixRow) % parseInt(l.dataset.row), o.bind = l.dataset.bind, H.copyProperty(o, C, t), f(this,
|
|
2624
|
+
o.col = l.dataset.col, o.row = l.dataset.row, o.subrow = parseInt(l.dataset.matrixRow) % parseInt(l.dataset.row), o.bind = l.dataset.bind, H.copyProperty(o, C, t), f(this, Hr).dispatchEvent(o);
|
|
2625
2625
|
});
|
|
2626
2626
|
Y(this, vh, (C) => {
|
|
2627
2627
|
if (![1, 2].includes(C.detail)) return;
|
|
2628
2628
|
const t = ["altKey", "ctrlKey", "shiftKey", "clientX", "clientY", "offsetX", "offsetY", "pageX", "pageY", "screenX", "screenY", "button", "buttons", "whitch"], l = C.target.closest("th,td"), c = C.detail == 1 ? H.EVENT.HEADCELL_CLICK : H.EVENT.HEADCELL_DBL_CLICK, o = new CustomEvent(c, { bubbles: !0, composed: !0, detail: { target: l } });
|
|
2629
|
-
o.col = l.dataset.col, H.copyProperty(o, C, t), f(this,
|
|
2629
|
+
o.col = l.dataset.col, H.copyProperty(o, C, t), f(this, Hr).dispatchEvent(o);
|
|
2630
2630
|
});
|
|
2631
2631
|
Y(this, wh, (C) => {
|
|
2632
2632
|
if (![1, 2].includes(C.detail)) return;
|
|
2633
2633
|
const t = ["altKey", "ctrlKey", "shiftKey", "clientX", "clientY", "offsetX", "offsetY", "pageX", "pageY", "screenX", "screenY", "button", "buttons", "whitch"], l = C.target.closest("th,td"), c = C.detail == 1 ? H.EVENT.FOOTCELL_CLICK : H.EVENT.FOOTCELL_DBL_CLICK, o = new CustomEvent(c, { bubbles: !0, composed: !0, detail: { target: l } });
|
|
2634
|
-
o.col = l.dataset.col, H.copyProperty(o, C, t), f(this,
|
|
2634
|
+
o.col = l.dataset.col, H.copyProperty(o, C, t), f(this, Hr).dispatchEvent(o);
|
|
2635
2635
|
});
|
|
2636
|
-
tt(this,
|
|
2636
|
+
tt(this, Hr, C), f(this, Do).call(this), f(this, Hr).addEventListener(H.EVENT.LAYOUT_CHANGED, (t) => {
|
|
2637
2637
|
f(this, Do).call(this);
|
|
2638
2638
|
});
|
|
2639
2639
|
}
|
|
2640
2640
|
}
|
|
2641
|
-
|
|
2641
|
+
Hr = new WeakMap(), Do = new WeakMap(), yh = new WeakMap(), vh = new WeakMap(), wh = new WeakMap();
|
|
2642
2642
|
class hd extends Fu.constructor {
|
|
2643
2643
|
constructor() {
|
|
2644
2644
|
super(), this.init("nine-grid", "green");
|
|
2645
2645
|
}
|
|
2646
2646
|
}
|
|
2647
|
-
const
|
|
2647
|
+
const Rr = new hd();
|
|
2648
2648
|
var Yr, Bo, hs;
|
|
2649
2649
|
class cd {
|
|
2650
2650
|
constructor(C) {
|
|
@@ -2684,7 +2684,7 @@ class ud {
|
|
|
2684
2684
|
});
|
|
2685
2685
|
});
|
|
2686
2686
|
it(this, "set", (C) => {
|
|
2687
|
-
|
|
2687
|
+
Rr.log("ngData.set"), this.clear(), this.add(C, !1);
|
|
2688
2688
|
const t = () => {
|
|
2689
2689
|
var l, c, o, r;
|
|
2690
2690
|
(c = (l = f(this, Dt)) == null ? void 0 : l.owner) != null && c.matrix ? (r = (o = f(this, Dt)) == null ? void 0 : o.owner) == null || r.matrix.updateCumulativeHeights() : setTimeout(t, 50);
|
|
@@ -3199,7 +3199,7 @@ class ud {
|
|
|
3199
3199
|
return this.conv2(f(this, Dt).rawRecords);
|
|
3200
3200
|
}
|
|
3201
3201
|
set source(C) {
|
|
3202
|
-
this.clear(), this.add(C, !1),
|
|
3202
|
+
this.clear(), this.add(C, !1), Rr.log("ngData.source", C);
|
|
3203
3203
|
const t = () => {
|
|
3204
3204
|
var l, c, o, r;
|
|
3205
3205
|
(c = (l = f(this, Dt)) == null ? void 0 : l.owner) != null && c.matrix ? (r = (o = f(this, Dt)) == null ? void 0 : o.owner) == null || r.matrix.updateCumulativeHeights() : setTimeout(t, 50);
|
|
@@ -3271,7 +3271,7 @@ He = new WeakMap(), Dt = new WeakMap(), $e = new WeakMap(), Cr = new WeakMap(),
|
|
|
3271
3271
|
class dd {
|
|
3272
3272
|
constructor(C) {
|
|
3273
3273
|
this.owner = C, this.row = new cd(this), this.data = new ud(C, this), this.setDataSource = (l) => {
|
|
3274
|
-
|
|
3274
|
+
Rr.log(l), this.data && this.data.reset(), this.pageCnt = 25, this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.viewRecords.touch = () => {
|
|
3275
3275
|
this.viewRecords.updateCnt = (this.viewRecords.updateCnt || 0) + 1;
|
|
3276
3276
|
}, this.viewRecords.rawIndex = 0, this.viewRecords.setPageCnt = (c) => {
|
|
3277
3277
|
this.pageCnt = c;
|
|
@@ -21674,8 +21674,8 @@ function bd() {
|
|
|
21674
21674
|
return st === pt || (st == null || pt == null || !le(st) && !Fe(pt) ? st != st && pt != pt : (function(Et, Rt, fe, oe, he, Jt) {
|
|
21675
21675
|
var ke = Zt(Et), Ce = Zt(Rt), Re = "[object Array]", De = "[object Array]";
|
|
21676
21676
|
ke || (Re = (Re = me(Et)) == r ? s : Re), Ce || (De = (De = me(Rt)) == r ? s : De);
|
|
21677
|
-
var Qe = Re == s && !q(Et), hr = De == s && !q(Rt),
|
|
21678
|
-
if (
|
|
21677
|
+
var Qe = Re == s && !q(Et), hr = De == s && !q(Rt), Pr = Re == De;
|
|
21678
|
+
if (Pr && !Qe) return Jt || (Jt = new Ht()), ke || Xe(Et) ? Me(Et, Rt, fe, oe, he, Jt) : (function(Ee, be, _s, Js, Nl, vr, os) {
|
|
21679
21679
|
switch (_s) {
|
|
21680
21680
|
case "[object DataView]":
|
|
21681
21681
|
if (Ee.byteLength != be.byteLength || Ee.byteOffset != be.byteOffset) return !1;
|
|
@@ -21713,7 +21713,7 @@ function bd() {
|
|
|
21713
21713
|
return Jt || (Jt = new Ht()), fe(Ei, Ai, oe, he, Jt);
|
|
21714
21714
|
}
|
|
21715
21715
|
}
|
|
21716
|
-
return
|
|
21716
|
+
return Pr ? (Jt || (Jt = new Ht()), (function(Ee, be, _s, Js, Nl, vr) {
|
|
21717
21717
|
var os = 2 & Nl, Ss = Ye(Ee), Wn = Ss.length, Ol = Ye(be).length;
|
|
21718
21718
|
if (Wn != Ol && !os) return !1;
|
|
21719
21719
|
for (var Ti = Wn; Ti--; ) {
|
|
@@ -21787,8 +21787,8 @@ function bd() {
|
|
|
21787
21787
|
if (Ce[2]) {
|
|
21788
21788
|
if (De === void 0 && !(Re in Rt)) return !1;
|
|
21789
21789
|
} else {
|
|
21790
|
-
var hr = new Ht(),
|
|
21791
|
-
if (!(
|
|
21790
|
+
var hr = new Ht(), Pr;
|
|
21791
|
+
if (!(Pr === void 0 ? _e(Qe, De, he, 3, hr) : Pr)) return !1;
|
|
21792
21792
|
}
|
|
21793
21793
|
}
|
|
21794
21794
|
return !0;
|
|
@@ -21827,8 +21827,8 @@ function bd() {
|
|
|
21827
21827
|
break;
|
|
21828
21828
|
}
|
|
21829
21829
|
if (Ce) {
|
|
21830
|
-
if (!W(pt, (function(hr,
|
|
21831
|
-
if (!Ce.has(
|
|
21830
|
+
if (!W(pt, (function(hr, Pr) {
|
|
21831
|
+
if (!Ce.has(Pr) && (Re === hr || wt(Re, hr, _t, Bt, Et))) return Ce.add(Pr);
|
|
21832
21832
|
}))) {
|
|
21833
21833
|
ke = !1;
|
|
21834
21834
|
break;
|
|
@@ -22125,8 +22125,8 @@ function bd() {
|
|
|
22125
22125
|
var hr = Ce[Qe];
|
|
22126
22126
|
if (!(ke ? hr in Rt : w.call(Rt, hr))) return !1;
|
|
22127
22127
|
}
|
|
22128
|
-
var
|
|
22129
|
-
if (
|
|
22128
|
+
var Pr = Jt.get(Et);
|
|
22129
|
+
if (Pr && Jt.get(Rt)) return Pr == Rt;
|
|
22130
22130
|
var Zs = !0;
|
|
22131
22131
|
Jt.set(Et, Rt), Jt.set(Rt, Et);
|
|
22132
22132
|
for (var Ci = ke; ++Qe < Re; ) {
|
|
@@ -26774,13 +26774,13 @@ class _d extends HTMLElement {
|
|
|
26774
26774
|
}
|
|
26775
26775
|
}
|
|
26776
26776
|
kh = new WeakMap();
|
|
26777
|
-
var dn, us,
|
|
26777
|
+
var dn, us, zr, ds, Ch;
|
|
26778
26778
|
class Sd extends HTMLElement {
|
|
26779
26779
|
constructor() {
|
|
26780
26780
|
super();
|
|
26781
26781
|
Y(this, dn);
|
|
26782
26782
|
Y(this, us);
|
|
26783
|
-
Y(this,
|
|
26783
|
+
Y(this, zr);
|
|
26784
26784
|
Y(this, ds);
|
|
26785
26785
|
it(this, "add", (t) => {
|
|
26786
26786
|
f(this, us).push(...t);
|
|
@@ -26788,13 +26788,13 @@ class Sd extends HTMLElement {
|
|
|
26788
26788
|
for (const c of f(this, us)) {
|
|
26789
26789
|
l++;
|
|
26790
26790
|
const o = c.querySelector("caption"), r = o ? o.innerHTML : `Sheet${l}`;
|
|
26791
|
-
$(f(this,
|
|
26791
|
+
$(f(this, zr)).append(`<button class="ng-button" value="${l - 1}" title="${r.replaceAll('"', "'")}">${r}</button>`);
|
|
26792
26792
|
}
|
|
26793
|
-
f(this, us).length <= 1 && $(f(this,
|
|
26793
|
+
f(this, us).length <= 1 && $(f(this, zr)).hide(), H.j.querySelectorAll(f(this, zr).querySelector("button")).addClass("ng-active"), $("button", f(this, zr)).on("click", f(this, Ch));
|
|
26794
26794
|
});
|
|
26795
26795
|
it(this, "resize", () => {
|
|
26796
|
-
const t = $(f(this,
|
|
26797
|
-
$(f(this,
|
|
26796
|
+
const t = $(f(this, zr)).width() > $(this).width();
|
|
26797
|
+
$(f(this, zr)).css({
|
|
26798
26798
|
width: t ? "100%" : "unset",
|
|
26799
26799
|
"justify-content": t ? "space-evenly" : "unset"
|
|
26800
26800
|
});
|
|
@@ -26802,14 +26802,14 @@ class Sd extends HTMLElement {
|
|
|
26802
26802
|
Y(this, Ch, (t) => {
|
|
26803
26803
|
if (H.j.querySelectorAll(t.currentTarget).hasClass("ng-active")) return;
|
|
26804
26804
|
const l = f(this, ds);
|
|
26805
|
-
tt(this, ds, parseInt(t.currentTarget.value)), f(this, dn).changeRayout(f(this, ds)), H.j.querySelectorAll("button", f(this,
|
|
26805
|
+
tt(this, ds, parseInt(t.currentTarget.value)), f(this, dn).changeRayout(f(this, ds)), H.j.querySelectorAll("button", f(this, zr)).removeClass("ng-active"), H.j.querySelectorAll(t.currentTarget).addClass("ng-active");
|
|
26806
26806
|
var c = new CustomEvent(H.EVENT.LAYOUT_CHANGED, { bubbles: !0, detail: {} });
|
|
26807
26807
|
c.oldIndex = l, c.newIndex = f(this, ds), f(this, dn).dispatchEvent(c);
|
|
26808
26808
|
});
|
|
26809
26809
|
tt(this, us, []), tt(this, ds, 0);
|
|
26810
26810
|
}
|
|
26811
26811
|
connectedCallback() {
|
|
26812
|
-
tt(this, dn, this.getRootNode().host.getRootNode().host), this.innerHTML = '<div class="ng-wrap"></div>', tt(this,
|
|
26812
|
+
tt(this, dn, this.getRootNode().host.getRootNode().host), this.innerHTML = '<div class="ng-wrap"></div>', tt(this, zr, this.querySelector(".ng-wrap"));
|
|
26813
26813
|
}
|
|
26814
26814
|
get tables() {
|
|
26815
26815
|
return f(this, us);
|
|
@@ -26818,7 +26818,7 @@ class Sd extends HTMLElement {
|
|
|
26818
26818
|
return f(this, us)[f(this, ds)];
|
|
26819
26819
|
}
|
|
26820
26820
|
}
|
|
26821
|
-
dn = new WeakMap(), us = new WeakMap(),
|
|
26821
|
+
dn = new WeakMap(), us = new WeakMap(), zr = new WeakMap(), ds = new WeakMap(), Ch = new WeakMap();
|
|
26822
26822
|
customElements.get("ng-layout") || customElements.define("ng-layout", Sd);
|
|
26823
26823
|
customElements.get("ng-foot") || customElements.define("ng-foot", _d);
|
|
26824
26824
|
var Jo;
|
|
@@ -26989,7 +26989,7 @@ customElements.get("ng-rect") || customElements.define("ng-rect", Td);
|
|
|
26989
26989
|
customElements.get("ng-circle") || customElements.define("ng-circle", Rd);
|
|
26990
26990
|
customElements.get("ng-sphere") || customElements.define("ng-sphere", Md);
|
|
26991
26991
|
var Ls;
|
|
26992
|
-
class Id extends
|
|
26992
|
+
class Id extends Ir {
|
|
26993
26993
|
//#src;
|
|
26994
26994
|
constructor() {
|
|
26995
26995
|
super();
|
|
@@ -27031,7 +27031,7 @@ class Id extends Mr {
|
|
|
27031
27031
|
}
|
|
27032
27032
|
Ls = new WeakMap();
|
|
27033
27033
|
var pn, Ah;
|
|
27034
|
-
class Nd extends
|
|
27034
|
+
class Nd extends Ir {
|
|
27035
27035
|
constructor() {
|
|
27036
27036
|
super();
|
|
27037
27037
|
Y(this, pn);
|
|
@@ -27303,18 +27303,18 @@ class Ld extends ki {
|
|
|
27303
27303
|
}
|
|
27304
27304
|
Kr = new WeakMap(), li = new WeakMap(), $h = new WeakMap();
|
|
27305
27305
|
customElements.get("ng-input-date") || customElements.define("ng-input-date", Ld);
|
|
27306
|
-
var Ke, fs,
|
|
27306
|
+
var Ke, fs, Ur, Ps, gn, Zr, Lh;
|
|
27307
27307
|
class Pd extends ki {
|
|
27308
27308
|
constructor() {
|
|
27309
27309
|
super();
|
|
27310
27310
|
Y(this, Ke);
|
|
27311
27311
|
Y(this, fs);
|
|
27312
|
-
Y(this,
|
|
27312
|
+
Y(this, Ur);
|
|
27313
27313
|
Y(this, Ps);
|
|
27314
27314
|
Y(this, gn);
|
|
27315
27315
|
Y(this, Zr);
|
|
27316
27316
|
it(this, "dataRefresh", (t) => {
|
|
27317
|
-
f(this, Ke).value = this.value, H.j.querySelectorAll(f(this, Ke)).removeClass("invalid"), f(this, fs) == "number" && (isNaN(this.value) || f(this, gn) && Number(f(this, Ke).value) > Number(f(this, gn)) || f(this, Ps) && Number(f(this, Ke).value) < Number(f(this, Ps)) ? H.j.querySelectorAll(f(this, Ke)).addClass("invalid") : f(this, Zr) && f(this, Ke).value.indexOf(".") >= 0 && f(this, Ke).value.substring(f(this, Ke).value.indexOf(".") + 1).length > Number(f(this, Zr)) && H.j.querySelectorAll(f(this, Ke)).addClass("invalid")), f(this,
|
|
27317
|
+
f(this, Ke).value = this.value, H.j.querySelectorAll(f(this, Ke)).removeClass("invalid"), f(this, fs) == "number" && (isNaN(this.value) || f(this, gn) && Number(f(this, Ke).value) > Number(f(this, gn)) || f(this, Ps) && Number(f(this, Ke).value) < Number(f(this, Ps)) ? H.j.querySelectorAll(f(this, Ke)).addClass("invalid") : f(this, Zr) && f(this, Ke).value.indexOf(".") >= 0 && f(this, Ke).value.substring(f(this, Ke).value.indexOf(".") + 1).length > Number(f(this, Zr)) && H.j.querySelectorAll(f(this, Ke)).addClass("invalid")), f(this, Ur) && H.getByteLength(this.value) > Number(f(this, Ur)) && H.j.querySelectorAll(f(this, Ke)).addClass("invalid"), t || this.reset();
|
|
27318
27318
|
});
|
|
27319
27319
|
Y(this, Lh, (t) => {
|
|
27320
27320
|
if (!["Escape", "Enter", "Tab", "Home", "End", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Backspace", "Delete"].includes(t.code)) {
|
|
@@ -27328,10 +27328,10 @@ class Pd extends ki {
|
|
|
27328
27328
|
}
|
|
27329
27329
|
}
|
|
27330
27330
|
}
|
|
27331
|
-
f(this,
|
|
27331
|
+
f(this, Ur) && H.getByteLength(t.target.value) >= Number(f(this, Ur)) && t.target.selectionStart == t.target.selectionEnd && t.preventDefault();
|
|
27332
27332
|
}
|
|
27333
27333
|
});
|
|
27334
|
-
if (tt(this, fs, this.getAttribute("type") || "text"), tt(this,
|
|
27334
|
+
if (tt(this, fs, this.getAttribute("type") || "text"), tt(this, Ur, this.getAttribute("maxbyte")), tt(this, Ps, this.getAttribute("min")), tt(this, gn, this.getAttribute("max")), tt(this, Zr, this.getAttribute("scale")), !["text", "number"].includes(f(this, fs))) throw `invalid type : ${f(this, fs)}`;
|
|
27335
27335
|
}
|
|
27336
27336
|
connectedCallback() {
|
|
27337
27337
|
for (var t = [], l = 0; l < this.attributes.length; l++)
|
|
@@ -27347,7 +27347,7 @@ class Pd extends ki {
|
|
|
27347
27347
|
ondragstart="return false;"
|
|
27348
27348
|
>
|
|
27349
27349
|
`, super.connectedCallback(), tt(this, Ke, this.shadowRoot.querySelector("input")), f(this, Ke).addEventListener("keydown", f(this, Lh)), f(this, Ke).addEventListener("compositionstart", (c) => {
|
|
27350
|
-
c.target.selectionStart == c.target.selectionEnd && f(this,
|
|
27350
|
+
c.target.selectionStart == c.target.selectionEnd && f(this, Ur) && H.getByteLength(c.target.value) >= Number(f(this, Ur)) && (c.target.value = H.cut(c.target.value, Number(f(this, Ur))), this.value = c.target.value);
|
|
27351
27351
|
}), f(this, Ke).addEventListener("compositionupdate", (c) => {
|
|
27352
27352
|
f(this, fs) == "number" && (c.target.value = c.target.value.replace(c.data, ""));
|
|
27353
27353
|
}), f(this, Ke).addEventListener("compositionend", (c) => {
|
|
@@ -27356,7 +27356,7 @@ class Pd extends ki {
|
|
|
27356
27356
|
});
|
|
27357
27357
|
}
|
|
27358
27358
|
}
|
|
27359
|
-
Ke = new WeakMap(), fs = new WeakMap(),
|
|
27359
|
+
Ke = new WeakMap(), fs = new WeakMap(), Ur = new WeakMap(), Ps = new WeakMap(), gn = new WeakMap(), Zr = new WeakMap(), Lh = new WeakMap();
|
|
27360
27360
|
customElements.get("ng-input") || customElements.define("ng-input", Pd);
|
|
27361
27361
|
var Se, hi, bn, yn, vn, Ds, ci;
|
|
27362
27362
|
class Dd {
|
|
@@ -27431,7 +27431,7 @@ class Dd {
|
|
|
27431
27431
|
}
|
|
27432
27432
|
// 1. 누적 높이 배열 갱신 (데이터가 로드되거나 변경될 때 호출 필요)
|
|
27433
27433
|
updateCumulativeHeights() {
|
|
27434
|
-
|
|
27434
|
+
Rr.log("***********************====================="), Rr.log(f(this, Se).data), tt(this, Ds, [0]);
|
|
27435
27435
|
let C = 0;
|
|
27436
27436
|
const t = f(this, Se).data.count();
|
|
27437
27437
|
for (let l = 0; l < t; l++) {
|
|
@@ -27440,7 +27440,7 @@ class Dd {
|
|
|
27440
27440
|
c += this.getHeight(l * f(this, Se).template.length + o);
|
|
27441
27441
|
C += c, f(this, Ds).push(C);
|
|
27442
27442
|
}
|
|
27443
|
-
|
|
27443
|
+
Rr.log(f(this, Ds));
|
|
27444
27444
|
}
|
|
27445
27445
|
// 2. 스크롤 위치에 따른 행 인덱스 및 오프셋 조회 (이진 탐색)
|
|
27446
27446
|
getRowInfoAt(C) {
|
|
@@ -27448,11 +27448,11 @@ class Dd {
|
|
|
27448
27448
|
if (!t || t.length < 2) return { index: 0, offset: Math.max(0, C) };
|
|
27449
27449
|
let l = 0, c = t.length - 2, o = 0;
|
|
27450
27450
|
const r = Math.max(0, Math.min(C, t[t.length - 1]));
|
|
27451
|
-
for (; l <= c; ) {
|
|
27451
|
+
for (Rr.log(r, l, c, t); l <= c; ) {
|
|
27452
27452
|
let n = Math.floor((l + c) / 2);
|
|
27453
27453
|
t[n] <= r ? (o = n, l = n + 1) : c = n - 1;
|
|
27454
27454
|
}
|
|
27455
|
-
return o = Math.max(0, Math.min(o, t.length - 2)), {
|
|
27455
|
+
return Rr.log(r, l, c, t), o = Math.max(0, Math.min(o, t.length - 2)), {
|
|
27456
27456
|
index: o,
|
|
27457
27457
|
offset: r - (t[o] || 0)
|
|
27458
27458
|
};
|
|
@@ -27842,7 +27842,7 @@ class qd extends HTMLElement {
|
|
|
27842
27842
|
Be = new WeakMap(), ra = new WeakMap(), sa = new WeakMap(), Er = new WeakMap(), ia = new WeakMap(), ze = new WeakMap(), tr = new WeakMap(), Bs = new WeakMap(), Dh = new WeakMap(), wn = new WeakMap(), Bh = new WeakMap();
|
|
27843
27843
|
customElements.get("ng-paging") || customElements.define("ng-paging", qd);
|
|
27844
27844
|
var ui, na;
|
|
27845
|
-
class Hd extends
|
|
27845
|
+
class Hd extends Ir {
|
|
27846
27846
|
constructor() {
|
|
27847
27847
|
super();
|
|
27848
27848
|
Y(this, ui);
|
|
@@ -27882,22 +27882,22 @@ class Hd extends Mr {
|
|
|
27882
27882
|
}
|
|
27883
27883
|
ui = new WeakMap(), na = new WeakMap();
|
|
27884
27884
|
customElements.get("ng-progress") || customElements.define("ng-progress", Hd);
|
|
27885
|
-
var Fs,
|
|
27885
|
+
var Fs, $r, qs, di, Fh, qh;
|
|
27886
27886
|
class zd extends ki {
|
|
27887
27887
|
constructor() {
|
|
27888
27888
|
super();
|
|
27889
27889
|
Y(this, Fs);
|
|
27890
|
-
Y(this,
|
|
27890
|
+
Y(this, $r);
|
|
27891
27891
|
Y(this, qs);
|
|
27892
27892
|
Y(this, di);
|
|
27893
27893
|
it(this, "dataRefresh", (t) => {
|
|
27894
|
-
f(this,
|
|
27894
|
+
f(this, $r) && (f(this, Fh).call(this) ? H.j.querySelectorAll(this).removeClass("invalid") : H.j.querySelectorAll(this).addClass("invalid")), $(f(this, Fs)).each((l, c) => {
|
|
27895
27895
|
$(c).prop("checked", this.value == c.getAttribute("value"));
|
|
27896
27896
|
}), t || this.reset();
|
|
27897
27897
|
});
|
|
27898
27898
|
Y(this, Fh, () => {
|
|
27899
27899
|
if (H.isNull(this.value)) return !0;
|
|
27900
|
-
var t = f(this,
|
|
27900
|
+
var t = f(this, $r).findIndex((l) => this.value == l[f(this, qs)]);
|
|
27901
27901
|
return !(t < 0);
|
|
27902
27902
|
});
|
|
27903
27903
|
Y(this, qh, () => {
|
|
@@ -27906,18 +27906,18 @@ class zd extends ki {
|
|
|
27906
27906
|
async connectedCallback() {
|
|
27907
27907
|
tt(this, qs, this.getAttribute("code") || "code"), tt(this, di, this.getAttribute("codename") || "codename");
|
|
27908
27908
|
var t = this.querySelector("datalist");
|
|
27909
|
-
t && (tt(this,
|
|
27909
|
+
t && (tt(this, $r, []), t.querySelectorAll("option").forEach((n) => {
|
|
27910
27910
|
const s = n.getAttribute(f(this, qs)), e = n.getAttribute(f(this, di));
|
|
27911
|
-
s && e && f(this,
|
|
27911
|
+
s && e && f(this, $r).push({
|
|
27912
27912
|
[f(this, qs)]: s,
|
|
27913
27913
|
[f(this, di)]: e
|
|
27914
27914
|
});
|
|
27915
27915
|
})), this.owner = this.getRootNode().host, this.cell = this.closest("th,td");
|
|
27916
27916
|
const l = this.closest("th,td").getAttribute("text-align") || "center", c = l == "left" ? "flex-start" : l == "right" ? "flex-end" : "center";
|
|
27917
27917
|
var o = this.getAttribute("data-source");
|
|
27918
|
-
o && this.owner && this.owner.exprFunction && (this.owner[o] ? tt(this,
|
|
27918
|
+
o && this.owner && this.owner.exprFunction && (this.owner[o] ? tt(this, $r, this.owner[o]) : tt(this, $r, this.owner.exprFunction(o).call(this, this.owner.data.get(this.cell.dataset.row), this.cell.dataset.row)));
|
|
27919
27919
|
var r = "";
|
|
27920
|
-
f(this,
|
|
27920
|
+
f(this, $r) && f(this, $r).forEach((n) => {
|
|
27921
27921
|
r += `<label><input type="radio" value="${n[f(this, qs)]}"><span>${n[f(this, di)]}</span></label>`;
|
|
27922
27922
|
}), this.shadowRoot.innerHTML = `
|
|
27923
27923
|
<style>
|
|
@@ -27945,13 +27945,13 @@ class zd extends ki {
|
|
|
27945
27945
|
});
|
|
27946
27946
|
}
|
|
27947
27947
|
get dataSource() {
|
|
27948
|
-
return f(this,
|
|
27948
|
+
return f(this, $r);
|
|
27949
27949
|
}
|
|
27950
27950
|
}
|
|
27951
|
-
Fs = new WeakMap(),
|
|
27951
|
+
Fs = new WeakMap(), $r = new WeakMap(), qs = new WeakMap(), di = new WeakMap(), Fh = new WeakMap(), qh = new WeakMap();
|
|
27952
27952
|
customElements.get("ng-radio") || customElements.define("ng-radio", zd);
|
|
27953
27953
|
var xn;
|
|
27954
|
-
class Ud extends
|
|
27954
|
+
class Ud extends Ir {
|
|
27955
27955
|
constructor() {
|
|
27956
27956
|
super();
|
|
27957
27957
|
Y(this, xn);
|
|
@@ -27987,7 +27987,7 @@ class Ud extends Mr {
|
|
|
27987
27987
|
xn = new WeakMap();
|
|
27988
27988
|
customElements.get("ng-renderer") || customElements.define("ng-renderer", Ud);
|
|
27989
27989
|
var Hh;
|
|
27990
|
-
class Vd extends
|
|
27990
|
+
class Vd extends Ir {
|
|
27991
27991
|
constructor() {
|
|
27992
27992
|
super();
|
|
27993
27993
|
it(this, "dataRefresh", (t) => {
|
|
@@ -28113,7 +28113,7 @@ er = new WeakMap(), or = new WeakMap(), fi = new WeakMap();
|
|
|
28113
28113
|
customElements.get("ng-row-detail") || customElements.define("ng-row-detail", Vd);
|
|
28114
28114
|
customElements.get("ng-row-detail-popup") || customElements.define("ng-row-detail-popup", Wd);
|
|
28115
28115
|
var zh;
|
|
28116
|
-
const Ri = class Ri extends
|
|
28116
|
+
const Ri = class Ri extends Ir {
|
|
28117
28117
|
constructor() {
|
|
28118
28118
|
super();
|
|
28119
28119
|
it(this, "dataRefresh", (t) => {
|
|
@@ -28261,7 +28261,7 @@ class Yd extends HTMLElement {
|
|
|
28261
28261
|
sr = new WeakMap(), pr = new WeakMap(), pi = new WeakMap(), Uh = new WeakMap(), Vh = new WeakMap(), fa = new WeakMap();
|
|
28262
28262
|
customElements.get("ng-combo") || customElements.define("ng-combo", Yd);
|
|
28263
28263
|
var pa, Wh;
|
|
28264
|
-
class Gd extends
|
|
28264
|
+
class Gd extends Ir {
|
|
28265
28265
|
constructor() {
|
|
28266
28266
|
super();
|
|
28267
28267
|
Y(this, pa);
|
|
@@ -28390,7 +28390,7 @@ ur = new WeakMap(), ts = new WeakMap(), ma = new WeakMap(), mr = new WeakMap(),
|
|
|
28390
28390
|
customElements.get("ng-row-indicator") || customElements.define("ng-row-indicator", Gd);
|
|
28391
28391
|
customElements.get("ng-row-resizer") || customElements.define("ng-row-resizer", Kd);
|
|
28392
28392
|
var Zh;
|
|
28393
|
-
class Zd extends
|
|
28393
|
+
class Zd extends Ir {
|
|
28394
28394
|
constructor() {
|
|
28395
28395
|
super();
|
|
28396
28396
|
it(this, "dataRefresh", (t) => {
|
|
@@ -28460,7 +28460,7 @@ class Jd {
|
|
|
28460
28460
|
}
|
|
28461
28461
|
je = new WeakMap(), dr = new WeakMap();
|
|
28462
28462
|
customElements.get("ng-row-pin") || customElements.define("ng-row-pin", Zd);
|
|
28463
|
-
class Qd extends
|
|
28463
|
+
class Qd extends Ir {
|
|
28464
28464
|
constructor() {
|
|
28465
28465
|
super();
|
|
28466
28466
|
it(this, "dataRefresh", (t) => {
|
|
@@ -28615,7 +28615,7 @@ class tf extends HTMLElement {
|
|
|
28615
28615
|
const a = f(this, qt).body.querySelector(".ng-container-body tbody.bindable");
|
|
28616
28616
|
a && (a.style.transform = `translateY(-${u}px)`);
|
|
28617
28617
|
}
|
|
28618
|
-
|
|
28618
|
+
Rr.log("#thumb_onMouseMove", i, u, e);
|
|
28619
28619
|
}
|
|
28620
28620
|
});
|
|
28621
28621
|
Y(this, kn, () => parseInt(f(this, ge).thumb.dataset.height));
|
|
@@ -28641,15 +28641,15 @@ class tf extends HTMLElement {
|
|
|
28641
28641
|
}
|
|
28642
28642
|
}
|
|
28643
28643
|
qt = new WeakMap(), rs = new WeakMap(), ge = new WeakMap(), gr = new WeakMap(), br = new WeakMap(), _n = new WeakMap(), Jh = new WeakMap(), Qh = new WeakMap(), va = new WeakMap(), tc = new WeakMap(), wa = new WeakMap(), xa = new WeakMap(), Sn = new WeakMap(), kn = new WeakMap();
|
|
28644
|
-
var Ze, ms, ae,
|
|
28644
|
+
var Ze, ms, ae, Vr, Wr, zs, ec, _a, rc, Sa, sc, ka, Ca, Cn;
|
|
28645
28645
|
class ef extends HTMLElement {
|
|
28646
28646
|
constructor() {
|
|
28647
28647
|
super();
|
|
28648
28648
|
Y(this, Ze);
|
|
28649
28649
|
Y(this, ms);
|
|
28650
28650
|
Y(this, ae);
|
|
28651
|
-
Y(this, Ur);
|
|
28652
28651
|
Y(this, Vr);
|
|
28652
|
+
Y(this, Wr);
|
|
28653
28653
|
it(this, "refresh", () => {
|
|
28654
28654
|
if (f(this, Ze)) {
|
|
28655
28655
|
var t = $(".ng-container-body", f(this, Ze).body), l = $("table", t), c = $(".ng-scroll-track", this.shadowRoot), o = $(".ng-scroll-thumb", this.shadowRoot);
|
|
@@ -28681,17 +28681,17 @@ class ef extends HTMLElement {
|
|
|
28681
28681
|
});
|
|
28682
28682
|
Y(this, ec, () => {
|
|
28683
28683
|
var t = (l) => {
|
|
28684
|
-
clearInterval(f(this,
|
|
28684
|
+
clearInterval(f(this, Vr)), clearInterval(f(this, Wr));
|
|
28685
28685
|
var c = f(this, ae).track.getBoundingClientRect(), o = f(this, ae).thumb.getBoundingClientRect();
|
|
28686
|
-
f(this, zs).call(this, o.x - c.x + l), tt(this,
|
|
28687
|
-
clearInterval(f(this,
|
|
28686
|
+
f(this, zs).call(this, o.x - c.x + l), tt(this, Vr, setInterval(() => {
|
|
28687
|
+
clearInterval(f(this, Vr)), tt(this, Wr, setInterval(() => {
|
|
28688
28688
|
var r = f(this, ae).thumb.getBoundingClientRect();
|
|
28689
|
-
f(this, zs).call(this, r.x - c.x + l) || clearInterval(f(this,
|
|
28689
|
+
f(this, zs).call(this, r.x - c.x + l) || clearInterval(f(this, Wr));
|
|
28690
28690
|
}, 10));
|
|
28691
28691
|
}, 500));
|
|
28692
28692
|
};
|
|
28693
28693
|
f(this, ae).left.ontouchend = f(this, ae).right.ontouchend = f(this, ae).track.ontouchend = f(this, ae).left.onmouseup = f(this, ae).left.onmouseleave = f(this, ae).right.onmouseup = f(this, ae).right.onmouseleave = f(this, ae).track.onmouseup, f(this, ae).track.onmouseleave = (l) => {
|
|
28694
|
-
clearInterval(f(this,
|
|
28694
|
+
clearInterval(f(this, Vr)), clearInterval(f(this, Wr));
|
|
28695
28695
|
}, $(f(this, ae).left).on("mousedown", (l) => {
|
|
28696
28696
|
l.buttons != 1 || l.altKey || l.ctrlKey || l.shiftKey || t(-10);
|
|
28697
28697
|
}), $(f(this, ae).right).on("mousedown", (l) => {
|
|
@@ -28701,9 +28701,9 @@ class ef extends HTMLElement {
|
|
|
28701
28701
|
}), $(f(this, ae).right).on("touchstart", (l) => {
|
|
28702
28702
|
t(10);
|
|
28703
28703
|
}), $(f(this, ae).track).on("mousedown", f(this, Sa)), $(f(this, ae).track).on("touchstart", f(this, rc)), $(f(this, ae).thumb).on("mousedown", f(this, ka)), $(f(this, ae).thumb).on("touchstart", f(this, sc)), document.addEventListener("touchend", (l) => {
|
|
28704
|
-
tt(this, ms, !1), clearInterval(f(this,
|
|
28704
|
+
tt(this, ms, !1), clearInterval(f(this, Vr)), clearInterval(f(this, Wr)), $(document).off("touchmove", f(this, Ca)), typeof this.onDragStop == "function" && this.onDragStop();
|
|
28705
28705
|
}), document.addEventListener("mouseup", (l) => {
|
|
28706
|
-
tt(this, ms, !1), clearInterval(f(this,
|
|
28706
|
+
tt(this, ms, !1), clearInterval(f(this, Vr)), clearInterval(f(this, Wr)), document.removeEventListener("mousemove", f(this, Cn)), typeof this.onDragStop == "function" && this.onDragStop();
|
|
28707
28707
|
});
|
|
28708
28708
|
});
|
|
28709
28709
|
Y(this, _a, (t) => {
|
|
@@ -28720,10 +28720,10 @@ class ef extends HTMLElement {
|
|
|
28720
28720
|
t.offsetX = t.targetTouches[0].pageX - l.left, t.offsetY = t.targetTouches[0].pageY - l.top, t.pageX = t.changedTouches[0].pageX, t.pageY = t.changedTouches[0].pageY, t.clientX = t.changedTouches[0].clientX, t.clientY = t.changedTouches[0].clientY, t.buttons = 1, f(this, Sa).call(this, t);
|
|
28721
28721
|
});
|
|
28722
28722
|
Y(this, Sa, (t) => {
|
|
28723
|
-
f(this, ms) || t.buttons != 1 || t.altKey || t.ctrlKey || t.shiftKey || (t.preventDefault(), f(this, _a).call(this, t.clientX), tt(this,
|
|
28724
|
-
clearInterval(f(this,
|
|
28723
|
+
f(this, ms) || t.buttons != 1 || t.altKey || t.ctrlKey || t.shiftKey || (t.preventDefault(), f(this, _a).call(this, t.clientX), tt(this, Vr, setInterval(() => {
|
|
28724
|
+
clearInterval(f(this, Vr)), tt(this, Wr, setInterval(() => {
|
|
28725
28725
|
var l = f(this, ae).thumb.getBoundingClientRect();
|
|
28726
|
-
t.clientX > l.x && t.clientX < l.x + l.width ? clearInterval(f(this,
|
|
28726
|
+
t.clientX > l.x && t.clientX < l.x + l.width ? clearInterval(f(this, Wr)) : f(this, _a).call(this, t.clientX);
|
|
28727
28727
|
}, 10));
|
|
28728
28728
|
}, 500)));
|
|
28729
28729
|
});
|
|
@@ -28764,7 +28764,7 @@ class ef extends HTMLElement {
|
|
|
28764
28764
|
}), f(this, ms), this.shiftX, f(this, ec).call(this);
|
|
28765
28765
|
}
|
|
28766
28766
|
}
|
|
28767
|
-
Ze = new WeakMap(), ms = new WeakMap(), ae = new WeakMap(),
|
|
28767
|
+
Ze = new WeakMap(), ms = new WeakMap(), ae = new WeakMap(), Vr = new WeakMap(), Wr = new WeakMap(), zs = new WeakMap(), ec = new WeakMap(), _a = new WeakMap(), rc = new WeakMap(), Sa = new WeakMap(), sc = new WeakMap(), ka = new WeakMap(), Ca = new WeakMap(), Cn = new WeakMap();
|
|
28768
28768
|
customElements.get("ng-hscrollbar") || customElements.define("ng-hscrollbar", ef);
|
|
28769
28769
|
customElements.get("ng-vscrollbar") || customElements.define("ng-vscrollbar", tf);
|
|
28770
28770
|
var Ue, ss, Ea, Aa, Ta, ic, nc;
|
|
@@ -29273,7 +29273,7 @@ Ia = new WeakMap(), Na = new WeakMap(), Oa = new WeakMap(), ja = new WeakMap();
|
|
|
29273
29273
|
customElements.get("ng-textarea") || customElements.define("ng-textarea", of);
|
|
29274
29274
|
customElements.get("ng-textarea-detail") || customElements.define("ng-textarea-detail", af);
|
|
29275
29275
|
var $a, La, Pa, gi, Xn, ac, lc, hc, cc, gu, Da, Ba, uc, dc, fc;
|
|
29276
|
-
class lf extends
|
|
29276
|
+
class lf extends Ir {
|
|
29277
29277
|
constructor() {
|
|
29278
29278
|
super();
|
|
29279
29279
|
Y(this, gi);
|
|
@@ -29987,8 +29987,8 @@ class Qc extends HTMLElement {
|
|
|
29987
29987
|
});
|
|
29988
29988
|
});
|
|
29989
29989
|
Y(this, Sc, () => {
|
|
29990
|
-
if (
|
|
29991
|
-
|
|
29990
|
+
if (Rr.log("1111111"), f(this, Ga)) return;
|
|
29991
|
+
Rr.log("222222"), this.originFormat = this.outerHTML, this.uuid = H.randomUUID(), this.id || (this.id = this.uuid), $("table", this).each((r, n) => {
|
|
29992
29992
|
if ($("colgroup", n).length == 0) {
|
|
29993
29993
|
var s = 0;
|
|
29994
29994
|
$("tbody tr", n).eq(0).find("th,td").each((i, u) => {
|
|
@@ -30062,7 +30062,7 @@ class Qc extends HTMLElement {
|
|
|
30062
30062
|
["columns"].includes(c) && (this[c] = this.tableUtils[c]);
|
|
30063
30063
|
for (var c in this.cell)
|
|
30064
30064
|
this.cell[c] instanceof Function && !["refresh"].includes(c) || ["xx"].includes(c) && (this[c] = this.cell[c]);
|
|
30065
|
-
H.j.querySelectorAll(this).hasClass("simple") || (this.filtering = new cf(this)), !H.j.querySelectorAll(this).hasClass("combo") && !H.j.querySelectorAll(this).hasClass("filter") && $(this.shadowRoot).append($("<ng-combo-panel></ng-combo-panel").hide()), this.sorting = new rf(this), this.matrix = new Dd(this),
|
|
30065
|
+
H.j.querySelectorAll(this).hasClass("simple") || (this.filtering = new cf(this)), !H.j.querySelectorAll(this).hasClass("combo") && !H.j.querySelectorAll(this).hasClass("filter") && $(this.shadowRoot).append($("<ng-combo-panel></ng-combo-panel").hide()), this.sorting = new rf(this), this.matrix = new Dd(this), Rr.log("==============================="), Rr.log(this, this.matrix), tt(this, vi, new rd(this)), tt(this, Ka, new ed(this)), H.j.querySelectorAll(this).hasClass("simple") || tt(this, Tn, new Xd(this)), f(this, Qa).call(this), this.refresh(), this.body.querySelector(".ng-container-body .nodata") && new ResizeObserver((r, n) => {
|
|
30066
30066
|
this.body.querySelector("ng-vscrollbar").refresh();
|
|
30067
30067
|
}).observe(this.body.querySelector(".ng-container-body .nodata")), !H.j.querySelectorAll(this).hasClass("filter") && !H.j.querySelectorAll(this).hasClass("combo") && ($(this.body).on("mousedown", (r) => {
|
|
30068
30068
|
this.shadowRoot.querySelectorAll("ng-combo-panel,ng-filter-panel,ng-context-menu-panel").forEach((n) => {
|
|
@@ -31545,24 +31545,24 @@ class Mf extends HTMLElement {
|
|
|
31545
31545
|
}
|
|
31546
31546
|
customElements.get("nx-tab") || customElements.define("nx-tab", Rf);
|
|
31547
31547
|
customElements.get("nx-tab-page") || customElements.define("nx-tab-page", Mf);
|
|
31548
|
-
var
|
|
31548
|
+
var Lr, qc, Hc, zc, yl;
|
|
31549
31549
|
class If extends HTMLElement {
|
|
31550
31550
|
constructor() {
|
|
31551
31551
|
super();
|
|
31552
|
-
Y(this,
|
|
31552
|
+
Y(this, Lr);
|
|
31553
31553
|
Y(this, qc, (t) => {
|
|
31554
31554
|
const l = t.previousElementSibling, c = t.nextElementSibling;
|
|
31555
31555
|
if (!l || !c) {
|
|
31556
|
-
tt(this,
|
|
31556
|
+
tt(this, Lr, this.classList.contains("h") ? "h" : "v");
|
|
31557
31557
|
return;
|
|
31558
31558
|
}
|
|
31559
31559
|
const o = l.getBoundingClientRect(), r = c.getBoundingClientRect();
|
|
31560
|
-
this.classList.contains("h") ? tt(this,
|
|
31560
|
+
this.classList.contains("h") ? tt(this, Lr, "h") : this.classList.contains("v") ? tt(this, Lr, "v") : tt(this, Lr, Math.abs(o.top - r.top) < 5 ? "h" : "v");
|
|
31561
31561
|
});
|
|
31562
31562
|
Y(this, Hc, (t) => {
|
|
31563
31563
|
t.preventDefault(), t.stopPropagation();
|
|
31564
|
-
const l = this.getBoundingClientRect(), c = f(this,
|
|
31565
|
-
r.className = `nx-splitter-drag-bar-${f(this,
|
|
31564
|
+
const l = this.getBoundingClientRect(), c = f(this, Lr) === "h", o = c ? t.clientX - l.left : t.clientY - l.top, r = document.createElement("div");
|
|
31565
|
+
r.className = `nx-splitter-drag-bar-${f(this, Lr)}`, Object.assign(r.style, {
|
|
31566
31566
|
position: "absolute",
|
|
31567
31567
|
zIndex: "999",
|
|
31568
31568
|
background: "#666",
|
|
@@ -31597,8 +31597,8 @@ class If extends HTMLElement {
|
|
|
31597
31597
|
window.addEventListener("mousemove", b), window.addEventListener("mouseup", g);
|
|
31598
31598
|
});
|
|
31599
31599
|
Y(this, zc, () => {
|
|
31600
|
-
f(this, qc).call(this, this), this.classList.add(f(this,
|
|
31601
|
-
const t = this.innerHTML.trim(), l = `grip-${f(this,
|
|
31600
|
+
f(this, qc).call(this, this), this.classList.add(f(this, Lr));
|
|
31601
|
+
const t = this.innerHTML.trim(), l = `grip-${f(this, Lr)}`, c = t === "" ? `<div class="${l}"></div>` : `<div class="${l}"></div><div class="inner-container">${t}</div><div class="${l}"></div>`;
|
|
31602
31602
|
this.innerHTML = "";
|
|
31603
31603
|
const o = document.createElement("template");
|
|
31604
31604
|
o.innerHTML = `
|
|
@@ -31612,7 +31612,7 @@ class If extends HTMLElement {
|
|
|
31612
31612
|
}), f(this, yl).call(this), window.addEventListener("resize", () => f(this, yl).call(this));
|
|
31613
31613
|
});
|
|
31614
31614
|
Y(this, yl, () => {
|
|
31615
|
-
const t = f(this,
|
|
31615
|
+
const t = f(this, Lr) === "h", l = this.parentElement, c = Array.from(l.children).filter((s) => s.tagName.toLowerCase() !== "nx-splitter");
|
|
31616
31616
|
if (c.length < 2) return;
|
|
31617
31617
|
const o = l.getBoundingClientRect(), r = c.reduce((s, e) => {
|
|
31618
31618
|
const i = t ? e.getBoundingClientRect().width : e.getBoundingClientRect().height;
|
|
@@ -31629,7 +31629,7 @@ class If extends HTMLElement {
|
|
|
31629
31629
|
f(this, zc).call(this);
|
|
31630
31630
|
}
|
|
31631
31631
|
}
|
|
31632
|
-
|
|
31632
|
+
Lr = new WeakMap(), qc = new WeakMap(), Hc = new WeakMap(), zc = new WeakMap(), yl = new WeakMap();
|
|
31633
31633
|
customElements.get("nx-splitter") || customElements.define("nx-splitter", If);
|
|
31634
31634
|
var bu, Uc;
|
|
31635
31635
|
class Nf extends HTMLElement {
|
|
@@ -31769,11 +31769,11 @@ class Of extends HTMLElement {
|
|
|
31769
31769
|
}
|
|
31770
31770
|
Tr = new WeakMap(), vl = new WeakMap(), wl = new WeakMap(), xl = new WeakMap(), _l = new WeakMap(), Vc = new WeakMap();
|
|
31771
31771
|
customElements.get("nx-title") || customElements.define("nx-title", Of);
|
|
31772
|
-
var Sl, Si, kl,
|
|
31772
|
+
var Sl, Si, kl, Mr, Yn, su, iu, Cl, Wc;
|
|
31773
31773
|
class vu extends HTMLElement {
|
|
31774
31774
|
constructor() {
|
|
31775
31775
|
super();
|
|
31776
|
-
Y(this,
|
|
31776
|
+
Y(this, Mr);
|
|
31777
31777
|
it(this, "originContents");
|
|
31778
31778
|
Y(this, Sl, !1);
|
|
31779
31779
|
Y(this, Si);
|
|
@@ -31781,7 +31781,7 @@ class vu extends HTMLElement {
|
|
|
31781
31781
|
Y(this, kl, !1);
|
|
31782
31782
|
it(this, "getData", () => {
|
|
31783
31783
|
const t = {};
|
|
31784
|
-
return Ge(this,
|
|
31784
|
+
return Ge(this, Mr, Yn).call(this).forEach((l) => {
|
|
31785
31785
|
const c = l.name;
|
|
31786
31786
|
if (!c) return;
|
|
31787
31787
|
let o;
|
|
@@ -31794,20 +31794,20 @@ class vu extends HTMLElement {
|
|
|
31794
31794
|
});
|
|
31795
31795
|
// 파라미터가 있으면 해당 값으로, 없으면 전체 공백 초기화
|
|
31796
31796
|
it(this, "clearData", (t = {}) => {
|
|
31797
|
-
Ge(this,
|
|
31797
|
+
Ge(this, Mr, iu).call(this), Ge(this, Mr, Yn).call(this).forEach((l) => {
|
|
31798
31798
|
const c = l.name;
|
|
31799
31799
|
if (!c) return;
|
|
31800
31800
|
const o = t && t[c] !== void 0 ? t[c] : "";
|
|
31801
|
-
Ge(this,
|
|
31801
|
+
Ge(this, Mr, su).call(this, l, o);
|
|
31802
31802
|
}), this.changed = !1;
|
|
31803
31803
|
});
|
|
31804
31804
|
it(this, "setData", (t) => {
|
|
31805
31805
|
if (!t || typeof t != "object") return;
|
|
31806
|
-
Ge(this,
|
|
31806
|
+
Ge(this, Mr, iu).call(this);
|
|
31807
31807
|
let l = !1;
|
|
31808
|
-
Ge(this,
|
|
31808
|
+
Ge(this, Mr, Yn).call(this).forEach((c) => {
|
|
31809
31809
|
const o = c.name;
|
|
31810
|
-
!o || !t.hasOwnProperty(o) || Ge(this,
|
|
31810
|
+
!o || !t.hasOwnProperty(o) || Ge(this, Mr, su).call(this, c, t[o]) && (l = !0);
|
|
31811
31811
|
}), l && (this.changed = !0);
|
|
31812
31812
|
});
|
|
31813
31813
|
it(this, "initData", (t) => {
|
|
@@ -31842,7 +31842,7 @@ class vu extends HTMLElement {
|
|
|
31842
31842
|
return f(this, Si) || this;
|
|
31843
31843
|
}
|
|
31844
31844
|
}
|
|
31845
|
-
Sl = new WeakMap(), Si = new WeakMap(), kl = new WeakMap(),
|
|
31845
|
+
Sl = new WeakMap(), Si = new WeakMap(), kl = new WeakMap(), Mr = new WeakSet(), // 공통 쿼리 함수: 현재 root(Shadow 또는 Light DOM)에서 요소를 찾음
|
|
31846
31846
|
Yn = function() {
|
|
31847
31847
|
return H.querySelectorAll("input[name], textarea[name], select[name], nx-editor[name]", f(this, Si));
|
|
31848
31848
|
}, // [공통 로직 1] 특정 요소에 값을 쓰거나 초기화하는 핵심 함수
|
|
@@ -31863,7 +31863,7 @@ su = function(t, l) {
|
|
|
31863
31863
|
return r;
|
|
31864
31864
|
}, // [공통 로직 2] 이벤트 리스너 일괄 등록
|
|
31865
31865
|
iu = function() {
|
|
31866
|
-
Ge(this,
|
|
31866
|
+
Ge(this, Mr, Yn).call(this).forEach((t) => {
|
|
31867
31867
|
t.removeEventListener("input", f(this, Cl)), t.addEventListener("input", f(this, Cl));
|
|
31868
31868
|
});
|
|
31869
31869
|
}, Cl = new WeakMap(), Wc = new WeakMap();
|