@ninebone/table 0.0.499 β 0.0.501
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-table.js +64 -64
- package/dist/nine-table.js.map +1 -1
- package/dist/nine-table.umd.js +6 -6
- package/dist/nine-table.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/nine-table.js
CHANGED
|
@@ -23,7 +23,7 @@ const Le = class Le extends Xe.constructor {
|
|
|
23
23
|
h(Le, "Trace");
|
|
24
24
|
let oe = Le;
|
|
25
25
|
const P = new oe();
|
|
26
|
-
var B, j, w, X, K, Z,
|
|
26
|
+
var B, j, w, X, K, Z, $t, G, It;
|
|
27
27
|
const He = class He extends HTMLElement {
|
|
28
28
|
constructor() {
|
|
29
29
|
super();
|
|
@@ -33,7 +33,7 @@ const He = class He extends HTMLElement {
|
|
|
33
33
|
d(this, X);
|
|
34
34
|
d(this, K);
|
|
35
35
|
d(this, Z);
|
|
36
|
-
d(this,
|
|
36
|
+
d(this, $t, /* @__PURE__ */ h(() => {
|
|
37
37
|
if (!t(this, B)) return;
|
|
38
38
|
const e = t(this, B).querySelector(".ng-container-body .ng-part-body");
|
|
39
39
|
e && (y(this, Z, new ResizeObserver(() => {
|
|
@@ -73,7 +73,7 @@ const He = class He extends HTMLElement {
|
|
|
73
73
|
const l = s.clientWidth, u = r.scrollWidth - l;
|
|
74
74
|
return c > 0 && u > 0 && (s.scrollLeft = a / c * u), a > 0 && a < c - 1;
|
|
75
75
|
}, "#thumbMoveTo"));
|
|
76
|
-
d(this,
|
|
76
|
+
d(this, It, /* @__PURE__ */ h(() => {
|
|
77
77
|
const e = /* @__PURE__ */ h((r) => {
|
|
78
78
|
clearInterval(t(this, X)), clearInterval(t(this, K));
|
|
79
79
|
const n = parseInt(t(this, w).thumb.style.left || 0, 10);
|
|
@@ -190,7 +190,7 @@ const He = class He extends HTMLElement {
|
|
|
190
190
|
right: this.querySelector(".ng-scroll-right")
|
|
191
191
|
}), s.addEventListener("scroll", () => {
|
|
192
192
|
t(this, j) || this.refresh();
|
|
193
|
-
}), t(this,
|
|
193
|
+
}), t(this, It).call(this), t(this, $t).call(this), this.refresh();
|
|
194
194
|
}, "initWhenReady");
|
|
195
195
|
e();
|
|
196
196
|
}
|
|
@@ -198,10 +198,10 @@ const He = class He extends HTMLElement {
|
|
|
198
198
|
t(this, Z) && t(this, Z).disconnect();
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
|
-
B = new WeakMap(), j = new WeakMap(), w = new WeakMap(), X = new WeakMap(), K = new WeakMap(), Z = new WeakMap(),
|
|
201
|
+
B = new WeakMap(), j = new WeakMap(), w = new WeakMap(), X = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), $t = new WeakMap(), G = new WeakMap(), It = new WeakMap(), h(He, "NineTableHScrollBar");
|
|
202
202
|
let ae = He;
|
|
203
203
|
customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", ae);
|
|
204
|
-
var F, ot, J, q, xt, vt,
|
|
204
|
+
var F, ot, J, q, xt, vt, _t;
|
|
205
205
|
const Me = class Me extends HTMLElement {
|
|
206
206
|
constructor() {
|
|
207
207
|
super();
|
|
@@ -229,7 +229,7 @@ const Me = class Me extends HTMLElement {
|
|
|
229
229
|
const v = f - u;
|
|
230
230
|
m < 0 && (m = 0), m > v && (m = v), r.style.top = `${m}px`, t(this, q).top.disabled = b <= 0, t(this, q).bottom.disabled = b >= g - 1;
|
|
231
231
|
}, "refresh"));
|
|
232
|
-
d(this,
|
|
232
|
+
d(this, _t, /* @__PURE__ */ h(() => {
|
|
233
233
|
const e = t(this, q).container, s = /* @__PURE__ */ h(() => {
|
|
234
234
|
const n = (t(this, F).data.get() || []).length, o = t(this, ot).getRowHeight();
|
|
235
235
|
return n * o;
|
|
@@ -345,15 +345,15 @@ const Me = class Me extends HTMLElement {
|
|
|
345
345
|
thumb: this.querySelector(".ng-scroll-thumb"),
|
|
346
346
|
top: this.querySelector(".ng-scroll-top"),
|
|
347
347
|
bottom: this.querySelector(".ng-scroll-bottom")
|
|
348
|
-
}), t(this,
|
|
348
|
+
}), t(this, _t).call(this), this.refresh();
|
|
349
349
|
}, "initWhenReady");
|
|
350
350
|
e();
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
|
-
F = new WeakMap(), ot = new WeakMap(), J = new WeakMap(), q = new WeakMap(), xt = new WeakMap(), vt = new WeakMap(),
|
|
353
|
+
F = new WeakMap(), ot = new WeakMap(), J = new WeakMap(), q = new WeakMap(), xt = new WeakMap(), vt = new WeakMap(), _t = new WeakMap(), h(Me, "NineTableVScrollBar");
|
|
354
354
|
let le = Me;
|
|
355
355
|
customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", le);
|
|
356
|
-
var D, S, z, M, V, Q, wt, Se, at, Wt, Ot, Bt, St,
|
|
356
|
+
var D, S, z, M, V, Q, wt, Se, at, Nt, Wt, Ot, Bt, St, zt, Dt, Et, Ee, lt, At, Pt;
|
|
357
357
|
const $e = class $e {
|
|
358
358
|
constructor(i) {
|
|
359
359
|
d(this, D);
|
|
@@ -365,11 +365,11 @@ const $e = class $e {
|
|
|
365
365
|
d(this, wt, 40);
|
|
366
366
|
d(this, Se, !1);
|
|
367
367
|
d(this, at, !1);
|
|
368
|
-
d(this,
|
|
368
|
+
d(this, Nt, 3);
|
|
369
369
|
A(this, "refresh", /* @__PURE__ */ h(() => {
|
|
370
370
|
P.log("rowManager.refresh");
|
|
371
371
|
const i = t(this, S).querySelector(".ng-container-body .ng-part-body");
|
|
372
|
-
i &&
|
|
372
|
+
i && t(this, lt).call(this, i.scrollTop);
|
|
373
373
|
}, "refresh"));
|
|
374
374
|
A(this, "initialize", /* @__PURE__ */ h(() => {
|
|
375
375
|
y(this, M, null), t(this, z).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
|
|
@@ -384,7 +384,7 @@ const $e = class $e {
|
|
|
384
384
|
});
|
|
385
385
|
const i = t(this, S).querySelector(".ng-container-body .ng-part-body"), e = t(this, S).querySelector(".ng-container-left .ng-part-body"), s = t(this, S).querySelector(".ng-container-right .ng-part-body"), r = t(this, S).querySelector(".ng-container-body .ng-part-header"), n = t(this, S).querySelector(".ng-container-body .ng-part-footer");
|
|
386
386
|
if (i) {
|
|
387
|
-
t(this,
|
|
387
|
+
t(this, Ot).call(this, i), t(this, Et).call(this), t(this, Bt).call(this), t(this, lt).call(this, i.scrollTop);
|
|
388
388
|
let o = !1;
|
|
389
389
|
const a = /* @__PURE__ */ h((c, l, f) => {
|
|
390
390
|
var u;
|
|
@@ -399,7 +399,7 @@ const $e = class $e {
|
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
401
|
}, "initialize"));
|
|
402
|
-
d(this,
|
|
402
|
+
d(this, Wt, /* @__PURE__ */ h((i, e) => {
|
|
403
403
|
const s = t(this, z).get(e);
|
|
404
404
|
if (!s || s.length === 0) return;
|
|
405
405
|
const r = i.querySelector(".ng-part-body tbody.bindable-tbody");
|
|
@@ -412,7 +412,7 @@ const $e = class $e {
|
|
|
412
412
|
});
|
|
413
413
|
n ? n.before(o) : r.appendChild(o);
|
|
414
414
|
}, "#renderRows"));
|
|
415
|
-
d(this,
|
|
415
|
+
d(this, Ot, /* @__PURE__ */ h((i) => {
|
|
416
416
|
if (t(this, M) !== null && t(this, M) > 0)
|
|
417
417
|
return t(this, M);
|
|
418
418
|
P.log("#measureAndCacheHeight");
|
|
@@ -431,9 +431,9 @@ const $e = class $e {
|
|
|
431
431
|
const u = s.querySelectorAll("tr:not(.nodata)");
|
|
432
432
|
return u.forEach((b) => {
|
|
433
433
|
f += b.offsetHeight || b.getBoundingClientRect().height;
|
|
434
|
-
}), u.forEach((b) => b.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, y(this, M, f > 0 ? f : 24), t(this,
|
|
434
|
+
}), u.forEach((b) => b.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, y(this, M, f > 0 ? f : 24), t(this, St).call(this), t(this, M);
|
|
435
435
|
}, "#measureAndCacheHeight"));
|
|
436
|
-
d(this,
|
|
436
|
+
d(this, Bt, /* @__PURE__ */ h(() => {
|
|
437
437
|
const e = (t(this, D).data.get() || []).length, s = t(this, M), r = e * s;
|
|
438
438
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((n) => {
|
|
439
439
|
const o = t(this, S).querySelector(n);
|
|
@@ -442,10 +442,10 @@ const $e = class $e {
|
|
|
442
442
|
a && (a.style.height = `${r}px`);
|
|
443
443
|
});
|
|
444
444
|
}, "#updateVirtualScrollHeight"));
|
|
445
|
-
d(this,
|
|
445
|
+
d(this, St, /* @__PURE__ */ h(() => {
|
|
446
446
|
if (t(this, Q) > 0 && t(this, M) > 0) {
|
|
447
447
|
const i = Math.ceil(t(this, Q) / t(this, M));
|
|
448
|
-
y(this, wt, i + t(this,
|
|
448
|
+
y(this, wt, i + t(this, Nt));
|
|
449
449
|
}
|
|
450
450
|
}, "#updateRowCount"));
|
|
451
451
|
d(this, zt, /* @__PURE__ */ h(() => {
|
|
@@ -486,15 +486,15 @@ const $e = class $e {
|
|
|
486
486
|
const o = s.querySelector(".ng-part-header"), a = s.querySelector(".ng-part-footer");
|
|
487
487
|
o && (n += o.offsetHeight), a && (n += a.offsetHeight);
|
|
488
488
|
const c = Math.max(r - n, 100);
|
|
489
|
-
t(this, Q) !== c && (y(this, Q, c), t(this,
|
|
489
|
+
t(this, Q) !== c && (y(this, Q, c), t(this, St).call(this), t(this, M) !== null && t(this, Et).call(this));
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
})), t(this, V).observe(t(this, S)));
|
|
493
493
|
}, "#initResizeObserver"));
|
|
494
|
-
d(this,
|
|
494
|
+
d(this, Et, /* @__PURE__ */ h(() => {
|
|
495
495
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
|
|
496
496
|
const e = t(this, S).querySelector(i);
|
|
497
|
-
e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this,
|
|
497
|
+
e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Wt).call(this, e, i);
|
|
498
498
|
}), t(this, Pt).call(this), t(this, zt).call(this);
|
|
499
499
|
}, "#renderAllContainers"));
|
|
500
500
|
d(this, Ee, /* @__PURE__ */ h((i) => {
|
|
@@ -512,7 +512,7 @@ const $e = class $e {
|
|
|
512
512
|
return;
|
|
513
513
|
}
|
|
514
514
|
const g = t(this, D).data.get(b);
|
|
515
|
-
f.style.display = "", t(this,
|
|
515
|
+
f.style.display = "", t(this, At).call(this, f, g, b);
|
|
516
516
|
});
|
|
517
517
|
});
|
|
518
518
|
}, "#adjustBufferRows"));
|
|
@@ -538,7 +538,7 @@ const $e = class $e {
|
|
|
538
538
|
return;
|
|
539
539
|
}
|
|
540
540
|
const k = t(this, D).data.get(H);
|
|
541
|
-
E.style.display = "", t(this,
|
|
541
|
+
E.style.display = "", t(this, At).call(this, E, k, H);
|
|
542
542
|
});
|
|
543
543
|
});
|
|
544
544
|
}, "#handleScroll"));
|
|
@@ -556,7 +556,7 @@ const $e = class $e {
|
|
|
556
556
|
cell.dataset.row = dataIndex;
|
|
557
557
|
});
|
|
558
558
|
}; */
|
|
559
|
-
d(this,
|
|
559
|
+
d(this, At, /* @__PURE__ */ h((i, e, s) => {
|
|
560
560
|
i.dataset.row = s, i.data = e, Array.from(i.cells).forEach((r, n) => {
|
|
561
561
|
r.dataset.row = s;
|
|
562
562
|
const o = Array.from(r.children).find((a) => a.tagName.toLowerCase().startsWith("cell-") || typeof a.refresh == "function");
|
|
@@ -590,7 +590,7 @@ const $e = class $e {
|
|
|
590
590
|
return ((e = t(this, z).get(i)) == null ? void 0 : e.length) || 1;
|
|
591
591
|
}
|
|
592
592
|
};
|
|
593
|
-
D = new WeakMap(), S = new WeakMap(), z = new WeakMap(), M = new WeakMap(), V = new WeakMap(), Q = new WeakMap(), wt = new WeakMap(), Se = new WeakMap(), at = new WeakMap(),
|
|
593
|
+
D = new WeakMap(), S = new WeakMap(), z = new WeakMap(), M = new WeakMap(), V = new WeakMap(), Q = new WeakMap(), wt = new WeakMap(), Se = new WeakMap(), at = new WeakMap(), Nt = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), St = new WeakMap(), zt = new WeakMap(), Dt = new WeakMap(), Et = new WeakMap(), Ee = new WeakMap(), lt = new WeakMap(), At = new WeakMap(), Pt = new WeakMap(), h($e, "RowManager");
|
|
594
594
|
let ce = $e;
|
|
595
595
|
const jt = class jt {
|
|
596
596
|
/**
|
|
@@ -900,9 +900,9 @@ const pt = class pt extends HTMLElement {
|
|
|
900
900
|
}
|
|
901
901
|
};
|
|
902
902
|
Ft = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), Vt = new WeakMap(), Yt = new WeakMap(), ct = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), h(pt, "NineTableSheet"), A(pt, "SCROLLBAR_SIZE", 16);
|
|
903
|
-
let
|
|
904
|
-
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet",
|
|
905
|
-
var Kt,
|
|
903
|
+
let Mt = pt;
|
|
904
|
+
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", Mt);
|
|
905
|
+
var Kt, Rt;
|
|
906
906
|
const Ie = class Ie extends HTMLElement {
|
|
907
907
|
constructor() {
|
|
908
908
|
super();
|
|
@@ -911,10 +911,10 @@ const Ie = class Ie extends HTMLElement {
|
|
|
911
911
|
(e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (s) => {
|
|
912
912
|
var o;
|
|
913
913
|
const r = s.ctrlKey || s.metaKey || s.shiftKey, n = parseInt((o = s.target.closest(".nine-tab-item")) == null ? void 0 : o.dataset.index, 10);
|
|
914
|
-
t(this,
|
|
915
|
-
}), t(this,
|
|
914
|
+
t(this, Rt).call(this, n, r);
|
|
915
|
+
}), t(this, Rt).call(this, 0, !1);
|
|
916
916
|
}, "#init"));
|
|
917
|
-
d(this,
|
|
917
|
+
d(this, Rt, /* @__PURE__ */ h((e, s = !1) => {
|
|
918
918
|
const r = /* @__PURE__ */ h(() => {
|
|
919
919
|
const f = Array.from(this.querySelectorAll("nine-table-sheet"));
|
|
920
920
|
Array.from(this.querySelectorAll("nine-splitter")).forEach((g) => g.style.setProperty("display", "none"));
|
|
@@ -950,24 +950,24 @@ const Ie = class Ie extends HTMLElement {
|
|
|
950
950
|
t(this, Kt).call(this);
|
|
951
951
|
}
|
|
952
952
|
};
|
|
953
|
-
Kt = new WeakMap(),
|
|
953
|
+
Kt = new WeakMap(), Rt = new WeakMap(), h(Ie, "NineTableSheets");
|
|
954
954
|
let de = Ie;
|
|
955
955
|
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", de);
|
|
956
|
-
var I, Zt,
|
|
956
|
+
var I, Zt, qt, Gt;
|
|
957
957
|
const _e = class _e {
|
|
958
958
|
constructor(i) {
|
|
959
959
|
d(this, I);
|
|
960
960
|
d(this, Zt, /* @__PURE__ */ h(() => {
|
|
961
961
|
t(this, Gt).call(this), new ResizeObserver((i) => {
|
|
962
962
|
for (let e of i)
|
|
963
|
-
t(this, I).getAttribute("auto-height") === "true" && t(this,
|
|
963
|
+
t(this, I).getAttribute("auto-height") === "true" && t(this, qt).call(this);
|
|
964
964
|
}).observe(t(this, I));
|
|
965
965
|
}, "#init"));
|
|
966
|
-
d(this,
|
|
966
|
+
d(this, qt, /* @__PURE__ */ h(() => {
|
|
967
967
|
var c, l;
|
|
968
968
|
const i = Array.from(t(this, I).shadowRoot.querySelectorAll("nine-table-sheet.active"));
|
|
969
969
|
if (i.length === 0) return;
|
|
970
|
-
const e = parseInt(t(this, I).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), r = (c = t(this, I).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, n = (l = t(this, I).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o =
|
|
970
|
+
const e = parseInt(t(this, I).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), r = (c = t(this, I).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, n = (l = t(this, I).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = Mt.SCROLLBAR_SIZE, a = e * s + r + n + o;
|
|
971
971
|
t(this, I).style.height = `${a}px`;
|
|
972
972
|
}, "#applyAutoHeight"));
|
|
973
973
|
d(this, Gt, /* @__PURE__ */ h(() => {
|
|
@@ -1069,22 +1069,22 @@ const _e = class _e {
|
|
|
1069
1069
|
const a = t(this, I).shadowRoot.querySelectorAll("nine-table-sheet");
|
|
1070
1070
|
a == null || a.forEach((c, l) => {
|
|
1071
1071
|
e[l] && setTimeout(() => {
|
|
1072
|
-
c.generate(e[l]), s && t(this,
|
|
1072
|
+
c.generate(e[l]), s && t(this, qt).call(this);
|
|
1073
1073
|
});
|
|
1074
1074
|
});
|
|
1075
1075
|
}, "#render"));
|
|
1076
1076
|
y(this, I, i), t(this, Zt).call(this);
|
|
1077
1077
|
}
|
|
1078
1078
|
};
|
|
1079
|
-
I = new WeakMap(), Zt = new WeakMap(),
|
|
1079
|
+
I = new WeakMap(), Zt = new WeakMap(), qt = new WeakMap(), Gt = new WeakMap(), h(_e, "LayoutManager");
|
|
1080
1080
|
let fe = _e;
|
|
1081
|
-
var
|
|
1081
|
+
var kt, ht;
|
|
1082
1082
|
const Ne = class Ne {
|
|
1083
1083
|
constructor(i) {
|
|
1084
|
-
d(this,
|
|
1084
|
+
d(this, kt);
|
|
1085
1085
|
d(this, ht, -1);
|
|
1086
|
-
A(this, "count", /* @__PURE__ */ h(() => t(this,
|
|
1087
|
-
y(this,
|
|
1086
|
+
A(this, "count", /* @__PURE__ */ h(() => t(this, kt).rawRecords.length, "count"));
|
|
1087
|
+
y(this, kt, i);
|
|
1088
1088
|
}
|
|
1089
1089
|
get at() {
|
|
1090
1090
|
return t(this, ht);
|
|
@@ -1094,9 +1094,9 @@ const Ne = class Ne {
|
|
|
1094
1094
|
});
|
|
1095
1095
|
}
|
|
1096
1096
|
};
|
|
1097
|
-
|
|
1097
|
+
kt = new WeakMap(), ht = new WeakMap(), h(Ne, "ngRow");
|
|
1098
1098
|
let ue = Ne;
|
|
1099
|
-
var _, T, N, dt, Jt, Y, Qt, st,
|
|
1099
|
+
var _, T, N, dt, Jt, Y, Qt, st, Tt, te, ee, ft;
|
|
1100
1100
|
const W = class W {
|
|
1101
1101
|
constructor(i, e) {
|
|
1102
1102
|
d(this, _);
|
|
@@ -1112,7 +1112,7 @@ const W = class W {
|
|
|
1112
1112
|
var s;
|
|
1113
1113
|
t(this, Y).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
|
|
1114
1114
|
}), (t(this, T).rawRecords || []).forEach((e) => {
|
|
1115
|
-
e.__ng || (e.__ng = t(this,
|
|
1115
|
+
e.__ng || (e.__ng = t(this, Tt).call(this)), e.__ng.height = t(this, Y).slice();
|
|
1116
1116
|
});
|
|
1117
1117
|
}, "#initialize"));
|
|
1118
1118
|
d(this, st, /* @__PURE__ */ h(() => {
|
|
@@ -1136,7 +1136,7 @@ const W = class W {
|
|
|
1136
1136
|
A(this, "set", /* @__PURE__ */ h((i) => {
|
|
1137
1137
|
this.clear(), this.add(i, !1), t(this, st).call(this);
|
|
1138
1138
|
}, "set"));
|
|
1139
|
-
d(this,
|
|
1139
|
+
d(this, Tt, /* @__PURE__ */ h(() => ({
|
|
1140
1140
|
rowState: W.ROW_STATE.EMPTY,
|
|
1141
1141
|
deleted: !1,
|
|
1142
1142
|
filtered: !1,
|
|
@@ -1164,7 +1164,7 @@ const W = class W {
|
|
|
1164
1164
|
}), s;
|
|
1165
1165
|
}, "#json2Array"));
|
|
1166
1166
|
d(this, ee, /* @__PURE__ */ h((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
|
|
1167
|
-
e.__ng = t(this,
|
|
1167
|
+
e.__ng = t(this, Tt).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = W.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
|
|
1168
1168
|
}), i), "#defaultInsert"));
|
|
1169
1169
|
A(this, "add", /* @__PURE__ */ h((i, e = !0) => {
|
|
1170
1170
|
i === void 0 && (i = {});
|
|
@@ -1235,7 +1235,7 @@ const W = class W {
|
|
|
1235
1235
|
return this.length;
|
|
1236
1236
|
}
|
|
1237
1237
|
};
|
|
1238
|
-
_ = new WeakMap(), T = new WeakMap(), N = new WeakMap(), dt = new WeakMap(), Jt = new WeakMap(), Y = new WeakMap(), Qt = new WeakMap(), st = new WeakMap(),
|
|
1238
|
+
_ = new WeakMap(), T = new WeakMap(), N = new WeakMap(), dt = new WeakMap(), Jt = new WeakMap(), Y = new WeakMap(), Qt = new WeakMap(), st = new WeakMap(), Tt = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), ft = new WeakMap(), h(W, "ngData"), // π― ν μν μ μ μμλ₯Ό ν΄λμ€ λ΄λΆλ‘ λ΄μ¬ν
|
|
1239
1239
|
A(W, "ROW_STATE", {
|
|
1240
1240
|
EMPTY: "EMPTY",
|
|
1241
1241
|
NORMAL: "NORMAL",
|
|
@@ -1267,7 +1267,7 @@ const We = class We {
|
|
|
1267
1267
|
};
|
|
1268
1268
|
it = new WeakMap(), h(We, "ngDataManager");
|
|
1269
1269
|
let be = We;
|
|
1270
|
-
var ut, L,
|
|
1270
|
+
var ut, L, Ct, se;
|
|
1271
1271
|
const Oe = class Oe {
|
|
1272
1272
|
// π― μ΄μ { name: string, type: string } κ°μ²΄λ€μ λ°°μ΄λ‘ κ΄λ¦¬ν©λλ€.
|
|
1273
1273
|
constructor(i) {
|
|
@@ -1276,9 +1276,9 @@ const Oe = class Oe {
|
|
|
1276
1276
|
A(this, "add", /* @__PURE__ */ h((i, e = "string") => {
|
|
1277
1277
|
i.forEach((s) => {
|
|
1278
1278
|
t(this, L).some((r) => r.name === s) || t(this, L).push({ name: s, type: e });
|
|
1279
|
-
}), t(this,
|
|
1279
|
+
}), t(this, Ct).call(this);
|
|
1280
1280
|
}, "add"));
|
|
1281
|
-
d(this,
|
|
1281
|
+
d(this, Ct, /* @__PURE__ */ h(() => {
|
|
1282
1282
|
const i = /* @__PURE__ */ new Map();
|
|
1283
1283
|
t(this, L).forEach((e) => {
|
|
1284
1284
|
i.set(e.name, e.type);
|
|
@@ -1313,7 +1313,7 @@ const Oe = class Oe {
|
|
|
1313
1313
|
});
|
|
1314
1314
|
});
|
|
1315
1315
|
});
|
|
1316
|
-
t(this,
|
|
1316
|
+
t(this, Ct).call(this);
|
|
1317
1317
|
}
|
|
1318
1318
|
}, "#init"));
|
|
1319
1319
|
y(this, ut, i), t(this, se).call(this);
|
|
@@ -1338,7 +1338,7 @@ const Oe = class Oe {
|
|
|
1338
1338
|
return t(this, L).some((e) => e.name === i);
|
|
1339
1339
|
}
|
|
1340
1340
|
};
|
|
1341
|
-
ut = new WeakMap(), L = new WeakMap(),
|
|
1341
|
+
ut = new WeakMap(), L = new WeakMap(), Ct = new WeakMap(), se = new WeakMap(), h(Oe, "ngFields");
|
|
1342
1342
|
let ye = Oe;
|
|
1343
1343
|
var rt, ie, re;
|
|
1344
1344
|
const Be = class Be extends HTMLElement {
|
|
@@ -1387,12 +1387,12 @@ const mt = class mt extends HTMLElement {
|
|
|
1387
1387
|
};
|
|
1388
1388
|
h(mt, "BasicCellElement"), A(mt, "_styleCache", /* @__PURE__ */ new Map()), A(mt, "_customStyleCache", /* @__PURE__ */ new Map());
|
|
1389
1389
|
let me = mt;
|
|
1390
|
-
var C,
|
|
1390
|
+
var C, Lt, p, Ae, Re, qe, ke, Te;
|
|
1391
1391
|
const ze = class ze extends me {
|
|
1392
1392
|
constructor() {
|
|
1393
1393
|
super();
|
|
1394
1394
|
d(this, C);
|
|
1395
|
-
d(this,
|
|
1395
|
+
d(this, Lt);
|
|
1396
1396
|
d(this, p);
|
|
1397
1397
|
d(this, Ae);
|
|
1398
1398
|
d(this, Re);
|
|
@@ -1461,7 +1461,7 @@ const ze = class ze extends me {
|
|
|
1461
1461
|
}, "getExprValue"));
|
|
1462
1462
|
}
|
|
1463
1463
|
connectedCallback() {
|
|
1464
|
-
super.connectedCallback(), y(this, C, this.getRootNode().host), y(this, p, this.closest("th,td")), y(this,
|
|
1464
|
+
super.connectedCallback(), y(this, C, this.getRootNode().host), y(this, p, this.closest("th,td")), y(this, Lt, t(this, p).closest("tr"));
|
|
1465
1465
|
}
|
|
1466
1466
|
get value() {
|
|
1467
1467
|
var e = !t(this, C) || !t(this, C).dataManager || !t(this, p) || !t(this, p).dataset || !t(this, p).dataset.row || !t(this, p).dataset.bind ? "" : t(this, p).closest("tr").data[t(this, p).dataset.bind];
|
|
@@ -1480,10 +1480,10 @@ const ze = class ze extends me {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
refresh() {
|
|
1482
1482
|
const e = t(this, p).dataset.bind;
|
|
1483
|
-
return parseInt(t(this, p).dataset.row), t(this,
|
|
1483
|
+
return parseInt(t(this, p).dataset.row), t(this, Lt).data[e];
|
|
1484
1484
|
}
|
|
1485
1485
|
};
|
|
1486
|
-
C = new WeakMap(),
|
|
1486
|
+
C = new WeakMap(), Lt = new WeakMap(), p = new WeakMap(), Ae = new WeakMap(), Re = new WeakMap(), qe = new WeakMap(), ke = new WeakMap(), Te = new WeakMap(), h(ze, "CellElement");
|
|
1487
1487
|
let xe = ze;
|
|
1488
1488
|
const De = class De extends xe {
|
|
1489
1489
|
constructor() {
|
|
@@ -1498,11 +1498,11 @@ const De = class De extends xe {
|
|
|
1498
1498
|
};
|
|
1499
1499
|
h(De, "EditableCellElement");
|
|
1500
1500
|
let ve = De;
|
|
1501
|
-
var
|
|
1501
|
+
var Ht, nt, gt, bt, ne, U, Ce;
|
|
1502
1502
|
const Pe = class Pe extends ve {
|
|
1503
1503
|
constructor() {
|
|
1504
1504
|
super();
|
|
1505
|
-
d(this,
|
|
1505
|
+
d(this, Ht);
|
|
1506
1506
|
d(this, nt);
|
|
1507
1507
|
d(this, gt);
|
|
1508
1508
|
d(this, bt);
|
|
@@ -1510,7 +1510,7 @@ const Pe = class Pe extends ve {
|
|
|
1510
1510
|
d(this, U);
|
|
1511
1511
|
A(this, "refresh", /* @__PURE__ */ h(() => {
|
|
1512
1512
|
const e = super.refresh();
|
|
1513
|
-
P.log("::", e), t(this,
|
|
1513
|
+
P.log("::", e), t(this, Ht).value = e;
|
|
1514
1514
|
}, "refresh"));
|
|
1515
1515
|
/**
|
|
1516
1516
|
dataRefresh = (v) => {
|
|
@@ -1567,10 +1567,10 @@ const Pe = class Pe extends ve {
|
|
|
1567
1567
|
${e.join(" ")}
|
|
1568
1568
|
ondragstart="return false;"
|
|
1569
1569
|
>
|
|
1570
|
-
`, super.connectedCallback(), y(this,
|
|
1570
|
+
`, super.connectedCallback(), y(this, Ht, this.querySelector("input"));
|
|
1571
1571
|
}
|
|
1572
1572
|
};
|
|
1573
|
-
|
|
1573
|
+
Ht = new WeakMap(), nt = new WeakMap(), gt = new WeakMap(), bt = new WeakMap(), ne = new WeakMap(), U = new WeakMap(), Ce = new WeakMap(), h(Pe, "CellInputText");
|
|
1574
1574
|
let we = Pe;
|
|
1575
1575
|
customElements.get("cell-input-text");
|
|
1576
1576
|
customElements.get("cell-input") || customElements.define("cell-input", we);
|