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