@ninebone/table 0.0.608 → 0.0.609
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 +118 -115
- package/dist/nine-table.js.map +1 -1
- package/dist/nine-table.umd.js +6 -6
- package/dist/nine-table.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/nine-table.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var Fe = Object.defineProperty;
|
|
2
|
-
var Ve = (
|
|
3
|
-
throw TypeError(
|
|
2
|
+
var Ve = (q) => {
|
|
3
|
+
throw TypeError(q);
|
|
4
4
|
};
|
|
5
|
-
var Xe = (
|
|
6
|
-
var c = (
|
|
7
|
-
var E = (
|
|
8
|
-
var t = (
|
|
9
|
-
var Ue = (
|
|
5
|
+
var Xe = (q, i, e) => i in q ? Fe(q, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : q[i] = e;
|
|
6
|
+
var c = (q, i) => Fe(q, "name", { value: i, configurable: !0 });
|
|
7
|
+
var E = (q, i, e) => Xe(q, typeof i != "symbol" ? i + "" : i, e), Ye = (q, i, e) => i.has(q) || Ve("Cannot " + e);
|
|
8
|
+
var t = (q, i, e) => (Ye(q, i, "read from private field"), e ? e.call(q) : i.get(q)), d = (q, i, e) => i.has(q) ? Ve("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(q) : i.set(q, e), y = (q, i, e, s) => (Ye(q, i, "write to private field"), s ? s.call(q, e) : i.set(q, e), e);
|
|
9
|
+
var Ue = (q, i, e, s) => ({
|
|
10
10
|
set _(r) {
|
|
11
|
-
|
|
11
|
+
y(q, i, r, e);
|
|
12
12
|
},
|
|
13
13
|
get _() {
|
|
14
|
-
return t(
|
|
14
|
+
return t(q, i, s);
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
import { trace as Ke } from "@ninebone/util";
|
|
@@ -36,7 +36,7 @@ const Me = class Me extends HTMLElement {
|
|
|
36
36
|
d(this, It, /* @__PURE__ */ c(() => {
|
|
37
37
|
if (!t(this, B)) return;
|
|
38
38
|
const e = t(this, B).querySelector(".ng-container-body .ng-part-body");
|
|
39
|
-
e && (
|
|
39
|
+
e && (y(this, Z, new ResizeObserver(() => {
|
|
40
40
|
this.refresh();
|
|
41
41
|
})), t(this, Z).observe(e));
|
|
42
42
|
}, "#observeResize"));
|
|
@@ -77,8 +77,8 @@ const Me = class Me extends HTMLElement {
|
|
|
77
77
|
const e = /* @__PURE__ */ c((r) => {
|
|
78
78
|
clearInterval(t(this, X)), clearInterval(t(this, K));
|
|
79
79
|
const n = parseInt(t(this, w).thumb.style.left || 0, 10);
|
|
80
|
-
t(this, G).call(this, n + r),
|
|
81
|
-
clearInterval(t(this, X)),
|
|
80
|
+
t(this, G).call(this, n + r), y(this, X, setInterval(() => {
|
|
81
|
+
clearInterval(t(this, X)), y(this, K, setInterval(() => {
|
|
82
82
|
const o = parseInt(t(this, w).thumb.style.left || 0, 10);
|
|
83
83
|
t(this, G).call(this, o + r) || clearInterval(t(this, K));
|
|
84
84
|
}, 50));
|
|
@@ -99,20 +99,20 @@ const Me = class Me extends HTMLElement {
|
|
|
99
99
|
t(this, G).call(this, r.clientX - n.left - o / 2);
|
|
100
100
|
}), t(this, w).thumb.addEventListener("mousedown", (r) => {
|
|
101
101
|
if (r.button !== 0) return;
|
|
102
|
-
r.stopPropagation(), r.preventDefault(),
|
|
102
|
+
r.stopPropagation(), r.preventDefault(), y(this, j, !0), this.shiftX = r.clientX - t(this, w).thumb.getBoundingClientRect().left;
|
|
103
103
|
const n = /* @__PURE__ */ c((a) => {
|
|
104
104
|
if (!t(this, j)) return;
|
|
105
105
|
const h = t(this, w).track.getBoundingClientRect();
|
|
106
106
|
t(this, G).call(this, a.clientX - h.left - this.shiftX);
|
|
107
107
|
}, "onMouseMove"), o = /* @__PURE__ */ c(() => {
|
|
108
|
-
|
|
108
|
+
y(this, j, !1), s(), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", o), this.refresh();
|
|
109
109
|
}, "onMouseUp");
|
|
110
110
|
document.addEventListener("mousemove", n), document.addEventListener("mouseup", o);
|
|
111
111
|
});
|
|
112
112
|
}, "#init"));
|
|
113
113
|
}
|
|
114
114
|
connectedCallback() {
|
|
115
|
-
if (
|
|
115
|
+
if (y(this, B, this.closest("nine-table-sheet") || this.getRootNode().host), !t(this, B)) return;
|
|
116
116
|
this.innerHTML = `
|
|
117
117
|
<style>
|
|
118
118
|
nine-table-hscrollbar {
|
|
@@ -182,7 +182,7 @@ const Me = class Me extends HTMLElement {
|
|
|
182
182
|
setTimeout(e, 10);
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
|
-
|
|
185
|
+
y(this, w, {
|
|
186
186
|
container: s,
|
|
187
187
|
track: this.querySelector(".ng-scroll-track"),
|
|
188
188
|
thumb: this.querySelector(".ng-scroll-thumb"),
|
|
@@ -201,21 +201,21 @@ const Me = class Me extends HTMLElement {
|
|
|
201
201
|
B = 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(), c(Me, "NineTableHScrollBar");
|
|
202
202
|
let ae = Me;
|
|
203
203
|
customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", ae);
|
|
204
|
-
var F, at, J,
|
|
204
|
+
var F, at, J, R, vt, xt, Nt;
|
|
205
205
|
const $e = class $e extends HTMLElement {
|
|
206
206
|
constructor() {
|
|
207
207
|
super();
|
|
208
208
|
d(this, F);
|
|
209
209
|
d(this, at);
|
|
210
210
|
d(this, J, !1);
|
|
211
|
-
d(this,
|
|
211
|
+
d(this, R);
|
|
212
212
|
d(this, vt, 0);
|
|
213
213
|
d(this, xt, 0);
|
|
214
214
|
E(this, "refresh", /* @__PURE__ */ c(() => {
|
|
215
|
-
if (!t(this, F) || !t(this,
|
|
216
|
-
const e = t(this,
|
|
215
|
+
if (!t(this, F) || !t(this, R)) return;
|
|
216
|
+
const e = t(this, R).container, s = t(this, R).track, r = t(this, R).thumb, n = e.clientHeight, a = (t(this, F).data.get() || []).length, h = t(this, at).getRowHeight(), l = a * h;
|
|
217
217
|
if (l <= n) {
|
|
218
|
-
r.style.display = "none", t(this,
|
|
218
|
+
r.style.display = "none", t(this, R).top.disabled = !0, t(this, R).bottom.disabled = !0;
|
|
219
219
|
return;
|
|
220
220
|
} else
|
|
221
221
|
r.style.display = "block";
|
|
@@ -227,22 +227,22 @@ const $e = class $e extends HTMLElement {
|
|
|
227
227
|
let m = 0;
|
|
228
228
|
b > 0 && (m = g / b * (f - u));
|
|
229
229
|
const x = f - u;
|
|
230
|
-
m < 0 && (m = 0), m > x && (m = x), r.style.top = `${m}px`, t(this,
|
|
230
|
+
m < 0 && (m = 0), m > x && (m = x), r.style.top = `${m}px`, t(this, R).top.disabled = g <= 0, t(this, R).bottom.disabled = g >= b - 1;
|
|
231
231
|
}, "refresh"));
|
|
232
232
|
d(this, Nt, /* @__PURE__ */ c(() => {
|
|
233
233
|
W.log("nine-table-vscrollbar.#init");
|
|
234
|
-
const e = t(this,
|
|
234
|
+
const e = t(this, R).container, s = /* @__PURE__ */ c(() => {
|
|
235
235
|
const n = (t(this, F).data.get() || []).length, o = t(this, at).getRowHeight();
|
|
236
236
|
return n * o;
|
|
237
237
|
}, "getContentHeight");
|
|
238
238
|
e.addEventListener("scroll", () => {
|
|
239
239
|
t(this, J) || this.refresh();
|
|
240
|
-
}), t(this,
|
|
240
|
+
}), t(this, R).thumb.addEventListener("mousedown", (r) => {
|
|
241
241
|
if (r.button !== 0) return;
|
|
242
|
-
r.stopPropagation(), r.preventDefault(),
|
|
242
|
+
r.stopPropagation(), r.preventDefault(), y(this, J, !0), y(this, vt, r.clientY), y(this, xt, e.scrollTop);
|
|
243
243
|
const n = /* @__PURE__ */ c((a) => {
|
|
244
244
|
if (!t(this, J)) return;
|
|
245
|
-
const h = t(this,
|
|
245
|
+
const h = t(this, R).track.getBoundingClientRect(), l = t(this, R).thumb.clientHeight, u = h.height - l, g = a.clientY - t(this, vt), b = e.clientHeight, m = s(), x = Math.max(m - b, 1);
|
|
246
246
|
if (u > 0 && x > 0) {
|
|
247
247
|
const A = g / u * x;
|
|
248
248
|
let v = t(this, xt) + A;
|
|
@@ -251,26 +251,26 @@ const $e = class $e extends HTMLElement {
|
|
|
251
251
|
}
|
|
252
252
|
this.refresh();
|
|
253
253
|
}, "onMouseMove"), o = /* @__PURE__ */ c(() => {
|
|
254
|
-
|
|
254
|
+
y(this, J, !1), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", o), this.refresh();
|
|
255
255
|
}, "onMouseUp");
|
|
256
256
|
document.addEventListener("mousemove", n), document.addEventListener("mouseup", o);
|
|
257
|
-
}), t(this,
|
|
258
|
-
if (r.button !== 0 || r.target === t(this,
|
|
259
|
-
const n = t(this,
|
|
257
|
+
}), t(this, R).track.addEventListener("mousedown", (r) => {
|
|
258
|
+
if (r.button !== 0 || r.target === t(this, R).thumb) return;
|
|
259
|
+
const n = t(this, R).track.getBoundingClientRect(), o = t(this, R).thumb.clientHeight, a = r.clientY - n.top - o / 2, l = n.height - o, 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, a / l));
|
|
262
262
|
e.scrollTop = b * g;
|
|
263
263
|
}
|
|
264
264
|
this.refresh();
|
|
265
|
-
}), t(this,
|
|
265
|
+
}), t(this, R).top.addEventListener("click", () => {
|
|
266
266
|
e.scrollTop -= 40;
|
|
267
|
-
}), t(this,
|
|
267
|
+
}), t(this, R).bottom.addEventListener("click", () => {
|
|
268
268
|
e.scrollTop += 40;
|
|
269
269
|
});
|
|
270
270
|
}, "#init"));
|
|
271
271
|
}
|
|
272
272
|
connectedCallback() {
|
|
273
|
-
|
|
273
|
+
y(this, F, this.getRootNode().host), y(this, at, this.closest("nine-table-sheet")), this.innerHTML = `
|
|
274
274
|
<style>
|
|
275
275
|
nine-table-vscrollbar {
|
|
276
276
|
display: flex;
|
|
@@ -340,7 +340,7 @@ const $e = class $e extends HTMLElement {
|
|
|
340
340
|
setTimeout(e, 10);
|
|
341
341
|
return;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
y(this, R, {
|
|
344
344
|
container: s,
|
|
345
345
|
track: this.querySelector(".ng-scroll-track"),
|
|
346
346
|
thumb: this.querySelector(".ng-scroll-thumb"),
|
|
@@ -351,10 +351,10 @@ const $e = class $e extends HTMLElement {
|
|
|
351
351
|
e();
|
|
352
352
|
}
|
|
353
353
|
};
|
|
354
|
-
F = new WeakMap(), at = new WeakMap(), J = new WeakMap(),
|
|
354
|
+
F = new WeakMap(), at = new WeakMap(), J = new WeakMap(), R = new WeakMap(), vt = new WeakMap(), xt = new WeakMap(), Nt = new WeakMap(), c($e, "NineTableVScrollBar");
|
|
355
355
|
let le = $e;
|
|
356
356
|
customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", le);
|
|
357
|
-
var P, S, Q, D, I, V, tt, wt, Se, Ae, Wt, Ot, zt, St, At, Bt, Dt, Et, Ee, lt,
|
|
357
|
+
var P, S, Q, D, I, V, tt, wt, Se, Ae, Wt, Ot, zt, St, At, Bt, Dt, Et, Ee, lt, qt, Pt;
|
|
358
358
|
const Ie = class Ie {
|
|
359
359
|
constructor(i) {
|
|
360
360
|
d(this, P);
|
|
@@ -376,10 +376,10 @@ const Ie = class Ie {
|
|
|
376
376
|
i && (t(this, St).call(this), t(this, lt).call(this, i.scrollTop), (e = t(this, S).querySelector("nine-table-vscrollbar")) == null || e.refresh());
|
|
377
377
|
}, "refresh"));
|
|
378
378
|
E(this, "initialize", /* @__PURE__ */ c(() => {
|
|
379
|
-
W.log("rowManager.initialize"),
|
|
379
|
+
W.log("rowManager.initialize"), y(this, Q, {
|
|
380
380
|
scrollTables: t(this, S).querySelectorAll(".ng-part-body table"),
|
|
381
381
|
firstTr: t(this, S).querySelector(".ng-container-body .ng-part-body tbody.bindable-tbody tr:not(.nodata)")
|
|
382
|
-
}),
|
|
382
|
+
}), y(this, I, null), t(this, D).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
|
|
383
383
|
const a = t(this, S).querySelector(o);
|
|
384
384
|
if (!a) return;
|
|
385
385
|
const h = a.querySelector(".ng-part-body table");
|
|
@@ -439,7 +439,7 @@ const Ie = class Ie {
|
|
|
439
439
|
const u = s.querySelectorAll("tr:not(.nodata)");
|
|
440
440
|
return u.forEach((g) => {
|
|
441
441
|
f += g.offsetHeight || g.getBoundingClientRect().height;
|
|
442
|
-
}), u.forEach((g) => g.remove()), o.style.display = a, o.style.visibility = h, o.style.position = l,
|
|
442
|
+
}), u.forEach((g) => g.remove()), o.style.display = a, o.style.visibility = h, o.style.position = l, y(this, I, f > 0 ? f : 24), t(this, At).call(this), t(this, I);
|
|
443
443
|
}, "#measureAndCacheHeight"));
|
|
444
444
|
d(this, St, /* @__PURE__ */ c(() => {
|
|
445
445
|
W.log("rowManager.#updateVirtualScrollHeight");
|
|
@@ -454,7 +454,7 @@ const Ie = class Ie {
|
|
|
454
454
|
d(this, At, /* @__PURE__ */ c(() => {
|
|
455
455
|
if (t(this, tt) > 0 && t(this, I) > 0) {
|
|
456
456
|
const i = Math.ceil(t(this, tt) / t(this, I));
|
|
457
|
-
|
|
457
|
+
y(this, wt, i + t(this, Wt));
|
|
458
458
|
}
|
|
459
459
|
}, "#updateRowCount"));
|
|
460
460
|
d(this, Bt, /* @__PURE__ */ c(() => {
|
|
@@ -485,7 +485,7 @@ const Ie = class Ie {
|
|
|
485
485
|
}
|
|
486
486
|
}, "#syncRowHeights"));
|
|
487
487
|
d(this, Dt, /* @__PURE__ */ c(() => {
|
|
488
|
-
!t(this, S) || !(t(this, S) instanceof HTMLElement) || (
|
|
488
|
+
!t(this, S) || !(t(this, S) instanceof HTMLElement) || (y(this, V, new ResizeObserver((i) => {
|
|
489
489
|
for (const e of i) {
|
|
490
490
|
const s = e.target;
|
|
491
491
|
if (!s.classList.contains("active")) continue;
|
|
@@ -495,7 +495,7 @@ const Ie = class Ie {
|
|
|
495
495
|
const o = s.querySelector(".ng-part-header"), a = s.querySelector(".ng-part-footer");
|
|
496
496
|
o && (n += o.offsetHeight), a && (n += a.offsetHeight);
|
|
497
497
|
const h = Math.max(r - n, 100);
|
|
498
|
-
t(this, tt) !== h && (
|
|
498
|
+
t(this, tt) !== h && (y(this, tt, h), t(this, At).call(this), t(this, I) !== null && (t(this, Et).call(this), this.refresh()));
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
})), t(this, V).observe(t(this, S)));
|
|
@@ -521,7 +521,7 @@ const Ie = class Ie {
|
|
|
521
521
|
return;
|
|
522
522
|
}
|
|
523
523
|
const b = t(this, P).data.get(g);
|
|
524
|
-
f.style.display = "", t(this,
|
|
524
|
+
f.style.display = "", t(this, qt).call(this, f, b, g);
|
|
525
525
|
});
|
|
526
526
|
});
|
|
527
527
|
}, "#adjustBufferRows"));
|
|
@@ -546,7 +546,7 @@ const Ie = class Ie {
|
|
|
546
546
|
return;
|
|
547
547
|
}
|
|
548
548
|
const T = t(this, P).data.get(M);
|
|
549
|
-
A.style.display = "", t(this,
|
|
549
|
+
A.style.display = "", t(this, qt).call(this, A, T, M);
|
|
550
550
|
});
|
|
551
551
|
});
|
|
552
552
|
}, "#handleScroll"));
|
|
@@ -564,7 +564,7 @@ const Ie = class Ie {
|
|
|
564
564
|
cell.dataset.row = dataIndex;
|
|
565
565
|
});
|
|
566
566
|
}; */
|
|
567
|
-
d(this,
|
|
567
|
+
d(this, qt, /* @__PURE__ */ c((i, e, s) => {
|
|
568
568
|
i.dataset.row = s, i.data = e, Array.from(i.cells).forEach((r, n) => {
|
|
569
569
|
r.dataset.row = s;
|
|
570
570
|
const o = Array.from(r.children).find((a) => a.tagName.toLowerCase().startsWith("cell-") || typeof a.refresh == "function");
|
|
@@ -587,9 +587,9 @@ const Ie = class Ie {
|
|
|
587
587
|
}
|
|
588
588
|
}, "#syncHeaderHeights"));
|
|
589
589
|
E(this, "destroy", /* @__PURE__ */ c(() => {
|
|
590
|
-
t(this, V) && (t(this, V).disconnect(),
|
|
590
|
+
t(this, V) && (t(this, V).disconnect(), y(this, V, null));
|
|
591
591
|
}, "destroy"));
|
|
592
|
-
|
|
592
|
+
y(this, P, i.getRootNode().host), y(this, S, i), t(this, Dt).call(this);
|
|
593
593
|
}
|
|
594
594
|
getRowHeight() {
|
|
595
595
|
return t(this, I);
|
|
@@ -599,7 +599,7 @@ const Ie = class Ie {
|
|
|
599
599
|
return ((e = t(this, D).get(i)) == null ? void 0 : e.length) || 1;
|
|
600
600
|
}
|
|
601
601
|
};
|
|
602
|
-
P = new WeakMap(), S = new WeakMap(), Q = new WeakMap(), D = new WeakMap(), I = new WeakMap(), V = new WeakMap(), tt = new WeakMap(), wt = new WeakMap(), Se = new WeakMap(), Ae = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), zt = new WeakMap(), St = new WeakMap(), At = new WeakMap(), Bt = new WeakMap(), Dt = new WeakMap(), Et = new WeakMap(), Ee = new WeakMap(), lt = new WeakMap(),
|
|
602
|
+
P = new WeakMap(), S = new WeakMap(), Q = new WeakMap(), D = new WeakMap(), I = new WeakMap(), V = new WeakMap(), tt = new WeakMap(), wt = new WeakMap(), Se = new WeakMap(), Ae = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), zt = new WeakMap(), St = new WeakMap(), At = new WeakMap(), Bt = new WeakMap(), Dt = new WeakMap(), Et = new WeakMap(), Ee = new WeakMap(), lt = new WeakMap(), qt = new WeakMap(), Pt = new WeakMap(), c(Ie, "RowManager");
|
|
603
603
|
let ce = Ie;
|
|
604
604
|
const jt = class jt {
|
|
605
605
|
/**
|
|
@@ -655,8 +655,8 @@ const jt = class jt {
|
|
|
655
655
|
}
|
|
656
656
|
const M = v.rowSpan || 1, T = v.colSpan || 1;
|
|
657
657
|
for (let z = 0; z < M; z++)
|
|
658
|
-
for (let
|
|
659
|
-
x + z < u && A +
|
|
658
|
+
for (let yt = 0; yt < T; yt++)
|
|
659
|
+
x + z < u && A + yt < g && (b[x + z][A + yt] = z === 0 && yt === 0 ? "1" : "0");
|
|
660
660
|
});
|
|
661
661
|
}), l.forEach((m) => {
|
|
662
662
|
const x = m.sectionRowIndex;
|
|
@@ -681,7 +681,7 @@ const jt = class jt {
|
|
|
681
681
|
c(jt, "TableCompiler");
|
|
682
682
|
let he = jt;
|
|
683
683
|
var Ft, et, st, Vt, Yt, ct, Ut, Xt;
|
|
684
|
-
const
|
|
684
|
+
const pt = class pt extends HTMLElement {
|
|
685
685
|
constructor() {
|
|
686
686
|
super();
|
|
687
687
|
d(this, Ft);
|
|
@@ -712,10 +712,13 @@ const yt = class yt extends HTMLElement {
|
|
|
712
712
|
});
|
|
713
713
|
}, "#updateContainerWidths"));
|
|
714
714
|
E(this, "generate", /* @__PURE__ */ c((e) => {
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
},
|
|
715
|
+
if (!e) return;
|
|
716
|
+
y(this, et, he.compile(e)), t(this, Vt).call(this), t(this, Yt).call(this);
|
|
717
|
+
const s = this.querySelector(".ng-container-body .ng-part-header"), r = this.querySelector(".ng-nodata-overlay");
|
|
718
|
+
s && r && (r.style.top = `${s.offsetHeight}px`), t(this, st).initialize(), setTimeout(() => {
|
|
719
|
+
var n;
|
|
720
|
+
(n = this.querySelector("nine-table-hscrollbar")) == null || n.refresh();
|
|
721
|
+
}, 0);
|
|
719
722
|
}, "generate"));
|
|
720
723
|
d(this, ct, /* @__PURE__ */ c((e, s, r) => {
|
|
721
724
|
const n = e.cloneNode(!0), o = n.querySelector("thead"), a = n.querySelector("tbody"), h = n.querySelector("tfoot");
|
|
@@ -746,7 +749,7 @@ const yt = class yt extends HTMLElement {
|
|
|
746
749
|
t(this, Xt).call(this);
|
|
747
750
|
}, "#init"));
|
|
748
751
|
d(this, Xt, /* @__PURE__ */ c(() => {
|
|
749
|
-
const e =
|
|
752
|
+
const e = pt.SCROLLBAR_SIZE;
|
|
750
753
|
this.innerHTML = `
|
|
751
754
|
<style>
|
|
752
755
|
nine-table-sheet {
|
|
@@ -934,7 +937,7 @@ const yt = class yt extends HTMLElement {
|
|
|
934
937
|
</div>
|
|
935
938
|
`;
|
|
936
939
|
}, "#render"));
|
|
937
|
-
|
|
940
|
+
y(this, st, new ce(this)), y(this, Ft, this.getRootNode().host);
|
|
938
941
|
}
|
|
939
942
|
connectedCallback() {
|
|
940
943
|
t(this, Ut).call(this);
|
|
@@ -943,10 +946,10 @@ const yt = class yt extends HTMLElement {
|
|
|
943
946
|
this.innerHTML = "", W.log("NineTableSheet destroyed.");
|
|
944
947
|
}
|
|
945
948
|
};
|
|
946
|
-
Ft = new WeakMap(), et = new WeakMap(), st = new WeakMap(), Vt = new WeakMap(), Yt = new WeakMap(), ct = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), c(
|
|
947
|
-
let $t =
|
|
949
|
+
Ft = new WeakMap(), et = new WeakMap(), st = new WeakMap(), Vt = new WeakMap(), Yt = new WeakMap(), ct = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), c(pt, "NineTableSheet"), E(pt, "SCROLLBAR_SIZE", 16);
|
|
950
|
+
let $t = pt;
|
|
948
951
|
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", $t);
|
|
949
|
-
var Kt,
|
|
952
|
+
var Kt, Rt;
|
|
950
953
|
const _e = class _e extends HTMLElement {
|
|
951
954
|
constructor() {
|
|
952
955
|
super();
|
|
@@ -955,10 +958,10 @@ const _e = class _e extends HTMLElement {
|
|
|
955
958
|
(e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (s) => {
|
|
956
959
|
var o;
|
|
957
960
|
const r = s.ctrlKey || s.metaKey || s.shiftKey, n = parseInt((o = s.target.closest(".nine-tab-item")) == null ? void 0 : o.dataset.index, 10);
|
|
958
|
-
t(this,
|
|
959
|
-
}), t(this,
|
|
961
|
+
t(this, Rt).call(this, n, r);
|
|
962
|
+
}), t(this, Rt).call(this, 0, !1);
|
|
960
963
|
}, "#init"));
|
|
961
|
-
d(this,
|
|
964
|
+
d(this, Rt, /* @__PURE__ */ c((e, s = !1) => {
|
|
962
965
|
const r = /* @__PURE__ */ c(() => {
|
|
963
966
|
const f = Array.from(this.querySelectorAll("nine-table-sheet"));
|
|
964
967
|
Array.from(this.querySelectorAll("nine-splitter")).forEach((b) => b.style.setProperty("display", "none"));
|
|
@@ -994,7 +997,7 @@ const _e = class _e extends HTMLElement {
|
|
|
994
997
|
t(this, Kt).call(this);
|
|
995
998
|
}
|
|
996
999
|
};
|
|
997
|
-
Kt = new WeakMap(),
|
|
1000
|
+
Kt = new WeakMap(), Rt = new WeakMap(), c(_e, "NineTableSheets");
|
|
998
1001
|
let de = _e;
|
|
999
1002
|
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", de);
|
|
1000
1003
|
var H, Zt, Tt, Gt;
|
|
@@ -1111,7 +1114,7 @@ const Ne = class Ne {
|
|
|
1111
1114
|
|
|
1112
1115
|
nine-table-sheets.nodata {
|
|
1113
1116
|
.ng-nodata-overlay {
|
|
1114
|
-
display:
|
|
1117
|
+
display: flex;
|
|
1115
1118
|
}
|
|
1116
1119
|
|
|
1117
1120
|
.ng-scroll-content {
|
|
@@ -1148,7 +1151,7 @@ const Ne = class Ne {
|
|
|
1148
1151
|
});
|
|
1149
1152
|
});
|
|
1150
1153
|
}, "#render"));
|
|
1151
|
-
|
|
1154
|
+
y(this, H, i), t(this, Zt).call(this);
|
|
1152
1155
|
}
|
|
1153
1156
|
};
|
|
1154
1157
|
H = new WeakMap(), Zt = new WeakMap(), Tt = new WeakMap(), Gt = new WeakMap(), c(Ne, "LayoutManager");
|
|
@@ -1159,13 +1162,13 @@ const We = class We {
|
|
|
1159
1162
|
d(this, kt);
|
|
1160
1163
|
d(this, ht, -1);
|
|
1161
1164
|
E(this, "count", /* @__PURE__ */ c(() => t(this, kt).rawRecords.length, "count"));
|
|
1162
|
-
|
|
1165
|
+
y(this, kt, i);
|
|
1163
1166
|
}
|
|
1164
1167
|
get at() {
|
|
1165
1168
|
return t(this, ht);
|
|
1166
1169
|
}
|
|
1167
1170
|
set at(i) {
|
|
1168
|
-
|
|
1171
|
+
y(this, ht, parseInt(i, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, ht)}"]`) && setTimeout(() => {
|
|
1169
1172
|
});
|
|
1170
1173
|
}
|
|
1171
1174
|
};
|
|
@@ -1181,7 +1184,7 @@ const O = class O {
|
|
|
1181
1184
|
d(this, Jt, 0);
|
|
1182
1185
|
d(this, Y, []);
|
|
1183
1186
|
d(this, Qt, /* @__PURE__ */ c(() => {
|
|
1184
|
-
|
|
1187
|
+
y(this, Y, []);
|
|
1185
1188
|
const i = t(this, _).template || [];
|
|
1186
1189
|
Array.from(i).forEach((e) => {
|
|
1187
1190
|
var s;
|
|
@@ -1222,11 +1225,11 @@ const O = class O {
|
|
|
1222
1225
|
_: [0, 0, 0, 0, O.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, Y).slice(), -1, {}, {}]
|
|
1223
1226
|
}), "#getDefaultMeta"));
|
|
1224
1227
|
E(this, "reset", /* @__PURE__ */ c(() => {
|
|
1225
|
-
|
|
1228
|
+
y(this, N, []), y(this, dt, []), t(this, it).call(this);
|
|
1226
1229
|
}, "reset"));
|
|
1227
1230
|
E(this, "clear", /* @__PURE__ */ c(() => {
|
|
1228
1231
|
var i;
|
|
1229
|
-
t(this, k).rawRecords = [],
|
|
1232
|
+
t(this, k).rawRecords = [], y(this, N, []), y(this, dt, []), (i = t(this, k).viewRecords) != null && i.reset && t(this, k).viewRecords.reset();
|
|
1230
1233
|
}, "clear"));
|
|
1231
1234
|
d(this, te, /* @__PURE__ */ c((i) => {
|
|
1232
1235
|
var r;
|
|
@@ -1274,7 +1277,7 @@ const O = class O {
|
|
|
1274
1277
|
a !== s && o.__ng.rowState !== O.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(e) || (o.__ng.o[e] = a), o.__ng.rowState = O.ROW_STATE.UPDATE), o.v[n] = s;
|
|
1275
1278
|
}, "setValue"));
|
|
1276
1279
|
E(this, "resetRecords", /* @__PURE__ */ c(() => {
|
|
1277
|
-
|
|
1280
|
+
y(this, dt, t(this, k).rawRecords.filter((i) => !i.__ng.deleted)), y(this, N, t(this, k).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), t(this, k).rawRecords.forEach((i, e) => {
|
|
1278
1281
|
i.__ng.rowidx = e;
|
|
1279
1282
|
}), t(this, N).forEach((i, e) => {
|
|
1280
1283
|
i.__ng.i = e;
|
|
@@ -1293,7 +1296,7 @@ const O = class O {
|
|
|
1293
1296
|
return e ? n[0] : n;
|
|
1294
1297
|
}, "#conv"));
|
|
1295
1298
|
E(this, "count", /* @__PURE__ */ c(() => this.getValidData().length, "count"));
|
|
1296
|
-
|
|
1299
|
+
y(this, _, i), y(this, k, e), t(this, Qt).call(this);
|
|
1297
1300
|
}
|
|
1298
1301
|
get source() {
|
|
1299
1302
|
return t(this, ft).call(this, t(this, k).rawRecords);
|
|
@@ -1327,7 +1330,7 @@ var rt;
|
|
|
1327
1330
|
const Oe = class Oe {
|
|
1328
1331
|
constructor(i) {
|
|
1329
1332
|
d(this, rt);
|
|
1330
|
-
|
|
1333
|
+
y(this, rt, i), this.row = new ue(this), this.data = new ge(t(this, rt), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
|
|
1331
1334
|
var e;
|
|
1332
1335
|
(e = t(this, rt).view) != null && e.redraw && t(this, rt).view.redraw();
|
|
1333
1336
|
}, this.setDataSource = (e) => {
|
|
@@ -1361,10 +1364,10 @@ const ze = class ze {
|
|
|
1361
1364
|
const i = /* @__PURE__ */ new Map();
|
|
1362
1365
|
t(this, L).forEach((e) => {
|
|
1363
1366
|
i.set(e.name, e.type);
|
|
1364
|
-
}),
|
|
1367
|
+
}), y(this, L, Array.from(i, ([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);
|
|
1365
1368
|
}, "#adjust"));
|
|
1366
1369
|
d(this, se, /* @__PURE__ */ c(() => {
|
|
1367
|
-
|
|
1370
|
+
y(this, L, []), W.log(t(this, ut).querySelectorAll("table"));
|
|
1368
1371
|
const i = Array.from(t(this, ut).querySelectorAll("table"));
|
|
1369
1372
|
if (!(!i || i.length === 0)) {
|
|
1370
1373
|
for (const e of i)
|
|
@@ -1395,7 +1398,7 @@ const ze = class ze {
|
|
|
1395
1398
|
t(this, Lt).call(this);
|
|
1396
1399
|
}
|
|
1397
1400
|
}, "#init"));
|
|
1398
|
-
|
|
1401
|
+
y(this, ut, i), t(this, se).call(this);
|
|
1399
1402
|
}
|
|
1400
1403
|
// 🎯 기존에 필드 이름만 쓰던 곳들과의 호환을 위해 이름 배열만 리턴하는 메서드 유지
|
|
1401
1404
|
get() {
|
|
@@ -1418,7 +1421,7 @@ const ze = class ze {
|
|
|
1418
1421
|
}
|
|
1419
1422
|
};
|
|
1420
1423
|
ut = new WeakMap(), L = new WeakMap(), Lt = new WeakMap(), se = new WeakMap(), c(ze, "ngFields");
|
|
1421
|
-
let
|
|
1424
|
+
let ye = ze;
|
|
1422
1425
|
var nt, ie, re;
|
|
1423
1426
|
const Be = class Be extends HTMLElement {
|
|
1424
1427
|
constructor() {
|
|
@@ -1427,9 +1430,9 @@ const Be = class Be extends HTMLElement {
|
|
|
1427
1430
|
d(this, nt);
|
|
1428
1431
|
d(this, ie);
|
|
1429
1432
|
d(this, re, /* @__PURE__ */ c(() => {
|
|
1430
|
-
this.fields = new
|
|
1433
|
+
this.fields = new ye(this), y(this, ie, new fe(this)), W.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
|
|
1431
1434
|
}, "#init"));
|
|
1432
|
-
this.attachShadow({ mode: "open" }),
|
|
1435
|
+
this.attachShadow({ mode: "open" }), y(this, nt, new be(this));
|
|
1433
1436
|
}
|
|
1434
1437
|
connectedCallback() {
|
|
1435
1438
|
t(this, re).call(this);
|
|
@@ -1451,8 +1454,8 @@ const Be = class Be extends HTMLElement {
|
|
|
1451
1454
|
}
|
|
1452
1455
|
};
|
|
1453
1456
|
nt = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), c(Be, "NineTable");
|
|
1454
|
-
let
|
|
1455
|
-
customElements.get("nine-table") || customElements.define("nine-table",
|
|
1457
|
+
let pe = Be;
|
|
1458
|
+
customElements.get("nine-table") || customElements.define("nine-table", pe);
|
|
1456
1459
|
const mt = class mt extends HTMLElement {
|
|
1457
1460
|
// 👈 커스텀 스타일용 캐시 추가
|
|
1458
1461
|
constructor() {
|
|
@@ -1466,42 +1469,42 @@ const mt = class mt extends HTMLElement {
|
|
|
1466
1469
|
};
|
|
1467
1470
|
c(mt, "BasicCellElement"), E(mt, "_styleCache", /* @__PURE__ */ new Map()), E(mt, "_customStyleCache", /* @__PURE__ */ new Map());
|
|
1468
1471
|
let me = mt;
|
|
1469
|
-
var C, Ht,
|
|
1472
|
+
var C, Ht, p, qe, Re, Te, ke, Ce;
|
|
1470
1473
|
const De = class De extends me {
|
|
1471
1474
|
constructor() {
|
|
1472
1475
|
super();
|
|
1473
1476
|
d(this, C);
|
|
1474
1477
|
d(this, Ht);
|
|
1475
|
-
d(this,
|
|
1476
|
-
d(this, Re);
|
|
1478
|
+
d(this, p);
|
|
1477
1479
|
d(this, qe);
|
|
1480
|
+
d(this, Re);
|
|
1478
1481
|
d(this, Te);
|
|
1479
1482
|
d(this, ke);
|
|
1480
1483
|
E(this, "getDisplayText", /* @__PURE__ */ c((e) => {
|
|
1481
|
-
if (t(this,
|
|
1482
|
-
if (t(this,
|
|
1483
|
-
const s = t(this,
|
|
1484
|
+
if (t(this, p))
|
|
1485
|
+
if (t(this, p).closest("tbody")) {
|
|
1486
|
+
const s = t(this, p).closest("tr").data, r = parseInt(t(this, p).dataset.row);
|
|
1484
1487
|
if (!s) return "";
|
|
1485
|
-
if (ninegrid.isNull(t(this,
|
|
1486
|
-
if (!ninegrid.isNull(t(this,
|
|
1487
|
-
return s[t(this,
|
|
1488
|
+
if (ninegrid.isNull(t(this, p).dataset.expr)) {
|
|
1489
|
+
if (!ninegrid.isNull(t(this, p).dataset.bind))
|
|
1490
|
+
return s[t(this, p).dataset.bind] || ninegrid.nvl(e, "");
|
|
1488
1491
|
} else try {
|
|
1489
|
-
return this.getExprValue(t(this,
|
|
1492
|
+
return this.getExprValue(t(this, p).dataset.expr, s, r, t(this, p));
|
|
1490
1493
|
} catch {
|
|
1491
|
-
console.error(t(this,
|
|
1494
|
+
console.error(t(this, p).dataset.expr, s, t(this, p).dataset.row);
|
|
1492
1495
|
}
|
|
1493
1496
|
return ninegrid.nvl(e, "");
|
|
1494
1497
|
} else
|
|
1495
1498
|
try {
|
|
1496
|
-
return t(this, C).exprFunction(t(this,
|
|
1499
|
+
return t(this, C).exprFunction(t(this, p).dataset.expr).call(this, null, -1, t(this, C).data);
|
|
1497
1500
|
} catch {
|
|
1498
1501
|
}
|
|
1499
1502
|
}, "getDisplayText"));
|
|
1500
1503
|
d(this, Ce, /* @__PURE__ */ c(() => {
|
|
1501
|
-
if (!(!t(this, C) || !t(this, C).template || !t(this,
|
|
1502
|
-
var e = ninegrid.j.querySelectorAll(t(this,
|
|
1504
|
+
if (!(!t(this, C) || !t(this, C).template || !t(this, p).closest("tbody.bindable"))) {
|
|
1505
|
+
var e = ninegrid.j.querySelectorAll(t(this, p)).attr("suppress");
|
|
1503
1506
|
if (e && (e = parseInt(e)), e && !isNaN(e)) {
|
|
1504
|
-
var s = t(this,
|
|
1507
|
+
var s = t(this, p).closest("tr"), r = [];
|
|
1505
1508
|
$("th,td", s).each((v, M) => {
|
|
1506
1509
|
var T = ninegrid.j.querySelectorAll(M).attr("suppress");
|
|
1507
1510
|
T && M.dataset.row && (T = parseInt(T), !isNaN(T) && T <= e && r.push(T));
|
|
@@ -1510,9 +1513,9 @@ const De = class De extends me {
|
|
|
1510
1513
|
if (parseInt(s.sectionRowIndex / t(this, C).template.length) > 0)
|
|
1511
1514
|
for (var o of r) {
|
|
1512
1515
|
if (o > e) break;
|
|
1513
|
-
var a = parseInt(t(this,
|
|
1514
|
-
t(this,
|
|
1515
|
-
var u = t(this, C).body.querySelector(`tbody.bindable [suppress="${o}"][data-matrix-row="${t(this,
|
|
1516
|
+
var a = parseInt(t(this, p).dataset.row), h = a - 1, l = t(this, p).closest("tr").data, f = t(this, C).data.get(h);
|
|
1517
|
+
t(this, p).dataset.matrixRow;
|
|
1518
|
+
var u = t(this, C).body.querySelector(`tbody.bindable [suppress="${o}"][data-matrix-row="${t(this, p).dataset.matrixRow}"]`), g = u.dataset.expr ? this.getExprValue(u.dataset.expr, l, a) : l[u.dataset.bind], b = u.dataset.expr ? this.getExprValue(u.dataset.expr, f, h) : f[u.dataset.bind];
|
|
1516
1519
|
if (g != b) {
|
|
1517
1520
|
n = !0;
|
|
1518
1521
|
break;
|
|
@@ -1520,9 +1523,9 @@ const De = class De extends me {
|
|
|
1520
1523
|
}
|
|
1521
1524
|
else
|
|
1522
1525
|
n = !0;
|
|
1523
|
-
n ? ninegrid.j.querySelectorAll(t(this,
|
|
1524
|
-
var m = parseInt(t(this,
|
|
1525
|
-
$(A).hasClass("suppress") && !ninegrid.j.querySelectorAll(t(this,
|
|
1526
|
+
n ? ninegrid.j.querySelectorAll(t(this, p)).removeClass("suppress") : ninegrid.j.querySelectorAll(t(this, p)).addClass("suppress"), ninegrid.j.querySelectorAll(t(this, p)).hasClass("hidden") || (n ? ninegrid.j.querySelectorAll(t(this, p)).removeClass("hidden") : ninegrid.j.querySelectorAll(t(this, p)).addClass("hidden"));
|
|
1527
|
+
var m = parseInt(t(this, p).dataset.matrixRow), x = m - 1, A = t(this, C).body.querySelector(`tbody.bindable [data-col="${t(this, p).dataset.col}"][data-matrix-row="${x}"]`);
|
|
1528
|
+
$(A).hasClass("suppress") && !ninegrid.j.querySelectorAll(t(this, p)).hasClass("suppress") ? ninegrid.j.querySelectorAll(A).removeClass("last-none-suppress").addClass("last-suppress") : !$(A).hasClass("suppress") && ninegrid.j.querySelectorAll(t(this, p)).hasClass("suppress") ? ninegrid.j.querySelectorAll(A).removeClass("last-suppress").addClass("last-none-suppress") : ninegrid.j.querySelectorAll(A).removeClass("last-none-suppress").removeClass("last-suppress");
|
|
1526
1529
|
}
|
|
1527
1530
|
}
|
|
1528
1531
|
}, "#resetSuppress"));
|
|
@@ -1531,7 +1534,7 @@ const De = class De extends me {
|
|
|
1531
1534
|
try {
|
|
1532
1535
|
r = parseInt(r);
|
|
1533
1536
|
const o = e.replace("()", "");
|
|
1534
|
-
return t(this, C)[o] ? t(this, C)[o].call(this, s, r, t(this,
|
|
1537
|
+
return t(this, C)[o] ? t(this, C)[o].call(this, s, r, t(this, p)) : t(this, C).exprFunction(e).call(this, s, r, t(this, C).data);
|
|
1535
1538
|
} catch {
|
|
1536
1539
|
return ["NG-COMBO"].includes(this.tagName) ? "" : e;
|
|
1537
1540
|
}
|
|
@@ -1540,29 +1543,29 @@ const De = class De extends me {
|
|
|
1540
1543
|
}, "getExprValue"));
|
|
1541
1544
|
}
|
|
1542
1545
|
connectedCallback() {
|
|
1543
|
-
super.connectedCallback(),
|
|
1546
|
+
super.connectedCallback(), y(this, C, this.getRootNode().host), y(this, p, this.closest("th,td")), y(this, Ht, t(this, p).closest("tr"));
|
|
1544
1547
|
}
|
|
1545
1548
|
get value() {
|
|
1546
|
-
var e = !t(this, C) || !t(this, C).dataManager || !t(this,
|
|
1549
|
+
var e = !t(this, C) || !t(this, C).dataManager || !t(this, p) || !t(this, p).dataset || !t(this, p).dataset.row || !t(this, p).dataset.bind ? "" : t(this, p).closest("tr").data[t(this, p).dataset.bind];
|
|
1547
1550
|
return e ?? "";
|
|
1548
1551
|
}
|
|
1549
1552
|
set value(e) {
|
|
1550
|
-
var s = parseInt(t(this,
|
|
1553
|
+
var s = parseInt(t(this, p).dataset.row);
|
|
1551
1554
|
const r = this.getAttribute("update-row-state") != "false";
|
|
1552
|
-
s < 0 ? t(this, C).data.setValueNF(parseInt(t(this,
|
|
1555
|
+
s < 0 ? t(this, C).data.setValueNF(parseInt(t(this, p).dataset.index), t(this, p).dataset.bind, e, r) : t(this, C).data.setValue(s, t(this, p).dataset.bind, e, r);
|
|
1553
1556
|
}
|
|
1554
1557
|
get row() {
|
|
1555
|
-
return parseInt(t(this,
|
|
1558
|
+
return parseInt(t(this, p).dataset.row);
|
|
1556
1559
|
}
|
|
1557
1560
|
get data() {
|
|
1558
|
-
return t(this,
|
|
1561
|
+
return t(this, p).closest("tr").data;
|
|
1559
1562
|
}
|
|
1560
1563
|
refresh() {
|
|
1561
|
-
const e = t(this,
|
|
1562
|
-
return parseInt(t(this,
|
|
1564
|
+
const e = t(this, p).dataset.bind;
|
|
1565
|
+
return parseInt(t(this, p).dataset.row), t(this, Ht).data[e];
|
|
1563
1566
|
}
|
|
1564
1567
|
};
|
|
1565
|
-
C = new WeakMap(), Ht = new WeakMap(),
|
|
1568
|
+
C = new WeakMap(), Ht = new WeakMap(), p = new WeakMap(), qe = new WeakMap(), Re = new WeakMap(), Te = new WeakMap(), ke = new WeakMap(), Ce = new WeakMap(), c(De, "CellElement");
|
|
1566
1569
|
let ve = De;
|
|
1567
1570
|
const Pe = class Pe extends ve {
|
|
1568
1571
|
constructor() {
|
|
@@ -1636,7 +1639,7 @@ const je = class je extends xe {
|
|
|
1636
1639
|
t(this, gt) && ninegrid.getByteLength(e.target.value) >= Number(t(this, gt)) && e.target.selectionStart == e.target.selectionEnd && e.preventDefault();
|
|
1637
1640
|
}
|
|
1638
1641
|
}, "#onKeyDown"));
|
|
1639
|
-
if (this.applyBaseStyle(),
|
|
1642
|
+
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)}`;
|
|
1640
1643
|
}
|
|
1641
1644
|
connectedCallback() {
|
|
1642
1645
|
for (var e = [], s = 0; s < this.attributes.length; s++)
|
|
@@ -1646,7 +1649,7 @@ const je = class je extends xe {
|
|
|
1646
1649
|
${e.join(" ")}
|
|
1647
1650
|
ondragstart="return false;"
|
|
1648
1651
|
>
|
|
1649
|
-
`, super.connectedCallback(),
|
|
1652
|
+
`, super.connectedCallback(), y(this, Mt, this.querySelector("input"));
|
|
1650
1653
|
}
|
|
1651
1654
|
};
|
|
1652
1655
|
Mt = new WeakMap(), ot = new WeakMap(), gt = new WeakMap(), bt = new WeakMap(), ne = new WeakMap(), U = new WeakMap(), Le = new WeakMap(), c(je, "CellInputText");
|