mixdashboards 1.1.167 → 1.1.168

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.
@@ -12,7 +12,7 @@ var ce = (p, o, n) => o in p ? Te(p, o, { enumerable: !0, configurable: !0, writ
12
12
  }, W = (p, o) => qe(p, xe(o));
13
13
  import { defineComponent as ye, inject as ve, ref as V, computed as _, watch as me, openBlock as u, createElementBlock as v, normalizeClass as j, Fragment as A, renderList as B, createBlock as $, unref as i, withCtx as f, createVNode as r, createCommentVNode as S, createElementVNode as c, toDisplayString as b, createTextVNode as G, withKeys as Ee, withModifiers as Ie, nextTick as Me, resolveDynamicComponent as Ke, mergeProps as Oe } from "vue";
14
14
  import { SchemaField as De } from "./vue3-form-element.esm.min-C4i0tGf1.js";
15
- import { o as ke, q as Ue, r as ge, s as Ce, t as Y, w as Le, e as ee, x as Re, y as pe, _ as Je, z as ze } from "./index-_JhYcBS5.js";
15
+ import { o as ke, q as Ue, r as ge, s as Ce, t as Y, w as Le, e as ee, x as Re, y as pe, _ as Je, z as ze } from "./index-Bw9yCq8O.js";
16
16
  import { RefreshLeft as We, RefreshRight as je, Delete as Ge, Close as be, Plus as He, Warning as Qe, Check as fe, Search as Xe } from "@element-plus/icons-vue";
17
17
  import { formItemContextKey as Ye, formContextKey as Ze, ElTooltip as Z, ElButton as P, ElIcon as el, ElTabs as ll, ElTabPane as H, ElInput as _e, ElSelect as he, ElOption as R } from "element-plus";
18
18
  const al = {
@@ -37,7 +37,7 @@ import { defineComponent as _e, ref as m, computed as z, reactive as ye, watch a
37
37
  import { useResizeObserver as we } from "@vueuse/core";
38
38
  import { CopyDocument as je } from "@element-plus/icons-vue";
39
39
  import { ElMessage as X } from "element-plus";
40
- import { u as xe, M as ze, e as Y, f as Ce, h as Ne, g as Ee, p as Ue, n as Be, b as Fe, i as Te, j as $e, k as We, l as Me, c as Re, _ as Ie } from "./index-_JhYcBS5.js";
40
+ import { u as xe, M as ze, e as Y, f as Ce, h as Ne, g as Ee, p as Ue, n as Be, b as Fe, i as Te, j as $e, k as We, l as Me, c as Re, _ as Ie } from "./index-Bw9yCq8O.js";
41
41
  const Oe = { class: "dashboard-detail-script" }, Ve = { class: "dashboard-detail-script__header" }, Le = /* @__PURE__ */ _e({
42
42
  __name: "DashboardDetail",
43
43
  props: {
@@ -43,8 +43,8 @@ import "element-plus/es/components/alert/style/css";
43
43
  import { defineComponent as se, defineAsyncComponent as ee, ref as F, computed as P, onBeforeUnmount as de, openBlock as w, createElementBlock as O, createElementVNode as L, normalizeStyle as Ce, createBlock as V, unref as r, createCommentVNode as N, nextTick as Pe, reactive as Ue, watch as re, Fragment as Y, createVNode as h, withCtx as b, withDirectives as Fe, createTextVNode as W, toDisplayString as M, withModifiers as Ie, renderList as ie } from "vue";
44
44
  import { ElMessage as z } from "element-plus";
45
45
  import { CopyDocument as Re, Upload as Ae } from "@element-plus/icons-vue";
46
- import { s as $e } from "./previewShell-CXMc8U0d.js";
47
- import { v as ae, _ as ue, u as Be, D as Me, a as Le, g as qe, p as ne, d as ze, b as te, c as Oe } from "./index-_JhYcBS5.js";
46
+ import { s as $e } from "./previewShell-Cj8uh1XF.js";
47
+ import { v as ae, _ as ue, u as Be, D as Me, a as Le, g as qe, p as ne, d as ze, b as te, c as Oe } from "./index-Bw9yCq8O.js";
48
48
  const ce = /* @__PURE__ */ new Set(["color", "color-mix", "lab", "lch", "oklab", "oklch", "light-dark"]), Ne = new RegExp(`\\b(?:${[...ce].join("|")})\\(`, "i"), He = [
49
49
  "color",
50
50
  "background-color",
@@ -106,7 +106,7 @@ const Ge = {
106
106
  }, Je = /* @__PURE__ */ se({
107
107
  __name: "DashboardThumbnailRenderer",
108
108
  setup(u, { expose: m }) {
109
- const l = ee(() => import("./DesignApp-C0QXixOo.js")), g = ee(() => import("./DesignPro-ByaWEqW-.js")), e = ee(() => import("./DesignShow-DQxN6Map.js")), i = F(null), S = F();
109
+ const l = ee(() => import("./DesignApp-BufXXwfM.js")), g = ee(() => import("./DesignPro-qsrXHBDN.js")), e = ee(() => import("./DesignShow-C0c2Q6gN.js")), i = F(null), S = F();
110
110
  let v, y;
111
111
  function s() {
112
112
  v == null || v();
@@ -334,7 +334,7 @@ const Ge = {
334
334
  }
335
335
  i.value = !0;
336
336
  try {
337
- const n = yield import("./dashboardShareImport-CqNDBobw.js"), k = D.value === "link" ? U.value.trim() : "", x = D.value === "local" ? I.value : null;
337
+ const n = yield import("./dashboardShareImport-BSLoNVg2.js"), k = D.value === "link" ? U.value.trim() : "", x = D.value === "local" ? I.value : null;
338
338
  if (l.mode !== "create" && D.value === "local" && !x) {
339
339
  z.warning(e("dashboard.import_board.validate.local_file_required"));
340
340
  return;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as b, defineAsyncComponent as r, computed as s, openBlock as a, createElementBlock as u, normalizeClass as v, createBlock as f, resolveDynamicComponent as y } from "vue";
2
- import { s as w } from "./previewShell-CXMc8U0d.js";
3
- import { _ as D } from "./index-_JhYcBS5.js";
2
+ import { s as w } from "./previewShell-Cj8uh1XF.js";
3
+ import { _ as D } from "./index-Bw9yCq8O.js";
4
4
  const _ = /* @__PURE__ */ b({
5
5
  __name: "DashboardPreview",
6
6
  props: {
@@ -8,7 +8,7 @@ const _ = /* @__PURE__ */ b({
8
8
  },
9
9
  emits: ["ready"],
10
10
  setup(e, { emit: c }) {
11
- const t = r(() => import("./DesignPro-ByaWEqW-.js")), i = r(() => import("./DesignApp-C0QXixOo.js")), n = r(() => import("./DesignShow-DQxN6Map.js")), o = e, p = c, d = s(() => ["mobile", "pad"].includes(o.record.device_type)), m = s(() => o.record.device_type === "screen" ? n : o.record.dashboard_type === "pro" ? t : d.value ? i : t), h = s(() => w(o.record));
11
+ const t = r(() => import("./DesignPro-qsrXHBDN.js")), i = r(() => import("./DesignApp-BufXXwfM.js")), n = r(() => import("./DesignShow-C0c2Q6gN.js")), o = e, p = c, d = s(() => ["mobile", "pad"].includes(o.record.device_type)), m = s(() => o.record.device_type === "screen" ? n : o.record.dashboard_type === "pro" ? t : d.value ? i : t), h = s(() => w(o.record));
12
12
  return (x, l) => (a(), u("div", {
13
13
  class: v(["dashboard-preview", { "dashboard-preview--phone": e.record.dashboard_type !== "pro" && d.value }])
14
14
  }, [
@@ -0,0 +1,4 @@
1
+ import { A as f } from "./index-Bw9yCq8O.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { B as f } from "./index-Bw9yCq8O.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { H as f } from "./index-Bw9yCq8O.js";
2
+ export {
3
+ f as default
4
+ };
@@ -26,7 +26,7 @@ var g = (a, r, e) => new Promise((t, i) => {
26
26
  }, c = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(n, o);
27
27
  c((e = e.apply(a, r)).next());
28
28
  });
29
- import { F as na, G as oa } from "./index-_JhYcBS5.js";
29
+ import { F as na, G as oa } from "./index-Bw9yCq8O.js";
30
30
  import { ElLoading as P, ElMessage as p } from "element-plus";
31
31
  function A(a) {
32
32
  return g(this, null, function* () {
@@ -45180,7 +45180,7 @@ const pgt = { class: "mix-body" }, ggt = { class: "table-panel dashboard-list__c
45180
45180
  code: { default: "" }
45181
45181
  },
45182
45182
  setup(n, { expose: e }) {
45183
- const t = p4(() => import("./DashboardEditor-Duv7gSFo.js")), i = p4(() => import("./DashboardDetail-1QP5RnrR.js")), r = p4(() => import("./DashboardPreview-Bnx2Ho04.js")), a = n, { t: o } = hgt();
45183
+ const t = p4(() => import("./DashboardEditor-Cumsb962.js")), i = p4(() => import("./DashboardDetail-Ck0VvJE9.js")), r = p4(() => import("./DashboardPreview-BmMqaHYS.js")), a = n, { t: o } = hgt();
45184
45184
  class s extends Li {
45185
45185
  needsHistoryData() {
45186
45186
  return !1;
@@ -93821,7 +93821,7 @@ const _Pt = { class: "workflow-app-dashboard" }, CPt = /* @__PURE__ */ Ht({
93821
93821
  platform: { default: "mobile" }
93822
93822
  },
93823
93823
  setup(n) {
93824
- const e = p4(() => import("./DesignApp-C0QXixOo.js")), t = p4(() => import("./DesignPro-ByaWEqW-.js")), i = n, { t: r } = ni(), a = $(null), o = $(!1), s = $(!1);
93824
+ const e = p4(() => import("./DesignApp-BufXXwfM.js")), t = p4(() => import("./DesignPro-qsrXHBDN.js")), i = n, { t: r } = ni(), a = $(null), o = $(!1), s = $(!1);
93825
93825
  let l = 0;
93826
93826
  const u = X(() => vPt(i.config, i.data)), c = X(() => JSON.stringify(u.value)), d = X(() => a.value && u.value ? bPt(a.value, u.value) : null);
93827
93827
  function f() {
@@ -100522,16 +100522,19 @@ function IUe(n) {
100522
100522
  function Ch(n, e) {
100523
100523
  return Te(this, null, function* () {
100524
100524
  yield SUe(n, e);
100525
- const t = yield Zt.http(
100525
+ const t = me({}, e);
100526
+ for (const r of ["condition", "where_and", "where_or", "where_in"])
100527
+ Array.isArray(t[r]) && (t[r] = JSON.stringify(t[r]));
100528
+ const i = yield Zt.http(
100526
100529
  "get_data_list",
100527
100530
  me({
100528
100531
  table_name: n,
100529
100532
  order_by: "id",
100530
100533
  order_type: "desc"
100531
- }, e),
100534
+ }, t),
100532
100535
  !0
100533
100536
  );
100534
- return yield jI.rows(n, Pm(t));
100537
+ return yield jI.rows(n, Pm(i));
100535
100538
  });
100536
100539
  }
100537
100540
  function xUe(r, a) {
@@ -105992,7 +105995,7 @@ const gHt = {
105992
105995
  ], 4)) : De("", !0)
105993
105996
  ], 64));
105994
105997
  }
105995
- }), DHt = /* @__PURE__ */ fn(THt, [["__scopeId", "data-v-49876ec5"]]), BHt = p4(() => import("./AlarmConditionField-DfaepmtO.js")), e6e = /* @__PURE__ */ new WeakSet(), MHt = {
105998
+ }), DHt = /* @__PURE__ */ fn(THt, [["__scopeId", "data-v-49876ec5"]]), BHt = p4(() => import("./AlarmConditionField-GMNUtaZY.js")), e6e = /* @__PURE__ */ new WeakSet(), MHt = {
105996
105999
  "el-form": MJe,
105997
106000
  "el-form-item": FM,
105998
106001
  "el-button": Ss,
@@ -228761,7 +228764,7 @@ g3([8, 32946], () => import("./deflate-DZSox_Tz.js").then((n) => n.default));
228761
228764
  g3(32773, () => import("./packbits-AaardaO4.js").then((n) => n.default));
228762
228765
  g3(
228763
228766
  34887,
228764
- () => import("./lerc-DGYEeuHr.js").then((n) => Te(null, null, function* () {
228767
+ () => import("./lerc-D0nBBFxO.js").then((n) => Te(null, null, function* () {
228765
228768
  return yield n.zstd.init(), n;
228766
228769
  })).then((n) => n.default)
228767
228770
  );
@@ -318401,7 +318404,7 @@ const Wxi = ["data-theme", "data-preview-data-mode"], qxi = ["title", "aria-labe
318401
318404
  } : void 0
318402
318405
  ]), 1032, ["script", "uid", "mixiot-dashboard-uid", "enableWebSocket", "shared-worker-url", "worker-diagnostics", "follow-host-theme", "is-product", "agent", "release-embed-agent-on-unmount", "show-fullscreen-control", "reserve-fullscreen-space"]));
318403
318406
  }
318404
- }), eTi = "1.1.167";
318407
+ }), eTi = "1.1.168";
318405
318408
  typeof console != "undefined" && console.info && console.info("[MixDashboards] 版本:", eTi);
318406
318409
  const tTi = [AP, Eb, qA], nTi = function(n) {
318407
318410
  tTi.forEach((e) => {
@@ -1,5 +1,5 @@
1
1
  import { i as sA } from "./pako.esm-BYYgjZjq.js";
2
- import { C as DA, L as nA, E as gA } from "./index-_JhYcBS5.js";
2
+ import { C as DA, L as nA, E as gA } from "./index-Bw9yCq8O.js";
3
3
  import { B as fA } from "./basedecoder-Brwqz2SL.js";
4
4
  var BA = { exports: {} }, iA;
5
5
  function tA() {