@ninebone/table 0.0.522 β 0.0.523
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 H = new oe();
|
|
26
|
-
var z, j, w, X, K, Z,
|
|
26
|
+
var z, 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, z)) return;
|
|
38
38
|
const e = t(this, z).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
|
-
z = new WeakMap(), j = new WeakMap(), w = new WeakMap(), X = new WeakMap(), K = new WeakMap(), Z = new WeakMap(),
|
|
201
|
+
z = 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();
|
|
@@ -230,7 +230,7 @@ const Me = class Me extends HTMLElement {
|
|
|
230
230
|
const v = f - u;
|
|
231
231
|
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;
|
|
232
232
|
}, "refresh"));
|
|
233
|
-
d(this,
|
|
233
|
+
d(this, Nt, /* @__PURE__ */ h(() => {
|
|
234
234
|
H.log("nine-table-vscrollbar.#init");
|
|
235
235
|
const e = t(this, q).container, s = /* @__PURE__ */ h(() => {
|
|
236
236
|
const n = (t(this, F).data.get() || []).length, o = t(this, ot).getRowHeight();
|
|
@@ -347,15 +347,15 @@ const Me = class Me extends HTMLElement {
|
|
|
347
347
|
thumb: this.querySelector(".ng-scroll-thumb"),
|
|
348
348
|
top: this.querySelector(".ng-scroll-top"),
|
|
349
349
|
bottom: this.querySelector(".ng-scroll-bottom")
|
|
350
|
-
}), t(this,
|
|
350
|
+
}), t(this, Nt).call(this), this.refresh();
|
|
351
351
|
}, "initWhenReady");
|
|
352
352
|
e();
|
|
353
353
|
}
|
|
354
354
|
};
|
|
355
|
-
F = new WeakMap(), ot = new WeakMap(), J = new WeakMap(), q = new WeakMap(), xt = new WeakMap(), vt = new WeakMap(),
|
|
355
|
+
F = new WeakMap(), ot = new WeakMap(), J = new WeakMap(), q = new WeakMap(), xt = new WeakMap(), vt = new WeakMap(), Nt = new WeakMap(), h(Me, "NineTableVScrollBar");
|
|
356
356
|
let le = Me;
|
|
357
357
|
customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", le);
|
|
358
|
-
var P, S, D, I, V, Q, wt, Se, at,
|
|
358
|
+
var P, S, D, I, V, Q, wt, Se, at, Wt, Ot, Bt, St, Et, zt, Dt, At, Ee, lt, Rt, Pt;
|
|
359
359
|
const $e = class $e {
|
|
360
360
|
constructor(i) {
|
|
361
361
|
d(this, P);
|
|
@@ -367,7 +367,7 @@ const $e = class $e {
|
|
|
367
367
|
d(this, wt, 40);
|
|
368
368
|
d(this, Se, !1);
|
|
369
369
|
d(this, at, !1);
|
|
370
|
-
d(this,
|
|
370
|
+
d(this, Wt, 3);
|
|
371
371
|
A(this, "refresh", /* @__PURE__ */ h(() => {
|
|
372
372
|
H.log("rowManager.refresh");
|
|
373
373
|
const i = t(this, S).querySelector(".ng-container-body .ng-part-body");
|
|
@@ -386,7 +386,7 @@ const $e = class $e {
|
|
|
386
386
|
});
|
|
387
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");
|
|
388
388
|
if (i) {
|
|
389
|
-
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);
|
|
390
390
|
let o = !1;
|
|
391
391
|
const a = /* @__PURE__ */ h((c, l, f) => {
|
|
392
392
|
var u;
|
|
@@ -401,7 +401,7 @@ const $e = class $e {
|
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
403
|
}, "initialize"));
|
|
404
|
-
d(this,
|
|
404
|
+
d(this, Ot, /* @__PURE__ */ h((i, e) => {
|
|
405
405
|
H.log("rowManager.#renderRows");
|
|
406
406
|
const s = t(this, D).get(e);
|
|
407
407
|
if (!s || s.length === 0) return;
|
|
@@ -415,7 +415,7 @@ const $e = class $e {
|
|
|
415
415
|
});
|
|
416
416
|
n ? n.before(o) : r.appendChild(o);
|
|
417
417
|
}, "#renderRows"));
|
|
418
|
-
d(this,
|
|
418
|
+
d(this, Bt, /* @__PURE__ */ h((i) => {
|
|
419
419
|
if (H.log("rowManager.#measureAndCacheHeight"), t(this, I) !== null && t(this, I) > 0)
|
|
420
420
|
return t(this, I);
|
|
421
421
|
H.log("#measureAndCacheHeight");
|
|
@@ -449,10 +449,10 @@ const $e = class $e {
|
|
|
449
449
|
d(this, Et, /* @__PURE__ */ h(() => {
|
|
450
450
|
if (t(this, Q) > 0 && t(this, I) > 0) {
|
|
451
451
|
const i = Math.ceil(t(this, Q) / t(this, I));
|
|
452
|
-
y(this, wt, i + t(this,
|
|
452
|
+
y(this, wt, i + t(this, Wt));
|
|
453
453
|
}
|
|
454
454
|
}, "#updateRowCount"));
|
|
455
|
-
d(this,
|
|
455
|
+
d(this, zt, /* @__PURE__ */ h(() => {
|
|
456
456
|
var a, c, l, f, u, b;
|
|
457
457
|
const i = t(this, S).querySelector(".ng-container-left .ng-part-body table"), e = t(this, S).querySelector(".ng-container-body .ng-part-body table"), s = t(this, S).querySelector(".ng-container-right .ng-part-body table");
|
|
458
458
|
if (e) {
|
|
@@ -479,7 +479,7 @@ const $e = class $e {
|
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
}, "#syncRowHeights"));
|
|
482
|
-
d(this,
|
|
482
|
+
d(this, Dt, /* @__PURE__ */ h(() => {
|
|
483
483
|
!t(this, S) || !(t(this, S) instanceof HTMLElement) || (y(this, V, new ResizeObserver((i) => {
|
|
484
484
|
for (const e of i) {
|
|
485
485
|
const s = e.target;
|
|
@@ -490,16 +490,16 @@ const $e = class $e {
|
|
|
490
490
|
const o = s.querySelector(".ng-part-header"), a = s.querySelector(".ng-part-footer");
|
|
491
491
|
o && (n += o.offsetHeight), a && (n += a.offsetHeight);
|
|
492
492
|
const c = Math.max(r - n, 100);
|
|
493
|
-
t(this, Q) !== c && (y(this, Q, c), t(this, Et).call(this), t(this, I));
|
|
493
|
+
t(this, Q) !== c && (y(this, Q, c), t(this, Et).call(this), t(this, I) !== null && (t(this, At).call(this), this.refresh()));
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
})), t(this, V).observe(t(this, S)));
|
|
497
497
|
}, "#initResizeObserver"));
|
|
498
|
-
d(this,
|
|
498
|
+
d(this, At, /* @__PURE__ */ h(() => {
|
|
499
499
|
H.log("rowManager.#renderAllContainers"), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
|
|
500
500
|
const e = t(this, S).querySelector(i);
|
|
501
|
-
e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this,
|
|
502
|
-
}), t(this, Pt).call(this), t(this,
|
|
501
|
+
e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Ot).call(this, e, i);
|
|
502
|
+
}), t(this, Pt).call(this), t(this, zt).call(this);
|
|
503
503
|
}, "#renderAllContainers"));
|
|
504
504
|
d(this, Ee, /* @__PURE__ */ h((i) => {
|
|
505
505
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((e) => {
|
|
@@ -516,7 +516,7 @@ const $e = class $e {
|
|
|
516
516
|
return;
|
|
517
517
|
}
|
|
518
518
|
const g = t(this, P).data.get(b);
|
|
519
|
-
f.style.display = "", t(this,
|
|
519
|
+
f.style.display = "", t(this, Rt).call(this, f, g, b);
|
|
520
520
|
});
|
|
521
521
|
});
|
|
522
522
|
}, "#adjustBufferRows"));
|
|
@@ -542,7 +542,7 @@ const $e = class $e {
|
|
|
542
542
|
return;
|
|
543
543
|
}
|
|
544
544
|
const k = t(this, P).data.get(M);
|
|
545
|
-
E.style.display = "", t(this,
|
|
545
|
+
E.style.display = "", t(this, Rt).call(this, E, k, M);
|
|
546
546
|
});
|
|
547
547
|
});
|
|
548
548
|
}, "#handleScroll"));
|
|
@@ -560,7 +560,7 @@ const $e = class $e {
|
|
|
560
560
|
cell.dataset.row = dataIndex;
|
|
561
561
|
});
|
|
562
562
|
}; */
|
|
563
|
-
d(this,
|
|
563
|
+
d(this, Rt, /* @__PURE__ */ h((i, e, s) => {
|
|
564
564
|
i.dataset.row = s, i.data = e, H.log(e, s), Array.from(i.cells).forEach((r, n) => {
|
|
565
565
|
r.dataset.row = s;
|
|
566
566
|
const o = Array.from(r.children).find((a) => a.tagName.toLowerCase().startsWith("cell-") || typeof a.refresh == "function");
|
|
@@ -585,7 +585,7 @@ const $e = class $e {
|
|
|
585
585
|
A(this, "destroy", /* @__PURE__ */ h(() => {
|
|
586
586
|
t(this, V) && (t(this, V).disconnect(), y(this, V, null));
|
|
587
587
|
}, "destroy"));
|
|
588
|
-
y(this, P, i.getRootNode().host), y(this, S, i), t(this,
|
|
588
|
+
y(this, P, i.getRootNode().host), y(this, S, i), t(this, Dt).call(this);
|
|
589
589
|
}
|
|
590
590
|
getRowHeight() {
|
|
591
591
|
return t(this, I);
|
|
@@ -595,7 +595,7 @@ const $e = class $e {
|
|
|
595
595
|
return ((e = t(this, D).get(i)) == null ? void 0 : e.length) || 1;
|
|
596
596
|
}
|
|
597
597
|
};
|
|
598
|
-
P = new WeakMap(), S = new WeakMap(), D = new WeakMap(), I = new WeakMap(), V = new WeakMap(), Q = new WeakMap(), wt = new WeakMap(), Se = new WeakMap(), at = new WeakMap(),
|
|
598
|
+
P = new WeakMap(), S = new WeakMap(), D = new WeakMap(), I = 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");
|
|
599
599
|
let ce = $e;
|
|
600
600
|
const jt = class jt {
|
|
601
601
|
/**
|
|
@@ -905,9 +905,9 @@ const pt = class pt extends HTMLElement {
|
|
|
905
905
|
}
|
|
906
906
|
};
|
|
907
907
|
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);
|
|
908
|
-
let
|
|
909
|
-
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet",
|
|
910
|
-
var Kt,
|
|
908
|
+
let $t = pt;
|
|
909
|
+
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", $t);
|
|
910
|
+
var Kt, qt;
|
|
911
911
|
const Ie = class Ie extends HTMLElement {
|
|
912
912
|
constructor() {
|
|
913
913
|
super();
|
|
@@ -916,10 +916,10 @@ const Ie = class Ie extends HTMLElement {
|
|
|
916
916
|
(e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (s) => {
|
|
917
917
|
var o;
|
|
918
918
|
const r = s.ctrlKey || s.metaKey || s.shiftKey, n = parseInt((o = s.target.closest(".nine-tab-item")) == null ? void 0 : o.dataset.index, 10);
|
|
919
|
-
t(this,
|
|
920
|
-
}), t(this,
|
|
919
|
+
t(this, qt).call(this, n, r);
|
|
920
|
+
}), t(this, qt).call(this, 0, !1);
|
|
921
921
|
}, "#init"));
|
|
922
|
-
d(this,
|
|
922
|
+
d(this, qt, /* @__PURE__ */ h((e, s = !1) => {
|
|
923
923
|
const r = /* @__PURE__ */ h(() => {
|
|
924
924
|
const f = Array.from(this.querySelectorAll("nine-table-sheet"));
|
|
925
925
|
Array.from(this.querySelectorAll("nine-splitter")).forEach((g) => g.style.setProperty("display", "none"));
|
|
@@ -955,24 +955,24 @@ const Ie = class Ie extends HTMLElement {
|
|
|
955
955
|
t(this, Kt).call(this);
|
|
956
956
|
}
|
|
957
957
|
};
|
|
958
|
-
Kt = new WeakMap(),
|
|
958
|
+
Kt = new WeakMap(), qt = new WeakMap(), h(Ie, "NineTableSheets");
|
|
959
959
|
let de = Ie;
|
|
960
960
|
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", de);
|
|
961
|
-
var _, Zt,
|
|
961
|
+
var _, Zt, kt, Gt;
|
|
962
962
|
const _e = class _e {
|
|
963
963
|
constructor(i) {
|
|
964
964
|
d(this, _);
|
|
965
965
|
d(this, Zt, /* @__PURE__ */ h(() => {
|
|
966
966
|
t(this, Gt).call(this), new ResizeObserver((i) => {
|
|
967
967
|
for (let e of i)
|
|
968
|
-
t(this, _).getAttribute("auto-height") === "true" && t(this,
|
|
968
|
+
t(this, _).getAttribute("auto-height") === "true" && t(this, kt).call(this);
|
|
969
969
|
}).observe(t(this, _));
|
|
970
970
|
}, "#init"));
|
|
971
|
-
d(this,
|
|
971
|
+
d(this, kt, /* @__PURE__ */ h(() => {
|
|
972
972
|
var c, l;
|
|
973
973
|
const i = Array.from(t(this, _).shadowRoot.querySelectorAll("nine-table-sheet.active"));
|
|
974
974
|
if (i.length === 0) return;
|
|
975
|
-
const e = parseInt(t(this, _).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), r = (c = t(this, _).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, n = (l = t(this, _).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o =
|
|
975
|
+
const e = parseInt(t(this, _).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), r = (c = t(this, _).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, n = (l = t(this, _).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = $t.SCROLLBAR_SIZE, a = e * s + r + n + o;
|
|
976
976
|
t(this, _).style.height = `${a}px`;
|
|
977
977
|
}, "#applyAutoHeight"));
|
|
978
978
|
d(this, Gt, /* @__PURE__ */ h(() => {
|
|
@@ -1074,22 +1074,22 @@ const _e = class _e {
|
|
|
1074
1074
|
const a = t(this, _).shadowRoot.querySelectorAll("nine-table-sheet");
|
|
1075
1075
|
a == null || a.forEach((c, l) => {
|
|
1076
1076
|
e[l] && setTimeout(() => {
|
|
1077
|
-
c.generate(e[l]), s && t(this,
|
|
1077
|
+
c.generate(e[l]), s && t(this, kt).call(this);
|
|
1078
1078
|
});
|
|
1079
1079
|
});
|
|
1080
1080
|
}, "#render"));
|
|
1081
1081
|
y(this, _, i), t(this, Zt).call(this);
|
|
1082
1082
|
}
|
|
1083
1083
|
};
|
|
1084
|
-
_ = new WeakMap(), Zt = new WeakMap(),
|
|
1084
|
+
_ = new WeakMap(), Zt = new WeakMap(), kt = new WeakMap(), Gt = new WeakMap(), h(_e, "LayoutManager");
|
|
1085
1085
|
let fe = _e;
|
|
1086
|
-
var
|
|
1086
|
+
var Tt, ht;
|
|
1087
1087
|
const Ne = class Ne {
|
|
1088
1088
|
constructor(i) {
|
|
1089
|
-
d(this,
|
|
1089
|
+
d(this, Tt);
|
|
1090
1090
|
d(this, ht, -1);
|
|
1091
|
-
A(this, "count", /* @__PURE__ */ h(() => t(this,
|
|
1092
|
-
y(this,
|
|
1091
|
+
A(this, "count", /* @__PURE__ */ h(() => t(this, Tt).rawRecords.length, "count"));
|
|
1092
|
+
y(this, Tt, i);
|
|
1093
1093
|
}
|
|
1094
1094
|
get at() {
|
|
1095
1095
|
return t(this, ht);
|
|
@@ -1099,9 +1099,9 @@ const Ne = class Ne {
|
|
|
1099
1099
|
});
|
|
1100
1100
|
}
|
|
1101
1101
|
};
|
|
1102
|
-
|
|
1102
|
+
Tt = new WeakMap(), ht = new WeakMap(), h(Ne, "ngRow");
|
|
1103
1103
|
let ue = Ne;
|
|
1104
|
-
var N, T, W, dt, Jt, Y, Qt, st,
|
|
1104
|
+
var N, T, W, dt, Jt, Y, Qt, st, Ct, te, ee, ft;
|
|
1105
1105
|
const O = class O {
|
|
1106
1106
|
constructor(i, e) {
|
|
1107
1107
|
d(this, N);
|
|
@@ -1117,7 +1117,7 @@ const O = class O {
|
|
|
1117
1117
|
var s;
|
|
1118
1118
|
t(this, Y).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
|
|
1119
1119
|
}), (t(this, T).rawRecords || []).forEach((e) => {
|
|
1120
|
-
e.__ng || (e.__ng = t(this,
|
|
1120
|
+
e.__ng || (e.__ng = t(this, Ct).call(this)), e.__ng.height = t(this, Y).slice();
|
|
1121
1121
|
});
|
|
1122
1122
|
}, "#initialize"));
|
|
1123
1123
|
d(this, st, /* @__PURE__ */ h(() => {
|
|
@@ -1141,7 +1141,7 @@ const O = class O {
|
|
|
1141
1141
|
A(this, "set", /* @__PURE__ */ h((i) => {
|
|
1142
1142
|
this.clear(), this.add(i, !1), t(this, st).call(this);
|
|
1143
1143
|
}, "set"));
|
|
1144
|
-
d(this,
|
|
1144
|
+
d(this, Ct, /* @__PURE__ */ h(() => ({
|
|
1145
1145
|
rowState: O.ROW_STATE.EMPTY,
|
|
1146
1146
|
deleted: !1,
|
|
1147
1147
|
filtered: !1,
|
|
@@ -1169,7 +1169,7 @@ const O = class O {
|
|
|
1169
1169
|
}), s;
|
|
1170
1170
|
}, "#json2Array"));
|
|
1171
1171
|
d(this, ee, /* @__PURE__ */ h((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
|
|
1172
|
-
e.__ng = t(this,
|
|
1172
|
+
e.__ng = t(this, Ct).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = O.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
|
|
1173
1173
|
}), i), "#defaultInsert"));
|
|
1174
1174
|
A(this, "add", /* @__PURE__ */ h((i, e = !0) => {
|
|
1175
1175
|
i === void 0 && (i = {});
|
|
@@ -1240,7 +1240,7 @@ const O = class O {
|
|
|
1240
1240
|
return this.length;
|
|
1241
1241
|
}
|
|
1242
1242
|
};
|
|
1243
|
-
N = new WeakMap(), T = new WeakMap(), W = new WeakMap(), dt = new WeakMap(), Jt = new WeakMap(), Y = new WeakMap(), Qt = new WeakMap(), st = new WeakMap(),
|
|
1243
|
+
N = new WeakMap(), T = new WeakMap(), W = 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(O, "ngData"), // π― ν μν μ μ μμλ₯Ό ν΄λμ€ λ΄λΆλ‘ λ΄μ¬ν
|
|
1244
1244
|
A(O, "ROW_STATE", {
|
|
1245
1245
|
EMPTY: "EMPTY",
|
|
1246
1246
|
NORMAL: "NORMAL",
|
|
@@ -1272,7 +1272,7 @@ const We = class We {
|
|
|
1272
1272
|
};
|
|
1273
1273
|
it = new WeakMap(), h(We, "ngDataManager");
|
|
1274
1274
|
let be = We;
|
|
1275
|
-
var ut, L,
|
|
1275
|
+
var ut, L, Lt, se;
|
|
1276
1276
|
const Oe = class Oe {
|
|
1277
1277
|
// π― μ΄μ { name: string, type: string } κ°μ²΄λ€μ λ°°μ΄λ‘ κ΄λ¦¬ν©λλ€.
|
|
1278
1278
|
constructor(i) {
|
|
@@ -1281,9 +1281,9 @@ const Oe = class Oe {
|
|
|
1281
1281
|
A(this, "add", /* @__PURE__ */ h((i, e = "string") => {
|
|
1282
1282
|
i.forEach((s) => {
|
|
1283
1283
|
t(this, L).some((r) => r.name === s) || t(this, L).push({ name: s, type: e });
|
|
1284
|
-
}), t(this,
|
|
1284
|
+
}), t(this, Lt).call(this);
|
|
1285
1285
|
}, "add"));
|
|
1286
|
-
d(this,
|
|
1286
|
+
d(this, Lt, /* @__PURE__ */ h(() => {
|
|
1287
1287
|
const i = /* @__PURE__ */ new Map();
|
|
1288
1288
|
t(this, L).forEach((e) => {
|
|
1289
1289
|
i.set(e.name, e.type);
|
|
@@ -1318,7 +1318,7 @@ const Oe = class Oe {
|
|
|
1318
1318
|
});
|
|
1319
1319
|
});
|
|
1320
1320
|
});
|
|
1321
|
-
t(this,
|
|
1321
|
+
t(this, Lt).call(this);
|
|
1322
1322
|
}
|
|
1323
1323
|
}, "#init"));
|
|
1324
1324
|
y(this, ut, i), t(this, se).call(this);
|
|
@@ -1343,7 +1343,7 @@ const Oe = class Oe {
|
|
|
1343
1343
|
return t(this, L).some((e) => e.name === i);
|
|
1344
1344
|
}
|
|
1345
1345
|
};
|
|
1346
|
-
ut = new WeakMap(), L = new WeakMap(),
|
|
1346
|
+
ut = new WeakMap(), L = new WeakMap(), Lt = new WeakMap(), se = new WeakMap(), h(Oe, "ngFields");
|
|
1347
1347
|
let ye = Oe;
|
|
1348
1348
|
var rt, ie, re;
|
|
1349
1349
|
const Be = class Be extends HTMLElement {
|
|
@@ -1392,12 +1392,12 @@ const mt = class mt extends HTMLElement {
|
|
|
1392
1392
|
};
|
|
1393
1393
|
h(mt, "BasicCellElement"), A(mt, "_styleCache", /* @__PURE__ */ new Map()), A(mt, "_customStyleCache", /* @__PURE__ */ new Map());
|
|
1394
1394
|
let me = mt;
|
|
1395
|
-
var C,
|
|
1395
|
+
var C, Ht, p, Ae, Re, qe, ke, Te;
|
|
1396
1396
|
const ze = class ze extends me {
|
|
1397
1397
|
constructor() {
|
|
1398
1398
|
super();
|
|
1399
1399
|
d(this, C);
|
|
1400
|
-
d(this,
|
|
1400
|
+
d(this, Ht);
|
|
1401
1401
|
d(this, p);
|
|
1402
1402
|
d(this, Ae);
|
|
1403
1403
|
d(this, Re);
|
|
@@ -1466,7 +1466,7 @@ const ze = class ze extends me {
|
|
|
1466
1466
|
}, "getExprValue"));
|
|
1467
1467
|
}
|
|
1468
1468
|
connectedCallback() {
|
|
1469
|
-
super.connectedCallback(), y(this, C, this.getRootNode().host), y(this, p, this.closest("th,td")), y(this,
|
|
1469
|
+
super.connectedCallback(), y(this, C, this.getRootNode().host), y(this, p, this.closest("th,td")), y(this, Ht, t(this, p).closest("tr"));
|
|
1470
1470
|
}
|
|
1471
1471
|
get value() {
|
|
1472
1472
|
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];
|
|
@@ -1485,10 +1485,10 @@ const ze = class ze extends me {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
refresh() {
|
|
1487
1487
|
const e = t(this, p).dataset.bind;
|
|
1488
|
-
return parseInt(t(this, p).dataset.row), t(this,
|
|
1488
|
+
return parseInt(t(this, p).dataset.row), t(this, Ht).data[e];
|
|
1489
1489
|
}
|
|
1490
1490
|
};
|
|
1491
|
-
C = new WeakMap(),
|
|
1491
|
+
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");
|
|
1492
1492
|
let xe = ze;
|
|
1493
1493
|
const De = class De extends xe {
|
|
1494
1494
|
constructor() {
|
|
@@ -1503,11 +1503,11 @@ const De = class De extends xe {
|
|
|
1503
1503
|
};
|
|
1504
1504
|
h(De, "EditableCellElement");
|
|
1505
1505
|
let ve = De;
|
|
1506
|
-
var
|
|
1506
|
+
var Mt, nt, gt, bt, ne, U, Ce;
|
|
1507
1507
|
const Pe = class Pe extends ve {
|
|
1508
1508
|
constructor() {
|
|
1509
1509
|
super();
|
|
1510
|
-
d(this,
|
|
1510
|
+
d(this, Mt);
|
|
1511
1511
|
d(this, nt);
|
|
1512
1512
|
d(this, gt);
|
|
1513
1513
|
d(this, bt);
|
|
@@ -1515,7 +1515,7 @@ const Pe = class Pe extends ve {
|
|
|
1515
1515
|
d(this, U);
|
|
1516
1516
|
A(this, "refresh", /* @__PURE__ */ h(() => {
|
|
1517
1517
|
const e = super.refresh();
|
|
1518
|
-
H.log("::", e), t(this,
|
|
1518
|
+
H.log("::", e), t(this, Mt).value = e;
|
|
1519
1519
|
}, "refresh"));
|
|
1520
1520
|
/**
|
|
1521
1521
|
dataRefresh = (v) => {
|
|
@@ -1572,10 +1572,10 @@ const Pe = class Pe extends ve {
|
|
|
1572
1572
|
${e.join(" ")}
|
|
1573
1573
|
ondragstart="return false;"
|
|
1574
1574
|
>
|
|
1575
|
-
`, super.connectedCallback(), y(this,
|
|
1575
|
+
`, super.connectedCallback(), y(this, Mt, this.querySelector("input"));
|
|
1576
1576
|
}
|
|
1577
1577
|
};
|
|
1578
|
-
|
|
1578
|
+
Mt = new WeakMap(), nt = new WeakMap(), gt = new WeakMap(), bt = new WeakMap(), ne = new WeakMap(), U = new WeakMap(), Ce = new WeakMap(), h(Pe, "CellInputText");
|
|
1579
1579
|
let we = Pe;
|
|
1580
1580
|
customElements.get("cell-input-text");
|
|
1581
1581
|
customElements.get("cell-input") || customElements.define("cell-input", we);
|