@das-fed/ui 6.4.0-dev.90 → 6.4.0-dev.92
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/app-container/index.js +120 -95
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/device-panel/index.js +5733 -5725
- 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 +77 -66
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/payment/index.d.ts +15 -0
- package/packages/business-components/payment/index.js +76 -75
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/payment/style.css +1 -1
- package/packages/business-components/payment/type.d.ts +2 -0
- package/packages/business-components/process-form/index.js +561 -552
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/src/hooks/useForm.d.ts +3 -1
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/components/input-dialog-select/index.js +126 -108
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/input-number/index.js +4 -4
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/progress/index.js +49 -44
- package/packages/components/progress/index.js.gz +0 -0
- package/packages/components/progress/style.css +1 -1
- package/packages/components/progress/style.css.gz +0 -0
- package/packages/components/radio-tabs/index.js +1 -1
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/radio-tabs/style.css +1 -1
- package/packages/components/radio-tabs/style.css.gz +0 -0
- package/packages/components/table/index.js +1 -1
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/text-tooltip/index.js +704 -697
- package/packages/components/text-tooltip/index.js.gz +0 -0
|
Binary file
|
|
@@ -1,101 +1,112 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/layout-breadcrumb/style.css';
|
|
2
|
-
import { ref as
|
|
3
|
-
import { withInstall as
|
|
2
|
+
import { ref as B, computed as q, watch as A, nextTick as I, defineComponent as M, unref as h, openBlock as N, createElementBlock as U, createVNode as x, createCommentVNode as D } from "vue";
|
|
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
|
-
import { useRouter as
|
|
6
|
-
import { flatTree as
|
|
7
|
-
import { getSubApps as
|
|
8
|
-
import { setThemeRule as
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
var
|
|
5
|
+
import { useRouter as $, useRoute as j } from "vue-router";
|
|
6
|
+
import { flatTree as R } from "@das-fed/utils/common-tools";
|
|
7
|
+
import { getSubApps as _ } from "@das-fed/utils/common-info";
|
|
8
|
+
import { setThemeRule as E } from "@das-fed/web/packages/theme/index";
|
|
9
|
+
const J = (u, m) => {
|
|
10
|
+
const s = B([]), p = q(() => [...s.value, ...u.data || []]), l = async (e, a) => {
|
|
11
|
+
var f, c;
|
|
12
12
|
await I();
|
|
13
|
-
const
|
|
14
|
-
if (!
|
|
15
|
-
let
|
|
16
|
-
const
|
|
17
|
-
if (
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
20
|
-
const
|
|
21
|
-
|
|
13
|
+
const o = [], n = a.menu || "", i = ((c = (f = _()) == null ? void 0 : f.currentSubApp) == null ? void 0 : c.menus) ?? [];
|
|
14
|
+
if (!i || !i.length) return;
|
|
15
|
+
let t = null;
|
|
16
|
+
const r = R(i);
|
|
17
|
+
if (n ? t = r.find((d) => d.code === n) : t = r.find((d) => d.routeUrl && d.routeUrl === e), t) {
|
|
18
|
+
const d = t.code.split(".");
|
|
19
|
+
if (d.length === 3) {
|
|
20
|
+
const L = d.slice(0, 2).join("."), C = r.find((v) => v.code === L || v.originalCode === L);
|
|
21
|
+
o.push({ name: (C == null ? void 0 : C.name) ?? "", isMenu: !0, disabled: !0 });
|
|
22
22
|
}
|
|
23
|
-
const
|
|
24
|
-
name: (
|
|
25
|
-
routerPath: (
|
|
23
|
+
const T = {
|
|
24
|
+
name: (t == null ? void 0 : t.name) ?? "",
|
|
25
|
+
routerPath: (t == null ? void 0 : t.routeUrl) ?? "",
|
|
26
26
|
isMenu: !0
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
o.push(T);
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
}, y = (
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
() =>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
s.value = o;
|
|
31
|
+
}, y = (e) => {
|
|
32
|
+
e.disabled || m("click-item", e);
|
|
33
|
+
}, g = (e) => {
|
|
34
|
+
const { app: a = "" } = e;
|
|
35
|
+
return new Promise((o) => {
|
|
36
|
+
const n = () => {
|
|
37
|
+
if (a === _().currentSubAppCode) return o();
|
|
38
|
+
setTimeout(() => n(), 50);
|
|
39
|
+
};
|
|
40
|
+
n();
|
|
41
|
+
});
|
|
42
|
+
}, b = $(), k = j();
|
|
43
|
+
A(
|
|
44
|
+
() => b.currentRoute.value,
|
|
45
|
+
(e) => {
|
|
46
|
+
const a = (e == null ? void 0 : e.path) ?? "", o = (e == null ? void 0 : e.query) ?? {};
|
|
47
|
+
g(o).then(() => {
|
|
48
|
+
l(a, o);
|
|
49
|
+
});
|
|
39
50
|
},
|
|
40
51
|
{ immediate: !0 }
|
|
41
52
|
);
|
|
42
|
-
const
|
|
43
|
-
return
|
|
44
|
-
() =>
|
|
53
|
+
const S = B(!1);
|
|
54
|
+
return A(
|
|
55
|
+
() => u.data,
|
|
45
56
|
() => {
|
|
46
57
|
I(() => {
|
|
47
|
-
var
|
|
48
|
-
const
|
|
49
|
-
let
|
|
50
|
-
if (!
|
|
51
|
-
const
|
|
52
|
-
(
|
|
58
|
+
var t;
|
|
59
|
+
const e = _(), a = k.query.app || e.currentSubApp.code || "";
|
|
60
|
+
let o = k.query.menu || "";
|
|
61
|
+
if (!o) {
|
|
62
|
+
const r = ((t = e.currentSubApp) == null ? void 0 : t.menus) ?? [], f = R(r).find(
|
|
63
|
+
(c) => `/${(c == null ? void 0 : c.applicationPath) ?? ""}${(c == null ? void 0 : c.routeUrl) ?? ""}`.replace(/\/\//g, "/") === location.pathname
|
|
53
64
|
);
|
|
54
|
-
|
|
65
|
+
f && (o = f.code);
|
|
55
66
|
}
|
|
56
|
-
const
|
|
57
|
-
for (let
|
|
58
|
-
|
|
67
|
+
const n = JSON.parse(sessionStorage.getItem("breadcrumb") || "{}")[a], i = [];
|
|
68
|
+
for (let r in n) n[r] && i.push(r);
|
|
69
|
+
S.value = !!i.find((r) => o === r);
|
|
59
70
|
});
|
|
60
71
|
},
|
|
61
72
|
{ deep: !0, immediate: !0 }
|
|
62
73
|
), {
|
|
63
|
-
isShow:
|
|
64
|
-
breadcrumbList:
|
|
74
|
+
isShow: S,
|
|
75
|
+
breadcrumbList: p,
|
|
65
76
|
clickItem: y
|
|
66
77
|
};
|
|
67
|
-
},
|
|
78
|
+
}, z = {
|
|
68
79
|
key: 0,
|
|
69
80
|
class: "layout-breadcrumb"
|
|
70
|
-
},
|
|
81
|
+
}, F = {
|
|
71
82
|
name: "LayoutBreadCrumb"
|
|
72
|
-
},
|
|
73
|
-
...
|
|
83
|
+
}, G = /* @__PURE__ */ M({
|
|
84
|
+
...F,
|
|
74
85
|
props: {
|
|
75
86
|
data: { default: () => [] }
|
|
76
87
|
},
|
|
77
88
|
emits: ["click-item"],
|
|
78
|
-
setup(
|
|
79
|
-
const
|
|
80
|
-
return (
|
|
81
|
-
|
|
89
|
+
setup(u, { emit: m }) {
|
|
90
|
+
const s = u, p = m, { isShow: l, breadcrumbList: y, clickItem: g } = J(s, p);
|
|
91
|
+
return (b, k) => h(l) && b.data && b.data.length ? (N(), U("div", z, [
|
|
92
|
+
x(h(O), {
|
|
82
93
|
data: h(y),
|
|
83
|
-
onClickItem: h(
|
|
94
|
+
onClickItem: h(g)
|
|
84
95
|
}, null, 8, ["data", "onClickItem"])
|
|
85
|
-
])) :
|
|
96
|
+
])) : D("", !0);
|
|
86
97
|
}
|
|
87
|
-
}),
|
|
88
|
-
const
|
|
89
|
-
for (const [
|
|
90
|
-
|
|
91
|
-
return
|
|
92
|
-
},
|
|
98
|
+
}), H = (u, m) => {
|
|
99
|
+
const s = u.__vccOpts || u;
|
|
100
|
+
for (const [p, l] of m)
|
|
101
|
+
s[p] = l;
|
|
102
|
+
return s;
|
|
103
|
+
}, K = /* @__PURE__ */ H(G, [["__scopeId", "data-v-878cd70a"]]), Q = {
|
|
93
104
|
"--das-layout-micro-container-bg-color": "#e2e7ef",
|
|
94
105
|
"--das-layout-breadcrumb-bg-color": "#ffffff"
|
|
95
106
|
};
|
|
96
|
-
|
|
97
|
-
const
|
|
107
|
+
E(Q);
|
|
108
|
+
const te = P(K), oe = () => B(null);
|
|
98
109
|
export {
|
|
99
|
-
|
|
100
|
-
|
|
110
|
+
te as DasLayoutBreadcrumb,
|
|
111
|
+
oe as DasLayoutBreadcrumbRef
|
|
101
112
|
};
|
|
Binary file
|
|
@@ -26,6 +26,9 @@ declare const DasPaymentRef: () => import("vue").Ref<import("vue").CreateCompone
|
|
|
26
26
|
amount: {
|
|
27
27
|
type: import("vue").PropType<number>;
|
|
28
28
|
};
|
|
29
|
+
provider: {
|
|
30
|
+
type: import("vue").PropType<ProviderMenu>;
|
|
31
|
+
};
|
|
29
32
|
}>> & {
|
|
30
33
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
31
34
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -57,6 +60,9 @@ declare const DasPaymentRef: () => import("vue").Ref<import("vue").CreateCompone
|
|
|
57
60
|
amount: {
|
|
58
61
|
type: import("vue").PropType<number>;
|
|
59
62
|
};
|
|
63
|
+
provider: {
|
|
64
|
+
type: import("vue").PropType<ProviderMenu>;
|
|
65
|
+
};
|
|
60
66
|
}>> & {
|
|
61
67
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
62
68
|
}, {}, true, {}, {}, {
|
|
@@ -93,6 +99,9 @@ declare const DasPaymentRef: () => import("vue").Ref<import("vue").CreateCompone
|
|
|
93
99
|
amount: {
|
|
94
100
|
type: import("vue").PropType<number>;
|
|
95
101
|
};
|
|
102
|
+
provider: {
|
|
103
|
+
type: import("vue").PropType<ProviderMenu>;
|
|
104
|
+
};
|
|
96
105
|
}>> & {
|
|
97
106
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
98
107
|
}, {}, {}, {}, {}, {}> | null>;
|
|
@@ -123,6 +132,9 @@ declare const DasPayment: import("@das-fed/utils").SFCWithInstall<import("vue").
|
|
|
123
132
|
amount: {
|
|
124
133
|
type: import("vue").PropType<number>;
|
|
125
134
|
};
|
|
135
|
+
provider: {
|
|
136
|
+
type: import("vue").PropType<ProviderMenu>;
|
|
137
|
+
};
|
|
126
138
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
127
139
|
"update:show": (...args: any[]) => void;
|
|
128
140
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -152,6 +164,9 @@ declare const DasPayment: import("@das-fed/utils").SFCWithInstall<import("vue").
|
|
|
152
164
|
amount: {
|
|
153
165
|
type: import("vue").PropType<number>;
|
|
154
166
|
};
|
|
167
|
+
provider: {
|
|
168
|
+
type: import("vue").PropType<ProviderMenu>;
|
|
169
|
+
};
|
|
155
170
|
}>> & {
|
|
156
171
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
157
172
|
}, {}, {}>>;
|