@topdatasec/report 1.0.7 → 1.0.9

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 (175) hide show
  1. package/dist/index.iife.js +2 -1
  2. package/dist/index.js +1914 -247
  3. package/dist/index.umd.cjs +2 -1
  4. package/dist/style.css +1 -1
  5. package/es/_virtual/_plugin-vue_export-helper.js +9 -0
  6. package/es/bar/Bar.vue.js +6 -8
  7. package/es/components.d.ts +13 -0
  8. package/es/components.js +28 -2
  9. package/es/config/Config.css +1 -0
  10. package/es/config/Config.d.ts +2 -0
  11. package/es/config/Config.vue.js +7 -0
  12. package/es/config/Config.vue2.js +207 -0
  13. package/es/config/index.d.ts +14 -0
  14. package/es/config/index.js +6 -0
  15. package/es/index.js +51 -25
  16. package/es/line/Line.d.ts +5 -0
  17. package/es/line/Line.vue.js +20 -0
  18. package/es/line/Line.vue2.js +4 -0
  19. package/es/line/index.d.ts +15 -0
  20. package/es/line/index.js +6 -0
  21. package/es/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css +1 -0
  22. package/es/pie/Pie.d.ts +5 -0
  23. package/es/pie/Pie.vue.js +20 -0
  24. package/es/pie/Pie.vue2.js +4 -0
  25. package/es/pie/index.d.ts +15 -0
  26. package/es/pie/index.js +6 -0
  27. package/es/report/Report.d.ts +7 -0
  28. package/es/report/Report.vue.js +112 -0
  29. package/es/report/Report.vue2.js +4 -0
  30. package/es/report/index.d.ts +17 -0
  31. package/es/report/index.js +6 -0
  32. package/es/select/Select.d.ts +9 -0
  33. package/es/select/Select.vue.js +39 -0
  34. package/es/select/Select.vue2.js +4 -0
  35. package/es/select/index.d.ts +25 -0
  36. package/es/select/index.js +6 -0
  37. package/es/settingCharts/SettingCharts.d.ts +5 -0
  38. package/es/settingCharts/SettingCharts.vue.js +142 -0
  39. package/es/settingCharts/SettingCharts.vue2.js +4 -0
  40. package/es/settingCharts/index.d.ts +14 -0
  41. package/es/settingCharts/index.js +6 -0
  42. package/es/settingFilter/index.d.ts +15 -0
  43. package/es/settingFilter/index.js +6 -0
  44. package/es/settingFilter/settingFilter.d.ts +5 -0
  45. package/es/settingFilter/settingFilter.vue.js +62 -0
  46. package/es/settingFilter/settingFilter.vue2.js +4 -0
  47. package/es/settingTable/SettingTable.d.ts +2 -0
  48. package/es/settingTable/SettingTable.vue.js +59 -0
  49. package/es/settingTable/SettingTable.vue2.js +4 -0
  50. package/es/settingTable/index.d.ts +14 -0
  51. package/es/settingTable/index.js +6 -0
  52. package/es/settingText/index.d.ts +15 -0
  53. package/es/settingText/index.js +6 -0
  54. package/es/settingText/settingText.d.ts +5 -0
  55. package/es/settingText/settingText.vue.js +112 -0
  56. package/es/settingText/settingText.vue2.js +4 -0
  57. package/es/settingTitle/index.d.ts +14 -0
  58. package/es/settingTitle/index.js +6 -0
  59. package/es/settingTitle/settingTitle.css +1 -0
  60. package/es/settingTitle/settingTitle.d.ts +2 -0
  61. package/es/settingTitle/settingTitle.vue.js +7 -0
  62. package/es/settingTitle/settingTitle.vue2.js +137 -0
  63. package/es/stores/interface/index.d.ts +18 -0
  64. package/es/stores/modules/report.d.ts +35 -0
  65. package/es/stores/modules/report.js +45 -0
  66. package/es/table/Table.d.ts +5 -0
  67. package/es/table/Table.vue.js +26 -0
  68. package/es/table/Table.vue2.js +4 -0
  69. package/es/table/index.d.ts +15 -0
  70. package/es/table/index.js +6 -0
  71. package/es/text/Text.d.ts +5 -0
  72. package/es/text/Text.vue.js +27 -0
  73. package/es/text/Text.vue2.js +4 -0
  74. package/es/text/index.d.ts +15 -0
  75. package/es/text/index.js +6 -0
  76. package/es/time/Time.d.ts +9 -0
  77. package/es/time/Time.vue.js +35 -0
  78. package/es/time/Time.vue2.js +4 -0
  79. package/es/time/index.d.ts +25 -0
  80. package/es/time/index.js +6 -0
  81. package/es/utils/api.d.ts +12 -0
  82. package/es/utils/api.js +32 -0
  83. package/es/utils/chartsOption.d.ts +298 -0
  84. package/es/utils/chartsOption.js +501 -0
  85. package/es/utils/data.d.ts +4 -0
  86. package/es/utils/data.js +162 -0
  87. package/es/utils/index.d.ts +2 -0
  88. package/es/utils/index.js +82 -79
  89. package/es/utils/resolver.js +28 -15
  90. package/lib/_virtual/_plugin-vue_export-helper.cjs +1 -0
  91. package/lib/bar/Bar.vue.cjs +1 -1
  92. package/lib/components.cjs +1 -1
  93. package/lib/components.d.ts +13 -0
  94. package/lib/config/Config.css +1 -0
  95. package/lib/config/Config.d.ts +2 -0
  96. package/lib/config/Config.vue.cjs +1 -0
  97. package/lib/config/Config.vue2.cjs +1 -0
  98. package/lib/config/index.cjs +1 -0
  99. package/lib/config/index.d.ts +14 -0
  100. package/lib/index.cjs +1 -1
  101. package/lib/line/Line.d.ts +5 -0
  102. package/lib/line/Line.vue.cjs +1 -0
  103. package/lib/line/Line.vue2.cjs +1 -0
  104. package/lib/line/index.cjs +1 -0
  105. package/lib/line/index.d.ts +15 -0
  106. package/lib/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css +1 -0
  107. package/lib/pie/Pie.d.ts +5 -0
  108. package/lib/pie/Pie.vue.cjs +1 -0
  109. package/lib/pie/Pie.vue2.cjs +1 -0
  110. package/lib/pie/index.cjs +1 -0
  111. package/lib/pie/index.d.ts +15 -0
  112. package/lib/report/Report.d.ts +7 -0
  113. package/lib/report/Report.vue.cjs +1 -0
  114. package/lib/report/Report.vue2.cjs +1 -0
  115. package/lib/report/index.cjs +1 -0
  116. package/lib/report/index.d.ts +17 -0
  117. package/lib/select/Select.d.ts +9 -0
  118. package/lib/select/Select.vue.cjs +1 -0
  119. package/lib/select/Select.vue2.cjs +1 -0
  120. package/lib/select/index.cjs +1 -0
  121. package/lib/select/index.d.ts +25 -0
  122. package/lib/settingCharts/SettingCharts.d.ts +5 -0
  123. package/lib/settingCharts/SettingCharts.vue.cjs +1 -0
  124. package/lib/settingCharts/SettingCharts.vue2.cjs +1 -0
  125. package/lib/settingCharts/index.cjs +1 -0
  126. package/lib/settingCharts/index.d.ts +14 -0
  127. package/lib/settingFilter/index.cjs +1 -0
  128. package/lib/settingFilter/index.d.ts +15 -0
  129. package/lib/settingFilter/settingFilter.d.ts +5 -0
  130. package/lib/settingFilter/settingFilter.vue.cjs +1 -0
  131. package/lib/settingFilter/settingFilter.vue2.cjs +1 -0
  132. package/lib/settingTable/SettingTable.d.ts +2 -0
  133. package/lib/settingTable/SettingTable.vue.cjs +1 -0
  134. package/lib/settingTable/SettingTable.vue2.cjs +1 -0
  135. package/lib/settingTable/index.cjs +1 -0
  136. package/lib/settingTable/index.d.ts +14 -0
  137. package/lib/settingText/index.cjs +1 -0
  138. package/lib/settingText/index.d.ts +15 -0
  139. package/lib/settingText/settingText.d.ts +5 -0
  140. package/lib/settingText/settingText.vue.cjs +1 -0
  141. package/lib/settingText/settingText.vue2.cjs +1 -0
  142. package/lib/settingTitle/index.cjs +1 -0
  143. package/lib/settingTitle/index.d.ts +14 -0
  144. package/lib/settingTitle/settingTitle.css +1 -0
  145. package/lib/settingTitle/settingTitle.d.ts +2 -0
  146. package/lib/settingTitle/settingTitle.vue.cjs +1 -0
  147. package/lib/settingTitle/settingTitle.vue2.cjs +1 -0
  148. package/lib/stores/interface/index.d.ts +18 -0
  149. package/lib/stores/modules/report.cjs +1 -0
  150. package/lib/stores/modules/report.d.ts +35 -0
  151. package/lib/table/Table.d.ts +5 -0
  152. package/lib/table/Table.vue.cjs +1 -0
  153. package/lib/table/Table.vue2.cjs +1 -0
  154. package/lib/table/index.cjs +1 -0
  155. package/lib/table/index.d.ts +15 -0
  156. package/lib/text/Text.d.ts +5 -0
  157. package/lib/text/Text.vue.cjs +1 -0
  158. package/lib/text/Text.vue2.cjs +1 -0
  159. package/lib/text/index.cjs +1 -0
  160. package/lib/text/index.d.ts +15 -0
  161. package/lib/time/Time.d.ts +9 -0
  162. package/lib/time/Time.vue.cjs +1 -0
  163. package/lib/time/Time.vue2.cjs +1 -0
  164. package/lib/time/index.cjs +1 -0
  165. package/lib/time/index.d.ts +25 -0
  166. package/lib/utils/api.cjs +1 -0
  167. package/lib/utils/api.d.ts +12 -0
  168. package/lib/utils/chartsOption.cjs +2 -0
  169. package/lib/utils/chartsOption.d.ts +298 -0
  170. package/lib/utils/data.cjs +1 -0
  171. package/lib/utils/data.d.ts +4 -0
  172. package/lib/utils/index.cjs +1 -1
  173. package/lib/utils/index.d.ts +2 -0
  174. package/lib/utils/resolver.cjs +1 -1
  175. package/package.json +9 -4
