@milaboratories/graph-maker 1.1.90 → 1.1.91

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.
@@ -19573,71 +19573,71 @@ const Lme = {
19573
19573
  }),
19574
19574
  emits: /* @__PURE__ */ r1(["close-chip", "update:filter", "update:fixedAxes"], ["update:filter", "update:fixedAxes"]),
19575
19575
  setup(e, { emit: t }) {
19576
- var s;
19577
- const n = e, r = _a(), a = dy(e, "filter"), i = dy(e, "fixedAxes"), o = Gt((s = r.value.uniqueValuesData.value[n.info.id]) == null ? void 0 : s.options);
19578
- return Br(() => r.value.uniqueValuesData.value, (c) => {
19579
- var A;
19580
- const f = (A = c[n.info.id]) == null ? void 0 : A.options;
19581
- f && (o.value = f), n.info.axesToBeFixed.forEach((p) => {
19582
- i.value[p].axisValue === void 0 && (i.value[p].axisValue = c[p].list[0]);
19576
+ var c;
19577
+ const n = e, r = t, a = _a(), i = dy(e, "filter"), o = dy(e, "fixedAxes"), s = Gt((c = a.value.uniqueValuesData.value[n.info.id]) == null ? void 0 : c.options);
19578
+ return Br(() => a.value.uniqueValuesData.value, (f) => {
19579
+ var p;
19580
+ const A = (p = f[n.info.id]) == null ? void 0 : p.options;
19581
+ A && (s.value = A), n.info.axesToBeFixed.forEach((h) => {
19582
+ o.value[h].axisValue === void 0 && f[h] && (o.value[h].axisValue = f[h].list[0], r("update:fixedAxes", o.value));
19583
19583
  });
19584
- }, { immediate: !0 }), Br(() => o.value, async (c) => {
19585
- !c || !c.length || a.value === void 0 && (a.value = c[0].value);
19586
- }, { immediate: !0 }), (c, f) => (Ee(), Ue("div", Lme, [
19584
+ }, { immediate: !0 }), Br(() => s.value, async (f) => {
19585
+ !f || !f.length || i.value === void 0 && (i.value = f[0].value);
19586
+ }, { immediate: !0 }), (f, A) => (Ee(), Ue("div", Lme, [
19587
19587
  ye("div", {
19588
- class: ea([{ error: c.error, sortable: c.sortable }, "dnd-double-chip"])
19588
+ class: ea([{ error: f.error, sortable: f.sortable }, "dnd-double-chip"])
19589
19589
  }, [
19590
19590
  ye("div", Rme, [
19591
19591
  ye("div", {
19592
- class: ea(["dnd-double-chip__icon", { error: c.error }])
19592
+ class: ea(["dnd-double-chip__icon", { error: f.error }])
19593
19593
  }, [
19594
- c.error ? (Ee(), Qt(ie(GP), {
19594
+ f.error ? (Ee(), Qt(ie(GP), {
19595
19595
  key: 0,
19596
19596
  name: "warning"
19597
19597
  })) : (Ee(), Qt(ie(N4), {
19598
19598
  key: 1,
19599
- name: c.info.isSubsetFilter ? "cell-type-subset" : c.info.type === "String" ? "cell-type-txt" : "cell-type-num"
19599
+ name: f.info.isSubsetFilter ? "cell-type-subset" : f.info.type === "String" ? "cell-type-txt" : "cell-type-num"
19600
19600
  }, null, 8, ["name"]))
19601
19601
  ], 2),
19602
- c.sortable ? (Ee(), Ue("div", $me)) : Ht("", !0),
19602
+ f.sortable ? (Ee(), Ue("div", $me)) : Ht("", !0),
19603
19603
  Ne(ie(GP), { name: "drag-dots" }),
19604
19604
  ye("div", {
19605
19605
  class: "dnd-double-chip__title-wrapper",
19606
- title: c.info.title
19606
+ title: f.info.title
19607
19607
  }, [
19608
- ye("div", Ome, Xa(c.info.title), 1)
19608
+ ye("div", Ome, Xa(f.info.title), 1)
19609
19609
  ], 8, Fme),
19610
19610
  ye("div", {
19611
19611
  innerHTML: ie(qH),
19612
19612
  class: "dnd-double-chip__icon-close",
19613
- onClick: f[0] || (f[0] = (A) => c.$emit("close-chip", n.info.id))
19613
+ onClick: A[0] || (A[0] = (p) => f.$emit("close-chip", n.info.id))
19614
19614
  }, null, 8, Nme)
19615
19615
  ]),
19616
19616
  ye("div", Qme, [
19617
- o.value === void 0 || o.value.length < 1e3 ? (Ee(), Qt(ie(hs), {
19617
+ s.value === void 0 || s.value.length < 1e3 ? (Ee(), Qt(ie(hs), {
19618
19618
  key: 0,
19619
- modelValue: a.value,
19620
- "onUpdate:modelValue": f[1] || (f[1] = (A) => a.value = A),
19621
- options: o.value
19619
+ modelValue: i.value,
19620
+ "onUpdate:modelValue": A[1] || (A[1] = (p) => i.value = p),
19621
+ options: s.value
19622
19622
  }, null, 8, ["modelValue", "options"])) : (Ee(), Qt(ie(Xx), {
19623
19623
  key: 1,
19624
- modelValue: a.value,
19625
- "onUpdate:modelValue": f[2] || (f[2] = (A) => a.value = A),
19626
- "options-search": (A) => c.searchOptions(n.info.id, A)
19624
+ modelValue: i.value,
19625
+ "onUpdate:modelValue": A[2] || (A[2] = (p) => i.value = p),
19626
+ "options-search": (p) => f.searchOptions(n.info.id, p)
19627
19627
  }, null, 8, ["modelValue", "options-search"]))
19628
19628
  ])
19629
19629
  ], 2),
19630
- c.info.axesToBeFixed.length > 0 ? (Ee(), Ue("div", Vme, [
19631
- (Ee(!0), Ue(jn, null, si(c.info.axesToBeFixed, (A) => (Ee(), Ue(jn, { key: A }, [
19632
- i.value[A] ? (Ee(), Qt(ie(Xx), {
19630
+ f.info.axesToBeFixed.length > 0 ? (Ee(), Ue("div", Vme, [
19631
+ (Ee(!0), Ue(jn, null, si(f.info.axesToBeFixed, (p) => (Ee(), Ue(jn, { key: p }, [
19632
+ o.value[p] ? (Ee(), Qt(ie(Xx), {
19633
19633
  key: 0,
19634
- modelValue: i.value[A].axisValue,
19634
+ modelValue: o.value[p].axisValue,
19635
19635
  "onUpdate:modelValue": [
19636
- (p) => i.value[A].axisValue = p,
19637
- f[3] || (f[3] = (p) => c.$emit("update:fixedAxes", i.value))
19636
+ (h) => o.value[p].axisValue = h,
19637
+ A[3] || (A[3] = (h) => f.$emit("update:fixedAxes", o.value))
19638
19638
  ],
19639
- "options-search": (p) => c.searchOptions(A, p),
19640
- label: c.info.axesToBeFixedInfo[A].title
19639
+ "options-search": (h) => f.searchOptions(p, h),
19640
+ label: f.info.axesToBeFixedInfo[p].title
19641
19641
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options-search", "label"])) : Ht("", !0)
19642
19642
  ], 64))), 128))
19643
19643
  ])) : Ht("", !0)
@@ -19744,24 +19744,24 @@ const Lme = {
19744
19744
  }),
19745
19745
  emits: /* @__PURE__ */ r1(["close-chip", "update:fixedAxes"], ["update:filter", "update:fixedAxes"]),
19746
19746
  setup(e, { emit: t }) {
19747
- var s, c;
19748
- const n = e, r = _a(), a = dy(e, "filter"), i = dy(e, "fixedAxes"), o = aA({
19749
- min: (s = a.value) == null ? void 0 : s[0],
19750
- max: (c = a.value) == null ? void 0 : c[1]
19747
+ var c, f;
19748
+ const n = e, r = _a(), a = t, i = dy(e, "filter"), o = dy(e, "fixedAxes"), s = aA({
19749
+ min: (c = i.value) == null ? void 0 : c[0],
19750
+ max: (f = i.value) == null ? void 0 : f[1]
19751
19751
  });
19752
19752
  return Br(
19753
- () => o,
19754
- (f) => {
19755
- a.value = f;
19753
+ () => s,
19754
+ (A) => {
19755
+ i.value = A;
19756
19756
  },
19757
19757
  { deep: !0 }
19758
- ), Br(() => r.value.uniqueValuesData.value, (f) => {
19759
- n.info.axesToBeFixed.forEach((A) => {
19760
- i.value[A].axisValue === void 0 && (i.value[A].axisValue = f[A].list[0]);
19758
+ ), Br(() => r.value.uniqueValuesData.value, (A) => {
19759
+ n.info.axesToBeFixed.forEach((p) => {
19760
+ o.value[p].axisValue === void 0 && A[p] && (o.value[p].axisValue = A[p].list[0], a("update:fixedAxes", o.value));
19761
19761
  });
19762
- }, { immediate: !0 }), (f, A) => (Ee(), Ue("div", Zme, [
19762
+ }, { immediate: !0 }), (A, p) => (Ee(), Ue("div", Zme, [
19763
19763
  ye("div", {
19764
- class: ea([{ error: f.error }, "dnd-double-chip"])
19764
+ class: ea([{ error: A.error }, "dnd-double-chip"])
19765
19765
  }, [
19766
19766
  ye("div", Jme, [
19767
19767
  ye("div", qme, [
@@ -19769,22 +19769,22 @@ const Lme = {
19769
19769
  ]),
19770
19770
  ye("div", {
19771
19771
  class: "dnd-double-chip__title-wrapper",
19772
- title: f.info.title
19772
+ title: A.info.title
19773
19773
  }, [
19774
- ye("div", tge, Xa(f.info.title), 1)
19774
+ ye("div", tge, Xa(A.info.title), 1)
19775
19775
  ], 8, ege),
19776
19776
  ye("div", {
19777
19777
  innerHTML: ie(qH),
19778
19778
  class: "dnd-double-chip__icon-close",
19779
- onClick: A[0] || (A[0] = (p) => f.$emit("close-chip", n.info.id))
19779
+ onClick: p[0] || (p[0] = (h) => A.$emit("close-chip", n.info.id))
19780
19780
  }, null, 8, nge)
19781
19781
  ]),
19782
19782
  ye("div", rge, [
19783
19783
  ye("div", age, [
19784
19784
  Ne(ie(Lm), {
19785
19785
  label: "Min",
19786
- modelValue: o.min,
19787
- "onUpdate:modelValue": A[1] || (A[1] = (p) => o.min = p),
19786
+ modelValue: s.min,
19787
+ "onUpdate:modelValue": p[1] || (p[1] = (h) => s.min = h),
19788
19788
  updateOnEnterOrClickOutside: !0,
19789
19789
  useIncrementButtons: !1
19790
19790
  }, null, 8, ["modelValue"])
@@ -19792,25 +19792,25 @@ const Lme = {
19792
19792
  ye("div", ige, [
19793
19793
  Ne(ie(Lm), {
19794
19794
  label: "Max",
19795
- modelValue: o.max,
19796
- "onUpdate:modelValue": A[2] || (A[2] = (p) => o.max = p),
19795
+ modelValue: s.max,
19796
+ "onUpdate:modelValue": p[2] || (p[2] = (h) => s.max = h),
19797
19797
  updateOnEnterOrClickOutside: !0,
19798
19798
  useIncrementButtons: !1
19799
19799
  }, null, 8, ["modelValue"])
19800
19800
  ])
19801
19801
  ])
19802
19802
  ], 2),
19803
- f.info.axesToBeFixed.length > 0 ? (Ee(), Ue("div", oge, [
19804
- (Ee(!0), Ue(jn, null, si(f.info.axesToBeFixed, (p) => (Ee(), Ue(jn, { key: p }, [
19805
- i.value[p] ? (Ee(), Qt(ie(Xx), {
19803
+ A.info.axesToBeFixed.length > 0 ? (Ee(), Ue("div", oge, [
19804
+ (Ee(!0), Ue(jn, null, si(A.info.axesToBeFixed, (h) => (Ee(), Ue(jn, { key: h }, [
19805
+ o.value[h] ? (Ee(), Qt(ie(Xx), {
19806
19806
  key: 0,
19807
- modelValue: i.value[p].axisValue,
19807
+ modelValue: o.value[h].axisValue,
19808
19808
  "onUpdate:modelValue": [
19809
- (h) => i.value[p].axisValue = h,
19810
- A[3] || (A[3] = (h) => f.$emit("update:fixedAxes", i.value))
19809
+ (m) => o.value[h].axisValue = m,
19810
+ p[3] || (p[3] = (m) => A.$emit("update:fixedAxes", o.value))
19811
19811
  ],
19812
- "options-search": (h) => f.searchOptions(p, h),
19813
- label: f.info.axesToBeFixedInfo[p].title
19812
+ "options-search": (m) => A.searchOptions(h, m),
19813
+ label: A.info.axesToBeFixedInfo[h].title
19814
19814
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options-search", "label"])) : Ht("", !0)
19815
19815
  ], 64))), 128))
19816
19816
  ])) : Ht("", !0)