@duskmoon-dev/el-pro-data-grid 1.7.4 → 1.7.5

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.
@@ -131,8 +131,8 @@ class SortEngine {
131
131
  const valB = b[sortItem.field];
132
132
  const isDesc = sortItem.direction === "desc";
133
133
  if (column?.comparator) {
134
- const result2 = column.comparator(valA, valB, a, b, isDesc);
135
- return isDesc ? -result2 : result2;
134
+ const result = column.comparator(valA, valB, a, b, isDesc);
135
+ return isDesc ? -result : result;
136
136
  }
137
137
  let result;
138
138
  if (valA == null && valB == null)
@@ -479,15 +479,15 @@ class SelectionManager {
479
479
  const key = row[this.#rowKey];
480
480
  if (this.#mode === "single") {
481
481
  const wasSelected = this.#selectedKeys.has(key);
482
- const removed2 = this.getSelectedRows(rows);
482
+ const removed = this.getSelectedRows(rows);
483
483
  this.#selectedKeys.clear();
484
484
  if (wasSelected) {
485
485
  this.#lastSelectedIndex = null;
486
- return { added: [], removed: removed2 };
486
+ return { added: [], removed };
487
487
  }
488
488
  this.#selectedKeys.add(key);
489
489
  this.#lastSelectedIndex = rowIndex;
490
- return { added: [row], removed: removed2 };
490
+ return { added: [row], removed };
491
491
  }
492
492
  if (shiftKey && this.#lastSelectedIndex !== null) {
493
493
  return this.#rangeSelect(rowIndex, rows);
@@ -7138,18 +7138,18 @@ class ElDmProDataGrid extends BaseElement {
7138
7138
  } else {
7139
7139
  wrapper.prepend(this.#quickFilterBar);
7140
7140
  }
7141
- const input2 = this.#quickFilterBar.querySelector("input");
7142
- input2.addEventListener("input", () => {
7141
+ const input = this.#quickFilterBar.querySelector("input");
7142
+ input.addEventListener("input", () => {
7143
7143
  const debounceMs = this.filterDebounceMs ?? 300;
7144
7144
  if (this.#quickFilterDebounceTimer)
7145
7145
  clearTimeout(this.#quickFilterDebounceTimer);
7146
7146
  this.#quickFilterDebounceTimer = setTimeout(() => {
7147
- this.#quickFilter.text = input2.value;
7147
+ this.#quickFilter.text = input.value;
7148
7148
  this.#processData();
7149
7149
  this.#renderRows();
7150
7150
  this.#renderPagination();
7151
7151
  this.#renderOverlays();
7152
- this.emit("quick-filter-change", { text: input2.value });
7152
+ this.emit("quick-filter-change", { text: input.value });
7153
7153
  }, debounceMs);
7154
7154
  });
7155
7155
  }
@@ -7500,5 +7500,5 @@ function register() {
7500
7500
  // src/register.ts
7501
7501
  register();
7502
7502
 
7503
- //# debugId=B07BE2FCFEA09D9464756E2164756E21
7503
+ //# debugId=726D270218AF40D164756E2164756E21
7504
7504
  //# sourceMappingURL=register.js.map