mixdashboards 1.1.163 → 1.1.165

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-C0XZKEKW.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-fvf26vWK.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-B9Ml4K34.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 = {
@@ -26,18 +26,18 @@ var F = (s, o, l) => new Promise((W, t) => {
26
26
  }, d = (u) => u.done ? W(u.value) : Promise.resolve(u.value).then(p, n);
27
27
  d((l = l.apply(s, o)).next());
28
28
  });
29
- import { ElEmpty as be, ElButton as fe, ElDescriptions as me, ElDescriptionsItem as ve, ElTooltip as he } from "element-plus/es";
29
+ import { ElEmpty as be, ElButton as me, ElDescriptions as fe, ElDescriptionsItem as ve, ElTooltip as he } from "element-plus/es";
30
30
  import "element-plus/es/components/base/style/css";
31
31
  import "element-plus/es/components/tooltip/style/css";
32
32
  import "element-plus/es/components/descriptions/style/css";
33
33
  import "element-plus/es/components/descriptions-item/style/css";
34
34
  import "element-plus/es/components/empty/style/css";
35
35
  import "element-plus/es/components/button/style/css";
36
- import { defineComponent as _e, ref as f, computed as z, reactive as ye, watch as I, onBeforeUnmount as ge, openBlock as k, createBlock as T, unref as c, createSlots as Se, withCtx as v, createVNode as D, createTextVNode as O, toDisplayString as C, createElementBlock as K, Fragment as ke, renderList as Q, createElementVNode as $, createCommentVNode as De } from "vue";
36
+ import { defineComponent as _e, ref as m, computed as z, reactive as ye, watch as I, onBeforeUnmount as ge, openBlock as k, createBlock as T, unref as c, createSlots as Se, withCtx as v, createVNode as D, createTextVNode as O, toDisplayString as C, createElementBlock as K, Fragment as ke, renderList as Q, createElementVNode as $, createCommentVNode as De } from "vue";
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-fvf26vWK.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-B9Ml4K34.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: {
@@ -45,12 +45,12 @@ const Oe = { class: "dashboard-detail-script" }, Ve = { class: "dashboard-detail
45
45
  },
46
46
  emits: ["close"],
47
47
  setup(s, { emit: o }) {
48
- const l = s, W = o, { t } = xe(), p = f(null), n = f("baseinfo"), d = f(""), u = f(!1), y = f(null), V = f(!1);
48
+ const l = s, W = o, { t } = xe(), p = m(null), n = m("baseinfo"), d = m(""), u = m(!1), y = m(null), V = m(!1);
49
49
  we(y, (i) => {
50
50
  var e, r;
51
51
  V.value = ((r = (e = i[0]) == null ? void 0 : e.contentRect.width) != null ? r : 0) < 720;
52
52
  });
53
- const L = z(() => V.value ? 1 : 2), w = f([]), q = f([]), N = f(!1), E = f(""), a = ye({ field: "uid", value: "", current: 1, pageSize: 20, total: 0 });
53
+ const L = z(() => V.value ? 1 : 2), w = m([]), q = m([]), N = m(!1), E = m(""), a = ye({ field: "uid", value: "", current: 1, pageSize: 20, total: 0 });
54
54
  let j = 0, g = 0;
55
55
  const Z = z(() => ["baseinfo", "objects", "files"].map((i) => ({ key: i, label: t(`dashboard.ui.${i}`) }))), ee = ["uid", "name", "alias", "dashboard_type", "device_type", "created", "last_modified", "created_by", "last_modified_by", "description"], ae = { name: "name", uid: "uid", alias: "alias", dashboard_type: "type", device_type: "device", description: "description", created: "created", last_modified: "modified", created_by: "createdBy", last_modified_by: "modifiedBy" }, P = z(() => {
56
56
  var i, e;
@@ -135,7 +135,7 @@ const Oe = { class: "dashboard-detail-script" }, Ve = { class: "dashboard-detail
135
135
  }
136
136
  return (i, e) => {
137
137
  var A;
138
- const r = fe, x = be, U = ve, h = me, _ = he;
138
+ const r = me, x = be, U = ve, h = fe, _ = he;
139
139
  return k(), T(ze, {
140
140
  "active-tab": n.value,
141
141
  "onUpdate:activeTab": e[6] || (e[6] = (b) => n.value = b),
@@ -216,7 +216,7 @@ const Oe = { class: "dashboard-detail-script" }, Ve = { class: "dashboard-detail
216
216
  }, {
217
217
  default: v(() => [
218
218
  D(r, {
219
- onClick: e[0] || (e[0] = (m) => d.value ? M() : S())
219
+ onClick: e[0] || (e[0] = (f) => d.value ? M() : S())
220
220
  }, {
221
221
  default: v(() => [
222
222
  O(C(c(t)("dashboard.ui.retry")), 1)
@@ -228,13 +228,13 @@ const Oe = { class: "dashboard-detail-script" }, Ve = { class: "dashboard-detail
228
228
  }, 8, ["description"])) : (k(), T(Ne, {
229
229
  key: 1,
230
230
  "search-field": a.field,
231
- "onUpdate:searchField": e[1] || (e[1] = (m) => a.field = m),
231
+ "onUpdate:searchField": e[1] || (e[1] = (f) => a.field = f),
232
232
  "search-value": a.value,
233
- "onUpdate:searchValue": e[2] || (e[2] = (m) => a.value = m),
233
+ "onUpdate:searchValue": e[2] || (e[2] = (f) => a.value = f),
234
234
  current: a.current,
235
- "onUpdate:current": e[3] || (e[3] = (m) => a.current = m),
235
+ "onUpdate:current": e[3] || (e[3] = (f) => a.current = f),
236
236
  "page-size": a.pageSize,
237
- "onUpdate:pageSize": e[4] || (e[4] = (m) => a.pageSize = m),
237
+ "onUpdate:pageSize": e[4] || (e[4] = (f) => a.pageSize = f),
238
238
  rows: w.value,
239
239
  columns: te.value,
240
240
  "search-fields": ie.value,
@@ -244,7 +244,7 @@ const Oe = { class: "dashboard-detail-script" }, Ve = { class: "dashboard-detail
244
244
  onSearch: J,
245
245
  onReset: se,
246
246
  onPageChange: S,
247
- onSizeChange: e[5] || (e[5] = (m) => {
247
+ onSizeChange: e[5] || (e[5] = (f) => {
248
248
  a.current = 1, S();
249
249
  })
250
250
  }, null, 8, ["search-field", "search-value", "current", "page-size", "rows", "columns", "search-fields", "total", "loading", "empty-text"]))
@@ -253,7 +253,7 @@ const Oe = { class: "dashboard-detail-script" }, Ve = { class: "dashboard-detail
253
253
  ]), 1032, ["active-tab", "tabs", "title", "record-name", "loading"]);
254
254
  };
255
255
  }
256
- }), ta = /* @__PURE__ */ Ie(Le, [["__scopeId", "data-v-2f499f17"]]);
256
+ }), ta = /* @__PURE__ */ Ie(Le, [["__scopeId", "data-v-96fad53a"]]);
257
257
  export {
258
258
  ta as default
259
259
  };
@@ -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-DtQ415eV.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-fvf26vWK.js";
46
+ import { s as $e } from "./previewShell-DhrHcNFi.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-B9Ml4K34.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-CsFb-TY9.js")), g = ee(() => import("./DesignPro-BZMdcead.js")), e = ee(() => import("./DesignShow-CPHpoToA.js")), i = F(null), S = F();
109
+ const l = ee(() => import("./DesignApp-C3f2HFsE.js")), g = ee(() => import("./DesignPro-C6WbkwN2.js")), e = ee(() => import("./DesignShow-DYm__gNJ.js")), i = F(null), S = F();
110
110
  let v, y;
111
111
  function s() {
112
112
  v == null || v();
@@ -270,7 +270,7 @@ const Ge = {
270
270
  ], 4)
271
271
  ])) : N("", !0);
272
272
  }
273
- }), Ye = /* @__PURE__ */ ue(Je, [["__scopeId", "data-v-3b5464cd"]]), Ke = { class: "dashboard-editor" }, Qe = { class: "dashboard-editor__fields" }, Xe = { class: "dashboard-editor__script" }, Ze = { class: "dashboard-editor__file" }, ea = ["aria-label"], aa = /* @__PURE__ */ se({
273
+ }), Ye = /* @__PURE__ */ ue(Je, [["__scopeId", "data-v-051d33ea"]]), Ke = { class: "dashboard-editor" }, Qe = { class: "dashboard-editor__fields" }, Xe = { class: "dashboard-editor__script" }, Ze = { class: "dashboard-editor__file" }, ea = ["aria-label"], aa = /* @__PURE__ */ se({
274
274
  __name: "DashboardEditor",
275
275
  props: {
276
276
  mode: {},
@@ -334,7 +334,7 @@ const Ge = {
334
334
  }
335
335
  i.value = !0;
336
336
  try {
337
- const n = yield import("./dashboardShareImport-iooAqeo-.js"), k = D.value === "link" ? U.value.trim() : "", x = D.value === "local" ? I.value : null;
337
+ const n = yield import("./dashboardShareImport-DucWVgXw.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;
@@ -669,7 +669,7 @@ const Ge = {
669
669
  ], 64);
670
670
  };
671
671
  }
672
- }), ka = /* @__PURE__ */ ue(aa, [["__scopeId", "data-v-a5afeffd"]]);
672
+ }), ka = /* @__PURE__ */ ue(aa, [["__scopeId", "data-v-61ce4cc1"]]);
673
673
  export {
674
674
  ka as default
675
675
  };
