v-datatable-plus 0.0.12 → 0.0.13
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/v-datatable-plus.js
CHANGED
|
@@ -10077,11 +10077,15 @@ const Ju = $({
|
|
|
10077
10077
|
}
|
|
10078
10078
|
function M(x, S) {
|
|
10079
10079
|
var p, A, O, V;
|
|
10080
|
-
if (a("row", { $event: x, param: S }), t.highlightRow
|
|
10081
|
-
|
|
10082
|
-
|
|
10083
|
-
|
|
10084
|
-
|
|
10080
|
+
if (a("row", { $event: x, param: S }), t.highlightRow) {
|
|
10081
|
+
if ((p = r.value) == null || p.classList.remove("dt-row-highlight"), r.value === x.currentTarget) {
|
|
10082
|
+
S.isSelected(S.internalItem) && S.toggleSelect(S.internalItem), r.value = null, v.value = null;
|
|
10083
|
+
return;
|
|
10084
|
+
}
|
|
10085
|
+
r.value = x.currentTarget, (A = r.value) == null || A.classList.add("dt-row-highlight"), S.isSelected(S.internalItem) || S.toggleSelect(S.internalItem);
|
|
10086
|
+
} else
|
|
10087
|
+
S.toggleSelect(S.internalItem);
|
|
10088
|
+
t.returnObject && (v.value = S.item), ((O = t.itemValue) == null ? void 0 : O.length) > 0 && (v.value = ((V = S.item) == null ? void 0 : V[t.itemValue]) ?? null);
|
|
10085
10089
|
}
|
|
10086
10090
|
function H(x, S, p) {
|
|
10087
10091
|
let A = !0;
|