@das-fed/ui 6.4.0-dev.81 → 6.4.0-dev.83

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 (59) hide show
  1. package/package.json +5 -5
  2. package/packages/business-components/app-container/index.js +137 -133
  3. package/packages/business-components/app-container/index.js.gz +0 -0
  4. package/packages/business-components/device-panel/index.js +9527 -9474
  5. package/packages/business-components/device-panel/index.js.gz +0 -0
  6. package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/components/barChart.vue.d.ts +1 -1
  7. package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/index.vue.d.ts +8 -2
  8. package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/components/barChart.vue.d.ts +6 -2
  9. package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/index.vue.d.ts +8 -2
  10. package/packages/business-components/device-panel/style.css +1 -1
  11. package/packages/business-components/device-panel/style.css.gz +0 -0
  12. package/packages/business-components/upload-file/index.d.ts +8 -0
  13. package/packages/business-components/upload-file/index.js +48 -49
  14. package/packages/business-components/upload-file/index.js.gz +0 -0
  15. package/packages/business-components/upload-file/src/App.vue.d.ts +2 -0
  16. package/packages/business-components/upload-file/src/type.d.ts +3 -0
  17. package/packages/business-components/upload-file/style.css +1 -1
  18. package/packages/components/color-picker/index.js +62 -63
  19. package/packages/components/color-picker/index.js.gz +0 -0
  20. package/packages/components/color-picker/style.css +1 -1
  21. package/packages/components/color-picker/style.css.gz +0 -0
  22. package/packages/components/edit-table/index.js +580 -567
  23. package/packages/components/edit-table/index.js.gz +0 -0
  24. package/packages/components/edit-table/style.css +1 -1
  25. package/packages/components/edit-table/style.css.gz +0 -0
  26. package/packages/components/image-upload/index.js +105 -120
  27. package/packages/components/image-upload/index.js.gz +0 -0
  28. package/packages/components/image-upload/src/hooks/use-imageUpload.d.ts +1 -1
  29. package/packages/components/image-viewer/index.js +339 -354
  30. package/packages/components/image-viewer/index.js.gz +0 -0
  31. package/packages/components/image-viewer/src/hooks/use-imageViewer.d.ts +2 -2
  32. package/packages/components/image-viewer/style.css +1 -1
  33. package/packages/components/image-viewer/style.css.gz +0 -0
  34. package/packages/components/pagination/index.js +1 -1
  35. package/packages/components/pagination/index.js.gz +0 -0
  36. package/packages/components/pagination/style.css +1 -1
  37. package/packages/components/pagination/style.css.gz +0 -0
  38. package/packages/components/search-form/index.js +734 -708
  39. package/packages/components/search-form/index.js.gz +0 -0
  40. package/packages/components/search-form/src/hooks/common.d.ts +1 -0
  41. package/packages/components/search-form/style.css +1 -1
  42. package/packages/components/search-form/style.css.gz +0 -0
  43. package/packages/components/text-tooltip/index.js +616 -616
  44. package/packages/components/text-tooltip/index.js.gz +0 -0
  45. package/packages/components/tree-table/index.js +68 -72
  46. package/packages/components/tree-table/index.js.gz +0 -0
  47. package/packages/components/tree-table/style.css +1 -1
  48. package/packages/components/tree-table/style.css.gz +0 -0
  49. package/packages/components/upload/i18n/index.d.ts +5 -0
  50. package/packages/components/upload/index.d.ts +3 -0
  51. package/packages/components/upload/index.js +143 -124
  52. package/packages/components/upload/index.js.gz +0 -0
  53. package/packages/components/upload/src/Index.vue.d.ts +1 -0
  54. package/packages/components/upload/src/type.d.ts +3 -0
  55. package/packages/components/upload/style.css +1 -1
  56. package/packages/components/upload/style.css.gz +0 -0
  57. package/packages/components/virtual-tree/index.js +40 -35
  58. package/packages/components/virtual-tree/index.js.gz +0 -0
  59. package/packages/components/virtual-tree/src/App.vue.d.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/ui",
