@ninebone/grid 0.0.40 → 0.0.41
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 +27 -27
- package/dist/nine-grid.js.map +1 -1
- package/dist/nine-grid.umd.js +30 -30
- package/dist/nine-grid.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/nine-grid.js
CHANGED
|
@@ -2644,7 +2644,7 @@ class hd extends Fu.constructor {
|
|
|
2644
2644
|
super(), this.init("nine-grid", "green");
|
|
2645
2645
|
}
|
|
2646
2646
|
}
|
|
2647
|
-
const
|
|
2647
|
+
const Gs = new hd();
|
|
2648
2648
|
var Xr, 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
|
+
Gs.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);
|
|
@@ -3266,7 +3266,7 @@ He = new WeakMap(), Dt = new WeakMap(), $e = new WeakMap(), Cr = new WeakMap(),
|
|
|
3266
3266
|
class dd {
|
|
3267
3267
|
constructor(C) {
|
|
3268
3268
|
this.owner = C, this.row = new cd(this), this.data = new ud(C, this), this.setDataSource = (l) => {
|
|
3269
|
-
this.data && this.data.reset(), this.pageCnt = 25, this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.viewRecords.touch = () => {
|
|
3269
|
+
Gs.log(l), this.data && this.data.reset(), this.pageCnt = 25, this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.viewRecords.touch = () => {
|
|
3270
3270
|
this.viewRecords.updateCnt = (this.viewRecords.updateCnt || 0) + 1;
|
|
3271
3271
|
}, this.viewRecords.rawIndex = 0, this.viewRecords.setPageCnt = (c) => {
|
|
3272
3272
|
this.pageCnt = c;
|
|
@@ -21670,13 +21670,13 @@ function bd() {
|
|
|
21670
21670
|
var ke = Zt(Et), Ce = Zt(Rt), Re = "[object Array]", De = "[object Array]";
|
|
21671
21671
|
ke || (Re = (Re = me(Et)) == r ? s : Re), Ce || (De = (De = me(Rt)) == r ? s : De);
|
|
21672
21672
|
var Qe = Re == s && !q(Et), hr = De == s && !q(Rt), Lr = Re == De;
|
|
21673
|
-
if (Lr && !Qe) return Jt || (Jt = new qt()), ke || Xe(Et) ? Me(Et, Rt, fe, oe, he, Jt) : (function(Ee, be, _s,
|
|
21673
|
+
if (Lr && !Qe) return Jt || (Jt = new qt()), ke || Xe(Et) ? Me(Et, Rt, fe, oe, he, Jt) : (function(Ee, be, _s, Js, Nl, vr, os) {
|
|
21674
21674
|
switch (_s) {
|
|
21675
21675
|
case "[object DataView]":
|
|
21676
21676
|
if (Ee.byteLength != be.byteLength || Ee.byteOffset != be.byteOffset) return !1;
|
|
21677
21677
|
Ee = Ee.buffer, be = be.buffer;
|
|
21678
21678
|
case "[object ArrayBuffer]":
|
|
21679
|
-
return !(Ee.byteLength != be.byteLength || !
|
|
21679
|
+
return !(Ee.byteLength != be.byteLength || !Js(new N(Ee), new N(be)));
|
|
21680
21680
|
case "[object Boolean]":
|
|
21681
21681
|
case "[object Date]":
|
|
21682
21682
|
case "[object Number]":
|
|
@@ -21694,7 +21694,7 @@ function bd() {
|
|
|
21694
21694
|
var Ol = os.get(Ee);
|
|
21695
21695
|
if (Ol) return Ol == be;
|
|
21696
21696
|
vr |= 1, os.set(Ee, be);
|
|
21697
|
-
var Ti = Me(Ss(Ee), Ss(be),
|
|
21697
|
+
var Ti = Me(Ss(Ee), Ss(be), Js, Nl, vr, os);
|
|
21698
21698
|
return os.delete(Ee), Ti;
|
|
21699
21699
|
case "[object Symbol]":
|
|
21700
21700
|
if (bt) return bt.call(Ee) == bt.call(be);
|
|
@@ -21702,13 +21702,13 @@ function bd() {
|
|
|
21702
21702
|
return !1;
|
|
21703
21703
|
})(Et, Rt, Re, fe, oe, he, Jt);
|
|
21704
21704
|
if (!(2 & he)) {
|
|
21705
|
-
var
|
|
21706
|
-
if (
|
|
21707
|
-
var Ei =
|
|
21705
|
+
var Zs = Qe && X.call(Et, "__wrapped__"), Ci = hr && X.call(Rt, "__wrapped__");
|
|
21706
|
+
if (Zs || Ci) {
|
|
21707
|
+
var Ei = Zs ? Et.value() : Et, Ai = Ci ? Rt.value() : Rt;
|
|
21708
21708
|
return Jt || (Jt = new qt()), fe(Ei, Ai, oe, he, Jt);
|
|
21709
21709
|
}
|
|
21710
21710
|
}
|
|
21711
|
-
return Lr ? (Jt || (Jt = new qt()), (function(Ee, be, _s,
|
|
21711
|
+
return Lr ? (Jt || (Jt = new qt()), (function(Ee, be, _s, Js, Nl, vr) {
|
|
21712
21712
|
var os = 2 & Nl, Ss = Ye(Ee), Wn = Ss.length, Ol = Ye(be).length;
|
|
21713
21713
|
if (Wn != Ol && !os) return !1;
|
|
21714
21714
|
for (var Ti = Wn; Ti--; ) {
|
|
@@ -21722,8 +21722,8 @@ function bd() {
|
|
|
21722
21722
|
for (var tu = os; ++Ti < Wn; ) {
|
|
21723
21723
|
ks = Ss[Ti];
|
|
21724
21724
|
var $l = Ee[ks], Ll = be[ks];
|
|
21725
|
-
if (
|
|
21726
|
-
if (!(xu === void 0 ? $l === Ll || _s($l, Ll,
|
|
21725
|
+
if (Js) var xu = os ? Js(Ll, $l, ks, be, Ee, vr) : Js($l, Ll, ks, Ee, be, vr);
|
|
21726
|
+
if (!(xu === void 0 ? $l === Ll || _s($l, Ll, Js, Nl, vr) : xu)) {
|
|
21727
21727
|
jl = !1;
|
|
21728
21728
|
break;
|
|
21729
21729
|
}
|
|
@@ -22122,23 +22122,23 @@ function bd() {
|
|
|
22122
22122
|
}
|
|
22123
22123
|
var Lr = Jt.get(Et);
|
|
22124
22124
|
if (Lr && Jt.get(Rt)) return Lr == Rt;
|
|
22125
|
-
var
|
|
22125
|
+
var Zs = !0;
|
|
22126
22126
|
Jt.set(Et, Rt), Jt.set(Rt, Et);
|
|
22127
22127
|
for (var Ci = ke; ++Qe < Re; ) {
|
|
22128
22128
|
hr = Ce[Qe];
|
|
22129
22129
|
var Ei = Et[hr], Ai = Rt[hr];
|
|
22130
22130
|
if (oe) var Ee = ke ? oe(Ai, Ei, hr, Rt, Et, Jt) : oe(Ei, Ai, hr, Et, Rt, Jt);
|
|
22131
22131
|
if (!(Ee === void 0 ? Ei === Ai || he(Ei, Ai, fe, oe, Jt) : Ee)) {
|
|
22132
|
-
|
|
22132
|
+
Zs = !1;
|
|
22133
22133
|
break;
|
|
22134
22134
|
}
|
|
22135
22135
|
Ci || (Ci = hr == "constructor");
|
|
22136
22136
|
}
|
|
22137
|
-
if (
|
|
22137
|
+
if (Zs && !Ci) {
|
|
22138
22138
|
var be = Et.constructor, _s = Rt.constructor;
|
|
22139
|
-
be == _s || !("constructor" in Et) || !("constructor" in Rt) || typeof be == "function" && be instanceof be && typeof _s == "function" && _s instanceof _s || (
|
|
22139
|
+
be == _s || !("constructor" in Et) || !("constructor" in Rt) || typeof be == "function" && be instanceof be && typeof _s == "function" && _s instanceof _s || (Zs = !1);
|
|
22140
22140
|
}
|
|
22141
|
-
return Jt.delete(Et), Jt.delete(Rt),
|
|
22141
|
+
return Jt.delete(Et), Jt.delete(Rt), Zs;
|
|
22142
22142
|
})(Mt, ee, Zt, Vt, ie, re)) : !1;
|
|
22143
22143
|
})(at, dt, yt, Tt, Wt, Kt));
|
|
22144
22144
|
}
|
|
@@ -27426,7 +27426,7 @@ class Dd {
|
|
|
27426
27426
|
}
|
|
27427
27427
|
// 1. 누적 높이 배열 갱신 (데이터가 로드되거나 변경될 때 호출 필요)
|
|
27428
27428
|
updateCumulativeHeights() {
|
|
27429
|
-
|
|
27429
|
+
Gs.log("====================="), Gs.log(f(this, Se).data), tt(this, Zr, [0]);
|
|
27430
27430
|
let C = 0;
|
|
27431
27431
|
const t = f(this, Se).data.count();
|
|
27432
27432
|
for (let l = 0; l < t; l++) {
|
|
@@ -29970,8 +29970,8 @@ class Qc extends HTMLElement {
|
|
|
29970
29970
|
});
|
|
29971
29971
|
});
|
|
29972
29972
|
Y(this, Sc, () => {
|
|
29973
|
-
if (
|
|
29974
|
-
|
|
29973
|
+
if (Gs.log("1111111"), f(this, Ga)) return;
|
|
29974
|
+
Gs.log("222222"), this.originFormat = this.outerHTML, this.uuid = H.randomUUID(), this.id || (this.id = this.uuid), $("table", this).each((r, n) => {
|
|
29975
29975
|
if ($("colgroup", n).length == 0) {
|
|
29976
29976
|
var s = 0;
|
|
29977
29977
|
$("tbody tr", n).eq(0).find("th,td").each((i, u) => {
|
|
@@ -30045,7 +30045,7 @@ class Qc extends HTMLElement {
|
|
|
30045
30045
|
["columns"].includes(c) && (this[c] = this.tableUtils[c]);
|
|
30046
30046
|
for (var c in this.cell)
|
|
30047
30047
|
this.cell[c] instanceof Function && !["refresh"].includes(c) || ["xx"].includes(c) && (this[c] = this.cell[c]);
|
|
30048
|
-
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),
|
|
30048
|
+
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), Gs.log("==============================="), Gs.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) => {
|
|
30049
30049
|
this.body.querySelector("ng-vscrollbar").refresh();
|
|
30050
30050
|
}).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) => {
|
|
30051
30051
|
this.shadowRoot.querySelectorAll("ng-combo-panel,ng-filter-panel,ng-context-menu-panel").forEach((n) => {
|
|
@@ -31927,11 +31927,11 @@ qn = new WeakMap(), Al = new WeakSet(), nu = function() {
|
|
|
31927
31927
|
}
|
|
31928
31928
|
};
|
|
31929
31929
|
customElements.get("nx-layout") || customElements.define("nx-layout", $f);
|
|
31930
|
-
var Hn,
|
|
31930
|
+
var Hn, Ks, ou, au, Yc;
|
|
31931
31931
|
class Lf extends HTMLElement {
|
|
31932
31932
|
constructor() {
|
|
31933
31933
|
super();
|
|
31934
|
-
Y(this,
|
|
31934
|
+
Y(this, Ks);
|
|
31935
31935
|
Y(this, Hn);
|
|
31936
31936
|
Y(this, Yc, () => {
|
|
31937
31937
|
const t = (c) => {
|
|
@@ -31958,19 +31958,19 @@ class Lf extends HTMLElement {
|
|
|
31958
31958
|
return ["columns", "rows-height"];
|
|
31959
31959
|
}
|
|
31960
31960
|
connectedCallback() {
|
|
31961
|
-
tt(this, Hn, Array.from(this.children).filter((t) => t.tagName.toLowerCase() !== "nx-splitter")), Ge(this,
|
|
31961
|
+
tt(this, Hn, Array.from(this.children).filter((t) => t.tagName.toLowerCase() !== "nx-splitter")), Ge(this, Ks, au).call(this);
|
|
31962
31962
|
}
|
|
31963
31963
|
attributeChangedCallback(t, l, c) {
|
|
31964
|
-
l !== c && (t === "rows-height" && Ge(this,
|
|
31964
|
+
l !== c && (t === "rows-height" && Ge(this, Ks, ou).call(this, c), f(this, Hn) && Ge(this, Ks, au).call(this));
|
|
31965
31965
|
}
|
|
31966
31966
|
}
|
|
31967
|
-
Hn = new WeakMap(),
|
|
31967
|
+
Hn = new WeakMap(), Ks = new WeakSet(), ou = function(t) {
|
|
31968
31968
|
if (t) {
|
|
31969
31969
|
const l = t.replace(/,/g, " ").replace(/\*/g, "1fr");
|
|
31970
31970
|
this.style.setProperty("--rows-template", l);
|
|
31971
31971
|
}
|
|
31972
31972
|
}, au = function() {
|
|
31973
|
-
Ge(this,
|
|
31973
|
+
Ge(this, Ks, ou).call(this, this.getAttribute("rows-height"));
|
|
31974
31974
|
const t = f(this, Hn);
|
|
31975
31975
|
if (!t || t.length === 0) return;
|
|
31976
31976
|
for (; this.firstChild; )
|