@milaboratories/graph-maker 1.1.87 → 1.1.88

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.
@@ -36,7 +36,7 @@ export type PredefinedGraphOption<T extends ChartType> = {
36
36
  axisValue: number | string;
37
37
  }[];
38
38
  filterType?: SelectorStateFilter['type'];
39
- selectedFilterRange?: NumberRange;
39
+ selectedFilterRange?: Partial<NumberRange>;
40
40
  selectedFilterValue?: string;
41
41
  };
42
42
  export interface GraphMakerPropsTyped<T extends ChartType> {
@@ -12851,8 +12851,8 @@ function KAe(e, t) {
12851
12851
  const n = Object.keys(e);
12852
12852
  return typeof t > "u" ? n.length === 0 : n.every((r) => t[r]);
12853
12853
  }
12854
- function _O(e, t) {
12855
- return (t == null ? void 0 : t[RAe]) === "true" ? "subset" : e === "Int" || e === "String" ? "equals" : "range";
12854
+ function _O(e, t, n, r) {
12855
+ return (t == null ? void 0 : t[RAe]) === "true" ? "subset" : r !== void 0 ? "range" : n !== void 0 || e === "Int" || e === "String" ? "equals" : "range";
12856
12856
  }
12857
12857
  async function rD(e, t, n = !0) {
12858
12858
  const r = [], a = t.filter(({ selectedSource: s }) => "kind" in s && s.kind === "PColumn"), i = t.filter(({ selectedSource: s }) => !("kind" in s && s.kind === "PColumn")), o = [];
@@ -12863,7 +12863,7 @@ async function rD(e, t, n = !0) {
12863
12863
  if (!_)
12864
12864
  r.push({ inputName: s, selectedSource: B.toCanonicalString(), fixedAxes: N });
12865
12865
  else {
12866
- const H = c ?? _O(C, P == null ? void 0 : P.annotations), $ = H === "equals" && typeof A > "u" ? (await e.pFrameProvider.getColumnUniqueValues(B))[0] : A, Q = H === "range" && typeof p > "u" ? { min: 0, max: 0 } : p;
12866
+ const H = c ?? _O(C, P == null ? void 0 : P.annotations, A, p), $ = H === "equals" && typeof A > "u" ? (await e.pFrameProvider.getColumnUniqueValues(B))[0] : A, Q = { min: void 0, max: void 0, ...p };
12867
12867
  r.push({
12868
12868
  inputName: s,
12869
12869
  filterType: H,
@@ -12878,7 +12878,7 @@ async function rD(e, t, n = !0) {
12878
12878
  console.warn(`Not found column for default option: ${JSON.stringify({ inputName: s, selectedSource: f })}`);
12879
12879
  }
12880
12880
  for (const { inputName: s, selectedSource: c, filterType: f, selectedFilterValue: A, selectedFilterRange: p } of i) {
12881
- const h = $i.fromAxisSpec(c), m = h.toCanonicalString(), C = s === "filters" || s === "tabBy", w = C ? f ?? _O(h.type, c == null ? void 0 : c.annotations) : void 0, x = o.find((P) => $i.fromAxisSpec(P.spec).toCanonicalString() === m), B = C && w === "equals" && typeof A > "u" && (x != null && x.parentColumn) ? (await e.pFrameProvider.getAxisUniqueValues(h, [x == null ? void 0 : x.parentColumn]))[0] : A, _ = C && w === "range" && typeof p > "u" ? { min: 0, max: 0 } : p;
12881
+ const h = $i.fromAxisSpec(c), m = h.toCanonicalString(), C = s === "filters" || s === "tabBy", w = C ? f ?? _O(h.type, c == null ? void 0 : c.annotations) : void 0, x = o.find((P) => $i.fromAxisSpec(P.spec).toCanonicalString() === m), B = C && w === "equals" && typeof A > "u" && (x != null && x.parentColumn) ? (await e.pFrameProvider.getAxisUniqueValues(h, [x == null ? void 0 : x.parentColumn]))[0] : A, _ = { min: void 0, max: void 0, ...p };
12882
12882
  if (n || r.push({
12883
12883
  inputName: s,
12884
12884
  filterType: w,