tsv2-library 1.1.0-dev-alpha.43 → 1.1.0-dev-alpha.45
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/tsv2-library.es.js
CHANGED
|
@@ -42069,9 +42069,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
42069
42069
|
const prevAllChecked = !!((_a = prevKeys["0"]) == null ? void 0 : _a.checked) && !((_b = prevKeys["0"]) == null ? void 0 : _b.partialChecked);
|
|
42070
42070
|
const currAllChecked = !!((_c = nextKeys["0"]) == null ? void 0 : _c.checked) && !((_d = nextKeys["0"]) == null ? void 0 : _d.partialChecked);
|
|
42071
42071
|
if (currAllChecked && !prevAllChecked) {
|
|
42072
|
-
const flatFilteredNodes = flattenTreeNodeChildren(
|
|
42073
|
-
(_e = tree.value) == null ? void 0 : _e.filteredValue
|
|
42074
|
-
);
|
|
42072
|
+
const flatFilteredNodes = tree.value ? flattenTreeNodeChildren(((_e = tree.value) == null ? void 0 : _e.filteredValue) ?? []) : [];
|
|
42075
42073
|
if ((flatFilteredNodes == null ? void 0 : flatFilteredNodes.length) === ((_f = flatNodes.value) == null ? void 0 : _f.length)) {
|
|
42076
42074
|
for (const k2 of selectableSet)
|
|
42077
42075
|
nextKeys[k2] = { checked: true, partialChecked: false };
|