@ninebone/table 0.0.402 β 0.0.404
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 +151 -153
- package/dist/nine-table.js.map +1 -1
- package/dist/nine-table.umd.js +5 -5
- package/dist/nine-table.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/nine-table.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var be = Object.defineProperty;
|
|
2
|
+
var ye = (x) => {
|
|
3
3
|
throw TypeError(x);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var a = (x, i) =>
|
|
7
|
-
var v = (x, i, e) =>
|
|
8
|
-
var t = (x, i, e) => (
|
|
9
|
-
var
|
|
5
|
+
var xe = (x, i, e) => i in x ? be(x, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : x[i] = e;
|
|
6
|
+
var a = (x, i) => be(x, "name", { value: i, configurable: !0 });
|
|
7
|
+
var v = (x, i, e) => xe(x, typeof i != "symbol" ? i + "" : i, e), pe = (x, i, e) => i.has(x) || ye("Cannot " + e);
|
|
8
|
+
var t = (x, i, e) => (pe(x, i, "read from private field"), e ? e.call(x) : i.get(x)), c = (x, i, e) => i.has(x) ? ye("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(x) : i.set(x, e), g = (x, i, e, s) => (pe(x, i, "write to private field"), s ? s.call(x, e) : i.set(x, e), e);
|
|
9
|
+
var me = (x, i, e, s) => ({
|
|
10
10
|
set _(n) {
|
|
11
11
|
g(x, i, n, e);
|
|
12
12
|
},
|
|
@@ -14,37 +14,37 @@ var ve = (x, i, e, s) => ({
|
|
|
14
14
|
return t(x, i, s);
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
import { trace as
|
|
18
|
-
const
|
|
17
|
+
import { trace as ve } from "@ninebone/util";
|
|
18
|
+
const oe = class oe extends ve.constructor {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(), this.init("nine-table", "green");
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
a(
|
|
24
|
-
let
|
|
25
|
-
const H = new
|
|
26
|
-
var
|
|
27
|
-
const
|
|
23
|
+
a(oe, "Trace");
|
|
24
|
+
let Ft = oe;
|
|
25
|
+
const H = new Ft();
|
|
26
|
+
var M, O, p, V, Y, X, wt, U, St;
|
|
27
|
+
const re = class re extends HTMLElement {
|
|
28
28
|
constructor() {
|
|
29
29
|
super();
|
|
30
|
-
c(this,
|
|
30
|
+
c(this, M);
|
|
31
31
|
c(this, O, !1);
|
|
32
32
|
c(this, p);
|
|
33
33
|
c(this, V);
|
|
34
34
|
c(this, Y);
|
|
35
35
|
c(this, X);
|
|
36
|
-
c(this,
|
|
37
|
-
if (!t(this,
|
|
38
|
-
const e = t(this,
|
|
36
|
+
c(this, wt, /* @__PURE__ */ a(() => {
|
|
37
|
+
if (!t(this, M)) return;
|
|
38
|
+
const e = t(this, M).querySelector(".ng-container-body");
|
|
39
39
|
e && (g(this, X, new ResizeObserver(() => {
|
|
40
40
|
this.refresh();
|
|
41
41
|
})), t(this, X).observe(e));
|
|
42
42
|
}, "#observeResize"));
|
|
43
43
|
v(this, "refresh", /* @__PURE__ */ a(() => {
|
|
44
|
-
if (!t(this,
|
|
44
|
+
if (!t(this, M) || !t(this, p) || t(this, O)) return;
|
|
45
45
|
const e = t(this, p).container, s = e.querySelector("table");
|
|
46
46
|
if (!s) return;
|
|
47
|
-
const n = t(this, p).track, r = t(this, p).thumb, o = t(this,
|
|
47
|
+
const n = t(this, p).track, r = t(this, p).thumb, o = t(this, M).querySelector(".ng-container-bottom"), l = e.clientWidth, d = s.scrollWidth;
|
|
48
48
|
if (l !== 0 && d > l)
|
|
49
49
|
o && (o.style.display = "flex");
|
|
50
50
|
else {
|
|
@@ -73,7 +73,7 @@ const le = class le extends HTMLElement {
|
|
|
73
73
|
const h = s.clientWidth, u = n.scrollWidth - h;
|
|
74
74
|
return d > 0 && u > 0 && (s.scrollLeft = l / d * u), l > 0 && l < d - 1;
|
|
75
75
|
}, "#thumbMoveTo"));
|
|
76
|
-
c(this,
|
|
76
|
+
c(this, St, /* @__PURE__ */ a(() => {
|
|
77
77
|
const e = /* @__PURE__ */ a((n) => {
|
|
78
78
|
clearInterval(t(this, V)), clearInterval(t(this, Y));
|
|
79
79
|
const r = parseInt(t(this, p).thumb.style.left || 0, 10);
|
|
@@ -112,7 +112,7 @@ const le = class le extends HTMLElement {
|
|
|
112
112
|
}, "#init"));
|
|
113
113
|
}
|
|
114
114
|
connectedCallback() {
|
|
115
|
-
if (g(this,
|
|
115
|
+
if (g(this, M, this.closest("nine-table-sheet") || this.getRootNode().host), !t(this, M)) return;
|
|
116
116
|
this.innerHTML = `
|
|
117
117
|
<style>
|
|
118
118
|
nine-table-hscrollbar {
|
|
@@ -177,7 +177,7 @@ const le = class le extends HTMLElement {
|
|
|
177
177
|
<button class='ng-scroll-right' disabled><div class='ng-scroll-icon'></div></button>
|
|
178
178
|
`;
|
|
179
179
|
const e = /* @__PURE__ */ a(() => {
|
|
180
|
-
const s = t(this,
|
|
180
|
+
const s = t(this, M).querySelector(".ng-container-body");
|
|
181
181
|
if (!s) {
|
|
182
182
|
setTimeout(e, 10);
|
|
183
183
|
return;
|
|
@@ -190,7 +190,7 @@ const le = class le extends HTMLElement {
|
|
|
190
190
|
right: this.querySelector(".ng-scroll-right")
|
|
191
191
|
}), s.addEventListener("scroll", () => {
|
|
192
192
|
t(this, O) || this.refresh();
|
|
193
|
-
}), t(this,
|
|
193
|
+
}), t(this, St).call(this), t(this, wt).call(this), this.refresh();
|
|
194
194
|
}, "initWhenReady");
|
|
195
195
|
e();
|
|
196
196
|
}
|
|
@@ -198,19 +198,19 @@ const le = class le extends HTMLElement {
|
|
|
198
198
|
t(this, X) && t(this, X).disconnect();
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
|
-
|
|
202
|
-
let
|
|
203
|
-
customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar",
|
|
204
|
-
var z, Q, D, S,
|
|
205
|
-
const
|
|
201
|
+
M = new WeakMap(), O = new WeakMap(), p = new WeakMap(), V = new WeakMap(), Y = new WeakMap(), X = new WeakMap(), wt = new WeakMap(), U = new WeakMap(), St = new WeakMap(), a(re, "NineTableHScrollBar");
|
|
202
|
+
let jt = re;
|
|
203
|
+
customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", jt);
|
|
204
|
+
var z, Q, D, S, ct, ht, Et;
|
|
205
|
+
const le = class le extends HTMLElement {
|
|
206
206
|
constructor() {
|
|
207
207
|
super();
|
|
208
208
|
c(this, z);
|
|
209
209
|
c(this, Q);
|
|
210
210
|
c(this, D, !1);
|
|
211
211
|
c(this, S);
|
|
212
|
+
c(this, ct, 0);
|
|
212
213
|
c(this, ht, 0);
|
|
213
|
-
c(this, dt, 0);
|
|
214
214
|
/**
|
|
215
215
|
* π― μ€ν¬λ‘€λ° μμΉ λ° μΈλΈ ν¬κΈ° κ°±μ
|
|
216
216
|
*/
|
|
@@ -232,7 +232,7 @@ const ae = class ae extends HTMLElement {
|
|
|
232
232
|
const R = f - u;
|
|
233
233
|
m < 0 && (m = 0), m > R && (m = R), n.style.top = `${m}px`, H.log(m), t(this, S).top.disabled = b <= 0, t(this, S).bottom.disabled = b >= y - 1;
|
|
234
234
|
}, "refresh"));
|
|
235
|
-
c(this,
|
|
235
|
+
c(this, Et, /* @__PURE__ */ a(() => {
|
|
236
236
|
const e = t(this, S).container, s = /* @__PURE__ */ a(() => {
|
|
237
237
|
const r = (t(this, z).data.get() || []).length, o = t(this, Q).getRowHeight();
|
|
238
238
|
return r * o;
|
|
@@ -241,17 +241,15 @@ const ae = class ae extends HTMLElement {
|
|
|
241
241
|
t(this, D) || this.refresh();
|
|
242
242
|
}), t(this, S).thumb.addEventListener("mousedown", (n) => {
|
|
243
243
|
if (n.button !== 0) return;
|
|
244
|
-
n.stopPropagation(), n.preventDefault(), g(this, D, !0), g(this,
|
|
244
|
+
n.stopPropagation(), n.preventDefault(), g(this, D, !0), g(this, ct, n.clientY), g(this, ht, e.scrollTop);
|
|
245
245
|
const r = /* @__PURE__ */ a((l) => {
|
|
246
246
|
if (!t(this, D)) return;
|
|
247
|
-
const d = t(this, S).track.getBoundingClientRect(), h = t(this, S).thumb.clientHeight, u = d.height - h, b = l.clientY - t(this,
|
|
247
|
+
const d = t(this, S).track.getBoundingClientRect(), h = t(this, S).thumb.clientHeight, u = d.height - h, b = l.clientY - t(this, ct), y = e.clientHeight;
|
|
248
248
|
H.log(":::", this.clientHeight);
|
|
249
249
|
const m = s(), R = Math.max(m - y, 1);
|
|
250
250
|
if (u > 0 && R > 0) {
|
|
251
251
|
const J = b / u * R;
|
|
252
|
-
|
|
253
|
-
const ye = Math.max(0, m - y);
|
|
254
|
-
at < 0 && (at = 0), at > ye && (at = ye), e.scrollTop = at;
|
|
252
|
+
t(this, ht) + J;
|
|
255
253
|
}
|
|
256
254
|
this.refresh();
|
|
257
255
|
}, "onMouseMove"), o = /* @__PURE__ */ a(() => {
|
|
@@ -351,21 +349,21 @@ const ae = class ae extends HTMLElement {
|
|
|
351
349
|
thumb: this.querySelector(".ng-scroll-thumb"),
|
|
352
350
|
top: this.querySelector(".ng-scroll-top"),
|
|
353
351
|
bottom: this.querySelector(".ng-scroll-bottom")
|
|
354
|
-
}), t(this,
|
|
352
|
+
}), t(this, Et).call(this), this.refresh();
|
|
355
353
|
}, "initWhenReady");
|
|
356
354
|
e();
|
|
357
355
|
}
|
|
358
356
|
};
|
|
359
|
-
z = new WeakMap(), Q = new WeakMap(), D = new WeakMap(), S = new WeakMap(),
|
|
360
|
-
let
|
|
361
|
-
customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar",
|
|
362
|
-
var
|
|
363
|
-
const
|
|
357
|
+
z = new WeakMap(), Q = new WeakMap(), D = new WeakMap(), S = new WeakMap(), ct = new WeakMap(), ht = new WeakMap(), Et = new WeakMap(), a(le, "NineTableVScrollBar");
|
|
358
|
+
let Kt = le;
|
|
359
|
+
customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", Kt);
|
|
360
|
+
var Rt, tt;
|
|
361
|
+
const _ = class _ {
|
|
364
362
|
/**
|
|
365
363
|
* π― λ μ΄μμ λ΄μ μ¬λ¬ rawTables λ°°μ΄μ μΌκ΄λ‘ λ°μ λ¨μΌ λ§μ€ν° ν
νλ¦ΏμΌλ‘ μ¬μ μ»΄νμΌν©λλ€.
|
|
366
364
|
*/
|
|
367
365
|
static compileAll(i) {
|
|
368
|
-
return Array.isArray(i) ? i.map((e) =>
|
|
366
|
+
return Array.isArray(i) ? i.map((e) => _.compile(e)) : [];
|
|
369
367
|
}
|
|
370
368
|
/**
|
|
371
369
|
* π― λ¨μΌ μλ³Έ ν
μ΄λΈμ λ°μ κΈ°λ³Έ ꡬ쑰 보μ λ° 2μ°¨μ 격μ μΈλ±μ€ μ¬μ λΆμ¬ μλ£λ λ§μ€ν° ν
μ΄λΈ λ°ν
|
|
@@ -374,7 +372,7 @@ const M = class M {
|
|
|
374
372
|
var n, r, o, l;
|
|
375
373
|
if (!i) return null;
|
|
376
374
|
const e = i.cloneNode(!0);
|
|
377
|
-
return t(n =
|
|
375
|
+
return t(n = _, Rt).call(n, e), t(r = _, tt).call(r, e, "thead"), t(o = _, tt).call(o, e, "tbody"), t(l = _, tt).call(l, e, "tfoot"), Array.from(e.querySelectorAll("colgroup col")).forEach((d, h) => {
|
|
378
376
|
const f = d.getAttribute("fixed");
|
|
379
377
|
f && e.querySelectorAll(`thead [data-col="${h}"], tbody [data-col="${h}"], tfoot [data-col="${h}"]`).forEach((u) => {
|
|
380
378
|
u.setAttribute("fixed", f);
|
|
@@ -382,7 +380,7 @@ const M = class M {
|
|
|
382
380
|
}), e;
|
|
383
381
|
}
|
|
384
382
|
};
|
|
385
|
-
|
|
383
|
+
Rt = new WeakMap(), tt = new WeakMap(), a(_, "TableCompiler"), c(_, Rt, /* @__PURE__ */ a((i) => {
|
|
386
384
|
if (!i.querySelector("colgroup")) {
|
|
387
385
|
const e = i.querySelector("tbody tr") || i.querySelector("tr"), s = e ? e.querySelectorAll("th, td").length : 1, n = document.createElement("colgroup"), r = Math.max(Math.floor(i.clientWidth / s), 100);
|
|
388
386
|
for (let o = 0; o < s; o++) {
|
|
@@ -396,7 +394,7 @@ At = new WeakMap(), tt = new WeakMap(), a(M, "TableCompiler"), c(M, At, /* @__PU
|
|
|
396
394
|
s ? s.after(e) : i.prepend(e);
|
|
397
395
|
}
|
|
398
396
|
i.classList.add("nine-table-element"), i.style.display = "table";
|
|
399
|
-
}, "#ensureTableStructure")), c(
|
|
397
|
+
}, "#ensureTableStructure")), c(_, tt, /* @__PURE__ */ a((i, e) => {
|
|
400
398
|
const s = Array.from(i.querySelectorAll(e + " tr")), n = Array.from(i.querySelectorAll(e + " th," + e + " td")), r = s.length;
|
|
401
399
|
if (r === 0 || n.length === 0) return;
|
|
402
400
|
let o = 0;
|
|
@@ -429,9 +427,9 @@ At = new WeakMap(), tt = new WeakMap(), a(M, "TableCompiler"), c(M, At, /* @__PU
|
|
|
429
427
|
});
|
|
430
428
|
});
|
|
431
429
|
}, "#resetColIndex"));
|
|
432
|
-
let
|
|
433
|
-
var I, w, W, T, B, F, N, et, Tt, qt,
|
|
434
|
-
const
|
|
430
|
+
let Zt = _;
|
|
431
|
+
var I, w, W, T, B, F, N, et, At, Tt, qt, dt, ft, kt, Lt, ut, Ht, it, gt;
|
|
432
|
+
const ae = class ae {
|
|
435
433
|
constructor(i) {
|
|
436
434
|
c(this, I);
|
|
437
435
|
c(this, w);
|
|
@@ -441,11 +439,11 @@ const ce = class ce {
|
|
|
441
439
|
c(this, F, 0);
|
|
442
440
|
c(this, N, 40);
|
|
443
441
|
c(this, et, !1);
|
|
444
|
-
c(this,
|
|
442
|
+
c(this, At, 3);
|
|
445
443
|
v(this, "refresh", /* @__PURE__ */ a(() => {
|
|
446
444
|
var e;
|
|
447
445
|
const i = t(this, w).querySelector(".ng-container-body");
|
|
448
|
-
i && (t(this,
|
|
446
|
+
i && (t(this, dt).call(this), t(this, it).call(this, i.scrollTop), (e = t(this, w).querySelector("nine-table-vscrollbar")) == null || e.refresh());
|
|
449
447
|
}, "refresh"));
|
|
450
448
|
v(this, "initialize", /* @__PURE__ */ a(() => {
|
|
451
449
|
g(this, T, null), t(this, W).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((n) => {
|
|
@@ -460,7 +458,7 @@ const ce = class ce {
|
|
|
460
458
|
});
|
|
461
459
|
const i = t(this, w).querySelector(".ng-container-body"), e = t(this, w).querySelector(".ng-container-left"), s = t(this, w).querySelector(".ng-container-right");
|
|
462
460
|
if (i) {
|
|
463
|
-
t(this,
|
|
461
|
+
t(this, qt).call(this, i), t(this, ut).call(this), t(this, dt).call(this), t(this, it).call(this, i.scrollTop);
|
|
464
462
|
let n = i.scrollTop;
|
|
465
463
|
const r = /* @__PURE__ */ a((o) => {
|
|
466
464
|
var l;
|
|
@@ -472,7 +470,7 @@ const ce = class ce {
|
|
|
472
470
|
});
|
|
473
471
|
}
|
|
474
472
|
}, "initialize"));
|
|
475
|
-
c(this,
|
|
473
|
+
c(this, Tt, /* @__PURE__ */ a((i, e) => {
|
|
476
474
|
const s = t(this, W).get(e);
|
|
477
475
|
if (!s || s.length === 0) return;
|
|
478
476
|
const n = i.querySelector("tbody.bindable-tbody");
|
|
@@ -485,7 +483,7 @@ const ce = class ce {
|
|
|
485
483
|
});
|
|
486
484
|
r ? r.before(o) : n.appendChild(o);
|
|
487
485
|
}, "#renderRows"));
|
|
488
|
-
c(this,
|
|
486
|
+
c(this, qt, /* @__PURE__ */ a((i) => {
|
|
489
487
|
if (t(this, T) !== null && t(this, T) > 0)
|
|
490
488
|
return t(this, T);
|
|
491
489
|
const e = t(this, W).get(".ng-container-body");
|
|
@@ -503,9 +501,9 @@ const ce = class ce {
|
|
|
503
501
|
const u = s.querySelectorAll("tr:not(.nodata)");
|
|
504
502
|
return u.forEach((b) => {
|
|
505
503
|
f += b.offsetHeight || b.getBoundingClientRect().height;
|
|
506
|
-
}), u.forEach((b) => b.remove()), o.style.display = l, o.style.visibility = d, o.style.position = h, g(this, T, f > 0 ? f : 24), t(this,
|
|
504
|
+
}), u.forEach((b) => b.remove()), o.style.display = l, o.style.visibility = d, o.style.position = h, g(this, T, f > 0 ? f : 24), t(this, ft).call(this), t(this, T);
|
|
507
505
|
}, "#measureAndCacheHeight"));
|
|
508
|
-
c(this,
|
|
506
|
+
c(this, dt, /* @__PURE__ */ a(() => {
|
|
509
507
|
if (!t(this, w).querySelector(".ng-container-body")) return;
|
|
510
508
|
const s = (t(this, I).data.get() || []).length, n = t(this, T) || 24, r = s * n;
|
|
511
509
|
H.log(`[VirtualHeight] totalCount: ${s}, rowHeight: ${n}, totalVirtualHeight: ${r}`), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
|
|
@@ -513,13 +511,13 @@ const ce = class ce {
|
|
|
513
511
|
d && (d.style.height = `${r}px`);
|
|
514
512
|
});
|
|
515
513
|
}, "#updateVirtualScrollHeight"));
|
|
516
|
-
c(this,
|
|
514
|
+
c(this, ft, /* @__PURE__ */ a(() => {
|
|
517
515
|
if ((t(this, I).data.get() || []).length, t(this, F) > 0 && t(this, T) > 0) {
|
|
518
516
|
const e = Math.ceil(t(this, F) / t(this, T));
|
|
519
|
-
g(this, N, e + t(this,
|
|
517
|
+
g(this, N, e + t(this, At)), H.log("visibleRows:", e, "cachedRowCount:", t(this, N));
|
|
520
518
|
}
|
|
521
519
|
}, "#updateRowCount"));
|
|
522
|
-
c(this,
|
|
520
|
+
c(this, kt, /* @__PURE__ */ a(() => {
|
|
523
521
|
var d, h, f;
|
|
524
522
|
const i = t(this, w).querySelector(".ng-container-left table"), e = t(this, w).querySelector(".ng-container-body table"), s = t(this, w).querySelector(".ng-container-right table");
|
|
525
523
|
if (!e) return;
|
|
@@ -533,7 +531,7 @@ const ce = class ce {
|
|
|
533
531
|
y > 0 && (n[u] && (n[u].style.height = `${y}px`), r[u] && (r[u].style.height = `${y}px`), o[u] && (o[u].style.height = `${y}px`));
|
|
534
532
|
}
|
|
535
533
|
}, "#syncRowHeights"));
|
|
536
|
-
c(this,
|
|
534
|
+
c(this, Lt, /* @__PURE__ */ a(() => {
|
|
537
535
|
!t(this, w) || !(t(this, w) instanceof HTMLElement) || (g(this, B, new ResizeObserver((i) => {
|
|
538
536
|
for (const e of i) {
|
|
539
537
|
const s = e.target;
|
|
@@ -544,18 +542,18 @@ const ce = class ce {
|
|
|
544
542
|
const o = s.querySelector("thead");
|
|
545
543
|
o && (r += o.offsetHeight || o.getBoundingClientRect().height);
|
|
546
544
|
const l = Math.max(n - r, 100);
|
|
547
|
-
t(this, F) !== l && (g(this, F, l), t(this,
|
|
545
|
+
t(this, F) !== l && (g(this, F, l), t(this, ft).call(this), t(this, T) !== null && t(this, ut).call(this));
|
|
548
546
|
}
|
|
549
547
|
}
|
|
550
548
|
})), t(this, B).observe(t(this, w)));
|
|
551
549
|
}, "#initResizeObserver"));
|
|
552
|
-
c(this,
|
|
550
|
+
c(this, ut, /* @__PURE__ */ a(() => {
|
|
553
551
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
|
|
554
552
|
const e = t(this, w).querySelector(i);
|
|
555
|
-
e && e.querySelector("tbody.bindable-tbody") && t(this,
|
|
556
|
-
}), t(this,
|
|
553
|
+
e && e.querySelector("tbody.bindable-tbody") && t(this, Tt).call(this, e, i);
|
|
554
|
+
}), t(this, kt).call(this);
|
|
557
555
|
}, "#renderAllContainers"));
|
|
558
|
-
c(this,
|
|
556
|
+
c(this, Ht, /* @__PURE__ */ a((i) => {
|
|
559
557
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((e) => {
|
|
560
558
|
var h;
|
|
561
559
|
const s = t(this, w).querySelector(e);
|
|
@@ -570,7 +568,7 @@ const ce = class ce {
|
|
|
570
568
|
return;
|
|
571
569
|
}
|
|
572
570
|
const y = t(this, I).data.get(b);
|
|
573
|
-
f.style.display = "", t(this,
|
|
571
|
+
f.style.display = "", t(this, gt).call(this, f, y, b);
|
|
574
572
|
});
|
|
575
573
|
});
|
|
576
574
|
}, "#adjustBufferRows"));
|
|
@@ -591,13 +589,13 @@ const ce = class ce {
|
|
|
591
589
|
return;
|
|
592
590
|
}
|
|
593
591
|
const J = t(this, I).data.get(R);
|
|
594
|
-
y.style.display = "", t(this,
|
|
592
|
+
y.style.display = "", t(this, gt).call(this, y, J, R);
|
|
595
593
|
});
|
|
596
594
|
}), t(this, et) || (g(this, et, !0), setTimeout(() => {
|
|
597
|
-
t(this,
|
|
595
|
+
t(this, Ht).call(this, r), g(this, et, !1);
|
|
598
596
|
}, 0));
|
|
599
597
|
}, "#handleScroll"));
|
|
600
|
-
c(this,
|
|
598
|
+
c(this, gt, /* @__PURE__ */ a((i, e, s) => {
|
|
601
599
|
i.dataset.row = s, Array.from(i.cells).forEach((n, r) => {
|
|
602
600
|
const o = n.dataset.bind;
|
|
603
601
|
o && e && e[o] !== void 0 ? n.textContent = e[o] : n.textContent = e ? e[Object.keys(e)[r]] ?? `R${s}C${r}` : `ν ${s + 1}`, n.dataset.row = s;
|
|
@@ -606,7 +604,7 @@ const ce = class ce {
|
|
|
606
604
|
v(this, "destroy", /* @__PURE__ */ a(() => {
|
|
607
605
|
t(this, B) && (t(this, B).disconnect(), g(this, B, null));
|
|
608
606
|
}, "destroy"));
|
|
609
|
-
g(this, I, i.getRootNode().host), g(this, w, i), t(this,
|
|
607
|
+
g(this, I, i.getRootNode().host), g(this, w, i), t(this, Lt).call(this);
|
|
610
608
|
}
|
|
611
609
|
getRowHeight() {
|
|
612
610
|
return t(this, T);
|
|
@@ -616,13 +614,13 @@ const ce = class ce {
|
|
|
616
614
|
return ((e = t(this, W).get(i)) == null ? void 0 : e.length) || 1;
|
|
617
615
|
}
|
|
618
616
|
};
|
|
619
|
-
I = new WeakMap(), w = new WeakMap(), W = new WeakMap(), T = new WeakMap(), B = new WeakMap(), F = new WeakMap(), N = new WeakMap(), et = new WeakMap(),
|
|
620
|
-
let
|
|
621
|
-
var
|
|
622
|
-
const
|
|
617
|
+
I = new WeakMap(), w = new WeakMap(), W = new WeakMap(), T = new WeakMap(), B = new WeakMap(), F = new WeakMap(), N = new WeakMap(), et = new WeakMap(), At = new WeakMap(), Tt = new WeakMap(), qt = new WeakMap(), dt = new WeakMap(), ft = new WeakMap(), kt = new WeakMap(), Lt = new WeakMap(), ut = new WeakMap(), Ht = new WeakMap(), it = new WeakMap(), gt = new WeakMap(), a(ae, "RowManager");
|
|
618
|
+
let Gt = ae;
|
|
619
|
+
var Ct, st, j, _t, $t, Mt, It, Wt;
|
|
620
|
+
const at = class at extends HTMLElement {
|
|
623
621
|
constructor() {
|
|
624
622
|
super();
|
|
625
|
-
c(this,
|
|
623
|
+
c(this, Ct);
|
|
626
624
|
c(this, st, null);
|
|
627
625
|
c(this, j);
|
|
628
626
|
/**
|
|
@@ -640,7 +638,7 @@ const ct = class ct extends HTMLElement {
|
|
|
640
638
|
].forEach(({ selector: s, type: n }) => {
|
|
641
639
|
const r = this.querySelector(s);
|
|
642
640
|
if (!r) return;
|
|
643
|
-
const o = t(this,
|
|
641
|
+
const o = t(this, Mt).call(this, t(this, st), n);
|
|
644
642
|
r.innerHTML = "", r.appendChild(o);
|
|
645
643
|
});
|
|
646
644
|
}, "#renderSplitContainers"));
|
|
@@ -656,7 +654,7 @@ const ct = class ct extends HTMLElement {
|
|
|
656
654
|
});
|
|
657
655
|
}, "#updateContainerWidths"));
|
|
658
656
|
v(this, "generate", /* @__PURE__ */ a((e) => {
|
|
659
|
-
e && (g(this, st,
|
|
657
|
+
e && (g(this, st, Zt.compile(e)), t(this, st).style.display = "table", t(this, _t).call(this), t(this, $t).call(this), requestAnimationFrame(() => {
|
|
660
658
|
var n;
|
|
661
659
|
const s = (n = this.querySelector("thead")) == null ? void 0 : n.getBoundingClientRect().height;
|
|
662
660
|
this.querySelectorAll("tbody.fixed-tbody").forEach((r) => {
|
|
@@ -670,7 +668,7 @@ const ct = class ct extends HTMLElement {
|
|
|
670
668
|
/**
|
|
671
669
|
* π― λ§μ€ν° ν
μ΄λΈμ κΈ°λ°μΌλ‘ νΉμ fixed νμ
μμλ§ λ¨κΈ°λ λΆν ν¬νΌ
|
|
672
670
|
*/
|
|
673
|
-
c(this,
|
|
671
|
+
c(this, Mt, /* @__PURE__ */ a((e, s) => {
|
|
674
672
|
const n = e.cloneNode(!0), r = n.querySelector("tbody");
|
|
675
673
|
if (r) {
|
|
676
674
|
const o = document.createElement("tbody");
|
|
@@ -693,11 +691,11 @@ const ct = class ct extends HTMLElement {
|
|
|
693
691
|
const s = this.querySelector(".ng-container-body");
|
|
694
692
|
s && (s.scrollTop = e);
|
|
695
693
|
}, "scrollToY"));
|
|
696
|
-
c(this,
|
|
697
|
-
t(this,
|
|
694
|
+
c(this, It, /* @__PURE__ */ a(() => {
|
|
695
|
+
t(this, Wt).call(this);
|
|
698
696
|
}, "#init"));
|
|
699
|
-
c(this,
|
|
700
|
-
const e =
|
|
697
|
+
c(this, Wt, /* @__PURE__ */ a(() => {
|
|
698
|
+
const e = at.SCROLLBAR_SIZE;
|
|
701
699
|
this.innerHTML = `
|
|
702
700
|
<style>
|
|
703
701
|
nine-table-sheet {
|
|
@@ -843,31 +841,31 @@ const ct = class ct extends HTMLElement {
|
|
|
843
841
|
</div>
|
|
844
842
|
`;
|
|
845
843
|
}, "#render"));
|
|
846
|
-
g(this, j, new
|
|
844
|
+
g(this, j, new Gt(this)), g(this, Ct, this.getRootNode().host);
|
|
847
845
|
}
|
|
848
846
|
connectedCallback() {
|
|
849
|
-
t(this,
|
|
847
|
+
t(this, It).call(this);
|
|
850
848
|
}
|
|
851
849
|
disconnectedCallback() {
|
|
852
850
|
this.innerHTML = "", H.log("NineTableSheet destroyed.");
|
|
853
851
|
}
|
|
854
852
|
};
|
|
855
|
-
|
|
856
|
-
let
|
|
857
|
-
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet",
|
|
858
|
-
var
|
|
859
|
-
const
|
|
853
|
+
Ct = new WeakMap(), st = new WeakMap(), j = new WeakMap(), _t = new WeakMap(), $t = new WeakMap(), Mt = new WeakMap(), It = new WeakMap(), Wt = new WeakMap(), a(at, "NineTableSheet"), v(at, "SCROLLBAR_SIZE", 16);
|
|
854
|
+
let vt = at;
|
|
855
|
+
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", vt);
|
|
856
|
+
var Ot, bt;
|
|
857
|
+
const ce = class ce extends HTMLElement {
|
|
860
858
|
constructor() {
|
|
861
859
|
super();
|
|
862
|
-
c(this,
|
|
860
|
+
c(this, Ot, /* @__PURE__ */ a(() => {
|
|
863
861
|
var e;
|
|
864
862
|
(e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (s) => {
|
|
865
863
|
var o;
|
|
866
864
|
const n = s.ctrlKey || s.metaKey || s.shiftKey, r = parseInt((o = s.target.closest(".nine-tab-item")) == null ? void 0 : o.dataset.index, 10);
|
|
867
|
-
t(this,
|
|
868
|
-
}), t(this,
|
|
865
|
+
t(this, bt).call(this, r, n);
|
|
866
|
+
}), t(this, bt).call(this, 0, !1);
|
|
869
867
|
}, "#init"));
|
|
870
|
-
c(this,
|
|
868
|
+
c(this, bt, /* @__PURE__ */ a((e, s = !1) => {
|
|
871
869
|
const n = /* @__PURE__ */ a(() => {
|
|
872
870
|
const f = Array.from(this.querySelectorAll("nine-table-sheet"));
|
|
873
871
|
Array.from(this.querySelectorAll("nine-splitter")).forEach((y) => y.style.setProperty("display", "none"));
|
|
@@ -900,30 +898,30 @@ const he = class he extends HTMLElement {
|
|
|
900
898
|
}, "#switchSheet"));
|
|
901
899
|
}
|
|
902
900
|
connectedCallback() {
|
|
903
|
-
t(this,
|
|
901
|
+
t(this, Ot).call(this);
|
|
904
902
|
}
|
|
905
903
|
};
|
|
906
|
-
|
|
907
|
-
let
|
|
908
|
-
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets",
|
|
909
|
-
var q,
|
|
910
|
-
const
|
|
904
|
+
Ot = new WeakMap(), bt = new WeakMap(), a(ce, "NineTableSheets");
|
|
905
|
+
let Jt = ce;
|
|
906
|
+
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", Jt);
|
|
907
|
+
var q, zt, yt, Dt;
|
|
908
|
+
const he = class he {
|
|
911
909
|
constructor(i) {
|
|
912
910
|
c(this, q);
|
|
913
|
-
c(this,
|
|
914
|
-
t(this,
|
|
911
|
+
c(this, zt, /* @__PURE__ */ a(() => {
|
|
912
|
+
t(this, Dt).call(this), new ResizeObserver((i) => {
|
|
915
913
|
for (let e of i)
|
|
916
|
-
t(this, q).getAttribute("auto-height") === "true" && t(this,
|
|
914
|
+
t(this, q).getAttribute("auto-height") === "true" && t(this, yt).call(this);
|
|
917
915
|
}).observe(t(this, q));
|
|
918
916
|
}, "#init"));
|
|
919
|
-
c(this,
|
|
917
|
+
c(this, yt, /* @__PURE__ */ a(() => {
|
|
920
918
|
var d, h;
|
|
921
919
|
const i = Array.from(t(this, q).shadowRoot.querySelectorAll("nine-table-sheet.active"));
|
|
922
920
|
if (i.length === 0) return;
|
|
923
|
-
const e = parseInt(t(this, q).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), n = (d = t(this, q).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : d.getBoundingClientRect().height, r = (h = t(this, q).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : h.getBoundingClientRect().height, o =
|
|
921
|
+
const e = parseInt(t(this, q).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), n = (d = t(this, q).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : d.getBoundingClientRect().height, r = (h = t(this, q).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : h.getBoundingClientRect().height, o = vt.SCROLLBAR_SIZE, l = e * s + n + r + o;
|
|
924
922
|
t(this, q).style.height = `${l}px`;
|
|
925
923
|
}, "#applyAutoHeight"));
|
|
926
|
-
c(this,
|
|
924
|
+
c(this, Dt, /* @__PURE__ */ a(() => {
|
|
927
925
|
const e = Array.from(t(this, q).children).filter((d) => d.tagName === "TABLE"), s = t(this, q).getAttribute("auto-height") === "true", n = e.length, r = e.map((d, h) => {
|
|
928
926
|
const u = `<nine-table-sheet class="${h === 0 ? "active" : ""}" data-index="${h}"></nine-table-sheet>`, b = h < n - 1 ? `<nine-splitter class="h" data-split-index="${h}"></nine-splitter>` : "";
|
|
929
927
|
return u + b;
|
|
@@ -1022,22 +1020,22 @@ const de = class de {
|
|
|
1022
1020
|
const l = t(this, q).shadowRoot.querySelectorAll("nine-table-sheet");
|
|
1023
1021
|
l == null || l.forEach((d, h) => {
|
|
1024
1022
|
e[h] && setTimeout(() => {
|
|
1025
|
-
d.generate(e[h]), s && t(this,
|
|
1023
|
+
d.generate(e[h]), s && t(this, yt).call(this);
|
|
1026
1024
|
});
|
|
1027
1025
|
});
|
|
1028
1026
|
}, "#render"));
|
|
1029
|
-
g(this, q, i), t(this,
|
|
1027
|
+
g(this, q, i), t(this, zt).call(this);
|
|
1030
1028
|
}
|
|
1031
1029
|
};
|
|
1032
|
-
q = new WeakMap(),
|
|
1033
|
-
let
|
|
1034
|
-
var
|
|
1035
|
-
const
|
|
1030
|
+
q = new WeakMap(), zt = new WeakMap(), yt = new WeakMap(), Dt = new WeakMap(), a(he, "LayoutManager");
|
|
1031
|
+
let Qt = he;
|
|
1032
|
+
var pt, nt;
|
|
1033
|
+
const de = class de {
|
|
1036
1034
|
constructor(i) {
|
|
1037
|
-
c(this,
|
|
1035
|
+
c(this, pt);
|
|
1038
1036
|
c(this, nt, -1);
|
|
1039
|
-
v(this, "count", /* @__PURE__ */ a(() => t(this,
|
|
1040
|
-
g(this,
|
|
1037
|
+
v(this, "count", /* @__PURE__ */ a(() => t(this, pt).rawRecords.length, "count"));
|
|
1038
|
+
g(this, pt, i);
|
|
1041
1039
|
}
|
|
1042
1040
|
get at() {
|
|
1043
1041
|
return t(this, nt);
|
|
@@ -1047,25 +1045,25 @@ const fe = class fe {
|
|
|
1047
1045
|
});
|
|
1048
1046
|
}
|
|
1049
1047
|
};
|
|
1050
|
-
|
|
1051
|
-
let
|
|
1052
|
-
var k, E, L, ot,
|
|
1048
|
+
pt = new WeakMap(), nt = new WeakMap(), a(de, "ngRow");
|
|
1049
|
+
let te = de;
|
|
1050
|
+
var k, E, L, ot, Bt, P, Nt, K, mt, Pt, Vt, rt;
|
|
1053
1051
|
const C = class C {
|
|
1054
1052
|
constructor(i, e) {
|
|
1055
1053
|
c(this, k);
|
|
1056
1054
|
c(this, E);
|
|
1057
1055
|
c(this, L, []);
|
|
1058
1056
|
c(this, ot, []);
|
|
1059
|
-
c(this,
|
|
1057
|
+
c(this, Bt, 0);
|
|
1060
1058
|
c(this, P, []);
|
|
1061
|
-
c(this,
|
|
1059
|
+
c(this, Nt, /* @__PURE__ */ a(() => {
|
|
1062
1060
|
g(this, P, []);
|
|
1063
1061
|
const i = t(this, k).template || [];
|
|
1064
1062
|
Array.from(i).forEach((e) => {
|
|
1065
1063
|
var s;
|
|
1066
1064
|
t(this, P).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
|
|
1067
1065
|
}), (t(this, E).rawRecords || []).forEach((e) => {
|
|
1068
|
-
e.__ng || (e.__ng = t(this,
|
|
1066
|
+
e.__ng || (e.__ng = t(this, mt).call(this)), e.__ng.height = t(this, P).slice();
|
|
1069
1067
|
});
|
|
1070
1068
|
}, "#initialize"));
|
|
1071
1069
|
c(this, K, /* @__PURE__ */ a(() => {
|
|
@@ -1089,7 +1087,7 @@ const C = class C {
|
|
|
1089
1087
|
v(this, "set", /* @__PURE__ */ a((i) => {
|
|
1090
1088
|
this.clear(), this.add(i, !1), t(this, K).call(this);
|
|
1091
1089
|
}, "set"));
|
|
1092
|
-
c(this,
|
|
1090
|
+
c(this, mt, /* @__PURE__ */ a(() => ({
|
|
1093
1091
|
rowState: C.ROW_STATE.EMPTY,
|
|
1094
1092
|
deleted: !1,
|
|
1095
1093
|
filtered: !1,
|
|
@@ -1105,7 +1103,7 @@ const C = class C {
|
|
|
1105
1103
|
var i;
|
|
1106
1104
|
t(this, E).rawRecords = [], g(this, L, []), g(this, ot, []), (i = t(this, E).viewRecords) != null && i.reset && t(this, E).viewRecords.reset();
|
|
1107
1105
|
}, "clear"));
|
|
1108
|
-
c(this,
|
|
1106
|
+
c(this, Pt, /* @__PURE__ */ a((i) => {
|
|
1109
1107
|
var n;
|
|
1110
1108
|
Array.isArray(i) || (i = [i]);
|
|
1111
1109
|
const e = typeof ((n = t(this, k).fields) == null ? void 0 : n.get) == "function" ? t(this, k).fields.get() : Object.keys(i[0] || {}), s = [];
|
|
@@ -1116,13 +1114,13 @@ const C = class C {
|
|
|
1116
1114
|
}), s.push(o);
|
|
1117
1115
|
}), s;
|
|
1118
1116
|
}, "#json2Array"));
|
|
1119
|
-
c(this,
|
|
1120
|
-
e.__ng = t(this,
|
|
1117
|
+
c(this, Vt, /* @__PURE__ */ a((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
|
|
1118
|
+
e.__ng = t(this, mt).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = C.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
|
|
1121
1119
|
}), i), "#defaultInsert"));
|
|
1122
1120
|
v(this, "add", /* @__PURE__ */ a((i, e = !0) => {
|
|
1123
1121
|
i === void 0 && (i = {});
|
|
1124
|
-
const s = t(this,
|
|
1125
|
-
t(this, E).rawRecords = t(this, E).rawRecords.concat(t(this,
|
|
1122
|
+
const s = t(this, Pt).call(this, i);
|
|
1123
|
+
t(this, E).rawRecords = t(this, E).rawRecords.concat(t(this, Vt).call(this, s)), this.resetRecords();
|
|
1126
1124
|
const n = this.count() - 1;
|
|
1127
1125
|
return e || s.forEach((r, o) => {
|
|
1128
1126
|
const l = t(this, E).rawRecords[n - o];
|
|
@@ -1170,7 +1168,7 @@ const C = class C {
|
|
|
1170
1168
|
return e ? r[0] : r;
|
|
1171
1169
|
}, "#conv"));
|
|
1172
1170
|
v(this, "count", /* @__PURE__ */ a(() => this.getValidData().length, "count"));
|
|
1173
|
-
g(this, k, i), g(this, E, e), t(this,
|
|
1171
|
+
g(this, k, i), g(this, E, e), t(this, Nt).call(this);
|
|
1174
1172
|
}
|
|
1175
1173
|
get source() {
|
|
1176
1174
|
return t(this, rt).call(this, t(this, E).rawRecords);
|
|
@@ -1179,7 +1177,7 @@ const C = class C {
|
|
|
1179
1177
|
this.clear(), this.add(i, !1);
|
|
1180
1178
|
}
|
|
1181
1179
|
get nextId() {
|
|
1182
|
-
return ++
|
|
1180
|
+
return ++me(this, Bt)._;
|
|
1183
1181
|
}
|
|
1184
1182
|
get length() {
|
|
1185
1183
|
return t(this, L).length;
|
|
@@ -1188,7 +1186,7 @@ const C = class C {
|
|
|
1188
1186
|
return this.length;
|
|
1189
1187
|
}
|
|
1190
1188
|
};
|
|
1191
|
-
k = new WeakMap(), E = new WeakMap(), L = new WeakMap(), ot = new WeakMap(),
|
|
1189
|
+
k = new WeakMap(), E = new WeakMap(), L = new WeakMap(), ot = new WeakMap(), Bt = new WeakMap(), P = new WeakMap(), Nt = new WeakMap(), K = new WeakMap(), mt = new WeakMap(), Pt = new WeakMap(), Vt = new WeakMap(), rt = new WeakMap(), a(C, "ngData"), // π― ν μν μ μ μμλ₯Ό ν΄λμ€ λ΄λΆλ‘ λ΄μ¬ν
|
|
1192
1190
|
v(C, "ROW_STATE", {
|
|
1193
1191
|
EMPTY: "EMPTY",
|
|
1194
1192
|
NORMAL: "NORMAL",
|
|
@@ -1196,12 +1194,12 @@ v(C, "ROW_STATE", {
|
|
|
1196
1194
|
UPDATE: "UPDATE",
|
|
1197
1195
|
DELETE: "DELETE"
|
|
1198
1196
|
});
|
|
1199
|
-
let
|
|
1197
|
+
let ee = C;
|
|
1200
1198
|
var Z;
|
|
1201
|
-
const
|
|
1199
|
+
const fe = class fe {
|
|
1202
1200
|
constructor(i) {
|
|
1203
1201
|
c(this, Z);
|
|
1204
|
-
g(this, Z, i), this.row = new
|
|
1202
|
+
g(this, Z, i), this.row = new te(this), this.data = new ee(t(this, Z), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
|
|
1205
1203
|
var e;
|
|
1206
1204
|
(e = t(this, Z).view) != null && e.redraw && t(this, Z).view.redraw();
|
|
1207
1205
|
}, this.setDataSource = (e) => {
|
|
@@ -1218,10 +1216,10 @@ const ue = class ue {
|
|
|
1218
1216
|
}, this.setDataSource([]);
|
|
1219
1217
|
}
|
|
1220
1218
|
};
|
|
1221
|
-
Z = new WeakMap(), a(
|
|
1222
|
-
let
|
|
1223
|
-
var lt, A,
|
|
1224
|
-
const
|
|
1219
|
+
Z = new WeakMap(), a(fe, "ngDataManager");
|
|
1220
|
+
let ie = fe;
|
|
1221
|
+
var lt, A, xt, Yt;
|
|
1222
|
+
const ue = class ue {
|
|
1225
1223
|
// π― μ΄μ { name: string, type: string } κ°μ²΄λ€μ λ°°μ΄λ‘ κ΄λ¦¬ν©λλ€.
|
|
1226
1224
|
constructor(i) {
|
|
1227
1225
|
c(this, lt);
|
|
@@ -1229,15 +1227,15 @@ const ge = class ge {
|
|
|
1229
1227
|
v(this, "add", /* @__PURE__ */ a((i, e = "string") => {
|
|
1230
1228
|
i.forEach((s) => {
|
|
1231
1229
|
t(this, A).some((n) => n.name === s) || t(this, A).push({ name: s, type: e });
|
|
1232
|
-
}), t(this,
|
|
1230
|
+
}), t(this, xt).call(this);
|
|
1233
1231
|
}, "add"));
|
|
1234
|
-
c(this,
|
|
1232
|
+
c(this, xt, /* @__PURE__ */ a(() => {
|
|
1235
1233
|
const i = /* @__PURE__ */ new Map();
|
|
1236
1234
|
t(this, A).forEach((e) => {
|
|
1237
1235
|
i.set(e.name, e.type);
|
|
1238
1236
|
}), g(this, A, Array.from(i, ([e, s]) => ({ name: e, type: s }))), g(this, A, t(this, A).filter((e) => e.name !== "" && e.name !== "__ng")), t(this, A).sort((e, s) => e.name.length < s.name.length ? 1 : -1);
|
|
1239
1237
|
}, "#adjust"));
|
|
1240
|
-
c(this,
|
|
1238
|
+
c(this, Yt, /* @__PURE__ */ a(() => {
|
|
1241
1239
|
g(this, A, []), H.log(t(this, lt).querySelectorAll("table"));
|
|
1242
1240
|
const i = Array.from(t(this, lt).querySelectorAll("table"));
|
|
1243
1241
|
if (!(!i || i.length === 0)) {
|
|
@@ -1266,10 +1264,10 @@ const ge = class ge {
|
|
|
1266
1264
|
});
|
|
1267
1265
|
});
|
|
1268
1266
|
});
|
|
1269
|
-
t(this,
|
|
1267
|
+
t(this, xt).call(this);
|
|
1270
1268
|
}
|
|
1271
1269
|
}, "#init"));
|
|
1272
|
-
g(this, lt, i), t(this,
|
|
1270
|
+
g(this, lt, i), t(this, Yt).call(this);
|
|
1273
1271
|
}
|
|
1274
1272
|
// π― κΈ°μ‘΄μ νλ μ΄λ¦λ§ μ°λ κ³³λ€κ³Όμ νΈνμ μν΄ μ΄λ¦ λ°°μ΄λ§ 리ν΄νλ λ©μλ μ μ§
|
|
1275
1273
|
get() {
|
|
@@ -1291,22 +1289,22 @@ const ge = class ge {
|
|
|
1291
1289
|
return t(this, A).some((e) => e.name === i);
|
|
1292
1290
|
}
|
|
1293
1291
|
};
|
|
1294
|
-
lt = new WeakMap(), A = new WeakMap(),
|
|
1295
|
-
let
|
|
1296
|
-
var G,
|
|
1297
|
-
const
|
|
1292
|
+
lt = new WeakMap(), A = new WeakMap(), xt = new WeakMap(), Yt = new WeakMap(), a(ue, "ngFields");
|
|
1293
|
+
let se = ue;
|
|
1294
|
+
var G, Xt, Ut;
|
|
1295
|
+
const ge = class ge extends HTMLElement {
|
|
1298
1296
|
constructor() {
|
|
1299
1297
|
super();
|
|
1300
1298
|
//#created = false;
|
|
1301
1299
|
c(this, G);
|
|
1302
|
-
c(this,
|
|
1303
|
-
c(this,
|
|
1304
|
-
this.fields = new
|
|
1300
|
+
c(this, Xt);
|
|
1301
|
+
c(this, Ut, /* @__PURE__ */ a(() => {
|
|
1302
|
+
this.fields = new se(this), g(this, Xt, new Qt(this)), H.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
|
|
1305
1303
|
}, "#init"));
|
|
1306
|
-
this.attachShadow({ mode: "open" }), g(this, G, new
|
|
1304
|
+
this.attachShadow({ mode: "open" }), g(this, G, new ie(this));
|
|
1307
1305
|
}
|
|
1308
1306
|
connectedCallback() {
|
|
1309
|
-
t(this,
|
|
1307
|
+
t(this, Ut).call(this);
|
|
1310
1308
|
}
|
|
1311
1309
|
disconnectedCallback() {
|
|
1312
1310
|
H.log("NineTable disconnected.");
|
|
@@ -1324,7 +1322,7 @@ const be = class be extends HTMLElement {
|
|
|
1324
1322
|
return t(this, G);
|
|
1325
1323
|
}
|
|
1326
1324
|
};
|
|
1327
|
-
G = new WeakMap(),
|
|
1328
|
-
let
|
|
1329
|
-
customElements.get("nine-table") || customElements.define("nine-table",
|
|
1325
|
+
G = new WeakMap(), Xt = new WeakMap(), Ut = new WeakMap(), a(ge, "NineTable");
|
|
1326
|
+
let ne = ge;
|
|
1327
|
+
customElements.get("nine-table") || customElements.define("nine-table", ne);
|
|
1330
1328
|
//# sourceMappingURL=nine-table.js.map
|