galaxy-charts 0.0.59 → 0.0.60

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.
@@ -1,4 +1,4 @@
1
- import { ref as E, createElementBlock as Ae, openBlock as ye, createElementVNode as Te, createTextVNode as nr, Fragment as xt, Comment as Ii, isVNode as Yd, defineComponent as se, readonly as si, watch as De, computed as j, onMounted as St, onBeforeUnmount as Pt, inject as qe, provide as Mt, getCurrentInstance as Bi, withDirectives as xn, h as u, Teleport as Zd, toRef as $e, nextTick as pt, renderSlot as Oi, mergeProps as lr, onActivated as Ol, onDeactivated as Al, onBeforeMount as Ai, shallowRef as Jd, watchEffect as ot, Transition as en, TransitionGroup as Fl, vShow as mo, cloneVNode as Dl, Text as Qd, onBeforeUpdate as eu, mergeModels as oo, useModel as Fi, createBlock as nt, createCommentVNode as _t, unref as pe, createVNode as Pe, withCtx as Ee, toDisplayString as pn, renderList as Hl, normalizeClass as tu } from "vue";
1
+ import { ref as E, createElementBlock as Ae, openBlock as ye, createElementVNode as Te, createTextVNode as nr, Fragment as xt, Comment as Ii, isVNode as Yd, defineComponent as se, readonly as si, watch as De, computed as j, onMounted as St, onBeforeUnmount as Pt, inject as qe, provide as Mt, getCurrentInstance as Bi, withDirectives as xn, h as u, Teleport as Zd, toRef as $e, nextTick as pt, renderSlot as Oi, mergeProps as lr, onActivated as Ol, onDeactivated as Al, onBeforeMount as Ai, shallowRef as Jd, watchEffect as ot, Transition as en, TransitionGroup as Fl, vShow as mo, cloneVNode as Dl, Text as Qd, onBeforeUpdate as eu, mergeModels as oo, useModel as Fi, createBlock as et, createCommentVNode as _t, unref as pe, createVNode as Pe, withCtx as Ee, toDisplayString as pn, renderList as Hl, normalizeClass as tu } from "vue";
2
2
  import './galaxy-charts.css';function Ll(e, t = "Request failed.") {
3
3
  let n = t;
4
4
  return e && e.response && e.response.data && e.response.data.err_msg ? n = e.response.data.err_msg : e && e.data && e.data.err_msg ? n = e.data.err_msg : e && e.response ? n = `${e.response.statusText} (${e.response.status})` : e instanceof Error ? n = e.message : typeof e == "string" && (n = e), n;
@@ -73,13 +73,17 @@ async function nu(e, t) {
73
73
  indeces: t.toString()
74
74
  }).toString();
75
75
  try {
76
- const { data: r } = await sr().GET(`/api/datasets/${e}?${n}`), o = t.length, i = new Array(o).fill(null).map(() => []);
77
- for (const a of r.data)
78
- for (const l in a) {
79
- const s = Number(l), d = a[l];
80
- d !== void 0 && d != 2147483647 && s < o && i[s].push(d);
81
- }
82
- return i;
76
+ const { data: r } = await sr().GET(`/api/datasets/${e}?${n}`);
77
+ if (r.data && r.data.length > 0) {
78
+ const o = t.length, i = new Array(o).fill(null).map(() => []);
79
+ for (const a of r.data)
80
+ for (const l in a) {
81
+ const s = Number(l), d = a[l];
82
+ d !== void 0 && d != 2147483647 && s < o && i[s].push(d);
83
+ }
84
+ return i;
85
+ } else
86
+ return [];
83
87
  } catch (r) {
84
88
  rr(r);
85
89
  }
@@ -88,7 +92,7 @@ function ru(e, t) {
88
92
  return `${e}api/datasets/${t}/display`;
89
93
  }
90
94
  const va = ["auto"], pr = E({});
