g-ui-web 1.1.23 → 1.1.25

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
@@ -48720,14 +48720,18 @@ class K3 {
48720
48720
  R0(this, "data", Nr({}));
48721
48721
  R0(this, "dataUrl");
48722
48722
  R0(this, "events");
48723
- if (this.events = {}, !t.path && !["string", "number"].includes(typeof t) && !Array.isArray(t) || Array.isArray(t) && !t.some((r) => r.path))
48723
+ if (this.events = {}, !t)
48724
+ throw console.error("dataUrl is undefined or null"), new Error("Invalid dataUrl");
48725
+ if (typeof t == "string" || typeof t == "number" || typeof t == "object" && t !== null && !t.path)
48724
48726
  this.loadStaticData(t);
48725
- else if (Array.isArray(t))
48727
+ else if (Array.isArray(t)) {
48728
+ if (!t.some((r) => r && r.path))
48729
+ throw console.error("Array dataUrl must contain at least one object with a path property"), new Error("Invalid array dataUrl");
48726
48730
  this.dataUrl = t, this.load(this.dataUrl);
48727
- else {
48728
- const r = [void 0, !0].includes(t == null ? void 0 : t.autoQuery);
48729
- this.dataUrl = t, r && this.load(this.dataUrl);
48730
- }
48731
+ } else if (typeof t == "object" && t !== null && t.path)
48732
+ this.dataUrl = t, [void 0, !0].includes(t == null ? void 0 : t.autoQuery) && this.load(this.dataUrl);
48733
+ else
48734
+ throw console.error("Invalid dataUrl type. Expected object, array, string, or number."), new Error("Invalid dataUrl type");
48731
48735
  }
48732
48736
  loadStaticData(t) {
48733
48737
  this.data = t, xe(() => {
@@ -48782,7 +48786,7 @@ const Kt = (e) => {
48782
48786
  params: r[1] ? qy.parse(r[1]) : {}
48783
48787
  });
48784
48788
  }
48785
- return e != null && e.path && (t = new K3(e)), e != null && e.dsKey && (t = e), !(e != null && e.path) && !(e != null && e.dsKey) && !(typeof e == "string" && y5.some((r) => e.includes(r))) && !["string", "number"].includes(typeof e) && (t = new K3(e)), t;
48789
+ return (e == null ? void 0 : e.path) != null && (t = new K3(e)), e != null && e.dsKey && (t = e), !(e != null && e.path) && !(e != null && e.dsKey) && !(typeof e == "string" && y5.some((r) => e.includes(r))) && !["string", "number"].includes(typeof e) && (t = new K3(e)), t;
48786
48790
  }, Y3 = (e) => Array.isArray(e) ? "数组" : typeof e == "object" && e !== null ? "对象" : typeof e == "string" ? "字符串" : "其他类型";
48787
48791
  var B$e = {
48788
48792
  name: "zh-cn",
@@ -95559,7 +95563,7 @@ const Clt = (e, t) => {
95559
95563
  (v) => {
95560
95564
  c.value = Kt(v);
95561
95565
  const g = ["http://", "https://", void 0];
95562
- !v.path && !v.dsKey && !c.value.dataUrl && !(typeof v == "string" && g.some((m) => v.includes(m))) && c.value.loadStaticData(v), (typeof v == "string" || v.path) && c.value.reload(v.data);
95566
+ v ? (typeof v == "object" && !v.path && !v.dsKey && !c.value.dataUrl && !(typeof v == "string" && g.some((m) => v.includes(m))) && c.value.loadStaticData(v), (typeof v == "string" || typeof v == "object") && (v.path || v.data && typeof v.data == "string") && c.value.reload(v.data || v)) : console.warn("props.dbOptions.data is undefined");
95563
95567
  },
95564
95568
  {
95565
95569
  deep: !0
@@ -95605,7 +95609,7 @@ const Clt = (e, t) => {
95605
95609
  ]);
95606
95610
  };
95607
95611
  }
