@topdatasec/report 1.0.7 → 1.0.8

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 (103) hide show
  1. package/dist/index.iife.js +1 -1
  2. package/dist/index.js +790 -245
  3. package/dist/index.umd.cjs +1 -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 +2 -0
  8. package/es/components.js +6 -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 +26 -22
  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/pie/Pie.d.ts +5 -0
  22. package/es/pie/index.d.ts +15 -0
  23. package/es/report/Report.d.ts +7 -0
  24. package/es/report/index.d.ts +17 -0
  25. package/es/select/Select.d.ts +9 -0
  26. package/es/select/index.d.ts +25 -0
  27. package/es/settingCharts/SettingCharts.d.ts +5 -0
  28. package/es/settingCharts/index.d.ts +14 -0
  29. package/es/settingFilter/index.d.ts +15 -0
  30. package/es/settingFilter/settingFilter.d.ts +5 -0
  31. package/es/settingTable/SettingTable.d.ts +2 -0
  32. package/es/settingTable/index.d.ts +14 -0
  33. package/es/settingText/index.d.ts +15 -0
  34. package/es/settingText/settingText.d.ts +5 -0
  35. package/es/settingTitle/index.d.ts +14 -0
  36. package/es/settingTitle/settingTitle.d.ts +2 -0
  37. package/es/stores/interface/index.d.ts +18 -0
  38. package/es/stores/modules/report.d.ts +35 -0
  39. package/es/stores/modules/report.js +45 -0
  40. package/es/table/Table.d.ts +5 -0
  41. package/es/table/index.d.ts +15 -0
  42. package/es/text/Text.d.ts +5 -0
  43. package/es/text/index.d.ts +15 -0
  44. package/es/time/Time.d.ts +9 -0
  45. package/es/time/index.d.ts +25 -0
  46. package/es/utils/api.d.ts +12 -0
  47. package/es/utils/api.js +9 -0
  48. package/es/utils/chartsOption.d.ts +298 -0
  49. package/es/utils/chartsOption.js +187 -0
  50. package/es/utils/data.d.ts +4 -0
  51. package/es/utils/data.js +101 -0
  52. package/es/utils/index.d.ts +2 -0
  53. package/es/utils/index.js +82 -79
  54. package/lib/_virtual/_plugin-vue_export-helper.cjs +1 -0
  55. package/lib/bar/Bar.vue.cjs +1 -1
  56. package/lib/components.cjs +1 -1
  57. package/lib/components.d.ts +2 -0
  58. package/lib/config/Config.css +1 -0
  59. package/lib/config/Config.d.ts +2 -0
  60. package/lib/config/Config.vue.cjs +1 -0
  61. package/lib/config/Config.vue2.cjs +1 -0
  62. package/lib/config/index.cjs +1 -0
  63. package/lib/config/index.d.ts +14 -0
  64. package/lib/index.cjs +1 -1
  65. package/lib/line/Line.d.ts +5 -0
  66. package/lib/line/Line.vue.cjs +1 -0
  67. package/lib/line/Line.vue2.cjs +1 -0
  68. package/lib/line/index.cjs +1 -0
  69. package/lib/line/index.d.ts +15 -0
  70. package/lib/pie/Pie.d.ts +5 -0
  71. package/lib/pie/index.d.ts +15 -0
  72. package/lib/report/Report.d.ts +7 -0
  73. package/lib/report/index.d.ts +17 -0
  74. package/lib/select/Select.d.ts +9 -0
  75. package/lib/select/index.d.ts +25 -0
  76. package/lib/settingCharts/SettingCharts.d.ts +5 -0
  77. package/lib/settingCharts/index.d.ts +14 -0
  78. package/lib/settingFilter/index.d.ts +15 -0
  79. package/lib/settingFilter/settingFilter.d.ts +5 -0
  80. package/lib/settingTable/SettingTable.d.ts +2 -0
  81. package/lib/settingTable/index.d.ts +14 -0
  82. package/lib/settingText/index.d.ts +15 -0
  83. package/lib/settingText/settingText.d.ts +5 -0
  84. package/lib/settingTitle/index.d.ts +14 -0
  85. package/lib/settingTitle/settingTitle.d.ts +2 -0
  86. package/lib/stores/interface/index.d.ts +18 -0
  87. package/lib/stores/modules/report.cjs +1 -0
  88. package/lib/stores/modules/report.d.ts +35 -0
  89. package/lib/table/Table.d.ts +5 -0
  90. package/lib/table/index.d.ts +15 -0
  91. package/lib/text/Text.d.ts +5 -0
  92. package/lib/text/index.d.ts +15 -0
  93. package/lib/time/Time.d.ts +9 -0
  94. package/lib/time/index.d.ts +25 -0
  95. package/lib/utils/api.cjs +1 -0
  96. package/lib/utils/api.d.ts +12 -0
  97. package/lib/utils/chartsOption.cjs +1 -0
  98. package/lib/utils/chartsOption.d.ts +298 -0
  99. package/lib/utils/data.cjs +1 -0
  100. package/lib/utils/data.d.ts +4 -0
  101. package/lib/utils/index.cjs +1 -1
  102. package/lib/utils/index.d.ts +2 -0
  103. package/package.json +9 -4
