@topdatasec/report 1.0.9 → 1.0.10

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 (208) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +218 -0
  3. package/lib/index.d.ts +5 -8
  4. package/{es/bar/Bar.d.ts → lib/report/components/Bar.vue.d.ts} +2 -2
  5. package/{es/pie/Pie.d.ts → lib/report/components/Line.vue.d.ts} +2 -2
  6. package/{es/table/Table.d.ts → lib/report/components/Pie.vue.d.ts} +2 -2
  7. package/{es/time/Time.d.ts → lib/report/components/RangeTime.vue.d.ts} +3 -3
  8. package/lib/report/components/Report.vue.d.ts +18 -0
  9. package/{es/line/Line.d.ts → lib/report/components/ReportChart.vue.d.ts} +2 -2
  10. package/lib/report/components/ReportDescribe.vue.d.ts +5 -0
  11. package/{es/select/Select.d.ts → lib/report/components/ReportSelect.vue.d.ts} +3 -3
  12. package/lib/report/components/ReportTable.vue.d.ts +5 -0
  13. package/lib/report/components/ReportText.vue.d.ts +5 -0
  14. package/lib/report/components/SettingTable.vue.d.ts +2 -0
  15. package/lib/report/components/editor/components/Setting.vue.d.ts +2 -0
  16. package/lib/report/components/editor/index.vue.d.ts +24 -0
  17. package/{es/settingFilter/settingFilter.d.ts → lib/report/components/preview/Catalogue.vue.d.ts} +5 -3
  18. package/lib/report/components/preview/index.vue.d.ts +24 -0
  19. package/lib/report/index.d.ts +5 -8
  20. package/lib/report/index.vue.d.ts +2 -0
  21. package/lib/stores/interface/index.d.ts +1 -0
  22. package/lib/stores/modules/report.d.ts +10 -9
  23. package/lib/style.css +1 -0
  24. package/lib/tds-report-ui.es.js +26431 -0
  25. package/lib/tds-report-ui.umd.js +205 -0
  26. package/lib/utils/api.d.ts +6 -0
  27. package/lib/utils/chartsOption.d.ts +45 -12
  28. package/lib/utils/index.d.ts +1 -41
  29. package/lib/withInstall.d.ts +4 -0
  30. package/package.json +69 -88
  31. package/README.zh-CN.md +0 -0
  32. package/dist/index.iife.js +0 -2
  33. package/dist/index.js +0 -2041
  34. package/dist/index.umd.cjs +0 -2
  35. package/dist/style.css +0 -1
  36. package/es/_virtual/_plugin-vue_export-helper.js +0 -9
  37. package/es/bar/Bar.vue.js +0 -20
  38. package/es/bar/Bar.vue2.js +0 -4
  39. package/es/bar/index.d.ts +0 -15
  40. package/es/bar/index.js +0 -6
  41. package/es/components.d.ts +0 -15
  42. package/es/components.js +0 -30
  43. package/es/config/Config.css +0 -1
  44. package/es/config/Config.vue.js +0 -7
  45. package/es/config/Config.vue2.js +0 -207
  46. package/es/config/index.d.ts +0 -14
  47. package/es/config/index.js +0 -6
  48. package/es/index.d.ts +0 -10
  49. package/es/index.js +0 -60
  50. package/es/line/Line.vue.js +0 -20
  51. package/es/line/Line.vue2.js +0 -4
  52. package/es/line/index.d.ts +0 -15
  53. package/es/line/index.js +0 -6
  54. package/es/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css +0 -1
  55. package/es/pie/Pie.vue.js +0 -20
  56. package/es/pie/Pie.vue2.js +0 -4
  57. package/es/pie/index.d.ts +0 -15
  58. package/es/pie/index.js +0 -6
  59. package/es/report/Report.d.ts +0 -7
  60. package/es/report/Report.vue.js +0 -112
  61. package/es/report/Report.vue2.js +0 -4
  62. package/es/report/index.d.ts +0 -17
  63. package/es/report/index.js +0 -6
  64. package/es/select/Select.vue.js +0 -39
  65. package/es/select/Select.vue2.js +0 -4
  66. package/es/select/index.d.ts +0 -25
  67. package/es/select/index.js +0 -6
  68. package/es/settingCharts/SettingCharts.d.ts +0 -5
  69. package/es/settingCharts/SettingCharts.vue.js +0 -142
  70. package/es/settingCharts/SettingCharts.vue2.js +0 -4
  71. package/es/settingCharts/index.d.ts +0 -14
  72. package/es/settingCharts/index.js +0 -6
  73. package/es/settingFilter/index.d.ts +0 -15
  74. package/es/settingFilter/index.js +0 -6
  75. package/es/settingFilter/settingFilter.vue.js +0 -62
  76. package/es/settingFilter/settingFilter.vue2.js +0 -4
  77. package/es/settingTable/SettingTable.vue.js +0 -59
  78. package/es/settingTable/SettingTable.vue2.js +0 -4
  79. package/es/settingTable/index.d.ts +0 -14
  80. package/es/settingTable/index.js +0 -6
  81. package/es/settingText/index.d.ts +0 -15
  82. package/es/settingText/index.js +0 -6
  83. package/es/settingText/settingText.d.ts +0 -5
  84. package/es/settingText/settingText.vue.js +0 -112
  85. package/es/settingText/settingText.vue2.js +0 -4
  86. package/es/settingTitle/index.d.ts +0 -14
  87. package/es/settingTitle/index.js +0 -6
  88. package/es/settingTitle/settingTitle.css +0 -1
  89. package/es/settingTitle/settingTitle.vue.js +0 -7
  90. package/es/settingTitle/settingTitle.vue2.js +0 -137
  91. package/es/stores/interface/index.d.ts +0 -18
  92. package/es/stores/modules/report.d.ts +0 -35
  93. package/es/stores/modules/report.js +0 -45
  94. package/es/style/global.css +0 -1
  95. package/es/table/Table.vue.js +0 -26
  96. package/es/table/Table.vue2.js +0 -4
  97. package/es/table/index.d.ts +0 -15
  98. package/es/table/index.js +0 -6
  99. package/es/text/Text.d.ts +0 -5
  100. package/es/text/Text.vue.js +0 -27
  101. package/es/text/Text.vue2.js +0 -4
  102. package/es/text/index.d.ts +0 -15
  103. package/es/text/index.js +0 -6
  104. package/es/time/Time.vue.js +0 -35
  105. package/es/time/Time.vue2.js +0 -4
  106. package/es/time/index.d.ts +0 -25
  107. package/es/time/index.js +0 -6
  108. package/es/utils/api.d.ts +0 -12
  109. package/es/utils/api.js +0 -32
  110. package/es/utils/chartsOption.d.ts +0 -298
  111. package/es/utils/chartsOption.js +0 -501
  112. package/es/utils/data.d.ts +0 -4
  113. package/es/utils/data.js +0 -162
  114. package/es/utils/index.d.ts +0 -43
  115. package/es/utils/index.js +0 -309
  116. package/es/utils/resolver.d.ts +0 -11
  117. package/es/utils/resolver.js +0 -49
  118. package/es/utils/type.d.ts +0 -2
  119. package/es/utils/type.js +0 -9
  120. package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -1
  121. package/lib/bar/Bar.d.ts +0 -5
  122. package/lib/bar/Bar.vue.cjs +0 -1
  123. package/lib/bar/Bar.vue2.cjs +0 -1
  124. package/lib/bar/index.cjs +0 -1
  125. package/lib/bar/index.d.ts +0 -15
  126. package/lib/components.cjs +0 -1
  127. package/lib/components.d.ts +0 -15
  128. package/lib/config/Config.css +0 -1
  129. package/lib/config/Config.vue.cjs +0 -1
  130. package/lib/config/Config.vue2.cjs +0 -1
  131. package/lib/config/index.cjs +0 -1
  132. package/lib/config/index.d.ts +0 -14
  133. package/lib/index.cjs +0 -1
  134. package/lib/line/Line.d.ts +0 -5
  135. package/lib/line/Line.vue.cjs +0 -1
  136. package/lib/line/Line.vue2.cjs +0 -1
  137. package/lib/line/index.cjs +0 -1
  138. package/lib/line/index.d.ts +0 -15
  139. package/lib/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css +0 -1
  140. package/lib/pie/Pie.d.ts +0 -5
  141. package/lib/pie/Pie.vue.cjs +0 -1
  142. package/lib/pie/Pie.vue2.cjs +0 -1
  143. package/lib/pie/index.cjs +0 -1
  144. package/lib/pie/index.d.ts +0 -15
  145. package/lib/report/Report.d.ts +0 -7
  146. package/lib/report/Report.vue.cjs +0 -1
  147. package/lib/report/Report.vue2.cjs +0 -1
  148. package/lib/report/index.cjs +0 -1
  149. package/lib/select/Select.d.ts +0 -9
  150. package/lib/select/Select.vue.cjs +0 -1
  151. package/lib/select/Select.vue2.cjs +0 -1
  152. package/lib/select/index.cjs +0 -1
  153. package/lib/select/index.d.ts +0 -25
  154. package/lib/settingCharts/SettingCharts.d.ts +0 -5
  155. package/lib/settingCharts/SettingCharts.vue.cjs +0 -1
  156. package/lib/settingCharts/SettingCharts.vue2.cjs +0 -1
  157. package/lib/settingCharts/index.cjs +0 -1
  158. package/lib/settingCharts/index.d.ts +0 -14
  159. package/lib/settingFilter/index.cjs +0 -1
  160. package/lib/settingFilter/index.d.ts +0 -15
  161. package/lib/settingFilter/settingFilter.d.ts +0 -5
  162. package/lib/settingFilter/settingFilter.vue.cjs +0 -1
  163. package/lib/settingFilter/settingFilter.vue2.cjs +0 -1
  164. package/lib/settingTable/SettingTable.vue.cjs +0 -1
  165. package/lib/settingTable/SettingTable.vue2.cjs +0 -1
  166. package/lib/settingTable/index.cjs +0 -1
  167. package/lib/settingTable/index.d.ts +0 -14
  168. package/lib/settingText/index.cjs +0 -1
  169. package/lib/settingText/index.d.ts +0 -15
  170. package/lib/settingText/settingText.d.ts +0 -5
  171. package/lib/settingText/settingText.vue.cjs +0 -1
  172. package/lib/settingText/settingText.vue2.cjs +0 -1
  173. package/lib/settingTitle/index.cjs +0 -1
  174. package/lib/settingTitle/index.d.ts +0 -14
  175. package/lib/settingTitle/settingTitle.css +0 -1
  176. package/lib/settingTitle/settingTitle.vue.cjs +0 -1
  177. package/lib/settingTitle/settingTitle.vue2.cjs +0 -1
  178. package/lib/stores/modules/report.cjs +0 -1
  179. package/lib/style/global.css +0 -1
  180. package/lib/table/Table.d.ts +0 -5
  181. package/lib/table/Table.vue.cjs +0 -1
  182. package/lib/table/Table.vue2.cjs +0 -1
  183. package/lib/table/index.cjs +0 -1
  184. package/lib/table/index.d.ts +0 -15
  185. package/lib/text/Text.d.ts +0 -5
  186. package/lib/text/Text.vue.cjs +0 -1
  187. package/lib/text/Text.vue2.cjs +0 -1
  188. package/lib/text/index.cjs +0 -1
  189. package/lib/text/index.d.ts +0 -15
  190. package/lib/time/Time.d.ts +0 -9
  191. package/lib/time/Time.vue.cjs +0 -1
  192. package/lib/time/Time.vue2.cjs +0 -1
  193. package/lib/time/index.cjs +0 -1
  194. package/lib/time/index.d.ts +0 -25
  195. package/lib/utils/api.cjs +0 -1
  196. package/lib/utils/chartsOption.cjs +0 -2
  197. package/lib/utils/data.cjs +0 -1
  198. package/lib/utils/index.cjs +0 -1
  199. package/lib/utils/resolver.cjs +0 -1
  200. package/lib/utils/resolver.d.ts +0 -11
  201. package/lib/utils/type.cjs +0 -1
  202. package/lib/utils/type.d.ts +0 -2
  203. /package/{es/config/Config.d.ts → lib/report/components/ChartsUniConfig.vue.d.ts} +0 -0
  204. /package/{es/settingTable/SettingTable.d.ts → lib/report/components/SettingCharts.vue.d.ts} +0 -0
  205. /package/lib/{settingTable/SettingTable.d.ts → report/components/SettingDescribe.vue.d.ts} +0 -0
  206. /package/{es/settingTitle/settingTitle.d.ts → lib/report/components/SettingFilter.vue.d.ts} +0 -0
  207. /package/lib/{config/Config.d.ts → report/components/SettingText.vue.d.ts} +0 -0
  208. /package/lib/{settingTitle/settingTitle.d.ts → report/components/SettingTitle.vue.d.ts} +0 -0
