@ninebone/table 0.0.561 → 0.0.562
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 +381 -377
- 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
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Ve = Object.defineProperty;
|
|
2
|
+
var Ye = (R) => {
|
|
3
3
|
throw TypeError(R);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var h = (R,
|
|
7
|
-
var E = (R,
|
|
8
|
-
var t = (R,
|
|
9
|
-
var
|
|
10
|
-
set _(
|
|
11
|
-
p(R,
|
|
5
|
+
var Ke = (R, i, e) => i in R ? Ve(R, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : R[i] = e;
|
|
6
|
+
var h = (R, i) => Ve(R, "name", { value: i, configurable: !0 });
|
|
7
|
+
var E = (R, i, e) => Ke(R, typeof i != "symbol" ? i + "" : i, e), Ue = (R, i, e) => i.has(R) || Ye("Cannot " + e);
|
|
8
|
+
var t = (R, i, e) => (Ue(R, i, "read from private field"), e ? e.call(R) : i.get(R)), d = (R, i, e) => i.has(R) ? Ye("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(R) : i.set(R, e), p = (R, i, e, s) => (Ue(R, i, "write to private field"), s ? s.call(R, e) : i.set(R, e), e);
|
|
9
|
+
var Xe = (R, i, e, s) => ({
|
|
10
|
+
set _(r) {
|
|
11
|
+
p(R, i, r, e);
|
|
12
12
|
},
|
|
13
13
|
get _() {
|
|
14
|
-
return t(R,
|
|
14
|
+
return t(R, i, s);
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
import { trace as
|
|
18
|
-
const
|
|
17
|
+
import { trace as Ze } from "@ninebone/util";
|
|
18
|
+
const Me = class Me extends Ze.constructor {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(), this.init("nine-table", "green");
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
h(
|
|
24
|
-
let
|
|
25
|
-
const N = new
|
|
26
|
-
var z, j, w, X, K, Z,
|
|
27
|
-
const
|
|
23
|
+
h(Me, "Trace");
|
|
24
|
+
let ae = Me;
|
|
25
|
+
const N = new ae();
|
|
26
|
+
var z, j, w, X, K, Z, _t, G, Nt;
|
|
27
|
+
const $e = class $e extends HTMLElement {
|
|
28
28
|
constructor() {
|
|
29
29
|
super();
|
|
30
30
|
d(this, z);
|
|
@@ -33,7 +33,7 @@ const Me = class Me 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, z)) return;
|
|
38
38
|
const e = t(this, z).querySelector(".ng-container-body .ng-part-body");
|
|
39
39
|
e && (p(this, Z, new ResizeObserver(() => {
|
|
@@ -44,14 +44,14 @@ const Me = class Me extends HTMLElement {
|
|
|
44
44
|
if (!t(this, z) || !t(this, w) || t(this, j)) return;
|
|
45
45
|
const e = t(this, w).container, s = e.querySelector("table");
|
|
46
46
|
if (!s) return;
|
|
47
|
-
const
|
|
47
|
+
const r = t(this, w).track, n = t(this, w).thumb, a = t(this, z).querySelector(".ng-container-bottom"), o = e.clientWidth, c = s.scrollWidth;
|
|
48
48
|
if (o !== 0 && c > o)
|
|
49
49
|
a && (a.style.display = "flex");
|
|
50
50
|
else {
|
|
51
51
|
a && (a.style.display = "none");
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
|
-
const l =
|
|
54
|
+
const l = r.clientWidth;
|
|
55
55
|
if (l <= 0) return;
|
|
56
56
|
const f = Math.max(Math.min(l * (o / c), l), 20);
|
|
57
57
|
n.style.width = `${f}px`;
|
|
@@ -63,43 +63,43 @@ const Me = class Me extends HTMLElement {
|
|
|
63
63
|
}, "refresh"));
|
|
64
64
|
d(this, G, /* @__PURE__ */ h((e) => {
|
|
65
65
|
if (!t(this, w)) return !1;
|
|
66
|
-
const s = t(this, w).container,
|
|
67
|
-
if (!
|
|
66
|
+
const s = t(this, w).container, r = s.querySelector("table");
|
|
67
|
+
if (!r) return !1;
|
|
68
68
|
const n = t(this, w).track.getBoundingClientRect(), a = t(this, w).thumb.clientWidth;
|
|
69
69
|
let o = e;
|
|
70
70
|
o < 0 && (o = 0);
|
|
71
71
|
const c = n.width - a;
|
|
72
72
|
o > c && (o = c), o = parseInt(o, 10), t(this, w).thumb.style.left = `${o}px`, t(this, w).left.disabled = o === 0, t(this, w).right.disabled = o >= c - 1;
|
|
73
|
-
const l = s.clientWidth, u =
|
|
73
|
+
const l = s.clientWidth, u = r.scrollWidth - l;
|
|
74
74
|
return c > 0 && u > 0 && (s.scrollLeft = o / c * u), o > 0 && o < c - 1;
|
|
75
75
|
}, "#thumbMoveTo"));
|
|
76
|
-
d(this,
|
|
77
|
-
const e = /* @__PURE__ */ h((
|
|
76
|
+
d(this, Nt, /* @__PURE__ */ h(() => {
|
|
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);
|
|
80
|
-
t(this, G).call(this, n +
|
|
80
|
+
t(this, G).call(this, n + r), p(this, X, setInterval(() => {
|
|
81
81
|
clearInterval(t(this, X)), p(this, K, setInterval(() => {
|
|
82
82
|
const a = parseInt(t(this, w).thumb.style.left || 0, 10);
|
|
83
|
-
t(this, G).call(this, a +
|
|
83
|
+
t(this, G).call(this, a + r) || clearInterval(t(this, K));
|
|
84
84
|
}, 50));
|
|
85
85
|
}, 500));
|
|
86
86
|
}, "delayScroll"), s = /* @__PURE__ */ h(() => {
|
|
87
87
|
clearInterval(t(this, X)), clearInterval(t(this, K));
|
|
88
88
|
}, "clearTimer");
|
|
89
|
-
["mouseup", "mouseleave", "touchend"].forEach((
|
|
90
|
-
t(this, w).left.addEventListener(
|
|
91
|
-
}), t(this, w).left.addEventListener("mousedown", (
|
|
92
|
-
|
|
93
|
-
}), t(this, w).right.addEventListener("mousedown", (
|
|
94
|
-
|
|
95
|
-
}), t(this, w).left.addEventListener("touchstart", () => e(-20)), t(this, w).right.addEventListener("touchstart", () => e(20)), t(this, w).track.addEventListener("mousedown", (
|
|
96
|
-
if (
|
|
97
|
-
|
|
89
|
+
["mouseup", "mouseleave", "touchend"].forEach((r) => {
|
|
90
|
+
t(this, w).left.addEventListener(r, s), t(this, w).right.addEventListener(r, s), t(this, w).track.addEventListener(r, s);
|
|
91
|
+
}), t(this, w).left.addEventListener("mousedown", (r) => {
|
|
92
|
+
r.button === 0 && e(-20);
|
|
93
|
+
}), t(this, w).right.addEventListener("mousedown", (r) => {
|
|
94
|
+
r.button === 0 && e(20);
|
|
95
|
+
}), t(this, w).left.addEventListener("touchstart", () => e(-20)), t(this, w).right.addEventListener("touchstart", () => e(20)), t(this, w).track.addEventListener("mousedown", (r) => {
|
|
96
|
+
if (r.button !== 0) return;
|
|
97
|
+
r.preventDefault();
|
|
98
98
|
const n = t(this, w).track.getBoundingClientRect(), a = t(this, w).thumb.clientWidth;
|
|
99
|
-
t(this, G).call(this,
|
|
100
|
-
}), t(this, w).thumb.addEventListener("mousedown", (
|
|
101
|
-
if (
|
|
102
|
-
|
|
99
|
+
t(this, G).call(this, r.clientX - n.left - a / 2);
|
|
100
|
+
}), t(this, w).thumb.addEventListener("mousedown", (r) => {
|
|
101
|
+
if (r.button !== 0) return;
|
|
102
|
+
r.stopPropagation(), r.preventDefault(), p(this, j, !0), this.shiftX = r.clientX - t(this, w).thumb.getBoundingClientRect().left;
|
|
103
103
|
const n = /* @__PURE__ */ h((o) => {
|
|
104
104
|
if (!t(this, j)) return;
|
|
105
105
|
const c = t(this, w).track.getBoundingClientRect();
|
|
@@ -190,7 +190,7 @@ const Me = class Me 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, Nt).call(this), t(this, _t).call(this), this.refresh();
|
|
194
194
|
}, "initWhenReady");
|
|
195
195
|
e();
|
|
196
196
|
}
|
|
@@ -198,38 +198,38 @@ const Me = class Me 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(),
|
|
202
|
-
let
|
|
203
|
-
customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar",
|
|
204
|
-
var F, at, J, q,
|
|
205
|
-
const
|
|
201
|
+
z = new WeakMap(), j = new WeakMap(), w = new WeakMap(), X = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), _t = new WeakMap(), G = new WeakMap(), Nt = new WeakMap(), h($e, "NineTableHScrollBar");
|
|
202
|
+
let le = $e;
|
|
203
|
+
customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", le);
|
|
204
|
+
var F, at, J, q, vt, wt, Wt;
|
|
205
|
+
const Ie = class Ie extends HTMLElement {
|
|
206
206
|
constructor() {
|
|
207
207
|
super();
|
|
208
208
|
d(this, F);
|
|
209
209
|
d(this, at);
|
|
210
210
|
d(this, J, !1);
|
|
211
211
|
d(this, q);
|
|
212
|
-
d(this, xt, 0);
|
|
213
212
|
d(this, vt, 0);
|
|
213
|
+
d(this, wt, 0);
|
|
214
214
|
E(this, "refresh", /* @__PURE__ */ h(() => {
|
|
215
215
|
if (!t(this, F) || !t(this, q)) return;
|
|
216
|
-
const e = t(this, q).container, s = t(this, q).track,
|
|
216
|
+
const e = t(this, q).container, s = t(this, q).track, r = t(this, q).thumb, n = e.clientHeight, o = (t(this, F).data.get() || []).length, c = t(this, at).getRowHeight(), l = o * c;
|
|
217
217
|
if (l <= n) {
|
|
218
|
-
|
|
218
|
+
r.style.display = "none", t(this, q).top.disabled = !0, t(this, q).bottom.disabled = !0;
|
|
219
219
|
return;
|
|
220
220
|
} else
|
|
221
|
-
|
|
221
|
+
r.style.display = "block";
|
|
222
222
|
const f = s.clientHeight;
|
|
223
223
|
if (f <= 0) return;
|
|
224
224
|
const u = Math.max(Math.min(f * (n / l), f), 20);
|
|
225
|
-
|
|
225
|
+
r.style.height = `${u}px`;
|
|
226
226
|
const g = e.scrollTop, b = Math.max(l - n, 1);
|
|
227
227
|
let x = 0;
|
|
228
228
|
b > 0 && (x = g / b * (f - u));
|
|
229
229
|
const v = f - u;
|
|
230
|
-
x < 0 && (x = 0), x > v && (x = v),
|
|
230
|
+
x < 0 && (x = 0), x > v && (x = v), r.style.top = `${x}px`, t(this, q).top.disabled = g <= 0, t(this, q).bottom.disabled = g >= b - 1;
|
|
231
231
|
}, "refresh"));
|
|
232
|
-
d(this,
|
|
232
|
+
d(this, Wt, /* @__PURE__ */ h(() => {
|
|
233
233
|
N.log("nine-table-vscrollbar.#init");
|
|
234
234
|
const e = t(this, q).container, s = /* @__PURE__ */ h(() => {
|
|
235
235
|
const n = (t(this, F).data.get() || []).length, a = t(this, at).getRowHeight();
|
|
@@ -237,15 +237,15 @@ const $e = class $e extends HTMLElement {
|
|
|
237
237
|
}, "getContentHeight");
|
|
238
238
|
e.addEventListener("scroll", () => {
|
|
239
239
|
t(this, J) || this.refresh();
|
|
240
|
-
}), t(this, q).thumb.addEventListener("mousedown", (
|
|
241
|
-
if (
|
|
242
|
-
|
|
240
|
+
}), t(this, q).thumb.addEventListener("mousedown", (r) => {
|
|
241
|
+
if (r.button !== 0) return;
|
|
242
|
+
r.stopPropagation(), r.preventDefault(), p(this, J, !0), p(this, vt, r.clientY), p(this, wt, e.scrollTop);
|
|
243
243
|
const n = /* @__PURE__ */ h((o) => {
|
|
244
244
|
if (!t(this, J)) return;
|
|
245
|
-
const c = t(this, q).track.getBoundingClientRect(), l = t(this, q).thumb.clientHeight, u = c.height - l, g = o.clientY - t(this,
|
|
245
|
+
const c = t(this, q).track.getBoundingClientRect(), l = t(this, q).thumb.clientHeight, u = c.height - l, g = o.clientY - t(this, vt), b = e.clientHeight, x = s(), v = Math.max(x - b, 1);
|
|
246
246
|
if (u > 0 && v > 0) {
|
|
247
247
|
const A = g / u * v;
|
|
248
|
-
let m = t(this,
|
|
248
|
+
let m = t(this, wt) + A;
|
|
249
249
|
const W = Math.max(0, x - b);
|
|
250
250
|
m < 0 && (m = 0), m > W && (m = W), e.scrollTop = m;
|
|
251
251
|
}
|
|
@@ -254,9 +254,9 @@ const $e = class $e extends HTMLElement {
|
|
|
254
254
|
p(this, J, !1), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", a), this.refresh();
|
|
255
255
|
}, "onMouseUp");
|
|
256
256
|
document.addEventListener("mousemove", n), document.addEventListener("mouseup", a);
|
|
257
|
-
}), t(this, q).track.addEventListener("mousedown", (
|
|
258
|
-
if (
|
|
259
|
-
const n = t(this, q).track.getBoundingClientRect(), a = t(this, q).thumb.clientHeight, o =
|
|
257
|
+
}), t(this, q).track.addEventListener("mousedown", (r) => {
|
|
258
|
+
if (r.button !== 0 || r.target === t(this, q).thumb) return;
|
|
259
|
+
const n = t(this, q).track.getBoundingClientRect(), a = t(this, q).thumb.clientHeight, o = r.clientY - n.top - a / 2, l = n.height - a, f = e.clientHeight, u = s(), g = Math.max(u - f, 1);
|
|
260
260
|
if (l > 0 && g > 0) {
|
|
261
261
|
const b = Math.max(0, Math.min(1, o / l));
|
|
262
262
|
e.scrollTop = b * g;
|
|
@@ -346,17 +346,17 @@ const $e = class $e extends HTMLElement {
|
|
|
346
346
|
thumb: this.querySelector(".ng-scroll-thumb"),
|
|
347
347
|
top: this.querySelector(".ng-scroll-top"),
|
|
348
348
|
bottom: this.querySelector(".ng-scroll-bottom")
|
|
349
|
-
}), t(this,
|
|
349
|
+
}), t(this, Wt).call(this), this.refresh();
|
|
350
350
|
}, "initWhenReady");
|
|
351
351
|
e();
|
|
352
352
|
}
|
|
353
353
|
};
|
|
354
|
-
F = new WeakMap(), at = new WeakMap(), J = new WeakMap(), q = new WeakMap(),
|
|
355
|
-
let
|
|
356
|
-
customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar",
|
|
357
|
-
var D, S, Q, P, H, V, tt,
|
|
358
|
-
const
|
|
359
|
-
constructor(
|
|
354
|
+
F = new WeakMap(), at = new WeakMap(), J = new WeakMap(), q = new WeakMap(), vt = new WeakMap(), wt = new WeakMap(), Wt = new WeakMap(), h(Ie, "NineTableVScrollBar");
|
|
355
|
+
let ce = Ie;
|
|
356
|
+
customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", ce);
|
|
357
|
+
var D, S, Q, P, H, V, tt, St, Ee, Ae, lt, Ot, Bt, zt, Et, At, Pt, Dt, Rt, Re, ct, qt, jt;
|
|
358
|
+
const _e = class _e {
|
|
359
|
+
constructor(i) {
|
|
360
360
|
d(this, D);
|
|
361
361
|
d(this, S);
|
|
362
362
|
d(this, Q);
|
|
@@ -364,15 +364,17 @@ const Ie = class Ie {
|
|
|
364
364
|
d(this, H, null);
|
|
365
365
|
d(this, V, null);
|
|
366
366
|
d(this, tt, 0);
|
|
367
|
-
d(this,
|
|
368
|
-
d(this, Se, !1);
|
|
367
|
+
d(this, St, 40);
|
|
369
368
|
d(this, Ee, !1);
|
|
370
|
-
d(this,
|
|
369
|
+
d(this, Ae, !1);
|
|
370
|
+
d(this, lt, !1);
|
|
371
|
+
// 🎯 고속 스크롤 스로틀링용 플래그
|
|
372
|
+
d(this, Ot, 3);
|
|
371
373
|
E(this, "refresh", /* @__PURE__ */ h(() => {
|
|
372
374
|
var e;
|
|
373
375
|
N.log("rowManager.refresh");
|
|
374
|
-
const
|
|
375
|
-
|
|
376
|
+
const i = t(this, S).querySelector(".ng-container-body .ng-part-body");
|
|
377
|
+
i && (t(this, Et).call(this), t(this, ct).call(this, i.scrollTop), (e = t(this, S).querySelector("nine-table-vscrollbar")) == null || e.refresh());
|
|
376
378
|
}, "refresh"));
|
|
377
379
|
E(this, "initialize", /* @__PURE__ */ h(() => {
|
|
378
380
|
N.log("rowManager.initialize"), p(this, Q, {
|
|
@@ -388,79 +390,81 @@ const Ie = class Ie {
|
|
|
388
390
|
const u = Array.from(l.querySelectorAll("tr")).map((g) => g.cloneNode(!0));
|
|
389
391
|
t(this, P).set(a, u);
|
|
390
392
|
});
|
|
391
|
-
const
|
|
392
|
-
if (
|
|
393
|
-
t(this,
|
|
393
|
+
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");
|
|
394
|
+
if (i) {
|
|
395
|
+
t(this, zt).call(this, i), t(this, Rt).call(this), t(this, Et).call(this), t(this, ct).call(this, i.scrollTop);
|
|
394
396
|
let a = !1;
|
|
395
397
|
const o = /* @__PURE__ */ h((c) => {
|
|
396
398
|
if (a) return;
|
|
397
399
|
a = !0;
|
|
398
400
|
const l = c.scrollTop, f = c.scrollLeft;
|
|
399
|
-
|
|
401
|
+
i && i.scrollTop !== l && (i.scrollTop = l), e && e.scrollTop !== l && (e.scrollTop = l), s && s.scrollTop !== l && (s.scrollTop = l), r && r.scrollLeft !== f && (r.scrollLeft = f), n && n.scrollLeft !== f && (n.scrollLeft = f), t(this, ct).call(this, l), a = !1;
|
|
400
402
|
}, "handleContainerScroll");
|
|
401
|
-
[
|
|
403
|
+
[i, e, s].forEach((c) => {
|
|
402
404
|
c && c.addEventListener("scroll", () => {
|
|
403
|
-
|
|
405
|
+
t(this, lt) || (p(this, lt, !0), requestAnimationFrame(() => {
|
|
406
|
+
o(c), p(this, lt, !1);
|
|
407
|
+
}));
|
|
404
408
|
});
|
|
405
409
|
});
|
|
406
410
|
}
|
|
407
411
|
}, "initialize"));
|
|
408
|
-
d(this,
|
|
412
|
+
d(this, Bt, /* @__PURE__ */ h((i, e) => {
|
|
409
413
|
N.log("rowManager.#renderRows");
|
|
410
414
|
const s = t(this, P).get(e);
|
|
411
415
|
if (!s || s.length === 0) return;
|
|
412
|
-
const
|
|
413
|
-
if (!
|
|
414
|
-
|
|
415
|
-
const n =
|
|
416
|
-
for (let o = 0; o < t(this,
|
|
416
|
+
const r = i.querySelector(".ng-part-body tbody.bindable-tbody");
|
|
417
|
+
if (!r) return;
|
|
418
|
+
r.querySelectorAll("tr:not(.nodata)").forEach((o) => o.remove());
|
|
419
|
+
const n = r.querySelector("tr.nodata"), a = document.createDocumentFragment();
|
|
420
|
+
for (let o = 0; o < t(this, St); o++)
|
|
417
421
|
s.forEach((c) => {
|
|
418
422
|
a.appendChild(c.cloneNode(!0));
|
|
419
423
|
});
|
|
420
|
-
n ? n.before(a) :
|
|
424
|
+
n ? n.before(a) : r.appendChild(a), e === ".ng-container-body" && (t(this, Q).firstTr = r.querySelector("tr:not(.nodata)"));
|
|
421
425
|
}, "#renderRows"));
|
|
422
|
-
d(this,
|
|
426
|
+
d(this, zt, /* @__PURE__ */ h((i) => {
|
|
423
427
|
if (N.log("rowManager.#measureAndCacheHeight"), t(this, H) !== null && t(this, H) > 0)
|
|
424
428
|
return t(this, H);
|
|
425
429
|
N.log("#measureAndCacheHeight");
|
|
426
430
|
const e = t(this, P).get(".ng-container-body");
|
|
427
431
|
if (!e || e.length === 0) return 24;
|
|
428
|
-
const s =
|
|
432
|
+
const s = i.querySelector("tbody.bindable-tbody");
|
|
429
433
|
if (!s) return 24;
|
|
430
434
|
s.querySelectorAll("tr:not(.nodata)").forEach((g) => g.remove());
|
|
431
|
-
const
|
|
435
|
+
const r = s.querySelector("tr.nodata"), n = document.createDocumentFragment();
|
|
432
436
|
e.forEach((g) => {
|
|
433
437
|
n.appendChild(g.cloneNode(!0));
|
|
434
|
-
}),
|
|
438
|
+
}), r ? r.before(n) : s.appendChild(n);
|
|
435
439
|
const a = t(this, S), o = a.style.display, c = a.style.visibility, l = a.style.position;
|
|
436
440
|
(o === "none" || window.getComputedStyle(a).display === "none") && (a.style.display = "block", a.style.visibility = "hidden", a.style.position = "absolute");
|
|
437
441
|
let f = 0;
|
|
438
442
|
const u = s.querySelectorAll("tr:not(.nodata)");
|
|
439
443
|
return u.forEach((g) => {
|
|
440
444
|
f += g.offsetHeight || g.getBoundingClientRect().height;
|
|
441
|
-
}), u.forEach((g) => g.remove()), a.style.display = o, a.style.visibility = c, a.style.position = l, p(this, H, f > 0 ? f : 24), t(this,
|
|
445
|
+
}), u.forEach((g) => g.remove()), a.style.display = o, a.style.visibility = c, a.style.position = l, p(this, H, f > 0 ? f : 24), t(this, At).call(this), t(this, H);
|
|
442
446
|
}, "#measureAndCacheHeight"));
|
|
443
|
-
d(this,
|
|
447
|
+
d(this, Et, /* @__PURE__ */ h(() => {
|
|
444
448
|
N.log("rowManager.#updateVirtualScrollHeight");
|
|
445
|
-
const e = (t(this, D).data.get() || []).length, s = t(this, H),
|
|
449
|
+
const e = (t(this, D).data.get() || []).length, s = t(this, H), r = e * s;
|
|
446
450
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((n) => {
|
|
447
451
|
const a = t(this, S).querySelector(n);
|
|
448
452
|
if (!a) return;
|
|
449
453
|
const o = a.querySelector(".ng-part-body .ng-virtual-spacer");
|
|
450
|
-
o && (o.style.height = `${
|
|
454
|
+
o && (o.style.height = `${r}px`);
|
|
451
455
|
});
|
|
452
456
|
}, "#updateVirtualScrollHeight"));
|
|
453
|
-
d(this,
|
|
457
|
+
d(this, At, /* @__PURE__ */ h(() => {
|
|
454
458
|
if (t(this, tt) > 0 && t(this, H) > 0) {
|
|
455
|
-
const
|
|
456
|
-
p(this,
|
|
459
|
+
const i = Math.ceil(t(this, tt) / t(this, H));
|
|
460
|
+
p(this, St, i + t(this, Ot));
|
|
457
461
|
}
|
|
458
462
|
}, "#updateRowCount"));
|
|
459
|
-
d(this,
|
|
463
|
+
d(this, Pt, /* @__PURE__ */ h(() => {
|
|
460
464
|
var o, c, l, f, u, g;
|
|
461
|
-
const
|
|
465
|
+
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");
|
|
462
466
|
if (e) {
|
|
463
|
-
const b =
|
|
467
|
+
const b = i ? Array.from(i.querySelectorAll("tbody tr")) : [], x = Array.from(e.querySelectorAll("tbody tr")), v = s ? Array.from(s.querySelectorAll("tbody tr")) : [], A = Math.max(b.length, x.length, v.length);
|
|
464
468
|
for (let m = 0; m < A; m++) {
|
|
465
469
|
const W = [
|
|
466
470
|
((o = b[m]) == null ? void 0 : o.getBoundingClientRect().height) || 0,
|
|
@@ -470,9 +474,9 @@ const Ie = class Ie {
|
|
|
470
474
|
C > 0 && (b[m] && (b[m].style.height = `${C}px`), x[m] && (x[m].style.height = `${C}px`), v[m] && (v[m].style.height = `${C}px`));
|
|
471
475
|
}
|
|
472
476
|
}
|
|
473
|
-
const
|
|
477
|
+
const r = t(this, S).querySelector(".ng-container-left .ng-part-footer table"), n = t(this, S).querySelector(".ng-container-body .ng-part-footer table"), a = t(this, S).querySelector(".ng-container-right .ng-part-footer table");
|
|
474
478
|
if (n) {
|
|
475
|
-
const b =
|
|
479
|
+
const b = r ? Array.from(r.querySelectorAll("tfoot tr")) : [], x = Array.from(n.querySelectorAll("tfoot tr")), v = a ? Array.from(a.querySelectorAll("tfoot tr")) : [], A = Math.max(b.length, x.length, v.length);
|
|
476
480
|
for (let m = 0; m < A; m++) {
|
|
477
481
|
const W = [
|
|
478
482
|
((f = b[m]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
|
|
@@ -483,67 +487,67 @@ const Ie = class Ie {
|
|
|
483
487
|
}
|
|
484
488
|
}
|
|
485
489
|
}, "#syncRowHeights"));
|
|
486
|
-
d(this,
|
|
487
|
-
!t(this, S) || !(t(this, S) instanceof HTMLElement) || (p(this, V, new ResizeObserver((
|
|
488
|
-
for (const e of
|
|
490
|
+
d(this, Dt, /* @__PURE__ */ h(() => {
|
|
491
|
+
!t(this, S) || !(t(this, S) instanceof HTMLElement) || (p(this, V, new ResizeObserver((i) => {
|
|
492
|
+
for (const e of i) {
|
|
489
493
|
const s = e.target;
|
|
490
494
|
if (!s.classList.contains("active")) continue;
|
|
491
|
-
const
|
|
492
|
-
if (
|
|
495
|
+
const r = e.contentRect.height;
|
|
496
|
+
if (r > 0) {
|
|
493
497
|
let n = 0;
|
|
494
498
|
const a = s.querySelector(".ng-part-header"), o = s.querySelector(".ng-part-footer");
|
|
495
499
|
a && (n += a.offsetHeight), o && (n += o.offsetHeight);
|
|
496
|
-
const c = Math.max(
|
|
497
|
-
t(this, tt) !== c && (p(this, tt, c), t(this,
|
|
500
|
+
const c = Math.max(r - n, 100);
|
|
501
|
+
t(this, tt) !== c && (p(this, tt, c), t(this, At).call(this), t(this, H) !== null && (t(this, Rt).call(this), this.refresh()));
|
|
498
502
|
}
|
|
499
503
|
}
|
|
500
504
|
})), t(this, V).observe(t(this, S)));
|
|
501
505
|
}, "#initResizeObserver"));
|
|
502
|
-
d(this,
|
|
503
|
-
N.log("rowManager.#renderAllContainers"), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((
|
|
504
|
-
const e = t(this, S).querySelector(
|
|
505
|
-
e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this,
|
|
506
|
-
}), t(this,
|
|
506
|
+
d(this, Rt, /* @__PURE__ */ h(() => {
|
|
507
|
+
N.log("rowManager.#renderAllContainers"), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
|
|
508
|
+
const e = t(this, S).querySelector(i);
|
|
509
|
+
e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Bt).call(this, e, i);
|
|
510
|
+
}), t(this, jt).call(this), t(this, Pt).call(this);
|
|
507
511
|
}, "#renderAllContainers"));
|
|
508
|
-
d(this,
|
|
512
|
+
d(this, Re, /* @__PURE__ */ h((i) => {
|
|
509
513
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((e) => {
|
|
510
514
|
var l;
|
|
511
515
|
const s = t(this, S).querySelector(e);
|
|
512
516
|
if (!s) return;
|
|
513
|
-
const
|
|
514
|
-
if (!
|
|
515
|
-
const n = Array.from(
|
|
517
|
+
const r = s.querySelector(".ng-part-body tbody.bindable-tbody");
|
|
518
|
+
if (!r) return;
|
|
519
|
+
const n = Array.from(r.querySelectorAll("tr:not(.nodata)")), a = ((l = t(this, P).get(e)) == null ? void 0 : l.length) || 1, c = (t(this, D).data.get() || []).length;
|
|
516
520
|
n.forEach((f, u) => {
|
|
517
|
-
const g =
|
|
521
|
+
const g = i + Math.floor(u / a);
|
|
518
522
|
if (g >= c) {
|
|
519
523
|
f.style.display = "none";
|
|
520
524
|
return;
|
|
521
525
|
}
|
|
522
526
|
const b = t(this, D).data.get(g);
|
|
523
|
-
f.style.display = "", t(this,
|
|
527
|
+
f.style.display = "", t(this, qt).call(this, f, b, g);
|
|
524
528
|
});
|
|
525
529
|
});
|
|
526
530
|
}, "#adjustBufferRows"));
|
|
527
|
-
d(this,
|
|
531
|
+
d(this, ct, /* @__PURE__ */ h((i) => {
|
|
528
532
|
var l, f;
|
|
529
533
|
const e = t(this, H);
|
|
530
534
|
if (!e || e <= 0) return;
|
|
531
|
-
const s = t(this, D).data.length,
|
|
535
|
+
const s = t(this, D).data.length, r = Math.max(0, Math.floor(i / e)), n = r * e, a = ((l = t(this, P).get(".ng-container-body")) == null ? void 0 : l.length) || 1, o = t(this, Q).firstTr, c = o && o.dataset.row !== void 0 ? parseInt(o.dataset.row, 10) : -1;
|
|
532
536
|
(f = t(this, Q)) == null || f.scrollTables.forEach((u) => {
|
|
533
537
|
u.style.transform = `translate3d(0, ${n}px, 0)`;
|
|
534
|
-
}), c !==
|
|
538
|
+
}), c !== r && [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((u) => {
|
|
535
539
|
const g = t(this, S).querySelector(u);
|
|
536
540
|
if (!g) return;
|
|
537
541
|
const b = g.querySelector(".ng-part-body tbody.bindable-tbody");
|
|
538
542
|
if (!b) return;
|
|
539
543
|
Array.from(b.querySelectorAll("tr:not(.nodata)")).forEach((v, A) => {
|
|
540
|
-
const m =
|
|
544
|
+
const m = r + Math.floor(A / a);
|
|
541
545
|
if (m >= s) {
|
|
542
546
|
v.style.display = "none";
|
|
543
547
|
return;
|
|
544
548
|
}
|
|
545
549
|
const W = t(this, D).data.get(m);
|
|
546
|
-
v.style.display = "", t(this,
|
|
550
|
+
v.style.display = "", t(this, qt).call(this, v, W, m);
|
|
547
551
|
});
|
|
548
552
|
});
|
|
549
553
|
}, "#handleScroll"));
|
|
@@ -561,55 +565,55 @@ const Ie = class Ie {
|
|
|
561
565
|
cell.dataset.row = dataIndex;
|
|
562
566
|
});
|
|
563
567
|
}; */
|
|
564
|
-
d(this,
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
const a = Array.from(
|
|
568
|
+
d(this, qt, /* @__PURE__ */ h((i, e, s) => {
|
|
569
|
+
i.dataset.row = s, i.data = e, Array.from(i.cells).forEach((r, n) => {
|
|
570
|
+
r.dataset.row = s;
|
|
571
|
+
const a = Array.from(r.children).find((o) => o.tagName.toLowerCase().startsWith("cell-") || typeof o.refresh == "function");
|
|
568
572
|
a && typeof a.refresh == "function" && a.refresh();
|
|
569
573
|
});
|
|
570
574
|
}, "#bindRowData"));
|
|
571
|
-
d(this,
|
|
575
|
+
d(this, jt, /* @__PURE__ */ h(() => {
|
|
572
576
|
var c, l, f;
|
|
573
577
|
N.log("rowManager.#syncHeaderHeights");
|
|
574
|
-
const
|
|
578
|
+
const i = t(this, S).querySelector(".ng-container-left .ng-part-header table"), e = t(this, S).querySelector(".ng-container-body .ng-part-header table"), s = t(this, S).querySelector(".ng-container-right .ng-part-header table");
|
|
575
579
|
if (!e) return;
|
|
576
|
-
const
|
|
580
|
+
const r = i ? Array.from(i.querySelectorAll("tr")) : [], n = Array.from(e.querySelectorAll("tr")), a = s ? Array.from(s.querySelectorAll("tr")) : [], o = Math.max(r.length, n.length, a.length);
|
|
577
581
|
for (let u = 0; u < o; u++) {
|
|
578
582
|
const g = [
|
|
579
|
-
((c =
|
|
583
|
+
((c = r[u]) == null ? void 0 : c.getBoundingClientRect().height) || 0,
|
|
580
584
|
((l = n[u]) == null ? void 0 : l.getBoundingClientRect().height) || 0,
|
|
581
585
|
((f = a[u]) == null ? void 0 : f.getBoundingClientRect().height) || 0
|
|
582
586
|
], b = Math.max(...g);
|
|
583
|
-
b > 0 && (
|
|
587
|
+
b > 0 && (r[u] && (r[u].style.height = `${b}px`), n[u] && (n[u].style.height = `${b}px`), a[u] && (a[u].style.height = `${b}px`));
|
|
584
588
|
}
|
|
585
589
|
}, "#syncHeaderHeights"));
|
|
586
590
|
E(this, "destroy", /* @__PURE__ */ h(() => {
|
|
587
591
|
t(this, V) && (t(this, V).disconnect(), p(this, V, null));
|
|
588
592
|
}, "destroy"));
|
|
589
|
-
p(this, D,
|
|
593
|
+
p(this, D, i.getRootNode().host), p(this, S, i), t(this, Dt).call(this);
|
|
590
594
|
}
|
|
591
595
|
getRowHeight() {
|
|
592
596
|
return t(this, H);
|
|
593
597
|
}
|
|
594
|
-
templateLength(
|
|
598
|
+
templateLength(i = ".ng-container-body") {
|
|
595
599
|
var e;
|
|
596
|
-
return ((e = t(this, P).get(
|
|
600
|
+
return ((e = t(this, P).get(i)) == null ? void 0 : e.length) || 1;
|
|
597
601
|
}
|
|
598
602
|
};
|
|
599
|
-
D = new WeakMap(), S = new WeakMap(), Q = new WeakMap(), P = new WeakMap(), H = new WeakMap(), V = new WeakMap(), tt = new WeakMap(),
|
|
600
|
-
let
|
|
601
|
-
const
|
|
603
|
+
D = new WeakMap(), S = new WeakMap(), Q = new WeakMap(), P = new WeakMap(), H = new WeakMap(), V = new WeakMap(), tt = new WeakMap(), St = new WeakMap(), Ee = new WeakMap(), Ae = new WeakMap(), lt = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), zt = new WeakMap(), Et = new WeakMap(), At = new WeakMap(), Pt = new WeakMap(), Dt = new WeakMap(), Rt = new WeakMap(), Re = new WeakMap(), ct = new WeakMap(), qt = new WeakMap(), jt = new WeakMap(), h(_e, "RowManager");
|
|
604
|
+
let he = _e;
|
|
605
|
+
const Ft = class Ft {
|
|
602
606
|
/**
|
|
603
607
|
* 🎯 레이아웃 내의 여러 rawTables 배열을 일괄로 받아 단일 마스터 템플릿으로 사전 컴파일합니다.
|
|
604
608
|
*/
|
|
605
|
-
static compileAll(
|
|
606
|
-
return Array.isArray(
|
|
609
|
+
static compileAll(i) {
|
|
610
|
+
return Array.isArray(i) ? i.map((e) => Ft.compile(e)) : [];
|
|
607
611
|
}
|
|
608
612
|
/**
|
|
609
613
|
* 🎯 단일 원본 테이블을 받아 기본 구조 보정 및 2차원 격자 인덱스 사전 부여 완료된 마스터 테이블 반환
|
|
610
614
|
*/
|
|
611
|
-
static compile(
|
|
612
|
-
if (!
|
|
615
|
+
static compile(i) {
|
|
616
|
+
if (!i) return null;
|
|
613
617
|
const e = /* @__PURE__ */ h((o) => {
|
|
614
618
|
o.querySelectorAll("tbody td, tbody th, tfoot td, tfoot th").forEach((l) => {
|
|
615
619
|
const f = l.getAttribute("cell-type") || "renderer";
|
|
@@ -633,7 +637,7 @@ const jt = class jt {
|
|
|
633
637
|
l ? l.after(c) : o.prepend(c);
|
|
634
638
|
}
|
|
635
639
|
o.classList.add("nine-table-element"), o.style.display = "table";
|
|
636
|
-
}, "ensureTableStructure"),
|
|
640
|
+
}, "ensureTableStructure"), r = /* @__PURE__ */ h((o, c) => {
|
|
637
641
|
const l = Array.from(o.querySelectorAll(c + " tr")), f = Array.from(o.querySelectorAll(c + " th," + c + " td")), u = l.length;
|
|
638
642
|
if (u === 0 || f.length === 0) return;
|
|
639
643
|
let g = 0;
|
|
@@ -652,8 +656,8 @@ const jt = class jt {
|
|
|
652
656
|
}
|
|
653
657
|
const W = m.rowSpan || 1, C = m.colSpan || 1;
|
|
654
658
|
for (let B = 0; B < W; B++)
|
|
655
|
-
for (let
|
|
656
|
-
v + B < u && A +
|
|
659
|
+
for (let yt = 0; yt < C; yt++)
|
|
660
|
+
v + B < u && A + yt < g && (b[v + B][A + yt] = B === 0 && yt === 0 ? "1" : "0");
|
|
657
661
|
});
|
|
658
662
|
}), l.forEach((x) => {
|
|
659
663
|
const v = x.sectionRowIndex;
|
|
@@ -665,8 +669,8 @@ const jt = class jt {
|
|
|
665
669
|
}
|
|
666
670
|
});
|
|
667
671
|
});
|
|
668
|
-
}, "resetColIndex"), n =
|
|
669
|
-
return s(n), e(n),
|
|
672
|
+
}, "resetColIndex"), n = i.cloneNode(!0);
|
|
673
|
+
return s(n), e(n), r(n, "thead"), r(n, "tbody"), r(n, "tfoot"), Array.from(n.querySelectorAll("colgroup col")).forEach((o, c) => {
|
|
670
674
|
const l = o.getAttribute("fixed");
|
|
671
675
|
l && n.querySelectorAll(`thead [data-col="${c}"], tbody [data-col="${c}"], tfoot [data-col="${c}"]`).forEach((f) => {
|
|
672
676
|
f.setAttribute("fixed", l);
|
|
@@ -675,64 +679,64 @@ const jt = class jt {
|
|
|
675
679
|
}
|
|
676
680
|
// 🎯 [추가] td/th에 선언된 cell-type 속성을 읽어 커스텀 태그로 자동 감싸기
|
|
677
681
|
};
|
|
678
|
-
h(
|
|
679
|
-
let
|
|
680
|
-
var
|
|
681
|
-
const
|
|
682
|
+
h(Ft, "TableCompiler");
|
|
683
|
+
let de = Ft;
|
|
684
|
+
var Vt, et, st, Yt, Ut, ht, Xt, Kt;
|
|
685
|
+
const mt = class mt extends HTMLElement {
|
|
682
686
|
constructor() {
|
|
683
687
|
super();
|
|
684
|
-
d(this,
|
|
688
|
+
d(this, Vt);
|
|
685
689
|
d(this, et, null);
|
|
686
690
|
d(this, st);
|
|
687
691
|
E(this, "invalidate", /* @__PURE__ */ h(() => {
|
|
688
692
|
t(this, st).refresh();
|
|
689
693
|
}, "invalidate"));
|
|
690
|
-
d(this,
|
|
694
|
+
d(this, Yt, /* @__PURE__ */ h(() => {
|
|
691
695
|
[
|
|
692
696
|
{ selector: ".ng-container-body", type: null },
|
|
693
697
|
{ selector: ".ng-container-left", type: "left" },
|
|
694
698
|
{ selector: ".ng-container-right", type: "right" }
|
|
695
|
-
].forEach(({ selector: s, type:
|
|
699
|
+
].forEach(({ selector: s, type: r }) => {
|
|
696
700
|
const n = this.querySelector(s);
|
|
697
701
|
if (!n) return;
|
|
698
702
|
n.innerHTML = "";
|
|
699
703
|
const a = document.createElement("div");
|
|
700
|
-
a.className = "ng-part-header", a.appendChild(t(this,
|
|
704
|
+
a.className = "ng-part-header", a.appendChild(t(this, ht).call(this, t(this, et), r, "header"));
|
|
701
705
|
const o = document.createElement("div");
|
|
702
706
|
o.className = "ng-part-body";
|
|
703
707
|
const c = document.createElement("div");
|
|
704
|
-
c.className = "ng-scroll-content", c.style.position = "relative", c.style.width = "100%", c.appendChild(t(this,
|
|
708
|
+
c.className = "ng-scroll-content", c.style.position = "relative", c.style.width = "100%", c.appendChild(t(this, ht).call(this, t(this, et), r, "body"));
|
|
705
709
|
const l = document.createElement("div");
|
|
706
710
|
l.className = "ng-virtual-spacer", l.style.width = "100%", l.style.pointerEvents = "none", c.appendChild(l), o.appendChild(c);
|
|
707
711
|
const f = document.createElement("div");
|
|
708
|
-
f.className = "ng-part-footer", f.appendChild(t(this,
|
|
712
|
+
f.className = "ng-part-footer", f.appendChild(t(this, ht).call(this, t(this, et), r, "footer")), n.appendChild(a), n.appendChild(o), n.appendChild(f);
|
|
709
713
|
});
|
|
710
714
|
}, "#renderSplitContainers"));
|
|
711
|
-
d(this,
|
|
715
|
+
d(this, Ut, /* @__PURE__ */ h(() => {
|
|
712
716
|
["left", "right", "body"].forEach((e) => {
|
|
713
|
-
const s = this.querySelector(`.ng-container-${e}`),
|
|
714
|
-
if (!s || !
|
|
717
|
+
const s = this.querySelector(`.ng-container-${e}`), r = s == null ? void 0 : s.querySelectorAll("table");
|
|
718
|
+
if (!s || !r || r.length === 0) return;
|
|
715
719
|
let n = 0;
|
|
716
|
-
|
|
720
|
+
r[0].querySelectorAll("col").forEach((a) => {
|
|
717
721
|
const o = parseInt(a.getAttribute("width"), 10);
|
|
718
722
|
isNaN(n) || (n += o);
|
|
719
723
|
}), e === "body" ? s.style.flex = "1" : (s.style.flex = `0 0 ${n}px`, s.style.width = `${n}px`);
|
|
720
724
|
});
|
|
721
725
|
}, "#updateContainerWidths"));
|
|
722
726
|
E(this, "generate", /* @__PURE__ */ h((e) => {
|
|
723
|
-
e && (p(this, et,
|
|
727
|
+
e && (p(this, et, de.compile(e)), t(this, Yt).call(this), t(this, Ut).call(this), t(this, st).initialize(), setTimeout(() => {
|
|
724
728
|
var s;
|
|
725
729
|
(s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
|
|
726
730
|
}, 0));
|
|
727
731
|
}, "generate"));
|
|
728
|
-
d(this,
|
|
732
|
+
d(this, ht, /* @__PURE__ */ h((e, s, r) => {
|
|
729
733
|
const n = e.cloneNode(!0), a = n.querySelector("thead"), o = n.querySelector("tbody"), c = n.querySelector("tfoot");
|
|
730
|
-
if (
|
|
734
|
+
if (r === "header") {
|
|
731
735
|
if (o && o.remove(), c && c.remove(), e.querySelector("tbody")) {
|
|
732
736
|
const f = document.createElement("tbody");
|
|
733
737
|
f.className = "fixed-tbody", n.appendChild(f);
|
|
734
738
|
}
|
|
735
|
-
} else
|
|
739
|
+
} else r === "body" ? (a && a.remove(), c && c.remove(), o && (o.className = "bindable-tbody")) : r === "footer" && (a && a.remove(), o && o.remove());
|
|
736
740
|
return s === "left" ? n.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach((l) => {
|
|
737
741
|
l.getAttribute("fixed") !== "left" && l.remove();
|
|
738
742
|
}) : s === "right" ? n.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach((l) => {
|
|
@@ -750,11 +754,11 @@ const yt = class yt extends HTMLElement {
|
|
|
750
754
|
const s = this.querySelector(".ng-container-body .ng-part-body");
|
|
751
755
|
s && (s.scrollTop = e);
|
|
752
756
|
}, "scrollToY"));
|
|
753
|
-
d(this, Ut, /* @__PURE__ */ h(() => {
|
|
754
|
-
t(this, Xt).call(this);
|
|
755
|
-
}, "#init"));
|
|
756
757
|
d(this, Xt, /* @__PURE__ */ h(() => {
|
|
757
|
-
|
|
758
|
+
t(this, Kt).call(this);
|
|
759
|
+
}, "#init"));
|
|
760
|
+
d(this, Kt, /* @__PURE__ */ h(() => {
|
|
761
|
+
const e = mt.SCROLLBAR_SIZE;
|
|
758
762
|
this.innerHTML = `
|
|
759
763
|
<style>
|
|
760
764
|
nine-table-sheet {
|
|
@@ -908,32 +912,32 @@ const yt = class yt extends HTMLElement {
|
|
|
908
912
|
</div>
|
|
909
913
|
`;
|
|
910
914
|
}, "#render"));
|
|
911
|
-
p(this, st, new
|
|
915
|
+
p(this, st, new he(this)), p(this, Vt, this.getRootNode().host);
|
|
912
916
|
}
|
|
913
917
|
connectedCallback() {
|
|
914
|
-
t(this,
|
|
918
|
+
t(this, Xt).call(this);
|
|
915
919
|
}
|
|
916
920
|
disconnectedCallback() {
|
|
917
921
|
this.innerHTML = "", N.log("NineTableSheet destroyed.");
|
|
918
922
|
}
|
|
919
923
|
};
|
|
920
|
-
|
|
921
|
-
let
|
|
922
|
-
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet",
|
|
923
|
-
var
|
|
924
|
-
const
|
|
924
|
+
Vt = new WeakMap(), et = new WeakMap(), st = new WeakMap(), Yt = new WeakMap(), Ut = new WeakMap(), ht = new WeakMap(), Xt = new WeakMap(), Kt = new WeakMap(), h(mt, "NineTableSheet"), E(mt, "SCROLLBAR_SIZE", 16);
|
|
925
|
+
let It = mt;
|
|
926
|
+
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", It);
|
|
927
|
+
var Zt, Tt;
|
|
928
|
+
const Ne = class Ne extends HTMLElement {
|
|
925
929
|
constructor() {
|
|
926
930
|
super();
|
|
927
|
-
d(this,
|
|
931
|
+
d(this, Zt, /* @__PURE__ */ h(() => {
|
|
928
932
|
var e;
|
|
929
933
|
(e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (s) => {
|
|
930
934
|
var a;
|
|
931
|
-
const
|
|
932
|
-
t(this,
|
|
933
|
-
}), t(this,
|
|
935
|
+
const r = s.ctrlKey || s.metaKey || s.shiftKey, n = parseInt((a = s.target.closest(".nine-tab-item")) == null ? void 0 : a.dataset.index, 10);
|
|
936
|
+
t(this, Tt).call(this, n, r);
|
|
937
|
+
}), t(this, Tt).call(this, 0, !1);
|
|
934
938
|
}, "#init"));
|
|
935
|
-
d(this,
|
|
936
|
-
const
|
|
939
|
+
d(this, Tt, /* @__PURE__ */ h((e, s = !1) => {
|
|
940
|
+
const r = /* @__PURE__ */ h(() => {
|
|
937
941
|
const f = Array.from(this.querySelectorAll("nine-table-sheet"));
|
|
938
942
|
Array.from(this.querySelectorAll("nine-splitter")).forEach((b) => b.style.setProperty("display", "none"));
|
|
939
943
|
const g = f.filter((b) => b.classList.contains("active"));
|
|
@@ -961,36 +965,36 @@ const _e = class _e extends HTMLElement {
|
|
|
961
965
|
const l = a.querySelectorAll("nine-table-sheet.active");
|
|
962
966
|
l == null || l.forEach((f) => {
|
|
963
967
|
f.style.flex = l.length > 1 ? "1 1 0%" : "1 1 100%";
|
|
964
|
-
}),
|
|
968
|
+
}), r();
|
|
965
969
|
}, "#switchSheet"));
|
|
966
970
|
}
|
|
967
971
|
connectedCallback() {
|
|
968
|
-
t(this,
|
|
972
|
+
t(this, Zt).call(this);
|
|
969
973
|
}
|
|
970
974
|
};
|
|
971
|
-
|
|
972
|
-
let
|
|
973
|
-
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets",
|
|
974
|
-
var M,
|
|
975
|
-
const
|
|
976
|
-
constructor(
|
|
975
|
+
Zt = new WeakMap(), Tt = new WeakMap(), h(Ne, "NineTableSheets");
|
|
976
|
+
let fe = Ne;
|
|
977
|
+
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", fe);
|
|
978
|
+
var M, Gt, kt, Jt;
|
|
979
|
+
const We = class We {
|
|
980
|
+
constructor(i) {
|
|
977
981
|
d(this, M);
|
|
978
|
-
d(this,
|
|
979
|
-
t(this,
|
|
980
|
-
for (let e of
|
|
981
|
-
t(this, M).getAttribute("auto-height") === "true" && t(this,
|
|
982
|
+
d(this, Gt, /* @__PURE__ */ h(() => {
|
|
983
|
+
t(this, Jt).call(this), new ResizeObserver((i) => {
|
|
984
|
+
for (let e of i)
|
|
985
|
+
t(this, M).getAttribute("auto-height") === "true" && t(this, kt).call(this);
|
|
982
986
|
}).observe(t(this, M));
|
|
983
987
|
}, "#init"));
|
|
984
|
-
d(this,
|
|
988
|
+
d(this, kt, /* @__PURE__ */ h(() => {
|
|
985
989
|
var c, l;
|
|
986
|
-
const
|
|
987
|
-
if (
|
|
988
|
-
const e = parseInt(t(this, M).getAttribute("max-display-row"), 10) || 10, s = Math.max(...
|
|
990
|
+
const i = Array.from(t(this, M).shadowRoot.querySelectorAll("nine-table-sheet.active"));
|
|
991
|
+
if (i.length === 0) return;
|
|
992
|
+
const e = parseInt(t(this, M).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), r = (c = t(this, M).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, n = (l = t(this, M).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, a = It.SCROLLBAR_SIZE, o = e * s + r + n + a;
|
|
989
993
|
t(this, M).style.height = `${o}px`;
|
|
990
994
|
}, "#applyAutoHeight"));
|
|
991
|
-
d(this,
|
|
992
|
-
const e = Array.from(t(this, M).children).filter((c) => c.tagName === "TABLE"), s = t(this, M).getAttribute("auto-height") === "true",
|
|
993
|
-
const u = `<nine-table-sheet class="${l === 0 ? "active" : ""}" data-index="${l}"></nine-table-sheet>`, g = l <
|
|
995
|
+
d(this, Jt, /* @__PURE__ */ h(() => {
|
|
996
|
+
const e = Array.from(t(this, M).children).filter((c) => c.tagName === "TABLE"), s = t(this, M).getAttribute("auto-height") === "true", r = e.length, n = e.map((c, l) => {
|
|
997
|
+
const u = `<nine-table-sheet class="${l === 0 ? "active" : ""}" data-index="${l}"></nine-table-sheet>`, g = l < r - 1 ? `<nine-splitter class="h" data-split-index="${l}"></nine-splitter>` : "";
|
|
994
998
|
return u + g;
|
|
995
999
|
}).join(""), a = e.map((c, l) => `<div class="nine-tab-item ${l === 0 ? "active" : ""}" data-index="${l}">Sheet ${l + 1}</div>`).join("");
|
|
996
1000
|
t(this, M).shadowRoot.innerHTML = `
|
|
@@ -1087,74 +1091,74 @@ const Ne = class Ne {
|
|
|
1087
1091
|
const o = t(this, M).shadowRoot.querySelectorAll("nine-table-sheet");
|
|
1088
1092
|
o == null || o.forEach((c, l) => {
|
|
1089
1093
|
e[l] && setTimeout(() => {
|
|
1090
|
-
c.generate(e[l]), s && t(this,
|
|
1094
|
+
c.generate(e[l]), s && t(this, kt).call(this);
|
|
1091
1095
|
});
|
|
1092
1096
|
});
|
|
1093
1097
|
}, "#render"));
|
|
1094
|
-
p(this, M,
|
|
1098
|
+
p(this, M, i), t(this, Gt).call(this);
|
|
1095
1099
|
}
|
|
1096
1100
|
};
|
|
1097
|
-
M = new WeakMap(),
|
|
1098
|
-
let
|
|
1099
|
-
var
|
|
1100
|
-
const
|
|
1101
|
-
constructor(
|
|
1102
|
-
d(this,
|
|
1103
|
-
d(this,
|
|
1104
|
-
E(this, "count", /* @__PURE__ */ h(() => t(this,
|
|
1105
|
-
p(this,
|
|
1101
|
+
M = new WeakMap(), Gt = new WeakMap(), kt = new WeakMap(), Jt = new WeakMap(), h(We, "LayoutManager");
|
|
1102
|
+
let ue = We;
|
|
1103
|
+
var Ct, dt;
|
|
1104
|
+
const Oe = class Oe {
|
|
1105
|
+
constructor(i) {
|
|
1106
|
+
d(this, Ct);
|
|
1107
|
+
d(this, dt, -1);
|
|
1108
|
+
E(this, "count", /* @__PURE__ */ h(() => t(this, Ct).rawRecords.length, "count"));
|
|
1109
|
+
p(this, Ct, i);
|
|
1106
1110
|
}
|
|
1107
1111
|
get at() {
|
|
1108
|
-
return t(this,
|
|
1112
|
+
return t(this, dt);
|
|
1109
1113
|
}
|
|
1110
|
-
set at(
|
|
1111
|
-
p(this,
|
|
1114
|
+
set at(i) {
|
|
1115
|
+
p(this, dt, parseInt(i, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, dt)}"]`) && setTimeout(() => {
|
|
1112
1116
|
});
|
|
1113
1117
|
}
|
|
1114
1118
|
};
|
|
1115
|
-
|
|
1116
|
-
let
|
|
1117
|
-
var I, T, _,
|
|
1119
|
+
Ct = new WeakMap(), dt = new WeakMap(), h(Oe, "ngRow");
|
|
1120
|
+
let ge = Oe;
|
|
1121
|
+
var I, T, _, ft, Qt, Y, te, it, Lt, ee, se, ut;
|
|
1118
1122
|
const O = class O {
|
|
1119
|
-
constructor(
|
|
1123
|
+
constructor(i, e) {
|
|
1120
1124
|
d(this, I);
|
|
1121
1125
|
d(this, T);
|
|
1122
1126
|
d(this, _, []);
|
|
1123
|
-
d(this,
|
|
1124
|
-
d(this,
|
|
1127
|
+
d(this, ft, []);
|
|
1128
|
+
d(this, Qt, 0);
|
|
1125
1129
|
d(this, Y, []);
|
|
1126
|
-
d(this,
|
|
1130
|
+
d(this, te, /* @__PURE__ */ h(() => {
|
|
1127
1131
|
p(this, Y, []);
|
|
1128
|
-
const
|
|
1129
|
-
Array.from(
|
|
1132
|
+
const i = t(this, I).template || [];
|
|
1133
|
+
Array.from(i).forEach((e) => {
|
|
1130
1134
|
var s;
|
|
1131
1135
|
t(this, Y).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
|
|
1132
1136
|
}), (t(this, T).rawRecords || []).forEach((e) => {
|
|
1133
|
-
e.__ng || (e.__ng = t(this,
|
|
1137
|
+
e.__ng || (e.__ng = t(this, Lt).call(this)), e.__ng.height = t(this, Y).slice();
|
|
1134
1138
|
});
|
|
1135
1139
|
}, "#initialize"));
|
|
1136
|
-
d(this,
|
|
1137
|
-
t(this, I).shadowRoot.querySelectorAll("nine-table-sheet").forEach((
|
|
1138
|
-
|
|
1140
|
+
d(this, it, /* @__PURE__ */ h(() => {
|
|
1141
|
+
t(this, I).shadowRoot.querySelectorAll("nine-table-sheet").forEach((i) => {
|
|
1142
|
+
i.invalidate();
|
|
1139
1143
|
});
|
|
1140
1144
|
}, "#invalidate"));
|
|
1141
|
-
E(this, "get", /* @__PURE__ */ h((
|
|
1145
|
+
E(this, "get", /* @__PURE__ */ h((i, e) => {
|
|
1142
1146
|
var n;
|
|
1143
1147
|
const s = this.getValidData();
|
|
1144
1148
|
if (!s || s.length <= 0) return;
|
|
1145
|
-
if (
|
|
1146
|
-
if (
|
|
1147
|
-
const
|
|
1149
|
+
if (i == null) return t(this, ut).call(this, s);
|
|
1150
|
+
if (i < 0 || i >= s.length) return null;
|
|
1151
|
+
const r = typeof ((n = t(this, I).fields) == null ? void 0 : n.get) == "function" ? t(this, I).fields.get() : [];
|
|
1148
1152
|
if (e != null) {
|
|
1149
|
-
const a =
|
|
1150
|
-
return a >= 0 ? s[
|
|
1153
|
+
const a = r.indexOf(e);
|
|
1154
|
+
return a >= 0 ? s[i].v[a] : null;
|
|
1151
1155
|
}
|
|
1152
|
-
return t(this,
|
|
1156
|
+
return t(this, ut).call(this, s[i]);
|
|
1153
1157
|
}, "get"));
|
|
1154
|
-
E(this, "set", /* @__PURE__ */ h((
|
|
1155
|
-
this.clear(), this.add(
|
|
1158
|
+
E(this, "set", /* @__PURE__ */ h((i) => {
|
|
1159
|
+
this.clear(), this.add(i, !1), t(this, it).call(this);
|
|
1156
1160
|
}, "set"));
|
|
1157
|
-
d(this,
|
|
1161
|
+
d(this, Lt, /* @__PURE__ */ h(() => ({
|
|
1158
1162
|
rowState: O.ROW_STATE.EMPTY,
|
|
1159
1163
|
deleted: !1,
|
|
1160
1164
|
filtered: !1,
|
|
@@ -1164,87 +1168,87 @@ const O = class O {
|
|
|
1164
1168
|
_: [0, 0, 0, 0, O.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, Y).slice(), -1, {}, {}]
|
|
1165
1169
|
}), "#getDefaultMeta"));
|
|
1166
1170
|
E(this, "reset", /* @__PURE__ */ h(() => {
|
|
1167
|
-
p(this, _, []), p(this,
|
|
1171
|
+
p(this, _, []), p(this, ft, []), t(this, it).call(this);
|
|
1168
1172
|
}, "reset"));
|
|
1169
1173
|
E(this, "clear", /* @__PURE__ */ h(() => {
|
|
1170
|
-
var r;
|
|
1171
|
-
t(this, T).rawRecords = [], p(this, _, []), p(this, dt, []), (r = t(this, T).viewRecords) != null && r.reset && t(this, T).viewRecords.reset();
|
|
1172
|
-
}, "clear"));
|
|
1173
|
-
d(this, te, /* @__PURE__ */ h((r) => {
|
|
1174
1174
|
var i;
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1175
|
+
t(this, T).rawRecords = [], p(this, _, []), p(this, ft, []), (i = t(this, T).viewRecords) != null && i.reset && t(this, T).viewRecords.reset();
|
|
1176
|
+
}, "clear"));
|
|
1177
|
+
d(this, ee, /* @__PURE__ */ h((i) => {
|
|
1178
|
+
var r;
|
|
1179
|
+
Array.isArray(i) || (i = [i]);
|
|
1180
|
+
const e = typeof ((r = t(this, I).fields) == null ? void 0 : r.get) == "function" ? t(this, I).fields.get() : Object.keys(i[0] || {}), s = [];
|
|
1181
|
+
return i.forEach((n) => {
|
|
1178
1182
|
const a = { v: [] };
|
|
1179
1183
|
e.forEach((o) => {
|
|
1180
1184
|
a.v.push(n[o] !== void 0 && n[o] !== null ? n[o] : "");
|
|
1181
1185
|
}), s.push(a);
|
|
1182
1186
|
}), s;
|
|
1183
1187
|
}, "#json2Array"));
|
|
1184
|
-
d(this,
|
|
1185
|
-
e.__ng = t(this,
|
|
1186
|
-
}),
|
|
1187
|
-
E(this, "add", /* @__PURE__ */ h((
|
|
1188
|
-
|
|
1189
|
-
const s = t(this,
|
|
1190
|
-
t(this, T).rawRecords = t(this, T).rawRecords.concat(t(this,
|
|
1191
|
-
const
|
|
1188
|
+
d(this, se, /* @__PURE__ */ h((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
|
|
1189
|
+
e.__ng = t(this, Lt).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = O.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
|
|
1190
|
+
}), i), "#defaultInsert"));
|
|
1191
|
+
E(this, "add", /* @__PURE__ */ h((i, e = !0) => {
|
|
1192
|
+
i === void 0 && (i = {});
|
|
1193
|
+
const s = t(this, ee).call(this, i);
|
|
1194
|
+
t(this, T).rawRecords = t(this, T).rawRecords.concat(t(this, se).call(this, s)), this.resetRecords();
|
|
1195
|
+
const r = this.count() - 1;
|
|
1192
1196
|
return e || s.forEach((n, a) => {
|
|
1193
|
-
const o = t(this, T).rawRecords[
|
|
1197
|
+
const o = t(this, T).rawRecords[r - a];
|
|
1194
1198
|
o && (o.__ng.rowState = O.ROW_STATE.EMPTY);
|
|
1195
|
-
}), t(this,
|
|
1199
|
+
}), t(this, it).call(this), r;
|
|
1196
1200
|
}, "add"));
|
|
1197
|
-
E(this, "delete", /* @__PURE__ */ h((
|
|
1201
|
+
E(this, "delete", /* @__PURE__ */ h((i) => {
|
|
1198
1202
|
let e = [];
|
|
1199
|
-
Array.isArray(
|
|
1203
|
+
Array.isArray(i) ? e = i : typeof i > "u" ? e = [t(this, T).host.row.at] : e = [parseInt(i, 10)], e.sort((s, r) => r - s).forEach((s) => {
|
|
1200
1204
|
if (t(this, _)[s]) {
|
|
1201
|
-
const
|
|
1202
|
-
t(this, _)[s].__ng.rowState === O.ROW_STATE.INSERT ? t(this, T).rawRecords = t(this, T).rawRecords.filter((n) => n.__ng.rowid !==
|
|
1203
|
-
n.__ng.rowid ===
|
|
1205
|
+
const r = t(this, _)[s].__ng.rowid;
|
|
1206
|
+
t(this, _)[s].__ng.rowState === O.ROW_STATE.INSERT ? t(this, T).rawRecords = t(this, T).rawRecords.filter((n) => n.__ng.rowid !== r) : t(this, T).rawRecords.forEach((n) => {
|
|
1207
|
+
n.__ng.rowid === r && (n.__ng.deleted = !0, n.__ng.rowState = O.ROW_STATE.DELETE);
|
|
1204
1208
|
});
|
|
1205
1209
|
}
|
|
1206
|
-
}), this.resetRecords(), t(this,
|
|
1210
|
+
}), this.resetRecords(), t(this, it).call(this);
|
|
1207
1211
|
}, "delete"));
|
|
1208
|
-
E(this, "setValue", /* @__PURE__ */ h((
|
|
1212
|
+
E(this, "setValue", /* @__PURE__ */ h((i, e, s) => {
|
|
1209
1213
|
var c;
|
|
1210
|
-
|
|
1214
|
+
i = parseInt(i, 10);
|
|
1211
1215
|
const n = (typeof ((c = t(this, I).fields) == null ? void 0 : c.get) == "function" ? t(this, I).fields.get() : []).indexOf(e);
|
|
1212
1216
|
if (n < 0) return;
|
|
1213
|
-
const a = this.getValidData()[
|
|
1217
|
+
const a = this.getValidData()[i];
|
|
1214
1218
|
if (!a) return;
|
|
1215
1219
|
const o = a.v[n];
|
|
1216
1220
|
o !== s && a.__ng.rowState !== O.ROW_STATE.INSERT && (a.__ng.o.hasOwnProperty(e) || (a.__ng.o[e] = o), a.__ng.rowState = O.ROW_STATE.UPDATE), a.v[n] = s;
|
|
1217
1221
|
}, "setValue"));
|
|
1218
1222
|
E(this, "resetRecords", /* @__PURE__ */ h(() => {
|
|
1219
|
-
p(this,
|
|
1220
|
-
|
|
1221
|
-
}), t(this, _).forEach((
|
|
1222
|
-
|
|
1223
|
+
p(this, ft, t(this, T).rawRecords.filter((i) => !i.__ng.deleted)), p(this, _, t(this, T).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), t(this, T).rawRecords.forEach((i, e) => {
|
|
1224
|
+
i.__ng.rowidx = e;
|
|
1225
|
+
}), t(this, _).forEach((i, e) => {
|
|
1226
|
+
i.__ng.i = e;
|
|
1223
1227
|
});
|
|
1224
1228
|
}, "resetRecords"));
|
|
1225
1229
|
E(this, "getValidData", /* @__PURE__ */ h(() => (t(this, _).length === 0 && t(this, T).rawRecords.length > 0 && this.resetRecords(), t(this, _)), "getValidData"));
|
|
1226
|
-
d(this,
|
|
1230
|
+
d(this, ut, /* @__PURE__ */ h((i) => {
|
|
1227
1231
|
var a;
|
|
1228
|
-
if (!
|
|
1229
|
-
const e = !Array.isArray(
|
|
1232
|
+
if (!i) return i;
|
|
1233
|
+
const e = !Array.isArray(i), s = e ? [i] : i, r = typeof ((a = t(this, I).fields) == null ? void 0 : a.get) == "function" ? t(this, I).fields.get() : [], n = s.filter((o) => !o.__ng.deleted).map((o) => {
|
|
1230
1234
|
const c = {};
|
|
1231
|
-
return
|
|
1235
|
+
return r.forEach((l, f) => {
|
|
1232
1236
|
c[l] = o.v ? o.v[f] : o[l];
|
|
1233
1237
|
}), c.__ng = o.__ng, c;
|
|
1234
1238
|
});
|
|
1235
1239
|
return e ? n[0] : n;
|
|
1236
1240
|
}, "#conv"));
|
|
1237
1241
|
E(this, "count", /* @__PURE__ */ h(() => this.getValidData().length, "count"));
|
|
1238
|
-
p(this, I,
|
|
1242
|
+
p(this, I, i), p(this, T, e), t(this, te).call(this);
|
|
1239
1243
|
}
|
|
1240
1244
|
get source() {
|
|
1241
|
-
return t(this,
|
|
1245
|
+
return t(this, ut).call(this, t(this, T).rawRecords);
|
|
1242
1246
|
}
|
|
1243
|
-
set source(
|
|
1244
|
-
this.clear(), this.add(
|
|
1247
|
+
set source(i) {
|
|
1248
|
+
this.clear(), this.add(i, !1);
|
|
1245
1249
|
}
|
|
1246
1250
|
get nextId() {
|
|
1247
|
-
return ++
|
|
1251
|
+
return ++Xe(this, Qt)._;
|
|
1248
1252
|
}
|
|
1249
1253
|
get count() {
|
|
1250
1254
|
return t(this, _).length;
|
|
@@ -1256,7 +1260,7 @@ const O = class O {
|
|
|
1256
1260
|
return this.length;
|
|
1257
1261
|
}
|
|
1258
1262
|
};
|
|
1259
|
-
I = new WeakMap(), T = new WeakMap(), _ = new WeakMap(),
|
|
1263
|
+
I = new WeakMap(), T = new WeakMap(), _ = new WeakMap(), ft = new WeakMap(), Qt = new WeakMap(), Y = new WeakMap(), te = new WeakMap(), it = new WeakMap(), Lt = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), ut = new WeakMap(), h(O, "ngData"), // 🎯 행 상태 정의 상수를 클래스 내부로 내재화
|
|
1260
1264
|
E(O, "ROW_STATE", {
|
|
1261
1265
|
EMPTY: "EMPTY",
|
|
1262
1266
|
NORMAL: "NORMAL",
|
|
@@ -1264,57 +1268,57 @@ E(O, "ROW_STATE", {
|
|
|
1264
1268
|
UPDATE: "UPDATE",
|
|
1265
1269
|
DELETE: "DELETE"
|
|
1266
1270
|
});
|
|
1267
|
-
let
|
|
1268
|
-
var
|
|
1269
|
-
const
|
|
1270
|
-
constructor(
|
|
1271
|
-
d(this,
|
|
1272
|
-
p(this,
|
|
1271
|
+
let be = O;
|
|
1272
|
+
var rt;
|
|
1273
|
+
const Be = class Be {
|
|
1274
|
+
constructor(i) {
|
|
1275
|
+
d(this, rt);
|
|
1276
|
+
p(this, rt, i), this.row = new ge(this), this.data = new be(t(this, rt), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
|
|
1273
1277
|
var e;
|
|
1274
|
-
(e = t(this,
|
|
1278
|
+
(e = t(this, rt).view) != null && e.redraw && t(this, rt).view.redraw();
|
|
1275
1279
|
}, this.setDataSource = (e) => {
|
|
1276
1280
|
this.data && this.data.reset(), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.data.set(e || []);
|
|
1277
1281
|
}, this.getRowState = (e) => {
|
|
1278
|
-
var
|
|
1282
|
+
var r, n;
|
|
1279
1283
|
const s = parseInt(e, 10);
|
|
1280
1284
|
if (!(s >= this.data.count()))
|
|
1281
|
-
return (n = (
|
|
1285
|
+
return (n = (r = this.data.getValidData()[s]) == null ? void 0 : r.__ng) == null ? void 0 : n.rowState;
|
|
1282
1286
|
}, this.getRowPosition = () => this.row.at, this.setRowPosition = (e) => {
|
|
1283
1287
|
this.row.at = e;
|
|
1284
|
-
}, this.scrollTo_V1 = (e) => (e < 0 && (e = 0), e >= this.rawRecords.length && (e = this.rawRecords.length - 1), this.viewRecords.rawIndex = e, this.viewRecords.reset && this.viewRecords.reset(), !(e <= 0 || e >= this.rawRecords.length - 1)), this.getColumn = (e, s) => this.data.get(e, s), this.setColumn = (e, s,
|
|
1285
|
-
e = parseInt(e, 10), this.data.setValue(e, s,
|
|
1288
|
+
}, this.scrollTo_V1 = (e) => (e < 0 && (e = 0), e >= this.rawRecords.length && (e = this.rawRecords.length - 1), this.viewRecords.rawIndex = e, this.viewRecords.reset && this.viewRecords.reset(), !(e <= 0 || e >= this.rawRecords.length - 1)), this.getColumn = (e, s) => this.data.get(e, s), this.setColumn = (e, s, r) => {
|
|
1289
|
+
e = parseInt(e, 10), this.data.setValue(e, s, r);
|
|
1286
1290
|
}, this.setDataSource([]);
|
|
1287
1291
|
}
|
|
1288
1292
|
};
|
|
1289
|
-
|
|
1290
|
-
let
|
|
1291
|
-
var
|
|
1292
|
-
const
|
|
1293
|
+
rt = new WeakMap(), h(Be, "ngDataManager");
|
|
1294
|
+
let pe = Be;
|
|
1295
|
+
var gt, L, Ht, ie;
|
|
1296
|
+
const ze = class ze {
|
|
1293
1297
|
// 🎯 이제 { name: string, type: string } 객체들의 배열로 관리합니다.
|
|
1294
|
-
constructor(
|
|
1295
|
-
d(this,
|
|
1298
|
+
constructor(i) {
|
|
1299
|
+
d(this, gt);
|
|
1296
1300
|
d(this, L, []);
|
|
1297
|
-
E(this, "add", /* @__PURE__ */ h((
|
|
1298
|
-
|
|
1299
|
-
t(this, L).some((
|
|
1300
|
-
}), t(this,
|
|
1301
|
+
E(this, "add", /* @__PURE__ */ h((i, e = "string") => {
|
|
1302
|
+
i.forEach((s) => {
|
|
1303
|
+
t(this, L).some((r) => r.name === s) || t(this, L).push({ name: s, type: e });
|
|
1304
|
+
}), t(this, Ht).call(this);
|
|
1301
1305
|
}, "add"));
|
|
1302
|
-
d(this,
|
|
1303
|
-
const
|
|
1306
|
+
d(this, Ht, /* @__PURE__ */ h(() => {
|
|
1307
|
+
const i = /* @__PURE__ */ new Map();
|
|
1304
1308
|
t(this, L).forEach((e) => {
|
|
1305
|
-
|
|
1306
|
-
}), p(this, L, Array.from(
|
|
1309
|
+
i.set(e.name, e.type);
|
|
1310
|
+
}), p(this, L, Array.from(i, ([e, s]) => ({ name: e, type: s }))), p(this, L, t(this, L).filter((e) => e.name !== "" && e.name !== "__ng")), t(this, L).sort((e, s) => e.name.length < s.name.length ? 1 : -1);
|
|
1307
1311
|
}, "#adjust"));
|
|
1308
|
-
d(this,
|
|
1309
|
-
p(this, L, []), N.log(t(this,
|
|
1310
|
-
const
|
|
1311
|
-
if (!(!
|
|
1312
|
-
for (const e of
|
|
1313
|
-
N.log(e), $("[data-bind]", e).each((s,
|
|
1314
|
-
const n =
|
|
1312
|
+
d(this, ie, /* @__PURE__ */ h(() => {
|
|
1313
|
+
p(this, L, []), N.log(t(this, gt).querySelectorAll("table"));
|
|
1314
|
+
const i = Array.from(t(this, gt).querySelectorAll("table"));
|
|
1315
|
+
if (!(!i || i.length === 0)) {
|
|
1316
|
+
for (const e of i)
|
|
1317
|
+
N.log(e), $("[data-bind]", e).each((s, r) => {
|
|
1318
|
+
const n = r.dataset.bind, a = r.getAttribute("data-type") || "string";
|
|
1315
1319
|
n && t(this, L).push({ name: n, type: a });
|
|
1316
1320
|
}), ["data-expr", "background-color", "color", "tooltip", "visible", "readonly", "enable-button", "enable-check", "class-expr", "icon-color", "icon-src"].forEach((s) => {
|
|
1317
|
-
$(`[${s}]`, e).each((
|
|
1321
|
+
$(`[${s}]`, e).each((r, n) => {
|
|
1318
1322
|
var a = n.getAttribute(s);
|
|
1319
1323
|
if (a.indexOf("data.") < 0) {
|
|
1320
1324
|
const o = a.search(/[(]/g);
|
|
@@ -1334,47 +1338,47 @@ const Be = class Be {
|
|
|
1334
1338
|
});
|
|
1335
1339
|
});
|
|
1336
1340
|
});
|
|
1337
|
-
t(this,
|
|
1341
|
+
t(this, Ht).call(this);
|
|
1338
1342
|
}
|
|
1339
1343
|
}, "#init"));
|
|
1340
|
-
p(this,
|
|
1344
|
+
p(this, gt, i), t(this, ie).call(this);
|
|
1341
1345
|
}
|
|
1342
1346
|
// 🎯 기존에 필드 이름만 쓰던 곳들과의 호환을 위해 이름 배열만 리턴하는 메서드 유지
|
|
1343
1347
|
get() {
|
|
1344
|
-
return t(this, L).map((
|
|
1348
|
+
return t(this, L).map((i) => i.name);
|
|
1345
1349
|
}
|
|
1346
1350
|
// 🎯 내부 객체 통째로 얻기
|
|
1347
1351
|
getFields() {
|
|
1348
1352
|
return t(this, L);
|
|
1349
1353
|
}
|
|
1350
1354
|
// 🎯 특정 필드의 데이터 타입 조회
|
|
1351
|
-
getType(
|
|
1352
|
-
const e = t(this, L).find((s) => s.name ===
|
|
1355
|
+
getType(i) {
|
|
1356
|
+
const e = t(this, L).find((s) => s.name === i);
|
|
1353
1357
|
return e ? e.type : "string";
|
|
1354
1358
|
}
|
|
1355
|
-
indexOf(
|
|
1356
|
-
return t(this, L).findIndex((e) => e.name ===
|
|
1359
|
+
indexOf(i) {
|
|
1360
|
+
return t(this, L).findIndex((e) => e.name === i);
|
|
1357
1361
|
}
|
|
1358
|
-
includes(
|
|
1359
|
-
return t(this, L).some((e) => e.name ===
|
|
1362
|
+
includes(i) {
|
|
1363
|
+
return t(this, L).some((e) => e.name === i);
|
|
1360
1364
|
}
|
|
1361
1365
|
};
|
|
1362
|
-
|
|
1363
|
-
let
|
|
1364
|
-
var nt, re,
|
|
1365
|
-
const
|
|
1366
|
+
gt = new WeakMap(), L = new WeakMap(), Ht = new WeakMap(), ie = new WeakMap(), h(ze, "ngFields");
|
|
1367
|
+
let ye = ze;
|
|
1368
|
+
var nt, re, ne;
|
|
1369
|
+
const Pe = class Pe extends HTMLElement {
|
|
1366
1370
|
constructor() {
|
|
1367
1371
|
super();
|
|
1368
1372
|
//#created = false;
|
|
1369
1373
|
d(this, nt);
|
|
1370
1374
|
d(this, re);
|
|
1371
|
-
d(this,
|
|
1372
|
-
this.fields = new
|
|
1375
|
+
d(this, ne, /* @__PURE__ */ h(() => {
|
|
1376
|
+
this.fields = new ye(this), p(this, re, new ue(this)), N.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
|
|
1373
1377
|
}, "#init"));
|
|
1374
|
-
this.attachShadow({ mode: "open" }), p(this, nt, new
|
|
1378
|
+
this.attachShadow({ mode: "open" }), p(this, nt, new pe(this));
|
|
1375
1379
|
}
|
|
1376
1380
|
connectedCallback() {
|
|
1377
|
-
t(this,
|
|
1381
|
+
t(this, ne).call(this);
|
|
1378
1382
|
}
|
|
1379
1383
|
disconnectedCallback() {
|
|
1380
1384
|
N.log("NineTable disconnected.");
|
|
@@ -1392,10 +1396,10 @@ const ze = class ze extends HTMLElement {
|
|
|
1392
1396
|
return t(this, nt);
|
|
1393
1397
|
}
|
|
1394
1398
|
};
|
|
1395
|
-
nt = new WeakMap(), re = new WeakMap(),
|
|
1396
|
-
let
|
|
1397
|
-
customElements.get("nine-table") || customElements.define("nine-table",
|
|
1398
|
-
const
|
|
1399
|
+
nt = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), h(Pe, "NineTable");
|
|
1400
|
+
let me = Pe;
|
|
1401
|
+
customElements.get("nine-table") || customElements.define("nine-table", me);
|
|
1402
|
+
const xt = class xt extends HTMLElement {
|
|
1399
1403
|
// 👈 커스텀 스타일용 캐시 추가
|
|
1400
1404
|
constructor() {
|
|
1401
1405
|
super();
|
|
@@ -1406,29 +1410,29 @@ const mt = class mt extends HTMLElement {
|
|
|
1406
1410
|
connectedCallback() {
|
|
1407
1411
|
}
|
|
1408
1412
|
};
|
|
1409
|
-
h(
|
|
1410
|
-
let
|
|
1411
|
-
var k,
|
|
1412
|
-
const
|
|
1413
|
+
h(xt, "BasicCellElement"), E(xt, "_styleCache", /* @__PURE__ */ new Map()), E(xt, "_customStyleCache", /* @__PURE__ */ new Map());
|
|
1414
|
+
let xe = xt;
|
|
1415
|
+
var k, Mt, y, qe, Te, ke, Ce, Le;
|
|
1416
|
+
const De = class De extends xe {
|
|
1413
1417
|
constructor() {
|
|
1414
1418
|
super();
|
|
1415
1419
|
d(this, k);
|
|
1416
|
-
d(this,
|
|
1420
|
+
d(this, Mt);
|
|
1417
1421
|
d(this, y);
|
|
1418
|
-
d(this, Re);
|
|
1419
1422
|
d(this, qe);
|
|
1420
1423
|
d(this, Te);
|
|
1421
1424
|
d(this, ke);
|
|
1425
|
+
d(this, Ce);
|
|
1422
1426
|
E(this, "getDisplayText", /* @__PURE__ */ h((e) => {
|
|
1423
1427
|
if (t(this, y))
|
|
1424
1428
|
if (t(this, y).closest("tbody")) {
|
|
1425
|
-
const s = t(this, y).closest("tr").data,
|
|
1429
|
+
const s = t(this, y).closest("tr").data, r = parseInt(t(this, y).dataset.row);
|
|
1426
1430
|
if (!s) return "";
|
|
1427
1431
|
if (ninegrid.isNull(t(this, y).dataset.expr)) {
|
|
1428
1432
|
if (!ninegrid.isNull(t(this, y).dataset.bind))
|
|
1429
1433
|
return s[t(this, y).dataset.bind] || ninegrid.nvl(e, "");
|
|
1430
1434
|
} else try {
|
|
1431
|
-
return this.getExprValue(t(this, y).dataset.expr, s,
|
|
1435
|
+
return this.getExprValue(t(this, y).dataset.expr, s, r, t(this, y));
|
|
1432
1436
|
} catch {
|
|
1433
1437
|
console.error(t(this, y).dataset.expr, s, t(this, y).dataset.row);
|
|
1434
1438
|
}
|
|
@@ -1439,18 +1443,18 @@ const Pe = class Pe extends me {
|
|
|
1439
1443
|
} catch {
|
|
1440
1444
|
}
|
|
1441
1445
|
}, "getDisplayText"));
|
|
1442
|
-
d(this,
|
|
1446
|
+
d(this, Le, /* @__PURE__ */ h(() => {
|
|
1443
1447
|
if (!(!t(this, k) || !t(this, k).template || !t(this, y).closest("tbody.bindable"))) {
|
|
1444
1448
|
var e = ninegrid.j.querySelectorAll(t(this, y)).attr("suppress");
|
|
1445
1449
|
if (e && (e = parseInt(e)), e && !isNaN(e)) {
|
|
1446
|
-
var s = t(this, y).closest("tr"),
|
|
1450
|
+
var s = t(this, y).closest("tr"), r = [];
|
|
1447
1451
|
$("th,td", s).each((m, W) => {
|
|
1448
1452
|
var C = ninegrid.j.querySelectorAll(W).attr("suppress");
|
|
1449
|
-
C && W.dataset.row && (C = parseInt(C), !isNaN(C) && C <= e &&
|
|
1450
|
-
}),
|
|
1453
|
+
C && W.dataset.row && (C = parseInt(C), !isNaN(C) && C <= e && r.push(C));
|
|
1454
|
+
}), r.sort();
|
|
1451
1455
|
var n = !1;
|
|
1452
1456
|
if (parseInt(s.sectionRowIndex / t(this, k).template.length) > 0)
|
|
1453
|
-
for (var a of
|
|
1457
|
+
for (var a of r) {
|
|
1454
1458
|
if (a > e) break;
|
|
1455
1459
|
var o = parseInt(t(this, y).dataset.row), c = o - 1, l = t(this, y).closest("tr").data, f = t(this, k).data.get(c);
|
|
1456
1460
|
t(this, y).dataset.matrixRow;
|
|
@@ -1468,12 +1472,12 @@ const Pe = class Pe extends me {
|
|
|
1468
1472
|
}
|
|
1469
1473
|
}
|
|
1470
1474
|
}, "#resetSuppress"));
|
|
1471
|
-
E(this, "getExprValue", /* @__PURE__ */ h((e, s,
|
|
1475
|
+
E(this, "getExprValue", /* @__PURE__ */ h((e, s, r, n) => {
|
|
1472
1476
|
if (typeof e < "u")
|
|
1473
1477
|
try {
|
|
1474
|
-
|
|
1478
|
+
r = parseInt(r);
|
|
1475
1479
|
const a = e.replace("()", "");
|
|
1476
|
-
return t(this, k)[a] ? t(this, k)[a].call(this, s,
|
|
1480
|
+
return t(this, k)[a] ? t(this, k)[a].call(this, s, r, t(this, y)) : t(this, k).exprFunction(e).call(this, s, r, t(this, k).data);
|
|
1477
1481
|
} catch {
|
|
1478
1482
|
return ["NG-COMBO"].includes(this.tagName) ? "" : e;
|
|
1479
1483
|
}
|
|
@@ -1482,7 +1486,7 @@ const Pe = class Pe extends me {
|
|
|
1482
1486
|
}, "getExprValue"));
|
|
1483
1487
|
}
|
|
1484
1488
|
connectedCallback() {
|
|
1485
|
-
super.connectedCallback(), p(this, k, this.getRootNode().host), p(this, y, this.closest("th,td")), p(this,
|
|
1489
|
+
super.connectedCallback(), p(this, k, this.getRootNode().host), p(this, y, this.closest("th,td")), p(this, Mt, t(this, y).closest("tr"));
|
|
1486
1490
|
}
|
|
1487
1491
|
get value() {
|
|
1488
1492
|
var e = !t(this, k) || !t(this, k).dataManager || !t(this, y) || !t(this, y).dataset || !t(this, y).dataset.row || !t(this, y).dataset.bind ? "" : t(this, y).closest("tr").data[t(this, y).dataset.bind];
|
|
@@ -1490,8 +1494,8 @@ const Pe = class Pe extends me {
|
|
|
1490
1494
|
}
|
|
1491
1495
|
set value(e) {
|
|
1492
1496
|
var s = parseInt(t(this, y).dataset.row);
|
|
1493
|
-
const
|
|
1494
|
-
s < 0 ? t(this, k).data.setValueNF(parseInt(t(this, y).dataset.index), t(this, y).dataset.bind, e,
|
|
1497
|
+
const r = this.getAttribute("update-row-state") != "false";
|
|
1498
|
+
s < 0 ? t(this, k).data.setValueNF(parseInt(t(this, y).dataset.index), t(this, y).dataset.bind, e, r) : t(this, k).data.setValue(s, t(this, y).dataset.bind, e, r);
|
|
1495
1499
|
}
|
|
1496
1500
|
get row() {
|
|
1497
1501
|
return parseInt(t(this, y).dataset.row);
|
|
@@ -1501,12 +1505,12 @@ const Pe = class Pe extends me {
|
|
|
1501
1505
|
}
|
|
1502
1506
|
refresh() {
|
|
1503
1507
|
const e = t(this, y).dataset.bind;
|
|
1504
|
-
return parseInt(t(this, y).dataset.row), t(this,
|
|
1508
|
+
return parseInt(t(this, y).dataset.row), t(this, Mt).data[e];
|
|
1505
1509
|
}
|
|
1506
1510
|
};
|
|
1507
|
-
k = new WeakMap(),
|
|
1508
|
-
let
|
|
1509
|
-
const
|
|
1511
|
+
k = new WeakMap(), Mt = new WeakMap(), y = new WeakMap(), qe = new WeakMap(), Te = new WeakMap(), ke = new WeakMap(), Ce = new WeakMap(), Le = new WeakMap(), h(De, "CellElement");
|
|
1512
|
+
let ve = De;
|
|
1513
|
+
const je = class je extends ve {
|
|
1510
1514
|
constructor() {
|
|
1511
1515
|
super();
|
|
1512
1516
|
}
|
|
@@ -1517,21 +1521,21 @@ const De = class De extends xe {
|
|
|
1517
1521
|
return super.refresh();
|
|
1518
1522
|
}
|
|
1519
1523
|
};
|
|
1520
|
-
h(
|
|
1521
|
-
let
|
|
1522
|
-
var
|
|
1523
|
-
const
|
|
1524
|
+
h(je, "EditableCellElement");
|
|
1525
|
+
let we = je;
|
|
1526
|
+
var $t, ot, bt, pt, oe, U, He;
|
|
1527
|
+
const Fe = class Fe extends we {
|
|
1524
1528
|
constructor() {
|
|
1525
1529
|
super();
|
|
1526
|
-
d(this,
|
|
1530
|
+
d(this, $t);
|
|
1527
1531
|
d(this, ot);
|
|
1528
|
-
d(this, gt);
|
|
1529
1532
|
d(this, bt);
|
|
1530
|
-
d(this,
|
|
1533
|
+
d(this, pt);
|
|
1534
|
+
d(this, oe);
|
|
1531
1535
|
d(this, U);
|
|
1532
1536
|
E(this, "refresh", /* @__PURE__ */ h(() => {
|
|
1533
1537
|
const e = super.refresh();
|
|
1534
|
-
t(this,
|
|
1538
|
+
t(this, $t).value = e;
|
|
1535
1539
|
}, "refresh"));
|
|
1536
1540
|
/**
|
|
1537
1541
|
dataRefresh = (v) => {
|
|
@@ -1563,22 +1567,22 @@ const je = class je extends ve {
|
|
|
1563
1567
|
if (!v) this.reset();
|
|
1564
1568
|
};
|
|
1565
1569
|
*/
|
|
1566
|
-
d(this,
|
|
1570
|
+
d(this, He, /* @__PURE__ */ h((e) => {
|
|
1567
1571
|
if (!["Escape", "Enter", "Tab", "Home", "End", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Backspace", "Delete"].includes(e.code)) {
|
|
1568
1572
|
if (t(this, ot) == "number") {
|
|
1569
1573
|
let n = [];
|
|
1570
|
-
if (t(this, U) && Number(t(this, U)) > 0 && n.push("."), t(this,
|
|
1571
|
-
var s = e.target.value,
|
|
1572
|
-
if (
|
|
1573
|
-
var s = s.substr(
|
|
1574
|
+
if (t(this, U) && Number(t(this, U)) > 0 && n.push("."), t(this, pt) && Number(t(this, pt)) >= 0 && n.push("-"), !(e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && !n.includes(e.key) && e.preventDefault(), t(this, U) && (e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && e.target.selectionStart == e.target.selectionEnd) {
|
|
1575
|
+
var s = e.target.value, r = s.indexOf(".");
|
|
1576
|
+
if (r >= 0) {
|
|
1577
|
+
var s = s.substr(r + 1, s.length);
|
|
1574
1578
|
s.length >= Number(t(this, U)) && e.preventDefault();
|
|
1575
1579
|
}
|
|
1576
1580
|
}
|
|
1577
1581
|
}
|
|
1578
|
-
t(this,
|
|
1582
|
+
t(this, bt) && ninegrid.getByteLength(e.target.value) >= Number(t(this, bt)) && e.target.selectionStart == e.target.selectionEnd && e.preventDefault();
|
|
1579
1583
|
}
|
|
1580
1584
|
}, "#onKeyDown"));
|
|
1581
|
-
if (this.applyBaseStyle(), p(this, ot, this.getAttribute("type") || "text"), p(this,
|
|
1585
|
+
if (this.applyBaseStyle(), p(this, ot, this.getAttribute("type") || "text"), p(this, bt, this.getAttribute("maxbyte")), p(this, pt, this.getAttribute("min")), p(this, oe, this.getAttribute("max")), p(this, U, this.getAttribute("scale")), !["text", "number"].includes(t(this, ot))) throw `invalid type : ${t(this, ot)}`;
|
|
1582
1586
|
}
|
|
1583
1587
|
connectedCallback() {
|
|
1584
1588
|
for (var e = [], s = 0; s < this.attributes.length; s++)
|
|
@@ -1588,11 +1592,11 @@ const je = class je extends ve {
|
|
|
1588
1592
|
${e.join(" ")}
|
|
1589
1593
|
ondragstart="return false;"
|
|
1590
1594
|
>
|
|
1591
|
-
`, super.connectedCallback(), p(this,
|
|
1595
|
+
`, super.connectedCallback(), p(this, $t, this.querySelector("input"));
|
|
1592
1596
|
}
|
|
1593
1597
|
};
|
|
1594
|
-
|
|
1595
|
-
let
|
|
1598
|
+
$t = new WeakMap(), ot = new WeakMap(), bt = new WeakMap(), pt = new WeakMap(), oe = new WeakMap(), U = new WeakMap(), He = new WeakMap(), h(Fe, "CellInputText");
|
|
1599
|
+
let Se = Fe;
|
|
1596
1600
|
customElements.get("cell-input-text");
|
|
1597
|
-
customElements.get("cell-input") || customElements.define("cell-input",
|
|
1601
|
+
customElements.get("cell-input") || customElements.define("cell-input", Se);
|
|
1598
1602
|
//# sourceMappingURL=nine-table.js.map
|