@ninebone/grid 0.0.45 → 0.0.47

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-grid.js CHANGED
@@ -2520,7 +2520,7 @@ class nd extends HTMLElement {
2520
2520
  No = new WeakMap(), Pe = new WeakMap(), $s = new WeakMap(), ii = new WeakMap(), tn = new WeakMap(), uh = new WeakMap(), Oo = new WeakMap(), dh = new WeakMap(), jo = new WeakMap(), en = new WeakMap(), du = new WeakMap(), fh = new WeakMap(), ph = new WeakMap();
2521
2521
  customElements.get("ng-combo") || customElements.define("ng-combo", id);
2522
2522
  customElements.get("ng-combo-panel") || customElements.define("ng-combo-panel", nd);
2523
- var rn, $o, sn, ni, nn, Wr, mh, Lo, gh;
2523
+ var rn, $o, sn, ni, nn, Xr, mh, Lo, gh;
2524
2524
  class od {
2525
2525
  constructor(C) {
2526
2526
  Y(this, rn);
@@ -2528,20 +2528,20 @@ class od {
2528
2528
  Y(this, sn);
2529
2529
  Y(this, ni);
2530
2530
  Y(this, nn);
2531
- Y(this, Wr);
2531
+ Y(this, Xr);
2532
2532
  it(this, "openMenu", (C, t) => {
2533
- var l = $(f(this, Wr)).css("font"), c = 150;
2533
+ var l = $(f(this, Xr)).css("font"), c = 150;
2534
2534
  for (const o of f(this, sn))
2535
2535
  c = Math.max(c, H.measureTextSize(o.name, l).width + 60);
2536
- $(f(this, Wr)).css({
2536
+ $(f(this, Xr)).css({
2537
2537
  width: c,
2538
2538
  top: t,
2539
2539
  left: C
2540
2540
  //"z-index" : 2,
2541
- }), f(this, Wr).open(), f(this, ni) && f(this, ni).show && f(this, ni).show.call(this, { source: f(this, $o) });
2541
+ }), f(this, Xr).open(), f(this, ni) && f(this, ni).show && f(this, ni).show.call(this, { source: f(this, $o) });
2542
2542
  });
2543
2543
  Y(this, mh, (C) => {
2544
- tt(this, sn, f(this, Lo).call(this, C.items, 0)), tt(this, ni, C.events), tt(this, Wr, $(`<ng-context-menu-panel id="${C.id}"></ng-context-menu-panel>`)[0]), $(f(this, rn).shadowRoot).append($(f(this, Wr)).hide()), f(this, Wr).init(f(this, sn)), $("li", f(this, Wr)).on("mousedown", (t) => {
2544
+ tt(this, sn, f(this, Lo).call(this, C.items, 0)), tt(this, ni, C.events), tt(this, Xr, $(`<ng-context-menu-panel id="${C.id}"></ng-context-menu-panel>`)[0]), $(f(this, rn).shadowRoot).append($(f(this, Xr)).hide()), f(this, Xr).init(f(this, sn)), $("li", f(this, Xr)).on("mousedown", (t) => {
2545
2545
  C.callback && (t.menuId = t.currentTarget.getAttribute("menu-id"), t.source = f(this, $o), C.callback(t)), $("ng-context-menu-panel", f(this, rn).shadowRoot).hide();
2546
2546
  });
2547
2547
  });
@@ -2563,7 +2563,7 @@ class od {
2563
2563
  tt(this, nn, 0), tt(this, rn, C.owner), f(this, mh).call(this, C);
2564
2564
  }
2565
2565
  }
2566
- rn = new WeakMap(), $o = new WeakMap(), sn = new WeakMap(), ni = new WeakMap(), nn = new WeakMap(), Wr = new WeakMap(), mh = new WeakMap(), Lo = new WeakMap(), gh = new WeakMap();
2566
+ rn = new WeakMap(), $o = new WeakMap(), sn = new WeakMap(), ni = new WeakMap(), nn = new WeakMap(), Xr = new WeakMap(), mh = new WeakMap(), Lo = new WeakMap(), gh = new WeakMap();
2567
2567
  var Po, bh;
2568
2568
  class ad extends HTMLElement {
2569
2569
  constructor() {
@@ -2644,29 +2644,29 @@ class hd extends Fu.constructor {
2644
2644
  super(), this.init("nine-grid", "green");
2645
2645
  }
2646
2646
  }
2647
- const os = new hd();
2648
- var Xr, Bo, cs;
2647
+ const Wr = new hd();
2648
+ var Yr, Bo, cs;
2649
2649
  class cd {
2650
2650
  constructor(C) {
2651
- Y(this, Xr);
2651
+ Y(this, Yr);
2652
2652
  Y(this, Bo);
2653
2653
  Y(this, cs);
2654
- it(this, "count", () => f(this, Xr).rawRecords.length);
2655
- it(this, "has", (C) => f(this, Xr).data.filter(C).length > 0);
2656
- it(this, "first", (C) => (f(this, Xr).data.first(C).__ng || { rowidx: -1 }).rowidx);
2657
- it(this, "last", (C) => (f(this, Xr).data.last(C).__ng || { rowidx: -1 }).rowidx);
2658
- tt(this, Xr, C), tt(this, Bo, -1), tt(this, cs, -1);
2654
+ it(this, "count", () => f(this, Yr).rawRecords.length);
2655
+ it(this, "has", (C) => f(this, Yr).data.filter(C).length > 0);
2656
+ it(this, "first", (C) => (f(this, Yr).data.first(C).__ng || { rowidx: -1 }).rowidx);
2657
+ it(this, "last", (C) => (f(this, Yr).data.last(C).__ng || { rowidx: -1 }).rowidx);
2658
+ tt(this, Yr, C), tt(this, Bo, -1), tt(this, cs, -1);
2659
2659
  }
2660
2660
  get at() {
2661
2661
  return f(this, cs);
2662
2662
  }
2663
2663
  set at(C) {
2664
- tt(this, Bo, f(this, cs)), tt(this, cs, parseInt(C)), f(this, Xr).owner.body.querySelector(`tbody.bindable tr[data-row="${f(this, cs)}"]`) || setTimeout(() => {
2665
- f(this, Xr).owner.scrollTo_V1(f(this, cs));
2664
+ tt(this, Bo, f(this, cs)), tt(this, cs, parseInt(C)), f(this, Yr).owner.body.querySelector(`tbody.bindable tr[data-row="${f(this, cs)}"]`) || setTimeout(() => {
2665
+ f(this, Yr).owner.scrollTo_V1(f(this, cs));
2666
2666
  });
2667
2667
  }
2668
2668
  }
2669
- Xr = new WeakMap(), Bo = new WeakMap(), cs = new WeakMap();
2669
+ Yr = new WeakMap(), Bo = new WeakMap(), cs = new WeakMap();
2670
2670
  var He, Dt, $e, Cr, oi, Ls, on, Fo, an, qo, Ho, xh, zo, Uo, ln, hn, Vo, Wo, Xo;
2671
2671
  class ud {
2672
2672
  constructor(C, t) {
@@ -2684,7 +2684,7 @@ class ud {
2684
2684
  });
2685
2685
  });
2686
2686
  it(this, "set", (C) => {
2687
- os.log("ngData.set"), this.clear(), this.add(C, !1);
2687
+ Wr.log("ngData.set"), this.clear(), this.add(C, !1);
2688
2688
  const t = () => {
2689
2689
  var l, c, o, r;
2690
2690
  (c = (l = f(this, Dt)) == null ? void 0 : l.owner) != null && c.matrix ? (r = (o = f(this, Dt)) == null ? void 0 : o.owner) == null || r.matrix.updateCumulativeHeights() : setTimeout(t, 50);
@@ -3199,7 +3199,7 @@ class ud {
3199
3199
  return this.conv2(f(this, Dt).rawRecords);
3200
3200
  }
3201
3201
  set source(C) {
3202
- this.clear(), this.add(C, !1), os.log("ngData.source", C);
3202
+ this.clear(), this.add(C, !1), Wr.log("ngData.source", C);
3203
3203
  const t = () => {
3204
3204
  var l, c, o, r;
3205
3205
  (c = (l = f(this, Dt)) == null ? void 0 : l.owner) != null && c.matrix ? (r = (o = f(this, Dt)) == null ? void 0 : o.owner) == null || r.matrix.updateCumulativeHeights() : setTimeout(t, 50);
@@ -3271,7 +3271,7 @@ He = new WeakMap(), Dt = new WeakMap(), $e = new WeakMap(), Cr = new WeakMap(),
3271
3271
  class dd {
3272
3272
  constructor(C) {
3273
3273
  this.owner = C, this.row = new cd(this), this.data = new ud(C, this), this.setDataSource = (l) => {
3274
- os.log(l), this.data && this.data.reset(), this.pageCnt = 25, this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.viewRecords.touch = () => {
3274
+ Wr.log(l), this.data && this.data.reset(), this.pageCnt = 25, this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.viewRecords.touch = () => {
3275
3275
  this.viewRecords.updateCnt = (this.viewRecords.updateCnt || 0) + 1;
3276
3276
  }, this.viewRecords.rawIndex = 0, this.viewRecords.setPageCnt = (c) => {
3277
3277
  this.pageCnt = c;
@@ -27157,13 +27157,13 @@ class jd extends HTMLElement {
27157
27157
  }
27158
27158
  Qo = new WeakMap(), mn = new WeakMap(), Oh = new WeakMap(), ta = new WeakMap();
27159
27159
  customElements.get("ng-info") || customElements.define("ng-info", jd);
27160
- var Yr, jh;
27160
+ var Gr, jh;
27161
27161
  class $d extends ki {
27162
27162
  constructor() {
27163
27163
  super();
27164
- Y(this, Yr);
27164
+ Y(this, Gr);
27165
27165
  it(this, "dataRefresh", (t) => {
27166
- f(this, jh).call(this, this.value) ? (f(this, Yr).value = H.nvl(this.value, "#ffffff"), H.j.querySelectorAll(this).removeClass("invalid")) : (f(this, Yr).value = "#ffffff", H.j.querySelectorAll(this).addClass("invalid")), f(this, Yr).setAttribute("title", this.value), t || this.reset();
27166
+ f(this, jh).call(this, this.value) ? (f(this, Gr).value = H.nvl(this.value, "#ffffff"), H.j.querySelectorAll(this).removeClass("invalid")) : (f(this, Gr).value = "#ffffff", H.j.querySelectorAll(this).addClass("invalid")), f(this, Gr).setAttribute("title", this.value), t || this.reset();
27167
27167
  });
27168
27168
  Y(this, jh, (t) => {
27169
27169
  if (H.isNull(t)) return !0;
@@ -27181,31 +27181,31 @@ class $d extends ki {
27181
27181
 
27182
27182
  <input type="color" required />
27183
27183
  <button tabindex="-1"></button>
27184
- `, super.connectedCallback(), tt(this, Yr, this.shadowRoot.querySelector("input")), $("button", this.shadowRoot).on("click", (t) => {
27184
+ `, super.connectedCallback(), tt(this, Gr, this.shadowRoot.querySelector("input")), $("button", this.shadowRoot).on("click", (t) => {
27185
27185
  $("input", this.shadowRoot).trigger("click");
27186
27186
  }), $(this.cell).on("keydown", (t) => {
27187
27187
  switch (t.target.tagName) {
27188
27188
  case "TH":
27189
27189
  case "TD":
27190
- ["Enter"].includes(t.code) && $(f(this, Yr)).trigger("click");
27190
+ ["Enter"].includes(t.code) && $(f(this, Gr)).trigger("click");
27191
27191
  break;
27192
27192
  }
27193
- }), f(this, Yr).addEventListener("keydown", (t) => {
27194
- ["Enter"].includes(t.code) ? $(f(this, Yr)).trigger("click") : ["Escape"].includes(t.code) ? this.owner.cell.currentCell = this.cell : ["Tab", "PageUp", "PageDown", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(t.code) && (this.owner.cell.currentCell = this.cell, this.owner.cell.moveCell(t));
27193
+ }), f(this, Gr).addEventListener("keydown", (t) => {
27194
+ ["Enter"].includes(t.code) ? $(f(this, Gr)).trigger("click") : ["Escape"].includes(t.code) ? this.owner.cell.currentCell = this.cell : ["Tab", "PageUp", "PageDown", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(t.code) && (this.owner.cell.currentCell = this.cell, this.owner.cell.moveCell(t));
27195
27195
  });
27196
27196
  }
27197
27197
  }
27198
- Yr = new WeakMap(), jh = new WeakMap();
27198
+ Gr = new WeakMap(), jh = new WeakMap();
27199
27199
  customElements.get("ng-input-color") || customElements.define("ng-input-color", $d);
27200
- var Gr, li, $h;
27200
+ var Kr, li, $h;
27201
27201
  class Ld extends ki {
27202
27202
  constructor() {
27203
27203
  super();
27204
- Y(this, Gr);
27204
+ Y(this, Kr);
27205
27205
  Y(this, li);
27206
27206
  it(this, "dataRefresh", (t) => {
27207
27207
  var l = this.value;
27208
- switch (f(this, Gr).type) {
27208
+ switch (f(this, Kr).type) {
27209
27209
  case "date":
27210
27210
  l = l.substr(0, 10);
27211
27211
  break;
@@ -27221,13 +27221,13 @@ class Ld extends ki {
27221
27221
  c != "Invalid Date" && (l = ("0000" + c.getFullYear()).slice(-4) + "-" + ("00" + (c.getMonth() + 1)).slice(-2));
27222
27222
  break;
27223
27223
  }
27224
- f(this, Gr).value = l, f(this, $h).call(this, l) ? H.j.querySelectorAll(this).removeClass("invalid") : H.j.querySelectorAll(this).addClass("invalid"), t || this.reset();
27224
+ f(this, Kr).value = l, f(this, $h).call(this, l) ? H.j.querySelectorAll(this).removeClass("invalid") : H.j.querySelectorAll(this).addClass("invalid"), t || this.reset();
27225
27225
  });
27226
27226
  Y(this, $h, (t) => {
27227
27227
  if (H.isNull(t)) return !0;
27228
27228
  if (typeof t != "string") return !1;
27229
27229
  var l = !0;
27230
- switch (f(this, Gr).type) {
27230
+ switch (f(this, Kr).type) {
27231
27231
  case "date":
27232
27232
  case "datetime-local":
27233
27233
  var c = Number(t.substr(0, 4)), o = Number(t.substr(5, 2)), r = Number(t.substr(8, 2));
@@ -27244,7 +27244,7 @@ class Ld extends ki {
27244
27244
  break;
27245
27245
  }
27246
27246
  if (l)
27247
- switch (f(this, Gr).type) {
27247
+ switch (f(this, Kr).type) {
27248
27248
  case "datetime-local":
27249
27249
  var s = t.substr(10, 1), e = Number(t.substr(11, 2)), i = Number(t.substr(14, 2));
27250
27250
  (s != "T" || isNaN(e) || isNaN(i) || e < 0 || e > 23 || i < 0 || i > 59) && (l = !1);
@@ -27289,21 +27289,21 @@ class Ld extends ki {
27289
27289
  ${l.join(" ")}
27290
27290
  required
27291
27291
  />
27292
- `, super.connectedCallback(), tt(this, Gr, this.shadowRoot.querySelector("input")), $(this.cell).on("keydown", (o) => {
27292
+ `, super.connectedCallback(), tt(this, Kr, this.shadowRoot.querySelector("input")), $(this.cell).on("keydown", (o) => {
27293
27293
  switch (o.target.tagName) {
27294
27294
  case "TH":
27295
27295
  case "TD":
27296
- ["Enter"].includes(o.code) && f(this, Gr).focus();
27296
+ ["Enter"].includes(o.code) && f(this, Kr).focus();
27297
27297
  break;
27298
27298
  }
27299
- }), f(this, Gr).addEventListener("keydown", (o) => {
27299
+ }), f(this, Kr).addEventListener("keydown", (o) => {
27300
27300
  ["Enter", "Escape"].includes(o.code) ? this.owner.cell.currentCell = this.cell : ["Tab", "PageUp", "PageDown"].includes(o.code) && (this.owner.cell.currentCell = this.cell, this.owner.cell.moveCell(o));
27301
27301
  });
27302
27302
  }
27303
27303
  }
27304
- Gr = new WeakMap(), li = new WeakMap(), $h = new WeakMap();
27304
+ Kr = new WeakMap(), li = new WeakMap(), $h = new WeakMap();
27305
27305
  customElements.get("ng-input-date") || customElements.define("ng-input-date", Ld);
27306
- var Ke, ps, zr, Ds, gn, Kr, Lh;
27306
+ var Ke, ps, zr, Ds, gn, Zr, Lh;
27307
27307
  class Pd extends ki {
27308
27308
  constructor() {
27309
27309
  super();
@@ -27312,26 +27312,26 @@ class Pd extends ki {
27312
27312
  Y(this, zr);
27313
27313
  Y(this, Ds);
27314
27314
  Y(this, gn);
27315
- Y(this, Kr);
27315
+ Y(this, Zr);
27316
27316
  it(this, "dataRefresh", (t) => {
27317
- f(this, Ke).value = this.value, H.j.querySelectorAll(f(this, Ke)).removeClass("invalid"), f(this, ps) == "number" && (isNaN(this.value) || f(this, gn) && Number(f(this, Ke).value) > Number(f(this, gn)) || f(this, Ds) && Number(f(this, Ke).value) < Number(f(this, Ds)) ? H.j.querySelectorAll(f(this, Ke)).addClass("invalid") : f(this, Kr) && f(this, Ke).value.indexOf(".") >= 0 && f(this, Ke).value.substring(f(this, Ke).value.indexOf(".") + 1).length > Number(f(this, Kr)) && H.j.querySelectorAll(f(this, Ke)).addClass("invalid")), f(this, zr) && H.getByteLength(this.value) > Number(f(this, zr)) && H.j.querySelectorAll(f(this, Ke)).addClass("invalid"), t || this.reset();
27317
+ f(this, Ke).value = this.value, H.j.querySelectorAll(f(this, Ke)).removeClass("invalid"), f(this, ps) == "number" && (isNaN(this.value) || f(this, gn) && Number(f(this, Ke).value) > Number(f(this, gn)) || f(this, Ds) && Number(f(this, Ke).value) < Number(f(this, Ds)) ? H.j.querySelectorAll(f(this, Ke)).addClass("invalid") : f(this, Zr) && f(this, Ke).value.indexOf(".") >= 0 && f(this, Ke).value.substring(f(this, Ke).value.indexOf(".") + 1).length > Number(f(this, Zr)) && H.j.querySelectorAll(f(this, Ke)).addClass("invalid")), f(this, zr) && H.getByteLength(this.value) > Number(f(this, zr)) && H.j.querySelectorAll(f(this, Ke)).addClass("invalid"), t || this.reset();
27318
27318
  });
27319
27319
  Y(this, Lh, (t) => {
27320
27320
  if (!["Escape", "Enter", "Tab", "Home", "End", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Backspace", "Delete"].includes(t.code)) {
27321
27321
  if (f(this, ps) == "number") {
27322
27322
  let o = [];
27323
- if (f(this, Kr) && Number(f(this, Kr)) > 0 && o.push("."), f(this, Ds) && Number(f(this, Ds)) >= 0 && o.push("-"), !(t.keyCode >= 48 && t.keyCode <= 57 || t.keyCode >= 96 && t.keyCode <= 105) && !o.includes(t.key) && t.preventDefault(), f(this, Kr) && (t.keyCode >= 48 && t.keyCode <= 57 || t.keyCode >= 96 && t.keyCode <= 105) && t.target.selectionStart == t.target.selectionEnd) {
27323
+ if (f(this, Zr) && Number(f(this, Zr)) > 0 && o.push("."), f(this, Ds) && Number(f(this, Ds)) >= 0 && o.push("-"), !(t.keyCode >= 48 && t.keyCode <= 57 || t.keyCode >= 96 && t.keyCode <= 105) && !o.includes(t.key) && t.preventDefault(), f(this, Zr) && (t.keyCode >= 48 && t.keyCode <= 57 || t.keyCode >= 96 && t.keyCode <= 105) && t.target.selectionStart == t.target.selectionEnd) {
27324
27324
  var l = t.target.value, c = l.indexOf(".");
27325
27325
  if (c >= 0) {
27326
27326
  var l = l.substr(c + 1, l.length);
27327
- l.length >= Number(f(this, Kr)) && t.preventDefault();
27327
+ l.length >= Number(f(this, Zr)) && t.preventDefault();
27328
27328
  }
27329
27329
  }
27330
27330
  }
27331
27331
  f(this, zr) && H.getByteLength(t.target.value) >= Number(f(this, zr)) && t.target.selectionStart == t.target.selectionEnd && t.preventDefault();
27332
27332
  }
27333
27333
  });
27334
- if (tt(this, ps, this.getAttribute("type") || "text"), tt(this, zr, this.getAttribute("maxbyte")), tt(this, Ds, this.getAttribute("min")), tt(this, gn, this.getAttribute("max")), tt(this, Kr, this.getAttribute("scale")), !["text", "number"].includes(f(this, ps))) throw `invalid type : ${f(this, ps)}`;
27334
+ if (tt(this, ps, this.getAttribute("type") || "text"), tt(this, zr, this.getAttribute("maxbyte")), tt(this, Ds, this.getAttribute("min")), tt(this, gn, this.getAttribute("max")), tt(this, Zr, this.getAttribute("scale")), !["text", "number"].includes(f(this, ps))) throw `invalid type : ${f(this, ps)}`;
27335
27335
  }
27336
27336
  connectedCallback() {
27337
27337
  for (var t = [], l = 0; l < this.attributes.length; l++)
@@ -27356,9 +27356,9 @@ class Pd extends ki {
27356
27356
  });
27357
27357
  }
27358
27358
  }
27359
- Ke = new WeakMap(), ps = new WeakMap(), zr = new WeakMap(), Ds = new WeakMap(), gn = new WeakMap(), Kr = new WeakMap(), Lh = new WeakMap();
27359
+ Ke = new WeakMap(), ps = new WeakMap(), zr = new WeakMap(), Ds = new WeakMap(), gn = new WeakMap(), Zr = new WeakMap(), Lh = new WeakMap();
27360
27360
  customElements.get("ng-input") || customElements.define("ng-input", Pd);
27361
- var Se, hi, bn, yn, vn, Zr, ci;
27361
+ var Se, hi, bn, yn, vn, Jr, ci;
27362
27362
  class Dd {
27363
27363
  constructor(C) {
27364
27364
  Y(this, Se);
@@ -27367,7 +27367,7 @@ class Dd {
27367
27367
  Y(this, bn);
27368
27368
  Y(this, yn);
27369
27369
  Y(this, vn);
27370
- Y(this, Zr, []);
27370
+ Y(this, Jr, []);
27371
27371
  it(this, "getHeight", (C) => {
27372
27372
  const t = parseInt(C / f(this, Se).template.length);
27373
27373
  if (t < 0 || t >= f(this, Se).data.count()) return 32;
@@ -27421,7 +27421,7 @@ class Dd {
27421
27421
  }, this.foot = {
27422
27422
  attr: (t, l, c) => this.attr("foot", t, l, c),
27423
27423
  height: (t, l) => this.height("foot", t, l)
27424
- }, tt(this, Zr, [0]);
27424
+ }, tt(this, Jr, [0]);
27425
27425
  }
27426
27426
  get row() {
27427
27427
  return f(this, hi);
@@ -27431,46 +27431,46 @@ class Dd {
27431
27431
  }
27432
27432
  // 1. 누적 높이 배열 갱신 (데이터가 로드되거나 변경될 때 호출 필요)
27433
27433
  updateCumulativeHeights() {
27434
- os.log("***********************====================="), os.log(f(this, Se).data), tt(this, Zr, [0]);
27434
+ Wr.log("***********************====================="), Wr.log(f(this, Se).data), tt(this, Jr, [0]);
27435
27435
  let C = 0;
27436
27436
  const t = f(this, Se).data.count();
27437
27437
  for (let l = 0; l < t; l++) {
27438
27438
  let c = 0;
27439
27439
  for (let o = 0; o < f(this, Se).template.length; o++)
27440
27440
  c += this.getHeight(l * f(this, Se).template.length + o);
27441
- C += c, f(this, Zr).push(C);
27441
+ C += c, f(this, Jr).push(C);
27442
27442
  }
27443
- os.log(f(this, Zr));
27443
+ Wr.log(f(this, Jr));
27444
27444
  }
27445
27445
  // 2. 스크롤 위치에 따른 행 인덱스 및 오프셋 조회 (이진 탐색)
27446
27446
  getRowInfoAt(C) {
27447
- let t = 0, l = f(this, Zr).length - 2, c = 0;
27447
+ let t = 0, l = f(this, Jr).length - 2, c = 0;
27448
27448
  for (; t <= l; ) {
27449
27449
  let o = Math.floor((t + l) / 2);
27450
- f(this, Zr)[o] <= C ? (c = o, t = o + 1) : l = o - 1;
27450
+ f(this, Jr)[o] <= C ? (c = o, t = o + 1) : l = o - 1;
27451
27451
  }
27452
27452
  return {
27453
27453
  index: c,
27454
- offset: C - f(this, Zr)[c]
27454
+ offset: C - f(this, Jr)[c]
27455
27455
  };
27456
27456
  }
27457
27457
  }
27458
- Se = new WeakMap(), hi = new WeakMap(), bn = new WeakMap(), yn = new WeakMap(), vn = new WeakMap(), Zr = new WeakMap(), ci = new WeakMap();
27459
- var Jr, Qr;
27458
+ Se = new WeakMap(), hi = new WeakMap(), bn = new WeakMap(), yn = new WeakMap(), vn = new WeakMap(), Jr = new WeakMap(), ci = new WeakMap();
27459
+ var Qr, ts;
27460
27460
  class Bd extends HTMLElement {
27461
27461
  constructor() {
27462
27462
  super();
27463
- Y(this, Jr);
27464
27463
  Y(this, Qr);
27464
+ Y(this, ts);
27465
27465
  it(this, "popup", () => {
27466
27466
  setTimeout(() => {
27467
- f(this, Qr).data.assign(f(this, Jr).data.get()), this.shadowRoot.querySelector("dialog").showModal();
27467
+ f(this, ts).data.assign(f(this, Qr).data.get()), this.shadowRoot.querySelector("dialog").showModal();
27468
27468
  }, 100);
27469
27469
  });
27470
27470
  this.attachShadow({ mode: "open" });
27471
27471
  }
27472
27472
  connectedCallback() {
27473
- tt(this, Jr, this.getRootNode().host), this.shadowRoot.innerHTML = `
27473
+ tt(this, Qr, this.getRootNode().host), this.shadowRoot.innerHTML = `
27474
27474
  <style>
27475
27475
  @import "https://cdn.jsdelivr.net/npm/ninegrid2@${H.version}/dist/css/ninegrid.css";
27476
27476
  :host {
@@ -27482,27 +27482,27 @@ class Bd extends HTMLElement {
27482
27482
  </style>
27483
27483
 
27484
27484
  <nx-dialog>
27485
- ${f(this, Jr).originFormat}
27485
+ ${f(this, Qr).originFormat}
27486
27486
  </nx-dialog>
27487
- `, tt(this, Qr, this.shadowRoot.querySelector("nine-grid")), f(this, Qr).removeAttribute("display-row-count"), $(".reset", this.shadowRoot).on("click", (t) => {
27488
- f(this, Qr).data.assign(f(this, Jr).data.get());
27487
+ `, tt(this, ts, this.shadowRoot.querySelector("nine-grid")), f(this, ts).removeAttribute("display-row-count"), $(".reset", this.shadowRoot).on("click", (t) => {
27488
+ f(this, ts).data.assign(f(this, Qr).data.get());
27489
27489
  }), $(".apply", this.shadowRoot).on("click", (t) => {
27490
- var l = f(this, Qr).data.getChangedData();
27491
- f(this, Jr).data.add(l.insert);
27490
+ var l = f(this, ts).data.getChangedData();
27491
+ f(this, Qr).data.add(l.insert);
27492
27492
  for (var c of l.update)
27493
- f(this, Jr).data.update(c);
27493
+ f(this, Qr).data.update(c);
27494
27494
  for (var c of l.delete)
27495
- f(this, Jr).data.delete(c);
27496
- f(this, Qr).data.changeRowState();
27495
+ f(this, Qr).data.delete(c);
27496
+ f(this, ts).data.changeRowState();
27497
27497
  }), this.shadowRoot.addEventListener("click", (t) => {
27498
- f(this, Qr).data.isChanged() && (t.stopImmediatePropagation(), H.confirm(`There is changed data.
27498
+ f(this, ts).data.isChanged() && (t.stopImmediatePropagation(), H.confirm(`There is changed data.
27499
27499
  Do you want to save it?`, "SAVE", { class: "rgb", "true-text": "Yes", "false-text": "No" }).then((l) => {
27500
27500
  l && $(".apply", this.shadowRoot).trigger("click"), this.shadowRoot.querySelector("nx-dialog").close();
27501
27501
  }));
27502
27502
  });
27503
27503
  }
27504
27504
  }
27505
- Jr = new WeakMap(), Qr = new WeakMap();
27505
+ Qr = new WeakMap(), ts = new WeakMap();
27506
27506
  customElements.get("ng-max-popup") || customElements.define("ng-max-popup", Bd);
27507
27507
  var Lt, ea, Ph;
27508
27508
  class Fd extends HTMLElement {
@@ -28326,28 +28326,28 @@ class Gd extends Mr {
28326
28326
  }
28327
28327
  }
28328
28328
  pa = new WeakMap(), Wh = new WeakMap();
28329
- var ur, ts, ma, mr, Hs, mi, mu, es, Xh, Yh, Gh, ga, ba, ya, Kh;
28329
+ var ur, es, ma, mr, Hs, mi, mu, rs, Xh, Yh, Gh, ga, ba, ya, Kh;
28330
28330
  class Kd extends HTMLElement {
28331
28331
  constructor() {
28332
28332
  super();
28333
28333
  Y(this, ur);
28334
- Y(this, ts);
28334
+ Y(this, es);
28335
28335
  Y(this, ma);
28336
28336
  Y(this, mr);
28337
28337
  Y(this, Hs);
28338
28338
  Y(this, mi);
28339
28339
  Y(this, mu);
28340
- Y(this, es);
28340
+ Y(this, rs);
28341
28341
  Y(this, Xh);
28342
28342
  Y(this, Yh, () => {
28343
28343
  if (f(this, ur)) {
28344
28344
  var t = f(this, ur).querySelector("div.resizer-row-panel");
28345
28345
  t ? tt(this, mr, $(t)) : (tt(this, mr, $('<div class="resizer-row-panel"><div class="grip"></div><div class="tooltip"><div></div><span></span><div></div></div></div>').hide()), $(f(this, ur).body).append(f(this, mr))), tt(this, Hs, $(".grip", f(this, mr))), tt(this, mi, $(".tooltip", f(this, mr))), $(this).on("mousedown", (l) => {
28346
- H.j.querySelectorAll(f(this, ts).closest("tbody")).hasClass("fixed") || tt(this, ma, setTimeout(() => {
28346
+ H.j.querySelectorAll(f(this, es).closest("tbody")).hasClass("fixed") || tt(this, ma, setTimeout(() => {
28347
28347
  f(this, Gh).call(this, l);
28348
28348
  }, 500));
28349
28349
  }).on("dblclick", (l) => {
28350
- H.j.querySelectorAll(f(this, ts).closest("tbody")).hasClass("fixed") || f(this, Kh).call(this, l);
28350
+ H.j.querySelectorAll(f(this, es).closest("tbody")).hasClass("fixed") || f(this, Kh).call(this, l);
28351
28351
  }), $(document).on("mouseup", (l) => {
28352
28352
  clearTimeout(f(this, ma));
28353
28353
  });
@@ -28356,34 +28356,34 @@ class Kd extends HTMLElement {
28356
28356
  Y(this, Gh, (t) => {
28357
28357
  if (!(t.buttons != 1 || t.altKey || t.ctrlKey || t.shiftkey)) {
28358
28358
  var l = parseInt(t.target.getAttribute("rowIndex"));
28359
- l < 0 || (f(this, ts).busy = !0, tt(this, Xh, t.target), tt(this, es, $(".ng-container-body table tbody.bindable tr", f(this, ur).body).eq(l)), f(this, mr).show(), f(this, Hs).width(f(this, ur).body.querySelector(".ng-container").offsetWidth), f(this, ya).call(this, t.pageY), $(f(this, mr)).on("mousemove", f(this, ga)), $(f(this, mr)).on("mouseup", f(this, ba)));
28359
+ l < 0 || (f(this, es).busy = !0, tt(this, Xh, t.target), tt(this, rs, $(".ng-container-body table tbody.bindable tr", f(this, ur).body).eq(l)), f(this, mr).show(), f(this, Hs).width(f(this, ur).body.querySelector(".ng-container").offsetWidth), f(this, ya).call(this, t.pageY), $(f(this, mr)).on("mousemove", f(this, ga)), $(f(this, mr)).on("mouseup", f(this, ba)));
28360
28360
  }
28361
28361
  });
28362
28362
  Y(this, ga, (t) => {
28363
28363
  t.altKey || t.ctrlKey || t.shiftKey || f(this, ya).call(this, t.pageY);
28364
28364
  });
28365
28365
  Y(this, ba, (t) => {
28366
- var l = f(this, Hs).offset().top - f(this, es).offset().top;
28367
- l <= 1 && (l = 0), l = f(this, ur).tableUtils.height(f(this, es)[0].sectionRowIndex, l);
28368
- var c = parseInt(f(this, es)[0].dataset.row * f(this, ur).template.length + f(this, es)[0].sectionRowIndex % f(this, ur).template.length);
28369
- f(this, ur).matrix.setHeight(c, l), f(this, ts).querySelector("ng-row-indicator").refresh(), $(f(this, mr)).off("mousemove", f(this, ga)), $(f(this, mr)).off("mouseup", f(this, ba)), f(this, mr).hide(), f(this, ur).view.redraw(), f(this, ts).busy = !1;
28366
+ var l = f(this, Hs).offset().top - f(this, rs).offset().top;
28367
+ l <= 1 && (l = 0), l = f(this, ur).tableUtils.height(f(this, rs)[0].sectionRowIndex, l);
28368
+ var c = parseInt(f(this, rs)[0].dataset.row * f(this, ur).template.length + f(this, rs)[0].sectionRowIndex % f(this, ur).template.length);
28369
+ f(this, ur).matrix.setHeight(c, l), f(this, es).querySelector("ng-row-indicator").refresh(), $(f(this, mr)).off("mousemove", f(this, ga)), $(f(this, mr)).off("mouseup", f(this, ba)), f(this, mr).hide(), f(this, ur).view.redraw(), f(this, es).busy = !1;
28370
28370
  });
28371
28371
  Y(this, ya, (t) => {
28372
28372
  var l = $(".ng-container-body table tbody.bindable", f(this, ur).body);
28373
28373
  if (!(t < l.offset().top)) {
28374
28374
  f(this, Hs).offset({ top: t });
28375
- var c = parseInt(f(this, Hs).offset().top), o = parseInt(c - f(this, es).offset().top);
28376
- o <= 1 && (o = 0), f(this, mi).height(o), f(this, mi).offset({ top: f(this, es).offset().top - 1 }), f(this, mi).find("span").text(o);
28375
+ var c = parseInt(f(this, Hs).offset().top), o = parseInt(c - f(this, rs).offset().top);
28376
+ o <= 1 && (o = 0), f(this, mi).height(o), f(this, mi).offset({ top: f(this, rs).offset().top - 1 }), f(this, mi).find("span").text(o);
28377
28377
  }
28378
28378
  });
28379
28379
  Y(this, Kh, (t) => {
28380
28380
  });
28381
28381
  }
28382
28382
  connectedCallback() {
28383
- tt(this, ts, this.cell), tt(this, ur, f(this, ts).getRootNode().host), this.setAttribute("class", "row-resizer"), f(this, Yh).call(this);
28383
+ tt(this, es, this.cell), tt(this, ur, f(this, es).getRootNode().host), this.setAttribute("class", "row-resizer"), f(this, Yh).call(this);
28384
28384
  }
28385
28385
  }
28386
- ur = new WeakMap(), ts = new WeakMap(), ma = new WeakMap(), mr = new WeakMap(), Hs = new WeakMap(), mi = new WeakMap(), mu = new WeakMap(), es = new WeakMap(), Xh = new WeakMap(), Yh = new WeakMap(), Gh = new WeakMap(), ga = new WeakMap(), ba = new WeakMap(), ya = new WeakMap(), Kh = new WeakMap();
28386
+ ur = new WeakMap(), es = new WeakMap(), ma = new WeakMap(), mr = new WeakMap(), Hs = new WeakMap(), mi = new WeakMap(), mu = new WeakMap(), rs = new WeakMap(), Xh = new WeakMap(), Yh = new WeakMap(), Gh = new WeakMap(), ga = new WeakMap(), ba = new WeakMap(), ya = new WeakMap(), Kh = new WeakMap();
28387
28387
  customElements.get("ng-row-indicator") || customElements.define("ng-row-indicator", Gd);
28388
28388
  customElements.get("ng-row-resizer") || customElements.define("ng-row-resizer", Kd);
28389
28389
  var Zh;
@@ -28485,12 +28485,12 @@ class Qd extends Mr {
28485
28485
  }
28486
28486
  }
28487
28487
  customElements.get("ng-row-state") || customElements.define("ng-row-state", Qd);
28488
- var zt, rs, ge, gr, br, _n, Jh, Qh, va, tc, wa, xa, Sn, kn;
28488
+ var zt, ss, ge, gr, br, _n, Jh, Qh, va, tc, wa, xa, Sn, kn;
28489
28489
  class tf extends HTMLElement {
28490
28490
  constructor() {
28491
28491
  super();
28492
28492
  Y(this, zt);
28493
- Y(this, rs);
28493
+ Y(this, ss);
28494
28494
  Y(this, ge);
28495
28495
  Y(this, gr);
28496
28496
  Y(this, br);
@@ -28561,9 +28561,9 @@ class tf extends HTMLElement {
28561
28561
  }), f(this, ge).top.ontouchend = f(this, ge).bottom.ontouchend = f(this, ge).track.ontouchend = f(this, ge).top.onmouseup = f(this, ge).top.onmouseleave = f(this, ge).bottom.onmouseup = f(this, ge).bottom.onmouseleave = f(this, ge).track.onmouseup = f(this, ge).track.onmouseleave = (l) => {
28562
28562
  clearInterval(f(this, gr)), clearInterval(f(this, br));
28563
28563
  }, $(f(this, ge).track).on("mousedown", f(this, va)), $(f(this, ge).track).on("touchstart", f(this, Qh)), $(f(this, ge).thumb).on("mousedown", f(this, xa)), $(f(this, ge).thumb).on("touchstart", f(this, tc)), document.addEventListener("mouseup", (l) => {
28564
- f(this, rs) && tt(this, rs, !1), document.removeEventListener("mousemove", f(this, Sn)), typeof this.onDragStop == "function" && this.onDragStop();
28564
+ f(this, ss) && tt(this, ss, !1), document.removeEventListener("mousemove", f(this, Sn)), typeof this.onDragStop == "function" && this.onDragStop();
28565
28565
  }), document.addEventListener("touchend", (l) => {
28566
- tt(this, rs, !1), document.removeEventListener("touchmove", f(this, wa)), typeof this.onDragStop == "function" && this.onDragStop();
28566
+ tt(this, ss, !1), document.removeEventListener("touchmove", f(this, wa)), typeof this.onDragStop == "function" && this.onDragStop();
28567
28567
  });
28568
28568
  });
28569
28569
  Y(this, Qh, (t) => {
@@ -28571,7 +28571,7 @@ class tf extends HTMLElement {
28571
28571
  t.offsetX = t.targetTouches[0].pageX - l.left, t.offsetY = t.targetTouches[0].pageY - l.top, t.pageX = t.changedTouches[0].pageX, t.pageY = t.changedTouches[0].pageY, t.clientX = t.changedTouches[0].clientX, t.clientY = t.changedTouches[0].clientY, t.buttons = 1, f(this, va).call(this, t);
28572
28572
  });
28573
28573
  Y(this, va, (t) => {
28574
- if (!f(this, rs) && !(t.buttons != 1 || t.altKey || t.ctrlKey || t.shiftKey)) {
28574
+ if (!f(this, ss) && !(t.buttons != 1 || t.altKey || t.ctrlKey || t.shiftKey)) {
28575
28575
  t.preventDefault();
28576
28576
  var l = f(this, ge).thumb.getBoundingClientRect();
28577
28577
  clearInterval(f(this, gr)), clearInterval(f(this, br)), t.clientY > l.y ? f(this, zt).pageDown() : f(this, zt).pageUp(), tt(this, gr, setInterval(() => {
@@ -28596,11 +28596,11 @@ class tf extends HTMLElement {
28596
28596
  t.offsetX = t.targetTouches[0].pageX - l.left, t.offsetY = t.targetTouches[0].pageY - l.top, t.pageX = t.changedTouches[0].pageX, t.pageY = t.changedTouches[0].pageY, t.clientX = t.changedTouches[0].clientX, t.clientY = t.changedTouches[0].clientY, t.buttons = 1, f(this, Sn).call(this, t);
28597
28597
  });
28598
28598
  Y(this, xa, (t) => {
28599
- tt(this, rs, !0), this.shiftY = t.offsetY + f(this, ge).track.getBoundingClientRect().y, this.trackHeight = $(f(this, ge).track).height(), this.thumbHeight = $(f(this, ge).thumb).height(), this.nodataHeight = $(".ng-container .ng-table tr.nodata", f(this, zt).body).height(), this.bodyHeight = $(".ng-container-body", f(this, zt).body).height(), this.templateHeight = f(this, zt).template.height(), this.theadHeight = $(".ng-container-body table > thead", f(this, zt).body).height() || 0, this.tfootHeight = $(".ng-container-body table > tfoot", f(this, zt).body).height() || 0, this.fixedHeight = $(".ng-container-body tbody.fixed", f(this, zt).body).height(), this.tableHeight = $(".ng-container-body .ng-table", f(this, zt).body).height(), tt(this, _n, !0), document.addEventListener("mousemove", f(this, Sn)), typeof this.onDragStart == "function" && this.onDragStart();
28599
+ tt(this, ss, !0), this.shiftY = t.offsetY + f(this, ge).track.getBoundingClientRect().y, this.trackHeight = $(f(this, ge).track).height(), this.thumbHeight = $(f(this, ge).thumb).height(), this.nodataHeight = $(".ng-container .ng-table tr.nodata", f(this, zt).body).height(), this.bodyHeight = $(".ng-container-body", f(this, zt).body).height(), this.templateHeight = f(this, zt).template.height(), this.theadHeight = $(".ng-container-body table > thead", f(this, zt).body).height() || 0, this.tfootHeight = $(".ng-container-body table > tfoot", f(this, zt).body).height() || 0, this.fixedHeight = $(".ng-container-body tbody.fixed", f(this, zt).body).height(), this.tableHeight = $(".ng-container-body .ng-table", f(this, zt).body).height(), tt(this, _n, !0), document.addEventListener("mousemove", f(this, Sn)), typeof this.onDragStart == "function" && this.onDragStart();
28600
28600
  });
28601
28601
  Y(this, Sn, (t) => {
28602
- if (!f(this, rs)) return;
28603
- t.preventDefault(), f(this, _n) && (H.j.querySelectorAll("th,td", f(this, zt).body).removeClass("active").removeClass("multi-selected").removeClass("selected").removeClass("selected-current").removeClass("selected-area").removeClass("selected-top").removeClass("selected-bottom").removeClass("selected-left").removeClass("selected-right"), tt(this, _n, !1));
28602
+ if (!f(this, ss)) return;
28603
+ t.preventDefault(), Wr.log("#thumb_onMouseMove"), f(this, _n) && (H.j.querySelectorAll("th,td", f(this, zt).body).removeClass("active").removeClass("multi-selected").removeClass("selected").removeClass("selected-current").removeClass("selected-area").removeClass("selected-top").removeClass("selected-bottom").removeClass("selected-left").removeClass("selected-right"), tt(this, _n, !1));
28604
28604
  var l = this.trackHeight, c = f(this, kn).call(this), o = t.clientY - this.shiftY, r = o / (l - c), n = f(this, zt).matrix.totalHeight, s = r * (n - this.bodyHeight), { index: e, offset: i } = f(this, zt).matrix.getRowInfoAt(s);
28605
28605
  f(this, zt).dataManager.viewRecords.rawIndex !== e && f(this, zt).scrollToV2(e);
28606
28606
  const u = f(this, zt).body.querySelector(".ng-container-body tbody.bindable");
@@ -28625,10 +28625,10 @@ class tf extends HTMLElement {
28625
28625
  thumb: this.shadowRoot.querySelector(".ng-scroll-thumb"),
28626
28626
  top: this.shadowRoot.querySelector(".ng-scroll-top"),
28627
28627
  bottom: this.shadowRoot.querySelector(".ng-scroll-bottom")
28628
- }), f(this, rs), this.shiftX, f(this, Jh).call(this));
28628
+ }), f(this, ss), this.shiftX, f(this, Jh).call(this));
28629
28629
  }
28630
28630
  }
28631
- zt = new WeakMap(), rs = new WeakMap(), ge = new WeakMap(), gr = new WeakMap(), br = new WeakMap(), _n = new WeakMap(), Jh = new WeakMap(), Qh = new WeakMap(), va = new WeakMap(), tc = new WeakMap(), wa = new WeakMap(), xa = new WeakMap(), Sn = new WeakMap(), kn = new WeakMap();
28631
+ zt = new WeakMap(), ss = new WeakMap(), ge = new WeakMap(), gr = new WeakMap(), br = new WeakMap(), _n = new WeakMap(), Jh = new WeakMap(), Qh = new WeakMap(), va = new WeakMap(), tc = new WeakMap(), wa = new WeakMap(), xa = new WeakMap(), Sn = new WeakMap(), kn = new WeakMap();
28632
28632
  var Ze, gs, ae, Ur, Vr, zs, ec, _a, rc, Sa, sc, ka, Ca, Cn;
28633
28633
  class ef extends HTMLElement {
28634
28634
  constructor() {
@@ -28755,16 +28755,16 @@ class ef extends HTMLElement {
28755
28755
  Ze = new WeakMap(), gs = new WeakMap(), ae = new WeakMap(), Ur = new WeakMap(), Vr = new WeakMap(), zs = new WeakMap(), ec = new WeakMap(), _a = new WeakMap(), rc = new WeakMap(), Sa = new WeakMap(), sc = new WeakMap(), ka = new WeakMap(), Ca = new WeakMap(), Cn = new WeakMap();
28756
28756
  customElements.get("ng-hscrollbar") || customElements.define("ng-hscrollbar", ef);
28757
28757
  customElements.get("ng-vscrollbar") || customElements.define("ng-vscrollbar", tf);
28758
- var Ue, ss, Ea, Aa, Ta, ic, nc;
28758
+ var Ue, is, Ea, Aa, Ta, ic, nc;
28759
28759
  class rf {
28760
28760
  constructor(C) {
28761
28761
  Y(this, Ue);
28762
- Y(this, ss);
28762
+ Y(this, is);
28763
28763
  it(this, "initialize", () => {
28764
28764
  f(this, Aa).call(this), f(this, Ea).call(this);
28765
28765
  });
28766
28766
  Y(this, Ea, () => {
28767
- tt(this, ss, []), $(".ng-table thead", f(this, Ue).body).off("click", "th,td", f(this, Ta)), $(".ng-table thead", f(this, Ue).body).on("click", "th,td", f(this, Ta));
28767
+ tt(this, is, []), $(".ng-table thead", f(this, Ue).body).off("click", "th,td", f(this, Ta)), $(".ng-table thead", f(this, Ue).body).on("click", "th,td", f(this, Ta));
28768
28768
  });
28769
28769
  /**
28770
28770
  * 정렬상태 초기화
@@ -28793,10 +28793,10 @@ class rf {
28793
28793
  $(f(this, Ue).template).find(`[data-col="${l}"]`).each((r, n) => {
28794
28794
  if (n.dataset.bind)
28795
28795
  return o = n.dataset.bind, n.dataset.expr && (c = f(this, Ue).exprFunction(n.dataset.expr)), !1;
28796
- }), o && (!C.ctrlKey && !C.shiftKey && (H.j.querySelectorAll(`thead th:not([data-col="${l}"],thead td:not([data-col="${l}"])`, f(this, Ue).body).removeClass("asc").removeClass("desc"), f(this, ss).splice(0, f(this, ss).length)), H.removeIf(f(this, ss), (r) => r.colnm == o), !H.j.querySelectorAll(t).hasClass("asc") && !H.j.querySelectorAll(t).hasClass("desc") ? (H.j.querySelectorAll(t).removeClass("desc").addClass("asc"), f(this, ss).push({ colnm: o, asc: !0, "expr-func": c })) : H.j.querySelectorAll(t).hasClass("asc") ? (H.j.querySelectorAll(t).removeClass("asc").addClass("desc"), f(this, ss).push({ colnm: o, asc: !1, "expr-func": c })) : H.j.querySelectorAll(t).removeClass("asc").removeClass("desc"), !H.j.querySelectorAll("thead th,thead td", f(this, Ue).body).hasClass("asc") && !H.j.querySelectorAll("thead th,thead td", f(this, Ue).body).hasClass("desc") ? f(this, Aa).call(this) : f(this, Ue).data.sort((r, n) => f(this, nc).call(this, r, n)), f(this, Ue).paging.type == H.PAGINGTYPE.CLIENT ? f(this, Ue).paging.movePage(1) : f(this, Ue).view.redraw());
28796
+ }), o && (!C.ctrlKey && !C.shiftKey && (H.j.querySelectorAll(`thead th:not([data-col="${l}"],thead td:not([data-col="${l}"])`, f(this, Ue).body).removeClass("asc").removeClass("desc"), f(this, is).splice(0, f(this, is).length)), H.removeIf(f(this, is), (r) => r.colnm == o), !H.j.querySelectorAll(t).hasClass("asc") && !H.j.querySelectorAll(t).hasClass("desc") ? (H.j.querySelectorAll(t).removeClass("desc").addClass("asc"), f(this, is).push({ colnm: o, asc: !0, "expr-func": c })) : H.j.querySelectorAll(t).hasClass("asc") ? (H.j.querySelectorAll(t).removeClass("asc").addClass("desc"), f(this, is).push({ colnm: o, asc: !1, "expr-func": c })) : H.j.querySelectorAll(t).removeClass("asc").removeClass("desc"), !H.j.querySelectorAll("thead th,thead td", f(this, Ue).body).hasClass("asc") && !H.j.querySelectorAll("thead th,thead td", f(this, Ue).body).hasClass("desc") ? f(this, Aa).call(this) : f(this, Ue).data.sort((r, n) => f(this, nc).call(this, r, n)), f(this, Ue).paging.type == H.PAGINGTYPE.CLIENT ? f(this, Ue).paging.movePage(1) : f(this, Ue).view.redraw());
28797
28797
  });
28798
28798
  Y(this, nc, (C, t) => {
28799
- for (var l of f(this, ss))
28799
+ for (var l of f(this, is))
28800
28800
  if (l["expr-func"]) {
28801
28801
  const c = f(this, Ue).data.conv(C), o = f(this, Ue).data.conv(t);
28802
28802
  if (l["expr-func"](c, c.__ng._[H.ROW.INDEX]) > l["expr-func"](o, o.__ng._[H.ROW.INDEX]))
@@ -28815,7 +28815,7 @@ class rf {
28815
28815
  tt(this, Ue, C), f(this, Ea).call(this);
28816
28816
  }
28817
28817
  }
28818
- Ue = new WeakMap(), ss = new WeakMap(), Ea = new WeakMap(), Aa = new WeakMap(), Ta = new WeakMap(), ic = new WeakMap(), nc = new WeakMap();
28818
+ Ue = new WeakMap(), is = new WeakMap(), Ea = new WeakMap(), Aa = new WeakMap(), Ta = new WeakMap(), ic = new WeakMap(), nc = new WeakMap();
28819
28819
  var Gt, oc, Ra, Ma;
28820
28820
  class sf {
28821
28821
  constructor(C) {
@@ -29853,7 +29853,7 @@ class df extends HTMLElement {
29853
29853
  Ar = new WeakMap(), Xa = new WeakMap(), Ya = new WeakMap(), yc = new WeakMap(), vc = new WeakMap(), wc = new WeakMap(), xc = new WeakMap();
29854
29854
  customElements.get("ng-filter-button") || customElements.define("ng-filter-button", uf);
29855
29855
  customElements.get("ng-filter-panel") || customElements.define("ng-filter-panel", df);
29856
- var Ga, vi, Ka, Tn, is, Za, Ja, _c, ys, Sc, Qa, kc, ns, Cc, tl, Ec, el, Xs, Ys;
29856
+ var Ga, vi, Ka, Tn, ns, Za, Ja, _c, ys, Sc, Qa, kc, os, Cc, tl, Ec, el, Xs, Ys;
29857
29857
  class Qc extends HTMLElement {
29858
29858
  constructor() {
29859
29859
  super();
@@ -29861,7 +29861,7 @@ class Qc extends HTMLElement {
29861
29861
  Y(this, vi);
29862
29862
  Y(this, Ka);
29863
29863
  Y(this, Tn);
29864
- Y(this, is);
29864
+ Y(this, ns);
29865
29865
  it(this, "export", () => {
29866
29866
  const t = this.shadowRoot.querySelector("ng-export");
29867
29867
  t && t.remove();
@@ -29922,7 +29922,7 @@ class Qc extends HTMLElement {
29922
29922
  this.dataManager && (this.data.clear(), this.dataManager.setDataSource(t), this.refresh(), this.paging && this.paging.refresh(), this.scrollTo_V1(0));
29923
29923
  });
29924
29924
  it(this, "changeRayout", (t) => {
29925
- $(".ng-container-left", this.body).children().remove(), $(".ng-container-right", this.body).children().remove(), $(".ng-container-body", this.body).children().remove(), $(".ng-container-body", this.shadowRoot).append(f(this, is)[t]), f(this, tl).call(this), this.createTemplate(), f(this, Ja).call(this), this.resetTemplate(), f(this, Qa).call(this), this.cell.resetEvent(), this.touchEvent.resetEvent(), f(this, vi).resetEvent(), f(this, Ka).resetEvent(), f(this, Tn) && f(this, Tn).resetEvent(), this.sorting && this.sorting.initialize(), this.filtering && this.filtering.initialize(), this.pin && this.pin.initialize(), this.data.initialize(), setTimeout(() => {
29925
+ $(".ng-container-left", this.body).children().remove(), $(".ng-container-right", this.body).children().remove(), $(".ng-container-body", this.body).children().remove(), $(".ng-container-body", this.shadowRoot).append(f(this, ns)[t]), f(this, tl).call(this), this.createTemplate(), f(this, Ja).call(this), this.resetTemplate(), f(this, Qa).call(this), this.cell.resetEvent(), this.touchEvent.resetEvent(), f(this, vi).resetEvent(), f(this, Ka).resetEvent(), f(this, Tn) && f(this, Tn).resetEvent(), this.sorting && this.sorting.initialize(), this.filtering && this.filtering.initialize(), this.pin && this.pin.initialize(), this.data.initialize(), setTimeout(() => {
29926
29926
  this.paging && this.paging.refresh(), this.scrollTo_V1(0);
29927
29927
  });
29928
29928
  });
@@ -29975,8 +29975,8 @@ class Qc extends HTMLElement {
29975
29975
  });
29976
29976
  });
29977
29977
  Y(this, Sc, () => {
29978
- if (os.log("1111111"), f(this, Ga)) return;
29979
- os.log("222222"), this.originFormat = this.outerHTML, this.uuid = H.randomUUID(), this.id || (this.id = this.uuid), $("table", this).each((r, n) => {
29978
+ if (Wr.log("1111111"), f(this, Ga)) return;
29979
+ Wr.log("222222"), this.originFormat = this.outerHTML, this.uuid = H.randomUUID(), this.id || (this.id = this.uuid), $("table", this).each((r, n) => {
29980
29980
  if ($("colgroup", n).length == 0) {
29981
29981
  var s = 0;
29982
29982
  $("tbody tr", n).eq(0).find("th,td").each((i, u) => {
@@ -30003,7 +30003,7 @@ class Qc extends HTMLElement {
30003
30003
  var p = `window["${this.id}"]["code${i}"]`;
30004
30004
  u.parentNode.setAttribute("data-source", p), h.dataset.expr = `ninegrid.binarySearchValue(${p}, "${m}", data["${h.dataset.bind}"].split("${b}"), "${d}")`;
30005
30005
  }
30006
- }), $(n).hide(), f(this, is).push(n), H.j.querySelectorAll(this).hasClass("simple") || f(this, Ec).call(this, n);
30006
+ }), $(n).hide(), f(this, ns).push(n), H.j.querySelectorAll(this).hasClass("simple") || f(this, Ec).call(this, n);
30007
30007
  });
30008
30008
  const t = `
30009
30009
  <style>
@@ -30037,20 +30037,20 @@ class Qc extends HTMLElement {
30037
30037
  const i = e.getAttribute("code") || "code", u = e.getAttribute("codename") || "codename", a = e.getAttribute("multi-separator") || ",";
30038
30038
  return H.binarySearchValue(e.dataSource, i, r[s.dataset.bind], u, a);
30039
30039
  };
30040
- for (const r of f(this, is))
30040
+ for (const r of f(this, ns))
30041
30041
  $(H.j.querySelectorAll("tbody", r).addClass("bindable").elem()).before('<tbody class="fixed"></tbody>');
30042
- $(this.shadowRoot).append(t), $(".ng-container-body", this.shadowRoot).append(f(this, is)[0]), this.body = this.shadowRoot.querySelector(".ng-body"), this.querySelectorAll("nx-buttons *").forEach((r) => {
30042
+ $(this.shadowRoot).append(t), $(".ng-container-body", this.shadowRoot).append(f(this, ns)[0]), this.body = this.shadowRoot.querySelector(".ng-body"), this.querySelectorAll("nx-buttons *").forEach((r) => {
30043
30043
  r.grid = this;
30044
30044
  }), $(this.shadowRoot.querySelector("ng-head").shadowRoot.querySelector("ng-custom")).append(this.querySelectorAll("nx-buttons")), f(this, tl).call(this), this.createTemplate(), f(this, Ja).call(this), this.resetTemplate(), f(this, kc).call(this);
30045
30045
  const l = this.shadowRoot.querySelector("ng-foot");
30046
- this.paging = l.shadowRoot.querySelector("ng-paging"), this.layout = l.shadowRoot.querySelector("ng-layout"), this.layout && this.layout.add(f(this, is)), new Uu(this), this.pin = new Jd(this), this.fields = new xd(this), this.cell = new Vu(this), this.touchEvent = new Gu(this), this.selection = new Yu(this), this.tables = new sf(this), this.dataManager = new dd(this), this.view = new hf(this), this.tableUtils = new nf(this), this.columns = new sd(this);
30046
+ this.paging = l.shadowRoot.querySelector("ng-paging"), this.layout = l.shadowRoot.querySelector("ng-layout"), this.layout && this.layout.add(f(this, ns)), new Uu(this), this.pin = new Jd(this), this.fields = new xd(this), this.cell = new Vu(this), this.touchEvent = new Gu(this), this.selection = new Yu(this), this.tables = new sf(this), this.dataManager = new dd(this), this.view = new hf(this), this.tableUtils = new nf(this), this.columns = new sd(this);
30047
30047
  for (var c in this.dataManager)
30048
30048
  this.dataManager[c] instanceof Function && !["xxx"].includes(c) ? this[c] = this.dataManager[c].bind(this) : ["data", "row", "tree"].includes(c) && (this[c] = this.dataManager[c]);
30049
30049
  for (var c in this.tableUtils)
30050
30050
  ["columns"].includes(c) && (this[c] = this.tableUtils[c]);
30051
30051
  for (var c in this.cell)
30052
30052
  this.cell[c] instanceof Function && !["refresh"].includes(c) || ["xx"].includes(c) && (this[c] = this.cell[c]);
30053
- H.j.querySelectorAll(this).hasClass("simple") || (this.filtering = new cf(this)), !H.j.querySelectorAll(this).hasClass("combo") && !H.j.querySelectorAll(this).hasClass("filter") && $(this.shadowRoot).append($("<ng-combo-panel></ng-combo-panel").hide()), this.sorting = new rf(this), this.matrix = new Dd(this), os.log("==============================="), os.log(this, this.matrix), tt(this, vi, new rd(this)), tt(this, Ka, new ed(this)), H.j.querySelectorAll(this).hasClass("simple") || tt(this, Tn, new Xd(this)), f(this, Qa).call(this), this.refresh(), this.body.querySelector(".ng-container-body .nodata") && new ResizeObserver((r, n) => {
30053
+ H.j.querySelectorAll(this).hasClass("simple") || (this.filtering = new cf(this)), !H.j.querySelectorAll(this).hasClass("combo") && !H.j.querySelectorAll(this).hasClass("filter") && $(this.shadowRoot).append($("<ng-combo-panel></ng-combo-panel").hide()), this.sorting = new rf(this), this.matrix = new Dd(this), Wr.log("==============================="), Wr.log(this, this.matrix), tt(this, vi, new rd(this)), tt(this, Ka, new ed(this)), H.j.querySelectorAll(this).hasClass("simple") || tt(this, Tn, new Xd(this)), f(this, Qa).call(this), this.refresh(), this.body.querySelector(".ng-container-body .nodata") && new ResizeObserver((r, n) => {
30054
30054
  this.body.querySelector("ng-vscrollbar").refresh();
30055
30055
  }).observe(this.body.querySelector(".ng-container-body .nodata")), !H.j.querySelectorAll(this).hasClass("filter") && !H.j.querySelectorAll(this).hasClass("combo") && ($(this.body).on("mousedown", (r) => {
30056
30056
  this.shadowRoot.querySelectorAll("ng-combo-panel,ng-filter-panel,ng-context-menu-panel").forEach((n) => {
@@ -30139,7 +30139,7 @@ class Qc extends HTMLElement {
30139
30139
  H.j.querySelectorAll(r).addClass("dummy");
30140
30140
  });
30141
30141
  });
30142
- Y(this, ns, (t, l) => {
30142
+ Y(this, os, (t, l) => {
30143
30143
  var c = $(l + " tr", t), o = $(l + " th," + l + " td", t), r = c.length, n = 0;
30144
30144
  o.each((e, i) => {
30145
30145
  n += i.colSpan;
@@ -30198,13 +30198,13 @@ class Qc extends HTMLElement {
30198
30198
  c.style.height || (c.style.height = "32px");
30199
30199
  });
30200
30200
  var l = t.querySelector("thead");
30201
- l.length <= 0 && $("<thead></thead>").appendTo(t), H.j.querySelectorAll(t).attr("role", "table").addClass("ng-table"), H.j.querySelectorAll("tbody th,tbody td", t).attr("tabindex", 0), H.j.querySelectorAll("thead,tbody,tfoot", t).attr("role", "rowgroup"), H.j.querySelectorAll("tr", t).attr("role", "row"), H.j.querySelectorAll("tbody > tr", t).attr("role", "gridcell"), H.j.querySelectorAll("th,td", t).attr("scope", "col"), f(this, ns).call(this, $(t), "thead"), f(this, ns).call(this, $(t), "tbody.bindable"), f(this, ns).call(this, $(t), "tbody.fixed"), f(this, ns).call(this, $(t), "tfoot"), f(this, Cc).call(this), t.querySelectorAll("col").forEach((c, o) => {
30201
+ l.length <= 0 && $("<thead></thead>").appendTo(t), H.j.querySelectorAll(t).attr("role", "table").addClass("ng-table"), H.j.querySelectorAll("tbody th,tbody td", t).attr("tabindex", 0), H.j.querySelectorAll("thead,tbody,tfoot", t).attr("role", "rowgroup"), H.j.querySelectorAll("tr", t).attr("role", "row"), H.j.querySelectorAll("tbody > tr", t).attr("role", "gridcell"), H.j.querySelectorAll("th,td", t).attr("scope", "col"), f(this, os).call(this, $(t), "thead"), f(this, os).call(this, $(t), "tbody.bindable"), f(this, os).call(this, $(t), "tbody.fixed"), f(this, os).call(this, $(t), "tfoot"), f(this, Cc).call(this), t.querySelectorAll("col").forEach((c, o) => {
30202
30202
  H.j.querySelectorAll(`[data-col="${o}"]`, t).attr("fixed", H.j.querySelectorAll(c).attr("fixed"));
30203
30203
  });
30204
30204
  }
30205
30205
  });
30206
30206
  Y(this, Ec, (t) => {
30207
- f(this, ns).call(this, t, "thead"), f(this, ns).call(this, t, "tbody"), f(this, ns).call(this, t, "tfoot"), $("colgroup col[fixed=left]", t).index($(".dummy[fixed=left]", t)), $("tr", t).each((l, c) => {
30207
+ f(this, os).call(this, t, "thead"), f(this, os).call(this, t, "tbody"), f(this, os).call(this, t, "tfoot"), $("colgroup col[fixed=left]", t).index($(".dummy[fixed=left]", t)), $("tr", t).each((l, c) => {
30208
30208
  }), $("colgroup", t).prepend('<col width="0" fixed="left" class="first" />'), $("tr", t).each((l, c) => {
30209
30209
  $(c).prepend('<td class="first"></td>');
30210
30210
  }), $("colgroup", t).append('<col width="0" fixed="right" class="last" />'), $("tr", t).each((l, c) => {
@@ -30308,7 +30308,7 @@ class Qc extends HTMLElement {
30308
30308
  it(this, "scrollLast", () => {
30309
30309
  this.scrollTo(this.data.count() - 1);
30310
30310
  });
30311
- this.attachShadow({ mode: "open" }), H.extendElementPrototype(), tt(this, is, []), this.refreshBindRows = () => {
30311
+ this.attachShadow({ mode: "open" }), H.extendElementPrototype(), tt(this, ns, []), this.refreshBindRows = () => {
30312
30312
  this.bindRows = [], this.bindMatrixRows = [], H.j.querySelectorAll(".ng-container tbody.bindable tr:not(.nodata)", this.body).elements.forEach((o) => {
30313
30313
  this.bindRows.push(parseInt(o.dataset.row)), this.bindMatrixRows.push(parseInt(o.dataset.matrixRow));
30314
30314
  }), this.bindRows = [...new Set(this.bindRows)], this.bindMatrixRows = [...new Set(this.bindMatrixRows)];
@@ -30352,7 +30352,7 @@ class Qc extends HTMLElement {
30352
30352
  }, 300);
30353
30353
  }
30354
30354
  get layouts() {
30355
- return f(this, is);
30355
+ return f(this, ns);
30356
30356
  }
30357
30357
  attributeChangedCallback(t, l, c) {
30358
30358
  switch (t) {
@@ -30408,7 +30408,7 @@ class Qc extends HTMLElement {
30408
30408
  return Math.max.apply(null, f(this, el).call(this));
30409
30409
  }
30410
30410
  }
30411
- Ga = new WeakMap(), vi = new WeakMap(), Ka = new WeakMap(), Tn = new WeakMap(), is = new WeakMap(), Za = new WeakMap(), Ja = new WeakMap(), _c = new WeakMap(), ys = new WeakMap(), Sc = new WeakMap(), Qa = new WeakMap(), kc = new WeakMap(), ns = new WeakMap(), Cc = new WeakMap(), tl = new WeakMap(), Ec = new WeakMap(), el = new WeakMap(), Xs = new WeakMap(), Ys = new WeakMap(), it(Qc, "observedAttributes", ["lang", "caption", "display-row-count", "row-resizable", "col-indicator-type", "auto-fit-col", "enable-fixed-col", "select-type", "paging-type", "paging-count", "show-menu-icon", "show-title-bar", "show-tfoot", "show-status-bar"]);
30411
+ Ga = new WeakMap(), vi = new WeakMap(), Ka = new WeakMap(), Tn = new WeakMap(), ns = new WeakMap(), Za = new WeakMap(), Ja = new WeakMap(), _c = new WeakMap(), ys = new WeakMap(), Sc = new WeakMap(), Qa = new WeakMap(), kc = new WeakMap(), os = new WeakMap(), Cc = new WeakMap(), tl = new WeakMap(), Ec = new WeakMap(), el = new WeakMap(), Xs = new WeakMap(), Ys = new WeakMap(), it(Qc, "observedAttributes", ["lang", "caption", "display-row-count", "row-resizable", "col-indicator-type", "auto-fit-col", "enable-fixed-col", "select-type", "paging-type", "paging-count", "show-menu-icon", "show-title-bar", "show-tfoot", "show-status-bar"]);
30412
30412
  customElements.get("nine-grid") || customElements.define("nine-grid", Qc);
30413
30413
  class ff extends Qc {
30414
30414
  constructor() {