@@ -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-DtQ415eV.js";
3
- import { _ as D } from "./index-fvf26vWK.js";
2
+ import { s as w } from "./previewShell-DhrHcNFi.js";
3
+ import { _ as D } from "./index-B9Ml4K34.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-BZMdcead.js")), i = r(() => import("./DesignApp-CsFb-TY9.js")), n = r(() => import("./DesignShow-CPHpoToA.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-C6WbkwN2.js")), i = r(() => import("./DesignApp-C3f2HFsE.js")), n = r(() => import("./DesignShow-DYm__gNJ.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
  }, [
@@ -24,7 +24,7 @@ const _ = /* @__PURE__ */ b({
24
24
  }, null, 40, ["script", "mixiot-dashboard-uid", "pro-shell", "mobile-shell"]))
25
25
  ], 2));
26
26
  }
27
- }), B = /* @__PURE__ */ D(_, [["__scopeId", "data-v-855eb5d6"]]);
27
+ }), B = /* @__PURE__ */ D(_, [["__scopeId", "data-v-2fbd87e6"]]);
28
28
  export {
29
29
  B as default
30
30
  };
@@ -0,0 +1,4 @@
1
+ import { A as f } from "./index-B9Ml4K34.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { B as f } from "./index-B9Ml4K34.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { H as f } from "./index-B9Ml4K34.js";
2
+ export {
3
+ f as default
4
+ };