package/dist/index.js CHANGED
@@ -1,184 +1,186 @@
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 z, computed as S, resolveComponent as h, createElementBlock as B, openBlock as x, createVNode as d, onMounted as I, onUnmounted as Z, ref as v, toValue as $, watch as H, onBeforeUnmount as O, useSlots as K, reactive as X, getCurrentInstance as Q, Comment as ee, Text as te, createCommentVNode as F, withCtx as f, createElementVNode as _, createBlock as U, Fragment as oe, renderList as ne, toDisplayString as se } from "vue";
2
+ import { defineStore as ae } from "pinia";
3
+ import "echarts";
4
+ const re = { class: "chart-components" }, le = /* @__PURE__ */ z({
3
5
  name: "TdsReportBar",
4
6
  __name: "Bar",
5
7
  props: {
6
8
  data: {}
7
9
  },
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"])
10
+ setup(t) {
11
+ const o = t, e = S(() => o.data.options);
12
+ return (n, s) => {
13
+ const r = h("TdsChart");
14
+ return x(), B("div", re, [
15
+ d(r, { option: e.value }, null, 8, ["option"])
16
16
  ]);
17
17
  };
18
18
  }
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") {
19
+ }), N = (t) => {
20
+ const o = t;
21
+ return o.install = function(e) {
22
+ e.component(o.name, t);
23
+ }, t;
24
+ }, ie = N(le), W = window.$envURL, ue = (t) => W.request({
25
+ url: `${W}/tds/report/demo/get`,
26
+ method: "get",
27
+ params: t,
28
+ isError: !1
29
+ });
30
+ function Ue(t = Date.now(), o = "YYYY-MM-DD HH:mm:ss") {
29
31
  try {
30
- let n;
31
- if (typeof e == "number" || typeof e == "string") {
32
- if (n = new Date(e), isNaN(n.getTime()))
32
+ let e;
33
+ if (typeof t == "number" || typeof t == "string") {
34
+ if (e = new Date(t), isNaN(e.getTime()))
33
35
  throw new Error("Invalid date");
34
36
  } else
35
- n = e;
36
- const r = (s, c = 2) => String(s).padStart(c, "0"), o = (s) => {
37
- switch (s) {
37
+ e = t;
38
+ const n = (r, l = 2) => String(r).padStart(l, "0"), s = (r) => {
39
+ switch (r) {
38
40
  case "YYYY":
39
- return r(n.getFullYear());
41
+ return n(e.getFullYear());
40
42
  case "YY":
41
- return r(n.getFullYear()).slice(2, 4);
43
+ return n(e.getFullYear()).slice(2, 4);
42
44
  case "MM":
43
- return r(n.getMonth() + 1);
45
+ return n(e.getMonth() + 1);
44
46
  case "M":
45
- return String(n.getMonth() + 1);
47
+ return String(e.getMonth() + 1);
46
48
  case "DD":
47
- return r(n.getDate());
49
+ return n(e.getDate());
48
50
  case "D":
49
- return String(n.getDate());
51
+ return String(e.getDate());
50
52
  case "HH":
51
- return r(n.getHours());
53
+ return n(e.getHours());
52
54
  case "H":
53
- return String(n.getHours());
55
+ return String(e.getHours());
54
56
  case "mm":
55
- return r(n.getMinutes());
57
+ return n(e.getMinutes());
56
58
  case "m":
57
- return String(n.getMinutes());
59
+ return String(e.getMinutes());
58
60
  case "ss":
59
- return r(n.getSeconds());
61
+ return n(e.getSeconds());
60
62
  case "s":
61
- return String(n.getSeconds());
63
+ return String(e.getSeconds());
62
64
  case "SSS":
63
- return r(n.getMilliseconds(), 3);
65
+ return n(e.getMilliseconds(), 3);
64
66
  default:
65
- return s;
67
+ return r;
66
68
  }
67
69
  };
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), "";
70
+ return o.replace(/(YYYY|YY|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS)/g, s);
71
+ } catch (e) {
72
+ return console.error("Error formatting date:", e), "";
71
73
  }
72
74
  }
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))
75
+ function Be(t, o = 2, e = ",", n = ".", s, r) {
76
+ typeof t != "number" && typeof t != "string" && console.warn("Expected value to be of type number or string"), typeof o != "number" && console.warn("Expected precision to be of type number");
77
+ const l = Number(t);
78
+ if (isNaN(l) || !isFinite(l))
77
79
  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 : "");
80
+ if (l === 0)
81
+ return l.toFixed(o);
82
+ let u = l.toFixed(o);
83
+ if (typeof e == "string" && e !== "") {
84
+ const [i, a] = u.split(".");
85
+ u = i.replace(/(\d)(?=(\d{3})+$)/g, "$1" + e) + (a ? n + a : "");
84
86
  }
85
- return (o || "") + l + (s || "");
87
+ return (s || "") + u + (r || "");
86
88
  }
