@hg2/dataview-core 2.0.2 → 2.0.3

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 (128) hide show
  1. package/LICENSE +21 -0
  2. package/dist/{ColorList-f583b4da.js → ColorList-ea7fa843.js} +3 -3
  3. package/dist/{ColorList-f583b4da.js.map → ColorList-ea7fa843.js.map} +1 -1
  4. package/dist/{SizeSetting.vue_vue_type_script_setup_true_lang-d60457b9.js → SizeSetting.vue_vue_type_script_setup_true_lang-8eea1525.js} +4 -4
  5. package/dist/{SizeSetting.vue_vue_type_script_setup_true_lang-d60457b9.js.map → SizeSetting.vue_vue_type_script_setup_true_lang-8eea1525.js.map} +1 -1
  6. package/dist/{StylesSetting-3a2f09cb.js → StylesSetting-ee713728.js} +4 -4
  7. package/dist/{StylesSetting-3a2f09cb.js.map → StylesSetting-ee713728.js.map} +1 -1
  8. package/dist/{StylesSetting.vue_vue_type_style_index_0_scoped_2c848e43_lang-218ee765.js → StylesSetting.vue_vue_type_style_index_0_scoped_2c848e43_lang-83299b27.js} +2 -2
  9. package/dist/{StylesSetting.vue_vue_type_style_index_0_scoped_2c848e43_lang-218ee765.js.map → StylesSetting.vue_vue_type_style_index_0_scoped_2c848e43_lang-83299b27.js.map} +1 -1
  10. package/dist/{chart-23862487.js → chart-2793886d.js} +2 -2
  11. package/dist/{chart-23862487.js.map → chart-2793886d.js.map} +1 -1
  12. package/dist/{config-8a924b9b.js → config-3589149b.js} +8 -8
  13. package/dist/{config-8a924b9b.js.map → config-3589149b.js.map} +1 -1
  14. package/dist/{config-6f4a666a.js → config-3be34cf4.js} +8 -8
  15. package/dist/{config-6f4a666a.js.map → config-3be34cf4.js.map} +1 -1
  16. package/dist/{config-29c91c17.js → config-3e53b49a.js} +8 -8
  17. package/dist/{config-29c91c17.js.map → config-3e53b49a.js.map} +1 -1
  18. package/dist/{config-cd9efa95.js → config-485a64ba.js} +4 -4
  19. package/dist/{config-cd9efa95.js.map → config-485a64ba.js.map} +1 -1
  20. package/dist/{config-ab6a73ec.js → config-4af1f86f.js} +8 -8
  21. package/dist/{config-ab6a73ec.js.map → config-4af1f86f.js.map} +1 -1
  22. package/dist/{config-5611455a.js → config-7d66f2de.js} +8 -8
  23. package/dist/{config-5611455a.js.map → config-7d66f2de.js.map} +1 -1
  24. package/dist/{config-6301e301.js → config-81386edc.js} +4 -4
  25. package/dist/{config-6301e301.js.map → config-81386edc.js.map} +1 -1
  26. package/dist/{config-82195189.js → config-85135869.js} +4 -4
  27. package/dist/{config-82195189.js.map → config-85135869.js.map} +1 -1
  28. package/dist/{config-171978d5.js → config-909166e5.js} +8 -8
  29. package/dist/{config-171978d5.js.map → config-909166e5.js.map} +1 -1
  30. package/dist/{config-daec24c5.js → config-a0401d6a.js} +8 -8
  31. package/dist/{config-daec24c5.js.map → config-a0401d6a.js.map} +1 -1
  32. package/dist/{config-1b85b132.js → config-b4c92718.js} +8 -8
  33. package/dist/{config-1b85b132.js.map → config-b4c92718.js.map} +1 -1
  34. package/dist/{config-82178551.js → config-d06d3dba.js} +8 -8
  35. package/dist/{config-82178551.js.map → config-d06d3dba.js.map} +1 -1
  36. package/dist/{config-0cfd8541.js → config-da24a46f.js} +8 -8
  37. package/dist/{config-0cfd8541.js.map → config-da24a46f.js.map} +1 -1
  38. package/dist/{config-bdf34646.js → config-f2e421ca.js} +8 -8
  39. package/dist/{config-bdf34646.js.map → config-f2e421ca.js.map} +1 -1
  40. package/dist/{config-169340f0.js → config-fe93b035.js} +8 -8
  41. package/dist/{config-169340f0.js.map → config-fe93b035.js.map} +1 -1
  42. package/dist/{designSetting-d5ac854f.js → designSetting-420dbd75.js} +19 -19
  43. package/dist/designSetting-420dbd75.js.map +1 -0
  44. package/dist/enums/httpEnum.d.ts +1 -1
  45. package/dist/{index-b01a3eb8.js → index-00787591.js} +6 -6
  46. package/dist/{index-b01a3eb8.js.map → index-00787591.js.map} +1 -1
  47. package/dist/{index-65e18d49.js → index-07cf85cb.js} +9 -9
  48. package/dist/{index-65e18d49.js.map → index-07cf85cb.js.map} +1 -1
  49. package/dist/{index-104a2622.js → index-0c1cb75c.js} +2 -2
  50. package/dist/{index-104a2622.js.map → index-0c1cb75c.js.map} +1 -1
  51. package/dist/{index-fbc57d2a.js → index-12237fd2.js} +11 -11
  52. package/dist/{index-fbc57d2a.js.map → index-12237fd2.js.map} +1 -1
  53. package/dist/{index-798f8f8b.js → index-1a1d8e82.js} +12 -12
  54. package/dist/{index-798f8f8b.js.map → index-1a1d8e82.js.map} +1 -1
  55. package/dist/{index-be653c26.js → index-1e502de3.js} +12 -12
  56. package/dist/{index-be653c26.js.map → index-1e502de3.js.map} +1 -1
  57. package/dist/{index-4e7762ee.js → index-227ada16.js} +3 -3
  58. package/dist/{index-4e7762ee.js.map → index-227ada16.js.map} +1 -1
  59. package/dist/{index-80509d43.js → index-657b732c.js} +10 -10
  60. package/dist/{index-80509d43.js.map → index-657b732c.js.map} +1 -1
  61. package/dist/{index-2f57bca8.js → index-6657c41c.js} +10 -10
  62. package/dist/{index-2f57bca8.js.map → index-6657c41c.js.map} +1 -1
  63. package/dist/{index-9abc2fea.js → index-71001515.js} +12 -12
  64. package/dist/{index-9abc2fea.js.map → index-71001515.js.map} +1 -1
  65. package/dist/{index-1ae147a2.js → index-7279ca05.js} +12 -12
  66. package/dist/{index-1ae147a2.js.map → index-7279ca05.js.map} +1 -1
  67. package/dist/{index-34b4bbc5.js → index-746b469a.js} +12 -12
  68. package/dist/{index-34b4bbc5.js.map → index-746b469a.js.map} +1 -1
  69. package/dist/{index-c719ea31.js → index-74c46481.js} +9 -9
  70. package/dist/{index-c719ea31.js.map → index-74c46481.js.map} +1 -1
  71. package/dist/{index-a1ceba24.js → index-7aad8920.js} +2 -2
  72. package/dist/{index-a1ceba24.js.map → index-7aad8920.js.map} +1 -1
  73. package/dist/{index-f2c2f4d8.js → index-7e3f71d5.js} +9 -9
  74. package/dist/{index-f2c2f4d8.js.map → index-7e3f71d5.js.map} +1 -1
  75. package/dist/{index-ad575add.js → index-90d01963.js} +11 -11
  76. package/dist/{index-ad575add.js.map → index-90d01963.js.map} +1 -1
  77. package/dist/{index-f3ad1572.js → index-9481af80.js} +361 -359
  78. package/dist/index-9481af80.js.map +1 -0
  79. package/dist/{index-67c5f6a7.js → index-9710a4c3.js} +2 -2
  80. package/dist/{index-67c5f6a7.js.map → index-9710a4c3.js.map} +1 -1
  81. package/dist/{index-ce178901.js → index-9af13a71.js} +10 -10
  82. package/dist/{index-ce178901.js.map → index-9af13a71.js.map} +1 -1
  83. package/dist/{index-de02b823.js → index-b9d38391.js} +50 -50
  84. package/dist/index-b9d38391.js.map +1 -0
  85. package/dist/{index-57797674.js → index-bd6d1ea4.js} +8 -8
  86. package/dist/{index-57797674.js.map → index-bd6d1ea4.js.map} +1 -1
  87. package/dist/{index-bc30291e.js → index-c3dfa3d4.js} +9 -9
  88. package/dist/{index-bc30291e.js.map → index-c3dfa3d4.js.map} +1 -1
  89. package/dist/{index-68accd28.js → index-c3e27080.js} +11 -11
  90. package/dist/{index-68accd28.js.map → index-c3e27080.js.map} +1 -1
  91. package/dist/{index-85816403.js → index-cfdb6350.js} +5 -5
  92. package/dist/{index-85816403.js.map → index-cfdb6350.js.map} +1 -1
  93. package/dist/{index-83e0f570.js → index-e49c232d.js} +9 -9
  94. package/dist/{index-83e0f570.js.map → index-e49c232d.js.map} +1 -1
  95. package/dist/{index-8648ed77.js → index-ee2bbc1c.js} +10 -10
  96. package/dist/{index-8648ed77.js.map → index-ee2bbc1c.js.map} +1 -1
  97. package/dist/index.js +9 -9
  98. package/dist/pick-7307d7b0.js +431 -0
  99. package/dist/pick-7307d7b0.js.map +1 -0
  100. package/dist/{plugin-ec84fd96.js → plugin-a2249fc5.js} +3 -3
  101. package/dist/{plugin-ec84fd96.js.map → plugin-a2249fc5.js.map} +1 -1
  102. package/dist/{pondIndex.vue_vue_type_style_index_0_scoped_4bff5632_lang-d29a410a.js → pondIndex.vue_vue_type_style_index_0_scoped_4bff5632_lang-955a4733.js} +387 -351
  103. package/dist/pondIndex.vue_vue_type_style_index_0_scoped_4bff5632_lang-955a4733.js.map +1 -0
  104. package/dist/published/chartItemSetting.js +6 -6
  105. package/dist/published/designSetting.js +1 -1
  106. package/dist/published/hooks.js +4 -4
  107. package/dist/published/plugins.js +3 -3
  108. package/dist/published/public.js +4 -4
  109. package/dist/published/store.js +7 -7
  110. package/dist/published/utils.js +4 -4
  111. package/dist/store/modules/chartEditStore/chartEditStore.d.ts +10 -3
  112. package/dist/{store-06d0fc5f.js → store-7c31860c.js} +8 -8
  113. package/dist/{store-06d0fc5f.js.map → store-7c31860c.js.map} +1 -1
  114. package/dist/style.css +1 -1
  115. package/dist/{useChartDataFetch.hook-900fd72a.js → useChartDataFetch.hook-d7b1b438.js} +460 -462
  116. package/dist/useChartDataFetch.hook-d7b1b438.js.map +1 -0
  117. package/dist/{useSyncUpdate.hook-f4af3d43.js → useSyncUpdate.hook-d2ae52a3.js} +5 -5
  118. package/dist/{useSyncUpdate.hook-f4af3d43.js.map → useSyncUpdate.hook-d2ae52a3.js.map} +1 -1
  119. package/dist/{useTargetData.hook-7495fa0a.js → useTargetData.hook-f9fb6b8f.js} +2 -2
  120. package/dist/{useTargetData.hook-7495fa0a.js.map → useTargetData.hook-f9fb6b8f.js.map} +1 -1
  121. package/package.json +5 -5
  122. package/dist/designSetting-d5ac854f.js.map +0 -1
  123. package/dist/index-de02b823.js.map +0 -1
  124. package/dist/index-f3ad1572.js.map +0 -1
  125. package/dist/pick-3a770d78.js +0 -427
  126. package/dist/pick-3a770d78.js.map +0 -1
  127. package/dist/pondIndex.vue_vue_type_style_index_0_scoped_4bff5632_lang-d29a410a.js.map +0 -1
  128. package/dist/useChartDataFetch.hook-900fd72a.js.map +0 -1
