@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.
- 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/esm/register.js
CHANGED
|
@@ -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
|
|
135
|
-
return isDesc ? -
|
|
134
|
+
const result2 = column.comparator(valA, valB, a, b, isDesc);
|
|
135
|
+
return isDesc ? -result2 : result2;
|
|
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
|
|
482
|
+
const removed2 = this.getSelectedRows(rows);
|
|
483
483
|
this.#selectedKeys.clear();
|
|
484
484
|
if (wasSelected) {
|
|
485
485
|
this.#lastSelectedIndex = null;
|
|
486
|
-
return { added: [], removed };
|
|
486
|
+
return { added: [], removed: removed2 };
|
|
487
487
|
}
|
|
488
488
|
this.#selectedKeys.add(key);
|
|
489
489
|
this.#lastSelectedIndex = rowIndex;
|
|
490
|
-
return { added: [row], removed };
|
|
490
|
+
return { added: [row], removed: removed2 };
|
|
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
|
|
7142
|
-
|
|
7141
|
+
const input2 = this.#quickFilterBar.querySelector("input");
|
|
7142
|
+
input2.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 =
|
|
7147
|
+
this.#quickFilter.text = input2.value;
|
|
7148
7148
|
this.#processData();
|
|
7149
7149
|
this.#renderRows();
|
|
7150
7150
|
this.#renderPagination();
|
|
7151
7151
|
this.#renderOverlays();
|
|
7152
|
-
this.emit("quick-filter-change", { text:
|
|
7152
|
+
this.emit("quick-filter-change", { text: input2.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=
|
|
7503
|
+
//# debugId=B07BE2FCFEA09D9464756E2164756E21
|
|
7504
7504
|
//# sourceMappingURL=register.js.map
|