@ninebone/table 0.0.501 β 0.0.503
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 +66 -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, It, G, _t;
|
|
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, It, /* @__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, _t, /* @__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, _t).call(this), t(this, It).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(), It = new WeakMap(), G = new WeakMap(), _t = 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, Nt;
|
|
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, Nt, /* @__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, Nt).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(), Nt = 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,
|
|
356
|
+
var D, S, z, M, V, Q, wt, Se, at, Wt, Ot, Bt, St, Et, zt, Dt, At, Ee, lt, Rt, Pt;
|
|
357
357
|
const $e = class $e {
|
|
358
358
|
constructor(i) {
|
|
359
359
|
d(this, D);
|
|
@@ -365,11 +365,13 @@ 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, Wt, 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 && t(this,
|
|
372
|
+
i && (t(this, St).call(this), setTimeout(() => {
|
|
373
|
+
t(this, lt).call(this, i.scrollTop);
|
|
374
|
+
}, 500));
|
|
373
375
|
}, "refresh"));
|
|
374
376
|
A(this, "initialize", /* @__PURE__ */ h(() => {
|
|
375
377
|
y(this, M, null), t(this, z).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
|
|
@@ -384,7 +386,7 @@ const $e = class $e {
|
|
|
384
386
|
});
|
|
385
387
|
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
388
|
if (i) {
|
|
387
|
-
t(this,
|
|
389
|
+
t(this, Bt).call(this, i), t(this, At).call(this), t(this, St).call(this), t(this, lt).call(this, i.scrollTop);
|
|
388
390
|
let o = !1;
|
|
389
391
|
const a = /* @__PURE__ */ h((c, l, f) => {
|
|
390
392
|
var u;
|
|
@@ -399,7 +401,7 @@ const $e = class $e {
|
|
|
399
401
|
});
|
|
400
402
|
}
|
|
401
403
|
}, "initialize"));
|
|
402
|
-
d(this,
|
|
404
|
+
d(this, Ot, /* @__PURE__ */ h((i, e) => {
|
|
403
405
|
const s = t(this, z).get(e);
|
|
404
406
|
if (!s || s.length === 0) return;
|
|
405
407
|
const r = i.querySelector(".ng-part-body tbody.bindable-tbody");
|
|
@@ -412,7 +414,7 @@ const $e = class $e {
|
|
|
412
414
|
});
|
|
413
415
|
n ? n.before(o) : r.appendChild(o);
|
|
414
416
|
}, "#renderRows"));
|
|
415
|
-
d(this,
|
|
417
|
+
d(this, Bt, /* @__PURE__ */ h((i) => {
|
|
416
418
|
if (t(this, M) !== null && t(this, M) > 0)
|
|
417
419
|
return t(this, M);
|
|
418
420
|
P.log("#measureAndCacheHeight");
|
|
@@ -431,9 +433,9 @@ const $e = class $e {
|
|
|
431
433
|
const u = s.querySelectorAll("tr:not(.nodata)");
|
|
432
434
|
return u.forEach((b) => {
|
|
433
435
|
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,
|
|
436
|
+
}), 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, Et).call(this), t(this, M);
|
|
435
437
|
}, "#measureAndCacheHeight"));
|
|
436
|
-
d(this,
|
|
438
|
+
d(this, St, /* @__PURE__ */ h(() => {
|
|
437
439
|
const e = (t(this, D).data.get() || []).length, s = t(this, M), r = e * s;
|
|
438
440
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((n) => {
|
|
439
441
|
const o = t(this, S).querySelector(n);
|
|
@@ -442,10 +444,10 @@ const $e = class $e {
|
|
|
442
444
|
a && (a.style.height = `${r}px`);
|
|
443
445
|
});
|
|
444
446
|
}, "#updateVirtualScrollHeight"));
|
|
445
|
-
d(this,
|
|
447
|
+
d(this, Et, /* @__PURE__ */ h(() => {
|
|
446
448
|
if (t(this, Q) > 0 && t(this, M) > 0) {
|
|
447
449
|
const i = Math.ceil(t(this, Q) / t(this, M));
|
|
448
|
-
y(this, wt, i + t(this,
|
|
450
|
+
y(this, wt, i + t(this, Wt));
|
|
449
451
|
}
|
|
450
452
|
}, "#updateRowCount"));
|
|
451
453
|
d(this, zt, /* @__PURE__ */ h(() => {
|
|
@@ -486,15 +488,15 @@ const $e = class $e {
|
|
|
486
488
|
const o = s.querySelector(".ng-part-header"), a = s.querySelector(".ng-part-footer");
|
|
487
489
|
o && (n += o.offsetHeight), a && (n += a.offsetHeight);
|
|
488
490
|
const c = Math.max(r - n, 100);
|
|
489
|
-
t(this, Q) !== c && (y(this, Q, c), t(this,
|
|
491
|
+
t(this, Q) !== c && (y(this, Q, c), t(this, Et).call(this), t(this, M) !== null && t(this, At).call(this));
|
|
490
492
|
}
|
|
491
493
|
}
|
|
492
494
|
})), t(this, V).observe(t(this, S)));
|
|
493
495
|
}, "#initResizeObserver"));
|
|
494
|
-
d(this,
|
|
496
|
+
d(this, At, /* @__PURE__ */ h(() => {
|
|
495
497
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
|
|
496
498
|
const e = t(this, S).querySelector(i);
|
|
497
|
-
e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this,
|
|
499
|
+
e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Ot).call(this, e, i);
|
|
498
500
|
}), t(this, Pt).call(this), t(this, zt).call(this);
|
|
499
501
|
}, "#renderAllContainers"));
|
|
500
502
|
d(this, Ee, /* @__PURE__ */ h((i) => {
|
|
@@ -512,7 +514,7 @@ const $e = class $e {
|
|
|
512
514
|
return;
|
|
513
515
|
}
|
|
514
516
|
const g = t(this, D).data.get(b);
|
|
515
|
-
f.style.display = "", t(this,
|
|
517
|
+
f.style.display = "", t(this, Rt).call(this, f, g, b);
|
|
516
518
|
});
|
|
517
519
|
});
|
|
518
520
|
}, "#adjustBufferRows"));
|
|
@@ -538,7 +540,7 @@ const $e = class $e {
|
|
|
538
540
|
return;
|
|
539
541
|
}
|
|
540
542
|
const k = t(this, D).data.get(H);
|
|
541
|
-
E.style.display = "", t(this,
|
|
543
|
+
E.style.display = "", t(this, Rt).call(this, E, k, H);
|
|
542
544
|
});
|
|
543
545
|
});
|
|
544
546
|
}, "#handleScroll"));
|
|
@@ -556,7 +558,7 @@ const $e = class $e {
|
|
|
556
558
|
cell.dataset.row = dataIndex;
|
|
557
559
|
});
|
|
558
560
|
}; */
|
|
559
|
-
d(this,
|
|
561
|
+
d(this, Rt, /* @__PURE__ */ h((i, e, s) => {
|
|
560
562
|
i.dataset.row = s, i.data = e, Array.from(i.cells).forEach((r, n) => {
|
|
561
563
|
r.dataset.row = s;
|
|
562
564
|
const o = Array.from(r.children).find((a) => a.tagName.toLowerCase().startsWith("cell-") || typeof a.refresh == "function");
|
|
@@ -590,7 +592,7 @@ const $e = class $e {
|
|
|
590
592
|
return ((e = t(this, z).get(i)) == null ? void 0 : e.length) || 1;
|
|
591
593
|
}
|
|
592
594
|
};
|
|
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(),
|
|
595
|
+
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(), Wt = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), zt = new WeakMap(), Dt = new WeakMap(), At = new WeakMap(), Ee = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Pt = new WeakMap(), h($e, "RowManager");
|
|
594
596
|
let ce = $e;
|
|
595
597
|
const jt = class jt {
|
|
596
598
|
/**
|
|
@@ -900,9 +902,9 @@ const pt = class pt extends HTMLElement {
|
|
|
900
902
|
}
|
|
901
903
|
};
|
|
902
904
|
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,
|
|
905
|
+
let $t = pt;
|
|
906
|
+
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", $t);
|
|
907
|
+
var Kt, qt;
|
|
906
908
|
const Ie = class Ie extends HTMLElement {
|
|
907
909
|
constructor() {
|
|
908
910
|
super();
|
|
@@ -911,10 +913,10 @@ const Ie = class Ie extends HTMLElement {
|
|
|
911
913
|
(e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (s) => {
|
|
912
914
|
var o;
|
|
913
915
|
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,
|
|
916
|
+
t(this, qt).call(this, n, r);
|
|
917
|
+
}), t(this, qt).call(this, 0, !1);
|
|
916
918
|
}, "#init"));
|
|
917
|
-
d(this,
|
|
919
|
+
d(this, qt, /* @__PURE__ */ h((e, s = !1) => {
|
|
918
920
|
const r = /* @__PURE__ */ h(() => {
|
|
919
921
|
const f = Array.from(this.querySelectorAll("nine-table-sheet"));
|
|
920
922
|
Array.from(this.querySelectorAll("nine-splitter")).forEach((g) => g.style.setProperty("display", "none"));
|
|
@@ -950,24 +952,24 @@ const Ie = class Ie extends HTMLElement {
|
|
|
950
952
|
t(this, Kt).call(this);
|
|
951
953
|
}
|
|
952
954
|
};
|
|
953
|
-
Kt = new WeakMap(),
|
|
955
|
+
Kt = new WeakMap(), qt = new WeakMap(), h(Ie, "NineTableSheets");
|
|
954
956
|
let de = Ie;
|
|
955
957
|
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", de);
|
|
956
|
-
var I, Zt,
|
|
958
|
+
var I, Zt, kt, Gt;
|
|
957
959
|
const _e = class _e {
|
|
958
960
|
constructor(i) {
|
|
959
961
|
d(this, I);
|
|
960
962
|
d(this, Zt, /* @__PURE__ */ h(() => {
|
|
961
963
|
t(this, Gt).call(this), new ResizeObserver((i) => {
|
|
962
964
|
for (let e of i)
|
|
963
|
-
t(this, I).getAttribute("auto-height") === "true" && t(this,
|
|
965
|
+
t(this, I).getAttribute("auto-height") === "true" && t(this, kt).call(this);
|
|
964
966
|
}).observe(t(this, I));
|
|
965
967
|
}, "#init"));
|
|
966
|
-
d(this,
|
|
968
|
+
d(this, kt, /* @__PURE__ */ h(() => {
|
|
967
969
|
var c, l;
|
|
968
970
|
const i = Array.from(t(this, I).shadowRoot.querySelectorAll("nine-table-sheet.active"));
|
|
969
971
|
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 =
|
|
972
|
+
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 = $t.SCROLLBAR_SIZE, a = e * s + r + n + o;
|
|
971
973
|
t(this, I).style.height = `${a}px`;
|
|
972
974
|
}, "#applyAutoHeight"));
|
|
973
975
|
d(this, Gt, /* @__PURE__ */ h(() => {
|
|
@@ -1069,22 +1071,22 @@ const _e = class _e {
|
|
|
1069
1071
|
const a = t(this, I).shadowRoot.querySelectorAll("nine-table-sheet");
|
|
1070
1072
|
a == null || a.forEach((c, l) => {
|
|
1071
1073
|
e[l] && setTimeout(() => {
|
|
1072
|
-
c.generate(e[l]), s && t(this,
|
|
1074
|
+
c.generate(e[l]), s && t(this, kt).call(this);
|
|
1073
1075
|
});
|
|
1074
1076
|
});
|
|
1075
1077
|
}, "#render"));
|
|
1076
1078
|
y(this, I, i), t(this, Zt).call(this);
|
|
1077
1079
|
}
|
|
1078
1080
|
};
|
|
1079
|
-
I = new WeakMap(), Zt = new WeakMap(),
|
|
1081
|
+
I = new WeakMap(), Zt = new WeakMap(), kt = new WeakMap(), Gt = new WeakMap(), h(_e, "LayoutManager");
|
|
1080
1082
|
let fe = _e;
|
|
1081
|
-
var
|
|
1083
|
+
var Tt, ht;
|
|
1082
1084
|
const Ne = class Ne {
|
|
1083
1085
|
constructor(i) {
|
|
1084
|
-
d(this,
|
|
1086
|
+
d(this, Tt);
|
|
1085
1087
|
d(this, ht, -1);
|
|
1086
|
-
A(this, "count", /* @__PURE__ */ h(() => t(this,
|
|
1087
|
-
y(this,
|
|
1088
|
+
A(this, "count", /* @__PURE__ */ h(() => t(this, Tt).rawRecords.length, "count"));
|
|
1089
|
+
y(this, Tt, i);
|
|
1088
1090
|
}
|
|
1089
1091
|
get at() {
|
|
1090
1092
|
return t(this, ht);
|
|
@@ -1094,9 +1096,9 @@ const Ne = class Ne {
|
|
|
1094
1096
|
});
|
|
1095
1097
|
}
|
|
1096
1098
|
};
|
|
1097
|
-
|
|
1099
|
+
Tt = new WeakMap(), ht = new WeakMap(), h(Ne, "ngRow");
|
|
1098
1100
|
let ue = Ne;
|
|
1099
|
-
var _, T, N, dt, Jt, Y, Qt, st,
|
|
1101
|
+
var _, T, N, dt, Jt, Y, Qt, st, Ct, te, ee, ft;
|
|
1100
1102
|
const W = class W {
|
|
1101
1103
|
constructor(i, e) {
|
|
1102
1104
|
d(this, _);
|
|
@@ -1112,7 +1114,7 @@ const W = class W {
|
|
|
1112
1114
|
var s;
|
|
1113
1115
|
t(this, Y).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
|
|
1114
1116
|
}), (t(this, T).rawRecords || []).forEach((e) => {
|
|
1115
|
-
e.__ng || (e.__ng = t(this,
|
|
1117
|
+
e.__ng || (e.__ng = t(this, Ct).call(this)), e.__ng.height = t(this, Y).slice();
|
|
1116
1118
|
});
|
|
1117
1119
|
}, "#initialize"));
|
|
1118
1120
|
d(this, st, /* @__PURE__ */ h(() => {
|
|
@@ -1136,7 +1138,7 @@ const W = class W {
|
|
|
1136
1138
|
A(this, "set", /* @__PURE__ */ h((i) => {
|
|
1137
1139
|
this.clear(), this.add(i, !1), t(this, st).call(this);
|
|
1138
1140
|
}, "set"));
|
|
1139
|
-
d(this,
|
|
1141
|
+
d(this, Ct, /* @__PURE__ */ h(() => ({
|
|
1140
1142
|
rowState: W.ROW_STATE.EMPTY,
|
|
1141
1143
|
deleted: !1,
|
|
1142
1144
|
filtered: !1,
|
|
@@ -1164,7 +1166,7 @@ const W = class W {
|
|
|
1164
1166
|
}), s;
|
|
1165
1167
|
}, "#json2Array"));
|
|
1166
1168
|
d(this, ee, /* @__PURE__ */ h((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
|
|
1167
|
-
e.__ng = t(this,
|
|
1169
|
+
e.__ng = t(this, Ct).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = W.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
|
|
1168
1170
|
}), i), "#defaultInsert"));
|
|
1169
1171
|
A(this, "add", /* @__PURE__ */ h((i, e = !0) => {
|
|
1170
1172
|
i === void 0 && (i = {});
|
|
@@ -1235,7 +1237,7 @@ const W = class W {
|
|
|
1235
1237
|
return this.length;
|
|
1236
1238
|
}
|
|
1237
1239
|
};
|
|
1238
|
-
_ = new WeakMap(), T = new WeakMap(), N = new WeakMap(), dt = new WeakMap(), Jt = new WeakMap(), Y = new WeakMap(), Qt = new WeakMap(), st = new WeakMap(),
|
|
1240
|
+
_ = new WeakMap(), T = new WeakMap(), N = new WeakMap(), dt = new WeakMap(), Jt = new WeakMap(), Y = new WeakMap(), Qt = new WeakMap(), st = new WeakMap(), Ct = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), ft = new WeakMap(), h(W, "ngData"), // π― ν μν μ μ μμλ₯Ό ν΄λμ€ λ΄λΆλ‘ λ΄μ¬ν
|
|
1239
1241
|
A(W, "ROW_STATE", {
|
|
1240
1242
|
EMPTY: "EMPTY",
|
|
1241
1243
|
NORMAL: "NORMAL",
|
|
@@ -1267,7 +1269,7 @@ const We = class We {
|
|
|
1267
1269
|
};
|
|
1268
1270
|
it = new WeakMap(), h(We, "ngDataManager");
|
|
1269
1271
|
let be = We;
|
|
1270
|
-
var ut, L,
|
|
1272
|
+
var ut, L, Lt, se;
|
|
1271
1273
|
const Oe = class Oe {
|
|
1272
1274
|
// π― μ΄μ { name: string, type: string } κ°μ²΄λ€μ λ°°μ΄λ‘ κ΄λ¦¬ν©λλ€.
|
|
1273
1275
|
constructor(i) {
|
|
@@ -1276,9 +1278,9 @@ const Oe = class Oe {
|
|
|
1276
1278
|
A(this, "add", /* @__PURE__ */ h((i, e = "string") => {
|
|
1277
1279
|
i.forEach((s) => {
|
|
1278
1280
|
t(this, L).some((r) => r.name === s) || t(this, L).push({ name: s, type: e });
|
|
1279
|
-
}), t(this,
|
|
1281
|
+
}), t(this, Lt).call(this);
|
|
1280
1282
|
}, "add"));
|
|
1281
|
-
d(this,
|
|
1283
|
+
d(this, Lt, /* @__PURE__ */ h(() => {
|
|
1282
1284
|
const i = /* @__PURE__ */ new Map();
|
|
1283
1285
|
t(this, L).forEach((e) => {
|
|
1284
1286
|
i.set(e.name, e.type);
|
|
@@ -1313,7 +1315,7 @@ const Oe = class Oe {
|
|
|
1313
1315
|
});
|
|
1314
1316
|
});
|
|
1315
1317
|
});
|
|
1316
|
-
t(this,
|
|
1318
|
+
t(this, Lt).call(this);
|
|
1317
1319
|
}
|
|
1318
1320
|
}, "#init"));
|
|
1319
1321
|
y(this, ut, i), t(this, se).call(this);
|
|
@@ -1338,7 +1340,7 @@ const Oe = class Oe {
|
|
|
1338
1340
|
return t(this, L).some((e) => e.name === i);
|
|
1339
1341
|
}
|
|
1340
1342
|
};
|
|
1341
|
-
ut = new WeakMap(), L = new WeakMap(),
|
|
1343
|
+
ut = new WeakMap(), L = new WeakMap(), Lt = new WeakMap(), se = new WeakMap(), h(Oe, "ngFields");
|
|
1342
1344
|
let ye = Oe;
|
|
1343
1345
|
var rt, ie, re;
|
|
1344
1346
|
const Be = class Be extends HTMLElement {
|
|
@@ -1387,12 +1389,12 @@ const mt = class mt extends HTMLElement {
|
|
|
1387
1389
|
};
|
|
1388
1390
|
h(mt, "BasicCellElement"), A(mt, "_styleCache", /* @__PURE__ */ new Map()), A(mt, "_customStyleCache", /* @__PURE__ */ new Map());
|
|
1389
1391
|
let me = mt;
|
|
1390
|
-
var C,
|
|
1392
|
+
var C, Ht, p, Ae, Re, qe, ke, Te;
|
|
1391
1393
|
const ze = class ze extends me {
|
|
1392
1394
|
constructor() {
|
|
1393
1395
|
super();
|
|
1394
1396
|
d(this, C);
|
|
1395
|
-
d(this,
|
|
1397
|
+
d(this, Ht);
|
|
1396
1398
|
d(this, p);
|
|
1397
1399
|
d(this, Ae);
|
|
1398
1400
|
d(this, Re);
|
|
@@ -1461,7 +1463,7 @@ const ze = class ze extends me {
|
|
|
1461
1463
|
}, "getExprValue"));
|
|
1462
1464
|
}
|
|
1463
1465
|
connectedCallback() {
|
|
1464
|
-
super.connectedCallback(), y(this, C, this.getRootNode().host), y(this, p, this.closest("th,td")), y(this,
|
|
1466
|
+
super.connectedCallback(), y(this, C, this.getRootNode().host), y(this, p, this.closest("th,td")), y(this, Ht, t(this, p).closest("tr"));
|
|
1465
1467
|
}
|
|
1466
1468
|
get value() {
|
|
1467
1469
|
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 +1482,10 @@ const ze = class ze extends me {
|
|
|
1480
1482
|
}
|
|
1481
1483
|
refresh() {
|
|
1482
1484
|
const e = t(this, p).dataset.bind;
|
|
1483
|
-
return parseInt(t(this, p).dataset.row), t(this,
|
|
1485
|
+
return parseInt(t(this, p).dataset.row), t(this, Ht).data[e];
|
|
1484
1486
|
}
|
|
1485
1487
|
};
|
|
1486
|
-
C = new WeakMap(),
|
|
1488
|
+
C = new WeakMap(), Ht = new WeakMap(), p = new WeakMap(), Ae = new WeakMap(), Re = new WeakMap(), qe = new WeakMap(), ke = new WeakMap(), Te = new WeakMap(), h(ze, "CellElement");
|
|
1487
1489
|
let xe = ze;
|
|
1488
1490
|
const De = class De extends xe {
|
|
1489
1491
|
constructor() {
|
|
@@ -1498,11 +1500,11 @@ const De = class De extends xe {
|
|
|
1498
1500
|
};
|
|
1499
1501
|
h(De, "EditableCellElement");
|
|
1500
1502
|
let ve = De;
|
|
1501
|
-
var
|
|
1503
|
+
var Mt, nt, gt, bt, ne, U, Ce;
|
|
1502
1504
|
const Pe = class Pe extends ve {
|
|
1503
1505
|
constructor() {
|
|
1504
1506
|
super();
|
|
1505
|
-
d(this,
|
|
1507
|
+
d(this, Mt);
|
|
1506
1508
|
d(this, nt);
|
|
1507
1509
|
d(this, gt);
|
|
1508
1510
|
d(this, bt);
|
|
@@ -1510,7 +1512,7 @@ const Pe = class Pe extends ve {
|
|
|
1510
1512
|
d(this, U);
|
|
1511
1513
|
A(this, "refresh", /* @__PURE__ */ h(() => {
|
|
1512
1514
|
const e = super.refresh();
|
|
1513
|
-
P.log("::", e), t(this,
|
|
1515
|
+
P.log("::", e), t(this, Mt).value = e;
|
|
1514
1516
|
}, "refresh"));
|
|
1515
1517
|
/**
|
|
1516
1518
|
dataRefresh = (v) => {
|
|
@@ -1567,10 +1569,10 @@ const Pe = class Pe extends ve {
|
|
|
1567
1569
|
${e.join(" ")}
|
|
1568
1570
|
ondragstart="return false;"
|
|
1569
1571
|
>
|
|
1570
|
-
`, super.connectedCallback(), y(this,
|
|
1572
|
+
`, super.connectedCallback(), y(this, Mt, this.querySelector("input"));
|
|
1571
1573
|
}
|
|
1572
1574
|
};
|
|
1573
|
-
|
|
1575
|
+
Mt = new WeakMap(), nt = new WeakMap(), gt = new WeakMap(), bt = new WeakMap(), ne = new WeakMap(), U = new WeakMap(), Ce = new WeakMap(), h(Pe, "CellInputText");
|
|
1574
1576
|
let we = Pe;
|
|
1575
1577
|
customElements.get("cell-input-text");
|
|
1576
1578
|
customElements.get("cell-input") || customElements.define("cell-input", we);
|