87
- function oe(e, t = 0, n = !1) {
88
- let r = null;
89
- function o(c) {
90
- if (r || (r = c), c - r >= t) {
89
+ function Oe(t, o = 0, e = !1) {
90
+ let n = null;
91
+ function s(l) {
92
+ if (n || (n = l), l - n >= o) {
91
93
  try {
92
- e();
94
+ t();
93
95
  } catch (i) {
94
96
  console.error("Error executing rafTimeout function:", i);
95
97
  }
96
- n && (r = c, s.id = requestAnimationFrame(o));
98
+ e && (n = l, r.id = requestAnimationFrame(s));
97
99
  } else
98
- s.id = requestAnimationFrame(o);
100
+ r.id = requestAnimationFrame(s);
99
101
  }
100
- const s = {
101
- id: requestAnimationFrame(o)
102
+ const r = {
103
+ id: requestAnimationFrame(s)
102
104
  };
103
- return s;
105
+ return r;
104
106
  }
105
- function se(e) {
106
- e && e.id && typeof e.id == "number" ? cancelAnimationFrame(e.id) : console.warn("cancelRaf received an invalid id:", e);
107
+ function Ye(t) {
108
+ t && t.id && typeof t.id == "number" ? cancelAnimationFrame(t.id) : console.warn("cancelRaf received an invalid id:", t);
107
109
  }
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;
110
+ function ce(t, o = 300) {
111
+ let e = !0;
112
+ return function(...n) {
113
+ return e && (t(...n), e = !1, setTimeout(() => {
114
+ e = !0;
115
+ }, o)), !1;
114
116
  };
115
117
  }
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);
118
+ function de(t, o = 300) {
119
+ let e = null;
120
+ return function(...n) {
121
+ e && clearTimeout(e), e = setTimeout(() => {
122
+ t(...n);
123
+ }, o);
122
124
  };
123
125
  }
124
- function ce(e, t) {
125
- if (Number.isNaN(e) || Number.isNaN(t))
126
+ function ze(t, o) {
127
+ if (Number.isNaN(t) || Number.isNaN(o))
126
128
  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;
129
+ const e = t % 1 !== 0, n = o % 1 !== 0;
130
+ if (!e && !n)
131
+ return t + o;
132
+ const s = String(t).split(".")[1] ?? "", r = String(o).split(".")[1] ?? "", l = Math.max(s.length, r.length), u = Math.pow(10, l), i = t.toFixed(l), a = o.toFixed(l);
133
+ return (+i.replace(".", "") + +a.replace(".", "")) / u;
132
134
  }
133
- function ae(e, t) {
134
- if (!e) {
135
+ function Ie(t, o) {
136
+ if (!t) {
135
137
  console.error("无效的 url");
136
138
  return;
137
139
  }
138
- const n = t || e.split("?")[0].split("/").pop() || "download";
140
+ const e = o || t.split("?")[0].split("/").pop() || "download";
139
141
  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);
142
+ fetch(t).then((n) => {
143
+ n.ok ? n.blob().then((s) => {
144
+ const r = URL.createObjectURL(s), l = document.createElement("a");
145
+ l.href = r, l.download = e, document.body.appendChild(l), l.click(), document.body.removeChild(l), URL.revokeObjectURL(r);
146
+ }) : console.error("请求文件失败,状态码:", n.status);
145
147
  });
146
- } catch (r) {
147
- console.error("文件下载失败:", r);
148
+ } catch (n) {
149
+ console.error("文件下载失败:", n);
148
150
  }
149
151
  }
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";
152
+ function He() {
153
+ const t = document.documentElement;
154
+ t.classList.toggle("dark"), t.classList.contains("dark") ? t.style.colorScheme = "dark" : t.style.colorScheme = "light";
153
155
  }
154
- function X() {
155
- const e = f(!1), t = I();
156
- return t && x(() => {
157
- e.value = !0;
158
- }, t), e;
156
+ function pe() {
157
+ const t = v(!1), o = Q();
158
+ return o && I(() => {
159
+ t.value = !0;
160
+ }, o), t;
159
161
  }
160
- function D(e) {
161
- const t = X();
162
- return h(() => (t.value, !!e()));
162
+ function q(t) {
163
+ const o = pe();
164
+ return S(() => (o.value, !!t()));
163
165
  }
164
- function ie(e, t, n) {
165
- x(() => e.addEventListener(t, n)), N(() => e.removeEventListener(t, n));
166
+ function Ne(t, o, e) {
167
+ I(() => t.addEventListener(o, e)), Z(() => t.removeEventListener(o, e));
166
168
  }
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);
169
+ function We(t, o, e = {}) {
170
+ const n = q(() => window && "MutationObserver" in window), s = v(!1);
171
+ let r;
172
+ const l = S(() => {
173
+ const m = $(t);
174
+ return m ? Array.isArray(m) ? m.map((g) => $(g)).filter((g) => g) : [m] : [];
175
+ }), u = () => {
176
+ r && (r.disconnect(), r = void 0);
175
177
  }, i = () => {
176
- r.value && c.value.length && !o.value && (s = new MutationObserver(t), c.value.forEach((u) => s.observe(u, n)));
178
+ n.value && l.value.length && !s.value && (r = new MutationObserver(o), l.value.forEach((m) => r.observe(m, e)));
177
179
  };
178
- T(
179
- () => c.value,
180
+ H(
181
+ () => l.value,
180
182
  () => {
181
- l(), i();
183
+ u(), i();
182
184
  },
183
185
  {
184
186
  immediate: !0,
@@ -186,38 +188,38 @@ function ue(e, t, n = {}) {
186
188
  flush: "post"
187
189
  }
188
190
  );
189
- const d = () => {
190
- o.value = !0, l();
191
- }, v = () => {
192
- o.value = !1, i();
191
+ const a = () => {
192
+ s.value = !0, u();
193
+ }, y = () => {
194
+ s.value = !1, i();
193
195
  };
194
- return S(() => l()), {
195
- stop: d,
196
- start: v
196
+ return O(() => u()), {
197
+ stop: a,
198
+ start: y
197
199
  };
198
200
  }
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) {
201
+ function je(t = window, o = 0, e, n) {
202
+ const s = v(0), r = v(0), l = v(0), u = v(0), i = v(!1), a = v(!1), y = v(!1), m = v(!1), g = v(!1), b = v(0), E = v(0);
203
+ function M(c) {
202
204
  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);
205
+ const w = c.target.documentElement ?? c.target;
206
+ s.value = w.scrollLeft, l.value = w.scrollTop, a.value = s.value < b.value, y.value = s.value > b.value, m.value = l.value < E.value, g.value = l.value > E.value, b.value = s.value, E.value = l.value, D(c), e && e(c);
205
207
  }
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));
208
+ const L = ce(M, o);
209
+ function k(c) {
210
+ i.value && (i.value = !1, a.value = !1, y.value = !1, m.value = !1, g.value = !1, n && n(c));
209
211
  }
210
- const M = K(O, t + 200), Y = h(() => {
211
- const a = E(e);
212
- return a || null;
212
+ const D = de(k, o + 200), p = S(() => {
213
+ const c = $(t);
214
+ return c || null;
213
215
  });
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);
216
+ H(
217
+ () => p.value,
218
+ (c, w) => {
219
+ var A;
220
+ if (w && V(w), c) {
221
+ const C = ((A = c == null ? void 0 : c.document) == null ? void 0 : A.documentElement) || (c == null ? void 0 : c.documentElement) || c;
222
+ r.value = C.scrollWidth - C.clientWidth, u.value = C.scrollHeight - C.clientHeight, C.addEventListener("scroll", L), C.addEventListener("scrollend", D);
221
223
  }
222
224
  },
223
225
  {
@@ -225,52 +227,52 @@ function fe(e = window, t = 0, n, r) {
225
227
  flush: "post"
226
228
  }
227
229
  );
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);
230
+ function V(c) {
231
+ var A;
232
+ const w = ((A = c == null ? void 0 : c.document) == null ? void 0 : A.documentElement) || (c == null ? void 0 : c.documentElement) || c;
233
+ w.removeEventListener("scroll", L), w.removeEventListener("scrollend", D);
232
234
  }
233
- return S(() => F(Y.value)), { x: o, xScrollMax: s, y: c, yScrollMax: l, isScrolling: i, left: d, right: v, top: u, bottom: m };
235
+ return O(() => V(p.value)), { x: s, xScrollMax: r, y: l, yScrollMax: u, isScrolling: i, left: a, right: y, top: m, bottom: g };
234
236
  }
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;
237
+ function qe() {
238
+ const t = v(0), o = v(0);
239
+ let e = performance.now();
240
+ const n = 10, s = (r) => {
241
+ if (o.value++, o.value >= n) {
242
+ const l = r - e;
243
+ t.value = Math.round(1e3 / (l / n)), e = r, o.value = 0;
242
244
  }
243
- requestAnimationFrame(o);
245
+ requestAnimationFrame(s);
244
246
  };
245
- return requestAnimationFrame(o), { fps: e };
247
+ return requestAnimationFrame(s), { fps: t };
246
248
  }
247
- function me(e) {
248
- if (!e || typeof e != "string" || e.trim() === "")
249
+ function Pe(t) {
250
+ if (!t || typeof t != "string" || t.trim() === "")
249
251
  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;
252
+ const o = v(window && window.matchMedia(t).matches), e = window.matchMedia(t), n = (s) => {
253
+ o.value = s.matches;
252
254
  };
253
- return x(() => {
254
- n.addEventListener("change", r);
255
- }), S(() => {
256
- n.removeEventListener("change", r);
257
- }), { match: t };
255
+ return I(() => {
256
+ e.addEventListener("change", n);
257
+ }), O(() => {
258
+ e.removeEventListener("change", n);
259
+ }), { match: o };
258
260
  }
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);
261
+ function Ge(t, o, e = {}) {
262
+ const n = q(() => window && "ResizeObserver" in window);
263
+ let s;
264
+ const r = v(!1), l = S(() => {
265
+ const m = $(t);
266
+ return m ? Array.isArray(m) ? m.map((g) => $(g)).filter((g) => g) : [m] : [];
267
+ }), u = () => {
268
+ s && (s.disconnect(), s = void 0);
267
269
  }, i = () => {
268
- r.value && c.value.length && !s.value && (o = new ResizeObserver(t), c.value.forEach((u) => o.observe(u, n)));
270
+ n.value && l.value.length && !r.value && (s = new ResizeObserver(o), l.value.forEach((m) => s.observe(m, e)));
269
271
  };
270
- T(
271
- () => c.value,
272
+ H(
273
+ () => l.value,
272
274
  () => {
273
- l(), i();
275
+ u(), i();
274
276
  },
275
277
  {
276
278
  immediate: !0,
@@ -278,97 +280,640 @@ function ve(e, t, n = {}) {
278
280
  flush: "post"
279
281
  }
280
282
  );
281
- const d = () => {
282
- s.value = !0, l();
283
- }, v = () => {
284
- s.value = !1, i();
283
+ const a = () => {
284
+ r.value = !0, u();
285
+ }, y = () => {
286
+ r.value = !1, i();
285
287
  };
286
- return S(() => l()), {
287
- stop: d,
288
- start: v
288
+ return O(() => u()), {
289
+ stop: a,
290
+ start: y
289
291
  };
290
292
  }
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)
293
+ function Je(t = "default") {
294
+ const o = K(), e = (n) => {
295
+ var l;
296
+ const s = (l = o[n]) == null ? void 0 : l.call(o), r = (u) => {
297
+ if (u.type === ee || Array.isArray(u.children) && !u.children.length)
296
298
  return !1;
297
- if (l.type !== z)
299
+ if (u.type !== te)
298
300
  return !0;
299
- if (typeof l.children == "string")
300
- return l.children.trim() !== "";
301
+ if (typeof u.children == "string")
302
+ return u.children.trim() !== "";
301
303
  };
302
- return o && (o != null && o.length) ? o.some((i) => s(i)) : !1;
304
+ return s && (s != null && s.length) ? s.some((i) => r(i)) : !1;
303
305
  };
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;
306
+ if (Array.isArray(t)) {
307
+ const n = X({});
308
+ return t.forEach((s) => {
309
+ const r = S(() => e(s));
310
+ n[s] = r;
311
+ }), n;
310
312
  } else
311
- return h(() => n(e));
313
+ return S(() => e(t));
312
314
  }
313
- const R = {
315
+ const R = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), me = (t) => JSON.parse(JSON.stringify(t)), fe = "rgba(51, 51, 51, 0.15)", Y = "rgba(51, 51, 51, 1)", ve = 12, ge = (t = !1) => {
316
+ const o = {
317
+ // top: '2%',
318
+ left: "3%",
319
+ right: "3%",
320
+ bottom: "2%",
321
+ containLabel: !0
322
+ };
323
+ return t && (o.top = "5%"), o;
324
+ }, T = [
325
+ "46, 145, 255",
326
+ "48, 212, 183",
327
+ "108, 108, 255",
328
+ "109, 237, 124",
329
+ "128, 218, 236",
330
+ "58, 200, 218",
331
+ "146, 218, 89",
332
+ "118, 218, 218",
333
+ "143, 192, 244",
334
+ "192, 192, 145",
335
+ "153, 136, 204",
336
+ "212, 217, 230",
337
+ "124, 186, 255",
338
+ "209, 182, 225",
339
+ "255, 197, 84",
340
+ "249, 140, 106",
341
+ "246, 179, 82",
342
+ "100, 161, 206",
343
+ "246, 175, 159",
344
+ "238, 97, 97"
345
+ ], be = (t = [
346
+ {
347
+ name: "数据1",
348
+ value: 63
349
+ },
350
+ {
351
+ name: "数据2",
352
+ value: 45
353
+ },
354
+ {
355
+ name: "数据3",
356
+ value: 43
357
+ }
358
+ ], o = { name: "name", value: "value" }) => {
359
+ const e = (s = "rgba(46, 145, 255, 0.7)", r = "rgba(46, 145, 255, 0.2)") => ({
360
+ color: {
361
+ type: "linear",
362
+ x: 0,
363
+ y: 0,
364
+ x2: 0,
365
+ y2: 1,
366
+ colorStops: [
367
+ {
368
+ offset: 0,
369
+ color: s
370
+ },
371
+ {
372
+ offset: 0.8,
373
+ color: r
374
+ }
375
+ ]
376
+ }
377
+ }), n = t.map((s) => s[o.value]);
378
+ return {
379
+ // 提示框组件
380
+ tooltip: {
381
+ trigger: "item"
382
+ //触发类型,axis:坐标轴触发
383
+ },
384
+ // 图例组件
385
+ // legend: {
386
+ // type: 'plain', //plain:普通图例;scroll:可滚动翻页的图例。当图例数量较多时使。
387
+ // show: true,
388
+ // },
389
+ grid: ge(),
390
+ title: {
391
+ show: !0,
392
+ text: "样例数据",
393
+ textStyle: {
394
+ color: "#333",
395
+ fontSize: 18
396
+ },
397
+ x: 10,
398
+ y: 10
399
+ },
400
+ // x 轴设置
401
+ xAxis: [
402
+ {
403
+ type: "category",
404
+ nameGap: 8,
405
+ // X轴名称与轴线之间的距离
406
+ nameRotate: 0,
407
+ // 坐标轴名称旋转
408
+ axisLabel: {
409
+ color: Y,
410
+ // X轴类目名称样式
411
+ rotate: 0
412
+ // X轴类目名称旋转角度
413
+ },
414
+ axisLine: {
415
+ //X轴轴线设置
416
+ show: !0,
417
+ lineStyle: {
418
+ color: fe,
419
+ width: 1
420
+ }
421
+ },
422
+ axisTick: { show: !1 },
423
+ // X轴刻度相关设置
424
+ splitLine: { show: !1 },
425
+ // 横向分隔线
426
+ data: t.map((s) => s[o.name])
427
+ }
428
+ ],
429
+ // y轴设置
430
+ yAxis: [
431
+ {
432
+ type: "value",
433
+ min: 0,
434
+ // 坐标轴刻度最小值
435
+ position: "left",
436
+ nameTextStyle: {
437
+ fontSize: ve,
438
+ color: Y,
439
+ fontWeight: "bold"
440
+ },
441
+ axisLine: { show: !1 },
442
+ // y轴轴线设置
443
+ axisTick: { show: !1 },
444
+ // 刻度设置
445
+ splitLine: { show: !1 },
446
+ // 纵向分隔线
447
+ axisLabel: {
448
+ color: Y,
449
+ // y轴刻度标签
450
+ formatter: "{value}",
451
+ inside: !1
452
+ // 刻度标签是否朝内,默认朝外
453
+ }
454
+ }
455
+ ],
456
+ series: [
457
+ {
458
+ type: "bar",
459
+ barWidth: 15,
460
+ barGap: "0%",
461
+ itemStyle: e(`rgba(${T[0]}, 0.7)`, `rgba(${T[0]}, 0.2)`),
462
+ data: n,
463
+ label: {
464
+ show: !0,
465
+ // 显示标签
466
+ position: "top",
467
+ // 标签位置
468
+ color: "inherit",
469
+ // 标签颜色
470
+ lineHeight: 24
471
+ // 行高
472
+ }
473
+ },
474
+ {
475
+ // 柱底圆片
476
+ name: "",
477
+ type: "pictorialBar",
478
+ symbolSize: [15, 10],
479
+ //调整截面形状
480
+ symbolOffset: [0, 5],
481
+ itemStyle: e(`rgba(${T[0]}, 0.7)`, `rgba(${T[0]}, 0.2)`),
482
+ data: n
483
+ },
484
+ {
485
+ // 柱顶圆片
486
+ name: "",
487
+ type: "pictorialBar",
488
+ symbolSize: [15, 10],
489
+ //调整截面形状
490
+ symbolOffset: [0, -5],
491
+ symbolPosition: "end",
492
+ itemStyle: e(`rgba(${T[0]}, 0.9)`, `rgba(${T[0]}, 1)`),
493
+ data: n
494
+ }
495
+ ]
496
+ };
497
+ }, P = [
498
+ { key: "assets", name: "资产名称" },
499
+ { key: "type", name: "资产类型" },
500
+ { key: "data", name: "资产数据" }
501
+ ], G = [
502
+ { assets: "name1", type: "type1", data: "data1" },
503
+ { assets: "name2", type: "type2", data: "data2" },
504
+ { assets: "name3", type: "type3", data: "data3" }
505
+ ], ye = [
506
+ { data: [{ name: "默认数据", value: 180 }], label: "name1" },
507
+ { data: [{ name: "默认数据", value: 311 }], label: "name2" },
508
+ { data: [{ name: "默认数据", value: 42 }], label: "name3" },
509
+ { data: [{ name: "默认数据", value: 32391 }], label: "name4" }
510
+ ], he = [
511
+ {
512
+ type: "report-select",
513
+ label: "资产:",
514
+ value: "0",
515
+ data: [
516
+ {
517
+ label: "全部",
518
+ data: "0"
519
+ },
520
+ {
521
+ label: "10.10.2.20_root",
522
+ data: "743dbb32-8a41-4990-9d76-48925b000a93"
523
+ },
524
+ {
525
+ label: "10.10.4.206_sysdba",
526
+ data: "23193788-c895-47a8-8123-65799540394c"
527
+ },
528
+ {
529
+ label: "10.10.4.26_root@/root/files/",
530
+ data: "bb7b07c9-b96b-4caf-ac76-bb45ae849844"
531
+ }
532
+ ],
533
+ uri: "/da/report/sens/get_asset_all",
534
+ id: R()
535
+ },
536
+ {
537
+ type: "range-time",
538
+ data: [
539
+ {
540
+ start_time: "2024-08-20 19:49:34",
541
+ end_time: "2024-09-12 19:49:34"
542
+ }
543
+ ],
544
+ id: R()
545
+ },
546
+ {
547
+ type: "h1",
548
+ data: "报表名称",
549
+ options: {
550
+ size: 24,
551
+ color: "rgba(0,0,0,0.85)",
552
+ fontWeight: 500,
553
+ letterSpacing: 0,
554
+ textIndent: 0,
555
+ textAlign: "left"
556
+ },
557
+ id: R()
558
+ },
559
+ {
560
+ type: "h2",
561
+ data: "一级标题",
562
+ name: "一级标题",
563
+ options: {
564
+ size: 18,
565
+ color: " rgba(0, 0, 0, 0.85)",
566
+ fontWeight: 500,
567
+ letterSpacing: 0,
568
+ textIndent: 0,
569
+ textAlign: "left"
570
+ },
571
+ id: R()
572
+ },
573
+ {
574
+ type: "report-table",
575
+ data: G,
576
+ showColumn: P,
577
+ name: "表格",
578
+ options: {
579
+ showColumn: {
580
+ assets: !0,
581
+ type: !0,
582
+ data: !0
583
+ },
584
+ border: !0,
585
+ showHeader: !0,
586
+ stripe: !1
587
+ },
588
+ rp_item_uuid: "",
589
+ id: R()
590
+ }
591
+ ];
592
+ be();
593
+ const _e = ae("tds-report", {
594
+ state: () => ({
595
+ componentList: [],
596
+ activeComponents: {},
597
+ notDraggableList: [],
598
+ titleComponent: {},
599
+ filterForm: {
600
+ range_time: 1,
601
+ filter_uuid: ""
602
+ }
603
+ }),
604
+ getters: {
605
+ getActiveComponents: (t) => t.activeComponents
606
+ },
607
+ actions: {
608
+ // setComponentList
609
+ setComponentList(t) {
610
+ this.componentList = t;
611
+ },
612
+ async getReportDemo(t) {
613
+ let o = [];
614
+ t ? o = (await ue({ report_uuid: t })).data : o = { content: me(he), range_time: 1 };
615
+ const e = [];
616
+ o.content.forEach((n) => {
617
+ (n.type === "report-select" || n.type === "range-time") && e.push(n), n.type === "h1" && (this.titleComponent = n), n.id = R();
618
+ }), this.notDraggableList = e, this.filterForm.range_time = o.range_time, this.filterForm.filter_uuid = o.filter_uuid, o.content.splice(0, 3), this.componentList = o.content;
619
+ },
620
+ setActiveComponents(t) {
621
+ this.activeComponents = t;
622
+ },
623
+ clearComponents() {
624
+ this.activeComponents = {}, this.componentList = [], this.notDraggableList = [], this.titleComponent = {}, this.filterForm = {
625
+ range_time: 1,
626
+ filter_uuid: ""
627
+ };
628
+ }
629
+ }
630
+ }), Se = { key: 0 }, we = { class: "sub-title" }, xe = /* @__PURE__ */ z({
631
+ name: "TdsReportConfig",
632
+ __name: "Config",
633
+ setup(t) {
634
+ const o = _e(), e = S(() => o.activeComponents);
635
+ function n(i) {
636
+ i ? (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);
637
+ }
638
+ const s = v("rgb(46, 145, 255)"), r = (i = "rgba(46, 145, 255, 0.7)", a = "rgba(46, 145, 255, 0.2)") => ({
639
+ color: {
640
+ type: "linear",
641
+ x: 0,
642
+ y: 0,
643
+ x2: 0,
644
+ y2: 1,
645
+ colorStops: [
646
+ {
647
+ offset: 0,
648
+ color: i
649
+ },
650
+ {
651
+ offset: 0.8,
652
+ color: a
653
+ }
654
+ ]
655
+ }
656
+ });
657
+ function l(i) {
658
+ i && (o.activeComponents.options.series[0].itemStyle = r(u(i, 0.7), u(i, 0.2)), o.activeComponents.options.series[1].itemStyle = r(u(i, 0.7), u(i, 0.2)), o.activeComponents.options.series[2].itemStyle = r(u(i, 0.9), u(i, 1)));
659
+ }
660
+ function u(i, a = 1) {
661
+ i = i.replace(/^#/, "");
662
+ const y = parseInt(i.substring(0, 2), 16), m = parseInt(i.substring(2, 4), 16), g = parseInt(i.substring(4, 6), 16);
663
+ return `rgba(${y}, ${m}, ${g}, ${a})`;
664
+ }
665
+ return (i, a) => {
666
+ const y = h("el-input"), m = h("el-form-item"), g = h("el-switch"), b = h("el-col"), E = h("el-color-picker"), M = h("el-input-number"), L = h("el-row"), k = h("el-collapse-item"), D = h("el-collapse");
667
+ return e.value.options.title ? (x(), B("div", Se, [
668
+ d(m, { label: "标题" }, {
669
+ default: f(() => [
670
+ d(y, {
671
+ modelValue: e.value.options.title.text,
672
+ "onUpdate:modelValue": a[0] || (a[0] = (p) => e.value.options.title.text = p)
673
+ }, null, 8, ["modelValue"])
674
+ ]),
675
+ _: 1
676
+ }),
677
+ d(D, null, {
678
+ default: f(() => [
679
+ d(k, {
680
+ title: "标题配置",
681
+ name: "1"
682
+ }, {
683
+ default: f(() => [
684
+ d(L, { class: "w-100%" }, {
685
+ default: f(() => [
686
+ d(b, { span: 24 }, {
687
+ default: f(() => [
688
+ a[9] || (a[9] = _("span", { class: "switch-label" }, "显示标题", -1)),
689
+ d(g, {
690
+ modelValue: e.value.options.title.show,
691
+ "onUpdate:modelValue": a[1] || (a[1] = (p) => e.value.options.title.show = p)
692
+ }, null, 8, ["modelValue"])
693
+ ]),
694
+ _: 1
695
+ }),
696
+ d(b, { span: 12 }, {
697
+ default: f(() => [
698
+ d(E, {
699
+ modelValue: e.value.options.title.textStyle.color,
700
+ "onUpdate:modelValue": a[2] || (a[2] = (p) => e.value.options.title.textStyle.color = p),
701
+ "show-alpha": ""
702
+ }, null, 8, ["modelValue"]),
703
+ a[10] || (a[10] = _("p", { class: "sub-title" }, "颜色", -1))
704
+ ]),
705
+ _: 1
706
+ }),
707
+ d(b, { span: 12 }, {
708
+ default: f(() => [
709
+ d(M, {
710
+ modelValue: e.value.options.title.textStyle.fontSize,
711
+ "onUpdate:modelValue": a[3] || (a[3] = (p) => e.value.options.title.textStyle.fontSize = p),
712
+ "controls-position": "right"
713
+ }, null, 8, ["modelValue"]),
714
+ a[11] || (a[11] = _("p", { class: "sub-title" }, "字体大小", -1))
715
+ ]),
716
+ _: 1
717
+ }),
718
+ d(b, { span: 12 }, {
719
+ default: f(() => [
720
+ d(M, {
721
+ modelValue: e.value.options.title.x,
722
+ "onUpdate:modelValue": a[4] || (a[4] = (p) => e.value.options.title.x = p),
723
+ "controls-position": "right"
724
+ }, null, 8, ["modelValue"]),
725
+ a[12] || (a[12] = _("p", { class: "sub-title" }, "横向", -1))
726
+ ]),
727
+ _: 1
728
+ }),
729
+ d(b, { span: 12 }, {
730
+ default: f(() => [
731
+ d(M, {
732
+ modelValue: e.value.options.title.y,
733
+ "onUpdate:modelValue": a[5] || (a[5] = (p) => e.value.options.title.y = p),
734
+ "controls-position": "right"
735
+ }, null, 8, ["modelValue"]),
736
+ a[13] || (a[13] = _("p", { class: "sub-title" }, "纵向", -1))
737
+ ]),
738
+ _: 1
739
+ })
740
+ ]),
741
+ _: 1
742
+ })
743
+ ]),
744
+ _: 1
745
+ }),
746
+ d(k, {
747
+ title: "图形配置",
748
+ name: "2"
749
+ }, {
750
+ default: f(() => [
751
+ e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (x(), U(L, { key: 0 }, {
752
+ default: f(() => [
753
+ d(b, { span: 24 }, {
754
+ default: f(() => [
755
+ a[14] || (a[14] = _("span", { class: "switch-label" }, "玫瑰图", -1)),
756
+ d(g, {
757
+ onChange: n,
758
+ modelValue: e.value.options.series[0].roseType,
759
+ "onUpdate:modelValue": a[6] || (a[6] = (p) => e.value.options.series[0].roseType = p)
760
+ }, null, 8, ["modelValue"])
761
+ ]),
762
+ _: 1
763
+ }),
764
+ (x(!0), B(oe, null, ne(e.value.data, (p, V) => (x(), U(b, {
765
+ span: 12,
766
+ class: "mb-10px",
767
+ key: V
768
+ }, {
769
+ default: f(() => [
770
+ d(E, {
771
+ modelValue: e.value.options.color[V],
772
+ "onUpdate:modelValue": (c) => e.value.options.color[V] = c,
773
+ "show-alpha": ""
774
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]),
775
+ _("p", we, se(p.label), 1)
776
+ ]),
777
+ _: 2
778
+ }, 1024))), 128))
779
+ ]),
780
+ _: 1
781
+ })) : F("", !0),
782
+ e.value.type === "bar" ? (x(), U(L, { key: 1 }, {
783
+ default: f(() => [
784
+ d(b, { span: 12 }, {
785
+ default: f(() => [
786
+ d(E, {
787
+ modelValue: s.value,
788
+ "onUpdate:modelValue": a[7] || (a[7] = (p) => s.value = p),
789
+ onChange: l
790
+ }, null, 8, ["modelValue"]),
791
+ a[15] || (a[15] = _("p", { class: "sub-title" }, "柱颜色", -1))
792
+ ]),
793
+ _: 1
794
+ })
795
+ ]),
796
+ _: 1
797
+ })) : F("", !0)
798
+ ]),
799
+ _: 1
800
+ }),
801
+ d(k, {
802
+ title: "图例配置",
803
+ name: "3"
804
+ }, {
805
+ default: f(() => [
806
+ d(L, null, {
807
+ default: f(() => [
808
+ d(b, { span: 24 }, {
809
+ default: f(() => [
810
+ a[16] || (a[16] = _("span", { class: "switch-label" }, "显示图例", -1)),
811
+ e.value.options.legend ? (x(), U(g, {
812
+ key: 0,
813
+ modelValue: e.value.options.legend.show,
814
+ "onUpdate:modelValue": a[8] || (a[8] = (p) => e.value.options.legend.show = p)
815
+ }, null, 8, ["modelValue"])) : F("", !0)
816
+ ]),
817
+ _: 1
818
+ })
819
+ ]),
820
+ _: 1
821
+ })
822
+ ]),
823
+ _: 1
824
+ })
825
+ ]),
826
+ _: 1
827
+ })
828
+ ])) : F("", !0);
829
+ };
830
+ }
831
+ }), Ee = (t, o) => {
832
+ const e = t.__vccOpts || t;
833
+ for (const [n, s] of o)
834
+ e[n] = s;
835
+ return e;
836
+ }, Le = /* @__PURE__ */ Ee(xe, [["__scopeId", "data-v-9d35239c"]]), Ve = N(Le), Ce = { class: "chart-components" }, Te = /* @__PURE__ */ z({
837
+ name: "TdsReportLine",
838
+ __name: "Line",
839
+ props: {
840
+ data: {}
841
+ },
842
+ setup(t) {
843
+ const o = t, e = S(() => o.data.options);
844
+ return (n, s) => {
845
+ const r = h("TdsChart");
846
+ return x(), B("div", Ce, [
847
+ d(r, { option: e.value }, null, 8, ["option"])
848
+ ]);
849
+ };
850
+ }
851
+ }), Re = N(Te), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
852
+ __proto__: null,
853
+ TdsReportBar: ie,
854
+ TdsReportConfig: Ve,
855
+ TdsReportLine: Re
856
+ }, Symbol.toStringTag, { value: "Module" })), J = {
314
857
  TdsReportBar: "TdsReportBar"
315
- }, A = {
858
+ }, j = {
316
859
  BackTop: ["Tooltip"]
317
860
  };
318
- function Q(e, t) {
319
- if (["NumberAnimation", "Watermark"].includes(e))
861
+ function ke(t, o) {
862
+ if (["NumberAnimation", "Watermark"].includes(t))
320
863
  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`
864
+ const e = [t];
865
+ t in j && e.push(...j[t]);
866
+ const n = o != null && o.cjs ? "lib" : "es", s = [`@topdatasec/report/${n}/style/global.css`];
867
+ return e.forEach((r) => {
868
+ s.push(
869
+ `@topdatasec/report/${n}/${J[r]}/${r}.css`
327
870
  );
328
- }), o;
871
+ }), s;
329
872
  }
330
- function he(e) {
873
+ function Ze(t) {
331
874
  return {
332
875
  type: "component",
333
- resolve: (t) => {
334
- if (t in R)
876
+ resolve: (o) => {
877
+ if (o in J)
335
878
  return {
336
- name: t,
879
+ name: o,
337
880
  // 组件名
338
881
  from: "@topdatasec/report",
339
882
  // 组件库名称
340
- sideEffects: Q(t, e)
883
+ sideEffects: ke(o, t)
341
884
  // 组件样式文件
342
885
  };
343
886
  }
344
887
  };
345
888
  }
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
889
+ const De = function(t) {
890
+ return Object.values(Me).forEach((o) => {
891
+ o && o.install && t.use(o);
892
+ }), t;
893
+ }, Ke = {
894
+ install: De
352
895
  };
353
896
  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
897
+ ie as TdsReportBar,
898
+ Ve as TdsReportConfig,
899
+ Re as TdsReportLine,
900
+ Ze as VueAmazingUIResolver,
901
+ ze as add,
902
+ Ye as cancelRaf,
903
+ Ue as dateFormat,
904
+ de as debounce,
905
+ Ke as default,
906
+ Ie as downloadFile,
907
+ Be as formatNumber,
908
+ De as install,
909
+ Oe as rafTimeout,
910
+ ce as throttle,
911
+ He as toggleDark,
912
+ Ne as useEventListener,
913
+ qe as useFps,
914
+ Pe as useMediaQuery,
915
+ We as useMutationObserver,
916
+ Ge as useResizeObserver,
917
+ je as useScroll,
918
+ Je as useSlotsExist
374
919
  };