@@ -1,55 +1,55 @@
1
- import { defineComponent as L, ref as E, watch as Q, resolveComponent as n, openBlock as c, createBlock as z, withCtx as a, createElementVNode as s, createVNode as e, createTextVNode as p, createElementBlock as I, unref as t, useCssVars as se, toRefs as X, computed as G, createCommentVNode as ee, Fragment as K, renderList as de, normalizeClass as ae, toDisplayString as V, reactive as ue, nextTick as ce, toRaw as W, watchEffect as _e, onBeforeUnmount as me } from "vue";
1
+ import { defineComponent as M, ref as E, watch as W, resolveComponent as s, openBlock as u, createBlock as z, withCtx as a, createElementVNode as d, createVNode as e, createTextVNode as f, createElementBlock as x, unref as t, useCssVars as se, toRefs as K, computed as L, createCommentVNode as ee, Fragment as Q, renderList as de, normalizeClass as ae, toDisplayString as V, reactive as ue, nextTick as ce, toRaw as X, watchEffect as _e, onBeforeUnmount as me } from "vue";
2
2
  import "./index.vue_vue_type_style_index_0_scoped_215ee9da_lang-5c146582.js";
3
- import { _ as j, u as re, i as pe, n as fe } from "./index-67c5f6a7.js";
4
- import { g as B, f as J, S as oe, h as M, b as le } from "./designSetting-d5ac854f.js";
3
+ import { _ as j, u as re, i as pe, n as fe } from "./index-9710a4c3.js";
4
+ import { f as Y, g as B, S as oe, h as G, b as le } from "./designSetting-420dbd75.js";
5
5
  import { i as Z } from "./icon-229c6d44.js";
6
- import { l as ve, c as ge } from "./useChartDataFetch.hook-900fd72a.js";
7
- import { S as H, a as F } from "./StylesSetting.vue_vue_type_style_index_0_scoped_2c848e43_lang-218ee765.js";
6
+ import { l as ve, c as ge } from "./useChartDataFetch.hook-d7b1b438.js";
7
+ import { S as T, a as F } from "./StylesSetting.vue_vue_type_style_index_0_scoped_2c848e43_lang-83299b27.js";
8
8
  import { n as be } from "./noData-63b54dc3.js";
9
- import { u as te } from "./useTargetData.hook-7495fa0a.js";
9
+ import { u as te } from "./useTargetData.hook-f9fb6b8f.js";
10
10
  import "element-plus";
11
- import "./index-b01a3eb8.js";
12
- import { R as ye, a as he } from "./pondIndex.vue_vue_type_style_index_0_scoped_4bff5632_lang-d29a410a.js";
13
- import { g as ie } from "./plugin-ec84fd96.js";
11
+ import "./index-00787591.js";
12
+ import { R as ye, a as he } from "./pondIndex.vue_vue_type_style_index_0_scoped_4bff5632_lang-955a4733.js";
13
+ import { g as ie } from "./plugin-a2249fc5.js";
14
14
  import "./toggleHighContrast-896b05c3.js";
15
- import "./index-104a2622.js";
16
- import { r as qe } from "./pick-3a770d78.js";
17
- import { C as Pe } from "./index-65e18d49.js";
15
+ import "./index-0c1cb75c.js";
16
+ import { r as qe } from "./pick-7307d7b0.js";
17
+ import { C as Pe } from "./index-07cf85cb.js";
18
18
  import "pinia";
19
19
  import "./published/chartThemes.js";
20
20
  import "./InformationCircleOutline-214d1354.js";
21
21
  import "element-plus/es/locale/lang/zh-cn";
22
22
  import "element-plus/es/locale/lang/en";
23
- import "./store-06d0fc5f.js";
23
+ import "./store-7c31860c.js";
24
24
  import "./published/types.js";
25
25
  import "@iconify/json/json/line-md.json";
26
26
  import "./published/informationTypes.js";
27
27
  import "./published/utils.js";
28
28
  import "./published/eventEnums.js";
