@peasant-labs/fairtrade 0.0.42 → 0.0.44

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.
@@ -1956,7 +1956,7 @@ function On(e, t) {
1956
1956
  let _ = vn[n.grain], v = [];
1957
1957
  function y(e, t, n = null) {
1958
1958
  if (h && !g.has(e.id)) return;
1959
- let r = o.get(e.id) ?? [], i = r.filter((e) => !h || g.has(e.id)).map((e) => e.id), a = r.length > 0, s = a && (t < _ || m.has(e.id)), c = !!h && i.length > 0;
1959
+ let r = o.get(e.id) ?? [], i = r.filter((e) => !h || g.has(e.id)).map((e) => e.id), a = r.length > 0, s = a && (t < _ || m.has(e.id)), c = !!h && i.length > 0, l = !h && a && t < _;
1960
1960
  if (v.push({
1961
1961
  node: { ...e },
1962
1962
  depth: t,
@@ -1965,7 +1965,8 @@ function On(e, t) {
1965
1965
  hasChildren: a,
1966
1966
  canExpand: s,
1967
1967
  forcedOpen: c,
1968
- expanded: c || s && m.has(e.id)
1968
+ openByGrain: l,
1969
+ expanded: c || l || s && m.has(e.id)
1969
1970
  }), h || t < _ || m.has(e.id)) for (let n of r) y(n, t + 1, e.id);
1970
1971
  }
1971
1972
  for (let e of s) y(e, 0);