package/dist/index.js CHANGED
@@ -1,184 +1,206 @@
1
- import { defineComponent as k, computed as h, resolveComponent as B, createElementBlock as H, openBlock as U, createVNode as V, onMounted as x, onUnmounted as N, ref as f, toValue as E, watch as T, onBeforeUnmount as S, useSlots as $, reactive as j, getCurrentInstance as I, Comment as q, Text as z } from "vue";
2
- const C = { class: "chart-components" }, P = /* @__PURE__ */ k({
1
+ import { defineComponent as L, computed as D, resolveComponent as _, createElementBlock as V, openBlock as g, createVNode as i, onMounted as q, onUnmounted as ge, ref as T, toValue as N, watch as J, onBeforeUnmount as G, useSlots as be, reactive as Z, getCurrentInstance as ye, Comment as he, Text as Te, createCommentVNode as M, withCtx as f, createElementVNode as w, createBlock as A, Fragment as z, renderList as I, toDisplayString as ee, createTextVNode as le, resolveDirective as xe, withDirectives as we, unref as h, shallowRef as Se, normalizeProps as Ce, guardReactiveProps as Ve, normalizeStyle as Re } from "vue";
2
+ import { defineStore as $e } from "pinia";
3
+ import "echarts";
4
+ import { Toolbar as ke, Editor as Le } from "@wangeditor/editor-for-vue";
5
+ const Ee = { class: "chart-components" }, Ae = /* @__PURE__ */ L({
3
6
  name: "TdsReportBar",
4
7
  __name: "Bar",
5
8
  props: {
6
9
  data: {}
7
10
  },
8
- setup(e) {
9
- const t = e;
10
- console.log(t.data, 444444444);
11
- const n = h(() => t.data.options);
12
- return (r, o) => {
13
- const s = B("TdsChart");
14
- return U(), H("div", C, [
15
- V(s, { option: n.value }, null, 8, ["option"])
11
+ setup(t) {
12
+ const n = t, e = D(() => n.data.options);
13
+ return (o, l) => {
14
+ const a = _("TdsChart");
15
+ return g(), V("div", Ee, [
16
+ i(a, { option: e.value }, null, 8, ["option"])
16
17
  ]);
17
18
  };
18
19
  }
19
- }), W = (e) => {
20
- const t = e;
21
- return t.install = function(n) {
22
- n.component(t.name, e);
23
- }, e;
24
- }, Z = W(P), G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25
- __proto__: null,
26
- TdsReportBar: Z
27
- }, Symbol.toStringTag, { value: "Module" }));
28
- function ne(e = Date.now(), t = "YYYY-MM-DD HH:mm:ss") {
20
+ }), E = (t) => {
21
+ const n = t;
22
+ return n.install = function(e) {
23
+ e.component(n.name, t);
24
+ }, t;
25
+ }, De = E(Ae), K = window.$http, W = window.$envURL, Ue = (t) => W.request({
26
+ url: `${W}/tds/report/demo/get`,
27
+ method: "get",
28
+ params: t,
29
+ isError: !1
30
+ }), re = (t) => K.request({
31
+ url: `${W}/tds/report/item/get`,
32
+ method: "get",
33
+ params: t,
34
+ isError: !1
35
+ }), Fe = (t) => K.request({
36
+ url: `${W}/tds/report/get`,
37
+ method: "get",
38
+ params: t,
39
+ isError: !1
40
+ }), Me = (t) => K.request({
41
+ url: `${W}/tds/report/filter/get`,
42
+ method: "get",
43
+ params: t,
44
+ isError: !1
45
+ }), He = (t) => K.request({
46
+ url: `${W}/tds/report/delete`,
47
+ method: "delete",
48
+ data: t
49
+ });
50
+ function Yt(t = Date.now(), n = "YYYY-MM-DD HH:mm:ss") {
29
51
  try {
30
- let n;
31
- if (typeof e == "number" || typeof e == "string") {
32
- if (n = new Date(e), isNaN(n.getTime()))
52
+ let e;
53
+ if (typeof t == "number" || typeof t == "string") {
54
+ if (e = new Date(t), isNaN(e.getTime()))
33
55
  throw new Error("Invalid date");
34
56
  } else
35
- n = e;
36
- const r = (s, c = 2) => String(s).padStart(c, "0"), o = (s) => {
37
- switch (s) {
57
+ e = t;
58
+ const o = (a, s = 2) => String(a).padStart(s, "0"), l = (a) => {
59
+ switch (a) {
38
60
  case "YYYY":
39
- return r(n.getFullYear());
61
+ return o(e.getFullYear());
40
62
  case "YY":
41
- return r(n.getFullYear()).slice(2, 4);
63
+ return o(e.getFullYear()).slice(2, 4);
42
64
  case "MM":
43
- return r(n.getMonth() + 1);
65
+ return o(e.getMonth() + 1);
44
66
  case "M":
45
- return String(n.getMonth() + 1);
67
+ return String(e.getMonth() + 1);
46
68
  case "DD":
47
- return r(n.getDate());
69
+ return o(e.getDate());
48
70
  case "D":
49
- return String(n.getDate());
71
+ return String(e.getDate());
50
72
  case "HH":
51
- return r(n.getHours());
73
+ return o(e.getHours());
52
74
  case "H":
53
- return String(n.getHours());
75
+ return String(e.getHours());
54
76
  case "mm":
55
- return r(n.getMinutes());
77
+ return o(e.getMinutes());
56
78
  case "m":
57
- return String(n.getMinutes());
79
+ return String(e.getMinutes());
58
80
  case "ss":
59
- return r(n.getSeconds());
81
+ return o(e.getSeconds());
60
82
  case "s":
61
- return String(n.getSeconds());
83
+ return String(e.getSeconds());
62
84
  case "SSS":
63
- return r(n.getMilliseconds(), 3);
85
+ return o(e.getMilliseconds(), 3);
64
86
  default:
65
- return s;
87
+ return a;
66
88
  }
67
89
  };
68
- return t.replace(/(YYYY|YY|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS)/g, o);
69
- } catch (n) {
70
- return console.error("Error formatting date:", n), "";
90
+ return n.replace(/(YYYY|YY|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS)/g, l);
91
+ } catch (e) {
92
+ return console.error("Error formatting date:", e), "";
71
93
  }
72
94
  }
73
- function re(e, t = 2, n = ",", r = ".", o, s) {
74
- typeof e != "number" && typeof e != "string" && console.warn("Expected value to be of type number or string"), typeof t != "number" && console.warn("Expected precision to be of type number");
75
- const c = Number(e);
76
- if (isNaN(c) || !isFinite(c))
95
+ function Bt(t, n = 2, e = ",", o = ".", l, a) {
96
+ typeof t != "number" && typeof t != "string" && console.warn("Expected value to be of type number or string"), typeof n != "number" && console.warn("Expected precision to be of type number");
97
+ const s = Number(t);
98
+ if (isNaN(s) || !isFinite(s))
77
99
  return "";
78
- if (c === 0)
79
- return c.toFixed(t);
80
- let l = c.toFixed(t);
81
- if (typeof n == "string" && n !== "") {
82
- const [i, d] = l.split(".");
83
- l = i.replace(/(\d)(?=(\d{3})+$)/g, "$1" + n) + (d ? r + d : "");
100
+ if (s === 0)
101
+ return s.toFixed(n);
102
+ let d = s.toFixed(n);
103
+ if (typeof e == "string" && e !== "") {
104
+ const [r, u] = d.split(".");
105
+ d = r.replace(/(\d)(?=(\d{3})+$)/g, "$1" + e) + (u ? o + u : "");
84
106
  }
85
- return (o || "") + l + (s || "");
107
+ return (l || "") + d + (a || "");
86
108
  }
87
- function oe(e, t = 0, n = !1) {
88
- let r = null;
89
- function o(c) {
90
- if (r || (r = c), c - r >= t) {
109
+ function Pt(t, n = 0, e = !1) {
110
+ let o = null;
111
+ function l(s) {
112
+ if (o || (o = s), s - o >= n) {
91
113
  try {
92
- e();
93
- } catch (i) {
94
- console.error("Error executing rafTimeout function:", i);
114
+ t();
115
+ } catch (r) {
116
+ console.error("Error executing rafTimeout function:", r);
95
117
  }
96
- n && (r = c, s.id = requestAnimationFrame(o));
118
+ e && (o = s, a.id = requestAnimationFrame(l));
97
119
  } else
98
- s.id = requestAnimationFrame(o);
120
+ a.id = requestAnimationFrame(l);
99
121
  }
100
- const s = {
101
- id: requestAnimationFrame(o)
122
+ const a = {
123
+ id: requestAnimationFrame(l)
102
124
  };
103
- return s;
125
+ return a;
104
126
  }
105
- function se(e) {
106
- e && e.id && typeof e.id == "number" ? cancelAnimationFrame(e.id) : console.warn("cancelRaf received an invalid id:", e);
127
+ function Wt(t) {
128
+ t && t.id && typeof t.id == "number" ? cancelAnimationFrame(t.id) : console.warn("cancelRaf received an invalid id:", t);
107
129
  }
108
- function J(e, t = 300) {
109
- let n = !0;
110
- return function(...r) {
111
- return n && (e(...r), n = !1, setTimeout(() => {
112
- n = !0;
113
- }, t)), !1;
130
+ function ze(t, n = 300) {
131
+ let e = !0;
132
+ return function(...o) {
133
+ return e && (t(...o), e = !1, setTimeout(() => {
134
+ e = !0;
135
+ }, n)), !1;
114
136
  };
115
137
  }
116
- function K(e, t = 300) {
117
- let n = null;
118
- return function(...r) {
119
- n && clearTimeout(n), n = setTimeout(() => {
120
- e(...r);
121
- }, t);
138
+ function Ie(t, n = 300) {
139
+ let e = null;
140
+ return function(...o) {
141
+ e && clearTimeout(e), e = setTimeout(() => {
142
+ t(...o);
143
+ }, n);
122
144
  };
123
145
  }
124
- function ce(e, t) {
125
- if (Number.isNaN(e) || Number.isNaN(t))
146
+ function Ot(t, n) {
147
+ if (Number.isNaN(t) || Number.isNaN(n))
126
148
  throw new Error("Both num1 and num2 must be valid numbers.");
127
- const n = e % 1 !== 0, r = t % 1 !== 0;
128
- if (!n && !r)
129
- return e + t;
130
- const o = String(e).split(".")[1] ?? "", s = String(t).split(".")[1] ?? "", c = Math.max(o.length, s.length), l = Math.pow(10, c), i = e.toFixed(c), d = t.toFixed(c);
131
- return (+i.replace(".", "") + +d.replace(".", "")) / l;
149
+ const e = t % 1 !== 0, o = n % 1 !== 0;
150
+ if (!e && !o)
151
+ return t + n;
152
+ const l = String(t).split(".")[1] ?? "", a = String(n).split(".")[1] ?? "", s = Math.max(l.length, a.length), d = Math.pow(10, s), r = t.toFixed(s), u = n.toFixed(s);
153
+ return (+r.replace(".", "") + +u.replace(".", "")) / d;
132
154
  }
133
- function ae(e, t) {
134
- if (!e) {
155
+ function jt(t, n) {
156
+ if (!t) {
135
157
  console.error("无效的 url");
136
158
  return;
137
159
  }
138
- const n = t || e.split("?")[0].split("/").pop() || "download";
160
+ const e = n || t.split("?")[0].split("/").pop() || "download";
139
161
  try {
140
- fetch(e).then((r) => {
141
- r.ok ? r.blob().then((o) => {
142
- const s = URL.createObjectURL(o), c = document.createElement("a");
143
- c.href = s, c.download = n, document.body.appendChild(c), c.click(), document.body.removeChild(c), URL.revokeObjectURL(s);
144
- }) : console.error("请求文件失败,状态码:", r.status);
162
+ fetch(t).then((o) => {
163
+ o.ok ? o.blob().then((l) => {
164
+ const a = URL.createObjectURL(l), s = document.createElement("a");
165
+ s.href = a, s.download = e, document.body.appendChild(s), s.click(), document.body.removeChild(s), URL.revokeObjectURL(a);
166
+ }) : console.error("请求文件失败,状态码:", o.status);
145
167
  });
146
- } catch (r) {
147
- console.error("文件下载失败:", r);
168
+ } catch (o) {
169
+ console.error("文件下载失败:", o);
148
170
  }
149
171
  }
150
- function le() {
151
- const e = document.documentElement;
152
- e.classList.toggle("dark"), e.classList.contains("dark") ? e.style.colorScheme = "dark" : e.style.colorScheme = "light";
172
+ function Nt() {
173
+ const t = document.documentElement;
174
+ t.classList.toggle("dark"), t.classList.contains("dark") ? t.style.colorScheme = "dark" : t.style.colorScheme = "light";
153
175
  }
154
- function X() {
155
- const e = f(!1), t = I();
156
- return t && x(() => {
157
- e.value = !0;
158
- }, t), e;
176
+ function Ye() {
177
+ const t = T(!1), n = ye();
178
+ return n && q(() => {
179
+ t.value = !0;
180
+ }, n), t;
159
181
  }
160
- function D(e) {
161
- const t = X();
162
- return h(() => (t.value, !!e()));
182
+ function ie(t) {
183
+ const n = Ye();
184
+ return D(() => (n.value, !!t()));
163
185
  }
164
- function ie(e, t, n) {
165
- x(() => e.addEventListener(t, n)), N(() => e.removeEventListener(t, n));
186
+ function qt(t, n, e) {
187
+ q(() => t.addEventListener(n, e)), ge(() => t.removeEventListener(n, e));
166
188
  }
167
- function ue(e, t, n = {}) {
168
- const r = D(() => window && "MutationObserver" in window), o = f(!1);
169
- let s;
170
- const c = h(() => {
171
- const u = E(e);
172
- return u ? Array.isArray(u) ? u.map((m) => E(m)).filter((m) => m) : [u] : [];
173
- }), l = () => {
174
- s && (s.disconnect(), s = void 0);
175
- }, i = () => {
176
- r.value && c.value.length && !o.value && (s = new MutationObserver(t), c.value.forEach((u) => s.observe(u, n)));
189
+ function Gt(t, n, e = {}) {
190
+ const o = ie(() => window && "MutationObserver" in window), l = T(!1);
191
+ let a;
192
+ const s = D(() => {
193
+ const c = N(t);
194
+ return c ? Array.isArray(c) ? c.map((m) => N(m)).filter((m) => m) : [c] : [];
195
+ }), d = () => {
196
+ a && (a.disconnect(), a = void 0);
197
+ }, r = () => {
198
+ o.value && s.value.length && !l.value && (a = new MutationObserver(n), s.value.forEach((c) => a.observe(c, e)));
177
199
  };
178
- T(
179
- () => c.value,
200
+ J(
201
+ () => s.value,
180
202
  () => {
181
- l(), i();
203
+ d(), r();
182
204
  },
183
205
  {
184
206
  immediate: !0,
@@ -186,38 +208,38 @@ function ue(e, t, n = {}) {
186
208
  flush: "post"
187
209
  }
188
210
  );
189
- const d = () => {
190
- o.value = !0, l();
211
+ const u = () => {
212
+ l.value = !0, d();
191
213
  }, v = () => {
192
- o.value = !1, i();
214
+ l.value = !1, r();
193
215
  };
194
- return S(() => l()), {
195
- stop: d,
216
+ return G(() => d()), {
217
+ stop: u,
196
218
  start: v
197
219
  };
198
220
  }
199
- function fe(e = window, t = 0, n, r) {
200
- const o = f(0), s = f(0), c = f(0), l = f(0), i = f(!1), d = f(!1), v = f(!1), u = f(!1), m = f(!1), w = f(0), y = f(0);
201
- function _(a) {
202
- i.value = !0;
203
- const p = a.target.documentElement ?? a.target;
204
- o.value = p.scrollLeft, c.value = p.scrollTop, d.value = o.value < w.value, v.value = o.value > w.value, u.value = c.value < y.value, m.value = c.value > y.value, w.value = o.value, y.value = c.value, M(a), n && n(a);
221
+ function Jt(t = window, n = 0, e, o) {
222
+ const l = T(0), a = T(0), s = T(0), d = T(0), r = T(!1), u = T(!1), v = T(!1), c = T(!1), m = T(!1), p = T(0), x = T(0);
223
+ function C(y) {
224
+ r.value = !0;
225
+ const F = y.target.documentElement ?? y.target;
226
+ l.value = F.scrollLeft, s.value = F.scrollTop, u.value = l.value < p.value, v.value = l.value > p.value, c.value = s.value < x.value, m.value = s.value > x.value, p.value = l.value, x.value = s.value, S(y), e && e(y);
205
227
  }
206
- const L = J(_, t);
207
- function O(a) {
208
- i.value && (i.value = !1, d.value = !1, v.value = !1, u.value = !1, m.value = !1, r && r(a));
228
+ const $ = ze(C, n);
229
+ function R(y) {
230
+ r.value && (r.value = !1, u.value = !1, v.value = !1, c.value = !1, m.value = !1, o && o(y));
209
231
  }
210
- const M = K(O, t + 200), Y = h(() => {
211
- const a = E(e);
212
- return a || null;
232
+ const S = Ie(R, n + 200), b = D(() => {
233
+ const y = N(t);
234
+ return y || null;
213
235
  });
214
- T(
215
- () => Y.value,
216
- (a, p) => {
217
- var b;
218
- if (p && F(p), a) {
219
- const g = ((b = a == null ? void 0 : a.document) == null ? void 0 : b.documentElement) || (a == null ? void 0 : a.documentElement) || a;
220
- s.value = g.scrollWidth - g.clientWidth, l.value = g.scrollHeight - g.clientHeight, g.addEventListener("scroll", L), g.addEventListener("scrollend", M);
236
+ J(
237
+ () => b.value,
238
+ (y, F) => {
239
+ var j;
240
+ if (F && U(F), y) {
241
+ const Y = ((j = y == null ? void 0 : y.document) == null ? void 0 : j.documentElement) || (y == null ? void 0 : y.documentElement) || y;
242
+ a.value = Y.scrollWidth - Y.clientWidth, d.value = Y.scrollHeight - Y.clientHeight, Y.addEventListener("scroll", $), Y.addEventListener("scrollend", S);
221
243
  }
222
244
  },
223
245
  {
@@ -225,52 +247,52 @@ function fe(e = window, t = 0, n, r) {
225
247
  flush: "post"
226
248
  }
227
249
  );
228
- function F(a) {
229
- var b;
230
- const p = ((b = a == null ? void 0 : a.document) == null ? void 0 : b.documentElement) || (a == null ? void 0 : a.documentElement) || a;
231
- p.removeEventListener("scroll", L), p.removeEventListener("scrollend", M);
250
+ function U(y) {
251
+ var j;
252
+ const F = ((j = y == null ? void 0 : y.document) == null ? void 0 : j.documentElement) || (y == null ? void 0 : y.documentElement) || y;
253
+ F.removeEventListener("scroll", $), F.removeEventListener("scrollend", S);
232
254
  }
233
- return S(() => F(Y.value)), { x: o, xScrollMax: s, y: c, yScrollMax: l, isScrolling: i, left: d, right: v, top: u, bottom: m };
255
+ return G(() => U(b.value)), { x: l, xScrollMax: a, y: s, yScrollMax: d, isScrolling: r, left: u, right: v, top: c, bottom: m };
234
256
  }
235
- function de() {
236
- const e = f(0), t = f(0);
237
- let n = performance.now();
238
- const r = 10, o = (s) => {
239
- if (t.value++, t.value >= r) {
240
- const c = s - n;
241
- e.value = Math.round(1e3 / (c / r)), n = s, t.value = 0;
257
+ function Kt() {
258
+ const t = T(0), n = T(0);
259
+ let e = performance.now();
260
+ const o = 10, l = (a) => {
261
+ if (n.value++, n.value >= o) {
262
+ const s = a - e;
263
+ t.value = Math.round(1e3 / (s / o)), e = a, n.value = 0;
242
264
  }
243
- requestAnimationFrame(o);
265
+ requestAnimationFrame(l);
244
266
  };
245
- return requestAnimationFrame(o), { fps: e };
267
+ return requestAnimationFrame(l), { fps: t };
246
268
  }
247
- function me(e) {
248
- if (!e || typeof e != "string" || e.trim() === "")
269
+ function Zt(t) {
270
+ if (!t || typeof t != "string" || t.trim() === "")
249
271
  throw new Error("Invalid mediaQuery parameter. It must be a non-empty string.");
250
- const t = f(window && window.matchMedia(e).matches), n = window.matchMedia(e), r = (o) => {
251
- t.value = o.matches;
272
+ const n = T(window && window.matchMedia(t).matches), e = window.matchMedia(t), o = (l) => {
273
+ n.value = l.matches;
252
274
  };
253
- return x(() => {
254
- n.addEventListener("change", r);
255
- }), S(() => {
256
- n.removeEventListener("change", r);
257
- }), { match: t };
275
+ return q(() => {
276
+ e.addEventListener("change", o);
277
+ }), G(() => {
278
+ e.removeEventListener("change", o);
279
+ }), { match: n };
258
280
  }
259
- function ve(e, t, n = {}) {
260
- const r = D(() => window && "ResizeObserver" in window);
261
- let o;
262
- const s = f(!1), c = h(() => {
263
- const u = E(e);
264
- return u ? Array.isArray(u) ? u.map((m) => E(m)).filter((m) => m) : [u] : [];
265
- }), l = () => {
266
- o && (o.disconnect(), o = void 0);
267
- }, i = () => {
268
- r.value && c.value.length && !s.value && (o = new ResizeObserver(t), c.value.forEach((u) => o.observe(u, n)));
281
+ function Xt(t, n, e = {}) {
282
+ const o = ie(() => window && "ResizeObserver" in window);
283
+ let l;
284
+ const a = T(!1), s = D(() => {
285
+ const c = N(t);
286
+ return c ? Array.isArray(c) ? c.map((m) => N(m)).filter((m) => m) : [c] : [];
287
+ }), d = () => {
288
+ l && (l.disconnect(), l = void 0);
289
+ }, r = () => {
290
+ o.value && s.value.length && !a.value && (l = new ResizeObserver(n), s.value.forEach((c) => l.observe(c, e)));
269
291
  };
270
- T(
271
- () => c.value,
292
+ J(
293
+ () => s.value,
272
294
  () => {
273
- l(), i();
295
+ d(), r();
274
296
  },
275
297
  {
276
298
  immediate: !0,
@@ -278,97 +300,1742 @@ function ve(e, t, n = {}) {
278
300
  flush: "post"
279
301
  }
280
302
  );
281
- const d = () => {
282
- s.value = !0, l();
303
+ const u = () => {
304
+ a.value = !0, d();
283
305
  }, v = () => {
284
- s.value = !1, i();
306
+ a.value = !1, r();
285
307
  };
286
- return S(() => l()), {
287
- stop: d,
308
+ return G(() => d()), {
309
+ stop: u,
288
310
  start: v
289
311
  };
290
312
  }
291
- function pe(e = "default") {
292
- const t = $(), n = (r) => {
293
- var c;
294
- const o = (c = t[r]) == null ? void 0 : c.call(t), s = (l) => {
295
- if (l.type === q || Array.isArray(l.children) && !l.children.length)
313
+ function Qt(t = "default") {
314
+ const n = be(), e = (o) => {
315
+ var s;
316
+ const l = (s = n[o]) == null ? void 0 : s.call(n), a = (d) => {
317
+ if (d.type === he || Array.isArray(d.children) && !d.children.length)
296
318
  return !1;
297
- if (l.type !== z)
319
+ if (d.type !== Te)
298
320
  return !0;
299
- if (typeof l.children == "string")
300
- return l.children.trim() !== "";
321
+ if (typeof d.children == "string")
322
+ return d.children.trim() !== "";
301
323
  };
302
- return o && (o != null && o.length) ? o.some((i) => s(i)) : !1;
324
+ return l && (l != null && l.length) ? l.some((r) => a(r)) : !1;
303
325
  };
304
- if (Array.isArray(e)) {
305
- const r = j({});
306
- return e.forEach((o) => {
307
- const s = h(() => n(o));
308
- r[o] = s;
309
- }), r;
326
+ if (Array.isArray(t)) {
327
+ const o = Z({});
328
+ return t.forEach((l) => {
329
+ const a = D(() => e(l));
330
+ o[l] = a;
331
+ }), o;
310
332
  } else
311
- return h(() => n(e));
333
+ return D(() => e(t));
312
334
  }
313
- const R = {
314
- TdsReportBar: "TdsReportBar"
315
- }, A = {
335
+ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), X = (t) => JSON.parse(JSON.stringify(t)), ue = "rgba(51, 51, 51, 0.15)", H = "rgba(51, 51, 51, 1)", P = 12, de = (t = !1) => {
336
+ const n = {
337
+ // top: '2%',
338
+ left: "3%",
339
+ right: "3%",
340
+ bottom: "2%",
341
+ containLabel: !0
342
+ };
343
+ return t && (n.top = "5%"), n;
344
+ }, k = [
345
+ "46, 145, 255",
346
+ "48, 212, 183",
347
+ "108, 108, 255",
348
+ "109, 237, 124",
349
+ "128, 218, 236",
350
+ "58, 200, 218",
351
+ "146, 218, 89",
352
+ "118, 218, 218",
353
+ "143, 192, 244",
354
+ "192, 192, 145",
355
+ "153, 136, 204",
356
+ "212, 217, 230",
357
+ "124, 186, 255",
358
+ "209, 182, 225",
359
+ "255, 197, 84",
360
+ "249, 140, 106",
361
+ "246, 179, 82",
362
+ "100, 161, 206",
363
+ "246, 175, 159",
364
+ "238, 97, 97"
365
+ ], Be = (t, n, e = "", o = { name: "name", value: "value" }) => {
366
+ const l = [], a = [];
367
+ n.forEach((s) => {
368
+ l.push(s[o.name]), a.push(s[o.value]);
369
+ }), t.xAxis[0].data = l, t.series[0].data = a, t.series[0].name = e, t.series[1].data = a, t.series[2].data = a;
370
+ }, te = (t = [
371
+ {
372
+ name: "数据1",
373
+ value: 63
374
+ },
375
+ {
376
+ name: "数据2",
377
+ value: 45
378
+ },
379
+ {
380
+ name: "数据3",
381
+ value: 43
382
+ }
383
+ ], n = { name: "name", value: "value" }) => {
384
+ const e = (l = "rgba(46, 145, 255, 0.7)", a = "rgba(46, 145, 255, 0.2)") => ({
385
+ color: {
386
+ type: "linear",
387
+ x: 0,
388
+ y: 0,
389
+ x2: 0,
390
+ y2: 1,
391
+ colorStops: [
392
+ {
393
+ offset: 0,
394
+ color: l
395
+ },
396
+ {
397
+ offset: 0.8,
398
+ color: a
399
+ }
400
+ ]
401
+ }
402
+ }), o = t.map((l) => l[n.value]);
403
+ return {
404
+ // 提示框组件
405
+ tooltip: {
406
+ trigger: "item"
407
+ //触发类型,axis:坐标轴触发
408
+ },
409
+ // 图例组件
410
+ // legend: {
411
+ // type: 'plain', //plain:普通图例;scroll:可滚动翻页的图例。当图例数量较多时使。
412
+ // show: true,
413
+ // },
414
+ grid: de(),
415
+ title: {
416
+ show: !0,
417
+ text: "样例数据",
418
+ textStyle: {
419
+ color: "#333",
420
+ fontSize: 18
421
+ },
422
+ x: 10,
423
+ y: 10
424
+ },
425
+ // x 轴设置
426
+ xAxis: [
427
+ {
428
+ type: "category",
429
+ nameGap: 8,
430
+ // X轴名称与轴线之间的距离
431
+ nameRotate: 0,
432
+ // 坐标轴名称旋转
433
+ axisLabel: {
434
+ color: H,
435
+ // X轴类目名称样式
436
+ rotate: 0
437
+ // X轴类目名称旋转角度
438
+ },
439
+ axisLine: {
440
+ //X轴轴线设置
441
+ show: !0,
442
+ lineStyle: {
443
+ color: ue,
444
+ width: 1
445
+ }
446
+ },
447
+ axisTick: { show: !1 },
448
+ // X轴刻度相关设置
449
+ splitLine: { show: !1 },
450
+ // 横向分隔线
451
+ data: t.map((l) => l[n.name])
452
+ }
453
+ ],
454
+ // y轴设置
455
+ yAxis: [
456
+ {
457
+ type: "value",
458
+ min: 0,
459
+ // 坐标轴刻度最小值
460
+ position: "left",
461
+ nameTextStyle: {
462
+ fontSize: P,
463
+ color: H,
464
+ fontWeight: "bold"
465
+ },
466
+ axisLine: { show: !1 },
467
+ // y轴轴线设置
468
+ axisTick: { show: !1 },
469
+ // 刻度设置
470
+ splitLine: { show: !1 },
471
+ // 纵向分隔线
472
+ axisLabel: {
473
+ color: H,
474
+ // y轴刻度标签
475
+ formatter: "{value}",
476
+ inside: !1
477
+ // 刻度标签是否朝内,默认朝外
478
+ }
479
+ }
480
+ ],
481
+ series: [
482
+ {
483
+ type: "bar",
484
+ barWidth: 15,
485
+ barGap: "0%",
486
+ itemStyle: e(`rgba(${k[0]}, 0.7)`, `rgba(${k[0]}, 0.2)`),
487
+ data: o,
488
+ label: {
489
+ show: !0,
490
+ // 显示标签
491
+ position: "top",
492
+ // 标签位置
493
+ color: "inherit",
494
+ // 标签颜色
495
+ lineHeight: 24
496
+ // 行高
497
+ }
498
+ },
499
+ {
500
+ // 柱底圆片
501
+ name: "",
502
+ type: "pictorialBar",
503
+ symbolSize: [15, 10],
504
+ //调整截面形状
505
+ symbolOffset: [0, 5],
506
+ itemStyle: e(`rgba(${k[0]}, 0.7)`, `rgba(${k[0]}, 0.2)`),
507
+ data: o
508
+ },
509
+ {
510
+ // 柱顶圆片
511
+ name: "",
512
+ type: "pictorialBar",
513
+ symbolSize: [15, 10],
514
+ //调整截面形状
515
+ symbolOffset: [0, -5],
516
+ symbolPosition: "end",
517
+ itemStyle: e(`rgba(${k[0]}, 0.9)`, `rgba(${k[0]}, 1)`),
518
+ data: o
519
+ }
520
+ ]
521
+ };
522
+ }, Pe = ({ chartOption: t, data: n, props: e = { name: "label", value: "data" } }) => {
523
+ let o = 0;
524
+ const l = n.map((a, s) => (o += Number(a[e.value]), {
525
+ name: a[e.name],
526
+ value: Number(a[e.value])
527
+ }));
528
+ n.length > 0 && (t.legend.data = l, t.series[0].data = l, t.graphic[1].style.text = o);
529
+ }, We = () => k.map((t) => `rgba(${t}, 1)`), pe = ({
530
+ data: t = [
531
+ {
532
+ name: "数据1",
533
+ value: 63
534
+ },
535
+ {
536
+ name: "数据2",
537
+ value: 45
538
+ },
539
+ {
540
+ name: "数据3",
541
+ value: 43
542
+ }
543
+ ],
544
+ radiusType: n = 1,
545
+ roseType: e = !1,
546
+ isLegend: o = !0,
547
+ isLine: l = !1,
548
+ center: a = ["50%", "50%"],
549
+ isTitle: s = !0
550
+ }) => {
551
+ const d = {
552
+ color: We(),
553
+ toolbox: { show: !1 },
554
+ tooltip: {
555
+ trigger: "item",
556
+ show: !0,
557
+ formatter: (r) => {
558
+ const { name: u, value: v } = r;
559
+ return `<div style="color: ${r.color}; font-size: 14px;">${u}&nbsp;&nbsp;&nbsp;</div>
560
+ <div><span style="font-size: 14px; color: #86909c; float: right;">数量:${v}</span></div>`;
561
+ }
562
+ },
563
+ title: {
564
+ show: s,
565
+ text: "样例数据",
566
+ textStyle: {
567
+ color: "#333",
568
+ fontSize: 18
569
+ },
570
+ x: 10,
571
+ y: 10
572
+ },
573
+ legend: {
574
+ show: o,
575
+ left: "70%",
576
+ formatter: (r) => {
577
+ var v;
578
+ const u = (v = d.series[0]) == null ? void 0 : v.data.find((c) => c.name === r).value;
579
+ return ` ${r} | ${u}`;
580
+ },
581
+ textStyle: {
582
+ fontSize: P,
583
+ color: H
584
+ },
585
+ data: t,
586
+ orient: "vertical",
587
+ itemWidth: 10,
588
+ itemHeight: 10,
589
+ borderRadius: 10,
590
+ x: "left",
591
+ top: "center",
592
+ align: "left",
593
+ itemGap: 15
594
+ },
595
+ series: [
596
+ // 展示层
597
+ {
598
+ type: "pie",
599
+ center: a,
600
+ radius: n === 1 ? e ? ["10%", "65%"] : ["45%", "70%"] : ["0%", "65%"],
601
+ roseType: e,
602
+ itemStyle: {
603
+ borderRadius: 1
604
+ // color: (p: any) => {
605
+ // return {
606
+ // colorStops: [
607
+ // {
608
+ // offset: 0,
609
+ // color: `rgba(${colorRGBValue[p.dataIndex % colorRGBValue.length]}, 0.5)`, // 0% 处的颜色
610
+ // },
611
+ // {
612
+ // offset: 1,
613
+ // color: `rgba(${colorRGBValue[p.dataIndex % colorRGBValue.length]}, 1)`, // 100% 处的颜色
614
+ // },
615
+ // ],
616
+ // }
617
+ // },
618
+ },
619
+ label: {
620
+ show: l,
621
+ position: "outside",
622
+ alignTo: "labelLine",
623
+ backgroundColor: "#fff",
624
+ height: 0,
625
+ width: 0,
626
+ lineHeight: 0,
627
+ distanceToLabelLine: 0,
628
+ borderRadius: 3,
629
+ borderWidth: 1,
630
+ borderColor: "inherit",
631
+ padding: [3, -3, 3, -3],
632
+ formatter: function(r) {
633
+ return `{a|${r.name}(${r.value})}`;
634
+ },
635
+ rich: {
636
+ a: {
637
+ padding: [20, -80, 40, -80],
638
+ fontSize: "12px",
639
+ fontFamily: "MicrosoftYaHei",
640
+ color: "#091158"
641
+ },
642
+ b: {
643
+ padding: [0, -80, 55, -80],
644
+ fontSize: "15px",
645
+ fontFamily: "MicrosoftYaHei-Bold, MicrosoftYaHei",
646
+ fontWeight: "bold",
647
+ color: "#001F3D"
648
+ }
649
+ }
650
+ },
651
+ labelLine: {
652
+ show: !0,
653
+ length: 40,
654
+ length2: 85,
655
+ align: "right",
656
+ lineStyle: {
657
+ width: 1
658
+ }
659
+ },
660
+ data: t
661
+ }
662
+ ],
663
+ graphic: [
664
+ {
665
+ invisible: !1,
666
+ type: "text",
667
+ left: "center",
668
+ top: "44%",
669
+ style: {
670
+ text: "总量",
671
+ fontSize: 14,
672
+ fill: "#86909c",
673
+ fontWeight: "bold"
674
+ }
675
+ },
676
+ {
677
+ invisible: !1,
678
+ type: "text",
679
+ left: "center",
680
+ top: "50%",
681
+ style: {
682
+ text: "151",
683
+ fontSize: 18,
684
+ fill: "#86909c",
685
+ fontWeight: "bold"
686
+ }
687
+ }
688
+ ]
689
+ };
690
+ return d;
691
+ }, Oe = (t, n, e = { name: "name", value: "value" }) => {
692
+ t.xAxis.data = n.map((o) => o[e.name]), Array.isArray(e.value) ? e.value.forEach((o, l) => {
693
+ t.series[l].data = n.map((a) => a[o.value]);
694
+ }) : typeof e.value == "string" && (t.series[0].data = n.map((o) => o[e.value]));
695
+ }, je = () => ({
696
+ name: "",
697
+ type: "line",
698
+ symbol: "circle",
699
+ smooth: !0,
700
+ lineStyle: {
701
+ width: 1,
702
+ color: `rgba(${k[0]}, 1)`
703
+ // 线条颜色
704
+ },
705
+ showSymbol: !1,
706
+ itemStyle: {
707
+ color: `rgba(${k[0]}, 1)`,
708
+ //拐点颜色
709
+ label: {
710
+ show: !0,
711
+ //开启显示
712
+ position: "top",
713
+ //在上方显示
714
+ formatter: function(t) {
715
+ return t.value ? t.value : 0;
716
+ }
717
+ }
718
+ },
719
+ areaStyle: {
720
+ color: {
721
+ type: "linear",
722
+ x: 0,
723
+ y: 0,
724
+ x2: 0,
725
+ y2: 1,
726
+ colorStops: [
727
+ // 渐变颜色
728
+ {
729
+ offset: 0,
730
+ color: `rgba(${k[0]}, 0.7)`
731
+ },
732
+ {
733
+ offset: 1,
734
+ color: `rgba(${k[0]}, 0.1)`
735
+ }
736
+ ],
737
+ global: !1
738
+ }
739
+ },
740
+ data: []
741
+ }), ce = (t = [
742
+ {
743
+ name: "2024-08",
744
+ value: 63
745
+ },
746
+ {
747
+ name: "2024-09",
748
+ value: 45
749
+ },
750
+ {
751
+ name: "2024-10",
752
+ value: 43
753
+ }
754
+ ], n = { name: "name", value: "value" }) => {
755
+ const e = {
756
+ tooltip: {
757
+ trigger: "axis"
758
+ },
759
+ title: {
760
+ show: !0,
761
+ text: "样例数据",
762
+ textStyle: {
763
+ color: "#333",
764
+ fontSize: 18
765
+ },
766
+ x: 10,
767
+ y: 10
768
+ },
769
+ legend: {
770
+ show: !0,
771
+ itemWidth: 30,
772
+ textStyle: {
773
+ color: H,
774
+ fontSize: P,
775
+ padding: [0, 8, 0, 8]
776
+ }
777
+ },
778
+ grid: de(),
779
+ xAxis: {
780
+ type: "category",
781
+ splitLine: { show: !1 },
782
+ axisTick: { show: !1 },
783
+ axisLine: {
784
+ show: !0,
785
+ lineStyle: { color: ue }
786
+ },
787
+ axisLabel: {
788
+ show: !0,
789
+ fontSize: P,
790
+ color: H
791
+ },
792
+ boundaryGap: !1,
793
+ data: t.map((a) => a[n.name])
794
+ },
795
+ yAxis: {
796
+ name: "",
797
+ type: "value",
798
+ splitLine: { show: !1 },
799
+ axisLine: { show: !1 },
800
+ axisTick: { show: !1 },
801
+ nameTextStyle: {
802
+ fontSize: P,
803
+ color: H,
804
+ padding: [0, 60, 0, 0]
805
+ },
806
+ axisLabel: {
807
+ show: !0,
808
+ fontSize: P,
809
+ color: H
810
+ }
811
+ },
812
+ series: []
813
+ }, o = je(), l = [];
814
+ if (Array.isArray(n.value))
815
+ n.value.forEach((a, s) => {
816
+ const d = X(o);
817
+ d.name = a.name, d.lineStyle.color = `rgba(${k[s]}, 1)`, d.itemStyle.color = `rgba(${k[s]}, 1)`, d.areaStyle.color.colorStops[0].color = `rgba(${k[s]}, 0.7)`, d.areaStyle.color.colorStops[1].color = `rgba(${k[s]}, 0.1)`, d.data = t.map((r) => r[a.value]), l.push(d);
818
+ });
819
+ else if (typeof n.value == "string") {
820
+ const a = X(o);
821
+ a.data = t.map((s) => s[n.value]), l.push(a);
822
+ }
823
+ return e.series = l, e;
824
+ }, oe = [
825
+ { key: "assets", name: "资产名称" },
826
+ { key: "type", name: "资产类型" },
827
+ { key: "data", name: "资产数据" }
828
+ ], ne = [
829
+ { assets: "name1", type: "type1", data: "data1" },
830
+ { assets: "name2", type: "type2", data: "data2" },
831
+ { assets: "name3", type: "type3", data: "data3" }
832
+ ], Q = [
833
+ { data: [{ name: "默认数据", value: 180 }], label: "name1" },
834
+ { data: [{ name: "默认数据", value: 311 }], label: "name2" },
835
+ { data: [{ name: "默认数据", value: 42 }], label: "name3" },
836
+ { data: [{ name: "默认数据", value: 32391 }], label: "name4" }
837
+ ], Ne = [
838
+ {
839
+ data: 63,
840
+ label: "数据1"
841
+ },
842
+ {
843
+ data: 45,
844
+ label: "数据2"
845
+ },
846
+ {
847
+ data: 43,
848
+ label: "数据3"
849
+ }
850
+ ], qe = [
851
+ {
852
+ type: "report-select",
853
+ label: "资产:",
854
+ value: "0",
855
+ data: [
856
+ {
857
+ label: "全部",
858
+ data: "0"
859
+ },
860
+ {
861
+ label: "10.10.2.20_root",
862
+ data: "743dbb32-8a41-4990-9d76-48925b000a93"
863
+ },
864
+ {
865
+ label: "10.10.4.206_sysdba",
866
+ data: "23193788-c895-47a8-8123-65799540394c"
867
+ },
868
+ {
869
+ label: "10.10.4.26_root@/root/files/",
870
+ data: "bb7b07c9-b96b-4caf-ac76-bb45ae849844"
871
+ }
872
+ ],
873
+ uri: "/da/report/sens/get_asset_all",
874
+ id: B()
875
+ },
876
+ {
877
+ type: "range-time",
878
+ data: [
879
+ {
880
+ start_time: "2024-08-20 19:49:34",
881
+ end_time: "2024-09-12 19:49:34"
882
+ }
883
+ ],
884
+ id: B()
885
+ },
886
+ {
887
+ type: "h1",
888
+ data: "报表名称",
889
+ options: {
890
+ size: 24,
891
+ color: "rgba(0,0,0,0.85)",
892
+ fontWeight: 500,
893
+ letterSpacing: 0,
894
+ textIndent: 0,
895
+ textAlign: "left"
896
+ },
897
+ id: B()
898
+ },
899
+ {
900
+ type: "h2",
901
+ data: "一级标题",
902
+ name: "一级标题",
903
+ options: {
904
+ size: 18,
905
+ color: " rgba(0, 0, 0, 0.85)",
906
+ fontWeight: 500,
907
+ letterSpacing: 0,
908
+ textIndent: 0,
909
+ textAlign: "left"
910
+ },
911
+ id: B()
912
+ },
913
+ {
914
+ type: "report-table",
915
+ data: ne,
916
+ showColumn: oe,
917
+ name: "表格",
918
+ options: {
919
+ showColumn: {
920
+ assets: !0,
921
+ type: !0,
922
+ data: !0
923
+ },
924
+ border: !0,
925
+ showHeader: !0,
926
+ stripe: !1
927
+ },
928
+ rp_item_uuid: "",
929
+ id: B()
930
+ }
931
+ ];
932
+ te();
933
+ const Ge = (t) => ({
934
+ bar: {
935
+ type: "bar",
936
+ data: Q,
937
+ showColumn: [{ key: "label", value: "data" }],
938
+ name: "图表",
939
+ options: te(),
940
+ rp_item_uuid: "",
941
+ id: ""
942
+ },
943
+ line: {
944
+ type: "line",
945
+ data: Q,
946
+ showColumn: [{ key: "label", value: "data" }],
947
+ name: "图表",
948
+ options: ce(),
949
+ rp_item_uuid: "",
950
+ id: ""
951
+ },
952
+ pie: {
953
+ type: "pie",
954
+ data: Ne,
955
+ showColumn: [{ key: "label", value: "data" }],
956
+ name: "图表",
957
+ options: pe({ isLegend: !0 }),
958
+ rp_item_uuid: "",
959
+ id: ""
960
+ },
961
+ "report-table": {
962
+ type: "report-table",
963
+ data: ne,
964
+ showColumn: oe,
965
+ name: "表格",
966
+ options: {
967
+ showColumn: {
968
+ assect: !0,
969
+ type: !0,
970
+ data: !0
971
+ },
972
+ border: !0,
973
+ showHeader: !0,
974
+ stripe: !1
975
+ },
976
+ rp_item_uuid: "",
977
+ id: ""
978
+ }
979
+ })[t], O = $e("tds-report", {
980
+ state: () => ({
981
+ componentList: [],
982
+ activeComponents: {},
983
+ notDraggableList: [],
984
+ titleComponent: {},
985
+ filterForm: {
986
+ range_time: 1,
987
+ filter_uuid: ""
988
+ }
989
+ }),
990
+ getters: {
991
+ getActiveComponents: (t) => t.activeComponents
992
+ },
993
+ actions: {
994
+ // setComponentList
995
+ setComponentList(t) {
996
+ this.componentList = t;
997
+ },
998
+ async getReportDemo(t) {
999
+ let n = [];
1000
+ t ? n = (await Ue({ report_uuid: t })).data : n = { content: X(qe), range_time: 1 };
1001
+ const e = [];
1002
+ n.content.forEach((o) => {
1003
+ (o.type === "report-select" || o.type === "range-time") && e.push(o), o.type === "h1" && (this.titleComponent = o), o.id = B();
1004
+ }), this.notDraggableList = e, this.filterForm.range_time = n.range_time, this.filterForm.filter_uuid = n.filter_uuid, n.content.splice(0, 3), this.componentList = n.content;
1005
+ },
1006
+ setActiveComponents(t) {
1007
+ this.activeComponents = t;
1008
+ },
1009
+ clearComponents() {
1010
+ this.activeComponents = {}, this.componentList = [], this.notDraggableList = [], this.titleComponent = {}, this.filterForm = {
1011
+ range_time: 1,
1012
+ filter_uuid: ""
1013
+ };
1014
+ }
1015
+ }
1016
+ }), Je = { key: 0 }, Ke = { class: "sub-title" }, Ze = /* @__PURE__ */ L({
1017
+ name: "TdsReportConfig",
1018
+ __name: "Config",
1019
+ setup(t) {
1020
+ const n = O(), e = D(() => n.activeComponents);
1021
+ function o(r) {
1022
+ r ? (e.value.options.series[0].radius = ["10%", "65%"], e.value.options.graphic[0].invisible = !0, e.value.options.graphic[1].invisible = !0) : (e.value.options.series[0].radius = ["45%", "70%"], e.value.options.graphic[0].invisible = !1, e.value.options.graphic[1].invisible = !1);
1023
+ }
1024
+ const l = T("rgb(46, 145, 255)"), a = (r = "rgba(46, 145, 255, 0.7)", u = "rgba(46, 145, 255, 0.2)") => ({
1025
+ color: {
1026
+ type: "linear",
1027
+ x: 0,
1028
+ y: 0,
1029
+ x2: 0,
1030
+ y2: 1,
1031
+ colorStops: [
1032
+ {
1033
+ offset: 0,
1034
+ color: r
1035
+ },
1036
+ {
1037
+ offset: 0.8,
1038
+ color: u
1039
+ }
1040
+ ]
1041
+ }
1042
+ });
1043
+ function s(r) {
1044
+ r && (n.activeComponents.options.series[0].itemStyle = a(d(r, 0.7), d(r, 0.2)), n.activeComponents.options.series[1].itemStyle = a(d(r, 0.7), d(r, 0.2)), n.activeComponents.options.series[2].itemStyle = a(d(r, 0.9), d(r, 1)));
1045
+ }
1046
+ function d(r, u = 1) {
1047
+ r = r.replace(/^#/, "");
1048
+ const v = parseInt(r.substring(0, 2), 16), c = parseInt(r.substring(2, 4), 16), m = parseInt(r.substring(4, 6), 16);
1049
+ return `rgba(${v}, ${c}, ${m}, ${u})`;
1050
+ }
1051
+ return (r, u) => {
1052
+ const v = _("el-input"), c = _("el-form-item"), m = _("el-switch"), p = _("el-col"), x = _("el-color-picker"), C = _("el-input-number"), $ = _("el-row"), R = _("el-collapse-item"), S = _("el-collapse");
1053
+ return e.value.options.title ? (g(), V("div", Je, [
1054
+ i(c, { label: "标题" }, {
1055
+ default: f(() => [
1056
+ i(v, {
1057
+ modelValue: e.value.options.title.text,
1058
+ "onUpdate:modelValue": u[0] || (u[0] = (b) => e.value.options.title.text = b)
1059
+ }, null, 8, ["modelValue"])
1060
+ ]),
1061
+ _: 1
1062
+ }),
1063
+ i(S, null, {
1064
+ default: f(() => [
1065
+ i(R, {
1066
+ title: "标题配置",
1067
+ name: "1"
1068
+ }, {
1069
+ default: f(() => [
1070
+ i($, { class: "w-100%" }, {
1071
+ default: f(() => [
1072
+ i(p, { span: 24 }, {
1073
+ default: f(() => [
1074
+ u[9] || (u[9] = w("span", { class: "switch-label" }, "显示标题", -1)),
1075
+ i(m, {
1076
+ modelValue: e.value.options.title.show,
1077
+ "onUpdate:modelValue": u[1] || (u[1] = (b) => e.value.options.title.show = b)
1078
+ }, null, 8, ["modelValue"])
1079
+ ]),
1080
+ _: 1
1081
+ }),
1082
+ i(p, { span: 12 }, {
1083
+ default: f(() => [
1084
+ i(x, {
1085
+ modelValue: e.value.options.title.textStyle.color,
1086
+ "onUpdate:modelValue": u[2] || (u[2] = (b) => e.value.options.title.textStyle.color = b),
1087
+ "show-alpha": ""
1088
+ }, null, 8, ["modelValue"]),
1089
+ u[10] || (u[10] = w("p", { class: "sub-title" }, "颜色", -1))
1090
+ ]),
1091
+ _: 1
1092
+ }),
1093
+ i(p, { span: 12 }, {
1094
+ default: f(() => [
1095
+ i(C, {
1096
+ modelValue: e.value.options.title.textStyle.fontSize,
1097
+ "onUpdate:modelValue": u[3] || (u[3] = (b) => e.value.options.title.textStyle.fontSize = b),
1098
+ "controls-position": "right"
1099
+ }, null, 8, ["modelValue"]),
1100
+ u[11] || (u[11] = w("p", { class: "sub-title" }, "字体大小", -1))
1101
+ ]),
1102
+ _: 1
1103
+ }),
1104
+ i(p, { span: 12 }, {
1105
+ default: f(() => [
1106
+ i(C, {
1107
+ modelValue: e.value.options.title.x,
1108
+ "onUpdate:modelValue": u[4] || (u[4] = (b) => e.value.options.title.x = b),
1109
+ "controls-position": "right"
1110
+ }, null, 8, ["modelValue"]),
1111
+ u[12] || (u[12] = w("p", { class: "sub-title" }, "横向", -1))
1112
+ ]),
1113
+ _: 1
1114
+ }),
1115
+ i(p, { span: 12 }, {
1116
+ default: f(() => [
1117
+ i(C, {
1118
+ modelValue: e.value.options.title.y,
1119
+ "onUpdate:modelValue": u[5] || (u[5] = (b) => e.value.options.title.y = b),
1120
+ "controls-position": "right"
1121
+ }, null, 8, ["modelValue"]),
1122
+ u[13] || (u[13] = w("p", { class: "sub-title" }, "纵向", -1))
1123
+ ]),
1124
+ _: 1
1125
+ })
1126
+ ]),
1127
+ _: 1
1128
+ })
1129
+ ]),
1130
+ _: 1
1131
+ }),
1132
+ i(R, {
1133
+ title: "图形配置",
1134
+ name: "2"
1135
+ }, {
1136
+ default: f(() => [
1137
+ e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (g(), A($, { key: 0 }, {
1138
+ default: f(() => [
1139
+ i(p, { span: 24 }, {
1140
+ default: f(() => [
1141
+ u[14] || (u[14] = w("span", { class: "switch-label" }, "玫瑰图", -1)),
1142
+ i(m, {
1143
+ onChange: o,
1144
+ modelValue: e.value.options.series[0].roseType,
1145
+ "onUpdate:modelValue": u[6] || (u[6] = (b) => e.value.options.series[0].roseType = b)
1146
+ }, null, 8, ["modelValue"])
1147
+ ]),
1148
+ _: 1
1149
+ }),
1150
+ (g(!0), V(z, null, I(e.value.data, (b, U) => (g(), A(p, {
1151
+ span: 12,
1152
+ class: "mb-10px",
1153
+ key: U
1154
+ }, {
1155
+ default: f(() => [
1156
+ i(x, {
1157
+ modelValue: e.value.options.color[U],
1158
+ "onUpdate:modelValue": (y) => e.value.options.color[U] = y,
1159
+ "show-alpha": ""
1160
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]),
1161
+ w("p", Ke, ee(b.label), 1)
1162
+ ]),
1163
+ _: 2
1164
+ }, 1024))), 128))
1165
+ ]),
1166
+ _: 1
1167
+ })) : M("", !0),
1168
+ e.value.type === "bar" ? (g(), A($, { key: 1 }, {
1169
+ default: f(() => [
1170
+ i(p, { span: 12 }, {
1171
+ default: f(() => [
1172
+ i(x, {
1173
+ modelValue: l.value,
1174
+ "onUpdate:modelValue": u[7] || (u[7] = (b) => l.value = b),
1175
+ onChange: s
1176
+ }, null, 8, ["modelValue"]),
1177
+ u[15] || (u[15] = w("p", { class: "sub-title" }, "柱颜色", -1))
1178
+ ]),
1179
+ _: 1
1180
+ })
1181
+ ]),
1182
+ _: 1
1183
+ })) : M("", !0)
1184
+ ]),
1185
+ _: 1
1186
+ }),
1187
+ i(R, {
1188
+ title: "图例配置",
1189
+ name: "3"
1190
+ }, {
1191
+ default: f(() => [
1192
+ i($, null, {
1193
+ default: f(() => [
1194
+ i(p, { span: 24 }, {
1195
+ default: f(() => [
1196
+ u[16] || (u[16] = w("span", { class: "switch-label" }, "显示图例", -1)),
1197
+ e.value.options.legend ? (g(), A(m, {
1198
+ key: 0,
1199
+ modelValue: e.value.options.legend.show,
1200
+ "onUpdate:modelValue": u[8] || (u[8] = (b) => e.value.options.legend.show = b)
1201
+ }, null, 8, ["modelValue"])) : M("", !0)
1202
+ ]),
1203
+ _: 1
1204
+ })
1205
+ ]),
1206
+ _: 1
1207
+ })
1208
+ ]),
1209
+ _: 1
1210
+ })
1211
+ ]),
1212
+ _: 1
1213
+ })
1214
+ ])) : M("", !0);
1215
+ };
1216
+ }
1217
+ }), me = (t, n) => {
1218
+ const e = t.__vccOpts || t;
1219
+ for (const [o, l] of n)
1220
+ e[o] = l;
1221
+ return e;
1222
+ }, fe = /* @__PURE__ */ me(Ze, [["__scopeId", "data-v-9d35239c"]]), Xe = E(fe), Qe = { class: "chart-components" }, et = /* @__PURE__ */ L({
1223
+ name: "TdsReportLine",
1224
+ __name: "Line",
1225
+ props: {
1226
+ data: {}
1227
+ },
1228
+ setup(t) {
1229
+ const n = t, e = D(() => n.data.options);
1230
+ return (o, l) => {
1231
+ const a = _("TdsChart");
1232
+ return g(), V("div", Qe, [
1233
+ i(a, { option: e.value }, null, 8, ["option"])
1234
+ ]);
1235
+ };
1236
+ }
1237
+ }), tt = E(et), ot = { class: "chart-components" }, nt = /* @__PURE__ */ L({
1238
+ name: "TdsReportPie",
1239
+ __name: "Pie",
1240
+ props: {
1241
+ data: {}
1242
+ },
1243
+ setup(t) {
1244
+ const n = t, e = D(() => n.data.options);
1245
+ return (o, l) => {
1246
+ const a = _("TdsChart");
1247
+ return g(), V("div", ot, [
1248
+ i(a, { option: e.value }, null, 8, ["option"])
1249
+ ]);
1250
+ };
1251
+ }
1252
+ }), lt = E(nt), at = { class: "table-box" }, st = /* @__PURE__ */ L({
1253
+ name: "TdsReportInfo",
1254
+ __name: "Report",
1255
+ props: {
1256
+ prodType: {}
1257
+ },
1258
+ setup(t) {
1259
+ const e = Z({
1260
+ prod_type: t.prodType
1261
+ }), o = T(), l = (v) => {
1262
+ }, a = () => {
1263
+ }, s = (v) => {
1264
+ console.log(v);
1265
+ }, d = (v) => {
1266
+ }, r = (v) => {
1267
+ window == null || window.$messageBox("确定要删除吗?", "", "温馨提示", "error").then(async () => {
1268
+ await He({ report_uuids: v }), o.value.getTableList();
1269
+ });
1270
+ }, u = Z([
1271
+ // { type: 'selection', fixed: 'left', width: 70 },
1272
+ { type: "selection", width: 80 },
1273
+ { field: "report_name", name: "名称", search: { type: "input" } },
1274
+ { field: "report_desc", name: "报表描述" },
1275
+ { field: "create_time", name: "创建时间" },
1276
+ {
1277
+ field: "operation",
1278
+ width: 140,
1279
+ name: "操作",
1280
+ align: "center",
1281
+ fixed: "right",
1282
+ render: (v) => /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
1283
+ "el-button",
1284
+ {
1285
+ link: !0,
1286
+ type: "primary",
1287
+ class: "custom-btn",
1288
+ icon: "View",
1289
+ title: "预览",
1290
+ onClick: () => l(v.row)
1291
+ }
1292
+ ), /* @__PURE__ */ React.createElement(
1293
+ "el-button",
1294
+ {
1295
+ link: !0,
1296
+ type: "primary",
1297
+ class: "custom-btn",
1298
+ icon: "Edit",
1299
+ title: "编辑",
1300
+ onClick: () => d(v.row)
1301
+ }
1302
+ ), /* @__PURE__ */ React.createElement(
1303
+ "el-button",
1304
+ {
1305
+ link: !0,
1306
+ type: "danger",
1307
+ icon: "Delete",
1308
+ title: "删除",
1309
+ onClick: () => r([v.row.report_uuid])
1310
+ }
1311
+ ))
1312
+ }
1313
+ ]);
1314
+ return (v, c) => {
1315
+ const m = _("el-button"), p = _("TdsTable");
1316
+ return g(), V("div", at, [
1317
+ i(p, {
1318
+ ref_key: "proTable",
1319
+ ref: o,
1320
+ columns: u,
1321
+ "request-api": Fe,
1322
+ "init-param": e,
1323
+ "row-key": "report_uuid",
1324
+ options: v.$tableOptions(),
1325
+ "search-col": 6,
1326
+ onSelectionChange: s
1327
+ }, {
1328
+ tableHeader: f((x) => [
1329
+ i(m, {
1330
+ plain: "",
1331
+ type: "primary",
1332
+ class: "custom-btn",
1333
+ icon: "Plus",
1334
+ onClick: a
1335
+ }, {
1336
+ default: f(() => c[0] || (c[0] = [
1337
+ le("添加")
1338
+ ])),
1339
+ _: 1
1340
+ }),
1341
+ i(m, {
1342
+ plain: "",
1343
+ type: "danger",
1344
+ icon: "Delete",
1345
+ onClick: (C) => r(x.selectedListIds)
1346
+ }, {
1347
+ default: f(() => c[1] || (c[1] = [
1348
+ le("删除")
1349
+ ])),
1350
+ _: 2
1351
+ }, 1032, ["onClick"])
1352
+ ]),
1353
+ _: 1
1354
+ }, 8, ["columns", "request-api", "init-param", "options"])
1355
+ ]);
1356
+ };
1357
+ }
1358
+ }), rt = E(st), it = { key: 0 }, ut = /* @__PURE__ */ L({
1359
+ name: "TdsReportSelect",
1360
+ __name: "Select",
1361
+ props: {
1362
+ data: {}
1363
+ },
1364
+ emits: ["change"],
1365
+ setup(t, { emit: n }) {
1366
+ const e = n, o = (s) => {
1367
+ e("change", s);
1368
+ }, a = T(t.data);
1369
+ return (s, d) => {
1370
+ const r = _("el-option"), u = _("el-select");
1371
+ return a.value.data ? (g(), V("div", it, [
1372
+ i(u, {
1373
+ modelValue: a.value.value,
1374
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => a.value.value = v),
1375
+ multiple: "",
1376
+ style: { width: "100%" },
1377
+ onChange: o,
1378
+ placeholder: "全部"
1379
+ }, {
1380
+ default: f(() => [
1381
+ (g(!0), V(z, null, I(a.value.data, (v) => (g(), A(r, {
1382
+ key: v.data,
1383
+ label: v.label,
1384
+ value: v.data
1385
+ }, null, 8, ["label", "value"]))), 128))
1386
+ ]),
1387
+ _: 1
1388
+ }, 8, ["modelValue"])
1389
+ ])) : M("", !0);
1390
+ };
1391
+ }
1392
+ }), dt = E(ut), pt = { class: "label" }, ct = { class: "flex item-switch" }, mt = { class: "flex item-switch" }, ft = { class: "flex item-switch" }, ve = /* @__PURE__ */ L({
1393
+ name: "TdsSettingTable",
1394
+ __name: "SettingTable",
1395
+ setup(t) {
1396
+ const n = O(), e = D(() => n.getActiveComponents);
1397
+ return (o, l) => {
1398
+ const a = _("el-switch"), s = _("el-form-item"), d = _("el-divider");
1399
+ return g(), V("div", null, [
1400
+ i(s, { label: "控制列" }, {
1401
+ default: f(() => [
1402
+ (g(!0), V(z, null, I(e.value.showColumn, (r, u) => (g(), V("p", {
1403
+ class: "flex item-switch",
1404
+ key: u
1405
+ }, [
1406
+ w("span", pt, ee(r.name), 1),
1407
+ i(a, {
1408
+ modelValue: e.value.options.showColumn[r.key],
1409
+ "onUpdate:modelValue": (v) => e.value.options.showColumn[r.key] = v
1410
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
1411
+ ]))), 128))
1412
+ ]),
1413
+ _: 1
1414
+ }),
1415
+ i(d),
1416
+ i(s, { label: "表格样式" }, {
1417
+ default: f(() => [
1418
+ w("p", ct, [
1419
+ l[3] || (l[3] = w("span", { class: "label" }, "斑马纹", -1)),
1420
+ i(a, {
1421
+ modelValue: e.value.options.stripe,
1422
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => e.value.options.stripe = r)
1423
+ }, null, 8, ["modelValue"])
1424
+ ]),
1425
+ w("p", mt, [
1426
+ l[4] || (l[4] = w("span", { class: "label" }, "边框", -1)),
1427
+ i(a, {
1428
+ modelValue: e.value.options.border,
1429
+ "onUpdate:modelValue": l[1] || (l[1] = (r) => e.value.options.border = r)
1430
+ }, null, 8, ["modelValue"])
1431
+ ]),
1432
+ w("p", ft, [
1433
+ l[5] || (l[5] = w("span", { class: "label" }, "表头", -1)),
1434
+ i(a, {
1435
+ modelValue: e.value.options.showHeader,
1436
+ "onUpdate:modelValue": l[2] || (l[2] = (r) => e.value.options.showHeader = r)
1437
+ }, null, 8, ["modelValue"])
1438
+ ])
1439
+ ]),
1440
+ _: 1
1441
+ })
1442
+ ]);
1443
+ };
1444
+ }
1445
+ }), vt = /* @__PURE__ */ L({
1446
+ name: "TdsSettingCharts",
1447
+ __name: "SettingCharts",
1448
+ props: {
1449
+ prodType: {}
1450
+ },
1451
+ setup(t) {
1452
+ const n = t, e = O(), o = T(!1), l = D(() => e.getActiveComponents), a = [
1453
+ { value: "report-table", name: "表格" },
1454
+ { value: "line", name: "趋势图" },
1455
+ { value: "pie", name: "扇形图" },
1456
+ { value: "bar", name: "柱状图" }
1457
+ ], s = T(""), d = T();
1458
+ async function r(c) {
1459
+ const m = await re({
1460
+ prod_type: n.prodType,
1461
+ chart_type: c,
1462
+ filter_uuid: e.filterForm.filter_uuid
1463
+ });
1464
+ d.value = m.data;
1465
+ }
1466
+ function u(c) {
1467
+ let m = d.value.find((x) => x.rp_item_uuid === c);
1468
+ const p = m.rp_item_content;
1469
+ if (m.rp_item_content.type === "bar") {
1470
+ p.options = te();
1471
+ const x = [];
1472
+ let C = "";
1473
+ p.data.forEach(($) => {
1474
+ C = $.data[0].name, x.push({
1475
+ name: $.label,
1476
+ value: $.data[0].value
1477
+ });
1478
+ }), Be(p.options, x, C);
1479
+ }
1480
+ if (p.type === "pie" && (p.options = pe({ isLegend: !0 }), Pe({ chartOption: p.options, data: p.data })), p.type === "line") {
1481
+ let x = [];
1482
+ p.data.forEach((R) => {
1483
+ x = R.data.map((S, b) => ({ name: S.name, value: "value" + b }));
1484
+ });
1485
+ const C = {
1486
+ name: "name",
1487
+ value: x
1488
+ }, $ = p.data.map((R) => {
1489
+ const S = {
1490
+ name: R.label
1491
+ };
1492
+ return x.forEach((b, U) => {
1493
+ S[b.value] = R.data[U].value;
1494
+ }), S;
1495
+ });
1496
+ p.options = ce([], C), Oe(p.options, $, C);
1497
+ }
1498
+ if (p.type === "report-table") {
1499
+ const x = {};
1500
+ p.showColumn.forEach((C) => {
1501
+ x[C.key] = !0;
1502
+ }), p.options = { ...p.options, showColumn: x, border: !0, showHeader: !0, stripe: !1 };
1503
+ }
1504
+ Object.assign(e.activeComponents, p), e.activeComponents.rp_item_uuid = m.rp_item_uuid;
1505
+ }
1506
+ q(async () => {
1507
+ s.value = l.value.type, await r(s.value);
1508
+ });
1509
+ async function v(c) {
1510
+ try {
1511
+ o.value = !0, await r(c), Object.assign(e.activeComponents, Ge(c)), o.value = !1;
1512
+ } catch {
1513
+ o.value = !1;
1514
+ }
1515
+ }
1516
+ return J(
1517
+ () => l.value,
1518
+ (c) => {
1519
+ ~["bar", "pie", "line", "report-table"].indexOf(c.type) && (s.value = l.value.type, r(s.value));
1520
+ }
1521
+ ), (c, m) => {
1522
+ const p = _("el-option"), x = _("el-select"), C = _("el-form-item"), $ = _("el-form"), R = xe("loading");
1523
+ return we((g(), V("div", null, [
1524
+ i($, { "label-position": "top" }, {
1525
+ default: f(() => [
1526
+ i(C, { label: "图表类型" }, {
1527
+ default: f(() => [
1528
+ i(x, {
1529
+ style: { width: "100%" },
1530
+ modelValue: s.value,
1531
+ "onUpdate:modelValue": m[0] || (m[0] = (S) => s.value = S),
1532
+ onChange: v
1533
+ }, {
1534
+ default: f(() => [
1535
+ (g(), V(z, null, I(a, (S, b) => i(p, {
1536
+ key: b,
1537
+ label: S.name,
1538
+ value: S.value
1539
+ }, null, 8, ["label", "value"])), 64))
1540
+ ]),
1541
+ _: 1
1542
+ }, 8, ["modelValue"])
1543
+ ]),
1544
+ _: 1
1545
+ }),
1546
+ i(C, { label: "组件库" }, {
1547
+ default: f(() => [
1548
+ i(x, {
1549
+ style: { width: "100%" },
1550
+ modelValue: h(e).activeComponents.rp_item_uuid,
1551
+ "onUpdate:modelValue": m[1] || (m[1] = (S) => h(e).activeComponents.rp_item_uuid = S),
1552
+ onChange: u
1553
+ }, {
1554
+ default: f(() => [
1555
+ (g(!0), V(z, null, I(d.value, (S, b) => (g(), A(p, {
1556
+ key: b,
1557
+ label: S.rp_item_name,
1558
+ value: S.rp_item_uuid
1559
+ }, null, 8, ["label", "value"]))), 128))
1560
+ ]),
1561
+ _: 1
1562
+ }, 8, ["modelValue"])
1563
+ ]),
1564
+ _: 1
1565
+ }),
1566
+ s.value === "report-table" && l.value.options.showColumn ? (g(), A(ve, { key: 0 })) : M("", !0),
1567
+ s.value === "pie" || s.value === "bar" || s.value === "line" ? (g(), A(fe, { key: 1 })) : M("", !0)
1568
+ ]),
1569
+ _: 1
1570
+ })
1571
+ ])), [
1572
+ [R, o.value]
1573
+ ]);
1574
+ };
1575
+ }
1576
+ }), _t = E(vt), gt = /* @__PURE__ */ L({
1577
+ name: "TdsSettingFilter",
1578
+ __name: "settingFilter",
1579
+ props: {
1580
+ prodType: {}
1581
+ },
1582
+ setup(t) {
1583
+ const n = t, e = T([]), o = O();
1584
+ async function l() {
1585
+ const a = await Me({ prod_type: n.prodType });
1586
+ e.value = a.data;
1587
+ }
1588
+ return l(), (a, s) => {
1589
+ const d = _("el-option"), r = _("el-select"), u = _("el-form-item"), v = _("el-checkbox"), c = _("el-form");
1590
+ return g(), A(c, {
1591
+ "label-width": "80px",
1592
+ "label-position": "top"
1593
+ }, {
1594
+ default: f(() => [
1595
+ i(u, { label: "筛选条件" }, {
1596
+ default: f(() => [
1597
+ i(r, {
1598
+ modelValue: h(o).filterForm.filter_uuid,
1599
+ "onUpdate:modelValue": s[0] || (s[0] = (m) => h(o).filterForm.filter_uuid = m),
1600
+ disabled: !!h(o).filterForm.filter_uuid
1601
+ }, {
1602
+ default: f(() => [
1603
+ (g(!0), V(z, null, I(e.value, (m) => (g(), A(d, {
1604
+ key: m.filter_uuid,
1605
+ label: m.filter_name,
1606
+ value: m.filter_uuid
1607
+ }, null, 8, ["label", "value"]))), 128))
1608
+ ]),
1609
+ _: 1
1610
+ }, 8, ["modelValue", "disabled"])
1611
+ ]),
1612
+ _: 1
1613
+ }),
1614
+ i(u, null, {
1615
+ default: f(() => [
1616
+ i(v, {
1617
+ modelValue: h(o).filterForm.range_time,
1618
+ "onUpdate:modelValue": s[1] || (s[1] = (m) => h(o).filterForm.range_time = m),
1619
+ "true-value": 1,
1620
+ "false-value": 0,
1621
+ label: "时间范围"
1622
+ }, null, 8, ["modelValue"])
1623
+ ]),
1624
+ _: 1
1625
+ })
1626
+ ]),
1627
+ _: 1
1628
+ });
1629
+ };
1630
+ }
1631
+ }), bt = E(gt), yt = E(ve), ht = { key: 0 }, Tt = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ae = "default", xt = /* @__PURE__ */ L({
1632
+ name: "TdsSettingText",
1633
+ __name: "settingText",
1634
+ props: {
1635
+ prodType: {}
1636
+ },
1637
+ setup(t) {
1638
+ const n = t, e = O(), o = Se(), l = T();
1639
+ function a(c) {
1640
+ const m = l.value.find((p) => p.rp_item_uuid === c);
1641
+ e.activeComponents.uri = m.rp_item_content.uri, o.value.setHtml((m == null ? void 0 : m.rp_item_content.data) || "");
1642
+ }
1643
+ async function s() {
1644
+ const c = await re({
1645
+ prod_type: n.prodType,
1646
+ chart_type: "p",
1647
+ filter_uuid: e.filterForm.filter_uuid
1648
+ });
1649
+ l.value = c.data;
1650
+ }
1651
+ s();
1652
+ const d = {
1653
+ toolbarKeys: [
1654
+ "bold",
1655
+ "underline",
1656
+ "italic",
1657
+ "through",
1658
+ "code",
1659
+ "bulletedList",
1660
+ // 无序列表
1661
+ "numberedList",
1662
+ // 有序列表
1663
+ "clearStyle",
1664
+ "color",
1665
+ "bgColor",
1666
+ "fontSize",
1667
+ "fontFamily",
1668
+ "justifyLeft",
1669
+ "justifyRight",
1670
+ "justifyCenter",
1671
+ "justifyJustify",
1672
+ "lineHeight"
1673
+ ]
1674
+ }, r = { placeholder: "请输入内容..." }, u = (c) => {
1675
+ o.value = c;
1676
+ }, v = (c) => {
1677
+ };
1678
+ return G(() => {
1679
+ const c = o.value;
1680
+ c != null && c.destroy();
1681
+ }), (c, m) => {
1682
+ const p = _("el-option"), x = _("el-select"), C = _("el-form-item"), $ = _("el-form");
1683
+ return h(e).activeComponents.id ? (g(), V("div", ht, [
1684
+ i($, { "label-position": "top" }, {
1685
+ default: f(() => [
1686
+ i(C, { label: "组件库" }, {
1687
+ default: f(() => [
1688
+ i(x, {
1689
+ style: { width: "100%" },
1690
+ modelValue: h(e).activeComponents.rp_item_uuid,
1691
+ "onUpdate:modelValue": m[0] || (m[0] = (R) => h(e).activeComponents.rp_item_uuid = R),
1692
+ onChange: a
1693
+ }, {
1694
+ default: f(() => [
1695
+ (g(!0), V(z, null, I(l.value, (R, S) => (g(), A(p, {
1696
+ key: S,
1697
+ label: R.rp_item_name,
1698
+ value: R.rp_item_uuid
1699
+ }, null, 8, ["label", "value"]))), 128))
1700
+ ]),
1701
+ _: 1
1702
+ }, 8, ["modelValue"])
1703
+ ]),
1704
+ _: 1
1705
+ }),
1706
+ i(C, { label: "文本内容" }, {
1707
+ default: f(() => [
1708
+ w("div", Tt, [
1709
+ i(h(ke), {
1710
+ style: { "border-bottom": "1px solid #ccc" },
1711
+ editor: o.value,
1712
+ "default-config": d,
1713
+ mode: ae
1714
+ }, null, 8, ["editor"]),
1715
+ i(h(Le), {
1716
+ style: { height: "500px", "overflow-y": "hidden" },
1717
+ onOnChange: v,
1718
+ modelValue: h(e).activeComponents.data,
1719
+ "onUpdate:modelValue": m[1] || (m[1] = (R) => h(e).activeComponents.data = R),
1720
+ "default-config": r,
1721
+ mode: ae,
1722
+ onOnCreated: u
1723
+ }, null, 8, ["modelValue"])
1724
+ ])
1725
+ ]),
1726
+ _: 1
1727
+ })
1728
+ ]),
1729
+ _: 1
1730
+ })
1731
+ ])) : M("", !0);
1732
+ };
1733
+ }
1734
+ }), wt = E(xt), St = /* @__PURE__ */ L({
1735
+ name: "TdsSettingTitle",
1736
+ __name: "settingTitle",
1737
+ setup(t) {
1738
+ const n = O();
1739
+ return (e, o) => {
1740
+ const l = _("el-input"), a = _("el-form-item"), s = _("el-color-picker"), d = _("el-col"), r = _("el-input-number"), u = _("el-option"), v = _("el-select"), c = _("el-row"), m = _("el-form");
1741
+ return g(), A(m, {
1742
+ "label-width": "auto",
1743
+ "label-position": "top"
1744
+ }, {
1745
+ default: f(() => [
1746
+ i(a, { label: "名称" }, {
1747
+ default: f(() => [
1748
+ i(l, {
1749
+ modelValue: h(n).activeComponents.data,
1750
+ "onUpdate:modelValue": o[0] || (o[0] = (p) => h(n).activeComponents.data = p),
1751
+ placeholder: "Please input",
1752
+ maxlength: "24",
1753
+ "show-word-limit": ""
1754
+ }, null, 8, ["modelValue"])
1755
+ ]),
1756
+ _: 1
1757
+ }),
1758
+ i(a, { label: "样式" }, {
1759
+ default: f(() => [
1760
+ i(c, { gutter: 20 }, {
1761
+ default: f(() => [
1762
+ i(d, { span: 12 }, {
1763
+ default: f(() => [
1764
+ i(s, {
1765
+ modelValue: h(n).activeComponents.options.color,
1766
+ "onUpdate:modelValue": o[1] || (o[1] = (p) => h(n).activeComponents.options.color = p),
1767
+ "show-alpha": ""
1768
+ }, null, 8, ["modelValue"]),
1769
+ o[7] || (o[7] = w("p", { class: "sub-title" }, "颜色", -1))
1770
+ ]),
1771
+ _: 1
1772
+ }),
1773
+ i(d, { span: 12 }, {
1774
+ default: f(() => [
1775
+ i(r, {
1776
+ modelValue: h(n).activeComponents.options.size,
1777
+ "onUpdate:modelValue": o[2] || (o[2] = (p) => h(n).activeComponents.options.size = p),
1778
+ "controls-position": "right"
1779
+ }, null, 8, ["modelValue"]),
1780
+ o[8] || (o[8] = w("p", { class: "sub-title" }, "字体大小", -1))
1781
+ ]),
1782
+ _: 1
1783
+ }),
1784
+ i(d, { span: 12 }, {
1785
+ default: f(() => [
1786
+ i(v, {
1787
+ modelValue: h(n).activeComponents.options.fontWeight,
1788
+ "onUpdate:modelValue": o[3] || (o[3] = (p) => h(n).activeComponents.options.fontWeight = p)
1789
+ }, {
1790
+ default: f(() => [
1791
+ i(u, {
1792
+ label: "常规",
1793
+ value: 500
1794
+ }),
1795
+ i(u, {
1796
+ label: "加粗",
1797
+ value: 600
1798
+ })
1799
+ ]),
1800
+ _: 1
1801
+ }, 8, ["modelValue"]),
1802
+ o[9] || (o[9] = w("p", { class: "sub-title" }, "字体粗细", -1))
1803
+ ]),
1804
+ _: 1
1805
+ }),
1806
+ i(d, { span: 12 }, {
1807
+ default: f(() => [
1808
+ i(r, {
1809
+ modelValue: h(n).activeComponents.options.letterSpacing,
1810
+ "onUpdate:modelValue": o[4] || (o[4] = (p) => h(n).activeComponents.options.letterSpacing = p),
1811
+ "controls-position": "right"
1812
+ }, null, 8, ["modelValue"]),
1813
+ o[10] || (o[10] = w("p", { class: "sub-title" }, "字间距", -1))
1814
+ ]),
1815
+ _: 1
1816
+ }),
1817
+ i(d, { span: 12 }, {
1818
+ default: f(() => [
1819
+ i(r, {
1820
+ modelValue: h(n).activeComponents.options.textIndent,
1821
+ "onUpdate:modelValue": o[5] || (o[5] = (p) => h(n).activeComponents.options.textIndent = p),
1822
+ "controls-position": "right"
1823
+ }, null, 8, ["modelValue"]),
1824
+ o[11] || (o[11] = w("p", { class: "sub-title" }, "首行缩进", -1))
1825
+ ]),
1826
+ _: 1
1827
+ }),
1828
+ i(d, { span: 12 }, {
1829
+ default: f(() => [
1830
+ i(v, {
1831
+ modelValue: h(n).activeComponents.options.textAlign,
1832
+ "onUpdate:modelValue": o[6] || (o[6] = (p) => h(n).activeComponents.options.textAlign = p)
1833
+ }, {
1834
+ default: f(() => [
1835
+ i(u, {
1836
+ label: "左对齐",
1837
+ value: "left"
1838
+ }),
1839
+ i(u, {
1840
+ label: "居中对齐",
1841
+ value: "center"
1842
+ }),
1843
+ i(u, {
1844
+ label: "右对齐",
1845
+ value: "right"
1846
+ })
1847
+ ]),
1848
+ _: 1
1849
+ }, 8, ["modelValue"]),
1850
+ o[12] || (o[12] = w("p", { class: "sub-title" }, "位置", -1))
1851
+ ]),
1852
+ _: 1
1853
+ })
1854
+ ]),
1855
+ _: 1
1856
+ })
1857
+ ]),
1858
+ _: 1
1859
+ })
1860
+ ]),
1861
+ _: 1
1862
+ });
1863
+ };
1864
+ }
1865
+ }), Ct = /* @__PURE__ */ me(St, [["__scopeId", "data-v-86e0f9f6"]]), Vt = E(Ct), Rt = /* @__PURE__ */ L({
1866
+ name: "TdsReportTable",
1867
+ __name: "Table",
1868
+ props: {
1869
+ data: {}
1870
+ },
1871
+ setup(t) {
1872
+ const n = t, e = (o) => /* @__PURE__ */ React.createElement(
1873
+ "el-table",
1874
+ {
1875
+ data: o.data,
1876
+ border: n.data.options.border,
1877
+ "show-header": !!n.data.options.showHeader,
1878
+ stripe: n.data.options.stripe
1879
+ },
1880
+ o.showColumn.map((l) => n.data.options.showColumn[l.key] === !0 ? /* @__PURE__ */ React.createElement("el-table-column", { prop: l.key, label: l.name }) : null)
1881
+ );
1882
+ return (o, l) => (g(), V("div", null, [
1883
+ i(e, Ce(Ve(o.data)), null, 16)
1884
+ ]));
1885
+ }
1886
+ }), $t = E(Rt), kt = /* @__PURE__ */ L({
1887
+ name: "TdsReportText",
1888
+ __name: "Text",
1889
+ props: {
1890
+ data: {}
1891
+ },
1892
+ setup(t) {
1893
+ const n = t, e = () => {
1894
+ const o = n.data.options || {};
1895
+ return {
1896
+ color: o.color,
1897
+ "font-size": o.size + "px",
1898
+ "font-weight": o.fontWeight,
1899
+ "letter-spacing": o.letterSpacing + "px",
1900
+ "text-indent": o.textIndent + "px",
1901
+ "text-align": o.textAlign
1902
+ };
1903
+ };
1904
+ return (o, l) => (g(), V("div", {
1905
+ style: Re(e())
1906
+ }, ee(o.data.data), 5));
1907
+ }
1908
+ }), Lt = E(kt), Et = /* @__PURE__ */ L({
1909
+ name: "TdsReportTime",
1910
+ __name: "Time",
1911
+ props: {
1912
+ data: {}
1913
+ },
1914
+ emits: ["change"],
1915
+ setup(t, { emit: n }) {
1916
+ const e = n, l = T(t.data), a = T([]);
1917
+ function s(d) {
1918
+ d ? (l.value.data[0].start_time = d[0], l.value.data[0].end_time = d[1]) : a.value = [], e("change", a.value);
1919
+ }
1920
+ return q(() => {
1921
+ a.value = [l.value.data[0].start_time, l.value.data[0].end_time];
1922
+ }), (d, r) => {
1923
+ const u = _("el-date-picker");
1924
+ return g(), V("div", null, [
1925
+ i(u, {
1926
+ modelValue: a.value,
1927
+ "onUpdate:modelValue": r[0] || (r[0] = (v) => a.value = v),
1928
+ type: "datetimerange",
1929
+ placeholder: "Pick a Date",
1930
+ format: "YYYY-MM-DD HH:mm:ss",
1931
+ "value-format": "YYYY-MM-DD HH:mm:ss",
1932
+ onChange: s,
1933
+ clearable: !1
1934
+ }, null, 8, ["modelValue"])
1935
+ ]);
1936
+ };
1937
+ }
1938
+ }), At = E(Et), Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1939
+ __proto__: null,
1940
+ TdsReportBar: De,
1941
+ TdsReportConfig: Xe,
1942
+ TdsReportInfo: rt,
1943
+ TdsReportLine: tt,
1944
+ TdsReportPie: lt,
1945
+ TdsReportSelect: dt,
1946
+ TdsReportTable: $t,
1947
+ TdsReportText: Lt,
1948
+ TdsReportTime: At,
1949
+ TdsSettingCharts: _t,
1950
+ TdsSettingFilter: bt,
1951
+ TdsSettingTable: yt,
1952
+ TdsSettingText: wt,
1953
+ TdsSettingTitle: Vt
1954
+ }, Symbol.toStringTag, { value: "Module" })), _e = {
1955
+ TdsReportBar: "TdsReportBar",
1956
+ TdsReportConfig: "TdsReportConfig",
1957
+ TdsReportLine: "TdsReportLine",
1958
+ TdsReportPie: "TdsReportPie",
1959
+ TdsReportInfo: "TdsReportInfo",
1960
+ TdsReportSelect: "TdsReportSelect",
1961
+ TdsSettingCharts: "TdsSettingCharts",
1962
+ TdsSettingFilter: "TdsSettingFilter",
1963
+ TdsSettingTable: "TdsSettingTable",
1964
+ TdsSettingText: "TdsSettingText",
1965
+ TdsSettingTitle: "TdsSettingTitle",
1966
+ TdsReportTable: "TdsReportTable",
1967
+ TdsReportText: "TdsReportText",
1968
+ TdsReportTime: "TdsReportTime"
1969
+ }, se = {
316
1970
  BackTop: ["Tooltip"]
317
1971
  };
318
- function Q(e, t) {
319
- if (["NumberAnimation", "Watermark"].includes(e))
1972
+ function Ut(t, n) {
1973
+ if (["NumberAnimation", "Watermark"].includes(t))
320
1974
  return [];
321
- const n = [e];
322
- e in A && n.push(...A[e]);
323
- const r = t != null && t.cjs ? "lib" : "es", o = [`@topdatasec/report/${r}/style/global.css`];
324
- return n.forEach((s) => {
325
- o.push(
326
- `@topdatasec/report/${r}/${R[s]}/${s}.css`
1975
+ const e = [t];
1976
+ t in se && e.push(...se[t]);
1977
+ const o = n != null && n.cjs ? "lib" : "es", l = [`@topdatasec/report/${o}/style/global.css`];
1978
+ return e.forEach((a) => {
1979
+ l.push(
1980
+ `@topdatasec/report/${o}/${_e[a]}/${a}.css`
327
1981
  );
328
- }), o;
1982
+ }), l;
329
1983
  }
330
- function he(e) {
1984
+ function eo(t) {
331
1985
  return {
332
1986
  type: "component",
333
- resolve: (t) => {
334
- if (t in R)
1987
+ resolve: (n) => {
1988
+ if (n in _e)
335
1989
  return {
336
- name: t,
1990
+ name: n,
337
1991
  // 组件名
338
1992
  from: "@topdatasec/report",
339
1993
  // 组件库名称
340
- sideEffects: Q(t, e)
1994
+ sideEffects: Ut(n, t)
341
1995
  // 组件样式文件
342
1996
  };
343
1997
  }
344
1998
  };
345
1999
  }
346
- const ee = function(e) {
347
- return Object.values(G).forEach((t) => {
348
- t && t.install && e.use(t);
349
- }), e;
350
- }, ge = {
351
- install: ee
2000
+ const Ft = function(t) {
2001
+ return Object.values(Dt).forEach((n) => {
2002
+ n && n.install && t.use(n);
2003
+ }), t;
2004
+ }, to = {
2005
+ install: Ft
352
2006
  };
353
2007
  export {
354
- Z as TdsReportBar,
355
- he as VueAmazingUIResolver,
356
- ce as add,
357
- se as cancelRaf,
358
- ne as dateFormat,
359
- K as debounce,
360
- ge as default,
361
- ae as downloadFile,
362
- re as formatNumber,
363
- ee as install,
364
- oe as rafTimeout,
365
- J as throttle,
366
- le as toggleDark,
367
- ie as useEventListener,
368
- de as useFps,
369
- me as useMediaQuery,
370
- ue as useMutationObserver,
371
- ve as useResizeObserver,
372
- fe as useScroll,
373
- pe as useSlotsExist
2008
+ De as TdsReportBar,
2009
+ Xe as TdsReportConfig,
2010
+ rt as TdsReportInfo,
2011
+ tt as TdsReportLine,
2012
+ lt as TdsReportPie,
2013
+ dt as TdsReportSelect,
2014
+ $t as TdsReportTable,
2015
+ Lt as TdsReportText,
2016
+ At as TdsReportTime,
2017
+ _t as TdsSettingCharts,
2018
+ bt as TdsSettingFilter,
2019
+ yt as TdsSettingTable,
2020
+ wt as TdsSettingText,
2021
+ Vt as TdsSettingTitle,
2022
+ eo as VueAmazingUIResolver,
2023
+ Ot as add,
2024
+ Wt as cancelRaf,
2025
+ Yt as dateFormat,
2026
+ Ie as debounce,
2027
+ to as default,
2028
+ jt as downloadFile,
2029
+ Bt as formatNumber,
2030
+ Ft as install,
2031
+ Pt as rafTimeout,
2032
+ ze as throttle,
2033
+ Nt as toggleDark,
2034
+ qt as useEventListener,
2035
+ Kt as useFps,
2036
+ Zt as useMediaQuery,
2037
+ Gt as useMutationObserver,
2038
+ Xt as useResizeObserver,
2039
+ Jt as useScroll,
2040
+ Qt as useSlotsExist
374
2041
  };