@ninebone/table 0.0.456 β†’ 0.0.462

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.
@@ -22,13 +22,13 @@ const Ce = class Ce extends Ue.constructor {
22
22
  };
23
23
  c(Ce, "Trace");
24
24
  let oe = Ce;
25
- const U = new oe();
26
- var B, P, S, X, K, Z, Mt, G, It;
25
+ const D = new oe();
26
+ var B, j, S, X, K, Z, Mt, G, It;
27
27
  const Le = class Le extends HTMLElement {
28
28
  constructor() {
29
29
  super();
30
30
  d(this, B);
31
- d(this, P, !1);
31
+ d(this, j, !1);
32
32
  d(this, S);
33
33
  d(this, X);
34
34
  d(this, K);
@@ -41,7 +41,7 @@ const Le = class Le extends HTMLElement {
41
41
  })), t(this, Z).observe(e));
42
42
  }, "#observeResize"));
43
43
  w(this, "refresh", /* @__PURE__ */ c(() => {
44
- if (!t(this, B) || !t(this, S) || t(this, P)) return;
44
+ if (!t(this, B) || !t(this, S) || t(this, j)) return;
45
45
  const e = t(this, S).container, s = e.querySelector("table");
46
46
  if (!s) return;
47
47
  const r = t(this, S).track, n = t(this, S).thumb, o = t(this, B).querySelector(".ng-container-bottom"), a = e.clientWidth, h = s.scrollWidth;
@@ -99,13 +99,13 @@ const Le = class Le extends HTMLElement {
99
99
  t(this, G).call(this, r.clientX - n.left - o / 2);
100
100
  }), t(this, S).thumb.addEventListener("mousedown", (r) => {
101
101
  if (r.button !== 0) return;
102
- r.stopPropagation(), r.preventDefault(), b(this, P, !0), this.shiftX = r.clientX - t(this, S).thumb.getBoundingClientRect().left;
102
+ r.stopPropagation(), r.preventDefault(), b(this, j, !0), this.shiftX = r.clientX - t(this, S).thumb.getBoundingClientRect().left;
103
103
  const n = /* @__PURE__ */ c((a) => {
104
- if (!t(this, P)) return;
104
+ if (!t(this, j)) return;
105
105
  const h = t(this, S).track.getBoundingClientRect();
106
106
  t(this, G).call(this, a.clientX - h.left - this.shiftX);
107
107
  }, "onMouseMove"), o = /* @__PURE__ */ c(() => {
108
- b(this, P, !1), s(), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", o), this.refresh();
108
+ b(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
  });
@@ -189,7 +189,7 @@ const Le = class Le extends HTMLElement {
189
189
  left: this.querySelector(".ng-scroll-left"),
190
190
  right: this.querySelector(".ng-scroll-right")
191
191
  }), s.addEventListener("scroll", () => {
192
- t(this, P) || this.refresh();
192
+ t(this, j) || this.refresh();
193
193
  }), t(this, It).call(this), t(this, Mt).call(this), this.refresh();
194
194
  }, "initWhenReady");
195
195
  e();
@@ -198,22 +198,22 @@ const Le = class Le extends HTMLElement {
198
198
  t(this, Z) && t(this, Z).disconnect();
199
199
  }
200
200
  };
201
- B = new WeakMap(), P = new WeakMap(), S = new WeakMap(), X = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), Mt = new WeakMap(), G = new WeakMap(), It = new WeakMap(), c(Le, "NineTableHScrollBar");
201
+ B = new WeakMap(), j = new WeakMap(), S = new WeakMap(), X = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), Mt = new WeakMap(), G = new WeakMap(), It = new WeakMap(), c(Le, "NineTableHScrollBar");
202
202
  let ae = Le;
203
203
  customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", ae);
