@devtable/dashboard 14.23.1 → 14.24.0
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/dist/dashboard.es.js +18 -14
- package/dist/dashboard.umd.js +32 -32
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -2425,7 +2425,7 @@ function hm() {
|
|
|
2425
2425
|
} = $.useContext(ts);
|
|
2426
2426
|
return e ? document.getElementById(e) : null;
|
|
2427
2427
|
}
|
|
2428
|
-
const rs = "14.
|
|
2428
|
+
const rs = "14.24.0", pm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2429
2429
|
__proto__: null,
|
|
2430
2430
|
version: rs
|
|
2431
2431
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -35345,19 +35345,23 @@ const lD = [{
|
|
|
35345
35345
|
}, [i]), N(() => {
|
|
35346
35346
|
!a.metricID && t.id && a.selectMetric(t.id);
|
|
35347
35347
|
}, [t.id]);
|
|
35348
|
-
const o = z(() => i.data.map((
|
|
35349
|
-
label:
|
|
35350
|
-
value:
|
|
35351
|
-
description:
|
|
35352
|
-
type:
|
|
35353
|
-
})), [i.data]), l = ae((
|
|
35354
|
-
|
|
35355
|
-
}, [a, t]), {
|
|
35356
|
-
|
|
35357
|
-
|
|
35348
|
+
const o = z(() => i.data.map((h) => ({
|
|
35349
|
+
label: h.name,
|
|
35350
|
+
value: h.id,
|
|
35351
|
+
description: h.description,
|
|
35352
|
+
type: h.type
|
|
35353
|
+
})), [i.data]), l = ae((h, p) => {
|
|
35354
|
+
h && (a.selectMetric(h), t.setID(h), t.setType(p.type));
|
|
35355
|
+
}, [a, t]), s = z(() => {
|
|
35356
|
+
const h = window.localStorage.getItem("ee_site_url") ?? "";
|
|
35357
|
+
let p = `${h}/dashboard/admin/metrics/list`;
|
|
35358
|
+
return t.id && t.type && (p = `${h}/dashboard/admin/metrics/details/${t.type}/${t.id}`), p.replace("//dashboard", "/dashboard");
|
|
35359
|
+
}, [t.id, t.type]), {
|
|
35360
|
+
loading: c,
|
|
35361
|
+
error: d
|
|
35358
35362
|
} = i;
|
|
35359
35363
|
return /* @__PURE__ */ r(ze, { children: /* @__PURE__ */ u(y, { justify: "flex-end", gap: 12, align: "flex-end", children: [
|
|
35360
|
-
|
|
35364
|
+
d ? /* @__PURE__ */ r(re, { label: d, children: /* @__PURE__ */ r(q, { size: "xs", label: "指标", error: !0, styles: {
|
|
35361
35365
|
root: {
|
|
35362
35366
|
flexGrow: 1
|
|
35363
35367
|
}
|
|
@@ -35365,8 +35369,8 @@ const lD = [{
|
|
|
35365
35369
|
root: {
|
|
35366
35370
|
flexGrow: 1
|
|
35367
35371
|
}
|
|
35368
|
-
}, maxDropdownHeight: 500, value: t.id, onChange: l, rightSection:
|
|
35369
|
-
/* @__PURE__ */ r(re, { label: "跳转到指标明细页查看详情。", disabled:
|
|
35372
|
+
}, maxDropdownHeight: 500, value: t.id, onChange: l, rightSection: c ? /* @__PURE__ */ r(Da, { size: "xs" }) : null }),
|
|
35373
|
+
/* @__PURE__ */ r(re, { label: "跳转到指标明细页查看详情。", disabled: c, children: /* @__PURE__ */ r(Qn, { size: "md", variant: "subtle", mb: 2, href: s, target: "_blank", underline: "never", children: /* @__PURE__ */ r(tD, { width: 14, height: 14 }) }) })
|
|
35370
35374
|
] }) });
|
|
35371
35375
|
}), OD = D(({
|
|
35372
35376
|
queryModel: e
|