@das-fed/ui 7.0.0 → 7.0.1
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/package.json +5 -5
- package/packages/business-components/ai-panel/{index-BUVM9wHT.js → index-ClgczXAD.js} +1 -1
- package/packages/business-components/ai-panel/index-ClgczXAD.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-BXukDT-W.js → index-SfzdqhGf.js} +1113 -1109
- package/packages/business-components/ai-panel/index-SfzdqhGf.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/ai-panel/src/dasAI/index.vue.d.ts +1 -0
- package/packages/business-components/ai-panel/style.css +1 -1
- package/packages/business-components/ai-panel/style.css.gz +0 -0
- package/packages/business-components/device-panel/index.js +10 -10
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/layout-breadcrumb/index.js +60 -57
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-BUVM9wHT.js.gz +0 -0
- package/packages/business-components/ai-panel/index-BXukDT-W.js.gz +0 -0
|
Binary file
|
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/layout-breadcrumb/style.css';
|
|
2
|
-
import { ref as S, computed as
|
|
2
|
+
import { ref as S, computed as T, watch as L, nextTick as R, defineComponent as q, createElementBlock as N, createCommentVNode as U, unref as y, openBlock as x, createVNode as D } from "vue";
|
|
3
3
|
import { withInstall as P } from "@das-fed/utils/with-install/index";
|
|
4
4
|
import { DasBreadCrumb as O } from "@das-fed/ui/packages/components/breadcrumb/index";
|
|
5
5
|
import { useRouter as $, useRoute as j } from "vue-router";
|
|
6
|
-
import { flatTree as
|
|
7
|
-
import { getSubApps as
|
|
6
|
+
import { flatTree as I } from "@das-fed/utils/common-tools";
|
|
7
|
+
import { getSubApps as _ } from "@das-fed/utils/common-info";
|
|
8
8
|
import { setThemeRule as E } from "@das-fed/web/packages/theme/index";
|
|
9
|
-
const J = (
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
const J = (s, f) => {
|
|
10
|
+
const a = S([]), l = T(() => [...a.value, ...s.data || []]), m = (e) => new Promise((n) => {
|
|
11
|
+
const { app: o = "", menu: d = "" } = e || {};
|
|
12
|
+
if (!o) return n(!1);
|
|
13
|
+
const c = () => {
|
|
14
|
+
const t = _() ?? {}, r = t.currentSubAppCode, i = t.currentSubApp.currentMenuCode;
|
|
15
|
+
if (o === r && d === i) return n(!0);
|
|
16
|
+
setTimeout(() => c(), 100);
|
|
16
17
|
};
|
|
17
|
-
|
|
18
|
-
}), h = async (e,
|
|
19
|
-
var
|
|
20
|
-
await
|
|
21
|
-
const o = [], d =
|
|
22
|
-
if (!
|
|
18
|
+
c();
|
|
19
|
+
}), h = async (e, n) => {
|
|
20
|
+
var i, u;
|
|
21
|
+
await m(n);
|
|
22
|
+
const o = [], d = n.menu || "", c = ((u = (i = _()) == null ? void 0 : i.currentSubApp) == null ? void 0 : u.menus) ?? [];
|
|
23
|
+
if (!c || !c.length) return;
|
|
23
24
|
let t = null;
|
|
24
|
-
const r =
|
|
25
|
-
if (d ? t = r.find((
|
|
26
|
-
const
|
|
27
|
-
if (
|
|
28
|
-
const
|
|
29
|
-
o.push({ name: (
|
|
25
|
+
const r = I(c);
|
|
26
|
+
if (d ? t = r.find((p) => p.code === d) : t = r.find((p) => p.routeUrl && p.routeUrl === e), t) {
|
|
27
|
+
const p = t.code.split(".");
|
|
28
|
+
if (p.length === 3) {
|
|
29
|
+
const B = p.slice(0, 2).join("."), k = r.find((v) => v.code === B || v.originalCode === B);
|
|
30
|
+
o.push({ name: (k == null ? void 0 : k.name) ?? "", isMenu: !0, disabled: !0 });
|
|
30
31
|
}
|
|
31
32
|
const M = {
|
|
32
33
|
name: (t == null ? void 0 : t.name) ?? "",
|
|
@@ -35,69 +36,71 @@ const J = (a, l) => {
|
|
|
35
36
|
};
|
|
36
37
|
o.push(M);
|
|
37
38
|
}
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
e.disabled ||
|
|
41
|
-
},
|
|
39
|
+
a.value = o;
|
|
40
|
+
}, g = (e) => {
|
|
41
|
+
e.disabled || f("click-item", e);
|
|
42
|
+
}, C = $(), b = j();
|
|
42
43
|
L(
|
|
43
|
-
() =>
|
|
44
|
+
() => C.currentRoute.value,
|
|
44
45
|
(e) => {
|
|
45
|
-
const
|
|
46
|
-
|
|
46
|
+
const n = (e == null ? void 0 : e.path) ?? "", o = (e == null ? void 0 : e.query) ?? {};
|
|
47
|
+
setTimeout(() => {
|
|
48
|
+
h(n, o);
|
|
49
|
+
}, 200);
|
|
47
50
|
}
|
|
48
|
-
), h(
|
|
49
|
-
const
|
|
51
|
+
), h(b.path, b.query);
|
|
52
|
+
const A = S(!1);
|
|
50
53
|
return L(
|
|
51
|
-
() =>
|
|
54
|
+
() => s.data,
|
|
52
55
|
() => {
|
|
53
|
-
|
|
54
|
-
|
|
56
|
+
R(() => {
|
|
57
|
+
m().then(() => {
|
|
55
58
|
var t;
|
|
56
|
-
const e =
|
|
57
|
-
let o =
|
|
59
|
+
const e = _(), n = b.query.app || e.currentSubApp.code || "";
|
|
60
|
+
let o = b.query.menu || "";
|
|
58
61
|
if (!o) {
|
|
59
|
-
const r = ((t = e.currentSubApp) == null ? void 0 : t.menus) ?? [],
|
|
60
|
-
(
|
|
62
|
+
const r = ((t = e.currentSubApp) == null ? void 0 : t.menus) ?? [], i = I(r).find(
|
|
63
|
+
(u) => `/${(u == null ? void 0 : u.applicationPath) ?? ""}${(u == null ? void 0 : u.routeUrl) ?? ""}`.replace(/\/\//g, "/") === location.pathname
|
|
61
64
|
);
|
|
62
|
-
|
|
65
|
+
i && (o = i.code);
|
|
63
66
|
}
|
|
64
|
-
const d = JSON.parse(sessionStorage.getItem("breadcrumb") || "{}")[
|
|
65
|
-
for (let r in d) d[r] &&
|
|
66
|
-
|
|
67
|
+
const d = JSON.parse(sessionStorage.getItem("breadcrumb") || "{}")[n], c = [];
|
|
68
|
+
for (let r in d) d[r] && c.push(r);
|
|
69
|
+
A.value = !!c.find((r) => o === r);
|
|
67
70
|
});
|
|
68
71
|
});
|
|
69
72
|
},
|
|
70
73
|
{ deep: !0, immediate: !0 }
|
|
71
74
|
), {
|
|
72
|
-
isShow:
|
|
73
|
-
breadcrumbList:
|
|
74
|
-
clickItem:
|
|
75
|
+
isShow: A,
|
|
76
|
+
breadcrumbList: l,
|
|
77
|
+
clickItem: g
|
|
75
78
|
};
|
|
76
79
|
}, z = {
|
|
77
80
|
key: 0,
|
|
78
81
|
class: "layout-breadcrumb"
|
|
79
82
|
}, F = {
|
|
80
83
|
name: "LayoutBreadCrumb"
|
|
81
|
-
}, G = /* @__PURE__ */
|
|
84
|
+
}, G = /* @__PURE__ */ q({
|
|
82
85
|
...F,
|
|
83
86
|
props: {
|
|
84
87
|
data: { default: () => [] }
|
|
85
88
|
},
|
|
86
89
|
emits: ["click-item"],
|
|
87
|
-
setup(
|
|
88
|
-
const
|
|
89
|
-
return (
|
|
90
|
-
D(
|
|
91
|
-
data:
|
|
92
|
-
onClickItem: g
|
|
90
|
+
setup(s, { emit: f }) {
|
|
91
|
+
const a = s, l = f, { isShow: m, breadcrumbList: h, clickItem: g } = J(a, l);
|
|
92
|
+
return (C, b) => y(m) && C.data && C.data.length ? (x(), N("div", z, [
|
|
93
|
+
D(y(O), {
|
|
94
|
+
data: y(h),
|
|
95
|
+
onClickItem: y(g)
|
|
93
96
|
}, null, 8, ["data", "onClickItem"])
|
|
94
97
|
])) : U("v-if", !0);
|
|
95
98
|
}
|
|
96
|
-
}), H = (
|
|
97
|
-
const
|
|
98
|
-
for (const [
|
|
99
|
-
|
|
100
|
-
return
|
|
99
|
+
}), H = (s, f) => {
|
|
100
|
+
const a = s.__vccOpts || s;
|
|
101
|
+
for (const [l, m] of f)
|
|
102
|
+
a[l] = m;
|
|
103
|
+
return a;
|
|
101
104
|
}, K = /* @__PURE__ */ H(G, [["__scopeId", "data-v-878cd70a"]]), Q = {
|
|
102
105
|
"--das-layout-micro-container-bg-color": "#e2e7ef",
|
|
103
106
|
"--das-layout-breadcrumb-bg-color": "#ffffff"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|