204
- var j, ot, J, q, xt, vt, _t;
204
+ var F, ot, J, q, xt, vt, _t;
205
205
  const He = class He extends HTMLElement {
206
206
  constructor() {
207
207
  super();
208
- d(this, j);
208
+ d(this, F);
209
209
  d(this, ot);
210
210
  d(this, J, !1);
211
211
  d(this, q);
212
212
  d(this, xt, 0);
213
213
  d(this, vt, 0);
214
214
  w(this, "refresh", /* @__PURE__ */ c(() => {
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, h = t(this, ot).getRowHeight(), l = a * h;
215
+ if (!t(this, F) || !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, F).data.get() || []).length, h = t(this, ot).getRowHeight(), l = a * h;
217
217
  if (l <= n) {
218
218
  r.style.display = "none", t(this, q).top.disabled = !0, t(this, q).bottom.disabled = !0;
219
219
  return;
@@ -231,7 +231,7 @@ const He = class He extends HTMLElement {
231
231
  }, "refresh"));
232
232
  d(this, _t, /* @__PURE__ */ c(() => {
233
233
  const e = t(this, q).container, s = /* @__PURE__ */ c(() => {
234
- const n = (t(this, j).data.get() || []).length, o = t(this, ot).getRowHeight();
234
+ const n = (t(this, F).data.get() || []).length, o = t(this, ot).getRowHeight();
235
235
  return n * o;
236
236
  }, "getContentHeight");
237
237
  e.addEventListener("scroll", () => {
@@ -269,7 +269,7 @@ const He = class He extends HTMLElement {
269
269
  }, "#init"));
270
270
  }
271
271
  connectedCallback() {
272
- b(this, j, this.getRootNode().host), b(this, ot, this.closest("nine-table-sheet")), this.innerHTML = `
272
+ b(this, F, this.getRootNode().host), b(this, ot, this.closest("nine-table-sheet")), this.innerHTML = `
273
273
  <style>
274
274
  nine-table-vscrollbar {
275
275
  display: flex;
@@ -334,7 +334,7 @@ const He = class He extends HTMLElement {
334
334
  <button class='ng-scroll-bottom' disabled><div class='ng-scroll-icon'></div></button>
335
335
  `;
336
336
  const e = /* @__PURE__ */ c(() => {
337
- const s = t(this, j).shadowRoot.querySelector(".ng-container-body .ng-part-body");
337
+ const s = t(this, F).shadowRoot.querySelector(".ng-container-body .ng-part-body");
338
338
  if (!s) {
339
339
  setTimeout(e, 10);
340
340
  return;
@@ -350,17 +350,17 @@ const He = class He extends HTMLElement {
350
350
  e();
351
351
  }
352
352
  };
353
- j = new WeakMap(), ot = new WeakMap(), J = new WeakMap(), q = new WeakMap(), xt = new WeakMap(), vt = new WeakMap(), _t = new WeakMap(), c(He, "NineTableVScrollBar");
353
+ F = new WeakMap(), ot = new WeakMap(), J = new WeakMap(), q = new WeakMap(), xt = new WeakMap(), vt = new WeakMap(), _t = new WeakMap(), c(He, "NineTableVScrollBar");
354
354
  let le = He;
355
355
  customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", le);
356
- var D, A, z, H, F, Q, wt, at, Nt, Wt, Ot, St, Et, Bt, zt, At, Dt, lt, Rt, Pt;
356
+ var P, A, z, H, V, Q, wt, at, Nt, Wt, Ot, St, Et, Bt, zt, At, Dt, lt, Rt, Pt;
357
357
  const $e = class $e {
358
358
  constructor(i) {
359
- d(this, D);
359
+ d(this, P);
360
360
  d(this, A);
361
361
  d(this, z, /* @__PURE__ */ new Map());
362
362
  d(this, H, null);
363
- d(this, F, null);
363
+ d(this, V, null);
364
364
  d(this, Q, 0);
365
365
  d(this, wt, 40);
366
366
  d(this, at, !1);
@@ -430,7 +430,7 @@ const $e = class $e {
430
430
  }), u.forEach((p) => p.remove()), o.style.display = a, o.style.visibility = h, o.style.position = l, b(this, H, f > 0 ? f : 24), t(this, Et).call(this), t(this, H);
431
431
  }, "#measureAndCacheHeight"));
432
432
  d(this, St, /* @__PURE__ */ c(() => {
433
- const e = (t(this, D).data.get() || []).length, s = t(this, H) || 24, r = e * s;
433
+ const e = (t(this, P).data.get() || []).length, s = t(this, H) || 24, r = e * s;
434
434
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((n) => {
435
435
  const o = t(this, A).querySelector(n);
436
436
  if (!o) return;
@@ -472,7 +472,7 @@ const $e = class $e {
472
472
  }
473
473
  }, "#syncRowHeights"));
474
474
  d(this, zt, /* @__PURE__ */ c(() => {
475
- !t(this, A) || !(t(this, A) instanceof HTMLElement) || (b(this, F, new ResizeObserver((i) => {
475
+ !t(this, A) || !(t(this, A) instanceof HTMLElement) || (b(this, V, new ResizeObserver((i) => {
476
476
  for (const e of i) {
477
477
  const s = e.target;
478
478
  if (!s.classList.contains("active")) continue;
@@ -485,7 +485,7 @@ const $e = class $e {
485
485
  t(this, Q) !== h && (b(this, Q, h), t(this, Et).call(this), t(this, H) !== null && t(this, At).call(this));
486
486
  }
487
487
  }
488
- })), t(this, F).observe(t(this, A)));
488
+ })), t(this, V).observe(t(this, A)));
489
489
  }, "#initResizeObserver"));
490
490
  d(this, At, /* @__PURE__ */ c(() => {
491
491
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
@@ -500,14 +500,14 @@ const $e = class $e {
500
500
  if (!s) return;
501
501
  const r = s.querySelector(".ng-part-body tbody.bindable-tbody");
502
502
  if (!r) return;
503
- const n = Array.from(r.querySelectorAll("tr:not(.nodata)")), o = ((l = t(this, z).get(e)) == null ? void 0 : l.length) || 1, h = (t(this, D).data.get() || []).length;
503
+ const n = Array.from(r.querySelectorAll("tr:not(.nodata)")), o = ((l = t(this, z).get(e)) == null ? void 0 : l.length) || 1, h = (t(this, P).data.get() || []).length;
504
504
  n.forEach((f, u) => {
505
505
  const p = i + Math.floor(u / o);
506
506
  if (p >= h) {
507
507
  f.style.display = "none";
508
508
  return;
509
509
  }
510
- const g = t(this, D).data.get(p);
510
+ const g = t(this, P).data.get(p);
511
511
  f.style.display = "", t(this, Rt).call(this, f, g, p);
512
512
  });
513
513
  });
@@ -516,7 +516,7 @@ const $e = class $e {
516
516
  var h;
517
517
  const e = t(this, H);
518
518
  if (!e || e <= 0) return;
519
- const r = (t(this, D).data.get() || []).length, n = Math.max(0, Math.floor(i / e)), o = n * e, a = ((h = t(this, z).get(".ng-container-body")) == null ? void 0 : h.length) || 1;
519
+ const r = (t(this, P).data.get() || []).length, n = Math.max(0, Math.floor(i / e)), o = n * e, a = ((h = t(this, z).get(".ng-container-body")) == null ? void 0 : h.length) || 1;
520
520
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((l) => {
521
521
  const f = t(this, A).querySelector(l);
522
522
  if (!f) return;
@@ -528,7 +528,7 @@ const $e = class $e {
528
528
  g.style.display = "none";
529
529
  return;
530
530
  }
531
- const E = t(this, D).data.get(v);
531
+ const E = t(this, P).data.get(v);
532
532
  g.style.display = "", t(this, Rt).call(this, g, E, v);
533
533
  });
534
534
  }), t(this, at) || (b(this, at, !0), setTimeout(() => {
@@ -571,9 +571,9 @@ const $e = class $e {
571
571
  }
572
572
  }, "#syncHeaderHeights"));
573
573
  w(this, "destroy", /* @__PURE__ */ c(() => {
574
- t(this, F) && (t(this, F).disconnect(), b(this, F, null));
574
+ t(this, V) && (t(this, V).disconnect(), b(this, V, null));
575
575
  }, "destroy"));
576
- b(this, D, i.getRootNode().host), b(this, A, i), t(this, zt).call(this);
576
+ b(this, P, i.getRootNode().host), b(this, A, i), t(this, zt).call(this);
577
577
  }
578
578
  getRowHeight() {
579
579
  return t(this, H);
@@ -583,7 +583,7 @@ const $e = class $e {
583
583
  return ((e = t(this, z).get(i)) == null ? void 0 : e.length) || 1;
584
584
  }
585
585
  };
586
- D = new WeakMap(), A = new WeakMap(), z = new WeakMap(), H = new WeakMap(), F = new WeakMap(), Q = new WeakMap(), wt = new WeakMap(), at = new WeakMap(), Nt = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), Bt = new WeakMap(), zt = new WeakMap(), At = new WeakMap(), Dt = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Pt = new WeakMap(), c($e, "RowManager");
586
+ P = new WeakMap(), A = new WeakMap(), z = new WeakMap(), H = new WeakMap(), V = new WeakMap(), Q = new WeakMap(), wt = new WeakMap(), at = new WeakMap(), Nt = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), Bt = new WeakMap(), zt = new WeakMap(), At = new WeakMap(), Dt = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Pt = new WeakMap(), c($e, "RowManager");
587
587
  let ce = $e;
588
588
  const jt = class jt {
589
589
  /**
@@ -890,7 +890,7 @@ const yt = class yt extends HTMLElement {
890
890
  t(this, Ut).call(this);
891
891
  }
892
892
  disconnectedCallback() {
893
- this.innerHTML = "", U.log("NineTableSheet destroyed.");
893
+ this.innerHTML = "", D.log("NineTableSheet destroyed.");
894
894
  }
895
895
  };
896
896
  Ft = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), Vt = new WeakMap(), Yt = new WeakMap(), ct = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), c(yt, "NineTableSheet"), w(yt, "SCROLLBAR_SIZE", 16);
@@ -1090,7 +1090,7 @@ const _e = class _e {
1090
1090
  };
1091
1091
  Tt = new WeakMap(), ht = new WeakMap(), c(_e, "ngRow");
1092
1092
  let ue = _e;
1093
- var I, k, _, dt, Jt, V, Qt, st, Ct, te, ee, ft;
1093
+ var I, k, _, dt, Jt, Y, Qt, st, Ct, te, ee, ft;
1094
1094
  const N = class N {
1095
1095
  constructor(i, e) {
1096
1096
  d(this, I);
@@ -1098,15 +1098,15 @@ const N = class N {
1098
1098
  d(this, _, []);
1099
1099
  d(this, dt, []);
1100
1100
  d(this, Jt, 0);
1101
- d(this, V, []);
1101
+ d(this, Y, []);
1102
1102
  d(this, Qt, /* @__PURE__ */ c(() => {
1103
- b(this, V, []);
1103
+ b(this, Y, []);
1104
1104
  const i = t(this, I).template || [];
1105
1105
  Array.from(i).forEach((e) => {
1106
1106
  var s;
1107
- t(this, V).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
1107
+ t(this, Y).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
1108
1108
  }), (t(this, k).rawRecords || []).forEach((e) => {
1109
- e.__ng || (e.__ng = t(this, Ct).call(this)), e.__ng.height = t(this, V).slice();
1109
+ e.__ng || (e.__ng = t(this, Ct).call(this)), e.__ng.height = t(this, Y).slice();
1110
1110
  });
1111
1111
  }, "#initialize"));
1112
1112
  d(this, st, /* @__PURE__ */ c(() => {
@@ -1134,10 +1134,10 @@ const N = class N {
1134
1134
  rowState: N.ROW_STATE.EMPTY,
1135
1135
  deleted: !1,
1136
1136
  filtered: !1,
1137
- height: t(this, V).slice(),
1137
+ height: t(this, Y).slice(),
1138
1138
  o: {},
1139
1139
  c: {},
1140
- _: [0, 0, 0, 0, N.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, V).slice(), -1, {}, {}]
1140
+ _: [0, 0, 0, 0, N.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, Y).slice(), -1, {}, {}]
1141
1141
  }), "#getDefaultMeta"));
1142
1142
  w(this, "reset", /* @__PURE__ */ c(() => {
1143
1143
  b(this, _, []), b(this, dt, []), t(this, st).call(this);
@@ -1229,7 +1229,7 @@ const N = class N {
1229
1229
  return this.length;
1230
1230
  }
1231
1231
  };
1232
- I = new WeakMap(), k = new WeakMap(), _ = new WeakMap(), dt = new WeakMap(), Jt = new WeakMap(), V = new WeakMap(), Qt = new WeakMap(), st = new WeakMap(), Ct = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), ft = new WeakMap(), c(N, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1232
+ I = new WeakMap(), k = new WeakMap(), _ = new WeakMap(), dt = new WeakMap(), Jt = new WeakMap(), Y = new WeakMap(), Qt = new WeakMap(), st = new WeakMap(), Ct = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), ft = new WeakMap(), c(N, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1233
1233
  w(N, "ROW_STATE", {
1234
1234
  EMPTY: "EMPTY",
1235
1235
  NORMAL: "NORMAL",
@@ -1279,11 +1279,11 @@ const We = class We {
1279
1279
  }), b(this, L, Array.from(i, ([e, s]) => ({ name: e, type: s }))), b(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);
1280
1280
  }, "#adjust"));
1281
1281
  d(this, se, /* @__PURE__ */ c(() => {
1282
- b(this, L, []), U.log(t(this, ut).querySelectorAll("table"));
1282
+ b(this, L, []), D.log(t(this, ut).querySelectorAll("table"));
1283
1283
  const i = Array.from(t(this, ut).querySelectorAll("table"));
1284
1284
  if (!(!i || i.length === 0)) {
1285
1285
  for (const e of i)
1286
- U.log(e), $("[data-bind]", e).each((s, r) => {
1286
+ D.log(e), $("[data-bind]", e).each((s, r) => {
1287
1287
  const n = r.dataset.bind, o = r.getAttribute("data-type") || "string";
1288
1288
  n && t(this, L).push({ name: n, type: o });
1289
1289
  }), ["data-expr", "background-color", "color", "tooltip", "visible", "readonly", "enable-button", "enable-check", "class-expr", "icon-color", "icon-src"].forEach((s) => {
@@ -1342,7 +1342,7 @@ const Oe = class Oe extends HTMLElement {
1342
1342
  d(this, rt);
1343
1343
  d(this, ie);
1344
1344
  d(this, re, /* @__PURE__ */ c(() => {
1345
- this.fields = new pe(this), b(this, ie, new fe(this)), U.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1345
+ this.fields = new pe(this), b(this, ie, new fe(this)), D.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1346
1346
  }, "#init"));
1347
1347
  this.attachShadow({ mode: "open" }), b(this, rt, new be(this));
1348
1348
  }
@@ -1350,7 +1350,7 @@ const Oe = class Oe extends HTMLElement {
1350
1350
  t(this, re).call(this);
1351
1351
  }
1352
1352
  disconnectedCallback() {
1353
- U.log("NineTable disconnected.");
1353
+ D.log("NineTable disconnected.");
1354
1354
  }
1355
1355
  // 🎯 μ™ΈλΆ€μ—μ„œ grid.data.set(...) ν˜•νƒœλ‘œ μ ‘κ·Όν•  수 μžˆλ„λ‘ 데이터 λ§€λ‹ˆμ € μ˜€ν”ˆ
1356
1356
  get data() {
@@ -1413,9 +1413,9 @@ const Be = class Be extends me {
1413
1413
  }
1414
1414
  }, "getDisplayText"));
1415
1415
  w(this, "reset", /* @__PURE__ */ c(() => {
1416
- U.log("super reset"), parseInt(t(this, y).dataset.row);
1416
+ D.log("super reset"), parseInt(t(this, y).dataset.row);
1417
1417
  const e = t(this, Ht).data;
1418
- U.log(e);
1418
+ D.log(e);
1419
1419
  }, "reset"));
1420
1420
  d(this, qe, /* @__PURE__ */ c(() => {
1421
1421
  if (!(!t(this, T) || !t(this, T).template || !t(this, y).closest("tbody.bindable"))) {
@@ -1484,7 +1484,7 @@ const ze = class ze extends xe {
1484
1484
  constructor() {
1485
1485
  super();
1486
1486
  w(this, "reset", /* @__PURE__ */ c(() => {
1487
- U.log("editable reset"), super.reset();
1487
+ D.log("editable reset"), super.reset();
1488
1488
  }, "reset"));
1489
1489
  }
1490
1490
  connectedCallback() {
@@ -1493,7 +1493,7 @@ const ze = class ze extends xe {
1493
1493
  };
1494
1494
  c(ze, "EditableCellElement");
1495
1495
  let ve = ze;
1496
- var ke, nt, gt, bt, ne, Y, Te;
1496
+ var ke, nt, gt, bt, ne, U, Te;
1497
1497
  const De = class De extends ve {
1498
1498
  constructor() {
1499
1499
  super();
@@ -1502,9 +1502,9 @@ const De = class De extends ve {
1502
1502
  d(this, gt);
1503
1503
  d(this, bt);
1504
1504
  d(this, ne);
1505
- d(this, Y);
1505
+ d(this, U);
1506
1506
  w(this, "reset", /* @__PURE__ */ c(() => {
1507
- super.reset(), trace.log("input reset");
1507
+ D.log("==============="), super.reset(), D.log("input reset");
1508
1508
  }, "reset"));
1509
1509
  /**
1510
1510
  dataRefresh = (v) => {
@@ -1540,18 +1540,18 @@ const De = class De extends ve {
1540
1540
  if (!["Escape", "Enter", "Tab", "Home", "End", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Backspace", "Delete"].includes(e.code)) {
1541
1541
  if (t(this, nt) == "number") {
1542
1542
  let n = [];
1543
- if (t(this, Y) && Number(t(this, Y)) > 0 && n.push("."), t(this, bt) && Number(t(this, bt)) >= 0 && n.push("-"), !(e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && !n.includes(e.key) && e.preventDefault(), t(this, Y) && (e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && e.target.selectionStart == e.target.selectionEnd) {
1543
+ if (t(this, U) && Number(t(this, U)) > 0 && n.push("."), t(this, bt) && Number(t(this, bt)) >= 0 && n.push("-"), !(e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && !n.includes(e.key) && e.preventDefault(), t(this, U) && (e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && e.target.selectionStart == e.target.selectionEnd) {
1544
1544
  var s = e.target.value, r = s.indexOf(".");
1545
1545
  if (r >= 0) {
1546
1546
  var s = s.substr(r + 1, s.length);
1547
- s.length >= Number(t(this, Y)) && e.preventDefault();
1547
+ s.length >= Number(t(this, U)) && e.preventDefault();
1548
1548
  }
1549
1549
  }
1550
1550
  }
1551
1551
  t(this, gt) && ninegrid.getByteLength(e.target.value) >= Number(t(this, gt)) && e.target.selectionStart == e.target.selectionEnd && e.preventDefault();
1552
1552
  }
1553
1553
  }, "#onKeyDown"));
1554
- if (this.applyBaseStyle(), b(this, nt, this.getAttribute("type") || "text"), b(this, gt, this.getAttribute("maxbyte")), b(this, bt, this.getAttribute("min")), b(this, ne, this.getAttribute("max")), b(this, Y, this.getAttribute("scale")), !["text", "number"].includes(t(this, nt))) throw `invalid type : ${t(this, nt)}`;
1554
+ if (this.applyBaseStyle(), b(this, nt, this.getAttribute("type") || "text"), b(this, gt, this.getAttribute("maxbyte")), b(this, bt, this.getAttribute("min")), b(this, ne, this.getAttribute("max")), b(this, U, this.getAttribute("scale")), !["text", "number"].includes(t(this, nt))) throw `invalid type : ${t(this, nt)}`;
1555
1555
  }
1556
1556
  connectedCallback() {
1557
1557
  for (var e = [], s = 0; s < this.attributes.length; s++)
@@ -1564,7 +1564,7 @@ const De = class De extends ve {
1564
1564
  `, super.connectedCallback();
1565
1565
  }
1566
1566
  };
1567
- ke = new WeakMap(), nt = new WeakMap(), gt = new WeakMap(), bt = new WeakMap(), ne = new WeakMap(), Y = new WeakMap(), Te = new WeakMap(), c(De, "CellInputText");
1567
+ ke = new WeakMap(), nt = new WeakMap(), gt = new WeakMap(), bt = new WeakMap(), ne = new WeakMap(), U = new WeakMap(), Te = new WeakMap(), c(De, "CellInputText");
1568
1568
  let we = De;
1569
1569
  customElements.get("cell-input-text");
1570
1570
  customElements.get("cell-input") || customElements.define("cell-input", we);