29
- const we = { class: "dialog-header" }, xe = { class: "dialog-body" }, De = { class: "dialog-footer" }, Ie = {
29
+ const we = { class: "dialog-header" }, De = { class: "dialog-body" }, xe = { class: "dialog-footer" }, Ie = {
30
30
  key: 0,
31
31
  class: "name-input"
32
- }, ke = { key: 1 }, Ce = { class: "dialog-footer__actions" }, Se = /* @__PURE__ */ L({
32
+ }, ke = { key: 1 }, Ce = { class: "dialog-footer__actions" }, Se = /* @__PURE__ */ M({
33
33
  __name: "pondIndex",
34
34
  props: {
35
35
  modelShow: Boolean,
36
36
  targetDataRequest: Object
37
37
  },
38
38
  emits: ["update:modelShow", "editSaveHandle"],
39
- setup(f, { emit: $ }) {
40
- const S = f, b = $, R = E(), q = E(!1);
41
- Q(
42
- () => S.modelShow,
43
- (P) => {
44
- q.value = P;
39
+ setup(m, { emit: $ }) {
40
+ const C = m, v = $, R = E(), P = E(!1);
41
+ W(
42
+ () => C.modelShow,
43
+ (g) => {
44
+ P.value = g;
45
45
  }
46
46
  );
47
- const _ = () => {
48
- b("update:modelShow", !1);
49
- }, y = () => {
50
- var P, i;
51
- if (!((P = S.targetDataRequest) != null && P.dataPondName)) {
52
- window.$message.warning("请在左下角输入名称!"), (i = R.value) == null || i.focus();
47
+ const c = () => {
48
+ v("update:modelShow", !1);
49
+ }, p = () => {
50
+ var g, n;
51
+ if (!((g = C.targetDataRequest) != null && g.dataPondName)) {
52
+ window.$message.warning("请在左下角输入名称!"), (n = R.value) == null || n.focus();
53
53
  return;
54
54
  }
55
55
  ie({
@@ -57,41 +57,41 @@ const we = { class: "dialog-header" }, xe = { class: "dialog-body" }, De = { cla
57
57
  isMaskClosable: !0,
58
58
  transformOrigin: "center",
59
59
  onPositiveCallback: () => {
60
- b("update:modelShow", !1), b("editSaveHandle", S.targetDataRequest);
60
+ v("update:modelShow", !1), v("editSaveHandle", C.targetDataRequest);
61
61
  }
62
62
  });
63
- }, h = () => {
64
- _();
63
+ }, q = () => {
64
+ c();
65
65
  };
66
- return (P, i) => {
67
- const u = n("el-tag"), k = n("el-scrollbar"), w = n("el-input"), m = n("el-button"), v = n("el-dialog");
68
- return c(), z(v, {
66
+ return (g, n) => {
67
+ const w = s("el-tag"), S = s("el-scrollbar"), b = s("el-input"), y = s("el-button"), _ = s("el-dialog");
68
+ return u(), z(_, {
69
69
  class: "go-chart-data-request",
70
- modelValue: q.value,
71
- "onUpdate:modelValue": i[1] || (i[1] = (g) => q.value = g),
70
+ modelValue: P.value,
71
+ "onUpdate:modelValue": n[1] || (n[1] = (h) => P.value = h),
72
72
  "close-on-click-modal": !1,
73
73
  "close-on-press-escape": !0,
74
74
  "show-close": !1,
75
75
  "append-to-body": "",
76
76
  "modal-append-to-body": "",
77
- onClose: h,
77
+ onClose: q,
78
78
  width: "1000px"
79
79
  }, {
80
80
  header: a(() => [
81
- s("div", we, [
82
- i[3] || (i[3] = s("div", { class: "dialog-header__main" }, [
83
- s("div", { class: "dialog-header__title" }, "数据池请求配置"),
84
- s("div", { class: "dialog-header__desc" }, [
85
- s("span", null, "保存后会同步更新所有引用当前数据池的组件")
81
+ d("div", we, [
82
+ n[3] || (n[3] = d("div", { class: "dialog-header__main" }, [
83
+ d("div", { class: "dialog-header__title" }, "数据池请求配置"),
84
+ d("div", { class: "dialog-header__desc" }, [
85
+ d("span", null, "保存后会同步更新所有引用当前数据池的组件")
86
86
  ])
87
87
  ], -1)),
88
- e(u, {
88
+ e(w, {
89
89
  type: "primary",
90
90
  effect: "light",
91
91
  round: ""
92
92
  }, {
93
- default: a(() => i[2] || (i[2] = [
94
- p("数据池")
93
+ default: a(() => n[2] || (n[2] = [
94
+ f("数据池")
95
95
  ])),
96
96
  _: 1,
97
97
  __: [2]
@@ -99,12 +99,12 @@ const we = { class: "dialog-header" }, xe = { class: "dialog-body" }, De = { cla
99
99
  ])
100
100
  ]),
101
101
  footer: a(() => [
102
- s("div", De, [
103
- f.targetDataRequest ? (c(), I("div", Ie, [
104
- i[4] || (i[4] = s("span", { class: "name-input__label" }, "数据池名称", -1)),
105
- e(w, {
106
- modelValue: f.targetDataRequest.dataPondName,
107
- "onUpdate:modelValue": i[0] || (i[0] = (g) => f.targetDataRequest.dataPondName = g),
102
+ d("div", xe, [
103
+ m.targetDataRequest ? (u(), x("div", Ie, [
104
+ n[4] || (n[4] = d("span", { class: "name-input__label" }, "数据池名称", -1)),
105
+ e(b, {
106
+ modelValue: m.targetDataRequest.dataPondName,
107
+ "onUpdate:modelValue": n[0] || (n[0] = (h) => m.targetDataRequest.dataPondName = h),
108
108
  ref_key: "inputInstRef",
109
109
  ref: R,
110
110
  type: "text",
@@ -116,21 +116,21 @@ const we = { class: "dialog-header" }, xe = { class: "dialog-body" }, De = { cla
116
116
  placeholder: "请输入名称",
117
117
  class: "name-input__field"
118
118
  }, null, 8, ["modelValue"])
119
- ])) : (c(), I("span", ke)),
120
- s("div", Ce, [
121
- e(m, { onClick: _ }, {
122
- default: a(() => i[5] || (i[5] = [
123
- p("取消")
119
+ ])) : (u(), x("span", ke)),
120
+ d("div", Ce, [
121
+ e(y, { onClick: c }, {
122
+ default: a(() => n[5] || (n[5] = [
123
+ f("取消")
124
124
  ])),
125
125
  _: 1,
126
126
  __: [5]
127
127
  }),
128
- e(m, {
128
+ e(y, {
129
129
  type: "primary",
130
- onClick: y
130
+ onClick: p
131
131
  }, {
132
- default: a(() => i[6] || (i[6] = [
133
- p("保存")
132
+ default: a(() => n[6] || (n[6] = [
133
+ f("保存")
134
134
  ])),
135
135
  _: 1,
136
136
  __: [6]
@@ -139,14 +139,14 @@ const we = { class: "dialog-header" }, xe = { class: "dialog-body" }, De = { cla
139
139
  ])
140
140
  ]),
141
141
  default: a(() => [
142
- e(k, { class: "dialog-scrollbar" }, {
142
+ e(S, { class: "dialog-scrollbar" }, {
143
143
  default: a(() => {
144
- var g;
144
+ var h;
145
145
  return [
146
- s("div", xe, [
146
+ d("div", De, [
147
147
  e(t(ye)),
148
148
  e(t(he), {
149
- "target-data-request": (g = f.targetDataRequest) == null ? void 0 : g.dataPondRequestConfig
149
+ "target-data-request": (h = m.targetDataRequest) == null ? void 0 : h.dataPondRequestConfig
150
150
  }, null, 8, ["target-data-request"])
151
151
  ])
152
152
  ];
@@ -158,71 +158,71 @@ const we = { class: "dialog-header" }, xe = { class: "dialog-body" }, De = { cla
158
158
  }, 8, ["modelValue"]);
159
159
  };
160
160
  }
161
- }), Re = /* @__PURE__ */ j(Se, [["__scopeId", "data-v-4bff5632"]]), $e = { class: "go-chart-data-pond-list" }, Ee = { class: "pond-item-box" }, He = {
161
+ }), Re = /* @__PURE__ */ j(Se, [["__scopeId", "data-v-4bff5632"]]), $e = { class: "go-chart-data-pond-list" }, Ee = { class: "pond-item-box" }, Te = {
162
162
  key: 0,
163
163
  class: "empty-text"
164
- }, Oe = ["onClick"], Te = { class: "item-content" }, Ue = { class: "item-content-body" }, Ne = ["onClick"], Ve = /* @__PURE__ */ L({
164
+ }, Oe = ["onClick"], He = { class: "item-content" }, Ue = { class: "item-content-body" }, Ne = ["onClick"], Ve = /* @__PURE__ */ M({
165
165
  __name: "index",
166
166
  emits: ["createPond", "deletePond"],
167
- setup(f, { emit: $ }) {
168
- se((m) => ({
169
- "21a8ff3a": i.value
167
+ setup(m, { emit: $ }) {
168
+ se((y) => ({
169
+ "21a8ff3a": n.value
170
170
  }));
171
- const S = $, { DuplicateOutlineIcon: b, TrashIcon: R } = Z.ionicons5, q = re(), { chartEditStore: _, targetData: y } = te(), { requestDataPond: h } = X(_.getRequestGlobalConfig), P = G(() => {
172
- var m;
173
- return (m = y.value) == null ? void 0 : m.request.requestDataPondId;
174
- }), i = G(() => q.getAppTheme), u = () => {
175
- S("createPond", !0);
176
- }, k = (m, v) => {
177
- m.stopPropagation(), m.preventDefault(), S("deletePond", v);
178
- }, w = (m) => {
179
- y.value && (y.value.request.requestDataPondId = m.dataPondId);
171
+ const C = $, { DuplicateOutlineIcon: v, TrashIcon: R } = Z.ionicons5, P = re(), { chartEditStore: c, targetData: p } = te(), { requestDataPond: q } = K(c.getRequestGlobalConfig), g = L(() => {
172
+ var y;
173
+ return (y = p.value) == null ? void 0 : y.request.requestDataPondId;
174
+ }), n = L(() => P.getAppTheme), w = () => {
175
+ C("createPond", !0);
176
+ }, S = (y, _) => {
177
+ y.stopPropagation(), y.preventDefault(), C("deletePond", _);
178
+ }, b = (y) => {
179
+ p.value && (p.value.request.requestDataPondId = y.dataPondId);
180
180
  };
181
- return (m, v) => {
182
- const g = n("el-timeline-item"), C = n("el-timeline"), O = n("el-icon"), T = n("el-button"), x = n("el-divider"), d = n("el-link"), D = n("el-text"), l = n("el-tag"), r = n("el-scrollbar");
183
- return c(), I("div", $e, [
184
- e(C, {
181
+ return (y, _) => {
182
+ const h = s("el-timeline-item"), I = s("el-timeline"), O = s("el-icon"), H = s("el-button"), D = s("el-divider"), r = s("el-link"), k = s("el-text"), l = s("el-tag"), i = s("el-scrollbar");
183
+ return u(), x("div", $e, [
184
+ e(I, {
185
185
  class: "pond-item-timeline",
186
186
  style: { width: "20px" }
187
187
  }, {
188
188
  default: a(() => [
189
- e(g, { type: "primary" }),
190
- e(g, { type: "success" })
189
+ e(h, { type: "primary" }),
190
+ e(h, { type: "success" })
191
191
  ]),
192
192
  _: 1
193
193
  }),
194
- s("div", Ee, [
195
- e(T, {
194
+ d("div", Ee, [
195
+ e(H, {
196
196
  class: "create-btn go-py-4",
197
197
  plain: "",
198
- onClick: u
198
+ onClick: w
199
199
  }, {
200
200
  default: a(() => [
201
201
  e(O, null, {
202
202
  default: a(() => [
203
- e(t(b))
203
+ e(t(v))
204
204
  ]),
205
205
  _: 1
206
206
  }),
207
- v[0] || (v[0] = s("span", null, " 创建 ", -1))
207
+ _[0] || (_[0] = d("span", null, " 创建 ", -1))
208
208
  ]),
209
209
  _: 1,
210
210
  __: [0]
211
211
  }),
212
- e(x, { style: { margin: "10px 0" } }),
213
- t(h).length ? ee("", !0) : (c(), I("div", He, [
214
- e(D, {
212
+ e(D, { style: { margin: "10px 0" } }),
213
+ t(q).length ? ee("", !0) : (u(), x("div", Te, [
214
+ e(k, {
215
215
  class: "not-layer-text",
216
216
  type: "info"
217
217
  }, {
218
218
  default: a(() => [
219
- v[2] || (v[2] = p(" 暂无数据内容, ")),
220
- e(d, {
219
+ _[2] || (_[2] = f(" 暂无数据内容, ")),
220
+ e(r, {
221
221
  type: "primary",
222
- onClick: u
222
+ onClick: w
223
223
  }, {
224
- default: a(() => v[1] || (v[1] = [
225
- p("立即创建")
224
+ default: a(() => _[1] || (_[1] = [
225
+ f("立即创建")
226
226
  ])),
227
227
  _: 1,
228
228
  __: [1]
@@ -232,63 +232,63 @@ const we = { class: "dialog-header" }, xe = { class: "dialog-body" }, De = { cla
232
232
  __: [2]
233
233
  })
234
234
  ])),
235
- e(r, { "max-height": "490px" }, {
235
+ e(i, { "max-height": "490px" }, {
236
236
  default: a(() => [
237
- (c(!0), I(K, null, de(t(h), (o) => (c(), I("div", {
237
+ (u(!0), x(Q, null, de(t(q), (o) => (u(), x("div", {
238
238
  key: o.dataPondId,
239
- class: ae([{ select: o.dataPondId === P.value }, "pond-item"]),
240
- onClick: (U) => w(o)
239
+ class: ae([{ select: o.dataPondId === g.value }, "pond-item"]),
240
+ onClick: (U) => b(o)
241
241
  }, [
242
- s("div", Te, [
243
- s("div", Ue, [
244
- s("div", null, [
242
+ d("div", He, [
243
+ d("div", Ue, [
244
+ d("div", null, [
245
245
  e(l, {
246
246
  class: "go-mr-1",
247
- type: o.dataPondId === P.value ? "warning" : "info",
247
+ type: o.dataPondId === g.value ? "warning" : "info",
248
248
  "disable-transitions": ""
249
249
  }, {
250
- default: a(() => v[3] || (v[3] = [
251
- p(" 名称 ")
250
+ default: a(() => _[3] || (_[3] = [
251
+ f(" 名称 ")
252
252
  ])),
253
253
  _: 2,
254
254
  __: [3]
255
255
  }, 1032, ["type"]),
256
- e(D, {
256
+ e(k, {
257
257
  class: "item-text",
258
258
  truncated: ""
259
259
  }, {
260
260
  default: a(() => [
261
- p(V(o.dataPondName || "暂无"), 1)
261
+ f(V(o.dataPondName || "暂无"), 1)
262
262
  ]),
263
263
  _: 2
264
264
  }, 1024)
265
265
  ]),
266
- s("div", null, [
266
+ d("div", null, [
267
267
  e(l, {
268
268
  class: "go-mr-1",
269
- type: o.dataPondId === P.value ? "warning" : "info",
269
+ type: o.dataPondId === g.value ? "warning" : "info",
270
270
  "disable-transitions": ""
271
271
  }, {
272
- default: a(() => v[4] || (v[4] = [
273
- p(" 地址 ")
272
+ default: a(() => _[4] || (_[4] = [
273
+ f(" 地址 ")
274
274
  ])),
275
275
  _: 2,
276
276
  __: [4]
277
277
  }, 1032, ["type"]),
278
- e(D, {
278
+ e(k, {
279
279
  class: "item-text",
280
280
  truncated: ""
281
281
  }, {
282
282
  default: a(() => [
283
- p(V(o.dataPondRequestConfig.requestUrl || "暂无"), 1)
283
+ f(V(o.dataPondRequestConfig.requestUrl || "暂无"), 1)
284
284
  ]),
285
285
  _: 2
286
286
  }, 1024)
287
287
  ])
288
288
  ]),
289
- s("div", {
289
+ d("div", {
290
290
  class: "item-content-icon go-transition-quick",
291
- onClick: (U) => k(U, o)
291
+ onClick: (U) => S(U, o)
292
292
  }, [
293
293
  e(O, null, {
294
294
  default: a(() => [
@@ -298,8 +298,8 @@ const we = { class: "dialog-header" }, xe = { class: "dialog-body" }, De = { cla
298
298
  })
299
299
  ], 8, Ne)
300
300
  ]),
301
- s("div", {
302
- class: ae({ "select-modal": o.dataPondId === P.value })
301
+ d("div", {
302
+ class: ae({ "select-modal": o.dataPondId === g.value })
303
303
  }, null, 2)
304
304
  ], 10, Oe))), 128))
305
305
  ]),
@@ -310,55 +310,55 @@ const we = { class: "dialog-header" }, xe = { class: "dialog-body" }, De = { cla
310
310
  };
311
311
  }
312
312
  });
313
- const ze = /* @__PURE__ */ j(Ve, [["__scopeId", "data-v-d087eb02"]]), ne = /* @__PURE__ */ L({
313
+ const ze = /* @__PURE__ */ j(Ve, [["__scopeId", "data-v-d087eb02"]]), ne = /* @__PURE__ */ M({
314
314
  __name: "displayTable",
315
315
  props: {
316
316
  target: Object
317
317
  },
318
- setup(f) {
319
- const $ = f, S = {
318
+ setup(m) {
319
+ const $ = m, C = {
320
320
  key: "",
321
321
  value: ""
322
- }, b = ue({ content: [] });
323
- return Q(
322
+ }, v = ue({ content: [] });
323
+ return W(
324
324
  () => $.target,
325
325
  (R) => {
326
- b.content = [];
327
- for (const q in R)
328
- b.content.push({
329
- key: q,
330
- value: R[q]
326
+ v.content = [];
327
+ for (const P in R)
328
+ v.content.push({
329
+ key: P,
330
+ value: R[P]
331
331
  });
332
- b.content.length || (b.content = [JSON.parse(JSON.stringify(S))]);
332
+ v.content.length || (v.content = [JSON.parse(JSON.stringify(C))]);
333
333
  },
334
334
  {
335
335
  immediate: !0,
336
336
  deep: !0
337
337
  }
338
- ), (R, q) => {
339
- const _ = n("el-table-column"), y = n("el-table");
340
- return c(), z(y, {
341
- data: b.content,
338
+ ), (R, P) => {
339
+ const c = s("el-table-column"), p = s("el-table");
340
+ return u(), z(p, {
341
+ data: v.content,
342
342
  size: "small",
343
343
  border: "",
344
344
  style: { "border-bottom-right-radius": "7px", "border-bottom-left-radius": "7px" }
345
345
  }, {
346
346
  default: a(() => [
347
- e(_, {
347
+ e(c, {
348
348
  prop: "key",
349
349
  label: "key"
350
350
  }, {
351
- default: a(({ row: h }) => [
352
- p(V(h.key || "暂无"), 1)
351
+ default: a(({ row: q }) => [
352
+ f(V(q.key || "暂无"), 1)
353
353
  ]),
354
354
  _: 1
355
355
  }),
356
- e(_, {
356
+ e(c, {
357
357
  prop: "value",
358
358
  label: "value"
359
359
  }, {
360
- default: a(({ row: h }) => [
361
- p(V(h.value || "暂无"), 1)
360
+ default: a(({ row: q }) => [
361
+ f(V(q.value || "暂无"), 1)
362
362
  ]),
363
363
  _: 1
364
364
  })
@@ -367,47 +367,45 @@ const ze = /* @__PURE__ */ j(Ve, [["__scopeId", "data-v-d087eb02"]]), ne = /* @_
367
367
  }, 8, ["data"]);
368
368
  };
369
369
  }
370
- }), Ae = { class: "go-chart-data-display" }, Be = { class: "go-mr-3" }, Fe = { key: 0 }, Le = { class: "go-mt-3" }, Me = { key: 0 }, Ge = { key: 1 }, je = { class: "code-block" }, Ye = {
370
+ }), Ae = { class: "go-chart-data-display" }, Be = { class: "go-mr-3" }, Fe = { key: 0 }, Me = { class: "go-mt-3" }, Ge = { key: 0 }, Le = { key: 1 }, je = { class: "code-block" }, Je = {
371
371
  key: 3,
372
372
  class: "code-block"
373
- }, Je = { key: 1 }, Qe = { class: "code-block" }, We = /* @__PURE__ */ L({
373
+ }, Ye = { key: 1 }, We = { class: "code-block" }, Xe = /* @__PURE__ */ M({
374
374
  __name: "index",
375
375
  props: {
376
376
  globalData: Object,
377
377
  targetData: Object
378
378
  },
379
- setup(f) {
380
- const $ = f, { HelpOutlineIcon: S, FlashIcon: b, PulseIcon: R } = Z.ionicons5, {
381
- requestUrl: q,
382
- requestInterval: _,
383
- requestHttpType: y,
384
- requestContentType: h,
385
- requestSQLContent: P,
386
- requestParams: i,
387
- requestParamsBodyType: u,
388
- requestIntervalUnit: k
389
- } = X($.targetData.dataPondRequestConfig);
390
- B.HEADER;
391
- const w = {
392
- [J.DEFAULT]: "普通请求",
393
- [J.SQL]: "SQL 请求"
394
- }, m = E(B.PARAMS);
395
- return (v, g) => {
396
- const C = n("el-input"), O = n("el-icon"), T = n("el-divider"), x = n("el-tab-pane"), d = n("el-tabs"), D = n("el-text"), l = n("el-card"), r = n("el-scrollbar");
397
- return c(), I("div", Ae, [
398
- e(r, { "max-height": "570px" }, {
379
+ setup(m) {
380
+ const $ = m, { FlashIcon: C, PulseIcon: v } = Z.ionicons5, {
381
+ requestUrl: R,
382
+ requestInterval: P,
383
+ requestHttpType: c,
384
+ requestContentType: p,
385
+ requestDatasetContent: q,
386
+ requestParams: g,
387
+ requestParamsBodyType: n,
388
+ requestIntervalUnit: w
389
+ } = K($.targetData.dataPondRequestConfig), S = {
390
+ [Y.DEFAULT]: "普通请求",
391
+ [Y.DATASET]: "数据集请求"
392
+ }, b = E(B.PARAMS), y = (_) => JSON.stringify(_ ?? {}, null, 2);
393
+ return (_, h) => {
394
+ const I = s("el-input"), O = s("el-icon"), H = s("el-divider"), D = s("el-tab-pane"), r = s("el-tabs"), k = s("el-text"), l = s("el-card"), i = s("el-scrollbar");
395
+ return u(), x("div", Ae, [
396
+ e(i, { "max-height": "570px" }, {
399
397
  default: a(() => [
400
- s("div", Be, [
401
- s("div", null, [
402
- e(t(H), { name: "主体信息" }, {
398
+ d("div", Be, [
399
+ d("div", null, [
400
+ e(t(T), { name: "主体信息" }, {
403
401
  default: a(() => [
404
402
  e(t(F), { name: "接口名称" }, {
405
403
  default: a(() => {
406
404
  var o;
407
405
  return [
408
- e(C, {
406
+ e(I, {
409
407
  size: "small",
410
- placeholder: ((o = f.targetData) == null ? void 0 : o.dataPondName) || "暂无",
408
+ placeholder: ((o = m.targetData) == null ? void 0 : o.dataPondName) || "暂无",
411
409
  disabled: !0
412
410
  }, null, 8, ["placeholder"])
413
411
  ];
@@ -416,9 +414,9 @@ const ze = /* @__PURE__ */ j(Ve, [["__scopeId", "data-v-d087eb02"]]), ne = /* @_
416
414
  }),
417
415
  e(t(F), { name: "接口类型" }, {
418
416
  default: a(() => [
419
- e(C, {
417
+ e(I, {
420
418
  size: "small",
421
- placeholder: t(y) || "暂无",
419
+ placeholder: t(c) || "暂无",
422
420
  disabled: !0
423
421
  }, null, 8, ["placeholder"])
424
422
  ]),
@@ -427,17 +425,17 @@ const ze = /* @__PURE__ */ j(Ve, [["__scopeId", "data-v-d087eb02"]]), ne = /* @_
427
425
  ]),
428
426
  _: 1
429
427
  }),
430
- e(t(H), null, {
428
+ e(t(T), null, {
431
429
  default: a(() => [
432
430
  e(t(F), { name: "组件间隔" }, {
433
431
  default: a(() => [
434
- e(C, {
432
+ e(I, {
435
433
  size: "small",
436
- placeholder: `${t(_) || "暂无"}`,
434
+ placeholder: `${t(P) || "暂无"}`,
437
435
  disabled: !0
438
436
  }, {
439
437
  suffix: a(() => [
440
- p(V(f.targetData && t(oe)[t(k)]), 1)
438
+ f(V(m.targetData && t(oe)[t(w)]), 1)
441
439
  ]),
442
440
  _: 1
443
441
  }, 8, ["placeholder"])
@@ -448,13 +446,13 @@ const ze = /* @__PURE__ */ j(Ve, [["__scopeId", "data-v-d087eb02"]]), ne = /* @_
448
446
  default: a(() => {
449
447
  var o;
450
448
  return [
451
- e(C, {
449
+ e(I, {
452
450
  size: "small",
453
- placeholder: `${((o = f.globalData) == null ? void 0 : o.requestInterval) || "暂无"}`,
451
+ placeholder: `${((o = m.globalData) == null ? void 0 : o.requestInterval) || "暂无"}`,
454
452
  disabled: !0
455
453
  }, {
456
454
  suffix: a(() => [
457
- p(V(f.globalData && t(oe)[f.globalData.requestIntervalUnit]), 1)
455
+ f(V(m.globalData && t(oe)[m.globalData.requestIntervalUnit]), 1)
458
456
  ]),
459
457
  _: 1
460
458
  }, 8, ["placeholder"])
@@ -465,22 +463,22 @@ const ze = /* @__PURE__ */ j(Ve, [["__scopeId", "data-v-d087eb02"]]), ne = /* @_
465
463
  ]),
466
464
  _: 1
467
465
  }),
468
- e(t(H), {
466
+ e(t(T), {
469
467
  name: "源地址",
470
468
  alone: !0
471
469
  }, {
472
470
  default: a(() => {
473
471
  var o;
474
472
  return [
475
- e(C, {
473
+ e(I, {
476
474
  size: "small",
477
- placeholder: ((o = f.globalData) == null ? void 0 : o.requestOriginUrl) || "暂无",
475
+ placeholder: ((o = m.globalData) == null ? void 0 : o.requestOriginUrl) || "暂无",
478
476
  disabled: !0
479
477
  }, {
480
478
  prefix: a(() => [
481
479
  e(O, null, {
482
480
  default: a(() => [
483
- e(t(R))
481
+ e(t(v))
484
482
  ]),
485
483
  _: 1
486
484
  })
@@ -491,20 +489,20 @@ const ze = /* @__PURE__ */ j(Ve, [["__scopeId", "data-v-d087eb02"]]), ne = /* @_
491
489
  }),
492
490
  _: 1
493
491
  }),
494
- e(t(H), {
492
+ e(t(T), {
495
493
  name: "接口地址",
496
494
  alone: !0
497
495
  }, {
498
496
  default: a(() => [
499
- e(C, {
497
+ e(I, {
500
498
  size: "small",
501
- placeholder: t(q) || "暂无",
499
+ placeholder: t(R) || "暂无",
502
500
  disabled: !0
503
501
  }, {
504
502
  prefix: a(() => [
505
503
  e(O, null, {
506
504
  default: a(() => [
507
- e(t(b))
505
+ e(t(C))
508
506
  ]),
509
507
  _: 1
510
508
  })
@@ -515,27 +513,27 @@ const ze = /* @__PURE__ */ j(Ve, [["__scopeId", "data-v-d087eb02"]]), ne = /* @_
515
513
  _: 1
516
514
  })
517
515
  ]),
518
- e(T),
519
- e(t(H), { name: "类型" }, {
516
+ e(H),
517
+ e(t(T), { name: "类型" }, {
520
518
  default: a(() => [
521
519
  e(t(F), { name: "配置类型" }, {
522
520
  default: a(() => [
523
- e(C, {
521
+ e(I, {
524
522
  size: "small",
525
- placeholder: f.targetData && w[t(h)],
523
+ placeholder: m.targetData && S[t(p)],
526
524
  disabled: !0
527
525
  }, null, 8, ["placeholder"])
528
526
  ]),
529
527
  _: 1
530
528
  }),
531
- t(h) === t(J).DEFAULT ? (c(), z(t(F), {
529
+ t(p) === t(Y).DEFAULT ? (u(), z(t(F), {
532
530
  key: 0,
533
531
  name: "body 类型"
534
532
  }, {
535
533
  default: a(() => [
536
- e(C, {
534
+ e(I, {
537
535
  size: "small",
538
- placeholder: f.targetData && t(u),
536
+ placeholder: m.targetData && t(n),
539
537
  disabled: !0
540
538
  }, null, 8, ["placeholder"])
541
539
  ]),
@@ -544,14 +542,14 @@ const ze = /* @__PURE__ */ j(Ve, [["__scopeId", "data-v-d087eb02"]]), ne = /* @_
544
542
  ]),
545
543
  _: 1
546
544
  }),
547
- t(h) === t(J).DEFAULT ? (c(), I("div", Fe, [
548
- e(d, {
545
+ t(p) === t(Y).DEFAULT ? (u(), x("div", Fe, [
546
+ e(r, {
549
547
  type: "border-card",
550
- modelValue: m.value,
551
- "onUpdate:modelValue": g[0] || (g[0] = (o) => m.value = o)
548
+ modelValue: b.value,
549
+ "onUpdate:modelValue": h[0] || (h[0] = (o) => b.value = o)
552
550
  }, {
553
551
  default: a(() => [
554
- (c(!0), I(K, null, de(t(B), (o) => (c(), z(x, {
552
+ (u(!0), x(Q, null, de(t(B), (o) => (u(), z(D, {
555
553
  key: o,
556
554
  name: o,
557
555
  label: o
@@ -559,67 +557,71 @@ const ze = /* @__PURE__ */ j(Ve, [["__scopeId", "data-v-d087eb02"]]), ne = /* @_
559
557
  ]),
560
558
  _: 1
561
559
  }, 8, ["modelValue"]),
562
- s("div", Le, [
563
- m.value !== t(B).BODY ? (c(), I("div", Me, [
560
+ d("div", Me, [
561
+ b.value !== t(B).BODY ? (u(), x("div", Ge, [
564
562
  e(ne, {
565
563
  class: "go-my-3",
566
- target: t(i)[m.value]
564
+ target: t(g)[b.value]
567
565
  }, null, 8, ["target"])
568
- ])) : (c(), I("div", Ge, [
569
- t(u) === t(M).NONE ? (c(), z(l, {
566
+ ])) : (u(), x("div", Le, [
567
+ t(n) === t(G).NONE ? (u(), z(l, {
570
568
  key: 0,
571
569
  class: "go-mt-3 go-pb-3",
572
570
  shadow: "never"
573
571
  }, {
574
572
  default: a(() => [
575
- e(D, { type: "info" }, {
576
- default: a(() => g[1] || (g[1] = [
577
- p("该接口没有 Body 体")
573
+ e(k, { type: "info" }, {
574
+ default: a(() => h[1] || (h[1] = [
575
+ f("该接口没有 Body 体")
578
576
  ])),
579
577
  _: 1,
580
578
  __: [1]
581
579
  })
582
580
  ]),
583
581
  _: 1
584
- })) : t(u) === t(M).FORM_DATA || t(u) === t(M).X_WWW_FORM_URLENCODED ? (c(), z(ne, {
582
+ })) : t(n) === t(G).FORM_DATA || t(n) === t(G).X_WWW_FORM_URLENCODED ? (u(), z(ne, {
585
583
  key: 1,
586
584
  class: "go-my-3",
587
- target: t(i)[t(B).BODY][t(u)]
588
- }, null, 8, ["target"])) : t(u) === t(M).JSON ? (c(), z(l, {
585
+ target: t(g)[t(B).BODY][t(n)]
586
+ }, null, 8, ["target"])) : t(n) === t(G).JSON ? (u(), z(l, {
589
587
  key: 2,
590
588
  shadow: "never",
591
589
  class: "code-card"
592
590
  }, {
593
591
  default: a(() => [
594
- s("pre", je, [
595
- s("code", null, V(t(i)[t(B).BODY][t(u)] || "暂无内容"), 1)
592
+ d("pre", je, [
593
+ d("code", null, V(t(g)[t(B).BODY][t(n)] || "暂无内容"), 1)
596
594
  ])
597
595
  ]),
598
596
  _: 1
599
- })) : t(u) === t(M).XML ? (c(), I("pre", Ye, [
600
- s("code", null, V(t(i)[t(B).BODY][t(u)] || ""), 1)
597
+ })) : t(n) === t(G).XML ? (u(), x("pre", Je, [
598
+ d("code", null, V(t(g)[t(B).BODY][t(n)] || ""), 1)
601
599
  ])) : ee("", !0)
602
600
  ]))
603
601
  ])
604
- ])) : (c(), I("div", Je, [
605
- e(t(H), { name: "键名" }, {
606
- default: a(() => [
607
- e(D, null, {
608
- default: a(() => g[2] || (g[2] = [
609
- p("sql")
610
- ])),
611
- _: 1,
612
- __: [2]
613
- })
614
- ]),
602
+ ])) : (u(), x("div", Ye, [
603
+ e(t(T), { name: "数据集 ID" }, {
604
+ default: a(() => {
605
+ var o;
606
+ return [
607
+ e(I, {
608
+ size: "small",
609
+ placeholder: ((o = t(q)) == null ? void 0 : o.datasetId) || "暂无",
610
+ disabled: !0
611
+ }, null, 8, ["placeholder"])
612
+ ];
613
+ }),
615
614
  _: 1
616
615
  }),
617
- e(t(H), { name: "键值" }, {
618
- default: a(() => [
619
- s("pre", Qe, [
620
- s("code", null, V(t(P).sql || ""), 1)
621
- ])
622
- ]),
616
+ e(t(T), { name: "参数" }, {
617
+ default: a(() => {
618
+ var o;
619
+ return [
620
+ d("pre", We, [
621
+ d("code", null, V(y((o = t(q)) == null ? void 0 : o.params)), 1)
622
+ ])
623
+ ];
624
+ }),
623
625
  _: 1
624
626
  })
625
627
  ]))
@@ -631,54 +633,54 @@ const ze = /* @__PURE__ */ j(Ve, [["__scopeId", "data-v-d087eb02"]]), ne = /* @_
631
633
  };
632
634
  }
633
635
  });
634
- const Xe = /* @__PURE__ */ j(We, [["__scopeId", "data-v-742494f4"]]), Ke = { class: "pond-content" }, Ze = {
636
+ const Ke = /* @__PURE__ */ j(Xe, [["__scopeId", "data-v-283e13ca"]]), Qe = { class: "pond-content" }, Ze = {
635
637
  key: 1,
636
638
  class: "no-data go-flex-center"
637
- }, et = ["src"], tt = { class: "dialog-footer" }, at = /* @__PURE__ */ L({
639
+ }, et = ["src"], tt = { class: "dialog-footer" }, at = /* @__PURE__ */ M({
638
640
  __name: "index",
639
641
  props: {
640
642
  modelShow: Boolean
641
643
  },
642
644
  emits: ["update:modelShow", "sendHandle"],
643
- setup(f, { emit: $ }) {
644
- const S = f, b = $, { PencilIcon: R } = Z.ionicons5, { chartEditStore: q, targetData: _ } = te(), { requestDataPond: y } = X(q.getRequestGlobalConfig), h = E(!1), P = E(!1), i = E(!1), u = E(!1), k = E(), w = G(() => {
645
+ setup(m, { emit: $ }) {
646
+ const C = m, v = $, { PencilIcon: R } = Z.ionicons5, { chartEditStore: P, targetData: c } = te(), { requestDataPond: p } = K(P.getRequestGlobalConfig), q = E(!1), g = E(!1), n = E(!1), w = E(!1), S = E(), b = L(() => {
645
647
  var o, U;
646
- const l = (U = (o = _ == null ? void 0 : _.value) == null ? void 0 : o.request) == null ? void 0 : U.requestDataPondId;
647
- return l ? y.value.filter((A) => l === A.dataPondId)[0] : void 0;
648
+ const l = (U = (o = c == null ? void 0 : c.value) == null ? void 0 : o.request) == null ? void 0 : U.requestDataPondId;
649
+ return l ? p.value.filter((A) => l === A.dataPondId)[0] : void 0;
648
650
  });
649
- Q(
650
- () => S.modelShow,
651
+ W(
652
+ () => C.modelShow,
651
653
  (l) => {
652
- P.value = l;
654
+ g.value = l;
653
655
  }
654
- ), Q(
655
- () => w.value,
656
+ ), W(
657
+ () => b.value,
656
658
  (l) => {
657
- i.value = !0, k.value = l, ce(() => {
658
- i.value = !1;
659
+ n.value = !0, S.value = l, ce(() => {
660
+ n.value = !1;
659
661
  });
660
662
  },
661
663
  {
662
664
  immediate: !0
663
665
  }
664
666
  );
665
- const m = (l = !1) => {
666
- u.value = !!l, h.value = !0;
667
- }, v = () => {
667
+ const y = (l = !1) => {
668
+ w.value = !!l, q.value = !0;
669
+ }, _ = () => {
668
670
  const l = pe();
669
- k.value = {
671
+ S.value = {
670
672
  dataPondId: l,
671
673
  dataPondName: l,
672
674
  dataPondRequestConfig: ve.cloneDeep({ ...qe, requestDataType: le.Pond })
673
- }, m();
674
- }, g = (l) => {
675
- u.value ? C(l) : O(l), u.value = !1, h.value = !1;
676
- }, C = (l) => {
675
+ }, y();
676
+ }, h = (l) => {
677
+ w.value ? I(l) : O(l), w.value = !1, q.value = !1;
678
+ }, I = (l) => {
677
679
  try {
678
- const r = y.value.findIndex((o) => o.dataPondId === l.dataPondId);
679
- r !== -1 ? (y.value.splice(r, 1, l), q.getComponentList.forEach((o) => {
680
+ const i = p.value.findIndex((o) => o.dataPondId === l.dataPondId);
681
+ i !== -1 ? (p.value.splice(i, 1, l), P.getComponentList.forEach((o) => {
680
682
  o.request.requestDataType === le.Pond && o.request.requestDataPondId === l.dataPondId && (o.request = {
681
- ...W(l.dataPondRequestConfig),
683
+ ...X(l.dataPondRequestConfig),
682
684
  requestDataPondId: l.dataPondId
683
685
  });
684
686
  }), window.$message.success("保存成功!")) : window.$message.error("编辑失败,请稍后重试!");
@@ -687,52 +689,52 @@ const Xe = /* @__PURE__ */ j(We, [["__scopeId", "data-v-742494f4"]]), Ke = { cla
687
689
  }
688
690
  }, O = (l) => {
689
691
  try {
690
- k.value ? (y.value.unshift(l), window.$message.success("创建成功!")) : window.$message.error("创建失败,请稍后重试!");
692
+ S.value ? (p.value.unshift(l), window.$message.success("创建成功!")) : window.$message.error("创建失败,请稍后重试!");
691
693
  } catch {
692
694
  window.$message.error("创建失败,请稍后重试!");
693
695
  }
694
- }, T = (l) => {
696
+ }, H = (l) => {
695
697
  ie({
696
698
  message: "删除数据后,需手动处理使用改接口的组件,是否继续?",
697
699
  isMaskClosable: !0,
698
700
  transformOrigin: "center",
699
701
  onPositiveCallback: () => {
700
- const r = y.value.findIndex((o) => o.dataPondId === l.dataPondId);
701
- r !== -1 ? (y.value.splice(r, 1), window.$message.success("删除成功!")) : window.$message.error("删除失败,请稍后重试!");
702
+ const i = p.value.findIndex((o) => o.dataPondId === l.dataPondId);
703
+ i !== -1 ? (p.value.splice(i, 1), window.$message.success("删除成功!")) : window.$message.error("删除失败,请稍后重试!");
702
704
  }
703
705
  });
704
- }, x = () => {
705
- _.value && w.value && (_.value.request = {
706
- ...W(w.value.dataPondRequestConfig),
707
- requestDataPondId: w.value.dataPondId
708
- }), b("update:modelShow", !1), b("sendHandle");
709
- }, d = () => {
710
- b("update:modelShow", !1);
711
706
  }, D = () => {
712
- d();
707
+ c.value && b.value && (c.value.request = {
708
+ ...X(b.value.dataPondRequestConfig),
709
+ requestDataPondId: b.value.dataPondId
710
+ }), v("update:modelShow", !1), v("sendHandle");
711
+ }, r = () => {
712
+ v("update:modelShow", !1);
713
+ }, k = () => {
714
+ r();
713
715
  };
714
- return (l, r) => {
715
- const o = n("el-text"), U = n("el-icon"), A = n("el-button"), N = n("el-dialog");
716
- return c(), I(K, null, [
716
+ return (l, i) => {
717
+ const o = s("el-text"), U = s("el-icon"), A = s("el-button"), N = s("el-dialog");
718
+ return u(), x(Q, null, [
717
719
  e(N, {
718
720
  class: "go-chart-data-pond-control",
719
- modelValue: P.value,
720
- "onUpdate:modelValue": r[1] || (r[1] = (Y) => P.value = Y),
721
+ modelValue: g.value,
722
+ "onUpdate:modelValue": i[1] || (i[1] = (J) => g.value = J),
721
723
  "close-on-click-modal": !1,
722
724
  "close-on-press-escape": !0,
723
725
  width: "900px",
724
726
  "show-close": !1,
725
727
  "append-to-body": "",
726
728
  "modal-append-to-body": "",
727
- onClose: D
729
+ onClose: k
728
730
  }, {
729
731
  footer: a(() => [
730
- s("div", tt, [
732
+ d("div", tt, [
731
733
  e(A, {
732
734
  type: "info",
733
735
  plain: "",
734
- disabled: !w.value,
735
- onClick: r[0] || (r[0] = (Y) => m(!0))
736
+ disabled: !b.value,
737
+ onClick: i[0] || (i[0] = (J) => y(!0))
736
738
  }, {
737
739
  default: a(() => [
738
740
  e(U, null, {
@@ -741,28 +743,28 @@ const Xe = /* @__PURE__ */ j(We, [["__scopeId", "data-v-742494f4"]]), Ke = { cla
741
743
  ]),
742
744
  _: 1
743
745
  }),
744
- r[4] || (r[4] = p(" 编辑内容 "))
746
+ i[4] || (i[4] = f(" 编辑内容 "))
745
747
  ]),
746
748
  _: 1,
747
749
  __: [4]
748
750
  }, 8, ["disabled"]),
749
- s("div", null, [
751
+ d("div", null, [
750
752
  e(A, {
751
753
  class: "go-mr-3",
752
- onClick: d
754
+ onClick: r
753
755
  }, {
754
- default: a(() => r[5] || (r[5] = [
755
- p("取消")
756
+ default: a(() => i[5] || (i[5] = [
757
+ f("取消")
756
758
  ])),
757
759
  _: 1,
758
760
  __: [5]
759
761
  }),
760
762
  e(A, {
761
763
  type: "primary",
762
- onClick: x
764
+ onClick: D
763
765
  }, {
764
- default: a(() => r[6] || (r[6] = [
765
- p("保存 & 发送请求")
766
+ default: a(() => i[6] || (i[6] = [
767
+ f("保存 & 发送请求")
766
768
  ])),
767
769
  _: 1,
768
770
  __: [6]
@@ -771,99 +773,99 @@ const Xe = /* @__PURE__ */ j(We, [["__scopeId", "data-v-742494f4"]]), Ke = { cla
771
773
  ])
772
774
  ]),
773
775
  default: a(() => [
774
- s("div", Ke, [
775
- w.value && !i.value ? (c(), z(t(Xe), {
776
+ d("div", Qe, [
777
+ b.value && !n.value ? (u(), z(t(Ke), {
776
778
  key: 0,
777
- targetData: w.value,
778
- globalData: t(q).getRequestGlobalConfig
779
- }, null, 8, ["targetData", "globalData"])) : (c(), I("div", Ze, [
780
- s("img", {
779
+ targetData: b.value,
780
+ globalData: t(P).getRequestGlobalConfig
781
+ }, null, 8, ["targetData", "globalData"])) : (u(), x("div", Ze, [
782
+ d("img", {
781
783
  src: t(be),
782
784
  alt: "暂无数据"
783
785
  }, null, 8, et),
784
786
  e(o, { type: "info" }, {
785
- default: a(() => r[3] || (r[3] = [
786
- p("暂未选择公共接口")
787
+ default: a(() => i[3] || (i[3] = [
788
+ f("暂未选择公共接口")
787
789
  ])),
788
790
  _: 1,
789
791
  __: [3]
790
792
  })
791
793
  ])),
792
794
  e(t(ze), {
793
- onCreatePond: v,
794
- onDeletePond: T
795
+ onCreatePond: _,
796
+ onDeletePond: H
795
797
  })
796
798
  ])
797
799
  ]),
798
800
  _: 1
799
801
  }, 8, ["modelValue"]),
800
802
  e(t(Re), {
801
- modelShow: h.value,
802
- "onUpdate:modelShow": r[2] || (r[2] = (Y) => h.value = Y),
803
- targetDataRequest: k.value,
804
- isEdit: u.value,
805
- onEditSaveHandle: g
803
+ modelShow: q.value,
804
+ "onUpdate:modelShow": i[2] || (i[2] = (J) => q.value = J),
805
+ targetDataRequest: S.value,
806
+ isEdit: w.value,
807
+ onEditSaveHandle: h
806
808
  }, null, 8, ["modelShow", "targetDataRequest", "isEdit"])
807
809
  ], 64);
808
810
  };
809
811
  }
810
812
  });
811
- const ot = /* @__PURE__ */ j(at, [["__scopeId", "data-v-2702a67a"]]), lt = { class: "go-chart-data-pond" }, nt = { class: "go-absolute-center" }, st = /* @__PURE__ */ L({
813
+ const ot = /* @__PURE__ */ j(at, [["__scopeId", "data-v-2702a67a"]]), lt = { class: "go-chart-data-pond" }, nt = { class: "go-absolute-center" }, st = /* @__PURE__ */ M({
812
814
  __name: "index",
813
- setup(f) {
814
- se((x) => ({
815
- b6aa150c: C.value
815
+ setup(m) {
816
+ se((D) => ({
817
+ b6aa150c: I.value
816
818
  }));
817
- const $ = re(), { HelpOutlineIcon: S, FlashIcon: b, PulseIcon: R, FishIcon: q } = Z.ionicons5, { targetData: _, chartEditStore: y } = te(), {
818
- requestDataPond: h,
819
- requestInterval: P,
820
- requestIntervalUnit: i
821
- } = X(y.getRequestGlobalConfig), u = E(!1), k = E(!1), w = E(!1);
822
- let m = 0, v;
823
- const g = G(() => {
819
+ const $ = re(), { HelpOutlineIcon: C, FlashIcon: v, PulseIcon: R, FishIcon: P } = Z.ionicons5, { targetData: c, chartEditStore: p } = te(), {
820
+ requestDataPond: q,
821
+ requestInterval: g,
822
+ requestIntervalUnit: n
823
+ } = K(p.getRequestGlobalConfig), w = E(!1), S = E(!1), b = E(!1);
824
+ let y = 0, _;
825
+ const h = L(() => {
826
+ var k;
827
+ const D = (k = c.value) == null ? void 0 : k.request.requestDataPondId;
828
+ return D ? q.value.filter((l) => D === l.dataPondId)[0] : void 0;
829
+ }), I = L(() => $.getAppTheme), O = () => {
830
+ S.value = !0;
831
+ }, H = async () => {
824
832
  var D;
825
- const x = (D = _.value) == null ? void 0 : D.request.requestDataPondId;
826
- return x ? h.value.filter((l) => x === l.dataPondId)[0] : void 0;
827
- }), C = G(() => $.getAppTheme), O = () => {
828
- k.value = !0;
829
- }, T = async () => {
830
- var x;
831
- if (!((x = _.value) != null && x.request)) {
833
+ if (!((D = c.value) != null && D.request)) {
832
834
  window.$message.warning("请选择一个公共接口!");
833
835
  return;
834
836
  }
835
- u.value = !0;
837
+ w.value = !0;
836
838
  try {
837
- const d = await ge(W(_.value.request), W(y.getRequestGlobalConfig));
838
- if (u.value = !1, d) {
839
- if (!(d != null && d.data) && !_.value.filter) {
840
- window.$message.warning("您的数据不符合默认格式,请配置过滤器!"), w.value = !0;
839
+ const r = await ge(X(c.value.request), X(p.getRequestGlobalConfig));
840
+ if (w.value = !1, r) {
841
+ if (!(r != null && r.data) && !c.value.filter) {
842
+ window.$message.warning("您的数据不符合默认格式,请配置过滤器!"), b.value = !0;
841
843
  return;
842
844
  }
843
- _.value.option.dataset = fe(d == null ? void 0 : d.data, d, _.value.filter), w.value = !0;
845
+ c.value.option.dataset = fe(r == null ? void 0 : r.data, r, c.value.filter), b.value = !0;
844
846
  return;
845
847
  }
846
848
  window.$message.warning("没有拿到返回值,请检查接口!");
847
- } catch (d) {
848
- console.error(d), u.value = !1, window.$message.warning("数据异常,请检查参数!");
849
+ } catch (r) {
850
+ console.error(r), w.value = !1, window.$message.warning("数据异常,请检查参数!");
849
851
  }
850
852
  };
851
853
  return _e(() => {
852
- var d;
853
- const x = (d = _.value) == null ? void 0 : d.filter;
854
- v !== x && m && (v = x, T()), m++;
854
+ var r;
855
+ const D = (r = c.value) == null ? void 0 : r.filter;
856
+ _ !== D && y && (_ = D, H()), y++;
855
857
  }), me(() => {
856
- v = null;
857
- }), (x, d) => {
858
- const D = n("el-icon"), l = n("el-input"), r = n("el-button"), o = n("el-card"), U = n("el-tooltip"), A = n("go-skeleton");
859
- return c(), I(K, null, [
860
- s("div", lt, [
858
+ _ = null;
859
+ }), (D, r) => {
860
+ const k = s("el-icon"), l = s("el-input"), i = s("el-button"), o = s("el-card"), U = s("el-tooltip"), A = s("go-skeleton");
861
+ return u(), x(Q, null, [
862
+ d("div", lt, [
861
863
  e(o, {
862
864
  class: "card-shallow",
863
865
  shadow: "never"
864
866
  }, {
865
867
  default: a(() => [
866
- e(t(H), {
868
+ e(t(T), {
867
869
  name: "请求名称",
868
870
  alone: !0
869
871
  }, {
@@ -872,13 +874,13 @@ const ot = /* @__PURE__ */ j(at, [["__scopeId", "data-v-2702a67a"]]), lt = { cla
872
874
  return [
873
875
  e(l, {
874
876
  size: "small",
875
- placeholder: ((N = g.value) == null ? void 0 : N.dataPondName) || "暂无",
877
+ placeholder: ((N = h.value) == null ? void 0 : N.dataPondName) || "暂无",
876
878
  disabled: !0
877
879
  }, {
878
880
  prefix: a(() => [
879
- e(D, null, {
881
+ e(k, null, {
880
882
  default: a(() => [
881
- e(t(q))
883
+ e(t(P))
882
884
  ]),
883
885
  _: 1
884
886
  })
@@ -889,7 +891,7 @@ const ot = /* @__PURE__ */ j(at, [["__scopeId", "data-v-2702a67a"]]), lt = { cla
889
891
  }),
890
892
  _: 1
891
893
  }),
892
- e(t(H), {
894
+ e(t(T), {
893
895
  name: "接口地址",
894
896
  alone: !0
895
897
  }, {
@@ -898,13 +900,13 @@ const ot = /* @__PURE__ */ j(at, [["__scopeId", "data-v-2702a67a"]]), lt = { cla
898
900
  return [
899
901
  e(l, {
900
902
  size: "small",
901
- placeholder: ((N = g.value) == null ? void 0 : N.dataPondRequestConfig.requestUrl) || "暂无",
903
+ placeholder: ((N = h.value) == null ? void 0 : N.dataPondRequestConfig.requestUrl) || "暂无",
902
904
  disabled: !0
903
905
  }, {
904
906
  prefix: a(() => [
905
- e(D, null, {
907
+ e(k, null, {
906
908
  default: a(() => [
907
- e(t(b))
909
+ e(t(v))
908
910
  ]),
909
911
  _: 1
910
912
  })
@@ -915,17 +917,17 @@ const ot = /* @__PURE__ */ j(at, [["__scopeId", "data-v-2702a67a"]]), lt = { cla
915
917
  }),
916
918
  _: 1
917
919
  }),
918
- s("div", {
920
+ d("div", {
919
921
  class: "edit-text",
920
922
  onClick: O
921
923
  }, [
922
- s("div", nt, [
923
- e(r, {
924
+ d("div", nt, [
925
+ e(i, {
924
926
  type: "primary",
925
927
  plain: ""
926
928
  }, {
927
- default: a(() => d[1] || (d[1] = [
928
- p("编辑配置")
929
+ default: a(() => r[1] || (r[1] = [
930
+ f("编辑配置")
929
931
  ])),
930
932
  _: 1,
931
933
  __: [1]
@@ -936,17 +938,17 @@ const ot = /* @__PURE__ */ j(at, [["__scopeId", "data-v-2702a67a"]]), lt = { cla
936
938
  _: 1
937
939
  })
938
940
  ]),
939
- e(t(H), { alone: !0 }, {
941
+ e(t(T), { alone: !0 }, {
940
942
  name: a(() => [
941
- d[2] || (d[2] = p(" 测试 ")),
943
+ r[2] || (r[2] = f(" 测试 ")),
942
944
  e(U, {
943
945
  content: "默认赋值给 dataset 字段",
944
946
  placement: "top"
945
947
  }, {
946
948
  default: a(() => [
947
- e(D, { size: 21 }, {
949
+ e(k, { size: 21 }, {
948
950
  default: a(() => [
949
- e(t(S))
951
+ e(t(C))
950
952
  ]),
951
953
  _: 1
952
954
  })
@@ -955,19 +957,19 @@ const ot = /* @__PURE__ */ j(at, [["__scopeId", "data-v-2702a67a"]]), lt = { cla
955
957
  })
956
958
  ]),
957
959
  default: a(() => [
958
- e(r, {
960
+ e(i, {
959
961
  type: "primary",
960
962
  plain: "",
961
- onClick: T
963
+ onClick: H
962
964
  }, {
963
965
  default: a(() => [
964
- e(D, null, {
966
+ e(k, null, {
965
967
  default: a(() => [
966
- e(t(b))
968
+ e(t(v))
967
969
  ]),
968
970
  _: 1
969
971
  }),
970
- d[3] || (d[3] = p(" 发送请求 "))
972
+ r[3] || (r[3] = f(" 发送请求 "))
971
973
  ]),
972
974
  _: 1,
973
975
  __: [3]
@@ -976,24 +978,24 @@ const ot = /* @__PURE__ */ j(at, [["__scopeId", "data-v-2702a67a"]]), lt = { cla
976
978
  _: 1
977
979
  }),
978
980
  e(t(Pe), {
979
- show: w.value && !u.value,
981
+ show: b.value && !w.value,
980
982
  ajax: !0
981
983
  }, null, 8, ["show"]),
982
984
  e(A, {
983
- load: u.value,
985
+ load: w.value,
984
986
  repeat: 3
985
987
  }, null, 8, ["load"]),
986
988
  e(t(ot), {
987
- modelShow: k.value,
988
- "onUpdate:modelShow": d[0] || (d[0] = (N) => k.value = N),
989
- onSendHandle: T
989
+ modelShow: S.value,
990
+ "onUpdate:modelShow": r[0] || (r[0] = (N) => S.value = N),
991
+ onSendHandle: H
990
992
  }, null, 8, ["modelShow"])
991
993
  ], 64);
992
994
  };
993
995
  }
994
996
  });
995
- const Tt = /* @__PURE__ */ j(st, [["__scopeId", "data-v-e8954692"]]);
997
+ const Ht = /* @__PURE__ */ j(st, [["__scopeId", "data-v-e8954692"]]);
996
998
  export {
997
- Tt as default
999
+ Ht as default
998
1000
  };
999
- //# sourceMappingURL=index-f3ad1572.js.map
1001
+ //# sourceMappingURL=index-9481af80.js.map