95608
- }), Wlt = /* @__PURE__ */ Qn(Hlt, [["__scopeId", "data-v-2a477454"]]), Glt = rr(Wlt), wm = Tr(), Gf = document.documentElement, Ult = (e) => e || "-", Klt = (e) => e || "", Ylt = (e, t) => {
95612
+ }), Wlt = /* @__PURE__ */ Qn(Hlt, [["__scopeId", "data-v-1cd424a9"]]), Glt = rr(Wlt), wm = Tr(), Gf = document.documentElement, Ult = (e) => e || "-", Klt = (e) => e || "", Ylt = (e, t) => {
95609
95613
  let r = [];
95610
95614
  for (let n = 0; n <= e; n++)
95611
95615
  r.push({
@@ -97057,17 +97061,17 @@ const Wut = /* @__PURE__ */ Ll(Hut), Gut = ["id"], Uut = /* @__PURE__ */ H({
97057
97061
  emits: ["arrow-click"],
97058
97062
  setup(e, { expose: t, emit: r }) {
97059
97063
  Ws((k) => ({
97060
- "24481de6": l.value,
97061
- "46f0e802": u.value,
97062
- "7492fb4c": c.value,
97063
- 34238811: d.value,
97064
- "6042a298": f.value,
97065
- "4eff2f5e": g.value,
97066
- "53a262c5": h.value,
97067
- "1b86ecac": v.value,
97068
- "65a27447": m.value,
97069
- "14ca86b0": b.value,
97070
- "58f19446": _.value
97064
+ e11189a0: l.value,
97065
+ "667d6fe2": u.value,
97066
+ "295993c9": c.value,
97067
+ "447fc864": d.value,
97068
+ "134923d6": f.value,
97069
+ "121f067e": g.value,
97070
+ "44cf72b0": h.value,
97071
+ c84dc532: v.value,
97072
+ "20cf4fac": m.value,
97073
+ "868857da": b.value,
97074
+ "00e2e1a9": _.value
97071
97075
  }));
97072
97076
  const n = Tr(), a = e, o = R(() => a.bg && a.type != "default" ? `g-target-s-top-${a.size} g-target-s-${a.type} g-target-s-bg` : a.border && !a.bg ? `g-target-s-top-${a.size} g-target-s-${a.type} g-target-s-border` : `g-target-s-top-${a.size} g-target-s-${a.type}`), i = R(() => a.bg && a.type != "default" ? `g-target-s-bottom-${a.size} g-target-s-${a.type} g-target-s-bg` : a.border && !a.bg ? `g-target-s-bottom-${a.size} g-target-s-${a.type} g-target-s-border` : `g-target-s-bottom-${a.size} g-target-s-${a.type}`), s = R(() => a.bg && a.type != "default" ? `g-target-s-left-${a.size} g-target-s-${a.type} g-target-s-bg` : a.border && !a.bg ? `g-target-s-left-${a.size} g-target-s-${a.type} g-target-s-border` : `g-target-s-left-${a.size} g-target-s-${a.type}`), l = R(() => a.border ? "1px solid" : "0"), u = R(() => a.border ? "var(--border-radius-base)" : ""), c = R(() => a.bg ? n.name && typeof n.name == "string" && n.name.includes("white") ? `var(--color-${a.type}-lights-7)` : `var(--color-${a.type}-lights-6)` : ""), d = R(() => a.bg ? `var(--color-${a.type})` : ""), f = R(() => a.border && a.type != "default" ? `var(--color-${a.type})` : "var(--target-font-color)"), p = R(() => {
97073
97077
  if (a.aspect)
@@ -97141,7 +97145,7 @@ const Wut = /* @__PURE__ */ Ll(Hut), Gut = ["id"], Uut = /* @__PURE__ */ H({
97141
97145
  (k) => {
97142
97146
  S.value = Kt(k);
97143
97147
  const O = ["http://", "https://", void 0];
97144
- k && (!k.path && !k.dsKey && !S.value.dataUrl && !(typeof k == "string" && O.some((V) => k.includes(V))) && S.value.loadStaticData(k), (typeof k == "string" || k.path) && S.value.reload(k.data));
97148
+ k && (!k.path && !k.dsKey && !S.value.dataUrl && !(typeof k == "string" && O.some((V) => k.includes(V))) && S.value.loadStaticData(k), (typeof k == "string" || typeof k == "object") && (k.path || k.data && typeof k.data == "string") && S.value.reload(k.data || k));
97145
97149
  },
97146
97150
  {
97147
97151
  deep: !0
@@ -97177,7 +97181,9 @@ const Wut = /* @__PURE__ */ Ll(Hut), Gut = ["id"], Uut = /* @__PURE__ */ H({
97177
97181
  x.value && x.value.title ? (D(), $("div", {
97178
97182
  key: 0,
97179
97183
  class: "title",
97180
- style: dt({ color: y(n).name == "om-blue" ? "var(--gui-text-color-primary)" : "var(--gui-text-color-regular)" })
97184
+ style: dt({
97185
+ color: y(n).name == "om-blue" ? "var(--gui-text-color-primary)" : "var(--gui-text-color-regular)"
97186
+ })
97181
97187
  }, [
97182
97188
  a.tooltipPlacement == "icon" ? (D(), $("div", jut, [
97183
97189
  tr(De(x.value.title) + " ", 1),
@@ -97274,7 +97280,9 @@ const Wut = /* @__PURE__ */ Ll(Hut), Gut = ["id"], Uut = /* @__PURE__ */ H({
97274
97280
  x.value && x.value.title ? (D(), $("div", {
97275
97281
  key: 0,
97276
97282
  class: "title",
97277
- style: dt({ color: y(n).name == "om-blue" ? "var(--gui-text-color-primary)" : "var(--gui-text-color-regular)" })
97283
+ style: dt({
97284
+ color: y(n).name == "om-blue" ? "var(--gui-text-color-primary)" : "var(--gui-text-color-regular)"
97285
+ })
97278
97286
  }, [
97279
97287
  a.tooltipPlacement == "icon" ? (D(), $("div", ict, [
97280
97288
  tr(De(x.value.title) + " ", 1),
@@ -97330,7 +97338,9 @@ const Wut = /* @__PURE__ */ Ll(Hut), Gut = ["id"], Uut = /* @__PURE__ */ H({
97330
97338
  N("div", cct, [
97331
97339
  N("div", {
97332
97340
  class: "title",
97333
- style: dt({ color: y(n).name == "om-blue" ? "var(--gui-text-color-primary)" : "var(--gui-text-color-regular)" })
97341
+ style: dt({
97342
+ color: y(n).name == "om-blue" ? "var(--gui-text-color-primary)" : "var(--gui-text-color-regular)"
97343
+ })
97334
97344
  }, [
97335
97345
  a.tooltipPlacement == "icon" ? (D(), $("div", dct, [
97336
97346
  tr(De(x.value.title) + " ", 1),
@@ -97391,7 +97401,7 @@ const Wut = /* @__PURE__ */ Ll(Hut), Gut = ["id"], Uut = /* @__PURE__ */ H({
97391
97401
  ], 64);
97392
97402
  };
97393
97403
  }
97394
- }), _ct = /* @__PURE__ */ Qn(bct, [["__scopeId", "data-v-34081212"]]), wct = rr(_ct), Cct = { class: "left" }, xct = { class: "right" }, Sct = { class: "right" }, Ect = { class: "left" }, Tct = { class: "left" }, Act = { class: "right" }, Mct = { class: "right" }, kct = { class: "left" }, Dct = { class: "top" }, Oct = { class: "bottom" }, Ict = H({
97404
+ }), _ct = /* @__PURE__ */ Qn(bct, [["__scopeId", "data-v-04ccfb6d"]]), wct = rr(_ct), Cct = { class: "left" }, xct = { class: "right" }, Sct = { class: "right" }, Ect = { class: "left" }, Tct = { class: "left" }, Act = { class: "right" }, Mct = { class: "right" }, kct = { class: "left" }, Dct = { class: "top" }, Oct = { class: "bottom" }, Ict = H({
97395
97405
  name: "GTargetR"
97396
97406
  }), Rct = /* @__PURE__ */ H({
97397
97407
  ...Ict,
Binary file