@ninebone/table 0.0.489 β 0.0.490
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 +181 -185
- 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 je = Object.defineProperty;
|
|
2
|
-
var Fe = (
|
|
3
|
-
throw TypeError(
|
|
2
|
+
var Fe = (R) => {
|
|
3
|
+
throw TypeError(R);
|
|
4
4
|
};
|
|
5
|
-
var Ue = (
|
|
6
|
-
var h = (
|
|
7
|
-
var
|
|
8
|
-
var t = (
|
|
9
|
-
var Ye = (
|
|
5
|
+
var Ue = (R, i, e) => i in R ? je(R, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : R[i] = e;
|
|
6
|
+
var h = (R, i) => je(R, "name", { value: i, configurable: !0 });
|
|
7
|
+
var E = (R, i, e) => Ue(R, typeof i != "symbol" ? i + "" : i, e), Ve = (R, i, e) => i.has(R) || Fe("Cannot " + e);
|
|
8
|
+
var t = (R, i, e) => (Ve(R, i, "read from private field"), e ? e.call(R) : i.get(R)), d = (R, i, e) => i.has(R) ? Fe("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(R) : i.set(R, e), y = (R, i, e, s) => (Ve(R, i, "write to private field"), s ? s.call(R, e) : i.set(R, e), e);
|
|
9
|
+
var Ye = (R, i, e, s) => ({
|
|
10
10
|
set _(r) {
|
|
11
|
-
y(
|
|
11
|
+
y(R, i, r, e);
|
|
12
12
|
},
|
|
13
13
|
get _() {
|
|
14
|
-
return t(
|
|
14
|
+
return t(R, i, s);
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
import { trace as Xe } from "@ninebone/util";
|
|
@@ -23,7 +23,7 @@ const Le = class Le extends Xe.constructor {
|
|
|
23
23
|
h(Le, "Trace");
|
|
24
24
|
let oe = Le;
|
|
25
25
|
const U = new oe();
|
|
26
|
-
var B, P, w, X, K, Z,
|
|
26
|
+
var B, P, w, X, K, Z, Mt, G, It;
|
|
27
27
|
const He = class He extends HTMLElement {
|
|
28
28
|
constructor() {
|
|
29
29
|
super();
|
|
@@ -33,14 +33,14 @@ const He = class He extends HTMLElement {
|
|
|
33
33
|
d(this, X);
|
|
34
34
|
d(this, K);
|
|
35
35
|
d(this, Z);
|
|
36
|
-
d(this,
|
|
36
|
+
d(this, Mt, /* @__PURE__ */ h(() => {
|
|
37
37
|
if (!t(this, B)) return;
|
|
38
38
|
const e = t(this, B).querySelector(".ng-container-body .ng-part-body");
|
|
39
39
|
e && (y(this, Z, new ResizeObserver(() => {
|
|
40
40
|
this.refresh();
|
|
41
41
|
})), t(this, Z).observe(e));
|
|
42
42
|
}, "#observeResize"));
|
|
43
|
-
|
|
43
|
+
E(this, "refresh", /* @__PURE__ */ h(() => {
|
|
44
44
|
if (!t(this, B) || !t(this, w) || t(this, P)) return;
|
|
45
45
|
const e = t(this, w).container, s = e.querySelector("table");
|
|
46
46
|
if (!s) return;
|
|
@@ -73,7 +73,7 @@ const He = class He extends HTMLElement {
|
|
|
73
73
|
const l = s.clientWidth, u = r.scrollWidth - l;
|
|
74
74
|
return c > 0 && u > 0 && (s.scrollLeft = a / c * u), a > 0 && a < c - 1;
|
|
75
75
|
}, "#thumbMoveTo"));
|
|
76
|
-
d(this,
|
|
76
|
+
d(this, It, /* @__PURE__ */ h(() => {
|
|
77
77
|
const e = /* @__PURE__ */ h((r) => {
|
|
78
78
|
clearInterval(t(this, X)), clearInterval(t(this, K));
|
|
79
79
|
const n = parseInt(t(this, w).thumb.style.left || 0, 10);
|
|
@@ -190,7 +190,7 @@ const He = class He extends HTMLElement {
|
|
|
190
190
|
right: this.querySelector(".ng-scroll-right")
|
|
191
191
|
}), s.addEventListener("scroll", () => {
|
|
192
192
|
t(this, P) || this.refresh();
|
|
193
|
-
}), t(this,
|
|
193
|
+
}), t(this, It).call(this), t(this, Mt).call(this), this.refresh();
|
|
194
194
|
}, "initWhenReady");
|
|
195
195
|
e();
|
|
196
196
|
}
|
|
@@ -198,24 +198,24 @@ const He = class He extends HTMLElement {
|
|
|
198
198
|
t(this, Z) && t(this, Z).disconnect();
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
|
-
B = new WeakMap(), P = new WeakMap(), w = new WeakMap(), X = new WeakMap(), K = new WeakMap(), Z = new WeakMap(),
|
|
201
|
+
B = new WeakMap(), P = new WeakMap(), w = new WeakMap(), X = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), Mt = new WeakMap(), G = new WeakMap(), It = new WeakMap(), h(He, "NineTableHScrollBar");
|
|
202
202
|
let ae = He;
|
|
203
203
|
customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", ae);
|
|
204
|
-
var j, ot, J,
|
|
204
|
+
var j, ot, J, q, mt, xt, _t;
|
|
205
205
|
const $e = class $e extends HTMLElement {
|
|
206
206
|
constructor() {
|
|
207
207
|
super();
|
|
208
208
|
d(this, j);
|
|
209
209
|
d(this, ot);
|
|
210
210
|
d(this, J, !1);
|
|
211
|
-
d(this,
|
|
211
|
+
d(this, q);
|
|
212
|
+
d(this, mt, 0);
|
|
212
213
|
d(this, xt, 0);
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
const e = t(this, R).container, s = t(this, R).track, r = t(this, R).thumb, n = e.clientHeight, a = (t(this, j).data.get() || []).length, c = t(this, ot).getRowHeight(), l = a * c;
|
|
214
|
+
E(this, "refresh", /* @__PURE__ */ h(() => {
|
|
215
|
+
if (!t(this, j) || !t(this, q)) return;
|
|
216
|
+
const e = t(this, q).container, s = t(this, q).track, r = t(this, q).thumb, n = e.clientHeight, a = (t(this, j).data.get() || []).length, c = t(this, ot).getRowHeight(), l = a * c;
|
|
217
217
|
if (l <= n) {
|
|
218
|
-
r.style.display = "none", t(this,
|
|
218
|
+
r.style.display = "none", t(this, q).top.disabled = !0, t(this, q).bottom.disabled = !0;
|
|
219
219
|
return;
|
|
220
220
|
} else
|
|
221
221
|
r.style.display = "block";
|
|
@@ -227,24 +227,24 @@ const $e = class $e extends HTMLElement {
|
|
|
227
227
|
let m = 0;
|
|
228
228
|
g > 0 && (m = b / g * (f - u));
|
|
229
229
|
const v = f - u;
|
|
230
|
-
m < 0 && (m = 0), m > v && (m = v), r.style.top = `${m}px`, t(this,
|
|
230
|
+
m < 0 && (m = 0), m > v && (m = v), r.style.top = `${m}px`, t(this, q).top.disabled = b <= 0, t(this, q).bottom.disabled = b >= g - 1;
|
|
231
231
|
}, "refresh"));
|
|
232
|
-
d(this,
|
|
233
|
-
const e = t(this,
|
|
232
|
+
d(this, _t, /* @__PURE__ */ h(() => {
|
|
233
|
+
const e = t(this, q).container, s = /* @__PURE__ */ h(() => {
|
|
234
234
|
const n = (t(this, j).data.get() || []).length, o = t(this, ot).getRowHeight();
|
|
235
235
|
return n * o;
|
|
236
236
|
}, "getContentHeight");
|
|
237
237
|
e.addEventListener("scroll", () => {
|
|
238
238
|
t(this, J) || this.refresh();
|
|
239
|
-
}), t(this,
|
|
239
|
+
}), t(this, q).thumb.addEventListener("mousedown", (r) => {
|
|
240
240
|
if (r.button !== 0) return;
|
|
241
|
-
r.stopPropagation(), r.preventDefault(), y(this, J, !0), y(this,
|
|
241
|
+
r.stopPropagation(), r.preventDefault(), y(this, J, !0), y(this, mt, r.clientY), y(this, xt, e.scrollTop);
|
|
242
242
|
const n = /* @__PURE__ */ h((a) => {
|
|
243
243
|
if (!t(this, J)) return;
|
|
244
|
-
const c = t(this,
|
|
244
|
+
const c = t(this, q).track.getBoundingClientRect(), l = t(this, q).thumb.clientHeight, u = c.height - l, b = a.clientY - t(this, mt), g = e.clientHeight, m = s(), v = Math.max(m - g, 1);
|
|
245
245
|
if (u > 0 && v > 0) {
|
|
246
|
-
const
|
|
247
|
-
let x = t(this,
|
|
246
|
+
const S = b / u * v;
|
|
247
|
+
let x = t(this, xt) + S;
|
|
248
248
|
const H = Math.max(0, m - g);
|
|
249
249
|
x < 0 && (x = 0), x > H && (x = H), e.scrollTop = x;
|
|
250
250
|
}
|
|
@@ -253,17 +253,17 @@ const $e = class $e extends HTMLElement {
|
|
|
253
253
|
y(this, J, !1), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", o), this.refresh();
|
|
254
254
|
}, "onMouseUp");
|
|
255
255
|
document.addEventListener("mousemove", n), document.addEventListener("mouseup", o);
|
|
256
|
-
}), t(this,
|
|
257
|
-
if (r.button !== 0 || r.target === t(this,
|
|
258
|
-
const n = t(this,
|
|
256
|
+
}), t(this, q).track.addEventListener("mousedown", (r) => {
|
|
257
|
+
if (r.button !== 0 || r.target === t(this, q).thumb) return;
|
|
258
|
+
const n = t(this, q).track.getBoundingClientRect(), o = t(this, q).thumb.clientHeight, a = r.clientY - n.top - o / 2, l = n.height - o, f = e.clientHeight, u = s(), b = Math.max(u - f, 1);
|
|
259
259
|
if (l > 0 && b > 0) {
|
|
260
260
|
const g = Math.max(0, Math.min(1, a / l));
|
|
261
261
|
e.scrollTop = g * b;
|
|
262
262
|
}
|
|
263
263
|
this.refresh();
|
|
264
|
-
}), t(this,
|
|
264
|
+
}), t(this, q).top.addEventListener("click", () => {
|
|
265
265
|
e.scrollTop -= 40;
|
|
266
|
-
}), t(this,
|
|
266
|
+
}), t(this, q).bottom.addEventListener("click", () => {
|
|
267
267
|
e.scrollTop += 40;
|
|
268
268
|
});
|
|
269
269
|
}, "#init"));
|
|
@@ -339,41 +339,38 @@ const $e = class $e extends HTMLElement {
|
|
|
339
339
|
setTimeout(e, 10);
|
|
340
340
|
return;
|
|
341
341
|
}
|
|
342
|
-
y(this,
|
|
342
|
+
y(this, q, {
|
|
343
343
|
container: s,
|
|
344
344
|
track: this.querySelector(".ng-scroll-track"),
|
|
345
345
|
thumb: this.querySelector(".ng-scroll-thumb"),
|
|
346
346
|
top: this.querySelector(".ng-scroll-top"),
|
|
347
347
|
bottom: this.querySelector(".ng-scroll-bottom")
|
|
348
|
-
}), t(this,
|
|
348
|
+
}), t(this, _t).call(this), this.refresh();
|
|
349
349
|
}, "initWhenReady");
|
|
350
350
|
e();
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
|
-
j = new WeakMap(), ot = new WeakMap(), J = new WeakMap(),
|
|
353
|
+
j = new WeakMap(), ot = new WeakMap(), J = new WeakMap(), q = new WeakMap(), mt = new WeakMap(), xt = new WeakMap(), _t = new WeakMap(), h($e, "NineTableVScrollBar");
|
|
354
354
|
let le = $e;
|
|
355
355
|
customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", le);
|
|
356
|
-
var D,
|
|
356
|
+
var D, A, z, M, F, Q, vt, Se, at, Nt, Wt, Ot, Bt, wt, zt, Dt, St, Ee, Et, At, Pt;
|
|
357
357
|
const Me = class Me {
|
|
358
358
|
constructor(i) {
|
|
359
359
|
d(this, D);
|
|
360
|
-
d(this,
|
|
360
|
+
d(this, A);
|
|
361
361
|
d(this, z, /* @__PURE__ */ new Map());
|
|
362
362
|
d(this, M, null);
|
|
363
363
|
d(this, F, null);
|
|
364
364
|
d(this, Q, 0);
|
|
365
|
-
d(this,
|
|
365
|
+
d(this, vt, 40);
|
|
366
366
|
d(this, Se, !1);
|
|
367
367
|
d(this, at, !1);
|
|
368
|
-
d(this,
|
|
369
|
-
|
|
370
|
-
var e;
|
|
371
|
-
const i = t(this, S).querySelector(".ng-container-body .ng-part-body");
|
|
372
|
-
i && (t(this, St).call(this), t(this, lt).call(this, i.scrollTop), (e = t(this, S).querySelector("nine-table-vscrollbar")) == null || e.refresh());
|
|
368
|
+
d(this, Nt, 3);
|
|
369
|
+
E(this, "refresh", /* @__PURE__ */ h(() => {
|
|
373
370
|
}, "refresh"));
|
|
374
|
-
|
|
371
|
+
E(this, "initialize", /* @__PURE__ */ h(() => {
|
|
375
372
|
y(this, M, null), t(this, z).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
|
|
376
|
-
const a = t(this,
|
|
373
|
+
const a = t(this, A).querySelector(o);
|
|
377
374
|
if (!a) return;
|
|
378
375
|
const c = a.querySelector(".ng-part-body table");
|
|
379
376
|
if (!c) return;
|
|
@@ -382,13 +379,13 @@ const Me = class Me {
|
|
|
382
379
|
const u = Array.from(l.querySelectorAll("tr")).map((b) => b.cloneNode(!0));
|
|
383
380
|
t(this, z).set(o, u);
|
|
384
381
|
});
|
|
385
|
-
const i = t(this,
|
|
382
|
+
const i = t(this, A).querySelector(".ng-container-body .ng-part-body"), e = t(this, A).querySelector(".ng-container-left .ng-part-body"), s = t(this, A).querySelector(".ng-container-right .ng-part-body"), r = t(this, A).querySelector(".ng-container-body .ng-part-header"), n = t(this, A).querySelector(".ng-container-body .ng-part-footer");
|
|
386
383
|
if (i) {
|
|
387
|
-
t(this,
|
|
384
|
+
t(this, Ot).call(this, i), t(this, St).call(this), t(this, Bt).call(this), t(this, Et).call(this, i.scrollTop);
|
|
388
385
|
let o = !1;
|
|
389
386
|
const a = /* @__PURE__ */ h((c, l, f) => {
|
|
390
387
|
var u;
|
|
391
|
-
o || (o = !0, i && i.scrollTop !== c && (i.scrollTop = c), e && e.scrollTop !== c && (e.scrollTop = c), s && s.scrollTop !== c && (s.scrollTop = c), r && r.scrollLeft !== l && (r.scrollLeft = l), n && n.scrollLeft !== l && (n.scrollLeft = l), t(this,
|
|
388
|
+
o || (o = !0, i && i.scrollTop !== c && (i.scrollTop = c), e && e.scrollTop !== c && (e.scrollTop = c), s && s.scrollTop !== c && (s.scrollTop = c), r && r.scrollLeft !== l && (r.scrollLeft = l), n && n.scrollLeft !== l && (n.scrollLeft = l), t(this, Et).call(this, c), (u = t(this, A).querySelector("nine-table-vscrollbar")) == null || u.refresh(), o = !1);
|
|
392
389
|
}, "syncScroll");
|
|
393
390
|
[i, e, s].forEach((c) => {
|
|
394
391
|
c && c.addEventListener("scroll", () => {
|
|
@@ -399,20 +396,20 @@ const Me = class Me {
|
|
|
399
396
|
});
|
|
400
397
|
}
|
|
401
398
|
}, "initialize"));
|
|
402
|
-
d(this,
|
|
399
|
+
d(this, Wt, /* @__PURE__ */ h((i, e) => {
|
|
403
400
|
const s = t(this, z).get(e);
|
|
404
401
|
if (!s || s.length === 0) return;
|
|
405
402
|
const r = i.querySelector(".ng-part-body tbody.bindable-tbody");
|
|
406
403
|
if (!r) return;
|
|
407
404
|
r.querySelectorAll("tr:not(.nodata)").forEach((a) => a.remove());
|
|
408
405
|
const n = r.querySelector("tr.nodata"), o = document.createDocumentFragment();
|
|
409
|
-
for (let a = 0; a < t(this,
|
|
406
|
+
for (let a = 0; a < t(this, vt); a++)
|
|
410
407
|
s.forEach((c) => {
|
|
411
408
|
o.appendChild(c.cloneNode(!0));
|
|
412
409
|
});
|
|
413
410
|
n ? n.before(o) : r.appendChild(o);
|
|
414
411
|
}, "#renderRows"));
|
|
415
|
-
d(this,
|
|
412
|
+
d(this, Ot, /* @__PURE__ */ h((i) => {
|
|
416
413
|
if (t(this, M) !== null && t(this, M) > 0)
|
|
417
414
|
return t(this, M);
|
|
418
415
|
U.log("#measureAndCacheHeight");
|
|
@@ -425,35 +422,35 @@ const Me = class Me {
|
|
|
425
422
|
e.forEach((b) => {
|
|
426
423
|
n.appendChild(b.cloneNode(!0));
|
|
427
424
|
}), r ? r.before(n) : s.appendChild(n);
|
|
428
|
-
const o = t(this,
|
|
425
|
+
const o = t(this, A), a = o.style.display, c = o.style.visibility, l = o.style.position;
|
|
429
426
|
(a === "none" || window.getComputedStyle(o).display === "none") && (o.style.display = "block", o.style.visibility = "hidden", o.style.position = "absolute");
|
|
430
427
|
let f = 0;
|
|
431
428
|
const u = s.querySelectorAll("tr:not(.nodata)");
|
|
432
429
|
return u.forEach((b) => {
|
|
433
430
|
f += b.offsetHeight || b.getBoundingClientRect().height;
|
|
434
|
-
}), u.forEach((b) => b.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, y(this, M, f > 0 ? f : 24), t(this,
|
|
431
|
+
}), u.forEach((b) => b.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, y(this, M, f > 0 ? f : 24), t(this, wt).call(this), t(this, M);
|
|
435
432
|
}, "#measureAndCacheHeight"));
|
|
436
|
-
d(this,
|
|
433
|
+
d(this, Bt, /* @__PURE__ */ h(() => {
|
|
437
434
|
const e = (t(this, D).data.get() || []).length, s = t(this, M), r = e * s;
|
|
438
435
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((n) => {
|
|
439
|
-
const o = t(this,
|
|
436
|
+
const o = t(this, A).querySelector(n);
|
|
440
437
|
if (!o) return;
|
|
441
438
|
const a = o.querySelector(".ng-part-body .ng-virtual-spacer");
|
|
442
439
|
a && (a.style.height = `${r}px`);
|
|
443
440
|
});
|
|
444
441
|
}, "#updateVirtualScrollHeight"));
|
|
445
|
-
d(this,
|
|
442
|
+
d(this, wt, /* @__PURE__ */ h(() => {
|
|
446
443
|
if (t(this, Q) > 0 && t(this, M) > 0) {
|
|
447
444
|
const i = Math.ceil(t(this, Q) / t(this, M));
|
|
448
|
-
y(this,
|
|
445
|
+
y(this, vt, i + t(this, Nt));
|
|
449
446
|
}
|
|
450
447
|
}, "#updateRowCount"));
|
|
451
448
|
d(this, zt, /* @__PURE__ */ h(() => {
|
|
452
449
|
var a, c, l, f, u, b;
|
|
453
|
-
const i = t(this,
|
|
450
|
+
const i = t(this, A).querySelector(".ng-container-left .ng-part-body table"), e = t(this, A).querySelector(".ng-container-body .ng-part-body table"), s = t(this, A).querySelector(".ng-container-right .ng-part-body table");
|
|
454
451
|
if (e) {
|
|
455
|
-
const g = i ? Array.from(i.querySelectorAll("tbody tr")) : [], m = Array.from(e.querySelectorAll("tbody tr")), v = s ? Array.from(s.querySelectorAll("tbody tr")) : [],
|
|
456
|
-
for (let x = 0; x <
|
|
452
|
+
const g = i ? Array.from(i.querySelectorAll("tbody tr")) : [], m = Array.from(e.querySelectorAll("tbody tr")), v = s ? Array.from(s.querySelectorAll("tbody tr")) : [], S = Math.max(g.length, m.length, v.length);
|
|
453
|
+
for (let x = 0; x < S; x++) {
|
|
457
454
|
const H = [
|
|
458
455
|
((a = g[x]) == null ? void 0 : a.getBoundingClientRect().height) || 0,
|
|
459
456
|
((c = m[x]) == null ? void 0 : c.getBoundingClientRect().height) || 0,
|
|
@@ -462,10 +459,10 @@ const Me = class Me {
|
|
|
462
459
|
k > 0 && (g[x] && (g[x].style.height = `${k}px`), m[x] && (m[x].style.height = `${k}px`), v[x] && (v[x].style.height = `${k}px`));
|
|
463
460
|
}
|
|
464
461
|
}
|
|
465
|
-
const r = t(this,
|
|
462
|
+
const r = t(this, A).querySelector(".ng-container-left .ng-part-footer table"), n = t(this, A).querySelector(".ng-container-body .ng-part-footer table"), o = t(this, A).querySelector(".ng-container-right .ng-part-footer table");
|
|
466
463
|
if (n) {
|
|
467
|
-
const g = r ? Array.from(r.querySelectorAll("tfoot tr")) : [], m = Array.from(n.querySelectorAll("tfoot tr")), v = o ? Array.from(o.querySelectorAll("tfoot tr")) : [],
|
|
468
|
-
for (let x = 0; x <
|
|
464
|
+
const g = r ? Array.from(r.querySelectorAll("tfoot tr")) : [], m = Array.from(n.querySelectorAll("tfoot tr")), v = o ? Array.from(o.querySelectorAll("tfoot tr")) : [], S = Math.max(g.length, m.length, v.length);
|
|
465
|
+
for (let x = 0; x < S; x++) {
|
|
469
466
|
const H = [
|
|
470
467
|
((f = g[x]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
|
|
471
468
|
((u = m[x]) == null ? void 0 : u.getBoundingClientRect().height) || 0,
|
|
@@ -476,7 +473,7 @@ const Me = class Me {
|
|
|
476
473
|
}
|
|
477
474
|
}, "#syncRowHeights"));
|
|
478
475
|
d(this, Dt, /* @__PURE__ */ h(() => {
|
|
479
|
-
!t(this,
|
|
476
|
+
!t(this, A) || !(t(this, A) instanceof HTMLElement) || (y(this, F, new ResizeObserver((i) => {
|
|
480
477
|
for (const e of i) {
|
|
481
478
|
const s = e.target;
|
|
482
479
|
if (!s.classList.contains("active")) continue;
|
|
@@ -486,21 +483,21 @@ const Me = class Me {
|
|
|
486
483
|
const o = s.querySelector(".ng-part-header"), a = s.querySelector(".ng-part-footer");
|
|
487
484
|
o && (n += o.offsetHeight), a && (n += a.offsetHeight);
|
|
488
485
|
const c = Math.max(r - n, 100);
|
|
489
|
-
t(this, Q) !== c && (y(this, Q, c), t(this,
|
|
486
|
+
t(this, Q) !== c && (y(this, Q, c), t(this, wt).call(this), t(this, M) !== null && t(this, St).call(this));
|
|
490
487
|
}
|
|
491
488
|
}
|
|
492
|
-
})), t(this, F).observe(t(this,
|
|
489
|
+
})), t(this, F).observe(t(this, A)));
|
|
493
490
|
}, "#initResizeObserver"));
|
|
494
|
-
d(this,
|
|
491
|
+
d(this, St, /* @__PURE__ */ h(() => {
|
|
495
492
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
|
|
496
|
-
const e = t(this,
|
|
497
|
-
e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this,
|
|
493
|
+
const e = t(this, A).querySelector(i);
|
|
494
|
+
e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Wt).call(this, e, i);
|
|
498
495
|
}), t(this, Pt).call(this), t(this, zt).call(this);
|
|
499
496
|
}, "#renderAllContainers"));
|
|
500
497
|
d(this, Ee, /* @__PURE__ */ h((i) => {
|
|
501
498
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((e) => {
|
|
502
499
|
var l;
|
|
503
|
-
const s = t(this,
|
|
500
|
+
const s = t(this, A).querySelector(e);
|
|
504
501
|
if (!s) return;
|
|
505
502
|
const r = s.querySelector(".ng-part-body tbody.bindable-tbody");
|
|
506
503
|
if (!r) return;
|
|
@@ -512,33 +509,33 @@ const Me = class Me {
|
|
|
512
509
|
return;
|
|
513
510
|
}
|
|
514
511
|
const g = t(this, D).data.get(b);
|
|
515
|
-
f.style.display = "", t(this,
|
|
512
|
+
f.style.display = "", t(this, At).call(this, f, g, b);
|
|
516
513
|
});
|
|
517
514
|
});
|
|
518
515
|
}, "#adjustBufferRows"));
|
|
519
|
-
d(this,
|
|
516
|
+
d(this, Et, /* @__PURE__ */ h((i) => {
|
|
520
517
|
var u;
|
|
521
518
|
const e = t(this, M);
|
|
522
519
|
if (!e || e <= 0) return;
|
|
523
|
-
const r = (t(this, D).data.get() || []).length, n = Math.max(0, Math.floor(i / e)), o = n * e, a = ((u = t(this, z).get(".ng-container-body")) == null ? void 0 : u.length) || 1, c = t(this,
|
|
520
|
+
const r = (t(this, D).data.get() || []).length, n = Math.max(0, Math.floor(i / e)), o = n * e, a = ((u = t(this, z).get(".ng-container-body")) == null ? void 0 : u.length) || 1, c = t(this, A).querySelector(".ng-container-body"), l = c == null ? void 0 : c.querySelector(".ng-part-body tbody.bindable-tbody tr:not(.nodata)"), f = l && l.dataset.row !== void 0 ? parseInt(l.dataset.row, 10) : -1;
|
|
524
521
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((b) => {
|
|
525
|
-
const g = t(this,
|
|
522
|
+
const g = t(this, A).querySelector(b);
|
|
526
523
|
if (!g) return;
|
|
527
524
|
const m = g.querySelector(".ng-part-body tbody.bindable-tbody");
|
|
528
525
|
m && (m.style.transform = `translateY(${o}px)`);
|
|
529
|
-
}), U.log("#handleScroll", f, n),
|
|
530
|
-
const g = t(this,
|
|
526
|
+
}), U.log("#handleScroll", f, n), f !== n && [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((b) => {
|
|
527
|
+
const g = t(this, A).querySelector(b);
|
|
531
528
|
if (!g) return;
|
|
532
529
|
const m = g.querySelector(".ng-part-body tbody.bindable-tbody");
|
|
533
530
|
if (!m) return;
|
|
534
|
-
Array.from(m.querySelectorAll("tr:not(.nodata)")).forEach((
|
|
531
|
+
Array.from(m.querySelectorAll("tr:not(.nodata)")).forEach((S, x) => {
|
|
535
532
|
const H = n + Math.floor(x / a);
|
|
536
533
|
if (H >= r) {
|
|
537
|
-
|
|
534
|
+
S.style.display = "none";
|
|
538
535
|
return;
|
|
539
536
|
}
|
|
540
537
|
const k = t(this, D).data.get(H);
|
|
541
|
-
|
|
538
|
+
S.style.display = "", t(this, At).call(this, S, k, H);
|
|
542
539
|
});
|
|
543
540
|
});
|
|
544
541
|
}, "#handleScroll"));
|
|
@@ -556,7 +553,7 @@ const Me = class Me {
|
|
|
556
553
|
cell.dataset.row = dataIndex;
|
|
557
554
|
});
|
|
558
555
|
}; */
|
|
559
|
-
d(this,
|
|
556
|
+
d(this, At, /* @__PURE__ */ h((i, e, s) => {
|
|
560
557
|
i.dataset.row = s, i.data = e, U.log(s), Array.from(i.cells).forEach((r, n) => {
|
|
561
558
|
r.dataset.row = s, r.querySelector(':scope > [is^="cell-"], :scope > [class*="cell-"], :scope > cell-');
|
|
562
559
|
const o = Array.from(r.children).find((a) => a.tagName.toLowerCase().startsWith("cell-") || typeof a.refresh == "function");
|
|
@@ -565,7 +562,7 @@ const Me = class Me {
|
|
|
565
562
|
}, "#bindRowData"));
|
|
566
563
|
d(this, Pt, /* @__PURE__ */ h(() => {
|
|
567
564
|
var c, l, f;
|
|
568
|
-
const i = t(this,
|
|
565
|
+
const i = t(this, A).querySelector(".ng-container-left .ng-part-header table"), e = t(this, A).querySelector(".ng-container-body .ng-part-header table"), s = t(this, A).querySelector(".ng-container-right .ng-part-header table");
|
|
569
566
|
if (!e) return;
|
|
570
567
|
const r = i ? Array.from(i.querySelectorAll("tr")) : [], n = Array.from(e.querySelectorAll("tr")), o = s ? Array.from(s.querySelectorAll("tr")) : [], a = Math.max(r.length, n.length, o.length);
|
|
571
568
|
for (let u = 0; u < a; u++) {
|
|
@@ -577,10 +574,10 @@ const Me = class Me {
|
|
|
577
574
|
g > 0 && (r[u] && (r[u].style.height = `${g}px`), n[u] && (n[u].style.height = `${g}px`), o[u] && (o[u].style.height = `${g}px`));
|
|
578
575
|
}
|
|
579
576
|
}, "#syncHeaderHeights"));
|
|
580
|
-
|
|
577
|
+
E(this, "destroy", /* @__PURE__ */ h(() => {
|
|
581
578
|
t(this, F) && (t(this, F).disconnect(), y(this, F, null));
|
|
582
579
|
}, "destroy"));
|
|
583
|
-
y(this, D, i.getRootNode().host), y(this,
|
|
580
|
+
y(this, D, i.getRootNode().host), y(this, A, i), t(this, Dt).call(this);
|
|
584
581
|
}
|
|
585
582
|
getRowHeight() {
|
|
586
583
|
return t(this, M);
|
|
@@ -590,7 +587,7 @@ const Me = class Me {
|
|
|
590
587
|
return ((e = t(this, z).get(i)) == null ? void 0 : e.length) || 1;
|
|
591
588
|
}
|
|
592
589
|
};
|
|
593
|
-
D = new WeakMap(),
|
|
590
|
+
D = new WeakMap(), A = new WeakMap(), z = new WeakMap(), M = new WeakMap(), F = new WeakMap(), Q = new WeakMap(), vt = new WeakMap(), Se = new WeakMap(), at = new WeakMap(), Nt = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), wt = new WeakMap(), zt = new WeakMap(), Dt = new WeakMap(), St = new WeakMap(), Ee = new WeakMap(), Et = new WeakMap(), At = new WeakMap(), Pt = new WeakMap(), h(Me, "RowManager");
|
|
594
591
|
let ce = Me;
|
|
595
592
|
const jt = class jt {
|
|
596
593
|
/**
|
|
@@ -610,8 +607,8 @@ const jt = class jt {
|
|
|
610
607
|
if (l.children.length > 0 && l.firstElementChild.tagName.includes("-")) return;
|
|
611
608
|
let u = `cell-${f}`;
|
|
612
609
|
const b = l.getAttribute("data-bind"), g = l.getAttribute("data-expr"), m = l.getAttribute("maxbyte"), v = l.getAttribute("type");
|
|
613
|
-
let
|
|
614
|
-
b &&
|
|
610
|
+
let S = [];
|
|
611
|
+
b && S.push(`data-bind="${b}"`), g && S.push(`data-expr="${g}"`), m && S.push(`maxbyte="${m}"`), v && S.push(`type="${v}"`), l.innerHTML = `<${u} ${S.join(" ")}></${u}>`;
|
|
615
612
|
});
|
|
616
613
|
}, "processCellTypes"), s = /* @__PURE__ */ h((a) => {
|
|
617
614
|
if (!a.querySelector("colgroup")) {
|
|
@@ -637,24 +634,24 @@ const jt = class jt {
|
|
|
637
634
|
const g = Array.from(Array(u), () => Array(b).fill(null));
|
|
638
635
|
l.forEach((m) => {
|
|
639
636
|
const v = m.sectionRowIndex;
|
|
640
|
-
let
|
|
637
|
+
let S = 0;
|
|
641
638
|
Array.from(m.querySelectorAll("th,td")).forEach((x) => {
|
|
642
639
|
for (let O = 0; O < g[v].length; O++)
|
|
643
640
|
if (g[v][O] === null) {
|
|
644
|
-
|
|
641
|
+
S = O;
|
|
645
642
|
break;
|
|
646
643
|
}
|
|
647
644
|
const H = x.rowSpan || 1, k = x.colSpan || 1;
|
|
648
645
|
for (let O = 0; O < H; O++)
|
|
649
|
-
for (let
|
|
650
|
-
v + O < u &&
|
|
646
|
+
for (let bt = 0; bt < k; bt++)
|
|
647
|
+
v + O < u && S + bt < b && (g[v + O][S + bt] = O === 0 && bt === 0 ? "1" : "0");
|
|
651
648
|
});
|
|
652
649
|
}), l.forEach((m) => {
|
|
653
650
|
const v = m.sectionRowIndex;
|
|
654
|
-
Array.from(m.querySelectorAll("th,td")).forEach((
|
|
651
|
+
Array.from(m.querySelectorAll("th,td")).forEach((S) => {
|
|
655
652
|
for (let x = 0; x < g[v].length; x++)
|
|
656
653
|
if (g[v][x] === "1") {
|
|
657
|
-
|
|
654
|
+
S.dataset.col = x, g[v][x] = "0";
|
|
658
655
|
break;
|
|
659
656
|
}
|
|
660
657
|
});
|
|
@@ -671,16 +668,15 @@ const jt = class jt {
|
|
|
671
668
|
};
|
|
672
669
|
h(jt, "TableCompiler");
|
|
673
670
|
let he = jt;
|
|
674
|
-
var Ft, tt, et, Vt, Yt,
|
|
675
|
-
const
|
|
671
|
+
var Ft, tt, et, Vt, Yt, lt, Ut, Xt;
|
|
672
|
+
const yt = class yt extends HTMLElement {
|
|
676
673
|
constructor() {
|
|
677
674
|
super();
|
|
678
675
|
d(this, Ft);
|
|
679
676
|
d(this, tt, null);
|
|
680
677
|
d(this, et);
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
t(this, et).refresh(), (e = this.querySelector("nine-table-hscrollbar")) == null || e.refresh(), (s = this.querySelector("nine-table-vscrollbar")) == null || s.refresh();
|
|
678
|
+
E(this, "invalidate", /* @__PURE__ */ h(() => {
|
|
679
|
+
t(this, et).refresh();
|
|
684
680
|
}, "invalidate"));
|
|
685
681
|
d(this, Vt, /* @__PURE__ */ h(() => {
|
|
686
682
|
[
|
|
@@ -692,15 +688,15 @@ const pt = class pt extends HTMLElement {
|
|
|
692
688
|
if (!n) return;
|
|
693
689
|
n.innerHTML = "";
|
|
694
690
|
const o = document.createElement("div");
|
|
695
|
-
o.className = "ng-part-header", o.appendChild(t(this,
|
|
691
|
+
o.className = "ng-part-header", o.appendChild(t(this, lt).call(this, t(this, tt), r, "header"));
|
|
696
692
|
const a = document.createElement("div");
|
|
697
693
|
a.className = "ng-part-body";
|
|
698
694
|
const c = document.createElement("div");
|
|
699
|
-
c.className = "ng-scroll-content", c.style.position = "relative", c.style.width = "100%", c.appendChild(t(this,
|
|
695
|
+
c.className = "ng-scroll-content", c.style.position = "relative", c.style.width = "100%", c.appendChild(t(this, lt).call(this, t(this, tt), r, "body"));
|
|
700
696
|
const l = document.createElement("div");
|
|
701
697
|
l.className = "ng-virtual-spacer", l.style.width = "100%", l.style.pointerEvents = "none", c.appendChild(l), a.appendChild(c);
|
|
702
698
|
const f = document.createElement("div");
|
|
703
|
-
f.className = "ng-part-footer", f.appendChild(t(this,
|
|
699
|
+
f.className = "ng-part-footer", f.appendChild(t(this, lt).call(this, t(this, tt), r, "footer")), n.appendChild(o), n.appendChild(a), n.appendChild(f);
|
|
704
700
|
});
|
|
705
701
|
}, "#renderSplitContainers"));
|
|
706
702
|
d(this, Yt, /* @__PURE__ */ h(() => {
|
|
@@ -714,13 +710,13 @@ const pt = class pt extends HTMLElement {
|
|
|
714
710
|
}), e === "body" ? s.style.flex = "1" : (s.style.flex = `0 0 ${n}px`, s.style.width = `${n}px`);
|
|
715
711
|
});
|
|
716
712
|
}, "#updateContainerWidths"));
|
|
717
|
-
|
|
713
|
+
E(this, "generate", /* @__PURE__ */ h((e) => {
|
|
718
714
|
e && (y(this, tt, he.compile(e)), t(this, Vt).call(this), t(this, Yt).call(this), t(this, et).initialize(), setTimeout(() => {
|
|
719
715
|
var s;
|
|
720
716
|
(s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
|
|
721
717
|
}, 0));
|
|
722
718
|
}, "generate"));
|
|
723
|
-
d(this,
|
|
719
|
+
d(this, lt, /* @__PURE__ */ h((e, s, r) => {
|
|
724
720
|
const n = e.cloneNode(!0), o = n.querySelector("thead"), a = n.querySelector("tbody"), c = n.querySelector("tfoot");
|
|
725
721
|
if (r === "header") {
|
|
726
722
|
if (a && a.remove(), c && c.remove(), e.querySelector("tbody")) {
|
|
@@ -736,12 +732,12 @@ const pt = class pt extends HTMLElement {
|
|
|
736
732
|
l.remove();
|
|
737
733
|
}), n;
|
|
738
734
|
}, "#createSplitTable"));
|
|
739
|
-
|
|
740
|
-
|
|
735
|
+
E(this, "getRowHeight", /* @__PURE__ */ h(() => t(this, et).getRowHeight(), "getRowHeight"));
|
|
736
|
+
E(this, "scrollToX", /* @__PURE__ */ h((e) => {
|
|
741
737
|
const s = this.querySelector(".ng-container-body .ng-part-body");
|
|
742
738
|
s && (s.scrollLeft = e);
|
|
743
739
|
}, "scrollToX"));
|
|
744
|
-
|
|
740
|
+
E(this, "scrollToY", /* @__PURE__ */ h((e) => {
|
|
745
741
|
const s = this.querySelector(".ng-container-body .ng-part-body");
|
|
746
742
|
s && (s.scrollTop = e);
|
|
747
743
|
}, "scrollToY"));
|
|
@@ -749,7 +745,7 @@ const pt = class pt extends HTMLElement {
|
|
|
749
745
|
t(this, Xt).call(this);
|
|
750
746
|
}, "#init"));
|
|
751
747
|
d(this, Xt, /* @__PURE__ */ h(() => {
|
|
752
|
-
const e =
|
|
748
|
+
const e = yt.SCROLLBAR_SIZE;
|
|
753
749
|
this.innerHTML = `
|
|
754
750
|
<style>
|
|
755
751
|
nine-table-sheet {
|
|
@@ -900,9 +896,9 @@ const pt = class pt extends HTMLElement {
|
|
|
900
896
|
this.innerHTML = "", U.log("NineTableSheet destroyed.");
|
|
901
897
|
}
|
|
902
898
|
};
|
|
903
|
-
Ft = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), Vt = new WeakMap(), Yt = new WeakMap(),
|
|
904
|
-
let
|
|
905
|
-
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet",
|
|
899
|
+
Ft = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), Vt = new WeakMap(), Yt = new WeakMap(), lt = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), h(yt, "NineTableSheet"), E(yt, "SCROLLBAR_SIZE", 16);
|
|
900
|
+
let $t = yt;
|
|
901
|
+
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", $t);
|
|
906
902
|
var Kt, Rt;
|
|
907
903
|
const Ie = class Ie extends HTMLElement {
|
|
908
904
|
constructor() {
|
|
@@ -921,8 +917,8 @@ const Ie = class Ie extends HTMLElement {
|
|
|
921
917
|
Array.from(this.querySelectorAll("nine-splitter")).forEach((g) => g.style.setProperty("display", "none"));
|
|
922
918
|
const b = f.filter((g) => g.classList.contains("active"));
|
|
923
919
|
b.length < 2 || b.forEach((g) => {
|
|
924
|
-
const m = parseInt(g.getAttribute("data-index"), 10), v = this.querySelector(`nine-splitter[data-split-index="${m}"]`),
|
|
925
|
-
v &&
|
|
920
|
+
const m = parseInt(g.getAttribute("data-index"), 10), v = this.querySelector(`nine-splitter[data-split-index="${m}"]`), S = f[m + 1];
|
|
921
|
+
v && S && S.classList.contains("active") && v.style.setProperty("display", "flex");
|
|
926
922
|
});
|
|
927
923
|
}, "updateSplitters"), n = this.querySelector(".nine-tab-bar"), o = this.querySelector("nine-table-sheets-body"), a = n.querySelectorAll(".nine-tab-item"), c = o.querySelectorAll("nine-table-sheet");
|
|
928
924
|
if (!a[e]) return;
|
|
@@ -954,21 +950,21 @@ const Ie = class Ie extends HTMLElement {
|
|
|
954
950
|
Kt = new WeakMap(), Rt = new WeakMap(), h(Ie, "NineTableSheets");
|
|
955
951
|
let de = Ie;
|
|
956
952
|
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", de);
|
|
957
|
-
var I, Zt,
|
|
953
|
+
var I, Zt, qt, Gt;
|
|
958
954
|
const _e = class _e {
|
|
959
955
|
constructor(i) {
|
|
960
956
|
d(this, I);
|
|
961
957
|
d(this, Zt, /* @__PURE__ */ h(() => {
|
|
962
958
|
t(this, Gt).call(this), new ResizeObserver((i) => {
|
|
963
959
|
for (let e of i)
|
|
964
|
-
t(this, I).getAttribute("auto-height") === "true" && t(this,
|
|
960
|
+
t(this, I).getAttribute("auto-height") === "true" && t(this, qt).call(this);
|
|
965
961
|
}).observe(t(this, I));
|
|
966
962
|
}, "#init"));
|
|
967
|
-
d(this,
|
|
963
|
+
d(this, qt, /* @__PURE__ */ h(() => {
|
|
968
964
|
var c, l;
|
|
969
965
|
const i = Array.from(t(this, I).shadowRoot.querySelectorAll("nine-table-sheet.active"));
|
|
970
966
|
if (i.length === 0) return;
|
|
971
|
-
const e = parseInt(t(this, I).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), r = (c = t(this, I).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, n = (l = t(this, I).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o =
|
|
967
|
+
const e = parseInt(t(this, I).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), r = (c = t(this, I).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, n = (l = t(this, I).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = $t.SCROLLBAR_SIZE, a = e * s + r + n + o;
|
|
972
968
|
t(this, I).style.height = `${a}px`;
|
|
973
969
|
}, "#applyAutoHeight"));
|
|
974
970
|
d(this, Gt, /* @__PURE__ */ h(() => {
|
|
@@ -1070,40 +1066,40 @@ const _e = class _e {
|
|
|
1070
1066
|
const a = t(this, I).shadowRoot.querySelectorAll("nine-table-sheet");
|
|
1071
1067
|
a == null || a.forEach((c, l) => {
|
|
1072
1068
|
e[l] && setTimeout(() => {
|
|
1073
|
-
c.generate(e[l]), s && t(this,
|
|
1069
|
+
c.generate(e[l]), s && t(this, qt).call(this);
|
|
1074
1070
|
});
|
|
1075
1071
|
});
|
|
1076
1072
|
}, "#render"));
|
|
1077
1073
|
y(this, I, i), t(this, Zt).call(this);
|
|
1078
1074
|
}
|
|
1079
1075
|
};
|
|
1080
|
-
I = new WeakMap(), Zt = new WeakMap(),
|
|
1076
|
+
I = new WeakMap(), Zt = new WeakMap(), qt = new WeakMap(), Gt = new WeakMap(), h(_e, "LayoutManager");
|
|
1081
1077
|
let fe = _e;
|
|
1082
|
-
var
|
|
1078
|
+
var kt, ct;
|
|
1083
1079
|
const Ne = class Ne {
|
|
1084
1080
|
constructor(i) {
|
|
1085
|
-
d(this,
|
|
1086
|
-
d(this,
|
|
1087
|
-
|
|
1088
|
-
y(this,
|
|
1081
|
+
d(this, kt);
|
|
1082
|
+
d(this, ct, -1);
|
|
1083
|
+
E(this, "count", /* @__PURE__ */ h(() => t(this, kt).rawRecords.length, "count"));
|
|
1084
|
+
y(this, kt, i);
|
|
1089
1085
|
}
|
|
1090
1086
|
get at() {
|
|
1091
|
-
return t(this,
|
|
1087
|
+
return t(this, ct);
|
|
1092
1088
|
}
|
|
1093
1089
|
set at(i) {
|
|
1094
|
-
y(this,
|
|
1090
|
+
y(this, ct, parseInt(i, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, ct)}"]`) && setTimeout(() => {
|
|
1095
1091
|
});
|
|
1096
1092
|
}
|
|
1097
1093
|
};
|
|
1098
|
-
|
|
1094
|
+
kt = new WeakMap(), ct = new WeakMap(), h(Ne, "ngRow");
|
|
1099
1095
|
let ue = Ne;
|
|
1100
|
-
var _, T, N,
|
|
1096
|
+
var _, T, N, ht, Jt, V, Qt, st, Tt, te, ee, dt;
|
|
1101
1097
|
const W = class W {
|
|
1102
1098
|
constructor(i, e) {
|
|
1103
1099
|
d(this, _);
|
|
1104
1100
|
d(this, T);
|
|
1105
1101
|
d(this, N, []);
|
|
1106
|
-
d(this,
|
|
1102
|
+
d(this, ht, []);
|
|
1107
1103
|
d(this, Jt, 0);
|
|
1108
1104
|
d(this, V, []);
|
|
1109
1105
|
d(this, Qt, /* @__PURE__ */ h(() => {
|
|
@@ -1113,7 +1109,7 @@ const W = class W {
|
|
|
1113
1109
|
var s;
|
|
1114
1110
|
t(this, V).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
|
|
1115
1111
|
}), (t(this, T).rawRecords || []).forEach((e) => {
|
|
1116
|
-
e.__ng || (e.__ng = t(this,
|
|
1112
|
+
e.__ng || (e.__ng = t(this, Tt).call(this)), e.__ng.height = t(this, V).slice();
|
|
1117
1113
|
});
|
|
1118
1114
|
}, "#initialize"));
|
|
1119
1115
|
d(this, st, /* @__PURE__ */ h(() => {
|
|
@@ -1121,23 +1117,23 @@ const W = class W {
|
|
|
1121
1117
|
i.invalidate();
|
|
1122
1118
|
});
|
|
1123
1119
|
}, "#invalidate"));
|
|
1124
|
-
|
|
1120
|
+
E(this, "get", /* @__PURE__ */ h((i, e) => {
|
|
1125
1121
|
var n;
|
|
1126
1122
|
const s = this.getValidData();
|
|
1127
1123
|
if (!s || s.length <= 0) return;
|
|
1128
|
-
if (i == null) return t(this,
|
|
1124
|
+
if (i == null) return t(this, dt).call(this, s);
|
|
1129
1125
|
if (i < 0 || i >= s.length) return null;
|
|
1130
1126
|
const r = typeof ((n = t(this, _).fields) == null ? void 0 : n.get) == "function" ? t(this, _).fields.get() : [];
|
|
1131
1127
|
if (e != null) {
|
|
1132
1128
|
const o = r.indexOf(e);
|
|
1133
1129
|
return o >= 0 ? s[i].v[o] : null;
|
|
1134
1130
|
}
|
|
1135
|
-
return t(this,
|
|
1131
|
+
return t(this, dt).call(this, s[i]);
|
|
1136
1132
|
}, "get"));
|
|
1137
|
-
|
|
1133
|
+
E(this, "set", /* @__PURE__ */ h((i) => {
|
|
1138
1134
|
this.clear(), this.add(i, !1), t(this, st).call(this);
|
|
1139
1135
|
}, "set"));
|
|
1140
|
-
d(this,
|
|
1136
|
+
d(this, Tt, /* @__PURE__ */ h(() => ({
|
|
1141
1137
|
rowState: W.ROW_STATE.EMPTY,
|
|
1142
1138
|
deleted: !1,
|
|
1143
1139
|
filtered: !1,
|
|
@@ -1146,12 +1142,12 @@ const W = class W {
|
|
|
1146
1142
|
c: {},
|
|
1147
1143
|
_: [0, 0, 0, 0, W.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, V).slice(), -1, {}, {}]
|
|
1148
1144
|
}), "#getDefaultMeta"));
|
|
1149
|
-
|
|
1150
|
-
y(this, N, []), y(this,
|
|
1145
|
+
E(this, "reset", /* @__PURE__ */ h(() => {
|
|
1146
|
+
y(this, N, []), y(this, ht, []), t(this, st).call(this);
|
|
1151
1147
|
}, "reset"));
|
|
1152
|
-
|
|
1148
|
+
E(this, "clear", /* @__PURE__ */ h(() => {
|
|
1153
1149
|
var i;
|
|
1154
|
-
t(this, T).rawRecords = [], y(this, N, []), y(this,
|
|
1150
|
+
t(this, T).rawRecords = [], y(this, N, []), y(this, ht, []), (i = t(this, T).viewRecords) != null && i.reset && t(this, T).viewRecords.reset();
|
|
1155
1151
|
}, "clear"));
|
|
1156
1152
|
d(this, te, /* @__PURE__ */ h((i) => {
|
|
1157
1153
|
var r;
|
|
@@ -1165,9 +1161,9 @@ const W = class W {
|
|
|
1165
1161
|
}), s;
|
|
1166
1162
|
}, "#json2Array"));
|
|
1167
1163
|
d(this, ee, /* @__PURE__ */ h((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
|
|
1168
|
-
e.__ng = t(this,
|
|
1164
|
+
e.__ng = t(this, Tt).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = W.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
|
|
1169
1165
|
}), i), "#defaultInsert"));
|
|
1170
|
-
|
|
1166
|
+
E(this, "add", /* @__PURE__ */ h((i, e = !0) => {
|
|
1171
1167
|
i === void 0 && (i = {});
|
|
1172
1168
|
const s = t(this, te).call(this, i);
|
|
1173
1169
|
t(this, T).rawRecords = t(this, T).rawRecords.concat(t(this, ee).call(this, s)), this.resetRecords();
|
|
@@ -1177,7 +1173,7 @@ const W = class W {
|
|
|
1177
1173
|
a && (a.__ng.rowState = W.ROW_STATE.EMPTY);
|
|
1178
1174
|
}), t(this, st).call(this), r;
|
|
1179
1175
|
}, "add"));
|
|
1180
|
-
|
|
1176
|
+
E(this, "delete", /* @__PURE__ */ h((i) => {
|
|
1181
1177
|
let e = [];
|
|
1182
1178
|
Array.isArray(i) ? e = i : typeof i > "u" ? e = [t(this, T).host.row.at] : e = [parseInt(i, 10)], e.sort((s, r) => r - s).forEach((s) => {
|
|
1183
1179
|
if (t(this, N)[s]) {
|
|
@@ -1188,7 +1184,7 @@ const W = class W {
|
|
|
1188
1184
|
}
|
|
1189
1185
|
}), this.resetRecords(), t(this, st).call(this);
|
|
1190
1186
|
}, "delete"));
|
|
1191
|
-
|
|
1187
|
+
E(this, "setValue", /* @__PURE__ */ h((i, e, s) => {
|
|
1192
1188
|
var c;
|
|
1193
1189
|
i = parseInt(i, 10);
|
|
1194
1190
|
const n = (typeof ((c = t(this, _).fields) == null ? void 0 : c.get) == "function" ? t(this, _).fields.get() : []).indexOf(e);
|
|
@@ -1198,15 +1194,15 @@ const W = class W {
|
|
|
1198
1194
|
const a = o.v[n];
|
|
1199
1195
|
a !== s && o.__ng.rowState !== W.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(e) || (o.__ng.o[e] = a), o.__ng.rowState = W.ROW_STATE.UPDATE), o.v[n] = s;
|
|
1200
1196
|
}, "setValue"));
|
|
1201
|
-
|
|
1202
|
-
y(this,
|
|
1197
|
+
E(this, "resetRecords", /* @__PURE__ */ h(() => {
|
|
1198
|
+
y(this, ht, t(this, T).rawRecords.filter((i) => !i.__ng.deleted)), y(this, N, t(this, T).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), t(this, T).rawRecords.forEach((i, e) => {
|
|
1203
1199
|
i.__ng.rowidx = e;
|
|
1204
1200
|
}), t(this, N).forEach((i, e) => {
|
|
1205
1201
|
i.__ng.i = e;
|
|
1206
1202
|
});
|
|
1207
1203
|
}, "resetRecords"));
|
|
1208
|
-
|
|
1209
|
-
d(this,
|
|
1204
|
+
E(this, "getValidData", /* @__PURE__ */ h(() => (t(this, N).length === 0 && t(this, T).rawRecords.length > 0 && this.resetRecords(), t(this, N)), "getValidData"));
|
|
1205
|
+
d(this, dt, /* @__PURE__ */ h((i) => {
|
|
1210
1206
|
var o;
|
|
1211
1207
|
if (!i) return i;
|
|
1212
1208
|
const e = !Array.isArray(i), s = e ? [i] : i, r = typeof ((o = t(this, _).fields) == null ? void 0 : o.get) == "function" ? t(this, _).fields.get() : [], n = s.filter((a) => !a.__ng.deleted).map((a) => {
|
|
@@ -1217,11 +1213,11 @@ const W = class W {
|
|
|
1217
1213
|
});
|
|
1218
1214
|
return e ? n[0] : n;
|
|
1219
1215
|
}, "#conv"));
|
|
1220
|
-
|
|
1216
|
+
E(this, "count", /* @__PURE__ */ h(() => this.getValidData().length, "count"));
|
|
1221
1217
|
y(this, _, i), y(this, T, e), t(this, Qt).call(this);
|
|
1222
1218
|
}
|
|
1223
1219
|
get source() {
|
|
1224
|
-
return t(this,
|
|
1220
|
+
return t(this, dt).call(this, t(this, T).rawRecords);
|
|
1225
1221
|
}
|
|
1226
1222
|
set source(i) {
|
|
1227
1223
|
this.clear(), this.add(i, !1);
|
|
@@ -1236,8 +1232,8 @@ const W = class W {
|
|
|
1236
1232
|
return this.length;
|
|
1237
1233
|
}
|
|
1238
1234
|
};
|
|
1239
|
-
_ = new WeakMap(), T = new WeakMap(), N = new WeakMap(),
|
|
1240
|
-
|
|
1235
|
+
_ = new WeakMap(), T = new WeakMap(), N = new WeakMap(), ht = new WeakMap(), Jt = new WeakMap(), V = new WeakMap(), Qt = new WeakMap(), st = new WeakMap(), Tt = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), dt = new WeakMap(), h(W, "ngData"), // π― ν μν μ μ μμλ₯Ό ν΄λμ€ λ΄λΆλ‘ λ΄μ¬ν
|
|
1236
|
+
E(W, "ROW_STATE", {
|
|
1241
1237
|
EMPTY: "EMPTY",
|
|
1242
1238
|
NORMAL: "NORMAL",
|
|
1243
1239
|
INSERT: "INSERT",
|
|
@@ -1268,26 +1264,26 @@ const We = class We {
|
|
|
1268
1264
|
};
|
|
1269
1265
|
it = new WeakMap(), h(We, "ngDataManager");
|
|
1270
1266
|
let be = We;
|
|
1271
|
-
var
|
|
1267
|
+
var ft, L, Ct, se;
|
|
1272
1268
|
const Oe = class Oe {
|
|
1273
1269
|
// π― μ΄μ { name: string, type: string } κ°μ²΄λ€μ λ°°μ΄λ‘ κ΄λ¦¬ν©λλ€.
|
|
1274
1270
|
constructor(i) {
|
|
1275
|
-
d(this,
|
|
1271
|
+
d(this, ft);
|
|
1276
1272
|
d(this, L, []);
|
|
1277
|
-
|
|
1273
|
+
E(this, "add", /* @__PURE__ */ h((i, e = "string") => {
|
|
1278
1274
|
i.forEach((s) => {
|
|
1279
1275
|
t(this, L).some((r) => r.name === s) || t(this, L).push({ name: s, type: e });
|
|
1280
|
-
}), t(this,
|
|
1276
|
+
}), t(this, Ct).call(this);
|
|
1281
1277
|
}, "add"));
|
|
1282
|
-
d(this,
|
|
1278
|
+
d(this, Ct, /* @__PURE__ */ h(() => {
|
|
1283
1279
|
const i = /* @__PURE__ */ new Map();
|
|
1284
1280
|
t(this, L).forEach((e) => {
|
|
1285
1281
|
i.set(e.name, e.type);
|
|
1286
1282
|
}), 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);
|
|
1287
1283
|
}, "#adjust"));
|
|
1288
1284
|
d(this, se, /* @__PURE__ */ h(() => {
|
|
1289
|
-
y(this, L, []), U.log(t(this,
|
|
1290
|
-
const i = Array.from(t(this,
|
|
1285
|
+
y(this, L, []), U.log(t(this, ft).querySelectorAll("table"));
|
|
1286
|
+
const i = Array.from(t(this, ft).querySelectorAll("table"));
|
|
1291
1287
|
if (!(!i || i.length === 0)) {
|
|
1292
1288
|
for (const e of i)
|
|
1293
1289
|
U.log(e), $("[data-bind]", e).each((s, r) => {
|
|
@@ -1314,10 +1310,10 @@ const Oe = class Oe {
|
|
|
1314
1310
|
});
|
|
1315
1311
|
});
|
|
1316
1312
|
});
|
|
1317
|
-
t(this,
|
|
1313
|
+
t(this, Ct).call(this);
|
|
1318
1314
|
}
|
|
1319
1315
|
}, "#init"));
|
|
1320
|
-
y(this,
|
|
1316
|
+
y(this, ft, i), t(this, se).call(this);
|
|
1321
1317
|
}
|
|
1322
1318
|
// π― κΈ°μ‘΄μ νλ μ΄λ¦λ§ μ°λ κ³³λ€κ³Όμ νΈνμ μν΄ μ΄λ¦ λ°°μ΄λ§ 리ν΄νλ λ©μλ μ μ§
|
|
1323
1319
|
get() {
|
|
@@ -1339,7 +1335,7 @@ const Oe = class Oe {
|
|
|
1339
1335
|
return t(this, L).some((e) => e.name === i);
|
|
1340
1336
|
}
|
|
1341
1337
|
};
|
|
1342
|
-
|
|
1338
|
+
ft = new WeakMap(), L = new WeakMap(), Ct = new WeakMap(), se = new WeakMap(), h(Oe, "ngFields");
|
|
1343
1339
|
let ye = Oe;
|
|
1344
1340
|
var rt, ie, re;
|
|
1345
1341
|
const Be = class Be extends HTMLElement {
|
|
@@ -1375,7 +1371,7 @@ const Be = class Be extends HTMLElement {
|
|
|
1375
1371
|
rt = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), h(Be, "NineTable");
|
|
1376
1372
|
let pe = Be;
|
|
1377
1373
|
customElements.get("nine-table") || customElements.define("nine-table", pe);
|
|
1378
|
-
const
|
|
1374
|
+
const pt = class pt extends HTMLElement {
|
|
1379
1375
|
// π 컀μ€ν
μ€νμΌμ© μΊμ μΆκ°
|
|
1380
1376
|
constructor() {
|
|
1381
1377
|
super();
|
|
@@ -1386,20 +1382,20 @@ const mt = class mt extends HTMLElement {
|
|
|
1386
1382
|
connectedCallback() {
|
|
1387
1383
|
}
|
|
1388
1384
|
};
|
|
1389
|
-
h(
|
|
1390
|
-
let me =
|
|
1391
|
-
var C,
|
|
1385
|
+
h(pt, "BasicCellElement"), E(pt, "_styleCache", /* @__PURE__ */ new Map()), E(pt, "_customStyleCache", /* @__PURE__ */ new Map());
|
|
1386
|
+
let me = pt;
|
|
1387
|
+
var C, Lt, p, Ae, Re, qe, ke, Te;
|
|
1392
1388
|
const ze = class ze extends me {
|
|
1393
1389
|
constructor() {
|
|
1394
1390
|
super();
|
|
1395
1391
|
d(this, C);
|
|
1396
|
-
d(this,
|
|
1392
|
+
d(this, Lt);
|
|
1397
1393
|
d(this, p);
|
|
1398
1394
|
d(this, Ae);
|
|
1399
|
-
d(this, qe);
|
|
1400
1395
|
d(this, Re);
|
|
1396
|
+
d(this, qe);
|
|
1401
1397
|
d(this, ke);
|
|
1402
|
-
|
|
1398
|
+
E(this, "getDisplayText", /* @__PURE__ */ h((e) => {
|
|
1403
1399
|
if (t(this, p))
|
|
1404
1400
|
if (t(this, p).closest("tbody")) {
|
|
1405
1401
|
const s = t(this, p).closest("tr").data, r = parseInt(t(this, p).dataset.row);
|
|
@@ -1443,12 +1439,12 @@ const ze = class ze extends me {
|
|
|
1443
1439
|
else
|
|
1444
1440
|
n = !0;
|
|
1445
1441
|
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"));
|
|
1446
|
-
var m = parseInt(t(this, p).dataset.matrixRow), v = m - 1,
|
|
1447
|
-
$(
|
|
1442
|
+
var m = parseInt(t(this, p).dataset.matrixRow), v = m - 1, S = t(this, C).body.querySelector(`tbody.bindable [data-col="${t(this, p).dataset.col}"][data-matrix-row="${v}"]`);
|
|
1443
|
+
$(S).hasClass("suppress") && !ninegrid.j.querySelectorAll(t(this, p)).hasClass("suppress") ? ninegrid.j.querySelectorAll(S).removeClass("last-none-suppress").addClass("last-suppress") : !$(S).hasClass("suppress") && ninegrid.j.querySelectorAll(t(this, p)).hasClass("suppress") ? ninegrid.j.querySelectorAll(S).removeClass("last-suppress").addClass("last-none-suppress") : ninegrid.j.querySelectorAll(S).removeClass("last-none-suppress").removeClass("last-suppress");
|
|
1448
1444
|
}
|
|
1449
1445
|
}
|
|
1450
1446
|
}, "#resetSuppress"));
|
|
1451
|
-
|
|
1447
|
+
E(this, "getExprValue", /* @__PURE__ */ h((e, s, r, n) => {
|
|
1452
1448
|
if (typeof e < "u")
|
|
1453
1449
|
try {
|
|
1454
1450
|
r = parseInt(r);
|
|
@@ -1462,7 +1458,7 @@ const ze = class ze extends me {
|
|
|
1462
1458
|
}, "getExprValue"));
|
|
1463
1459
|
}
|
|
1464
1460
|
connectedCallback() {
|
|
1465
|
-
super.connectedCallback(), y(this, C, this.getRootNode().host), y(this, p, this.closest("th,td")), y(this,
|
|
1461
|
+
super.connectedCallback(), y(this, C, this.getRootNode().host), y(this, p, this.closest("th,td")), y(this, Lt, t(this, p).closest("tr"));
|
|
1466
1462
|
}
|
|
1467
1463
|
get value() {
|
|
1468
1464
|
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];
|
|
@@ -1480,10 +1476,10 @@ const ze = class ze extends me {
|
|
|
1480
1476
|
return t(this, p).closest("tr").data;
|
|
1481
1477
|
}
|
|
1482
1478
|
refresh() {
|
|
1483
|
-
return t(this, p).dataset.bind, parseInt(t(this, p).dataset.row), t(this,
|
|
1479
|
+
return t(this, p).dataset.bind, parseInt(t(this, p).dataset.row), t(this, Lt).data, t(this, p).dataset.row;
|
|
1484
1480
|
}
|
|
1485
1481
|
};
|
|
1486
|
-
C = new WeakMap(),
|
|
1482
|
+
C = new WeakMap(), Lt = new WeakMap(), p = new WeakMap(), Ae = new WeakMap(), Re = new WeakMap(), qe = new WeakMap(), ke = new WeakMap(), Te = new WeakMap(), h(ze, "CellElement");
|
|
1487
1483
|
let xe = ze;
|
|
1488
1484
|
const De = class De extends xe {
|
|
1489
1485
|
constructor() {
|
|
@@ -1498,19 +1494,19 @@ const De = class De extends xe {
|
|
|
1498
1494
|
};
|
|
1499
1495
|
h(De, "EditableCellElement");
|
|
1500
1496
|
let ve = De;
|
|
1501
|
-
var
|
|
1497
|
+
var Ht, nt, ut, gt, ne, Y, Ce;
|
|
1502
1498
|
const Pe = class Pe extends ve {
|
|
1503
1499
|
constructor() {
|
|
1504
1500
|
super();
|
|
1505
|
-
d(this,
|
|
1501
|
+
d(this, Ht);
|
|
1506
1502
|
d(this, nt);
|
|
1503
|
+
d(this, ut);
|
|
1507
1504
|
d(this, gt);
|
|
1508
|
-
d(this, bt);
|
|
1509
1505
|
d(this, ne);
|
|
1510
1506
|
d(this, Y);
|
|
1511
|
-
|
|
1507
|
+
E(this, "refresh", /* @__PURE__ */ h(() => {
|
|
1512
1508
|
const e = super.refresh();
|
|
1513
|
-
t(this,
|
|
1509
|
+
t(this, Ht).value = e;
|
|
1514
1510
|
}, "refresh"));
|
|
1515
1511
|
/**
|
|
1516
1512
|
dataRefresh = (v) => {
|
|
@@ -1546,7 +1542,7 @@ const Pe = class Pe extends ve {
|
|
|
1546
1542
|
if (!["Escape", "Enter", "Tab", "Home", "End", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Backspace", "Delete"].includes(e.code)) {
|
|
1547
1543
|
if (t(this, nt) == "number") {
|
|
1548
1544
|
let n = [];
|
|
1549
|
-
if (t(this, Y) && Number(t(this, Y)) > 0 && n.push("."), t(this,
|
|
1545
|
+
if (t(this, Y) && Number(t(this, Y)) > 0 && n.push("."), t(this, gt) && Number(t(this, gt)) >= 0 && n.push("-"), !(e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && !n.includes(e.key) && e.preventDefault(), t(this, Y) && (e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && e.target.selectionStart == e.target.selectionEnd) {
|
|
1550
1546
|
var s = e.target.value, r = s.indexOf(".");
|
|
1551
1547
|
if (r >= 0) {
|
|
1552
1548
|
var s = s.substr(r + 1, s.length);
|
|
@@ -1554,10 +1550,10 @@ const Pe = class Pe extends ve {
|
|
|
1554
1550
|
}
|
|
1555
1551
|
}
|
|
1556
1552
|
}
|
|
1557
|
-
t(this,
|
|
1553
|
+
t(this, ut) && ninegrid.getByteLength(e.target.value) >= Number(t(this, ut)) && e.target.selectionStart == e.target.selectionEnd && e.preventDefault();
|
|
1558
1554
|
}
|
|
1559
1555
|
}, "#onKeyDown"));
|
|
1560
|
-
if (this.applyBaseStyle(), y(this, nt, this.getAttribute("type") || "text"), y(this,
|
|
1556
|
+
if (this.applyBaseStyle(), y(this, nt, this.getAttribute("type") || "text"), y(this, ut, this.getAttribute("maxbyte")), y(this, gt, this.getAttribute("min")), y(this, ne, this.getAttribute("max")), y(this, Y, this.getAttribute("scale")), !["text", "number"].includes(t(this, nt))) throw `invalid type : ${t(this, nt)}`;
|
|
1561
1557
|
}
|
|
1562
1558
|
connectedCallback() {
|
|
1563
1559
|
for (var e = [], s = 0; s < this.attributes.length; s++)
|
|
@@ -1567,10 +1563,10 @@ const Pe = class Pe extends ve {
|
|
|
1567
1563
|
${e.join(" ")}
|
|
1568
1564
|
ondragstart="return false;"
|
|
1569
1565
|
>
|
|
1570
|
-
`, super.connectedCallback(), y(this,
|
|
1566
|
+
`, super.connectedCallback(), y(this, Ht, this.querySelector("input"));
|
|
1571
1567
|
}
|
|
1572
1568
|
};
|
|
1573
|
-
|
|
1569
|
+
Ht = new WeakMap(), nt = new WeakMap(), ut = new WeakMap(), gt = new WeakMap(), ne = new WeakMap(), Y = new WeakMap(), Ce = new WeakMap(), h(Pe, "CellInputText");
|
|
1574
1570
|
let we = Pe;
|
|
1575
1571
|
customElements.get("cell-input-text");
|
|
1576
1572
|
customElements.get("cell-input") || customElements.define("cell-input", we);
|