3
- "version": "6.4.0-dev.81",
3
+ "version": "6.4.0-dev.83",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -26,7 +26,7 @@
26
26
  "@antv/x6-plugin-snapline": "^2.1.7",
27
27
  "@antv/x6-plugin-transform": "^2.1.8",
28
28
  "@antv/x6-vue-shape": "^2.1.2",
29
- "@das-fed/cli": "6.4.0-dev.81",
29
+ "@das-fed/cli": "6.4.0-dev.83",
30
30
  "@element-plus/icons-vue": "^2.3.1",
31
31
  "@types/lodash": "^4.14.194",
32
32
  "@types/lodash-es": "^4.17.9",
@@ -56,9 +56,9 @@
56
56
  "vue-tsc": "^2.0.29"
57
57
  },
58
58
  "dependencies": {
59
- "@das-fed/ui": "6.4.0-dev.81",
60
- "@das-fed/utils": "6.4.0-dev.81",
61
- "@das-fed/web": "6.4.0-dev.81",
59
+ "@das-fed/ui": "6.4.0-dev.83",
60
+ "@das-fed/utils": "6.4.0-dev.83",
61
+ "@das-fed/web": "6.4.0-dev.83",
62
62
  "@wangeditor/editor": "^5.1.23",
63
63
  "@wangeditor/editor-for-vue": "^5.1.12",
64
64
  "@wangeditor/plugin-upload-attachment": "^1.1.0",
@@ -1,12 +1,12 @@
1
1
  import '@das-fed/ui/packages/business-components/app-container/style.css';
2
2
  import { withInstall as q } from "@das-fed/utils/with-install/index";
3
- import { defineComponent as B, computed as S, ref as O, watch as U, onMounted as V, withDirectives as f, openBlock as a, createElementBlock as l, normalizeClass as $, normalizeStyle as C, Fragment as h, renderList as u, createElementVNode as c, toDisplayString as g, createBlock as y, unref as i, withCtx as k, createTextVNode as w } from "vue";
4
- import { ElRow as L, ElCol as M } from "element-plus";
3
+ import { defineComponent as B, computed as v, ref as U, watch as V, onMounted as $, openBlock as a, createBlock as m, unref as l, withCtx as h, createElementVNode as i, normalizeClass as L, normalizeStyle as C, createElementBlock as s, Fragment as u, renderList as g, toDisplayString as y, withDirectives as k, createTextVNode as w } from "vue";
4
+ import { ElRow as M, ElCol as O } from "element-plus";
5
5
  import "element-plus/es/components/row/style/css";
6
6
  import "element-plus/es/components/col/style/css";
7
7
  import { DasEmpty as P } from "@das-fed/ui/packages/components/empty/index";
8
- import { vOverlay as G } from "@das-fed/ui/packages/components/overlay/index";
9
8
  import { vDasTooltip as z } from "@das-fed/ui/packages/components/text-tooltip/index";
9
+ import { DasScrollbar as G } from "@das-fed/ui/packages/components/scrollbar/index";
10
10
  import { pureImageSrc as x } from "@das-fed/utils/pure-image-src";
11
11
  import { setThemeRule as H } from "@das-fed/web/packages/theme/index";
12
12
  const D = {
@@ -31,28 +31,28 @@ const D = {
31
31
  },
32
32
  emits: ["open-app"],
33
33
  setup(j, { emit: E }) {
34
- const p = j, T = E, N = S(() => {
34
+ const p = j, T = E, N = v(() => {
35
35
  const t = {};
36
36
  return p.theme === "default" || Object.keys(D).forEach((e) => {
37
37
  var n;
38
38
  t[e] = (n = D[e]) == null ? void 0 : n[p.theme];
39
39
  }), t;
40
- }), I = (t) => T("open-app", t), F = O("18px"), _ = (t, e) => {
40
+ }), I = (t) => T("open-app", t), _ = U("18px"), F = (t, e) => {
41
41
  if (!e) return;
42
42
  if (e.offsetWidth > t) {
43
- const s = parseInt(window.getComputedStyle(e).fontSize) - 1;
44
- e.style.fontSize = s + "px", F.value = s + "px", _(t, e);
43
+ const c = parseInt(window.getComputedStyle(e).fontSize) - 1;
44
+ e.style.fontSize = c + "px", _.value = c + "px", F(t, e);
45
45
  }
46
- }, v = async () => {
46
+ }, S = async () => {
47
47
  await R();
48
48
  const t = document.querySelectorAll(".application-content .cell-title .app-name")[0];
49
49
  if (!t) return;
50
50
  const e = parseInt(getComputedStyle(t).paddingRight) || 0, n = t.clientWidth - e;
51
- let r = 0, s = null;
51
+ let r = 0, c = null;
52
52
  document.querySelectorAll(".application-content .cell-title .app-name > .text").forEach((d) => {
53
- const m = d.offsetWidth;
54
- m > r && (r = m, s = d);
55
- }), _(n, s);
53
+ const f = d.offsetWidth;
54
+ f > r && (r = f, c = d);
55
+ }), F(n, c);
56
56
  }, R = () => new Promise((t) => {
57
57
  const e = () => {
58
58
  const n = document.querySelectorAll(".application-content .cell-title .app-name");
@@ -60,127 +60,131 @@ const D = {
60
60
  setTimeout(() => e(), 50);
61
61
  };
62
62
  e();
63
- }), W = S(() => p.appCategorys.map((t) => t.name));
64
- return U(() => W.value, v, { deep: !0 }), V(v), (t, e) => f((a(), l(
65
- "div",
66
- {
67
- class: $(["application-content", `theme-${t.theme}`]),
68
- style: C(N.value)
69
- },
70
- [
71
- t.appCategorys && t.appCategorys.length ? (a(), l("div", J, [
72
- (a(!0), l(
73
- h,
74
- null,
75
- u(t.appCategorys, (n, r) => (a(), l("div", K, [
76
- (a(), l("div", {
77
- key: r,
78
- class: "row"
79
- }, [
80
- c("div", Q, [
81
- c("div", X, [
82
- c(
83
- "span",
84
- {
85
- class: "text",
86
- style: C({ fontSize: F.value })
87
- },
88
- g(n.name),
89
- 5
90
- /* TEXT, STYLE */
91
- )
92
- ])
93
- ]),
94
- c("div", Y, [
95
- (a(!0), l(
96
- h,
97
- null,
98
- u(n.apps, (s) => (a(), y(
99
- i(L),
100
- {
101
- class: "app-row",
102
- gutter: 20
103
- },
104
- {
105
- default: k(() => [
106
- (a(!0), l(
107
- h,
108
- null,
109
- u(s, (o, d) => (a(), y(
110
- i(M),
111
- {
112
- class: "app-col",
113
- key: d,
114
- span: 6
115
- },
116
- {
117
- default: k(() => [
118
- c("div", {
119
- class: "sub-app",
120
- onClick: (m) => I(o)
121
- }, [
122
- c("img", {
123
- class: "img",
124
- src: o != null && o.iconDomain ? o.iconDomain + i(x)(o == null ? void 0 : o.iconUrl) : i(x)(o == null ? void 0 : o.iconUrl),
125
- alt: ""
126
- }, null, 8, b),
127
- c("div", A, [
128
- f((a(), l("div", tt, [
129
- w(
130
- g(o.name),
131
- 1
132
- /* TEXT */
133
- )
134
- ])), [
135
- [i(z)]
136
- ]),
137
- f((a(), l("div", et, [
138
- w(
139
- g(o.description),
140
- 1
141
- /* TEXT */
142
- )
143
- ])), [
144
- [i(z)]
145
- ])
146
- ])
147
- ], 8, Z)
148
- ]),
149
- _: 2
150
- /* DYNAMIC */
151
- },
152
- 1024
153
- /* DYNAMIC_SLOTS */
154
- ))),
155
- 128
156
- /* KEYED_FRAGMENT */
157
- ))
158
- ]),
159
- _: 2
160
- /* DYNAMIC */
161
- },
162
- 1024
163
- /* DYNAMIC_SLOTS */
164
- ))),
165
- 256
166
- /* UNKEYED_FRAGMENT */
167
- ))
168
- ])
169
- ]))
170
- ]))),
171
- 256
172
- /* UNKEYED_FRAGMENT */
173
- ))
174
- ])) : (a(), y(i(P), {
175
- key: 1,
176
- size: "large"
177
- }))
178
- ],
179
- 6
180
- /* CLASS, STYLE */
181
- )), [
182
- [i(G)]
183
- ]);
63
+ }), W = v(() => p.appCategorys.map((t) => t.name));
64
+ return V(() => W.value, S, { deep: !0 }), $(S), (t, e) => (a(), m(l(G), null, {
65
+ default: h(() => [
66
+ i(
67
+ "div",
68
+ {
69
+ class: L(["application-content", `theme-${t.theme}`]),
70
+ style: C(N.value)
71
+ },
72
+ [
73
+ t.appCategorys && t.appCategorys.length ? (a(), s("div", J, [
74
+ (a(!0), s(
75
+ u,
76
+ null,
77
+ g(t.appCategorys, (n, r) => (a(), s("div", K, [
78
+ (a(), s("div", {
79
+ key: r,
80
+ class: "row"
81
+ }, [
82
+ i("div", Q, [
83
+ i("div", X, [
84
+ i(
85
+ "span",
86
+ {
87
+ class: "text",
88
+ style: C({ fontSize: _.value })
89
+ },
90
+ y(n.name),
91
+ 5
92
+ /* TEXT, STYLE */
93
+ )
94
+ ])
95
+ ]),
96
+ i("div", Y, [
97
+ (a(!0), s(
98
+ u,
99
+ null,
100
+ g(n.apps, (c) => (a(), m(
101
+ l(M),
102
+ {
103
+ class: "app-row",
104
+ gutter: 20
105
+ },
106
+ {
107
+ default: h(() => [
108
+ (a(!0), s(
109
+ u,
110
+ null,
111
+ g(c, (o, d) => (a(), m(
112
+ l(O),
113
+ {
114
+ class: "app-col",
115
+ key: d,
116
+ span: 6
117
+ },
118
+ {
119
+ default: h(() => [
120
+ i("div", {
121
+ class: "sub-app",
122
+ onClick: (f) => I(o)
123
+ }, [
124
+ i("img", {
125
+ class: "img",
126
+ src: o != null && o.iconDomain ? o.iconDomain + l(x)(o == null ? void 0 : o.iconUrl) : l(x)(o == null ? void 0 : o.iconUrl),
127
+ alt: ""
128
+ }, null, 8, b),
129
+ i("div", A, [
130
+ k((a(), s("div", tt, [
131
+ w(
132
+ y(o.name),
133
+ 1
134
+ /* TEXT */
135
+ )
136
+ ])), [
137
+ [l(z)]
138
+ ]),
139
+ k((a(), s("div", et, [
140
+ w(
141
+ y(o.description),
142
+ 1
143
+ /* TEXT */
144
+ )
145
+ ])), [
146
+ [l(z)]
147
+ ])
148
+ ])
149
+ ], 8, Z)
150
+ ]),
151
+ _: 2
152
+ /* DYNAMIC */
153
+ },
154
+ 1024
155
+ /* DYNAMIC_SLOTS */
156
+ ))),
157
+ 128
158
+ /* KEYED_FRAGMENT */
159
+ ))
160
+ ]),
161
+ _: 2
162
+ /* DYNAMIC */
163
+ },
164
+ 1024
165
+ /* DYNAMIC_SLOTS */
166
+ ))),
167
+ 256
168
+ /* UNKEYED_FRAGMENT */
169
+ ))
170
+ ])
171
+ ]))
172
+ ]))),
173
+ 256
174
+ /* UNKEYED_FRAGMENT */
175
+ ))
176
+ ])) : (a(), m(l(P), {
177
+ key: 1,
178
+ size: "large"
179
+ }))
180
+ ],
181
+ 6
182
+ /* CLASS, STYLE */
183
+ )
184
+ ]),
185
+ _: 1
186
+ /* STABLE */
187
+ }));
184
188
  }
185
189
  }), nt = {
186
190
  "--das-application-app-bg-color": "#343848",