g-ui-web 0.11.33 → 0.11.35

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/lib/g-ui-web.js CHANGED
@@ -95940,21 +95940,21 @@ const olt = (e, t) => {
95940
95940
  setup(e, { expose: t, emit: r }) {
95941
95941
  let n = Dn.state;
95942
95942
  const a = r, o = e, i = z(!1), s = z();
95943
- let l = z(0), u = z([]), c = o.options;
95944
- const d = z(null), f = z({});
95945
- let p = [], h = [], v = [], g = {
95943
+ let l = z(0), u = z([]);
95944
+ const c = z(null), d = z({});
95945
+ let f = [], p = [], h = [], v = [], g = {
95946
95946
  radar: {
95947
95947
  indicator: []
95948
95948
  },
95949
95949
  series: [{}]
95950
95950
  };
95951
95951
  const m = () => {
95952
- u.value = [], h = [], v = [], p = [], g = {
95952
+ u.value = [], p = [], h = [], f = [], v = [], g = {
95953
95953
  radar: {
95954
95954
  indicator: []
95955
95955
  },
95956
95956
  series: [{}]
95957
- };
95957
+ }, o.options.series = [{}];
95958
95958
  }, b = async (w) => {
95959
95959
  if (Ea(w)) {
95960
95960
  i.value = !0;
@@ -95963,60 +95963,56 @@ const olt = (e, t) => {
95963
95963
  i.value = !1;
95964
95964
  m();
95965
95965
  const C = Hg(o.dbOptions.indivedualField);
95966
- if (u.value = w, u.value && o.dbOptions) {
95967
- let x = [];
95968
- o.dbOptions.dataField && o.dbOptions.dataField.length > 0 ? o.dbOptions.columns.map((S) => {
95969
- o.dbOptions.dataField.map((E) => {
95970
- E.field == S.field && x.push(S);
95971
- });
95972
- }) : x = o.dbOptions.columns, x.map((S) => {
95973
- p.push(S.field);
95974
- let E = {
95975
- name: S.title,
95976
- value: []
95977
- };
95978
- u.value.map((T) => {
95979
- E.value.push(T[S.field]);
95980
- }), h.push(E);
95981
- }), u.value.map((S) => {
95982
- let E = {
95983
- name: C == "function" ? o.dbOptions.indivedualField(S) : S[o.dbOptions.indivedualField],
95984
- min: 0
95985
- }, T = [];
95986
- p.map((A) => {
95987
- T.push(S[A]);
95988
- }), v.push(E);
95989
- }), c ? (c.radar ? c.radar.indicator = v : c.radar = { indicator: v }, c.series ? c.series[0].data = Fn({}, c.series[0].data, h) : c.series = [{ data: h }]) : (g.radar.indicator = v, g.series[0].data = h);
95990
- }
95991
- c ? s.value = X$(c) : s.value = X$(g);
95966
+ u.value = w, u.value && o.dbOptions && (o.dbOptions.dataField && o.dbOptions.dataField.length > 0 ? o.dbOptions.columns.map((x) => {
95967
+ o.dbOptions.dataField.map((S) => {
95968
+ S.field == x.field && v.push(x);
95969
+ });
95970
+ }) : v = o.dbOptions.columns, v.map((x) => {
95971
+ f.push(x.field);
95972
+ let S = {
95973
+ name: x.title,
95974
+ value: []
95975
+ };
95976
+ u.value.map((E) => {
95977
+ S.value.push(E[x.field]);
95978
+ }), p.push(S);
95979
+ }), u.value.map((x) => {
95980
+ let S = {
95981
+ name: C == "function" ? o.dbOptions.indivedualField(x) : x[o.dbOptions.indivedualField],
95982
+ min: 0
95983
+ }, E = [];
95984
+ f.map((T) => {
95985
+ E.push(x[T]);
95986
+ }), h.push(S);
95987
+ }), o.options ? (o.options.radar ? o.options.radar.indicator = h : o.options.radar = { indicator: h }, o.options.series ? o.options.series[0].data = Fn({}, o.options.series[0].data, p) : o.options.series = [{ data: p }]) : (g.radar.indicator = h, g.series[0].data = p)), o.options ? s.value = X$(o.options) : s.value = X$(g);
95992
95988
  };
95993
95989
  ke(
95994
95990
  () => o.dbOptions.data,
95995
95991
  (w) => {
95996
- f.value = or(w);
95992
+ d.value = or(w);
95997
95993
  const C = ["http://", "https://", void 0];
95998
- !w.path && !w.dsKey && !f.value.dataUrl && !(typeof w == "string" && C.some((x) => w.includes(x))) && f.value.loadStaticData(w), (typeof w == "string" || w.path) && f.value.reload(w.data);
95994
+ !w.path && !w.dsKey && !d.value.dataUrl && !(typeof w == "string" && C.some((x) => w.includes(x))) && d.value.loadStaticData(w), (typeof w == "string" || w.path) && d.value.reload(w.data);
95999
95995
  },
96000
95996
  {
96001
95997
  deep: !0
96002
95998
  }
96003
95999
  ), ke(
96004
- () => n["gui-theme"],
96000
+ [() => n["gui-theme"], () => o.dbOptions],
96005
96001
  async (w) => {
96006
- f.value = null, xe(async () => {
96007
- l++, f.value = or(o.dbOptions.data), b(f.value.data), f.value.on("load", (C) => {
96002
+ d.value = null, xe(async () => {
96003
+ l++, d.value = or(o.dbOptions.data), b(d.value.data), d.value.on("load", (C) => {
96008
96004
  b(C);
96009
96005
  });
96010
96006
  });
96011
96007
  },
96012
96008
  { deep: !0 }
96013
96009
  ), xe(async () => {
96014
- f.value = or(o.dbOptions.data), f.value.on("load", (w) => {
96010
+ d.value = or(o.dbOptions.data), d.value.on("load", (w) => {
96015
96011
  b(w);
96016
96012
  });
96017
96013
  }), t({
96018
96014
  props: o,
96019
- radarRef: d
96015
+ radarRef: c
96020
96016
  });
96021
96017
  const _ = (w) => {
96022
96018
  a("chart-click", w);
@@ -96026,7 +96022,7 @@ const olt = (e, t) => {
96026
96022
  return D(), B("div", Klt, [
96027
96023
  (D(), Te(x, Nt({ options: s.value }, w.$attrs, {
96028
96024
  ref_key: "radarRef",
96029
- ref: d,
96025
+ ref: c,
96030
96026
  isEmpty: i.value,
96031
96027
  description: e.description,
96032
96028
  onClick: _,
@@ -96035,7 +96031,7 @@ const olt = (e, t) => {
96035
96031
  ]);
96036
96032
  };
96037
96033
  }
96038
- }), qlt = /* @__PURE__ */ ma(Ylt, [["__scopeId", "data-v-a6e522cc"]]), Xlt = ar(qlt), Z$ = Pr(), Sm = document.documentElement, Zlt = (e) => e || "-", Qlt = (e) => e || "", Jlt = (e) => e || "", eut = (e, t) => ({
96034
+ }), qlt = /* @__PURE__ */ ma(Ylt, [["__scopeId", "data-v-f1bfb8fb"]]), Xlt = ar(qlt), Z$ = Pr(), Sm = document.documentElement, Zlt = (e) => e || "-", Qlt = (e) => e || "", Jlt = (e) => e || "", eut = (e, t) => ({
96039
96035
  backgroundColor: Z$.chartOption.backgroundColor,
96040
96036
  color: JSON.parse(getComputedStyle(Sm).getPropertyValue("--ui-chart-colors")),
96041
96037
  tooltip: {
Binary file