mixdashboards 1.1.47 → 1.1.48

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.
@@ -134122,6 +134122,7 @@ const Iht = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vi
134122
134122
  label: "component.customized.textAlign"
134123
134123
  },
134124
134124
  isBold: !1,
134125
+ autoWrap: { value: !1, type: "checkbox", label: "自动换行" },
134125
134126
  isJump: !1,
134126
134127
  jumpType: {
134127
134128
  value: "url",
@@ -134162,7 +134163,7 @@ const Iht = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vi
134162
134163
  };
134163
134164
  class i extends Gn {
134164
134165
  extractStyles() {
134165
- var d, f, h, p, v, m, g, y, b, _, S, x, w, A, T, C, E, M, I, P, R, D, k, F, z;
134166
+ var d, f, h, p, v, m, g, y, b, _, S, x, w, A, T, C, E, M, I, P, R, D, k, F, z, B, W, H;
134166
134167
  const { options: u } = this.props.conf;
134167
134168
  return {
134168
134169
  bgColor: (h = (f = (d = u == null ? void 0 : u.bgColor) == null ? void 0 : d.value) != null ? f : u == null ? void 0 : u.bgColor) != null ? h : "#fff",
@@ -134172,8 +134173,9 @@ const Iht = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vi
134172
134173
  letterSpacing: (T = (A = (w = u == null ? void 0 : u.letterSpacing) == null ? void 0 : w.value) != null ? A : u == null ? void 0 : u.letterSpacing) != null ? T : 2,
134173
134174
  textAlign: (E = (C = u == null ? void 0 : u.textAlign) == null ? void 0 : C.value) != null ? E : "center",
134174
134175
  isBold: (P = (I = (M = u == null ? void 0 : u.isBold) == null ? void 0 : M.value) != null ? I : u == null ? void 0 : u.isBold) != null ? P : !1,
134175
- bgImg: (D = (R = u == null ? void 0 : u.bgImg) == null ? void 0 : R.value) != null ? D : "",
134176
- isJump: (z = (F = (k = u == null ? void 0 : u.isJump) == null ? void 0 : k.value) != null ? F : u == null ? void 0 : u.isJump) != null ? z : !1
134176
+ autoWrap: (k = (D = (R = u == null ? void 0 : u.autoWrap) == null ? void 0 : R.value) != null ? D : u == null ? void 0 : u.autoWrap) != null ? k : !1,
134177
+ bgImg: (z = (F = u == null ? void 0 : u.bgImg) == null ? void 0 : F.value) != null ? z : "",
134178
+ isJump: (H = (W = (B = u == null ? void 0 : u.isJump) == null ? void 0 : B.value) != null ? W : u == null ? void 0 : u.isJump) != null ? H : !1
134177
134179
  };
134178
134180
  }
134179
134181
  }
@@ -134194,7 +134196,7 @@ const Iht = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vi
134194
134196
  var d, f, h;
134195
134197
  return V(), Z("div", lpt, [
134196
134198
  N("div", {
134197
- class: "textbox-wrap",
134199
+ class: Jt(["textbox-wrap", { "is-auto-wrap": J(a).autoWrap }]),
134198
134200
  style: Ue({
134199
134201
  backgroundColor: J(a).bgColor,
134200
134202
  color: J(a).textColor,
@@ -134202,17 +134204,22 @@ const Iht = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vi
134202
134204
  fontSize: `${J(a).textSize}px`,
134203
134205
  backgroundImage: J(a).bgImg ? `url(${o(J(a).bgImg)})` : "",
134204
134206
  justifyContent: t[J(a).textAlign] || "center",
134207
+ textAlign: J(a).autoWrap && J(a).textAlign === "left" ? "justify" : J(a).textAlign || "center",
134208
+ textAlignLast: J(a).autoWrap && J(a).textAlign === "left" ? "left" : "auto",
134205
134209
  fontWeight: J(a).isBold ? "600" : "400",
134206
134210
  letterSpacing: `${J(a).letterSpacing}px`,
134211
+ whiteSpace: J(a).autoWrap ? "normal" : "nowrap",
134212
+ overflowWrap: J(a).autoWrap ? "break-word" : "normal",
134213
+ wordBreak: J(a).autoWrap ? "break-word" : "normal",
134207
134214
  cursor: J(a).isJump ? "pointer" : "default"
134208
134215
  }),
134209
134216
  onClick: l
134210
- }, ue(((h = (f = (d = n.conf) == null ? void 0 : d.options) == null ? void 0 : f.name) == null ? void 0 : h.value) || ""), 5),
134217
+ }, ue(((h = (f = (d = n.conf) == null ? void 0 : d.options) == null ? void 0 : f.name) == null ? void 0 : h.value) || ""), 7),
134211
134218
  tn(c.$slots, "default", {}, void 0, !0)