@@ -1,4 +1,10 @@
1
+ /**
2
+ * @name 获取自定义报表
3
+ */
1
4
  export declare const getReportDemoApi: (params: any) => any;
5
+ /**
6
+ * @name 获取报表组件
7
+ */
2
8
  export declare const getReportItemApi: (params: any) => any;
3
9
  export declare const getReportPreviewApi: (params: any) => any;
4
10
  export declare const postReportAddApi: (data: any) => any;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * 竖着的柱状图数据解释
3
+ * @param chartOption 图option对象
4
+ * @param data 解释的数据 例如:data[{name}]
5
+ * @param props 解释数据映射的name和value
6
+ */
1
7
  export declare const barParseData: (chartOption: any, data: any[], name?: string, props?: {
2
8
  name: string;
3
9
  value: string;
@@ -143,18 +149,34 @@ export declare const chartsBar: (data?: any, props?: {
143
149
  label?: undefined;
144
150
  })[];
145
151
  };
146
- export declare const barHorizontalParseData: (chartOption: any, data: any[], props?: {
147
- name: string;
148
- value: string;
149
- }) => void;
150
- export declare const horizontalSeriesData: (val: number[]) => any;
151
- export declare const horizontalMaxData: (val: number[]) => number[];
152
- export declare const chartsHorizontalBar: (data: any, props?: {
153
- name: string;
154
- value: string;
155
- }) => any;
152
+ /**
153
+ * 横向的柱状图数据解释
154
+ * @param chartOption 图option对象
155
+ * @param data 解释的数据
156
+ * @param props 解释数据映射的name和value
157
+ */
158
+ /**
159
+ * 横向bar基础模型
160
+ * @param data
161
+ * @param props
162
+ */
163
+ /**
164
+ * 拼图数据解释
165
+ * @param chartOption 图option对象
166
+ * @param data 解释的数据
167
+ * @param props 解释数据映射的name和value
168
+ */
156
169
  export declare const pieParseData: ({ chartOption, data, props }: any) => void;
157
- export declare const chartsPie: ({ data, radiusType, roseType, isLegend, isLine, center, isTitle }: any) => {
170
+ /**
171
+ * pie基础模型
172
+ * @param data 数据
173
+ * @param radiusType 1:代表空心
174
+ * @param roseType true为玫瑰图
175
+ * @param isLegend 是否显示图例
176
+ * @param isLine 是否显示名称对应的线
177
+ * @param center 图显示的位置
178
+ */
179
+ export declare const chartsPie: ({ data, radiusType, roseType, isLegend, isLine, center, isTitle, }: any) => {
158
180
  color: string[];
159
181
  toolbox: {
160
182
  show: boolean;
@@ -254,6 +276,12 @@ export declare const chartsPie: ({ data, radiusType, roseType, isLegend, isLine,
254
276
  };
255
277
  }[];
256
278
  };
279
+ /**
280
+ * 解释折线图数据
281
+ * @param chartOption
282
+ * @param data
283
+ * @param props
284
+ */
257
285
  export declare const lineParseData: (chartOption: any, data: any, props?: {
258
286
  name: string;
259
287
  value: any;
@@ -290,8 +318,13 @@ export declare const lineMode: () => {
290
318
  global: boolean;
291
319
  };
292
320
  };
293
- data: never[];
321
+ data: any[];
294
322
  };
323
+ /**
324
+ * 折线图
325
+ * @param data
326
+ * @param props
327
+ */
295
328
  export declare const chartsLine: (data?: any[], props?: {
296
329
  name: string;
297
330
  value: any;
@@ -1,43 +1,3 @@
1
- import { Ref } from 'vue';
2
- export declare function dateFormat(value?: number | string | Date, format?: string): string;
3
- export declare function formatNumber(value: number | string, precision?: number, separator?: string, decimal?: string, prefix?: string, suffix?: string): string;
4
- export declare function rafTimeout(fn: Function, delay?: number, interval?: boolean): object;
5
- export declare function cancelRaf(raf: {
6
- id: number;
7
- }): void;
8
- export declare function throttle(fn: Function, delay?: number): any;
9
- export declare function debounce(fn: Function, delay?: number): any;
10
- export declare function add(num1: number, num2: number): number;
11
- export declare function downloadFile(url: string, fileName?: string): void;
12
- export declare function toggleDark(): void;
13
- export declare function useMounted(): Ref<boolean, boolean>;
14
- export declare function useSupported(callback: () => unknown): import('vue').ComputedRef<boolean>;
15
- export declare function useEventListener(target: HTMLElement | Window | Document, event: string, callback: Function): void;
16
- export declare function useMutationObserver(target: Ref | Ref[] | HTMLElement | HTMLElement[], callback: MutationCallback, options?: {}): {
17
- stop: () => void;
18
- start: () => void;
19
- };
20
- export declare function useScroll(target?: Ref | HTMLElement | Window | Document, throttleDelay?: number, onScroll?: (e: Event) => void, onStop?: (e: Event) => void): {
21
- x: Ref<number, number>;
22
- xScrollMax: Ref<number, number>;
23
- y: Ref<number, number>;
24
- yScrollMax: Ref<number, number>;
25
- isScrolling: Ref<boolean, boolean>;
26
- left: Ref<boolean, boolean>;
27
- right: Ref<boolean, boolean>;
28
- top: Ref<boolean, boolean>;
29
- bottom: Ref<boolean, boolean>;
30
- };
31
- export declare function useFps(): {
32
- fps: Ref<number, number>;
33
- };
34
- export declare function useMediaQuery(mediaQuery: string): {
35
- match: Ref<boolean, boolean>;
36
- };
37
- export declare function useResizeObserver(target: Ref | Ref[] | HTMLElement | HTMLElement[], callback: ResizeObserverCallback, options?: object): {
38
- stop: () => void;
39
- start: () => void;
40
- };
41
- export declare function useSlotsExist(slotsName?: string | string[]): any;
42
1
  export declare const getUniId: () => string;
43
2
  export declare const deepClone: <T>(obj: T | T[]) => any;
3
+ export declare const isComponent: (components: any, component: string) => any;
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'vue';
2
+ type SFCWithInstall<T> = T & Plugin;
3
+ export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E) => SFCWithInstall<T> & E;
4
+ export {};
package/package.json CHANGED
@@ -1,106 +1,87 @@
1
1
  {
2
2
  "name": "@topdatasec/report",
3
- "version": "1.0.9",
4
- "type": "module",
3
+ "version": "1.0.10",
4
+ "description": "Vue3 中基于Element-plus二次封装基础组件文档",
5
5
  "author": "wangguiwang",
6
- "homepage": "",
7
- "description": "",
8
- "publishConfig": {
9
- "access": "public"
10
- },
11
- "keywords": [
12
- "Vue3",
13
- "TypeScript",
14
- "Vite"
15
- ],
6
+ "license": "MIT",
7
+ "private": false,
8
+ "main": "lib/t-ui-plus.umd.js",
9
+ "module": "lib/t-ui-plus.umd.js",
10
+ "types": "lib/index.d.ts",
11
+ "type": "module",
16
12
  "files": [
17
- "dist",
18
- "es",
19
- "lib",
20
13
  "package.json",
21
14
  "README.md",
22
- "README.zh-CN.md"
15
+ "LICENSE",
16
+ "lib"
23
17
  ],
24
- "sideEffects": false,
25
- "main": "lib/index.cjs",
26
- "module": "es/index.js",
27
- "unpkg": "dist/index.iife.js",
28
- "jsdelivr": "dist/index.iife.js",
29
- "types": "es/index.d.ts",
30
- "exports": {
31
- "./dist/*": "./dist/*",
32
- "./es/*": "./es/*",
33
- "./lib/*": "./lib/*",
34
- "./css": "./dist/style.css",
35
- ".": {
36
- "types": "./es/index.d.ts",
37
- "import": "./es/index.js",
38
- "require": "./lib/index.cjs"
39
- }
40
- },
41
18
  "scripts": {
42
- "docs:dev": "vitepress dev docs --port 8000 --open",
43
- "docs:build": "vitepress build docs",
44
- "docs:deploy": "sh scripts/deploy.sh",
45
- "dev": "vite",
46
- "pub": "sh scripts/publish.sh",
47
- "push": "sh scripts/push.sh",
48
- "build": "run-s format clean build:components",
49
- "format": "prettier --write components/",
50
- "clean": "rimraf dist es lib",
51
- "build:components": "run-p type-check build:dist build:browser build-only",
52
- "type-check": "vue-tsc --build --force",
53
- "build:dist": "vite build -- dir=dist",
54
- "build:browser": "vite build -- dir=dist f=iife",
55
- "build-only": "vite build",
56
- "preview": "vite preview",
57
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
19
+ "lib": "rimraf lib && vite build",
20
+ "pub": "npm publish --registry=https://registry.npmjs.org/",
21
+ "prettier": "prettier --write \"packages/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\""
58
22
  },
59
23
  "dependencies": {
60
- "@vuepic/vue-datepicker": "^11.0.1",
61
- "@vueuse/core": "^12.8.2",
62
24
  "@wangeditor/editor": "^5.1.23",
63
25
  "@wangeditor/editor-for-vue": "^1.0.2",
64
- "echarts": "^5.6.0",
65
- "pinia": "^3.0.1",
66
- "topdatasec-ui": "^1.6.1",
67
- "vue": "^3.5.13",
68
- "vue-router": "^4.5.0"
26
+ "vue-draggable-plus": "^0.6.0",
27
+ "vuedraggable": "^4.1.0"
69
28
  },
70
29
  "devDependencies": {
71
- "@ant-design/colors": "^7.2.0",
72
- "@ant-design/icons-vue": "^7.0.1",
73
- "@tsconfig/node22": "^22.0.0",
74
- "@types/minimist": "^1.2.5",
75
- "@types/node": "^22.13.10",
76
- "@vitejs/plugin-vue": "^5.2.1",
77
- "@vue/eslint-config-prettier": "^10.2.0",
78
- "@vue/eslint-config-typescript": "^14.5.0",
79
- "@vue/tsconfig": "^0.7.0",
80
- "eslint": "^9.22.0",
81
- "eslint-plugin-vue": "^10.0.0",
82
- "minimist": "^1.2.8",
83
- "npm-run-all2": "^7.0.2",
84
- "prettier": "^3.5.3",
85
- "rimraf": "^6.0.1",
86
- "rollup-plugin-visualizer": "^5.14.0",
87
- "sass": "^1.85.1",
88
- "typescript": "^5.8.2",
89
- "unplugin-auto-import": "^19.1.1",
90
- "unplugin-vue-components": "^28.4.1",
91
- "vite": "^6.2.1",
30
+ "@iconify-json/fa6-regular": "^1.1.13",
31
+ "@iconify-json/fluent": "^1.1.37",
32
+ "@iconify-json/ic": "^1.1.14",
33
+ "@iconify-json/material-symbols": "^1.1.57",
34
+ "@topdatasec/eslint-rc": "^1.0.4",
35
+ "@types/nprogress": "^0.2.0",
36
+ "@types/sortablejs": "^1.15.2",
37
+ "@typescript-eslint/eslint-plugin": "^6.7.0",
38
+ "@typescript-eslint/parser": "^6.7.0",
39
+ "@vitejs/plugin-vue": "^5.0.4",
40
+ "@vitejs/plugin-vue-jsx": "^3.0.2",
41
+ "eslint": "^8.49.0",
42
+ "eslint-config-prettier": "^9.0.0",
43
+ "eslint-plugin-prettier": "^5.0.0",
44
+ "eslint-plugin-vue": "^9.17.0",
45
+ "lint-staged": "^14.0.1",
46
+ "postcss": "^8.4.29",
47
+ "postcss-html": "^1.5.0",
48
+ "prettier": "^3.0.3",
49
+ "rollup-plugin-visualizer": "^5.9.2",
50
+ "sass": "~1.77.8",
51
+ "standard-version": "^9.5.0",
52
+ "typescript": "~5.2.2",
53
+ "unplugin-auto-import": "^0.16.6",
54
+ "unplugin-icons": "^0.17.0",
55
+ "unplugin-vue-components": "^0.25.2",
56
+ "unplugin-vue-setup-extend-plus": "^1.0.0",
57
+ "vite": "^4.4.9",
58
+ "vite-plugin-compression": "^0.5.1",
92
59
  "vite-plugin-dts": "^4.5.3",
93
- "vite-plugin-vue-devtools": "^7.7.2",
94
- "vitepress": "^1.6.3",
95
- "vue-tsc": "^2.2.8"
60
+ "vite-plugin-eslint": "^1.8.1",
61
+ "vite-plugin-html": "^3.2.0",
62
+ "vite-plugin-pwa": "^0.16.5",
63
+ "vite-plugin-svg-icons": "^2.0.1",
64
+ "vue-tsc": "~1.8.27"
96
65
  },
97
- "license": "MIT",
98
- "bugs": {
99
- "url": ""
66
+ "peerDependencies": {
67
+ "echarts": "^5.6.0",
68
+ "element-plus": "^2.9.0",
69
+ "pinia": "^2.1.6",
70
+ "topdatasec-ui": "^1.6.1",
71
+ "vue": "^3.4.35"
72
+ },
73
+ "repository": {
74
+ "type": "git",
75
+ "url": "https://github.com/wocwin/t-ui-plus.git"
100
76
  },
101
- "browserslist": [
102
- "> 1%",
103
- "last 2 versions",
104
- "not dead"
77
+ "homepage": "https://wocwin.github.io/t-ui-plus/",
78
+ "keywords": [
79
+ "element-plus",
80
+ "vite",
81
+ "vite3",
82
+ "vitepress",
83
+ "vue",
84
+ "vue3",
85
+ "components"
105
86
  ]
106
- }
87
+ }
package/README.zh-CN.md DELETED
File without changes
@@ -1,2 +0,0 @@
1
- (function(_,e,ge,ct,H){"use strict";const be={class:"chart-components"},he=e.defineComponent({name:"TdsReportBar",__name:"Bar",props:{data:{}},setup(o){const l=o,t=e.computed(()=>l.data.options);return(n,a)=>{const r=e.resolveComponent("TdsChart");return e.openBlock(),e.createElementBlock("div",be,[e.createVNode(r,{option:t.value},null,8,["option"])])}}}),T=o=>{const l=o;return l.install=function(t){t.component(l.name,o)},o},Y=T(he),U=window.$http,E=window.$envURL,ye=o=>E.request({url:`${E}/tds/report/demo/get`,method:"get",params:o,isError:!1}),P=o=>U.request({url:`${E}/tds/report/item/get`,method:"get",params:o,isError:!1}),Ce=o=>U.request({url:`${E}/tds/report/get`,method:"get",params:o,isError:!1}),Ve=o=>U.request({url:`${E}/tds/report/filter/get`,method:"get",params:o,isError:!1}),we=o=>U.request({url:`${E}/tds/report/delete`,method:"delete",data:o});function xe(o=Date.now(),l="YYYY-MM-DD HH:mm:ss"){try{let t;if(typeof o=="number"||typeof o=="string"){if(t=new Date(o),isNaN(t.getTime()))throw new Error("Invalid date")}else t=o;const n=(r,s=2)=>String(r).padStart(s,"0"),a=r=>{switch(r){case"YYYY":return n(t.getFullYear());case"YY":return n(t.getFullYear()).slice(2,4);case"MM":return n(t.getMonth()+1);case"M":return String(t.getMonth()+1);case"DD":return n(t.getDate());case"D":return String(t.getDate());case"HH":return n(t.getHours());case"H":return String(t.getHours());case"mm":return n(t.getMinutes());case"m":return String(t.getMinutes());case"ss":return n(t.getSeconds());case"s":return String(t.getSeconds());case"SSS":return n(t.getMilliseconds(),3);default:return r}};return l.replace(/(YYYY|YY|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS)/g,a)}catch(t){return console.error("Error formatting date:",t),""}}function Te(o,l=2,t=",",n=".",a,r){typeof o!="number"&&typeof o!="string"&&console.warn("Expected value to be of type number or string"),typeof l!="number"&&console.warn("Expected precision to be of type number");const s=Number(o);if(isNaN(s)||!isFinite(s))return"";if(s===0)return s.toFixed(l);let d=s.toFixed(l);if(typeof t=="string"&&t!==""){const[i,c]=d.split(".");d=i.replace(/(\d)(?=(\d{3})+$)/g,"$1"+t)+(c?n+c:"")}return(a||"")+d+(r||"")}function Se(o,l=0,t=!1){let n=null;function a(s){if(n||(n=s),s-n>=l){try{o()}catch(i){console.error("Error executing rafTimeout function:",i)}t&&(n=s,r.id=requestAnimationFrame(a))}else r.id=requestAnimationFrame(a)}const r={id:requestAnimationFrame(a)};return r}function ke(o){o&&o.id&&typeof o.id=="number"?cancelAnimationFrame(o.id):console.warn("cancelRaf received an invalid id:",o)}function O(o,l=300){let t=!0;return function(...n){return t&&(o(...n),t=!1,setTimeout(()=>{t=!0},l)),!1}}function W(o,l=300){let t=null;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{o(...n)},l)}}function Ne(o,l){if(Number.isNaN(o)||Number.isNaN(l))throw new Error("Both num1 and num2 must be valid numbers.");const t=o%1!==0,n=l%1!==0;if(!t&&!n)return o+l;const a=String(o).split(".")[1]??"",r=String(l).split(".")[1]??"",s=Math.max(a.length,r.length),d=Math.pow(10,s),i=o.toFixed(s),c=l.toFixed(s);return(+i.replace(".","")+ +c.replace(".",""))/d}function Ee(o,l){if(!o){console.error("无效的 url");return}const t=l||o.split("?")[0].split("/").pop()||"download";try{fetch(o).then(n=>{n.ok?n.blob().then(a=>{const r=URL.createObjectURL(a),s=document.createElement("a");s.href=r,s.download=t,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(r)}):console.error("请求文件失败,状态码:",n.status)})}catch(n){console.error("文件下载失败:",n)}}function Re(){const o=document.documentElement;o.classList.toggle("dark"),o.classList.contains("dark")?o.style.colorScheme="dark":o.style.colorScheme="light"}function $e(){const o=e.ref(!1),l=e.getCurrentInstance();return l&&e.onMounted(()=>{o.value=!0},l),o}function j(o){const l=$e();return e.computed(()=>(l.value,!!o()))}function Be(o,l,t){e.onMounted(()=>o.addEventListener(l,t)),e.onUnmounted(()=>o.removeEventListener(l,t))}function Le(o,l,t={}){const n=j(()=>window&&"MutationObserver"in window),a=e.ref(!1);let r;const s=e.computed(()=>{const m=e.toValue(o);return m?Array.isArray(m)?m.map(u=>e.toValue(u)).filter(u=>u):[m]:[]}),d=()=>{r&&(r.disconnect(),r=void 0)},i=()=>{n.value&&s.value.length&&!a.value&&(r=new MutationObserver(l),s.value.forEach(m=>r.observe(m,t)))};e.watch(()=>s.value,()=>{d(),i()},{immediate:!0,flush:"post"});const c=()=>{a.value=!0,d()},f=()=>{a.value=!1,i()};return e.onBeforeUnmount(()=>d()),{stop:c,start:f}}function Fe(o=window,l=0,t,n){const a=e.ref(0),r=e.ref(0),s=e.ref(0),d=e.ref(0),i=e.ref(!1),c=e.ref(!1),f=e.ref(!1),m=e.ref(!1),u=e.ref(!1),p=e.ref(0),h=e.ref(0);function C(b){i.value=!0;const N=b.target.documentElement??b.target;a.value=N.scrollLeft,s.value=N.scrollTop,c.value=a.value<p.value,f.value=a.value>p.value,m.value=s.value<h.value,u.value=s.value>h.value,p.value=a.value,h.value=s.value,y(b),t&&t(b)}const w=O(C,l);function V(b){i.value&&(i.value=!1,c.value=!1,f.value=!1,m.value=!1,u.value=!1,n&&n(b))}const y=W(V,l+200),g=e.computed(()=>{const b=e.toValue(o);return b||null});e.watch(()=>g.value,(b,N)=>{var F;if(N&&k(N),b){const L=((F=b==null?void 0:b.document)==null?void 0:F.documentElement)||(b==null?void 0:b.documentElement)||b;r.value=L.scrollWidth-L.clientWidth,d.value=L.scrollHeight-L.clientHeight,L.addEventListener("scroll",w),L.addEventListener("scrollend",y)}},{immediate:!0,flush:"post"});function k(b){var F;const N=((F=b==null?void 0:b.document)==null?void 0:F.documentElement)||(b==null?void 0:b.documentElement)||b;N.removeEventListener("scroll",w),N.removeEventListener("scrollend",y)}return e.onBeforeUnmount(()=>k(g.value)),{x:a,xScrollMax:r,y:s,yScrollMax:d,isScrolling:i,left:c,right:f,top:m,bottom:u}}function Ue(){const o=e.ref(0),l=e.ref(0);let t=performance.now();const n=10,a=r=>{if(l.value++,l.value>=n){const s=r-t;o.value=Math.round(1e3/(s/n)),t=r,l.value=0}requestAnimationFrame(a)};return requestAnimationFrame(a),{fps:o}}function De(o){if(!o||typeof o!="string"||o.trim()==="")throw new Error("Invalid mediaQuery parameter. It must be a non-empty string.");const l=e.ref(window&&window.matchMedia(o).matches),t=window.matchMedia(o),n=a=>{l.value=a.matches};return e.onMounted(()=>{t.addEventListener("change",n)}),e.onBeforeUnmount(()=>{t.removeEventListener("change",n)}),{match:l}}function Ae(o,l,t={}){const n=j(()=>window&&"ResizeObserver"in window);let a;const r=e.ref(!1),s=e.computed(()=>{const m=e.toValue(o);return m?Array.isArray(m)?m.map(u=>e.toValue(u)).filter(u=>u):[m]:[]}),d=()=>{a&&(a.disconnect(),a=void 0)},i=()=>{n.value&&s.value.length&&!r.value&&(a=new ResizeObserver(l),s.value.forEach(m=>a.observe(m,t)))};e.watch(()=>s.value,()=>{d(),i()},{immediate:!0,flush:"post"});const c=()=>{r.value=!0,d()},f=()=>{r.value=!1,i()};return e.onBeforeUnmount(()=>d()),{stop:c,start:f}}function Me(o="default"){const l=e.useSlots(),t=n=>{var s;const a=(s=l[n])==null?void 0:s.call(l),r=d=>{if(d.type===e.Comment||Array.isArray(d.children)&&!d.children.length)return!1;if(d.type!==e.Text)return!0;if(typeof d.children=="string")return d.children.trim()!==""};return a&&(a!=null&&a.length)?a.some(i=>r(i)):!1};if(Array.isArray(o)){const n=e.reactive({});return o.forEach(a=>{const r=e.computed(()=>t(a));n[a]=r}),n}else return e.computed(()=>t(o))}const R=()=>new Date().getTime().toString(36)+"-"+Math.random().toString(36).substring(2,9),D=o=>JSON.parse(JSON.stringify(o)),q="rgba(51, 51, 51, 0.15)",S="rgba(51, 51, 51, 1)",$=12,G=(o=!1)=>{const l={left:"3%",right:"3%",bottom:"2%",containLabel:!0};return o&&(l.top="5%"),l},x=["46, 145, 255","48, 212, 183","108, 108, 255","109, 237, 124","128, 218, 236","58, 200, 218","146, 218, 89","118, 218, 218","143, 192, 244","192, 192, 145","153, 136, 204","212, 217, 230","124, 186, 255","209, 182, 225","255, 197, 84","249, 140, 106","246, 179, 82","100, 161, 206","246, 175, 159","238, 97, 97"],Ie=(o,l,t="",n={name:"name",value:"value"})=>{const a=[],r=[];l.forEach(s=>{a.push(s[n.name]),r.push(s[n.value])}),o.xAxis[0].data=a,o.series[0].data=r,o.series[0].name=t,o.series[1].data=r,o.series[2].data=r},A=(o=[{name:"数据1",value:63},{name:"数据2",value:45},{name:"数据3",value:43}],l={name:"name",value:"value"})=>{const t=(a="rgba(46, 145, 255, 0.7)",r="rgba(46, 145, 255, 0.2)")=>({color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:a},{offset:.8,color:r}]}}),n=o.map(a=>a[l.value]);return{tooltip:{trigger:"item"},grid:G(),title:{show:!0,text:"样例数据",textStyle:{color:"#333",fontSize:18},x:10,y:10},xAxis:[{type:"category",nameGap:8,nameRotate:0,axisLabel:{color:S,rotate:0},axisLine:{show:!0,lineStyle:{color:q,width:1}},axisTick:{show:!1},splitLine:{show:!1},data:o.map(a=>a[l.name])}],yAxis:[{type:"value",min:0,position:"left",nameTextStyle:{fontSize:$,color:S,fontWeight:"bold"},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{color:S,formatter:"{value}",inside:!1}}],series:[{type:"bar",barWidth:15,barGap:"0%",itemStyle:t(`rgba(${x[0]}, 0.7)`,`rgba(${x[0]}, 0.2)`),data:n,label:{show:!0,position:"top",color:"inherit",lineHeight:24}},{name:"",type:"pictorialBar",symbolSize:[15,10],symbolOffset:[0,5],itemStyle:t(`rgba(${x[0]}, 0.7)`,`rgba(${x[0]}, 0.2)`),data:n},{name:"",type:"pictorialBar",symbolSize:[15,10],symbolOffset:[0,-5],symbolPosition:"end",itemStyle:t(`rgba(${x[0]}, 0.9)`,`rgba(${x[0]}, 1)`),data:n}]}},ze=({chartOption:o,data:l,props:t={name:"label",value:"data"}})=>{let n=0;const a=l.map((r,s)=>(n+=Number(r[t.value]),{name:r[t.name],value:Number(r[t.value])}));l.length>0&&(o.legend.data=a,o.series[0].data=a,o.graphic[1].style.text=n)},He=()=>x.map(o=>`rgba(${o}, 1)`),J=({data:o=[{name:"数据1",value:63},{name:"数据2",value:45},{name:"数据3",value:43}],radiusType:l=1,roseType:t=!1,isLegend:n=!0,isLine:a=!1,center:r=["50%","50%"],isTitle:s=!0})=>{const d={color:He(),toolbox:{show:!1},tooltip:{trigger:"item",show:!0,formatter:i=>{const{name:c,value:f}=i;return`<div style="color: ${i.color}; font-size: 14px;">${c}&nbsp;&nbsp;&nbsp;</div>
2
- <div><span style="font-size: 14px; color: #86909c; float: right;">数量:${f}</span></div>`}},title:{show:s,text:"样例数据",textStyle:{color:"#333",fontSize:18},x:10,y:10},legend:{show:n,left:"70%",formatter:i=>{var f;const c=(f=d.series[0])==null?void 0:f.data.find(m=>m.name===i).value;return` ${i} | ${c}`},textStyle:{fontSize:$,color:S},data:o,orient:"vertical",itemWidth:10,itemHeight:10,borderRadius:10,x:"left",top:"center",align:"left",itemGap:15},series:[{type:"pie",center:r,radius:l===1?t?["10%","65%"]:["45%","70%"]:["0%","65%"],roseType:t,itemStyle:{borderRadius:1},label:{show:a,position:"outside",alignTo:"labelLine",backgroundColor:"#fff",height:0,width:0,lineHeight:0,distanceToLabelLine:0,borderRadius:3,borderWidth:1,borderColor:"inherit",padding:[3,-3,3,-3],formatter:function(i){return`{a|${i.name}(${i.value})}`},rich:{a:{padding:[20,-80,40,-80],fontSize:"12px",fontFamily:"MicrosoftYaHei",color:"#091158"},b:{padding:[0,-80,55,-80],fontSize:"15px",fontFamily:"MicrosoftYaHei-Bold, MicrosoftYaHei",fontWeight:"bold",color:"#001F3D"}}},labelLine:{show:!0,length:40,length2:85,align:"right",lineStyle:{width:1}},data:o}],graphic:[{invisible:!1,type:"text",left:"center",top:"44%",style:{text:"总量",fontSize:14,fill:"#86909c",fontWeight:"bold"}},{invisible:!1,type:"text",left:"center",top:"50%",style:{text:"151",fontSize:18,fill:"#86909c",fontWeight:"bold"}}]};return d},Ye=(o,l,t={name:"name",value:"value"})=>{o.xAxis.data=l.map(n=>n[t.name]),Array.isArray(t.value)?t.value.forEach((n,a)=>{o.series[a].data=l.map(r=>r[n.value])}):typeof t.value=="string"&&(o.series[0].data=l.map(n=>n[t.value]))},Pe=()=>({name:"",type:"line",symbol:"circle",smooth:!0,lineStyle:{width:1,color:`rgba(${x[0]}, 1)`},showSymbol:!1,itemStyle:{color:`rgba(${x[0]}, 1)`,label:{show:!0,position:"top",formatter:function(o){return o.value?o.value:0}}},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:`rgba(${x[0]}, 0.7)`},{offset:1,color:`rgba(${x[0]}, 0.1)`}],global:!1}},data:[]}),K=(o=[{name:"2024-08",value:63},{name:"2024-09",value:45},{name:"2024-10",value:43}],l={name:"name",value:"value"})=>{const t={tooltip:{trigger:"axis"},title:{show:!0,text:"样例数据",textStyle:{color:"#333",fontSize:18},x:10,y:10},legend:{show:!0,itemWidth:30,textStyle:{color:S,fontSize:$,padding:[0,8,0,8]}},grid:G(),xAxis:{type:"category",splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:q}},axisLabel:{show:!0,fontSize:$,color:S},boundaryGap:!1,data:o.map(r=>r[l.name])},yAxis:{name:"",type:"value",splitLine:{show:!1},axisLine:{show:!1},axisTick:{show:!1},nameTextStyle:{fontSize:$,color:S,padding:[0,60,0,0]},axisLabel:{show:!0,fontSize:$,color:S}},series:[]},n=Pe(),a=[];if(Array.isArray(l.value))l.value.forEach((r,s)=>{const d=D(n);d.name=r.name,d.lineStyle.color=`rgba(${x[s]}, 1)`,d.itemStyle.color=`rgba(${x[s]}, 1)`,d.areaStyle.color.colorStops[0].color=`rgba(${x[s]}, 0.7)`,d.areaStyle.color.colorStops[1].color=`rgba(${x[s]}, 0.1)`,d.data=o.map(i=>i[r.value]),a.push(d)});else if(typeof l.value=="string"){const r=D(n);r.data=o.map(s=>s[l.value]),a.push(r)}return t.series=a,t},M=[{key:"assets",name:"资产名称"},{key:"type",name:"资产类型"},{key:"data",name:"资产数据"}],I=[{assets:"name1",type:"type1",data:"data1"},{assets:"name2",type:"type2",data:"data2"},{assets:"name3",type:"type3",data:"data3"}],z=[{data:[{name:"默认数据",value:180}],label:"name1"},{data:[{name:"默认数据",value:311}],label:"name2"},{data:[{name:"默认数据",value:42}],label:"name3"},{data:[{name:"默认数据",value:32391}],label:"name4"}],Oe=[{data:63,label:"数据1"},{data:45,label:"数据2"},{data:43,label:"数据3"}],We=[{type:"report-select",label:"资产:",value:"0",data:[{label:"全部",data:"0"},{label:"10.10.2.20_root",data:"743dbb32-8a41-4990-9d76-48925b000a93"},{label:"10.10.4.206_sysdba",data:"23193788-c895-47a8-8123-65799540394c"},{label:"10.10.4.26_root@/root/files/",data:"bb7b07c9-b96b-4caf-ac76-bb45ae849844"}],uri:"/da/report/sens/get_asset_all",id:R()},{type:"range-time",data:[{start_time:"2024-08-20 19:49:34",end_time:"2024-09-12 19:49:34"}],id:R()},{type:"h1",data:"报表名称",options:{size:24,color:"rgba(0,0,0,0.85)",fontWeight:500,letterSpacing:0,textIndent:0,textAlign:"left"},id:R()},{type:"h2",data:"一级标题",name:"一级标题",options:{size:18,color:" rgba(0, 0, 0, 0.85)",fontWeight:500,letterSpacing:0,textIndent:0,textAlign:"left"},id:R()},{type:"report-table",data:I,showColumn:M,name:"表格",options:{showColumn:{assets:!0,type:!0,data:!0},border:!0,showHeader:!0,stripe:!1},rp_item_uuid:"",id:R()}];A();const je=o=>({bar:{type:"bar",data:z,showColumn:[{key:"label",value:"data"}],name:"图表",options:A(),rp_item_uuid:"",id:""},line:{type:"line",data:z,showColumn:[{key:"label",value:"data"}],name:"图表",options:K(),rp_item_uuid:"",id:""},pie:{type:"pie",data:Oe,showColumn:[{key:"label",value:"data"}],name:"图表",options:J({isLegend:!0}),rp_item_uuid:"",id:""},"report-table":{type:"report-table",data:I,showColumn:M,name:"表格",options:{showColumn:{assect:!0,type:!0,data:!0},border:!0,showHeader:!0,stripe:!1},rp_item_uuid:"",id:""}})[o],B=ge.defineStore("tds-report",{state:()=>({componentList:[],activeComponents:{},notDraggableList:[],titleComponent:{},filterForm:{range_time:1,filter_uuid:""}}),getters:{getActiveComponents:o=>o.activeComponents},actions:{setComponentList(o){this.componentList=o},async getReportDemo(o){let l=[];o?l=(await ye({report_uuid:o})).data:l={content:D(We),range_time:1};const t=[];l.content.forEach(n=>{(n.type==="report-select"||n.type==="range-time")&&t.push(n),n.type==="h1"&&(this.titleComponent=n),n.id=R()}),this.notDraggableList=t,this.filterForm.range_time=l.range_time,this.filterForm.filter_uuid=l.filter_uuid,l.content.splice(0,3),this.componentList=l.content},setActiveComponents(o){this.activeComponents=o},clearComponents(){this.activeComponents={},this.componentList=[],this.notDraggableList=[],this.titleComponent={},this.filterForm={range_time:1,filter_uuid:""}}}}),qe={key:0},Ge={class:"sub-title"},Je=e.defineComponent({name:"TdsReportConfig",__name:"Config",setup(o){const l=B(),t=e.computed(()=>l.activeComponents);function n(i){i?(t.value.options.series[0].radius=["10%","65%"],t.value.options.graphic[0].invisible=!0,t.value.options.graphic[1].invisible=!0):(t.value.options.series[0].radius=["45%","70%"],t.value.options.graphic[0].invisible=!1,t.value.options.graphic[1].invisible=!1)}const a=e.ref("rgb(46, 145, 255)"),r=(i="rgba(46, 145, 255, 0.7)",c="rgba(46, 145, 255, 0.2)")=>({color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:i},{offset:.8,color:c}]}});function s(i){i&&(l.activeComponents.options.series[0].itemStyle=r(d(i,.7),d(i,.2)),l.activeComponents.options.series[1].itemStyle=r(d(i,.7),d(i,.2)),l.activeComponents.options.series[2].itemStyle=r(d(i,.9),d(i,1)))}function d(i,c=1){i=i.replace(/^#/,"");const f=parseInt(i.substring(0,2),16),m=parseInt(i.substring(2,4),16),u=parseInt(i.substring(4,6),16);return`rgba(${f}, ${m}, ${u}, ${c})`}return(i,c)=>{const f=e.resolveComponent("el-input"),m=e.resolveComponent("el-form-item"),u=e.resolveComponent("el-switch"),p=e.resolveComponent("el-col"),h=e.resolveComponent("el-color-picker"),C=e.resolveComponent("el-input-number"),w=e.resolveComponent("el-row"),V=e.resolveComponent("el-collapse-item"),y=e.resolveComponent("el-collapse");return t.value.options.title?(e.openBlock(),e.createElementBlock("div",qe,[e.createVNode(m,{label:"标题"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.value.options.title.text,"onUpdate:modelValue":c[0]||(c[0]=g=>t.value.options.title.text=g)},null,8,["modelValue"])]),_:1}),e.createVNode(y,null,{default:e.withCtx(()=>[e.createVNode(V,{title:"标题配置",name:"1"},{default:e.withCtx(()=>[e.createVNode(w,{class:"w-100%"},{default:e.withCtx(()=>[e.createVNode(p,{span:24},{default:e.withCtx(()=>[c[9]||(c[9]=e.createElementVNode("span",{class:"switch-label"},"显示标题",-1)),e.createVNode(u,{modelValue:t.value.options.title.show,"onUpdate:modelValue":c[1]||(c[1]=g=>t.value.options.title.show=g)},null,8,["modelValue"])]),_:1}),e.createVNode(p,{span:12},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:t.value.options.title.textStyle.color,"onUpdate:modelValue":c[2]||(c[2]=g=>t.value.options.title.textStyle.color=g),"show-alpha":""},null,8,["modelValue"]),c[10]||(c[10]=e.createElementVNode("p",{class:"sub-title"},"颜色",-1))]),_:1}),e.createVNode(p,{span:12},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:t.value.options.title.textStyle.fontSize,"onUpdate:modelValue":c[3]||(c[3]=g=>t.value.options.title.textStyle.fontSize=g),"controls-position":"right"},null,8,["modelValue"]),c[11]||(c[11]=e.createElementVNode("p",{class:"sub-title"},"字体大小",-1))]),_:1}),e.createVNode(p,{span:12},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:t.value.options.title.x,"onUpdate:modelValue":c[4]||(c[4]=g=>t.value.options.title.x=g),"controls-position":"right"},null,8,["modelValue"]),c[12]||(c[12]=e.createElementVNode("p",{class:"sub-title"},"横向",-1))]),_:1}),e.createVNode(p,{span:12},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:t.value.options.title.y,"onUpdate:modelValue":c[5]||(c[5]=g=>t.value.options.title.y=g),"controls-position":"right"},null,8,["modelValue"]),c[13]||(c[13]=e.createElementVNode("p",{class:"sub-title"},"纵向",-1))]),_:1})]),_:1})]),_:1}),e.createVNode(V,{title:"图形配置",name:"2"},{default:e.withCtx(()=>[t.value.options.color&&t.value.options.color.length&&t.value.type==="pie"?(e.openBlock(),e.createBlock(w,{key:0},{default:e.withCtx(()=>[e.createVNode(p,{span:24},{default:e.withCtx(()=>[c[14]||(c[14]=e.createElementVNode("span",{class:"switch-label"},"玫瑰图",-1)),e.createVNode(u,{onChange:n,modelValue:t.value.options.series[0].roseType,"onUpdate:modelValue":c[6]||(c[6]=g=>t.value.options.series[0].roseType=g)},null,8,["modelValue"])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.data,(g,k)=>(e.openBlock(),e.createBlock(p,{span:12,class:"mb-10px",key:k},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:t.value.options.color[k],"onUpdate:modelValue":b=>t.value.options.color[k]=b,"show-alpha":""},null,8,["modelValue","onUpdate:modelValue"]),e.createElementVNode("p",Ge,e.toDisplayString(g.label),1)]),_:2},1024))),128))]),_:1})):e.createCommentVNode("",!0),t.value.type==="bar"?(e.openBlock(),e.createBlock(w,{key:1},{default:e.withCtx(()=>[e.createVNode(p,{span:12},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:a.value,"onUpdate:modelValue":c[7]||(c[7]=g=>a.value=g),onChange:s},null,8,["modelValue"]),c[15]||(c[15]=e.createElementVNode("p",{class:"sub-title"},"柱颜色",-1))]),_:1})]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(V,{title:"图例配置",name:"3"},{default:e.withCtx(()=>[e.createVNode(w,null,{default:e.withCtx(()=>[e.createVNode(p,{span:24},{default:e.withCtx(()=>[c[16]||(c[16]=e.createElementVNode("span",{class:"switch-label"},"显示图例",-1)),t.value.options.legend?(e.openBlock(),e.createBlock(u,{key:0,modelValue:t.value.options.legend.show,"onUpdate:modelValue":c[8]||(c[8]=g=>t.value.options.legend.show=g)},null,8,["modelValue"])):e.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}}),Z=(o,l)=>{const t=o.__vccOpts||o;for(const[n,a]of l)t[n]=a;return t},Q=Z(Je,[["__scopeId","data-v-9d35239c"]]),X=T(Q),Ke={class:"chart-components"},v=T(e.defineComponent({name:"TdsReportLine",__name:"Line",props:{data:{}},setup(o){const l=o,t=e.computed(()=>l.data.options);return(n,a)=>{const r=e.resolveComponent("TdsChart");return e.openBlock(),e.createElementBlock("div",Ke,[e.createVNode(r,{option:t.value},null,8,["option"])])}}})),Ze={class:"chart-components"},ee=T(e.defineComponent({name:"TdsReportPie",__name:"Pie",props:{data:{}},setup(o){const l=o,t=e.computed(()=>l.data.options);return(n,a)=>{const r=e.resolveComponent("TdsChart");return e.openBlock(),e.createElementBlock("div",Ze,[e.createVNode(r,{option:t.value},null,8,["option"])])}}})),Qe={class:"table-box"},te=T(e.defineComponent({name:"TdsReportInfo",__name:"Report",props:{prodType:{}},setup(o){const l=o,t=e.reactive({prod_type:l.prodType}),n=e.ref(),a=f=>{},r=()=>{},s=f=>{console.log(f)},d=f=>{},i=f=>{window==null||window.$messageBox("确定要删除吗?","","温馨提示","error").then(async()=>{await we({report_uuids:f}),n.value.getTableList()})},c=e.reactive([{type:"selection",width:80},{field:"report_name",name:"名称",search:{type:"input"}},{field:"report_desc",name:"报表描述"},{field:"create_time",name:"创建时间"},{field:"operation",width:140,name:"操作",align:"center",fixed:"right",render:f=>React.createElement("div",null,React.createElement("el-button",{link:!0,type:"primary",class:"custom-btn",icon:"View",title:"预览",onClick:()=>a(f.row)}),React.createElement("el-button",{link:!0,type:"primary",class:"custom-btn",icon:"Edit",title:"编辑",onClick:()=>d(f.row)}),React.createElement("el-button",{link:!0,type:"danger",icon:"Delete",title:"删除",onClick:()=>i([f.row.report_uuid])}))}]);return(f,m)=>{const u=e.resolveComponent("el-button"),p=e.resolveComponent("TdsTable");return e.openBlock(),e.createElementBlock("div",Qe,[e.createVNode(p,{ref_key:"proTable",ref:n,columns:c,"request-api":Ce,"init-param":t,"row-key":"report_uuid",options:f.$tableOptions(),"search-col":6,onSelectionChange:s},{tableHeader:e.withCtx(h=>[e.createVNode(u,{plain:"",type:"primary",class:"custom-btn",icon:"Plus",onClick:r},{default:e.withCtx(()=>m[0]||(m[0]=[e.createTextVNode("添加")])),_:1}),e.createVNode(u,{plain:"",type:"danger",icon:"Delete",onClick:C=>i(h.selectedListIds)},{default:e.withCtx(()=>m[1]||(m[1]=[e.createTextVNode("删除")])),_:2},1032,["onClick"])]),_:1},8,["columns","request-api","init-param","options"])])}}})),Xe={key:0},oe=T(e.defineComponent({name:"TdsReportSelect",__name:"Select",props:{data:{}},emits:["change"],setup(o,{emit:l}){const t=l,n=s=>{t("change",s)},a=o,r=e.ref(a.data);return(s,d)=>{const i=e.resolveComponent("el-option"),c=e.resolveComponent("el-select");return r.value.data?(e.openBlock(),e.createElementBlock("div",Xe,[e.createVNode(c,{modelValue:r.value.value,"onUpdate:modelValue":d[0]||(d[0]=f=>r.value.value=f),multiple:"",style:{width:"100%"},onChange:n,placeholder:"全部"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.data,f=>(e.openBlock(),e.createBlock(i,{key:f.data,label:f.label,value:f.data},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0)}}})),ve={class:"label"},et={class:"flex item-switch"},tt={class:"flex item-switch"},ot={class:"flex item-switch"},ne=e.defineComponent({name:"TdsSettingTable",__name:"SettingTable",setup(o){const l=B(),t=e.computed(()=>l.getActiveComponents);return(n,a)=>{const r=e.resolveComponent("el-switch"),s=e.resolveComponent("el-form-item"),d=e.resolveComponent("el-divider");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(s,{label:"控制列"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.showColumn,(i,c)=>(e.openBlock(),e.createElementBlock("p",{class:"flex item-switch",key:c},[e.createElementVNode("span",ve,e.toDisplayString(i.name),1),e.createVNode(r,{modelValue:t.value.options.showColumn[i.key],"onUpdate:modelValue":f=>t.value.options.showColumn[i.key]=f},null,8,["modelValue","onUpdate:modelValue"])]))),128))]),_:1}),e.createVNode(d),e.createVNode(s,{label:"表格样式"},{default:e.withCtx(()=>[e.createElementVNode("p",et,[a[3]||(a[3]=e.createElementVNode("span",{class:"label"},"斑马纹",-1)),e.createVNode(r,{modelValue:t.value.options.stripe,"onUpdate:modelValue":a[0]||(a[0]=i=>t.value.options.stripe=i)},null,8,["modelValue"])]),e.createElementVNode("p",tt,[a[4]||(a[4]=e.createElementVNode("span",{class:"label"},"边框",-1)),e.createVNode(r,{modelValue:t.value.options.border,"onUpdate:modelValue":a[1]||(a[1]=i=>t.value.options.border=i)},null,8,["modelValue"])]),e.createElementVNode("p",ot,[a[5]||(a[5]=e.createElementVNode("span",{class:"label"},"表头",-1)),e.createVNode(r,{modelValue:t.value.options.showHeader,"onUpdate:modelValue":a[2]||(a[2]=i=>t.value.options.showHeader=i)},null,8,["modelValue"])])]),_:1})])}}}),le=T(e.defineComponent({name:"TdsSettingCharts",__name:"SettingCharts",props:{prodType:{}},setup(o){const l=o,t=B(),n=e.ref(!1),a=e.computed(()=>t.getActiveComponents),r=[{value:"report-table",name:"表格"},{value:"line",name:"趋势图"},{value:"pie",name:"扇形图"},{value:"bar",name:"柱状图"}],s=e.ref(""),d=e.ref();async function i(m){const u=await P({prod_type:l.prodType,chart_type:m,filter_uuid:t.filterForm.filter_uuid});d.value=u.data}function c(m){let u=d.value.find(h=>h.rp_item_uuid===m);const p=u.rp_item_content;if(u.rp_item_content.type==="bar"){p.options=A();const h=[];let C="";p.data.forEach(w=>{C=w.data[0].name,h.push({name:w.label,value:w.data[0].value})}),Ie(p.options,h,C)}if(p.type==="pie"&&(p.options=J({isLegend:!0}),ze({chartOption:p.options,data:p.data})),p.type==="line"){let h=[];p.data.forEach(V=>{h=V.data.map((y,g)=>({name:y.name,value:"value"+g}))});const C={name:"name",value:h},w=p.data.map(V=>{const y={name:V.label};return h.forEach((g,k)=>{y[g.value]=V.data[k].value}),y});p.options=K([],C),Ye(p.options,w,C)}if(p.type==="report-table"){const h={};p.showColumn.forEach(C=>{h[C.key]=!0}),p.options={...p.options,showColumn:h,border:!0,showHeader:!0,stripe:!1}}Object.assign(t.activeComponents,p),t.activeComponents.rp_item_uuid=u.rp_item_uuid}e.onMounted(async()=>{s.value=a.value.type,await i(s.value)});async function f(m){try{n.value=!0,await i(m),Object.assign(t.activeComponents,je(m)),n.value=!1}catch{n.value=!1}}return e.watch(()=>a.value,m=>{~["bar","pie","line","report-table"].indexOf(m.type)&&(s.value=a.value.type,i(s.value))}),(m,u)=>{const p=e.resolveComponent("el-option"),h=e.resolveComponent("el-select"),C=e.resolveComponent("el-form-item"),w=e.resolveComponent("el-form"),V=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.createVNode(w,{"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(C,{label:"图表类型"},{default:e.withCtx(()=>[e.createVNode(h,{style:{width:"100%"},modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=y=>s.value=y),onChange:f},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,(y,g)=>e.createVNode(p,{key:g,label:y.name,value:y.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(C,{label:"组件库"},{default:e.withCtx(()=>[e.createVNode(h,{style:{width:"100%"},modelValue:e.unref(t).activeComponents.rp_item_uuid,"onUpdate:modelValue":u[1]||(u[1]=y=>e.unref(t).activeComponents.rp_item_uuid=y),onChange:c},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(y,g)=>(e.openBlock(),e.createBlock(p,{key:g,label:y.rp_item_name,value:y.rp_item_uuid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s.value==="report-table"&&a.value.options.showColumn?(e.openBlock(),e.createBlock(ne,{key:0})):e.createCommentVNode("",!0),s.value==="pie"||s.value==="bar"||s.value==="line"?(e.openBlock(),e.createBlock(Q,{key:1})):e.createCommentVNode("",!0)]),_:1})])),[[V,n.value]])}}})),ae=T(e.defineComponent({name:"TdsSettingFilter",__name:"settingFilter",props:{prodType:{}},setup(o){const l=o,t=e.ref([]),n=B();async function a(){const r=await Ve({prod_type:l.prodType});t.value=r.data}return a(),(r,s)=>{const d=e.resolveComponent("el-option"),i=e.resolveComponent("el-select"),c=e.resolveComponent("el-form-item"),f=e.resolveComponent("el-checkbox"),m=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(m,{"label-width":"80px","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(c,{label:"筛选条件"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:e.unref(n).filterForm.filter_uuid,"onUpdate:modelValue":s[0]||(s[0]=u=>e.unref(n).filterForm.filter_uuid=u),disabled:!!e.unref(n).filterForm.filter_uuid},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,u=>(e.openBlock(),e.createBlock(d,{key:u.filter_uuid,label:u.filter_name,value:u.filter_uuid},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])]),_:1}),e.createVNode(c,null,{default:e.withCtx(()=>[e.createVNode(f,{modelValue:e.unref(n).filterForm.range_time,"onUpdate:modelValue":s[1]||(s[1]=u=>e.unref(n).filterForm.range_time=u),"true-value":1,"false-value":0,label:"时间范围"},null,8,["modelValue"])]),_:1})]),_:1})}}})),re=T(ne),nt={key:0},lt={style:{border:"1px solid #ccc","border-radius":"3px"}},se="default",ie=T(e.defineComponent({name:"TdsSettingText",__name:"settingText",props:{prodType:{}},setup(o){const l=o,t=B(),n=e.shallowRef(),a=e.ref();function r(m){const u=a.value.find(p=>p.rp_item_uuid===m);t.activeComponents.uri=u.rp_item_content.uri,n.value.setHtml((u==null?void 0:u.rp_item_content.data)||"")}async function s(){const m=await P({prod_type:l.prodType,chart_type:"p",filter_uuid:t.filterForm.filter_uuid});a.value=m.data}s();const d={toolbarKeys:["bold","underline","italic","through","code","bulletedList","numberedList","clearStyle","color","bgColor","fontSize","fontFamily","justifyLeft","justifyRight","justifyCenter","justifyJustify","lineHeight"]},i={placeholder:"请输入内容..."},c=m=>{n.value=m},f=m=>{};return e.onBeforeUnmount(()=>{const m=n.value;m!=null&&m.destroy()}),(m,u)=>{const p=e.resolveComponent("el-option"),h=e.resolveComponent("el-select"),C=e.resolveComponent("el-form-item"),w=e.resolveComponent("el-form");return e.unref(t).activeComponents.id?(e.openBlock(),e.createElementBlock("div",nt,[e.createVNode(w,{"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(C,{label:"组件库"},{default:e.withCtx(()=>[e.createVNode(h,{style:{width:"100%"},modelValue:e.unref(t).activeComponents.rp_item_uuid,"onUpdate:modelValue":u[0]||(u[0]=V=>e.unref(t).activeComponents.rp_item_uuid=V),onChange:r},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(V,y)=>(e.openBlock(),e.createBlock(p,{key:y,label:V.rp_item_name,value:V.rp_item_uuid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(C,{label:"文本内容"},{default:e.withCtx(()=>[e.createElementVNode("div",lt,[e.createVNode(e.unref(H.Toolbar),{style:{"border-bottom":"1px solid #ccc"},editor:n.value,"default-config":d,mode:se},null,8,["editor"]),e.createVNode(e.unref(H.Editor),{style:{height:"500px","overflow-y":"hidden"},onOnChange:f,modelValue:e.unref(t).activeComponents.data,"onUpdate:modelValue":u[1]||(u[1]=V=>e.unref(t).activeComponents.data=V),"default-config":i,mode:se,onOnCreated:c},null,8,["modelValue"])])]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}})),ce=T(Z(e.defineComponent({name:"TdsSettingTitle",__name:"settingTitle",setup(o){const l=B();return(t,n)=>{const a=e.resolveComponent("el-input"),r=e.resolveComponent("el-form-item"),s=e.resolveComponent("el-color-picker"),d=e.resolveComponent("el-col"),i=e.resolveComponent("el-input-number"),c=e.resolveComponent("el-option"),f=e.resolveComponent("el-select"),m=e.resolveComponent("el-row"),u=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(u,{"label-width":"auto","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(r,{label:"名称"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(l).activeComponents.data,"onUpdate:modelValue":n[0]||(n[0]=p=>e.unref(l).activeComponents.data=p),placeholder:"Please input",maxlength:"24","show-word-limit":""},null,8,["modelValue"])]),_:1}),e.createVNode(r,{label:"样式"},{default:e.withCtx(()=>[e.createVNode(m,{gutter:20},{default:e.withCtx(()=>[e.createVNode(d,{span:12},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(l).activeComponents.options.color,"onUpdate:modelValue":n[1]||(n[1]=p=>e.unref(l).activeComponents.options.color=p),"show-alpha":""},null,8,["modelValue"]),n[7]||(n[7]=e.createElementVNode("p",{class:"sub-title"},"颜色",-1))]),_:1}),e.createVNode(d,{span:12},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:e.unref(l).activeComponents.options.size,"onUpdate:modelValue":n[2]||(n[2]=p=>e.unref(l).activeComponents.options.size=p),"controls-position":"right"},null,8,["modelValue"]),n[8]||(n[8]=e.createElementVNode("p",{class:"sub-title"},"字体大小",-1))]),_:1}),e.createVNode(d,{span:12},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:e.unref(l).activeComponents.options.fontWeight,"onUpdate:modelValue":n[3]||(n[3]=p=>e.unref(l).activeComponents.options.fontWeight=p)},{default:e.withCtx(()=>[e.createVNode(c,{label:"常规",value:500}),e.createVNode(c,{label:"加粗",value:600})]),_:1},8,["modelValue"]),n[9]||(n[9]=e.createElementVNode("p",{class:"sub-title"},"字体粗细",-1))]),_:1}),e.createVNode(d,{span:12},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:e.unref(l).activeComponents.options.letterSpacing,"onUpdate:modelValue":n[4]||(n[4]=p=>e.unref(l).activeComponents.options.letterSpacing=p),"controls-position":"right"},null,8,["modelValue"]),n[10]||(n[10]=e.createElementVNode("p",{class:"sub-title"},"字间距",-1))]),_:1}),e.createVNode(d,{span:12},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:e.unref(l).activeComponents.options.textIndent,"onUpdate:modelValue":n[5]||(n[5]=p=>e.unref(l).activeComponents.options.textIndent=p),"controls-position":"right"},null,8,["modelValue"]),n[11]||(n[11]=e.createElementVNode("p",{class:"sub-title"},"首行缩进",-1))]),_:1}),e.createVNode(d,{span:12},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:e.unref(l).activeComponents.options.textAlign,"onUpdate:modelValue":n[6]||(n[6]=p=>e.unref(l).activeComponents.options.textAlign=p)},{default:e.withCtx(()=>[e.createVNode(c,{label:"左对齐",value:"left"}),e.createVNode(c,{label:"居中对齐",value:"center"}),e.createVNode(c,{label:"右对齐",value:"right"})]),_:1},8,["modelValue"]),n[12]||(n[12]=e.createElementVNode("p",{class:"sub-title"},"位置",-1))]),_:1})]),_:1})]),_:1})]),_:1})}}}),[["__scopeId","data-v-86e0f9f6"]])),de=T(e.defineComponent({name:"TdsReportTable",__name:"Table",props:{data:{}},setup(o){const l=o,t=n=>React.createElement("el-table",{data:n.data,border:l.data.options.border,"show-header":!!l.data.options.showHeader,stripe:l.data.options.stripe},n.showColumn.map(a=>l.data.options.showColumn[a.key]===!0?React.createElement("el-table-column",{prop:a.key,label:a.name}):null));return(n,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(t,e.normalizeProps(e.guardReactiveProps(n.data)),null,16)]))}})),pe=T(e.defineComponent({name:"TdsReportText",__name:"Text",props:{data:{}},setup(o){const l=o,t=()=>{const n=l.data.options||{};return{color:n.color,"font-size":n.size+"px","font-weight":n.fontWeight,"letter-spacing":n.letterSpacing+"px","text-indent":n.textIndent+"px","text-align":n.textAlign}};return(n,a)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(t())},e.toDisplayString(n.data.data),5))}})),me=T(e.defineComponent({name:"TdsReportTime",__name:"Time",props:{data:{}},emits:["change"],setup(o,{emit:l}){const t=l,n=o,a=e.ref(n.data),r=e.ref([]);function s(d){d?(a.value.data[0].start_time=d[0],a.value.data[0].end_time=d[1]):r.value=[],t("change",r.value)}return e.onMounted(()=>{r.value=[a.value.data[0].start_time,a.value.data[0].end_time]}),(d,i)=>{const c=e.resolveComponent("el-date-picker");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(c,{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=f=>r.value=f),type:"datetimerange",placeholder:"Pick a Date",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",onChange:s,clearable:!1},null,8,["modelValue"])])}}})),at=Object.freeze(Object.defineProperty({__proto__:null,TdsReportBar:Y,TdsReportConfig:X,TdsReportInfo:te,TdsReportLine:v,TdsReportPie:ee,TdsReportSelect:oe,TdsReportTable:de,TdsReportText:pe,TdsReportTime:me,TdsSettingCharts:le,TdsSettingFilter:ae,TdsSettingTable:re,TdsSettingText:ie,TdsSettingTitle:ce},Symbol.toStringTag,{value:"Module"})),ue={TdsReportBar:"TdsReportBar",TdsReportConfig:"TdsReportConfig",TdsReportLine:"TdsReportLine",TdsReportPie:"TdsReportPie",TdsReportInfo:"TdsReportInfo",TdsReportSelect:"TdsReportSelect",TdsSettingCharts:"TdsSettingCharts",TdsSettingFilter:"TdsSettingFilter",TdsSettingTable:"TdsSettingTable",TdsSettingText:"TdsSettingText",TdsSettingTitle:"TdsSettingTitle",TdsReportTable:"TdsReportTable",TdsReportText:"TdsReportText",TdsReportTime:"TdsReportTime"},fe={BackTop:["Tooltip"]};function rt(o,l){if(["NumberAnimation","Watermark"].includes(o))return[];const t=[o];o in fe&&t.push(...fe[o]);const n=l!=null&&l.cjs?"lib":"es",a=[`@topdatasec/report/${n}/style/global.css`];return t.forEach(r=>{a.push(`@topdatasec/report/${n}/${ue[r]}/${r}.css`)}),a}function st(o){return{type:"component",resolve:l=>{if(l in ue)return{name:l,from:"@topdatasec/report",sideEffects:rt(l,o)}}}}const _e=function(o){return Object.values(at).forEach(l=>{l&&l.install&&o.use(l)}),o},it={install:_e};_.TdsReportBar=Y,_.TdsReportConfig=X,_.TdsReportInfo=te,_.TdsReportLine=v,_.TdsReportPie=ee,_.TdsReportSelect=oe,_.TdsReportTable=de,_.TdsReportText=pe,_.TdsReportTime=me,_.TdsSettingCharts=le,_.TdsSettingFilter=ae,_.TdsSettingTable=re,_.TdsSettingText=ie,_.TdsSettingTitle=ce,_.VueAmazingUIResolver=st,_.add=Ne,_.cancelRaf=ke,_.dateFormat=xe,_.debounce=W,_.default=it,_.downloadFile=Ee,_.formatNumber=Te,_.install=_e,_.rafTimeout=Se,_.throttle=O,_.toggleDark=Re,_.useEventListener=Be,_.useFps=Ue,_.useMediaQuery=De,_.useMutationObserver=Le,_.useResizeObserver=Ae,_.useScroll=Fe,_.useSlotsExist=Me,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})(this.TdsReportUI=this.TdsReportUI||{},Vue,pinia,null,editorForVue);