91
- function _y() {
95
+ function By() {
92
96
  function e(r, o) {
93
97
  return r.every((i) => o.every((a) => typeof i[a] == "string" && i[a].trim() !== ""));
94
98
  }
@@ -102,7 +106,7 @@ function _y() {
102
106
  return i;
103
107
  }
104
108
  async function n(r, o, i) {
105
- if (e(o, i)) {
109
+ if (i.length > 0 && e(o, i)) {
106
110
  pr.value[r] = pr.value[r] || {};
107
111
  const a = Object.keys(pr.value[r]), l = t(o, i).filter((d) => !a.includes(d));
108
112
  if (l.length > 0) {
@@ -123,7 +127,9 @@ function _y() {
123
127
  return [];
124
128
  }
125
129
  return {
126
- fetchColumns: n
130
+ checkColumns: e,
131
+ fetchColumns: n,
132
+ getColumns: t
127
133
  };
128
134
  }
129
135
  function ou(e, t) {
@@ -438,12 +444,12 @@ function ut(e) {
438
444
  if (t = Hi.exec(e))
439
445
  return [Ct(t[1]), Ct(t[2]), Ct(t[3]), 1];
440
446
  if (t = gu.exec(e))
441
- return [et(t[1]), et(t[5]), et(t[9]), 1];
447
+ return [tt(t[1]), tt(t[5]), tt(t[9]), 1];
442
448
  if (t = mu.exec(e))
443
449
  return [
444
- et(t[1]),
445
- et(t[5]),
446
- et(t[9]),
450
+ tt(t[1]),
451
+ tt(t[5]),
452
+ tt(t[9]),
447
453
  Qt(t[13])
448
454
  ];
449
455
  if (t = Di.exec(e))
@@ -478,13 +484,13 @@ function xu(e) {
478
484
  return e > 1 ? 1 : e < 0 ? 0 : e;
479
485
  }
480
486
  function yu(e, t, n) {
481
- return `rgb(${et(e)}, ${et(t)}, ${et(n)})`;
487
+ return `rgb(${tt(e)}, ${tt(t)}, ${tt(n)})`;
482
488
  }
483
489
  function fi(e, t, n, r) {
484
- return `rgba(${et(e)}, ${et(t)}, ${et(n)}, ${xu(r)})`;
490
+ return `rgba(${tt(e)}, ${tt(t)}, ${tt(n)}, ${xu(r)})`;
485
491
  }
486
492
  function Fo(e, t, n, r, o) {
487
- return et((e * t * (1 - r) + n * r) / o);
493
+ return tt((e * t * (1 - r) + n * r) / o);
488
494
  }
489
495
  function Rt(e, t) {
490
496
  Array.isArray(e) || (e = ut(e)), Array.isArray(t) || (t = ut(t));
@@ -507,7 +513,7 @@ function jt(e) {
507
513
  const t = Math.round(Number(e));
508
514
  return t >= 360 || t < 0 ? 0 : t;
509
515
  }
510
- function et(e) {
516
+ function tt(e) {
511
517
  const t = Math.round(Number(e));
512
518
  return t > 255 ? 255 : t < 0 ? 0 : t;
513
519
  }
@@ -521,7 +527,7 @@ function hi(e) {
521
527
  }
522
528
  function Vt(e) {
523
529
  const [t, n, r] = e;
524
- return 3 in e ? `rgba(${et(t)}, ${et(n)}, ${et(r)}, ${Qt(e[3])})` : `rgba(${et(t)}, ${et(n)}, ${et(r)}, 1)`;
530
+ return 3 in e ? `rgba(${tt(t)}, ${tt(n)}, ${tt(r)}, ${Qt(e[3])})` : `rgba(${tt(t)}, ${tt(n)}, ${tt(r)}, 1)`;
525
531
  }
526
532
  function vi(e) {
527
533
  return `hsv(${jt(e[0])}, ${at(e[1])}%, ${at(e[2])}%)`;
@@ -550,7 +556,7 @@ function hn(e) {
550
556
  return `#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;
551
557
  throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`);
552
558
  }
553
- const t = `#${e.slice(0, 3).map((r) => et(r).toString(16).toUpperCase().padStart(2, "0")).join("")}`, n = e.length === 3 ? "FF" : et(e[3] * 255).toString(16).padStart(2, "0").toUpperCase();
559
+ const t = `#${e.slice(0, 3).map((r) => tt(r).toString(16).toUpperCase().padStart(2, "0")).join("")}`, n = e.length === 3 ? "FF" : tt(e[3] * 255).toString(16).padStart(2, "0").toUpperCase();
554
560
  return t + n;
555
561
  }
556
562
  function $r(e) {
@@ -564,7 +570,7 @@ function $r(e) {
564
570
  return `#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;
565
571
  throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`);
566
572
  }
567
- return `#${e.slice(0, 3).map((t) => et(t).toString(16).toUpperCase().padStart(2, "0")).join("")}`;
573
+ return `#${e.slice(0, 3).map((t) => tt(t).toString(16).toUpperCase().padStart(2, "0")).join("")}`;
568
574
  }
569
575
  function wu(e = 8) {
570
576
  return Math.random().toString(16).slice(2, 2 + e);
@@ -1046,7 +1052,7 @@ const Uu = "n", lo = `.${Uu}-`, Gu = "__", Ku = "--", Zl = Yl(), Jl = ju({
1046
1052
  Zl.use(Jl);
1047
1053
  const {
1048
1054
  c: L,
1049
- find: My
1055
+ find: Oy
1050
1056
  } = Zl, {
1051
1057
  cB: y,
1052
1058
  cE: R,
@@ -6600,7 +6606,7 @@ const $m = y("scrollbar", `
6600
6606
  function Ye() {
6601
6607
  oe(), M(), _();
6602
6608
  }
6603
- function tt() {
6609
+ function nt() {
6604
6610
  Ie();
6605
6611
  }
6606
6612
  function Ie() {
@@ -6777,7 +6783,7 @@ const $m = y("scrollbar", `
6777
6783
  sync: _,
6778
6784
  syncUnifiedContainer: C,
6779
6785
  handleMouseEnterWrapper: Ye,
6780
- handleMouseLeaveWrapper: tt
6786
+ handleMouseLeaveWrapper: nt
6781
6787
  }), {
6782
6788
  mergedClsPrefix: t,
6783
6789
  rtlEnabled: o,
@@ -7504,7 +7510,7 @@ const _m = y("base-select-menu", `
7504
7510
  optionTextColorActive: Je,
7505
7511
  optionOpacityDisabled: Ue,
7506
7512
  optionCheckColor: Ye,
7507
- actionTextColor: tt,
7513
+ actionTextColor: nt,
7508
7514
  optionColorPending: Ie,
7509
7515
  optionColorActive: Y,
7510
7516
  loadingColor: A,
@@ -7518,7 +7524,7 @@ const _m = y("base-select-menu", `
7518
7524
  return {
7519
7525
  "--n-height": Ce,
7520
7526
  "--n-action-divider-color": Re,
7521
- "--n-action-text-color": tt,
7527
+ "--n-action-text-color": nt,
7522
7528
  "--n-bezier": re,
7523
7529
  "--n-border-radius": ke,
7524
7530
  "--n-color": ae,
@@ -9687,7 +9693,7 @@ const ld = {
9687
9693
  } = c;
9688
9694
  return C;
9689
9695
  }
9690
- function tt() {
9696
+ function nt() {
9691
9697
  return i.value;
9692
9698
  }
9693
9699
  let Ie = null;
@@ -9875,7 +9881,7 @@ const ld = {
9875
9881
  blurInput: Je,
9876
9882
  updateCounter: Ue,
9877
9883
  getCounter: Ye,
9878
- getTail: tt,
9884
+ getTail: nt,
9879
9885
  renderLabel: e.renderLabel,
9880
9886
  cssVars: F ? void 0 : q,
9881
9887
  themeClass: T == null ? void 0 : T.themeClass,
@@ -11367,7 +11373,7 @@ const Cl = se({
11367
11373
  } = e;
11368
11374
  X && ge(X, P);
11369
11375
  }
11370
- function tt(P) {
11376
+ function nt(P) {
11371
11377
  const {
11372
11378
  onWrapperBlur: X
11373
11379
  } = e;
@@ -11432,7 +11438,7 @@ const Cl = se({
11432
11438
  je(P), p.value = !0, D.value = !0, Je(), C(P, "focus"), X === 0 ? v.value = f.value : X === 1 ? v.value = c.value : X === 2 && (v.value = l.value);
11433
11439
  }
11434
11440
  function q(P) {
11435
- e.passivelyActivated && (tt(P), C(P, "blur"));
11441
+ e.passivelyActivated && (nt(P), C(P, "blur"));
11436
11442
  }
11437
11443
  function T(P) {
11438
11444
  e.passivelyActivated && (p.value = !0, Ye(P), C(P, "focus"));
@@ -12778,7 +12784,7 @@ const la = {
12778
12784
  [ne("fontSize", H)]: Je,
12779
12785
  [ne("padding", H)]: Ue,
12780
12786
  [ne("paddingRound", H)]: Ye,
12781
- [ne("iconSize", H)]: tt,
12787
+ [ne("iconSize", H)]: nt,
12782
12788
  [ne("borderRadius", H)]: Ie,
12783
12789
  [ne("iconMargin", H)]: Y,
12784
12790
  waveOpacity: A
@@ -12787,7 +12793,7 @@ const la = {
12787
12793
  "--n-height": Q ? "initial" : He,
12788
12794
  "--n-font-size": Je,
12789
12795
  "--n-padding": ue || Q ? "initial" : J ? Ye : Ue,
12790
- "--n-icon-size": tt,
12796
+ "--n-icon-size": nt,
12791
12797
  "--n-icon-margin": Y,
12792
12798
  "--n-border-radius": Q ? "initial" : ue || J ? He : Ie
12793
12799
  };
@@ -14204,7 +14210,7 @@ const J0 = se({
14204
14210
  }
14205
14211
  r = null;
14206
14212
  });
14207
- const tt = j(() => {
14213
+ const nt = j(() => {
14208
14214
  const {
14209
14215
  value: A
14210
14216
  } = i, {
@@ -14235,7 +14241,7 @@ const J0 = se({
14235
14241
  "--n-height": ze,
14236
14242
  "--n-divider-color": ie
14237
14243
  };
14238
- }), Ie = f ? bt("color-picker", j(() => i.value[0]), tt, e) : void 0;
14244
+ }), Ie = f ? bt("color-picker", j(() => i.value[0]), nt, e) : void 0;
14239
14245
  function Y() {
14240
14246
  var A;
14241
14247
  const {
@@ -14256,7 +14262,7 @@ const J0 = se({
14256
14262
  onDragstart: (ie) => {
14257
14263
  ie.preventDefault();
14258
14264
  },
14259
- style: f ? void 0 : tt.value
14265
+ style: f ? void 0 : nt.value
14260
14266
  }, u("div", {
14261
14267
  class: `${_}-color-picker-control`
14262
14268
  }, u(V0, {
@@ -14364,7 +14370,7 @@ const J0 = se({
14364
14370
  !((oe = n.value) === null || oe === void 0) && oe.contains(or(A)) || h(!1);
14365
14371
  },
14366
14372
  renderPanel: Y,
14367
- cssVars: f ? void 0 : tt,
14373
+ cssVars: f ? void 0 : nt,
14368
14374
  themeClass: Ie == null ? void 0 : Ie.themeClass,
14369
14375
  onRender: Ie == null ? void 0 : Ie.onRender
14370
14376
  };
@@ -14752,7 +14758,7 @@ const ox = {
14752
14758
  function Ye() {
14753
14759
  J.value || ($.value ? e.filterable ? Ne() : ce() : Re());
14754
14760
  }
14755
- function tt(m) {
14761
+ function nt(m) {
14756
14762
  var N, ee;
14757
14763
  !((ee = (N = p.value) === null || N === void 0 ? void 0 : N.selfRef) === null || ee === void 0) && ee.contains(m.relatedTarget) || (d.value = !1, he(m), ce());
14758
14764
  }
@@ -14991,7 +14997,7 @@ const ox = {
14991
14997
  handleDeleteOption: T,
14992
14998
  handlePatternInput: _,
14993
14999
  handleClear: ie,
14994
- handleTriggerBlur: tt,
15000
+ handleTriggerBlur: nt,
14995
15001
  handleTriggerFocus: Ie,
14996
15002
  handleKeydown: Qe,
14997
15003
  handleMenuAfterLeave: je,
@@ -15937,7 +15943,7 @@ const kx = L([y("input-number-suffix", `
15937
15943
  De(x, () => {
15938
15944
  p();
15939
15945
  });
15940
- const tt = {
15946
+ const nt = {
15941
15947
  focus: () => {
15942
15948
  var Y;
15943
15949
  return (Y = f.value) === null || Y === void 0 ? void 0 : Y.focus();
@@ -15951,7 +15957,7 @@ const kx = L([y("input-number-suffix", `
15951
15957
  return (Y = f.value) === null || Y === void 0 ? void 0 : Y.select();
15952
15958
  }
15953
15959
  }, Ie = wn("InputNumber", r, n);
15954
- return Object.assign(Object.assign({}, tt), {
15960
+ return Object.assign(Object.assign({}, nt), {
15955
15961
  rtlEnabled: Ie,
15956
15962
  inputInstRef: f,
15957
15963
  minusButtonInstRef: c,
@@ -16563,7 +16569,7 @@ const Mx = L([y("slider", `
16563
16569
  function Ye() {
16564
16570
  Je();
16565
16571
  }
16566
- function tt(T) {
16572
+ function nt(T) {
16567
16573
  z.value = T, v.value || (p.value = T);
16568
16574
  }
16569
16575
  function Ie(T) {
@@ -16685,7 +16691,7 @@ const Mx = L([y("slider", `
16685
16691
  arrifiedValues: b,
16686
16692
  followerEnabledIndexSet: f,
16687
16693
  handleRailMouseDown: je,
16688
- handleHandleFocus: tt,
16694
+ handleHandleFocus: nt,
16689
16695
  handleHandleBlur: Ie,
16690
16696
  handleHandleMouseEnter: Y,
16691
16697
  handleHandleMouseLeave: A,
@@ -17961,7 +17967,7 @@ const hd = se({
17961
17967
  x.value = q <= 0, w.value = q + C >= T;
17962
17968
  }
17963
17969
  }
17964
- const tt = Yo((M) => {
17970
+ const nt = Yo((M) => {
17965
17971
  Ye(M.target);
17966
17972
  }, 64);
17967
17973
  Mt(da, {
@@ -18096,7 +18102,7 @@ const hd = se({
18096
18102
  tabWrapperStyle: B,
18097
18103
  handleNavResize: ce,
18098
18104
  mergedSize: b,
18099
- handleScroll: tt,
18105
+ handleScroll: nt,
18100
18106
  handleTabsResize: Je,
18101
18107
  cssVars: l ? void 0 : A,
18102
18108
  themeClass: oe == null ? void 0 : oe.themeClass,
@@ -18371,11 +18377,11 @@ const Nx = {
18371
18377
  g();
18372
18378
  }
18373
18379
  ), (h, x) => (ye(), Ae(xt, null, [
18374
- o.value.type === "boolean" ? (ye(), nt(pe(hd), {
18380
+ o.value.type === "boolean" ? (ye(), et(pe(hd), {
18375
18381
  key: 0,
18376
18382
  value: c.value,
18377
18383
  "onUpdate:value": x[0] || (x[0] = (w) => c.value = w)
18378
- }, null, 8, ["value"])) : (ye(), nt(pe(Mo), {
18384
+ }, null, 8, ["value"])) : (ye(), et(pe(Mo), {
18379
18385
  key: 1,
18380
18386
  value: l.value,
18381
18387
  "onUpdate:value": x[1] || (x[1] = (w) => l.value = w),
@@ -18501,12 +18507,12 @@ const qx = /* @__PURE__ */ se({
18501
18507
  return o(), De(
18502
18508
  () => r.value,
18503
18509
  () => i()
18504
- ), (a, l) => a.datasetId ? (ye(), nt(pe(Mo), {
18510
+ ), (a, l) => a.datasetId ? (ye(), et(pe(Mo), {
18505
18511
  key: 0,
18506
18512
  value: r.value,
18507
18513
  "onUpdate:value": l[0] || (l[0] = (s) => r.value = s),
18508
18514
  options: n.value
18509
- }, null, 8, ["value", "options"])) : (ye(), nt(pe(ar), {
18515
+ }, null, 8, ["value", "options"])) : (ye(), et(pe(ar), {
18510
18516
  key: 1,
18511
18517
  value: r.value,
18512
18518
  "onUpdate:value": l[1] || (l[1] = (s) => r.value = s)
@@ -18551,14 +18557,14 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18551
18557
  Te("div", Zx, pn(d.label || d.name), 1),
18552
18558
  d.help ? (ye(), Ae("div", Jx, pn(d.help), 1)) : _t("", !0),
18553
18559
  Te("div", null, [
18554
- d.type === "boolean" ? (ye(), nt(pe(hd), {
18560
+ d.type === "boolean" ? (ye(), et(pe(hd), {
18555
18561
  key: 0,
18556
18562
  value: o.value[d.name],
18557
18563
  "onUpdate:value": [
18558
18564
  (c) => o.value[d.name] = c,
18559
18565
  s[0] || (s[0] = (c) => a())
18560
18566
  ]
18561
- }, null, 8, ["value", "onUpdate:value"])) : d.type === "color" ? (ye(), nt(pe(nx), {
18567
+ }, null, 8, ["value", "onUpdate:value"])) : d.type === "color" ? (ye(), et(pe(nx), {
18562
18568
  key: 1,
18563
18569
  value: o.value[d.name],
18564
18570
  "onUpdate:value": [
@@ -18567,7 +18573,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18567
18573
  ],
18568
18574
  modes: ["hex"],
18569
18575
  "show-alpha": !1
18570
- }, null, 8, ["value", "onUpdate:value"])) : d.type === "conditional" ? (ye(), nt(Wx, {
18576
+ }, null, 8, ["value", "onUpdate:value"])) : d.type === "conditional" ? (ye(), et(Wx, {
18571
18577
  key: 2,
18572
18578
  value: o.value[d.name],
18573
18579
  "onUpdate:value": [
@@ -18576,7 +18582,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18576
18582
  ],
18577
18583
  "dataset-id": l.datasetId,
18578
18584
  input: d
18579
- }, null, 8, ["value", "onUpdate:value", "dataset-id", "input"])) : d.type === "data" ? (ye(), nt(Kx, {
18585
+ }, null, 8, ["value", "onUpdate:value", "dataset-id", "input"])) : d.type === "data" ? (ye(), et(Kx, {
18580
18586
  key: 3,
18581
18587
  value: o.value[d.name],
18582
18588
  "onUpdate:value": [
@@ -18585,7 +18591,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18585
18591
  ],
18586
18592
  extension: d.extension,
18587
18593
  optional: pe(Cr)(d.optional)
18588
- }, null, 8, ["value", "onUpdate:value", "extension", "optional"])) : d.type === "data_column" ? (ye(), nt(qx, {
18594
+ }, null, 8, ["value", "onUpdate:value", "extension", "optional"])) : d.type === "data_column" ? (ye(), et(qx, {
18589
18595
  key: 4,
18590
18596
  value: o.value[d.name],
18591
18597
  "onUpdate:value": [
@@ -18597,7 +18603,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18597
18603
  "is-text": pe(Cr)(d.is_text),
18598
18604
  "is-number": pe(Cr)(d.is_number)
18599
18605
  }, null, 8, ["value", "onUpdate:value", "dataset-id", "is-auto", "is-text", "is-number"])) : d.type === "float" ? (ye(), Ae("div", Qx, [
18600
- d.min !== void 0 && d.max !== void 0 ? (ye(), nt(pe(Bx), {
18606
+ d.min !== void 0 && d.max !== void 0 ? (ye(), et(pe(Bx), {
18601
18607
  key: 0,
18602
18608
  class: "mb-2",
18603
18609
  value: o.value[d.name],
@@ -18620,7 +18626,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18620
18626
  max: Number(d.max),
18621
18627
  step: Bl
18622
18628
  }, null, 8, ["value", "onUpdate:value", "min", "max"])
18623
- ])) : d.type === "select" ? (ye(), nt(pe(Mo), {
18629
+ ])) : d.type === "select" ? (ye(), et(pe(Mo), {
18624
18630
  key: 6,
18625
18631
  value: o.value[d.name],
18626
18632
  "onUpdate:value": [
@@ -18628,7 +18634,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18628
18634
  s[7] || (s[7] = (c) => a())
18629
18635
  ],
18630
18636
  options: d.data
18631
- }, null, 8, ["value", "onUpdate:value", "options"])) : d.type === "textarea" ? (ye(), nt(pe(ar), {
18637
+ }, null, 8, ["value", "onUpdate:value", "options"])) : d.type === "textarea" ? (ye(), et(pe(ar), {
18632
18638
  key: 7,
18633
18639
  value: o.value[d.name],
18634
18640
  "onUpdate:value": [
@@ -18637,7 +18643,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18637
18643
  ],
18638
18644
  rows: Number(d.rows),
18639
18645
  type: "textarea"
18640
- }, null, 8, ["value", "onUpdate:value", "rows"])) : (ye(), nt(pe(ar), {
18646
+ }, null, 8, ["value", "onUpdate:value", "rows"])) : (ye(), et(pe(ar), {
18641
18647
  key: 8,
18642
18648
  value: o.value[d.name],
18643
18649
  "onUpdate:value": [
@@ -18702,6 +18708,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18702
18708
  Te("div", ty, [
18703
18709
  Pe(pe(Lt), {
18704
18710
  class: "text-green-600 w-full",
18711
+ "data-description": "remove repeat block",
18705
18712
  size: "tiny",
18706
18713
  round: "",
18707
18714
  disabled: s.valuesArray.length <= 1,
@@ -18738,7 +18745,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18738
18745
  () => {
18739
18746
  o && clearTimeout(o), o = setTimeout(() => r("timeout"), oy);
18740
18747
  }
18741
- ), (i, a) => i.message ? (ye(), nt(pe(sd), {
18748
+ ), (i, a) => i.message ? (ye(), et(pe(sd), {
18742
18749
  key: 0,
18743
18750
  type: i.messageType,
18744
18751
  class: "m-4"
@@ -18761,7 +18768,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18761
18768
  console.log("Unable to connect to Galaxy. Verify Galaxy is running and refer to docs."), t.value = "";
18762
18769
  }
18763
18770
  }
18764
- return n(), (r, o) => t.value ? (ye(), nt(pe(Ar), {
18771
+ return n(), (r, o) => t.value ? (ye(), et(pe(Ar), {
18765
18772
  key: 0,
18766
18773
  class: "mx-1",
18767
18774
  trigger: "hover",
@@ -18779,7 +18786,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18779
18786
  Te("span", ay, "Connected to Galaxy Version " + pn(t.value) + ".", 1)
18780
18787
  ]),
18781
18788
  _: 1
18782
- })) : (ye(), nt(pe(Ar), {
18789
+ })) : (ye(), et(pe(Ar), {
18783
18790
  key: 1,
18784
18791
  class: "mx-1",
18785
18792
  trigger: "hover",
@@ -18799,16 +18806,36 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18799
18806
  _: 1
18800
18807
  }));
18801
18808
  }
18802
- }), sy = { class: "overflow-auto select-none bg-white z-10" }, dy = {
18803
- key: 0,
18804
- class: "flex m-2"
18805
- }, uy = { class: "flex-1 font-thin text-lg mt-1" }, cy = { class: "m-2 p-2 bg-sky-50 text-sky-900 rounded" }, fy = { class: "flex" }, hy = { class: "flex justify-center center-items" }, vy = { class: "m-2" }, py = ["src"], by = {
18806
- key: 1,
18809
+ }), sy = (e, t) => {
18810
+ const n = e.__vccOpts || e;
18811
+ for (const [r, o] of t)
18812
+ n[r] = o;
18813
+ return n;
18814
+ }, dy = {}, uy = {
18807
18815
  xmlns: "http://www.w3.org/2000/svg",
18808
18816
  fill: "none",
18809
18817
  viewBox: "0 0 100 100",
18810
18818
  class: "size-14"
18811
- }, gy = { class: "overflow-hidden break-words p-1" }, my = { class: "font-bold" }, xy = ["innerHTML"], yy = { class: "m-2" }, wy = /* @__PURE__ */ se({
18819
+ };
18820
+ function cy(e, t) {
18821
+ return ye(), Ae("svg", uy, t[0] || (t[0] = [
18822
+ Te("circle", {
18823
+ cx: "50",
18824
+ cy: "50",
18825
+ r: "45",
18826
+ stroke: "#E30A17",
18827
+ "stroke-width": "5"
18828
+ }, null, -1),
18829
+ Te("path", {
18830
+ d: "M 50,5 A 45,45 0 0,1 95,50 L 50,50 Z",
18831
+ fill: "#E30A17"
18832
+ }, null, -1)
18833
+ ]));
18834
+ }
18835
+ const fy = /* @__PURE__ */ sy(dy, [["render", cy]]), hy = { class: "overflow-auto select-none bg-white z-10" }, vy = {
18836
+ key: 0,
18837
+ class: "flex m-2"
18838
+ }, py = { class: "flex-1 font-thin text-lg mt-1" }, by = { class: "m-2 p-2 bg-sky-50 text-sky-900 rounded" }, gy = { class: "flex" }, my = { class: "flex justify-center center-items" }, xy = { class: "m-2" }, yy = ["src"], wy = { class: "overflow-hidden break-words p-1" }, Cy = { class: "font-bold" }, Sy = ["innerHTML"], $y = { class: "m-2" }, zy = /* @__PURE__ */ se({
18812
18839
  __name: "SidePanel",
18813
18840
  props: {
18814
18841
  datasetId: {},
@@ -18856,14 +18883,14 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18856
18883
  function f(c) {
18857
18884
  r("update:visualization-title", c);
18858
18885
  }
18859
- return (c, v) => (ye(), Ae("div", sy, [
18860
- c.datasetUrl ? (ye(), Ae("div", dy, [
18861
- Te("div", uy, [
18886
+ return (c, v) => (ye(), Ae("div", hy, [
18887
+ c.datasetUrl ? (ye(), Ae("div", vy, [
18888
+ Te("div", py, [
18862
18889
  v[2] || (v[2] = Te("span", null, "Charts", -1)),
18863
18890
  Pe(ly)
18864
18891
  ]),
18865
18892
  Te("div", null, [
18866
- c.datasetId ? (ye(), nt(pe(Ar), {
18893
+ c.datasetId ? (ye(), et(pe(Ar), {
18867
18894
  key: 0,
18868
18895
  trigger: "hover",
18869
18896
  to: !1
@@ -18874,6 +18901,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18874
18901
  secondary: "",
18875
18902
  circle: "",
18876
18903
  class: "bg-sky-100 mr-2",
18904
+ "data-description": "sidepanel save button",
18877
18905
  onClick: l
18878
18906
  }, {
18879
18907
  icon: Ee(() => [
@@ -18928,41 +18956,29 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18928
18956
  onTimeout: v[1] || (v[1] = (g) => o.value = ""),
18929
18957
  class: "m-2"
18930
18958
  }, null, 8, ["message", "message-type"]),
18931
- Te("div", cy, [
18932
- Te("div", fy, [
18933
- Te("div", hy, [
18934
- Te("div", vy, [
18959
+ Te("div", by, [
18960
+ Te("div", gy, [
18961
+ Te("div", my, [
18962
+ Te("div", xy, [
18935
18963
  n.logoUrl ? (ye(), Ae("img", {
18936
18964
  key: 0,
18937
18965
  src: n.logoUrl,
18938
18966
  class: "min-w-14 max-w-14 object-contain"
18939
- }, null, 8, py)) : (ye(), Ae("svg", by, v[5] || (v[5] = [
18940
- Te("circle", {
18941
- cx: "50",
18942
- cy: "50",
18943
- r: "45",
18944
- stroke: "#E30A17",
18945
- "stroke-width": "5"
18946
- }, null, -1),
18947
- Te("path", {
18948
- d: "M 50,5 A 45,45 0 0,1 95,50 L 50,50 Z",
18949
- fill: "#E30A17"
18950
- }, null, -1)
18951
- ])))
18967
+ }, null, 8, yy)) : (ye(), et(fy, { key: 1 }))
18952
18968
  ])
18953
18969
  ]),
18954
- Te("div", gy, [
18955
- Te("span", my, pn(c.html), 1),
18970
+ Te("div", wy, [
18971
+ Te("span", Cy, pn(c.html), 1),
18956
18972
  Te("div", {
18957
18973
  class: "text-xs",
18958
18974
  innerHTML: c.description
18959
- }, null, 8, xy)
18975
+ }, null, 8, Sy)
18960
18976
  ])
18961
18977
  ])
18962
18978
  ]),
18963
- Te("div", yy, [
18964
- v[6] || (v[6] = Te("div", { class: "font-bold" }, "Title", -1)),
18965
- v[7] || (v[7] = Te("div", { class: "text-xs py-1" }, "Specify a visualization title.", -1)),
18979
+ Te("div", $y, [
18980
+ v[5] || (v[5] = Te("div", { class: "font-bold" }, "Title", -1)),
18981
+ v[6] || (v[6] = Te("div", { class: "text-xs py-1" }, "Specify a visualization title.", -1)),
18966
18982
  Pe(pe(ar), {
18967
18983
  value: c.visualizationTitle,
18968
18984
  onInput: f
@@ -18975,7 +18991,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18975
18991
  "tab-class": a.value ? "!hidden" : ""
18976
18992
  }, {
18977
18993
  default: Ee(() => [
18978
- c.trackInputs.length > 0 ? (ye(), nt(pe(_l), {
18994
+ c.trackInputs.length > 0 ? (ye(), et(pe(_l), {
18979
18995
  key: 0,
18980
18996
  name: "tracks"
18981
18997
  }, {
@@ -18986,7 +19002,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18986
19002
  ]),
18987
19003
  _: 1
18988
19004
  }),
18989
- v[8] || (v[8] = Te("span", { class: "mx-1" }, "Tracks", -1))
19005
+ v[7] || (v[7] = Te("span", { class: "mx-1" }, "Tracks", -1))
18990
19006
  ]),
18991
19007
  default: Ee(() => [
18992
19008
  Pe(ry, {
@@ -18998,7 +19014,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
18998
19014
  ]),
18999
19015
  _: 1
19000
19016
  })) : _t("", !0),
19001
- c.settingInputs.length > 0 ? (ye(), nt(pe(_l), {
19017
+ c.settingInputs.length > 0 ? (ye(), et(pe(_l), {
19002
19018
  key: 1,
19003
19019
  name: "settings"
19004
19020
  }, {
@@ -19009,7 +19025,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
19009
19025
  ]),
19010
19026
  _: 1
19011
19027
  }),
19012
- v[9] || (v[9] = Te("span", { class: "mx-1" }, "Settings", -1))
19028
+ v[8] || (v[8] = Te("span", { class: "mx-1" }, "Settings", -1))
19013
19029
  ]),
19014
19030
  default: Ee(() => [
19015
19031
  Pe(ua, {
@@ -19027,15 +19043,15 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1
19027
19043
  ]));
19028
19044
  }
19029
19045
  });
19030
- async function Cy(e, t = {}) {
19031
- const n = ca(e.settings, t.settings), r = e.specs, o = zy(e.tracks, t.tracks);
19046
+ async function Ty(e, t = {}) {
19047
+ const n = ca(e.settings, t.settings), r = e.specs, o = Ry(e.tracks, t.tracks);
19032
19048
  return { plugin: e, settings: n, specs: r, tracks: o };
19033
19049
  }
19034
- function Sy(e, t) {
19050
+ function Py(e, t) {
19035
19051
  let n = t ?? e.value;
19036
19052
  return e.type === "float" ? n = Number(n) : e.type === "boolean" && (n = Cr(n)), n;
19037
19053
  }
19038
- function $y(e, t = {}) {
19054
+ function ky(e, t = {}) {
19039
19055
  var o, i, a;
19040
19056
  const n = t, r = (o = e.test_param) == null ? void 0 : o.name;
19041
19057
  if (!r)
@@ -19050,16 +19066,16 @@ function $y(e, t = {}) {
19050
19066
  function ca(e, t) {
19051
19067
  const n = t || {};
19052
19068
  return e == null || e.forEach((r) => {
19053
- r.type === "conditional" ? n[r.name] = $y(r, n[r.name]) : n[r.name] = Sy(r, n[r.name]);
19069
+ r.type === "conditional" ? n[r.name] = ky(r, n[r.name]) : n[r.name] = Py(r, n[r.name]);
19054
19070
  }), n;
19055
19071
  }
19056
- function zy(e, t) {
19072
+ function Ry(e, t) {
19057
19073
  const n = t || [];
19058
19074
  return e && (n.length === 0 && n.push({}), n.forEach((r, o) => {
19059
19075
  n[o] = ca(e, r);
19060
19076
  })), n;
19061
19077
  }
19062
- function Ty(e, t = "app") {
19078
+ function _y(e, t = "app") {
19063
19079
  if (e === void 0) {
19064
19080
  const l = document.getElementById(t);
19065
19081
  if (!l)
@@ -19069,13 +19085,13 @@ function Ty(e, t = "app") {
19069
19085
  const n = (e == null ? void 0 : e.root) ?? "/", r = (e == null ? void 0 : e.visualization_config) ?? {}, o = (e == null ? void 0 : e.visualization_id) ?? null, i = (e == null ? void 0 : e.visualization_plugin) ?? {}, a = (e == null ? void 0 : e.visualization_title) ?? "Unnamed Visualization";
19070
19086
  return { root: n, visualizationConfig: r, visualizationId: o, visualizationPlugin: i, visualizationTitle: a };
19071
19087
  }
19072
- const Py = {
19088
+ const My = {
19073
19089
  key: 1,
19074
19090
  class: "m-2"
19075
- }, ky = {
19091
+ }, Ey = {
19076
19092
  key: 0,
19077
19093
  class: "relative max-w-full h-screen overflow-hidden"
19078
- }, Ey = /* @__PURE__ */ se({
19094
+ }, Ay = /* @__PURE__ */ se({
19079
19095
  __name: "GalaxyCharts",
19080
19096
  props: {
19081
19097
  container: {},
@@ -19083,11 +19099,11 @@ const Py = {
19083
19099
  incoming: {}
19084
19100
  },
19085
19101
  setup(e) {
19086
- const t = e, { root: n, visualizationConfig: r, visualizationId: o, visualizationPlugin: i, visualizationTitle: a } = Ty(
19102
+ const t = e, { root: n, visualizationConfig: r, visualizationId: o, visualizationPlugin: i, visualizationTitle: a } = _y(
19087
19103
  t.incoming,
19088
19104
  t.container
19089
19105
  ), l = E(!0), s = E(""), d = E(""), f = E(""), c = E(!0), v = E(""), g = E(""), h = E([]), x = E({}), w = E({}), b = E([]), k = E([]), V = E(o), $ = E(a), z = Vl();
19090
- z.setCredentials(t.credentials || "include"), z.setRoot(n || "/"), Cy(i, r).then(({ plugin: J, settings: ue, specs: le, tracks: he }) => {
19106
+ z.setCredentials(t.credentials || "include"), z.setRoot(n || "/"), Ty(i, r).then(({ plugin: J, settings: ue, specs: le, tracks: he }) => {
19091
19107
  s.value = J.description || "", f.value = J.html || "", c.value = !1, v.value = J.logo || "", g.value = J.name || "", h.value = J.settings || [], x.value = ue, w.value = le || {}, b.value = J.tracks || [], k.value = he;
19092
19108
  });
19093
19109
  const B = j(() => r.dataset_id || ""), p = j(() => r.dataset_url ? (console.debug(`GalaxyCharts: Evaluating dataset url: ${r.dataset_url}.`), r.dataset_url) : B.value ? (console.debug(`GalaxyCharts: Built dataset url from dataset id: ${B.value}.`), ru(n, B.value)) : ""), S = j(() => v.value && `${n}${v.value}`), I = j(() => h.value.length === 0 && b.value.length === 0);
@@ -19145,7 +19161,7 @@ const Py = {
19145
19161
  }
19146
19162
  }
19147
19163
  return (J, ue) => (ye(), Ae(xt, null, [
19148
- d.value ? (ye(), nt(pe(sd), {
19164
+ d.value ? (ye(), et(pe(sd), {
19149
19165
  key: 0,
19150
19166
  type: "error",
19151
19167
  class: "m-2"
@@ -19155,7 +19171,7 @@ const Py = {
19155
19171
  ]),
19156
19172
  _: 1
19157
19173
  })) : _t("", !0),
19158
- c.value ? (ye(), Ae("div", Py, [
19174
+ c.value ? (ye(), Ae("div", My, [
19159
19175
  Te("span", null, [
19160
19176
  Pe(pe(iu), { class: "animate-spin size-4 inline mx-1" })
19161
19177
  ]),
@@ -19164,7 +19180,7 @@ const Py = {
19164
19180
  key: 2,
19165
19181
  class: tu(["grid h-screen", { "grid-cols-[1fr_17rem]": !l.value && !I.value && p.value }])
19166
19182
  }, [
19167
- p.value ? (ye(), Ae("div", ky, [
19183
+ p.value ? (ye(), Ae("div", Ey, [
19168
19184
  Oi(J.$slots, "default", {
19169
19185
  datasetId: B.value,
19170
19186
  datasetUrl: p.value,
@@ -19175,7 +19191,7 @@ const Py = {
19175
19191
  save: Z
19176
19192
  })
19177
19193
  ])) : _t("", !0),
19178
- l.value && !I.value && p.value ? (ye(), nt(pe(Ar), {
19194
+ l.value && !I.value && p.value ? (ye(), et(pe(Ar), {
19179
19195
  key: 1,
19180
19196
  trigger: "hover",
19181
19197
  to: !1
@@ -19204,7 +19220,7 @@ const Py = {
19204
19220
  ]),
19205
19221
  _: 1
19206
19222
  })) : _t("", !0),
19207
- xn(Pe(wy, {
19223
+ xn(Pe(zy, {
19208
19224
  "dataset-id": B.value,
19209
19225
  "dataset-url": p.value,
19210
19226
  description: s.value,
@@ -19231,6 +19247,6 @@ const Py = {
19231
19247
  });
19232
19248
  export {
19233
19249
  sr as GalaxyApi,
19234
- Ey as GalaxyCharts,
19235
- _y as useColumnsStore
19250
+ Ay as GalaxyCharts,
19251
+ By as useColumnsStore
19236
19252
  };