mixdashboards 1.1.122 → 1.1.125
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.
|
@@ -10045,8 +10045,8 @@ class ewe {
|
|
|
10045
10045
|
const { conf: t, uid: i } = this.props, { common: a } = t, r = qN(t), o = M5(t);
|
|
10046
10046
|
if (r && !o)
|
|
10047
10047
|
return delete e.object_id, !1;
|
|
10048
|
-
const s = a.useAlias || !1, l = a.multiObject || !1, c = sessionStorage.getItem(_A), u = JSON.parse(c || "{}"), d = l ? e.object_alias : a.object_alias, f = l ? e.object_id : a.object_id || e.object_id;
|
|
10049
|
-
return e.object_id =
|
|
10048
|
+
const s = a.useAlias || !1, l = a.multiObject || !1, c = sessionStorage.getItem(_A), u = JSON.parse(c || "{}"), d = l ? e.object_alias : a.object_alias, f = l ? e.object_id : a.object_id || e.object_id, h = o || (s ? d ? u[d] : "" : f);
|
|
10049
|
+
return e.object_id = h || i, !e.object_id && a.source === Mh && a.disableFixedParams === !0 ? !0 : YM(d_.object, e.object_id) ? !!e.object_id : (delete e.object_id, !1);
|
|
10050
10050
|
}
|
|
10051
10051
|
mosaicBucketKey(e, t) {
|
|
10052
10052
|
var i;
|
|
@@ -74081,6 +74081,12 @@ function cme(n, e) {
|
|
|
74081
74081
|
} catch (a) {
|
|
74082
74082
|
return console.error("[BasePreview] script 解析失败:", a), { sheets: [], type: "" };
|
|
74083
74083
|
}
|
|
74084
|
+
if (n && typeof n == "object")
|
|
74085
|
+
try {
|
|
74086
|
+
n = JSON.parse(JSON.stringify(n));
|
|
74087
|
+
} catch (a) {
|
|
74088
|
+
console.warn("[BasePreview] failed to clone script; using original object:", a);
|
|
74089
|
+
}
|
|
74084
74090
|
if (n && n.dashboard && Array.isArray(n.dashboard) && n.dashboard.length > 0 && (n = n.dashboard[0]), !n || !n.sheets)
|
|
74085
74091
|
return { sheets: [], type: "" };
|
|
74086
74092
|
const t = (a) => Array.isArray(a == null ? void 0 : a.slots) ? a.slots.map((r) => r == null ? void 0 : r.component).filter((r) => r && typeof r == "object") : [], i = (a) => {
|
|
@@ -157935,7 +157941,7 @@ const oBt = {
|
|
|
157935
157941
|
/**
|
|
157936
157942
|
* 上传素材(仅调用 upload_material)
|
|
157937
157943
|
* @param file 用户选择的文件
|
|
157938
|
-
* @param options
|
|
157944
|
+
* @param options 可选素材名称
|
|
157939
157945
|
* @returns 返回上传后的素材 UID
|
|
157940
157946
|
*/
|
|
157941
157947
|
uploadAndCreateMaterial(t) {
|
|
@@ -191579,7 +191585,7 @@ NA([8, 32946], () => import("./deflate-DZSox_Tz.js").then((n) => n.default));
|
|
|
191579
191585
|
NA(32773, () => import("./packbits-AaardaO4.js").then((n) => n.default));
|
|
191580
191586
|
NA(
|
|
191581
191587
|
34887,
|
|
191582
|
-
() => import("./lerc-
|
|
191588
|
+
() => import("./lerc-j6s_GV3y.js").then((n) => Be(null, null, function* () {
|
|
191583
191589
|
return yield n.zstd.init(), n;
|
|
191584
191590
|
})).then((n) => n.default)
|
|
191585
191591
|
);
|
|
@@ -272581,7 +272587,7 @@ const PQn = ["data-theme"], NQn = ["title", "aria-label"], QQn = ["id", "data-th
|
|
|
272581
272587
|
} : void 0
|
|
272582
272588
|
]), 1032, ["script", "uid", "mixiot-dashboard-uid", "enableWebSocket", "follow-host-theme", "is-product", "agent", "release-embed-agent-on-unmount", "show-fullscreen-control"]));
|
|
272583
272589
|
}
|
|
272584
|
-
}), HQn = "1.1.
|
|
272590
|
+
}), HQn = "1.1.125";
|
|
272585
272591
|
typeof console != "undefined" && console.info && console.info("[MixDashboards] 版本:", HQn);
|
|
272586
272592
|
const jQn = [cT, ky, Tg], GQn = function(n) {
|
|
272587
272593
|
jQn.forEach((e) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as sA } from "./pako.esm-BYYgjZjq.js";
|
|
2
|
-
import { g as DA, L as nA, a as gA } from "./index-
|
|
2
|
+
import { g as DA, L as nA, a as gA } from "./index-D-XCkXtF.js";
|
|
3
3
|
import { B as fA } from "./basedecoder-Brwqz2SL.js";
|
|
4
4
|
var BA = { exports: {} }, iA;
|
|
5
5
|
function tA() {
|
package/dist/mixdashboards.js
CHANGED