@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.
Files changed (42) hide show
  1. package/package.json +5 -5
  2. package/packages/business-components/app-container/index.js +120 -95
  3. package/packages/business-components/app-container/index.js.gz +0 -0
  4. package/packages/business-components/app-container/style.css +1 -1
  5. package/packages/business-components/app-container/style.css.gz +0 -0
  6. package/packages/business-components/device-panel/index.js +5733 -5725
  7. package/packages/business-components/device-panel/index.js.gz +0 -0
  8. package/packages/business-components/device-panel/style.css +1 -1
  9. package/packages/business-components/device-panel/style.css.gz +0 -0
  10. package/packages/business-components/layout-breadcrumb/index.js +77 -66
  11. package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
  12. package/packages/business-components/payment/index.d.ts +15 -0
  13. package/packages/business-components/payment/index.js +76 -75
  14. package/packages/business-components/payment/index.js.gz +0 -0
  15. package/packages/business-components/payment/style.css +1 -1
  16. package/packages/business-components/payment/type.d.ts +2 -0
  17. package/packages/business-components/process-form/index.js +561 -552
  18. package/packages/business-components/process-form/index.js.gz +0 -0
  19. package/packages/business-components/process-form/src/hooks/useForm.d.ts +3 -1
  20. package/packages/business-components/process-form/style.css +1 -1
  21. package/packages/components/input-dialog-select/index.js +126 -108
  22. package/packages/components/input-dialog-select/index.js.gz +0 -0
  23. package/packages/components/input-dialog-select/style.css +1 -1
  24. package/packages/components/input-dialog-select/style.css.gz +0 -0
  25. package/packages/components/input-number/index.js +4 -4
  26. package/packages/components/input-number/index.js.gz +0 -0
  27. package/packages/components/input-number/style.css +1 -1
  28. package/packages/components/input-number/style.css.gz +0 -0
  29. package/packages/components/progress/index.js +49 -44
  30. package/packages/components/progress/index.js.gz +0 -0
  31. package/packages/components/progress/style.css +1 -1
  32. package/packages/components/progress/style.css.gz +0 -0
  33. package/packages/components/radio-tabs/index.js +1 -1
  34. package/packages/components/radio-tabs/index.js.gz +0 -0
  35. package/packages/components/radio-tabs/style.css +1 -1
  36. package/packages/components/radio-tabs/style.css.gz +0 -0
  37. package/packages/components/table/index.js +1 -1
  38. package/packages/components/table/index.js.gz +0 -0
  39. package/packages/components/table/style.css +1 -1
  40. package/packages/components/table/style.css.gz +0 -0
  41. package/packages/components/text-tooltip/index.js +704 -697
  42. package/packages/components/text-tooltip/index.js.gz +0 -0
@@ -1,101 +1,112 @@
1
1
  import '@das-fed/ui/packages/business-components/layout-breadcrumb/style.css';
2
- import { ref as k, computed as q, watch as v, nextTick as I, defineComponent as M, unref as h, openBlock as U, createElementBlock as D, createVNode as N, createCommentVNode as T } from "vue";
3
- import { withInstall as x } from "@das-fed/utils/with-install/index";
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 P, useRoute as $ } from "vue-router";
6
- import { flatTree as S } from "@das-fed/utils/common-tools";
7
- import { getSubApps as A } from "@das-fed/utils/common-info";
8
- import { setThemeRule as j } from "@das-fed/web/packages/theme/index";
9
- const E = (r, i) => {
10
- const c = k([]), m = q(() => [...c.value, ...r.data || []]), p = async (t, f) => {
11
- var o;
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 s = A(), u = [], b = f.menu || "", a = ((o = s.currentSubApp) == null ? void 0 : o.menus) ?? [];
14
- if (!a || !a.length) return;
15
- let e = null;
16
- const d = S(a);
17
- if (b ? e = d.find((n) => n.code === b) : e = d.find((n) => n.routeUrl && n.routeUrl === t), e) {
18
- const n = e.code.split(".");
19
- if (n.length === 3) {
20
- const B = n.slice(0, 2).join("."), C = d.find((L) => L.code === B || L.originalCode === B);
21
- u.push({ name: (C == null ? void 0 : C.name) ?? "", isMenu: !0, disabled: !0 });
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 R = {
24
- name: (e == null ? void 0 : e.name) ?? "",
25
- routerPath: (e == null ? void 0 : e.routeUrl) ?? "",
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
- u.push(R);
28
+ o.push(T);
29
29
  }
30
- c.value = u;
31
- }, y = (t) => {
32
- t.disabled || i("click-item", t);
33
- }, _ = P(), l = $();
34
- v(
35
- () => _.currentRoute.value,
36
- (t) => {
37
- const f = (t == null ? void 0 : t.path) ?? "", s = (t == null ? void 0 : t.query) ?? {};
38
- p(f, s);
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 g = k(!1);
43
- return v(
44
- () => r.data,
53
+ const S = B(!1);
54
+ return A(
55
+ () => u.data,
45
56
  () => {
46
57
  I(() => {
47
- var a;
48
- const t = A(), f = l.query.app || t.currentSubApp.code || "";
49
- let s = l.query.menu || "";
50
- if (!s) {
51
- const e = ((a = t.currentSubApp) == null ? void 0 : a.menus) ?? [], d = S(e).find(
52
- (o) => `/${(o == null ? void 0 : o.applicationPath) ?? ""}${(o == null ? void 0 : o.routeUrl) ?? ""}`.replace(/\/\//g, "/") === location.pathname
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
- d && (s = d.code);
65
+ f && (o = f.code);
55
66
  }
56
- const u = JSON.parse(sessionStorage.getItem("breadcrumb") || "{}")[f], b = [];
57
- for (let e in u) u[e] && b.push(e);
58
- g.value = !!b.find((e) => s === e);
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: g,
64
- breadcrumbList: m,
74
+ isShow: S,
75
+ breadcrumbList: p,
65
76
  clickItem: y
66
77
  };
67
- }, J = {
78
+ }, z = {
68
79
  key: 0,
69
80
  class: "layout-breadcrumb"
70
- }, z = {
81
+ }, F = {
71
82
  name: "LayoutBreadCrumb"
72
- }, F = /* @__PURE__ */ M({
73
- ...z,
83
+ }, G = /* @__PURE__ */ M({
84
+ ...F,
74
85
  props: {
75
86
  data: { default: () => [] }
76
87
  },
77
88
  emits: ["click-item"],
78
- setup(r, { emit: i }) {
79
- const c = r, m = i, { isShow: p, breadcrumbList: y, clickItem: _ } = E(c, m);
80
- return (l, g) => h(p) && l.data && l.data.length ? (U(), D("div", J, [
81
- N(h(O), {
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
- ])) : T("", !0);
96
+ ])) : D("", !0);
86
97
  }
87
- }), G = (r, i) => {
88
- const c = r.__vccOpts || r;
89
- for (const [m, p] of i)
90
- c[m] = p;
91
- return c;
92
- }, H = /* @__PURE__ */ G(F, [["__scopeId", "data-v-878cd70a"]]), K = {
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
- j(K);
97
- const ee = x(H), te = () => k(null);
107
+ E(Q);
108
+ const te = P(K), oe = () => B(null);
98
109
  export {
99
- ee as DasLayoutBreadcrumb,
100
- te as DasLayoutBreadcrumbRef
110
+ te as DasLayoutBreadcrumb,
111
+ oe as DasLayoutBreadcrumbRef
101
112
  };
@@ -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
  }, {}, {}>>;