@duskmoon-dev/el-pro-data-grid 1.10.3 → 2.0.0-rc.0
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/cjs/index.js +10 -10
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/register.js +11 -10
- package/dist/cjs/register.js.map +2 -2
- package/dist/esm/index.js +10 -10
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/register.js +10 -10
- package/dist/esm/register.js.map +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -6
package/dist/cjs/index.js
CHANGED
|
@@ -214,8 +214,8 @@ class SortEngine {
|
|
|
214
214
|
const valB = b[sortItem.field];
|
|
215
215
|
const isDesc = sortItem.direction === "desc";
|
|
216
216
|
if (column?.comparator) {
|
|
217
|
-
const
|
|
218
|
-
return isDesc ? -
|
|
217
|
+
const result2 = column.comparator(valA, valB, a, b, isDesc);
|
|
218
|
+
return isDesc ? -result2 : result2;
|
|
219
219
|
}
|
|
220
220
|
let result;
|
|
221
221
|
if (valA == null && valB == null)
|
|
@@ -562,15 +562,15 @@ class SelectionManager {
|
|
|
562
562
|
const key = row[this.#rowKey];
|
|
563
563
|
if (this.#mode === "single") {
|
|
564
564
|
const wasSelected = this.#selectedKeys.has(key);
|
|
565
|
-
const
|
|
565
|
+
const removed2 = this.getSelectedRows(rows);
|
|
566
566
|
this.#selectedKeys.clear();
|
|
567
567
|
if (wasSelected) {
|
|
568
568
|
this.#lastSelectedIndex = null;
|
|
569
|
-
return { added: [], removed };
|
|
569
|
+
return { added: [], removed: removed2 };
|
|
570
570
|
}
|
|
571
571
|
this.#selectedKeys.add(key);
|
|
572
572
|
this.#lastSelectedIndex = rowIndex;
|
|
573
|
-
return { added: [row], removed };
|
|
573
|
+
return { added: [row], removed: removed2 };
|
|
574
574
|
}
|
|
575
575
|
if (shiftKey && this.#lastSelectedIndex !== null) {
|
|
576
576
|
return this.#rangeSelect(rowIndex, rows);
|
|
@@ -7221,18 +7221,18 @@ class ElDmProDataGrid extends import_el_base12.BaseElement {
|
|
|
7221
7221
|
} else {
|
|
7222
7222
|
wrapper.prepend(this.#quickFilterBar);
|
|
7223
7223
|
}
|
|
7224
|
-
const
|
|
7225
|
-
|
|
7224
|
+
const input2 = this.#quickFilterBar.querySelector("input");
|
|
7225
|
+
input2.addEventListener("input", () => {
|
|
7226
7226
|
const debounceMs = this.filterDebounceMs ?? 300;
|
|
7227
7227
|
if (this.#quickFilterDebounceTimer)
|
|
7228
7228
|
clearTimeout(this.#quickFilterDebounceTimer);
|
|
7229
7229
|
this.#quickFilterDebounceTimer = setTimeout(() => {
|
|
7230
|
-
this.#quickFilter.text =
|
|
7230
|
+
this.#quickFilter.text = input2.value;
|
|
7231
7231
|
this.#processData();
|
|
7232
7232
|
this.#renderRows();
|
|
7233
7233
|
this.#renderPagination();
|
|
7234
7234
|
this.#renderOverlays();
|
|
7235
|
-
this.emit("quick-filter-change", { text:
|
|
7235
|
+
this.emit("quick-filter-change", { text: input2.value });
|
|
7236
7236
|
}, debounceMs);
|
|
7237
7237
|
});
|
|
7238
7238
|
}
|
|
@@ -7580,5 +7580,5 @@ function register() {
|
|
|
7580
7580
|
registerGridColumnGroup();
|
|
7581
7581
|
}
|
|
7582
7582
|
|
|
7583
|
-
//# debugId=
|
|
7583
|
+
//# debugId=A96C4D88457FE6C664756E2164756E21
|
|
7584
7584
|
//# sourceMappingURL=index.js.map
|