134212
134219
  ]);
134213
134220
  };
134214
134221
  }
134215
- })), hpt = /* @__PURE__ */ Gt(fpt, [["__scopeId", "data-v-be00e8dc"]]), ppt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
134222
+ })), hpt = /* @__PURE__ */ Gt(fpt, [["__scopeId", "data-v-22f37576"]]), ppt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
134216
134223
  __proto__: null,
134217
134224
  default: hpt
134218
134225
  }, Symbol.toStringTag, { value: "Module" })), u5 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='16px'%20viewBox='0%200%2017%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e设置%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化'%20transform='translate(-428.000000,%20-1211.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cg%20id='编组-35'%20transform='translate(428.226222,%201211.735632)'%3e%3cpath%20d='M13.9770115,0%20C15.0942772,0%2016,0.905722805%2016,2.02298851%20L16,2.02298851%20L16,12.5057471%20C16,13.6230128%2015.0942772,14.5287356%2013.9770115,14.5287356%20L13.9770115,14.5287356%20L2.02298851,14.5287356%20C0.905722805,14.5287356%200,13.6230128%200,12.5057471%20L0,12.5057471%20L0,2.02298851%20C0,0.905722805%200.905722805,0%202.02298851,0%20L2.02298851,0%20Z%20M13.9770115,1.28735632%20L2.02298851,1.28735632%20C1.61671007,1.28735632%201.28735632,1.61671007%201.28735632,2.02298851%20L1.28735632,2.02298851%20L1.28735632,12.5057471%20C1.28735632,12.9120256%201.61671007,13.2413793%202.02298851,13.2413793%20L2.02298851,13.2413793%20L13.9770115,13.2413793%20C14.3832899,13.2413793%2014.7126437,12.9120256%2014.7126437,12.5057471%20L14.7126437,12.5057471%20L14.7126437,2.02298851%20C14.7126437,1.61671007%2014.3832899,1.28735632%2013.9770115,1.28735632%20L13.9770115,1.28735632%20Z%20M12.2612343,8.64367816%20C12.6167279,8.64367816%2012.9049125,8.93186269%2012.9049125,9.28735632%20C12.9049125,9.61322548%2012.6627574,9.8825363%2012.3485776,9.92515846%20L12.2612343,9.93103448%20L3.5862069,9.93103448%20C3.23071326,9.93103448%202.94252874,9.64284995%202.94252874,9.28735632%20C2.94252874,8.96148716%203.18468379,8.69217634%203.49886358,8.64955418%20L3.5862069,8.64367816%20L12.2612343,8.64367816%20Z%20M12.4137931,4.65837915%20C12.7692867,4.65837915%2013.0574713,4.94656368%2013.0574713,5.30205731%20C13.0574713,5.62792647%2012.8153162,5.89723729%2012.5011364,5.93985945%20L12.4137931,5.94573547%20L6.52873563,5.94573547%20C6.173242,5.94573547%205.88505747,5.65755094%205.88505747,5.30205731%20C5.88505747,4.97618815%206.12721253,4.70687733%206.44139232,4.66425517%20L6.52873563,4.65837915%20L12.4137931,4.65837915%20Z%20M4.32183908,4.65837915%20C4.67733271,4.65837915%204.96551724,4.94656368%204.96551724,5.30205731%20C4.96551724,5.62792647%204.72336219,5.89723729%204.40918239,5.93985945%20L4.32183908,5.94573547%20L3.5862069,5.94573547%20C3.23071326,5.94573547%202.94252874,5.65755094%202.94252874,5.30205731%20C2.94252874,4.97618815%203.18468379,4.70687733%203.49886358,4.66425517%20L3.5862069,4.65837915%20L4.32183908,4.65837915%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", d5 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='16px'%20viewBox='0%200%2017%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e设置%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-433.000000,%20-1211.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cg%20id='编组-35'%20transform='translate(433.664368,%201211.735632)'%3e%3cpath%20d='M13.9770115,0%20C15.0942772,0%2016,0.905722805%2016,2.02298851%20L16,2.02298851%20L16,12.5057471%20C16,13.6230128%2015.0942772,14.5287356%2013.9770115,14.5287356%20L13.9770115,14.5287356%20L2.02298851,14.5287356%20C0.905722805,14.5287356%200,13.6230128%200,12.5057471%20L0,12.5057471%20L0,2.02298851%20C0,0.905722805%200.905722805,0%202.02298851,0%20L2.02298851,0%20Z%20M13.9770115,1.28735632%20L2.02298851,1.28735632%20C1.61671007,1.28735632%201.28735632,1.61671007%201.28735632,2.02298851%20L1.28735632,2.02298851%20L1.28735632,12.5057471%20C1.28735632,12.9120256%201.61671007,13.2413793%202.02298851,13.2413793%20L2.02298851,13.2413793%20L13.9770115,13.2413793%20C14.3832899,13.2413793%2014.7126437,12.9120256%2014.7126437,12.5057471%20L14.7126437,12.5057471%20L14.7126437,2.02298851%20C14.7126437,1.61671007%2014.3832899,1.28735632%2013.9770115,1.28735632%20L13.9770115,1.28735632%20Z%20M12.2612343,8.64367816%20C12.6167279,8.64367816%2012.9049125,8.93186269%2012.9049125,9.28735632%20C12.9049125,9.61322548%2012.6627574,9.8825363%2012.3485776,9.92515846%20L12.2612343,9.93103448%20L3.5862069,9.93103448%20C3.23071326,9.93103448%202.94252874,9.64284995%202.94252874,9.28735632%20C2.94252874,8.96148716%203.18468379,8.69217634%203.49886358,8.64955418%20L3.5862069,8.64367816%20L12.2612343,8.64367816%20Z%20M12.4137931,4.65837915%20C12.7692867,4.65837915%2013.0574713,4.94656368%2013.0574713,5.30205731%20C13.0574713,5.62792647%2012.8153162,5.89723729%2012.5011364,5.93985945%20L12.4137931,5.94573547%20L6.52873563,5.94573547%20C6.173242,5.94573547%205.88505747,5.65755094%205.88505747,5.30205731%20C5.88505747,4.97618815%206.12721253,4.70687733%206.44139232,4.66425517%20L6.52873563,4.65837915%20L12.4137931,4.65837915%20Z%20M4.32183908,4.65837915%20C4.67733271,4.65837915%204.96551724,4.94656368%204.96551724,5.30205731%20C4.96551724,5.62792647%204.72336219,5.89723729%204.40918239,5.93985945%20L4.32183908,5.94573547%20L3.5862069,5.94573547%20C3.23071326,5.94573547%202.94252874,5.65755094%202.94252874,5.30205731%20C2.94252874,4.97618815%203.18468379,4.70687733%203.49886358,4.66425517%20L3.5862069,4.65837915%20L4.32183908,4.65837915%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", vpt = {
@@ -156550,7 +156557,7 @@ jh([8, 32946], () => import("./deflate-Dp_sL4b4.js").then((n) => n.default));
156550
156557
  jh(32773, () => import("./packbits-AaardaO4.js").then((n) => n.default));
156551
156558
  jh(
156552
156559
  34887,
156553
- () => import("./lerc-C762J9rd.js").then((n) => Xe(null, null, function* () {
156560
+ () => import("./lerc-BhYMK9_B.js").then((n) => Xe(null, null, function* () {
156554
156561
  return yield n.zstd.init(), n;
156555
156562
  })).then((n) => n.default)
156556
156563
  );
@@ -228336,7 +228343,7 @@ const ndn = ["data-theme"], idn = ["id", "data-theme"], rdn = ["src"], adn = ["d
228336
228343
  } : void 0
228337
228344
  ]), 1032, ["script", "uid", "mixiot-dashboard-uid", "enableWebSocket", "follow-host-theme", "is-product", "agent", "release-embed-agent-on-unmount"]));
228338
228345
  }
228339
- }), ldn = "1.1.47";
228346
+ }), ldn = "1.1.48";
228340
228347
  typeof console != "undefined" && console.info && console.info("[MixDashboards] 版本:", ldn);
228341
228348
  const cdn = [YA, t5, S3], udn = function(n) {
228342
228349
  cdn.forEach((e) => {