@ninebone/table 0.0.277 β†’ 0.0.278

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.
@@ -1,30 +1,30 @@
1
- var Ne = Object.defineProperty;
2
- var Be = (p) => {
1
+ var Be = Object.defineProperty;
2
+ var Pe = (p) => {
3
3
  throw TypeError(p);
4
4
  };
5
- var Xe = (p, i, t) => i in p ? Ne(p, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[i] = t;
6
- var a = (p, i) => Ne(p, "name", { value: i, configurable: !0 });
7
- var x = (p, i, t) => Xe(p, typeof i != "symbol" ? i + "" : i, t), Pe = (p, i, t) => i.has(p) || Be("Cannot " + t);
8
- var e = (p, i, t) => (Pe(p, i, "read from private field"), t ? t.call(p) : i.get(p)), d = (p, i, t) => i.has(p) ? Be("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(p) : i.set(p, t), g = (p, i, t, s) => (Pe(p, i, "write to private field"), s ? s.call(p, t) : i.set(p, t), t);
9
- var Ve = (p, i, t, s) => ({
5
+ var Ye = (p, i, t) => i in p ? Be(p, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[i] = t;
6
+ var a = (p, i) => Be(p, "name", { value: i, configurable: !0 });
7
+ var x = (p, i, t) => Ye(p, typeof i != "symbol" ? i + "" : i, t), Ve = (p, i, t) => i.has(p) || Pe("Cannot " + t);
8
+ var e = (p, i, t) => (Ve(p, i, "read from private field"), t ? t.call(p) : i.get(p)), d = (p, i, t) => i.has(p) ? Pe("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(p) : i.set(p, t), b = (p, i, t, s) => (Ve(p, i, "write to private field"), s ? s.call(p, t) : i.set(p, t), t);
9
+ var Xe = (p, i, t, s) => ({
10
10
  set _(n) {
11
- g(p, i, n, t);
11
+ b(p, i, n, t);
12
12
  },
13
13
  get _() {
14
14
  return e(p, i, s);
15
15
  }
16
16
  });
17
- import { trace as Ye } from "@ninebone/util";
18
- const _e = class _e extends Ye.constructor {
17
+ import { trace as Ue } from "@ninebone/util";
18
+ const Ie = class Ie extends Ue.constructor {
19
19
  constructor() {
20
20
  super(), this.init("nine-table", "green");
21
21
  }
22
22
  };
23
- a(_e, "Trace");
24
- let ve = _e;
25
- const j = new ve();
26
- var k, W, y, O, z, D, re, N, oe;
27
- const Ie = class Ie extends HTMLElement {
23
+ a(Ie, "Trace");
24
+ let Se = Ie;
25
+ const j = new Se();
26
+ var k, W, y, O, z, N, re, D, oe;
27
+ const He = class He extends HTMLElement {
28
28
  constructor() {
29
29
  super();
30
30
  d(this, k);
@@ -32,13 +32,13 @@ const Ie = class Ie extends HTMLElement {
32
32
  d(this, y);
33
33
  d(this, O);
34
34
  d(this, z);
35
- d(this, D);
35
+ d(this, N);
36
36
  d(this, re, /* @__PURE__ */ a(() => {
37
37
  if (!e(this, k)) return;
38
38
  const t = e(this, k).querySelector(".ng-container-body");
39
- t && (g(this, D, new ResizeObserver(() => {
39
+ t && (b(this, N, new ResizeObserver(() => {
40
40
  this.refresh();
41
- })), e(this, D).observe(t));
41
+ })), e(this, N).observe(t));
42
42
  }, "#observeResize"));
43
43
  x(this, "refresh", /* @__PURE__ */ a(() => {
44
44
  if (!e(this, k) || !e(this, y) || e(this, W)) return;
@@ -55,13 +55,13 @@ const Ie = class Ie extends HTMLElement {
55
55
  if (h <= 0) return;
56
56
  const f = Math.max(Math.min(h * (l / c), h), 20);
57
57
  o.style.width = `${f}px`;
58
- const b = t.scrollLeft, u = c - l;
58
+ const g = t.scrollLeft, u = c - l;
59
59
  let v = 0;
60
- u > 0 && (v = parseInt(b / u * (h - f), 10)), v < 0 && (v = 0);
60
+ u > 0 && (v = parseInt(g / u * (h - f), 10)), v < 0 && (v = 0);
61
61
  const w = h - f;
62
62
  v > w && (v = w), o.style.left = `${v}px`, j.log(v), e(this, y).left.disabled = v === 0, e(this, y).right.disabled = v >= w - 1;
63
63
  }, "refresh"));
64
- d(this, N, /* @__PURE__ */ a((t) => {
64
+ d(this, D, /* @__PURE__ */ a((t) => {
65
65
  if (!e(this, y)) return !1;
66
66
  const s = e(this, y).container, n = s.querySelector("table");
67
67
  if (!n) return !1;
@@ -71,17 +71,17 @@ const Ie = class Ie extends HTMLElement {
71
71
  const c = o.width - r;
72
72
  l > c && (l = c), l = parseInt(l, 10), e(this, y).thumb.style.left = `${l}px`, e(this, y).left.disabled = l === 0, e(this, y).right.disabled = l >= c - 1;
73
73
  const h = s.clientWidth, f = n.scrollWidth;
74
- let b = c > 0 ? -l * (f - h) / c : 0;
75
- return -b > f - h && (b = -(f - h)), -b + 5 > f - h && (b = -(f - h)), h >= f && (b = 0), n.style.transform = `translateX(${b}px)`, l > 0 && l < c - 1;
74
+ let g = c > 0 ? -l * (f - h) / c : 0;
75
+ return -g > f - h && (g = -(f - h)), -g + 5 > f - h && (g = -(f - h)), h >= f && (g = 0), n.style.transform = `translateX(${g}px)`, l > 0 && l < c - 1;
76
76
  }, "#thumbMoveTo"));
77
77
  d(this, oe, /* @__PURE__ */ a(() => {
78
78
  const t = /* @__PURE__ */ a((n) => {
79
79
  clearInterval(e(this, O)), clearInterval(e(this, z));
80
80
  const o = parseInt(e(this, y).thumb.style.left || 0, 10);
81
- e(this, N).call(this, o + n), g(this, O, setInterval(() => {
82
- clearInterval(e(this, O)), g(this, z, setInterval(() => {
81
+ e(this, D).call(this, o + n), b(this, O, setInterval(() => {
82
+ clearInterval(e(this, O)), b(this, z, setInterval(() => {
83
83
  const r = parseInt(e(this, y).thumb.style.left || 0, 10);
84
- e(this, N).call(this, r + n) || clearInterval(e(this, z));
84
+ e(this, D).call(this, r + n) || clearInterval(e(this, z));
85
85
  }, 50));
86
86
  }, 500));
87
87
  }, "delayScroll"), s = /* @__PURE__ */ a(() => {
@@ -97,23 +97,23 @@ const Ie = class Ie extends HTMLElement {
97
97
  if (n.button !== 0) return;
98
98
  n.preventDefault();
99
99
  const o = e(this, y).track.getBoundingClientRect(), r = e(this, y).thumb.clientWidth;
100
- e(this, N).call(this, n.clientX - o.left - r / 2);
100
+ e(this, D).call(this, n.clientX - o.left - r / 2);
101
101
  }), e(this, y).thumb.addEventListener("mousedown", (n) => {
102
102
  if (n.button !== 0) return;
103
- n.stopPropagation(), n.preventDefault(), g(this, W, !0), this.shiftX = n.clientX - e(this, y).thumb.getBoundingClientRect().left;
103
+ n.stopPropagation(), n.preventDefault(), b(this, W, !0), this.shiftX = n.clientX - e(this, y).thumb.getBoundingClientRect().left;
104
104
  const o = /* @__PURE__ */ a((l) => {
105
105
  if (!e(this, W)) return;
106
106
  const c = e(this, y).track.getBoundingClientRect();
107
- e(this, N).call(this, l.clientX - c.left - this.shiftX);
107
+ e(this, D).call(this, l.clientX - c.left - this.shiftX);
108
108
  }, "onMouseMove"), r = /* @__PURE__ */ a(() => {
109
- g(this, W, !1), s(), document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", r), this.refresh();
109
+ b(this, W, !1), s(), document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", r), this.refresh();
110
110
  }, "onMouseUp");
111
111
  document.addEventListener("mousemove", o), document.addEventListener("mouseup", r);
112
112
  });
113
113
  }, "#init"));
114
114
  }
115
115
  connectedCallback() {
116
- if (g(this, k, this.closest("nine-table-sheet") || this.getRootNode().host), !e(this, k)) return;
116
+ if (b(this, k, this.closest("nine-table-sheet") || this.getRootNode().host), !e(this, k)) return;
117
117
  this.innerHTML = `
118
118
  <style>
119
119
  nine-table-hscrollbar {
@@ -183,7 +183,7 @@ const Ie = class Ie extends HTMLElement {
183
183
  setTimeout(t, 10);
184
184
  return;
185
185
  }
186
- g(this, y, {
186
+ b(this, y, {
187
187
  container: s,
188
188
  track: this.querySelector(".ng-scroll-track"),
189
189
  thumb: this.querySelector(".ng-scroll-thumb"),
@@ -194,14 +194,85 @@ const Ie = class Ie extends HTMLElement {
194
194
  t();
195
195
  }
196
196
  disconnectedCallback() {
197
- e(this, D) && e(this, D).disconnect();
197
+ e(this, N) && e(this, N).disconnect();
198
198
  }
199
199
  };
200
- k = new WeakMap(), W = new WeakMap(), y = new WeakMap(), O = new WeakMap(), z = new WeakMap(), D = new WeakMap(), re = new WeakMap(), N = new WeakMap(), oe = new WeakMap(), a(Ie, "NineTableHScrollBar");
201
- let Se = Ie;
202
- customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", Se);
203
- var T, I, E, H, B, P, le, G, ae, J, ce;
204
- const He = class He {
200
+ k = new WeakMap(), W = new WeakMap(), y = new WeakMap(), O = new WeakMap(), z = new WeakMap(), N = new WeakMap(), re = new WeakMap(), D = new WeakMap(), oe = new WeakMap(), a(He, "NineTableHScrollBar");
201
+ let Ee = He;
202
+ customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", Ee);
203
+ var le, G;
204
+ const L = class L {
205
+ /**
206
+ * 🎯 λ ˆμ΄μ•„μ›ƒ λ‚΄μ˜ μ—¬λŸ¬ rawTables 배열을 μΌκ΄„λ‘œ λ°›μ•„ 단일 λ§ˆμŠ€ν„° ν…œν”Œλ¦ΏμœΌλ‘œ 사전 μ»΄νŒŒμΌν•©λ‹ˆλ‹€.
207
+ */
208
+ static compileAll(i) {
209
+ return Array.isArray(i) ? i.map((t) => L.compile(t)) : [];
210
+ }
211
+ /**
212
+ * 🎯 단일 원본 ν…Œμ΄λΈ”μ„ λ°›μ•„ κΈ°λ³Έ ꡬ쑰 보정 및 2차원 격자 인덱슀 사전 λΆ€μ—¬ μ™„λ£Œλœ λ§ˆμŠ€ν„° ν…Œμ΄λΈ” λ°˜ν™˜
213
+ */
214
+ static compile(i) {
215
+ var n, o, r;
216
+ if (!i) return null;
217
+ const t = i.cloneNode(!0);
218
+ return e(n = L, le).call(n, t), e(o = L, G).call(o, t, "thead"), e(r = L, G).call(r, t, "tbody"), Array.from(t.querySelectorAll("colgroup col")).forEach((l, c) => {
219
+ const h = l.getAttribute("fixed");
220
+ h && t.querySelectorAll(`[data-col="${c}"]`).forEach((f) => {
221
+ f.setAttribute("fixed", h);
222
+ });
223
+ }), t;
224
+ }
225
+ };
226
+ le = new WeakMap(), G = new WeakMap(), a(L, "TableCompiler"), d(L, le, /* @__PURE__ */ a((i) => {
227
+ if (!i.querySelector("colgroup")) {
228
+ const t = i.querySelector("tbody tr") || i.querySelector("tr"), s = t ? t.querySelectorAll("th, td").length : 1, n = document.createElement("colgroup"), o = Math.max(Math.floor(i.clientWidth / s), 100);
229
+ for (let r = 0; r < s; r++) {
230
+ const l = document.createElement("col");
231
+ l.setAttribute("width", o), n.appendChild(l);
232
+ }
233
+ i.prepend(n);
234
+ }
235
+ if (!i.querySelector("thead")) {
236
+ const t = document.createElement("thead"), s = i.querySelector("colgroup");
237
+ s ? s.after(t) : i.prepend(t);
238
+ }
239
+ i.classList.add("nine-table-element"), i.style.display = "table";
240
+ }, "#ensureTableStructure")), d(L, G, /* @__PURE__ */ a((i, t) => {
241
+ const s = Array.from(i.querySelectorAll(t + " tr")), n = Array.from(i.querySelectorAll(t + " th," + t + " td")), o = s.length;
242
+ if (o === 0 || n.length === 0) return;
243
+ let r = 0;
244
+ n.forEach((c) => {
245
+ r += c.colSpan || 1;
246
+ });
247
+ const l = Array.from(Array(o), () => Array(r).fill(null));
248
+ s.forEach((c) => {
249
+ const h = c.sectionRowIndex;
250
+ let f = 0;
251
+ Array.from(c.querySelectorAll("th,td")).forEach((g) => {
252
+ for (let w = 0; w < l[h].length; w++)
253
+ if (l[h][w] === null) {
254
+ f = w;
255
+ break;
256
+ }
257
+ const u = g.rowSpan || 1, v = g.colSpan || 1;
258
+ for (let w = 0; w < u; w++)
259
+ for (let _ = 0; _ < v; _++)
260
+ h + w < o && f + _ < r && (l[h + w][f + _] = w === 0 && _ === 0 ? "1" : "0");
261
+ });
262
+ }), s.forEach((c) => {
263
+ const h = c.sectionRowIndex;
264
+ Array.from(c.querySelectorAll("th,td")).forEach((f) => {
265
+ for (let g = 0; g < l[h].length; g++)
266
+ if (l[h][g] === "1") {
267
+ f.dataset.col = g, l[h][g] = "0";
268
+ break;
269
+ }
270
+ });
271
+ });
272
+ }, "#resetColIndex"));
273
+ let Re = L;
274
+ var T, I, E, H, B, P, ae, ce, J, he, Q, de;
275
+ const Me = class Me {
205
276
  constructor(i) {
206
277
  d(this, T);
207
278
  d(this, I, /* @__PURE__ */ new Map());
@@ -211,26 +282,43 @@ const He = class He {
211
282
  d(this, B, 0);
212
283
  d(this, P, 40);
213
284
  /**
214
- * 🎯 각 μ»¨ν…Œμ΄λ„ˆλ³„λ‘œ λΆ„ν• λœ ν…Œμ΄λΈ”μ„ λ°›μ•„ 독립적인 ν…œν”Œλ¦Ώ TR을 κ΅¬μΆ•ν•˜κ³  λ Œλ”λ§
285
+ * 🎯 NineTableSheetμ—μ„œ λ§ˆμŠ€ν„° ν…Œμ΄λΈ”μ„ 전달받아 각 μ˜μ—­λ³„ ν…Œμ΄λΈ” 생성 및 ν…œν”Œλ¦Ώ μΆ”μΆœ 일원화
215
286
  */
216
- x(this, "initialize", /* @__PURE__ */ a(() => {
217
- g(this, E, null), e(this, I).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((t) => {
218
- const s = e(this, T).querySelector(t);
219
- if (!s) return;
220
- const n = s.querySelector("table");
221
- if (!n) return;
222
- const o = n.querySelector("tbody");
223
- if (!o) return;
224
- const l = Array.from(o.querySelectorAll("tr")).map((c) => c.cloneNode(!0));
225
- e(this, I).set(t, l);
287
+ x(this, "initialize", /* @__PURE__ */ a((i) => {
288
+ if (!i) return;
289
+ b(this, E, null), e(this, I).clear(), [
290
+ { selector: ".ng-container-body", type: null },
291
+ { selector: ".ng-container-left", type: "left" },
292
+ { selector: ".ng-container-right", type: "right" }
293
+ ].forEach(({ selector: n, type: o }) => {
294
+ const r = e(this, T).querySelector(n);
295
+ if (!r) return;
296
+ const l = e(this, ae).call(this, i, o);
297
+ r.innerHTML = "", r.appendChild(l);
298
+ const c = l.querySelector("tbody");
299
+ if (c) {
300
+ const f = Array.from(c.querySelectorAll("tr")).map((g) => g.cloneNode(!0));
301
+ e(this, I).set(n, f);
302
+ }
226
303
  });
227
- const i = e(this, T).querySelector(".ng-container-body");
228
- i && (e(this, le).call(this, i), e(this, J).call(this));
304
+ const s = e(this, T).querySelector(".ng-container-body");
305
+ s && (e(this, ce).call(this, s), e(this, Q).call(this));
229
306
  }, "initialize"));
307
+ /**
308
+ * 🎯 λ§ˆμŠ€ν„° ν…Œμ΄λΈ”μ„ 기반으둜 νŠΉμ • fixed νƒ€μž… μ˜μ—­λ§Œ λ‚¨κΈ°κ±°λ‚˜ μ œκ±°ν•˜λŠ” λΆ„ν•  헬퍼
309
+ */
310
+ d(this, ae, /* @__PURE__ */ a((i, t) => {
311
+ const s = i.cloneNode(!0);
312
+ return t === "left" ? s.querySelectorAll("col, th, td").forEach((n) => {
313
+ n.getAttribute("fixed") !== "left" && n.remove();
314
+ }) : t === "right" ? s.querySelectorAll("col, th, td").forEach((n) => {
315
+ n.getAttribute("fixed") !== "right" && n.remove();
316
+ }) : s.querySelectorAll("[fixed='left'], [fixed='right']").forEach((n) => n.remove()), s;
317
+ }, "#createSplitTable"));
230
318
  /**
231
319
  * 🎯 ν…œν”Œλ¦Ώ TRλ“€μ˜ 총 높이λ₯Ό μΈ‘μ •ν•˜κ³  캐싱
232
320
  */
233
- d(this, le, /* @__PURE__ */ a((i) => {
321
+ d(this, ce, /* @__PURE__ */ a((i) => {
234
322
  if (e(this, E) !== null && e(this, E) > 0)
235
323
  return e(this, E);
236
324
  const t = e(this, I).get(".ng-container-body");
@@ -245,23 +333,23 @@ const He = class He {
245
333
  const r = e(this, T), l = r.style.display, c = r.style.visibility, h = r.style.position;
246
334
  (l === "none" || window.getComputedStyle(r).display === "none") && (r.style.display = "block", r.style.visibility = "hidden", r.style.position = "absolute");
247
335
  let f = 0;
248
- const b = s.querySelectorAll("tr:not(.nodata)");
249
- return b.forEach((u) => {
336
+ const g = s.querySelectorAll("tr:not(.nodata)");
337
+ return g.forEach((u) => {
250
338
  f += u.offsetHeight || u.getBoundingClientRect().height;
251
- }), b.forEach((u) => u.remove()), r.style.display = l, r.style.visibility = c, r.style.position = h, g(this, E, f > 0 ? f : 24), e(this, G).call(this), j.log(`[RowManager] Height Cached: ${e(this, E)}px | RowCount: ${e(this, P)}`), e(this, E);
339
+ }), g.forEach((u) => u.remove()), r.style.display = l, r.style.visibility = c, r.style.position = h, b(this, E, f > 0 ? f : 24), e(this, J).call(this), j.log(`[RowManager] Height Cached: ${e(this, E)}px | RowCount: ${e(this, P)}`), e(this, E);
252
340
  }, "#measureAndCacheHeight"));
253
- d(this, G, /* @__PURE__ */ a(() => {
341
+ d(this, J, /* @__PURE__ */ a(() => {
254
342
  if (e(this, B) > 0 && e(this, E) > 0) {
255
343
  const i = Math.ceil(e(this, B) / e(this, E));
256
- g(this, P, i + 20);
344
+ b(this, P, i + 20);
257
345
  } else
258
- g(this, P, 40);
346
+ b(this, P, 40);
259
347
  }, "#updateRowCount"));
260
348
  /**
261
349
  * 🎯 ResizeObserver μ„€μ •: μ‹œνŠΈ 크기 λ³€κ²½ μ‹œ ν–‰ 개수 μž¬μ‚°μ • 및 μž¬λ Œλ”λ§
262
350
  */
263
- d(this, ae, /* @__PURE__ */ a(() => {
264
- !e(this, T) || !(e(this, T) instanceof HTMLElement) || (g(this, H, new ResizeObserver((i) => {
351
+ d(this, he, /* @__PURE__ */ a(() => {
352
+ !e(this, T) || !(e(this, T) instanceof HTMLElement) || (b(this, H, new ResizeObserver((i) => {
265
353
  for (const t of i) {
266
354
  const s = t.target;
267
355
  if (!s.classList.contains("active")) continue;
@@ -271,7 +359,7 @@ const He = class He {
271
359
  const r = s.querySelector("thead");
272
360
  r && (o += r.offsetHeight || r.getBoundingClientRect().height);
273
361
  const l = Math.max(n - o, 100);
274
- e(this, B) !== l && (g(this, B, l), e(this, G).call(this), e(this, E) !== null && e(this, J).call(this));
362
+ e(this, B) !== l && (b(this, B, l), e(this, J).call(this), e(this, E) !== null && e(this, Q).call(this));
275
363
  }
276
364
  }
277
365
  })), e(this, H).observe(e(this, T)));
@@ -279,13 +367,13 @@ const He = class He {
279
367
  /**
280
368
  * 🎯 λ°”λ”” 및 쒌우 κ³ μ • μ»¨ν…Œμ΄λ„ˆ 전체에 각각에 λ§žλŠ” ν…œν”Œλ¦Ώ ν–‰ λΌˆλŒ€ μ£Όμž…
281
369
  */
282
- d(this, J, /* @__PURE__ */ a(() => {
370
+ d(this, Q, /* @__PURE__ */ a(() => {
283
371
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
284
372
  const t = e(this, T).querySelector(i);
285
- t && t.querySelector("tbody") && e(this, ce).call(this, t, i);
373
+ t && t.querySelector("tbody") && e(this, de).call(this, t, i);
286
374
  });
287
375
  }, "#renderAllContainers"));
288
- d(this, ce, /* @__PURE__ */ a((i, t) => {
376
+ d(this, de, /* @__PURE__ */ a((i, t) => {
289
377
  const s = e(this, I).get(t);
290
378
  if (!s || s.length === 0) return;
291
379
  const n = i.querySelector("tbody");
@@ -299,9 +387,9 @@ const He = class He {
299
387
  o ? o.before(r) : n.appendChild(r);
300
388
  }, "#renderRows"));
301
389
  x(this, "destroy", /* @__PURE__ */ a(() => {
302
- e(this, H) && (e(this, H).disconnect(), g(this, H, null));
390
+ e(this, H) && (e(this, H).disconnect(), b(this, H, null));
303
391
  }, "destroy"));
304
- g(this, T, i), e(this, ae).call(this);
392
+ b(this, T, i), e(this, he).call(this);
305
393
  }
306
394
  getRowHeight() {
307
395
  return e(this, E);
@@ -311,88 +399,17 @@ const He = class He {
311
399
  return ((t = e(this, I).get(i)) == null ? void 0 : t.length) || 1;
312
400
  }
313
401
  };
314
- T = new WeakMap(), I = new WeakMap(), E = new WeakMap(), H = new WeakMap(), B = new WeakMap(), P = new WeakMap(), le = new WeakMap(), G = new WeakMap(), ae = new WeakMap(), J = new WeakMap(), ce = new WeakMap(), a(He, "RowManager");
315
- let Ee = He;
316
- var he, Q;
317
- const L = class L {
318
- /**
319
- * 🎯 λ ˆμ΄μ•„μ›ƒ λ‚΄μ˜ μ—¬λŸ¬ rawTables 배열을 μΌκ΄„λ‘œ λ°›μ•„ 단일 λ§ˆμŠ€ν„° ν…œν”Œλ¦ΏμœΌλ‘œ 사전 μ»΄νŒŒμΌν•©λ‹ˆλ‹€.
320
- */
321
- static compileAll(i) {
322
- return Array.isArray(i) ? i.map((t) => L.compile(t)) : [];
323
- }
324
- /**
325
- * 🎯 단일 원본 ν…Œμ΄λΈ”μ„ λ°›μ•„ κΈ°λ³Έ ꡬ쑰 보정 및 2차원 격자 인덱슀 사전 λΆ€μ—¬ μ™„λ£Œλœ λ§ˆμŠ€ν„° ν…Œμ΄λΈ” λ°˜ν™˜
326
- */
327
- static compile(i) {
328
- var n, o, r;
329
- if (!i) return null;
330
- const t = i.cloneNode(!0);
331
- return e(n = L, he).call(n, t), e(o = L, Q).call(o, t, "thead"), e(r = L, Q).call(r, t, "tbody"), Array.from(t.querySelectorAll("colgroup col")).forEach((l, c) => {
332
- const h = l.getAttribute("fixed");
333
- h && t.querySelectorAll(`[data-col="${c}"]`).forEach((f) => {
334
- f.setAttribute("fixed", h);
335
- });
336
- }), t;
337
- }
338
- };
339
- he = new WeakMap(), Q = new WeakMap(), a(L, "TableCompiler"), d(L, he, /* @__PURE__ */ a((i) => {
340
- if (!i.querySelector("colgroup")) {
341
- const t = i.querySelector("tbody tr") || i.querySelector("tr"), s = t ? t.querySelectorAll("th, td").length : 1, n = document.createElement("colgroup"), o = Math.max(Math.floor(i.clientWidth / s), 100);
342
- for (let r = 0; r < s; r++) {
343
- const l = document.createElement("col");
344
- l.setAttribute("width", o), n.appendChild(l);
345
- }
346
- i.prepend(n);
347
- }
348
- if (!i.querySelector("thead")) {
349
- const t = document.createElement("thead"), s = i.querySelector("colgroup");
350
- s ? s.after(t) : i.prepend(t);
351
- }
352
- i.classList.add("nine-table-element"), i.style.display = "table";
353
- }, "#ensureTableStructure")), d(L, Q, /* @__PURE__ */ a((i, t) => {
354
- const s = Array.from(i.querySelectorAll(t + " tr")), n = Array.from(i.querySelectorAll(t + " th," + t + " td")), o = s.length;
355
- if (o === 0 || n.length === 0) return;
356
- let r = 0;
357
- n.forEach((c) => {
358
- r += c.colSpan || 1;
359
- });
360
- const l = Array.from(Array(o), () => Array(r).fill(null));
361
- s.forEach((c) => {
362
- const h = c.sectionRowIndex;
363
- let f = 0;
364
- Array.from(c.querySelectorAll("th,td")).forEach((b) => {
365
- for (let w = 0; w < l[h].length; w++)
366
- if (l[h][w] === null) {
367
- f = w;
368
- break;
369
- }
370
- const u = b.rowSpan || 1, v = b.colSpan || 1;
371
- for (let w = 0; w < u; w++)
372
- for (let _ = 0; _ < v; _++)
373
- h + w < o && f + _ < r && (l[h + w][f + _] = w === 0 && _ === 0 ? "1" : "0");
374
- });
375
- }), s.forEach((c) => {
376
- const h = c.sectionRowIndex;
377
- Array.from(c.querySelectorAll("th,td")).forEach((f) => {
378
- for (let b = 0; b < l[h].length; b++)
379
- if (l[h][b] === "1") {
380
- f.dataset.col = b, l[h][b] = "0";
381
- break;
382
- }
383
- });
384
- });
385
- }, "#resetColIndex"));
386
- let Re = L;
387
- var C, Y, U, ee, de, fe;
388
- const Z = class Z extends HTMLElement {
402
+ T = new WeakMap(), I = new WeakMap(), E = new WeakMap(), H = new WeakMap(), B = new WeakMap(), P = new WeakMap(), ae = new WeakMap(), ce = new WeakMap(), J = new WeakMap(), he = new WeakMap(), Q = new WeakMap(), de = new WeakMap(), a(Me, "RowManager");
403
+ let Ae = Me;
404
+ var C, Y, U, ee, fe, ue;
405
+ const F = class F extends HTMLElement {
389
406
  constructor() {
390
407
  super();
391
408
  d(this, C, null);
392
409
  d(this, Y);
393
410
  x(this, "generate", /* @__PURE__ */ a((t) => {
394
411
  if (!t) return;
395
- g(this, C, Re.compile(t)), e(this, C).style.display = "table";
412
+ b(this, C, Re.compile(t)), e(this, C).style.display = "table";
396
413
  const s = this.querySelector(".ng-container-left"), n = this.querySelector(".ng-container-body"), o = this.querySelector(".ng-container-right");
397
414
  if (n) {
398
415
  const r = e(this, U).call(this, e(this, C), null);
@@ -449,7 +466,7 @@ const Z = class Z extends HTMLElement {
449
466
  s && (s.scrollTop = t);
450
467
  }, "scrollToY"));
451
468
  d(this, ee, /* @__PURE__ */ a(() => {
452
- var h, f, b;
469
+ var h, f, g;
453
470
  const t = this.querySelector(".ng-container-left table"), s = this.querySelector(".ng-container-body table"), n = this.querySelector(".ng-container-right table");
454
471
  if (!s) return;
455
472
  const o = t ? Array.from(t.querySelectorAll("tr")) : [], r = Array.from(s.querySelectorAll("tr")), l = n ? Array.from(n.querySelectorAll("tr")) : [], c = Math.max(o.length, r.length, l.length);
@@ -457,19 +474,19 @@ const Z = class Z extends HTMLElement {
457
474
  const v = [
458
475
  ((h = o[u]) == null ? void 0 : h.getBoundingClientRect().height) || 0,
459
476
  ((f = r[u]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
460
- ((b = l[u]) == null ? void 0 : b.getBoundingClientRect().height) || 0
477
+ ((g = l[u]) == null ? void 0 : g.getBoundingClientRect().height) || 0
461
478
  ], w = Math.max(...v);
462
479
  w > 0 && (o[u] && (o[u].style.height = `${w}px`), r[u] && (r[u].style.height = `${w}px`), l[u] && (l[u].style.height = `${w}px`));
463
480
  }
464
481
  }, "#syncRowHeights"));
465
- d(this, de, /* @__PURE__ */ a(() => {
466
- e(this, fe).call(this), new MutationObserver((t) => {
482
+ d(this, fe, /* @__PURE__ */ a(() => {
483
+ e(this, ue).call(this), new MutationObserver((t) => {
467
484
  for (const s of t)
468
485
  s.attributeName === "class" && this.classList.contains("active") && e(this, ee).call(this);
469
486
  }).observe(this, { attributes: !0 });
470
487
  }, "#init"));
471
- d(this, fe, /* @__PURE__ */ a(() => {
472
- const t = Z.SCROLLBAR_SIZE;
488
+ d(this, ue, /* @__PURE__ */ a(() => {
489
+ const t = F.SCROLLBAR_SIZE;
473
490
  this.innerHTML = `
474
491
  <style>
475
492
  nine-table-sheet {
@@ -592,23 +609,23 @@ const Z = class Z extends HTMLElement {
592
609
  </div>
593
610
  `;
594
611
  }, "#render"));
595
- g(this, Y, new Ee(this));
612
+ b(this, Y, new Ae(this));
596
613
  }
597
614
  connectedCallback() {
598
- e(this, de).call(this);
615
+ e(this, fe).call(this);
599
616
  }
600
617
  disconnectedCallback() {
601
618
  this.innerHTML = "", j.log("NineTableSheet destroyed.");
602
619
  }
603
620
  };
604
- C = new WeakMap(), Y = new WeakMap(), U = new WeakMap(), ee = new WeakMap(), de = new WeakMap(), fe = new WeakMap(), a(Z, "NineTableSheet"), x(Z, "SCROLLBAR_SIZE", 16);
605
- let ne = Z;
621
+ C = new WeakMap(), Y = new WeakMap(), U = new WeakMap(), ee = new WeakMap(), fe = new WeakMap(), ue = new WeakMap(), a(F, "NineTableSheet"), x(F, "SCROLLBAR_SIZE", 16);
622
+ let ne = F;
606
623
  customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", ne);
607
- var ue, te;
608
- const Me = class Me extends HTMLElement {
624
+ var ge, te;
625
+ const $e = class $e extends HTMLElement {
609
626
  constructor() {
610
627
  super();
611
- d(this, ue, /* @__PURE__ */ a(() => {
628
+ d(this, ge, /* @__PURE__ */ a(() => {
612
629
  var t;
613
630
  (t = this.querySelector(".nine-tab-bar")) == null || t.addEventListener("click", (s) => {
614
631
  var r;
@@ -628,15 +645,15 @@ const Me = class Me extends HTMLElement {
628
645
  }, "updateSplitters"), o = this.querySelector(".nine-tab-bar"), r = this.querySelector("nine-table-sheets-body"), l = o.querySelectorAll(".nine-tab-item"), c = r.querySelectorAll("nine-table-sheet");
629
646
  if (!l[t]) return;
630
647
  if (!s)
631
- l.forEach((f, b) => {
632
- f.classList.toggle("active", b === t);
633
- }), c.forEach((f, b) => {
634
- const u = b === t;
648
+ l.forEach((f, g) => {
649
+ f.classList.toggle("active", g === t);
650
+ }), c.forEach((f, g) => {
651
+ const u = g === t;
635
652
  f.classList.toggle("active", u), f.style.flex = u ? "1 1 100%" : "";
636
653
  });
637
654
  else {
638
- const f = l[t], b = o.querySelectorAll(".nine-tab-item.active");
639
- if (f.classList.contains("active") && b.length <= 1)
655
+ const f = l[t], g = o.querySelectorAll(".nine-tab-item.active");
656
+ if (f.classList.contains("active") && g.length <= 1)
640
657
  return;
641
658
  f.classList.toggle("active");
642
659
  const u = r.querySelector(`nine-table-sheet[data-index="${t}"]`);
@@ -649,18 +666,18 @@ const Me = class Me extends HTMLElement {
649
666
  }, "#switchSheet"));
650
667
  }
651
668
  connectedCallback() {
652
- e(this, ue).call(this);
669
+ e(this, ge).call(this);
653
670
  }
654
671
  };
655
- ue = new WeakMap(), te = new WeakMap(), a(Me, "NineTableSheets");
656
- let Ae = Me;
657
- customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", Ae);
658
- var S, ge, ie, be;
659
- const $e = class $e {
672
+ ge = new WeakMap(), te = new WeakMap(), a($e, "NineTableSheets");
673
+ let qe = $e;
674
+ customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", qe);
675
+ var S, be, ie, ye;
676
+ const We = class We {
660
677
  constructor(i) {
661
678
  d(this, S);
662
- d(this, ge, /* @__PURE__ */ a(() => {
663
- e(this, be).call(this), new ResizeObserver((i) => {
679
+ d(this, be, /* @__PURE__ */ a(() => {
680
+ e(this, ye).call(this), new ResizeObserver((i) => {
664
681
  for (let t of i)
665
682
  e(this, S).getAttribute("auto-height") === "true" && e(this, ie).call(this);
666
683
  }).observe(e(this, S));
@@ -672,10 +689,10 @@ const $e = class $e {
672
689
  const t = parseInt(e(this, S).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), n = (c = e(this, S).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, o = (h = e(this, S).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : h.getBoundingClientRect().height, r = ne.SCROLLBAR_SIZE, l = t * s + n + o + r;
673
690
  e(this, S).style.height = `${l}px`;
674
691
  }, "#applyAutoHeight"));
675
- d(this, be, /* @__PURE__ */ a(() => {
692
+ d(this, ye, /* @__PURE__ */ a(() => {
676
693
  const t = Array.from(e(this, S).children).filter((c) => c.tagName === "TABLE"), s = e(this, S).getAttribute("auto-height") === "true", n = t.length, o = t.map((c, h) => {
677
- const b = `<nine-table-sheet class="${h === 0 ? "active" : ""}" data-index="${h}"></nine-table-sheet>`, u = h < n - 1 ? `<nine-splitter class="h" data-split-index="${h}"></nine-splitter>` : "";
678
- return b + u;
694
+ const g = `<nine-table-sheet class="${h === 0 ? "active" : ""}" data-index="${h}"></nine-table-sheet>`, u = h < n - 1 ? `<nine-splitter class="h" data-split-index="${h}"></nine-splitter>` : "";
695
+ return g + u;
679
696
  }).join(""), r = t.map((c, h) => `<div class="nine-tab-item ${h === 0 ? "active" : ""}" data-index="${h}">Sheet ${h + 1}</div>`).join("");
680
697
  e(this, S).shadowRoot.innerHTML = `
681
698
  <style>
@@ -783,25 +800,25 @@ const $e = class $e {
783
800
  });
784
801
  });
785
802
  }, "#render"));
786
- g(this, S, i), e(this, ge).call(this);
803
+ b(this, S, i), e(this, be).call(this);
787
804
  }
788
805
  };
789
- S = new WeakMap(), ge = new WeakMap(), ie = new WeakMap(), be = new WeakMap(), a($e, "LayoutManager");
790
- let qe = $e;
806
+ S = new WeakMap(), be = new WeakMap(), ie = new WeakMap(), ye = new WeakMap(), a(We, "LayoutManager");
807
+ let Te = We;
791
808
  var M, V;
792
- const We = class We {
809
+ const Oe = class Oe {
793
810
  constructor(i) {
794
811
  d(this, M);
795
812
  d(this, V, -1);
796
813
  x(this, "count", /* @__PURE__ */ a(() => e(this, M).rawRecords.length, "count"));
797
- g(this, M, i);
814
+ b(this, M, i);
798
815
  }
799
816
  get at() {
800
817
  return e(this, V);
801
818
  }
802
819
  set at(i) {
803
820
  var s, n;
804
- g(this, V, parseInt(i, 10));
821
+ b(this, V, parseInt(i, 10));
805
822
  const t = ((n = (s = e(this, M).owner).querySelector) == null ? void 0 : n.call(s, ".ng-container-body")) || e(this, M).owner.body;
806
823
  t && !t.querySelector(`tbody.bindable tr[data-row="${e(this, V)}"]`) && setTimeout(() => {
807
824
  var o, r;
@@ -809,19 +826,19 @@ const We = class We {
809
826
  });
810
827
  }
811
828
  };
812
- M = new WeakMap(), V = new WeakMap(), a(We, "ngRow");
813
- let Te = We;
814
- var R, m, A, F, ye, $, pe, se, me, we, K;
829
+ M = new WeakMap(), V = new WeakMap(), a(Oe, "ngRow");
830
+ let ke = Oe;
831
+ var R, m, A, K, pe, $, me, se, we, xe, Z;
815
832
  const q = class q {
816
833
  constructor(i, t) {
817
834
  d(this, R);
818
835
  d(this, m);
819
836
  d(this, A, []);
820
- d(this, F, []);
821
- d(this, ye, 0);
837
+ d(this, K, []);
838
+ d(this, pe, 0);
822
839
  d(this, $, []);
823
- d(this, pe, /* @__PURE__ */ a(() => {
824
- g(this, $, []);
840
+ d(this, me, /* @__PURE__ */ a(() => {
841
+ b(this, $, []);
825
842
  const i = e(this, R).template || [];
826
843
  Array.from(i).forEach((t) => {
827
844
  var s;
@@ -843,13 +860,13 @@ const q = class q {
843
860
  _: [0, 0, 0, 0, q.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this, $).slice(), -1, {}, {}]
844
861
  }), "#getDefaultMeta"));
845
862
  x(this, "reset", /* @__PURE__ */ a(() => {
846
- g(this, A, []), g(this, F, []);
863
+ b(this, A, []), b(this, K, []);
847
864
  }, "reset"));
848
865
  x(this, "clear", /* @__PURE__ */ a(() => {
849
866
  var i;
850
- e(this, m).rawRecords = [], g(this, A, []), g(this, F, []), (i = e(this, m).viewRecords) != null && i.reset && e(this, m).viewRecords.reset();
867
+ e(this, m).rawRecords = [], b(this, A, []), b(this, K, []), (i = e(this, m).viewRecords) != null && i.reset && e(this, m).viewRecords.reset();
851
868
  }, "clear"));
852
- d(this, me, /* @__PURE__ */ a((i) => {
869
+ d(this, we, /* @__PURE__ */ a((i) => {
853
870
  var n;
854
871
  Array.isArray(i) || (i = [i]);
855
872
  const t = typeof ((n = e(this, R).fields) == null ? void 0 : n.get) == "function" ? e(this, R).fields.get() : Object.keys(i[0] || {}), s = [];
@@ -860,14 +877,14 @@ const q = class q {
860
877
  }), s.push(r);
861
878
  }), s;
862
879
  }, "#json2Array"));
863
- d(this, we, /* @__PURE__ */ a((i) => (Array.isArray(i) || (i = [i]), i.forEach((t) => {
880
+ d(this, xe, /* @__PURE__ */ a((i) => (Array.isArray(i) || (i = [i]), i.forEach((t) => {
864
881
  t.__ng = e(this, se).call(this), t.__ng.rowid = this.nextId, t.__ng.rowState = q.ROW_STATE.INSERT, t.__ng._[0] = t.__ng.rowid;
865
882
  }), i), "#defaultInsert"));
866
883
  x(this, "add", /* @__PURE__ */ a((i, t = !0) => {
867
884
  var o;
868
885
  i === void 0 && (i = {});
869
- const s = e(this, me).call(this, i);
870
- e(this, m).rawRecords = e(this, m).rawRecords.concat(e(this, we).call(this, s)), this.resetRecords();
886
+ const s = e(this, we).call(this, i);
887
+ e(this, m).rawRecords = e(this, m).rawRecords.concat(e(this, xe).call(this, s)), this.resetRecords();
871
888
  const n = this.count() - 1;
872
889
  return t || s.forEach((r, l) => {
873
890
  const c = e(this, m).rawRecords[n - l];
@@ -897,14 +914,14 @@ const q = class q {
897
914
  l !== s && r.__ng.rowState !== q.ROW_STATE.INSERT && (r.__ng.o.hasOwnProperty(t) || (r.__ng.o[t] = l), r.__ng.rowState = q.ROW_STATE.UPDATE), r.v[o] = s, e(this, m).owner.refreshData && e(this, m).owner.refreshData(i);
898
915
  }, "setValue"));
899
916
  x(this, "resetRecords", /* @__PURE__ */ a(() => {
900
- g(this, F, e(this, m).rawRecords.filter((i) => !i.__ng.deleted)), g(this, A, e(this, m).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), e(this, m).rawRecords.forEach((i, t) => {
917
+ b(this, K, e(this, m).rawRecords.filter((i) => !i.__ng.deleted)), b(this, A, e(this, m).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), e(this, m).rawRecords.forEach((i, t) => {
901
918
  i.__ng.rowidx = t;
902
919
  }), e(this, A).forEach((i, t) => {
903
920
  i.__ng.i = t;
904
921
  });
905
922
  }, "resetRecords"));
906
923
  x(this, "getValidData", /* @__PURE__ */ a(() => (e(this, A).length === 0 && e(this, m).rawRecords.length > 0 && this.resetRecords(), e(this, A)), "getValidData"));
907
- d(this, K, /* @__PURE__ */ a((i) => {
924
+ d(this, Z, /* @__PURE__ */ a((i) => {
908
925
  var s;
909
926
  if (!i) return i;
910
927
  const t = typeof ((s = e(this, R).fields) == null ? void 0 : s.get) == "function" ? e(this, R).fields.get() : [];
@@ -920,25 +937,25 @@ const q = class q {
920
937
  var o;
921
938
  const s = this.getValidData();
922
939
  if (!s || s.length <= 0) return;
923
- if (i == null) return e(this, K).call(this, s);
940
+ if (i == null) return e(this, Z).call(this, s);
924
941
  if (i < 0 || i >= s.length) return null;
925
942
  const n = typeof ((o = e(this, R).fields) == null ? void 0 : o.get) == "function" ? e(this, R).fields.get() : [];
926
943
  if (t != null) {
927
944
  const r = n.indexOf(t);
928
945
  return r >= 0 ? s[i].v[r] : null;
929
946
  }
930
- return e(this, K).call(this, s[i]);
947
+ return e(this, Z).call(this, s[i]);
931
948
  }, "get"));
932
- g(this, R, i), g(this, m, t), e(this, pe).call(this);
949
+ b(this, R, i), b(this, m, t), e(this, me).call(this);
933
950
  }
934
951
  get source() {
935
- return e(this, K).call(this, e(this, m).rawRecords);
952
+ return e(this, Z).call(this, e(this, m).rawRecords);
936
953
  }
937
954
  set source(i) {
938
955
  this.clear(), this.add(i, !1);
939
956
  }
940
957
  get nextId() {
941
- return ++Ve(this, ye)._;
958
+ return ++Xe(this, pe)._;
942
959
  }
943
960
  get length() {
944
961
  return e(this, A).length;
@@ -947,7 +964,7 @@ const q = class q {
947
964
  return this.length;
948
965
  }
949
966
  };
950
- R = new WeakMap(), m = new WeakMap(), A = new WeakMap(), F = new WeakMap(), ye = new WeakMap(), $ = new WeakMap(), pe = new WeakMap(), se = new WeakMap(), me = new WeakMap(), we = new WeakMap(), K = new WeakMap(), a(q, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
967
+ R = new WeakMap(), m = new WeakMap(), A = new WeakMap(), K = new WeakMap(), pe = new WeakMap(), $ = new WeakMap(), me = new WeakMap(), se = new WeakMap(), we = new WeakMap(), xe = new WeakMap(), Z = new WeakMap(), a(q, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
951
968
  x(q, "ROW_STATE", {
952
969
  EMPTY: "EMPTY",
953
970
  NORMAL: "NORMAL",
@@ -955,10 +972,10 @@ x(q, "ROW_STATE", {
955
972
  UPDATE: "UPDATE",
956
973
  DELETE: "DELETE"
957
974
  });
958
- let ke = q;
959
- const Oe = class Oe {
975
+ let Le = q;
976
+ const ze = class ze {
960
977
  constructor(i) {
961
- this.owner = i, this.row = new Te(this), this.data = new ke(i, this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
978
+ this.owner = i, this.row = new ke(this), this.data = new Le(i, this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
962
979
  var t;
963
980
  (t = this.owner.view) != null && t.redraw && this.owner.view.redraw();
964
981
  }, this.setDataSource = (t) => {
@@ -975,19 +992,19 @@ const Oe = class Oe {
975
992
  }, this.setDataSource([]);
976
993
  }
977
994
  };
978
- a(Oe, "ngDataManager");
979
- let Le = Oe;
980
- var X, xe;
981
- const ze = class ze extends HTMLElement {
995
+ a(ze, "ngDataManager");
996
+ let Ce = ze;
997
+ var X, ve;
998
+ const Ne = class Ne extends HTMLElement {
982
999
  constructor() {
983
1000
  super();
984
1001
  //#created = false;
985
1002
  d(this, X);
986
- d(this, xe);
987
- this.attachShadow({ mode: "open" }), g(this, X, new Le(this));
1003
+ d(this, ve);
1004
+ this.attachShadow({ mode: "open" }), b(this, X, new Ce(this));
988
1005
  }
989
1006
  connectedCallback() {
990
- g(this, xe, new qe(this)), j.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1007
+ b(this, ve, new Te(this)), j.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
991
1008
  }
992
1009
  disconnectedCallback() {
993
1010
  j.log("NineTable disconnected.");
@@ -1005,7 +1022,7 @@ const ze = class ze extends HTMLElement {
1005
1022
  return e(this, X);
1006
1023
  }
1007
1024
  };
1008
- X = new WeakMap(), xe = new WeakMap(), a(ze, "NineTable");
1009
- let Ce = ze;
1010
- customElements.get("nine-table") || customElements.define("nine-table", Ce);
1025
+ X = new WeakMap(), ve = new WeakMap(), a(Ne, "NineTable");
1026
+ let _e = Ne;
1027
+ customElements.get("nine-table") || customElements.define("nine-table", _e);
1011
1028
  //# sourceMappingURL=nine-table.js.map