@duskmoon-dev/el-pro-data-grid 1.10.4 → 2.0.0-rc.1

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.
@@ -79,6 +79,7 @@ __export(exports_src, {
79
79
  registerGridColumnGroup: () => registerGridColumnGroup,
80
80
  registerProDataGrid: () => registerProDataGrid
81
81
  });
82
+ module.exports = __toCommonJS(exports_src);
82
83
 
83
84
  // src/pro-data-grid.ts
84
85
  var import_el_base12 = require("@duskmoon-dev/el-base");
@@ -213,8 +214,8 @@ class SortEngine {
213
214
  const valB = b[sortItem.field];
214
215
  const isDesc = sortItem.direction === "desc";
215
216
  if (column?.comparator) {
216
- const result = column.comparator(valA, valB, a, b, isDesc);
217
- return isDesc ? -result : result;
217
+ const result2 = column.comparator(valA, valB, a, b, isDesc);
218
+ return isDesc ? -result2 : result2;
218
219
  }
219
220
  let result;
220
221
  if (valA == null && valB == null)
@@ -561,15 +562,15 @@ class SelectionManager {
561
562
  const key = row[this.#rowKey];
562
563
  if (this.#mode === "single") {
563
564
  const wasSelected = this.#selectedKeys.has(key);
564
- const removed = this.getSelectedRows(rows);
565
+ const removed2 = this.getSelectedRows(rows);
565
566
  this.#selectedKeys.clear();
566
567
  if (wasSelected) {
567
568
  this.#lastSelectedIndex = null;
568
- return { added: [], removed };
569
+ return { added: [], removed: removed2 };
569
570
  }
570
571
  this.#selectedKeys.add(key);
571
572
  this.#lastSelectedIndex = rowIndex;
572
- return { added: [row], removed };
573
+ return { added: [row], removed: removed2 };
573
574
  }
574
575
  if (shiftKey && this.#lastSelectedIndex !== null) {
575
576
  return this.#rangeSelect(rowIndex, rows);
@@ -7220,18 +7221,18 @@ class ElDmProDataGrid extends import_el_base12.BaseElement {
7220
7221
  } else {
7221
7222
  wrapper.prepend(this.#quickFilterBar);
7222
7223
  }
7223
- const input = this.#quickFilterBar.querySelector("input");
7224
- input.addEventListener("input", () => {
7224
+ const input2 = this.#quickFilterBar.querySelector("input");
7225
+ input2.addEventListener("input", () => {
7225
7226
  const debounceMs = this.filterDebounceMs ?? 300;
7226
7227
  if (this.#quickFilterDebounceTimer)
7227
7228
  clearTimeout(this.#quickFilterDebounceTimer);
7228
7229
  this.#quickFilterDebounceTimer = setTimeout(() => {
7229
- this.#quickFilter.text = input.value;
7230
+ this.#quickFilter.text = input2.value;
7230
7231
  this.#processData();
7231
7232
  this.#renderRows();
7232
7233
  this.#renderPagination();
7233
7234
  this.#renderOverlays();
7234
- this.emit("quick-filter-change", { text: input.value });
7235
+ this.emit("quick-filter-change", { text: input2.value });
7235
7236
  }, debounceMs);
7236
7237
  });
7237
7238
  }
@@ -7582,5 +7583,5 @@ function register() {
7582
7583
  // src/register.ts
7583
7584
  register();
7584
7585
 
7585
- //# debugId=96906230C89C082664756E2164756E21
7586
+ //# debugId=17CA64CCA54BCEF964756E2164756E21
7586
7587
  //# sourceMappingURL=register.js.map