st-comp 0.0.208 → 0.0.209

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 (164) hide show
  1. package/es/ChartLayout.cjs +1 -1
  2. package/es/ChartLayout.js +74 -1
  3. package/es/CustomFunction.cjs +1 -1
  4. package/es/CustomFunction.js +56 -53
  5. package/es/FactorWarning.cjs +1 -1
  6. package/es/FactorWarning.js +48 -45
  7. package/es/HeatMap.cjs +1 -1
  8. package/es/HeatMap.js +118 -1
  9. package/es/Kline.cjs +1 -1
  10. package/es/Kline.js +90 -87
  11. package/es/KlineBasic.cjs +1 -1
  12. package/es/KlineBasic.js +28 -25
  13. package/es/KlineConfig.cjs +1 -1
  14. package/es/KlineConfig.js +164 -161
  15. package/es/KlineNew.cjs +1 -1
  16. package/es/KlineNew.js +114 -111
  17. package/es/KlinePlus.cjs +2 -2
  18. package/es/KlinePlus.js +183 -180
  19. package/es/Pagination.cjs +1 -1
  20. package/es/Pagination.js +143 -140
  21. package/es/PasswordPrompt.cjs +1 -1
  22. package/es/PasswordPrompt.js +3 -2
  23. package/es/Table.cjs +1 -1
  24. package/es/Table.js +58 -55
  25. package/es/User.cjs +1 -1
  26. package/es/User.js +88 -85
  27. package/es/VarSelectDialog.cjs +2 -2
  28. package/es/VarSelectDialog.js +56 -53
  29. package/es/VarietyAutoComplete.cjs +1 -1
  30. package/es/VarietyAutoComplete.js +17 -15
  31. package/es/VarietySearch.cjs +10 -10
  32. package/es/VarietySearch.js +56 -53
  33. package/es/VarietyTextCopy.cjs +3 -3
  34. package/es/VarietyTextCopy.js +34 -31
  35. package/es/VirtualTable.cjs +1 -1
  36. package/es/VirtualTable.js +106 -103
  37. package/es/_initCloneObject-52b6a510.cjs +1 -0
  38. package/es/{_initCloneObject-c477c74d.js → _initCloneObject-eaef9418.js} +26 -25
  39. package/es/base-a5af3db3.js +288 -0
  40. package/es/base-ef747d02.cjs +5 -0
  41. package/es/castArray-35947698.cjs +1 -0
  42. package/es/{castArray-1eb17278.js → castArray-7741a212.js} +1 -1
  43. package/es/{config-provider-18c0a68a.cjs → config-provider-a584d81e.cjs} +1 -1
  44. package/es/{config-provider-49c17381.js → config-provider-b16efd62.js} +6 -6
  45. package/es/debounce-62f5b6e8.cjs +1 -0
  46. package/es/{debounce-33406a0d.js → debounce-8d53f4dd.js} +9 -9
  47. package/es/{dropdown-3f1fe325.cjs → dropdown-071c5d7e.cjs} +1 -1
  48. package/es/{dropdown-6e7b1df0.js → dropdown-a59bba73.js} +15 -15
  49. package/es/el-autocomplete-a07e9439.cjs +1 -0
  50. package/es/{el-autocomplete-87b7f461.js → el-autocomplete-ba808eb6.js} +53 -51
  51. package/es/{el-button-56624e61.js → el-button-c95adb85.js} +46 -45
  52. package/es/el-button-eec58cff.cjs +1 -0
  53. package/es/{el-checkbox-f13560e9.js → el-checkbox-7421ccd3.js} +40 -40
  54. package/es/{el-checkbox-09f3b57f.cjs → el-checkbox-c25236a6.cjs} +1 -1
  55. package/es/{el-dialog-1d5f5877.js → el-dialog-41ab8417.js} +10 -9
  56. package/es/el-dialog-ae86edb8.cjs +1 -0
  57. package/es/{el-divider-8a4c87e3.cjs → el-divider-4713d74c.cjs} +1 -1
  58. package/es/{el-divider-1cda1783.js → el-divider-4e059794.js} +1 -1
  59. package/es/el-empty-1697ded8.cjs +1 -0
  60. package/es/{el-empty-04682b5d.js → el-empty-33cb66f1.js} +3 -3
  61. package/es/el-form-item-c3fe189b.cjs +12 -0
  62. package/es/{el-form-item-505c0b70.js → el-form-item-c53c374d.js} +76 -75
  63. package/es/{el-input-262851e8.js → el-input-2f75c4ba.js} +85 -84
  64. package/es/el-input-7fd293af.cjs +1 -0
  65. package/es/el-input-number-22e21d16.cjs +1 -0
  66. package/es/{el-input-number-fdac2b86.js → el-input-number-5193fe6d.js} +83 -82
  67. package/es/{el-loading-3cf7b796.cjs → el-loading-cfd86c15.cjs} +1 -1
  68. package/es/{el-loading-7440dc64.js → el-loading-f6022062.js} +2 -2
  69. package/es/el-menu-item-17dc717e.cjs +1 -0
  70. package/es/{el-menu-item-36c3004c.js → el-menu-item-7e881203.js} +54 -53
  71. package/es/el-message-5e6a6be9.cjs +1 -0
  72. package/es/{el-message-box-8f5e34ca.js → el-message-box-a93d2f6a.js} +22 -20
  73. package/es/el-message-box-c10adb52.cjs +1 -0
  74. package/es/{el-message-416bd265.js → el-message-e544a8f5.js} +29 -28
  75. package/es/{el-overlay-04426e36.js → el-overlay-09ad71cd.js} +53 -52
  76. package/es/el-overlay-9e34965f.cjs +1 -0
  77. package/es/el-popconfirm-70a976bf.cjs +1 -0
  78. package/es/{el-popconfirm-3790cda2.js → el-popconfirm-81dcd202.js} +39 -38
  79. package/es/{el-popper-49152708.js → el-popper-b4f97157.js} +192 -191
  80. package/es/el-popper-b6c99b28.cjs +1 -0
  81. package/es/{el-segmented-05509f9d.js → el-segmented-b868d074.js} +13 -12
  82. package/es/el-segmented-f8fce9ac.cjs +1 -0
  83. package/es/{el-select-700f3686.js → el-select-95627997.js} +295 -292
  84. package/es/el-select-d8d91db1.cjs +1 -0
  85. package/es/{el-table-column-44360700.js → el-table-column-376cd907.js} +57 -54
  86. package/es/el-table-column-c974cb96.cjs +14 -0
  87. package/es/{el-tag-55a172c9.js → el-tag-66cab138.js} +31 -30
  88. package/es/el-tag-a33c4b22.cjs +1 -0
  89. package/es/{el-text-ab6bfc40.js → el-text-ac60d0f2.js} +4 -4
  90. package/es/{el-text-5bcaffb6.cjs → el-text-c20a9f48.cjs} +1 -1
  91. package/es/index-098c2447.cjs +1 -0
  92. package/es/{index-d8294b1a.cjs → index-11547a0c.cjs} +1 -1
  93. package/es/{index-0afedcbd.js → index-1f7d4f70.js} +12 -11
  94. package/es/{index-ae6c9d97.cjs → index-298075cf.cjs} +1 -1
  95. package/es/{index-4e46f96c.js → index-57672682.js} +13 -12
  96. package/es/{index-66ad0d6a.js → index-844bdd85.js} +34 -34
  97. package/es/{index-29418a8d.js → index-88546436.js} +18 -18
  98. package/es/index-960806da.js +314 -0
  99. package/es/index-9780a537.cjs +1 -0
  100. package/es/index-9b9ef5dd.cjs +1 -0
  101. package/es/{base-aa512893.js → index-a871c3eb.js} +171 -454
  102. package/es/index-bb833443.cjs +1 -0
  103. package/es/index-c108567d.cjs +1 -0
  104. package/es/index-d77a7336.js +204 -0
  105. package/es/{index-cbbd78b4.js → index-d91dc23f.js} +12 -12
  106. package/es/index-e5566b94.js +368 -0
  107. package/es/index-f3562b52.cjs +1 -0
  108. package/es/{index-882d77d3.cjs → index-f967d6c1.cjs} +1 -1
  109. package/es/raf-80ef0c0a.js +6 -0
  110. package/es/{raf-336ef01e.cjs → raf-8249652f.cjs} +1 -1
  111. package/es/{scroll-0a48995c.js → scroll-679bd6bf.js} +5 -5
  112. package/es/{scroll-19533c53.cjs → scroll-b108dabd.cjs} +1 -1
  113. package/es/style.css +1 -1
  114. package/es/use-form-common-props-815d48a6.js +364 -0
  115. package/es/use-form-common-props-fd9b61a0.cjs +1 -0
  116. package/es/use-global-config-30d7d8ce.cjs +1 -0
  117. package/es/use-global-config-b5e9d3d5.js +72 -0
  118. package/es/{validator-28b22907.cjs → validator-1b8a6128.cjs} +1 -1
  119. package/es/{validator-e35f7978.js → validator-764a9db0.js} +1 -1
  120. package/es/{vnode-b62d0045.js → vnode-5ddb7ed1.js} +1 -1
  121. package/es/{vnode-8cb31692.cjs → vnode-b906ae6d.cjs} +1 -1
  122. package/es/{zh-cn-7c8640bb.cjs → zh-cn-90317f62.cjs} +1 -1
  123. package/es/{zh-cn-346f3a73.js → zh-cn-e963c628.js} +2 -2
  124. package/lib/bundle.js +1 -1
  125. package/lib/bundle.umd.cjs +105 -105
  126. package/lib/{index-da0f2951.js → index-e158c3d6.js} +1529 -1529
  127. package/lib/{python-c0a1e4ef.js → python-57033756.js} +1 -1
  128. package/lib/style.css +1 -1
  129. package/package.json +1 -1
  130. package/packages/Kline/componentsNew/KlineTips/index.vue +4 -4
  131. package/packages/Kline/index.vue +4 -4
  132. package/packages/KlineNew/components/KlineTips/index.vue +8 -8
  133. package/packages/KlinePlus/index.vue +4 -4
  134. package/src/pages/KlineBasic/api.js +1 -1
  135. package/es/_initCloneObject-e660897e.cjs +0 -1
  136. package/es/base-7ba08794.cjs +0 -5
  137. package/es/castArray-efa457a5.cjs +0 -1
  138. package/es/debounce-4aa22feb.cjs +0 -1
  139. package/es/el-autocomplete-609ac86d.cjs +0 -1
  140. package/es/el-button-08310c06.cjs +0 -1
  141. package/es/el-dialog-ea480083.cjs +0 -1
  142. package/es/el-empty-b40fa7ea.cjs +0 -1
  143. package/es/el-form-item-338ea2f7.cjs +0 -12
  144. package/es/el-input-b04b5bfc.cjs +0 -1
  145. package/es/el-input-number-7242c8b5.cjs +0 -1
  146. package/es/el-menu-item-7aca344e.cjs +0 -1
  147. package/es/el-message-05cd85bf.cjs +0 -1
  148. package/es/el-message-box-b7e9917e.cjs +0 -1
  149. package/es/el-overlay-60bc5a02.cjs +0 -1
  150. package/es/el-popconfirm-24b622c5.cjs +0 -1
  151. package/es/el-popper-1dd8f5b4.cjs +0 -1
  152. package/es/el-segmented-a928d89b.cjs +0 -1
  153. package/es/el-select-5fd77a96.cjs +0 -1
  154. package/es/el-table-column-bf3ab2a6.cjs +0 -14
  155. package/es/el-tag-d59f3463.cjs +0 -1
  156. package/es/index-3d0bc5da.js +0 -566
  157. package/es/index-a206f6eb.cjs +0 -1
  158. package/es/index-b4700d83.cjs +0 -1
  159. package/es/index-c30cf7f9.cjs +0 -1
  160. package/es/raf-d8c44079.js +0 -6
  161. package/es/use-form-common-props-41182853.cjs +0 -1
  162. package/es/use-form-common-props-4cdda474.js +0 -671
  163. package/es/use-global-config-7bfbe48c.js +0 -71
  164. package/es/use-global-config-dc5527e8.cjs +0 -1
package/es/User.js CHANGED
@@ -1,31 +1,34 @@
1
- import { b as Be, d as ie, _ as L, E as ue, I as Ee, u as de, s as Me, w as Ae, T as Ce, a5 as Ue, a6 as Ge } from "./base-aa512893.js";
2
- import { E as J } from "./el-button-56624e61.js";
3
- import { e as S, n as V, E as Le, O as ze, w as be, F as qe } from "./el-popper-49152708.js";
1
+ import { b as Be, e as ie, _ as L, u as ue, n as Me, w as Ae, l as Ee } from "./base-a5af3db3.js";
2
+ import { E as J } from "./el-button-c95adb85.js";
3
+ import { a as S, h as V, E as Ue, O as Ge, w as be, F as Le } from "./el-popper-b4f97157.js";
4
4
  import "./el-scrollbar-323542e7.js";
5
- import { defineComponent as z, ref as y, inject as P, computed as k, provide as Q, readonly as Ye, toRef as W, unref as h, watch as He, renderSlot as K, resolveComponent as R, openBlock as C, createBlock as D, withCtx as l, createVNode as t, normalizeProps as Je, guardReactiveProps as je, getCurrentInstance as Pe, createElementBlock as M, normalizeClass as X, createSlots as We, mergeProps as ee, createCommentVNode as oe, nextTick as ce, Fragment as Fe, createElementVNode as ne, withModifiers as H, resolveDynamicComponent as Ze, normalizeStyle as Qe, reactive as A, createTextVNode as T, toDisplayString as Z, withKeys as $e } from "vue";
5
+ import { defineComponent as z, ref as y, inject as P, computed as T, provide as Q, readonly as ze, toRef as W, unref as h, watch as qe, renderSlot as K, resolveComponent as R, openBlock as C, createBlock as D, withCtx as l, createVNode as t, normalizeProps as Ye, guardReactiveProps as He, getCurrentInstance as Ce, createElementBlock as M, normalizeClass as X, createSlots as Je, mergeProps as ee, createCommentVNode as oe, nextTick as de, Fragment as Pe, createElementVNode as ne, withModifiers as H, resolveDynamicComponent as je, normalizeStyle as We, reactive as A, createTextVNode as k, toDisplayString as Z, withKeys as Fe } from "vue";
6
+ import { E as ce, f as $e, u as Ze, r as Qe } from "./index-a871c3eb.js";
6
7
  import { R as pe, V as Xe, A as xe, K as eo } from "./index-7ed0999e.js";
7
- import { c as he, E as te } from "./el-dialog-1d5f5877.js";
8
- import "./el-overlay-04426e36.js";
9
- import { a as le, E as se } from "./el-form-item-505c0b70.js";
10
- import { E as re } from "./el-input-262851e8.js";
11
- import { E as Re } from "./el-text-ab6bfc40.js";
12
- import { E as Y } from "./el-message-416bd265.js";
8
+ import { c as he, E as te } from "./el-dialog-41ab8417.js";
9
+ import "./el-overlay-09ad71cd.js";
10
+ import { a as le, E as se } from "./el-form-item-c53c374d.js";
11
+ import { E as re } from "./el-input-2f75c4ba.js";
12
+ import { E as Re } from "./el-text-ac60d0f2.js";
13
+ import { E as Y } from "./el-message-e544a8f5.js";
13
14
  import { _ as me } from "./_plugin-vue_export-helper-dad06003.js";
14
- import { P as Te } from "./index-0afedcbd.js";
15
- import { E as oo } from "./index-66ad0d6a.js";
16
- import { b as no, d as ke, a as to } from "./use-form-common-props-4cdda474.js";
17
- import { c as lo, E as so, d as ro, a as Se, C as ao, b as io, e as uo, f as co, g as po, F as mo, L as fo } from "./dropdown-6e7b1df0.js";
18
- import { a as vo } from "./index-3d0bc5da.js";
19
- import { c as _o } from "./castArray-1eb17278.js";
15
+ import { P as ke } from "./index-1f7d4f70.js";
16
+ import { E as oo } from "./index-844bdd85.js";
17
+ import { c as no, e as to } from "./use-form-common-props-815d48a6.js";
18
+ import { c as lo, E as so, d as ro, a as Te, C as ao, b as io, e as uo, f as co, g as po, F as mo, L as fo } from "./dropdown-a59bba73.js";
19
+ import { u as vo } from "./index-d77a7336.js";
20
+ import { u as Se } from "./index-960806da.js";
21
+ import { c as _o } from "./castArray-7741a212.js";
20
22
  import "./index-2e331d74.js";
21
- import "./use-global-config-7bfbe48c.js";
23
+ import "./use-global-config-b5e9d3d5.js";
24
+ import "./index-e5566b94.js";
22
25
  import "./index-657047bb.js";
23
- import "./vnode-b62d0045.js";
24
- import "./scroll-0a48995c.js";
25
- import "./_initCloneObject-c477c74d.js";
26
+ import "./vnode-5ddb7ed1.js";
27
+ import "./scroll-679bd6bf.js";
28
+ import "./_initCloneObject-eaef9418.js";
26
29
  import "./typescript-7ae59c4c.js";
27
- import "./index-cbbd78b4.js";
28
- import "./config-provider-49c17381.js";
30
+ import "./index-d91dc23f.js";
31
+ import "./config-provider-b16efd62.js";
29
32
  const wo = Be({
30
33
  style: { type: ie([String, Array, Object]) },
31
34
  currentTabId: {
@@ -85,7 +88,7 @@ const wo = Be({
85
88
  emits: [ye, "entryFocus"],
86
89
  setup(e, { emit: c }) {
87
90
  var m;
88
- const s = y((m = e.currentTabId || e.defaultCurrentTabId) != null ? m : null), f = y(!1), u = y(!1), i = y(), { getItems: d } = P(fe, void 0), w = k(() => [
91
+ const s = y((m = e.currentTabId || e.defaultCurrentTabId) != null ? m : null), f = y(!1), u = y(!1), i = y(), { getItems: d } = P(fe, void 0), w = T(() => [
89
92
  {
90
93
  outline: "none"
91
94
  },
@@ -121,9 +124,9 @@ const wo = Be({
121
124
  c("entryFocus", ..._);
122
125
  };
123
126
  Q(ve, {
124
- currentTabbedId: Ye(s),
127
+ currentTabbedId: ze(s),
125
128
  loop: W(e, "loop"),
126
- tabIndex: k(() => h(f) ? -1 : 0),
129
+ tabIndex: T(() => h(f) ? -1 : 0),
127
130
  rovingFocusGroupRef: i,
128
131
  rovingFocusGroupRootStyle: w,
129
132
  orientation: W(e, "orientation"),
@@ -133,7 +136,7 @@ const wo = Be({
133
136
  onBlur: n,
134
137
  onFocus: a,
135
138
  onMousedown: o
136
- }), He(() => e.currentTabId, (_) => {
139
+ }), qe(() => e.currentTabId, (_) => {
137
140
  s.value = _ ?? null;
138
141
  }), no(i, Ie, p);
139
142
  }
@@ -142,18 +145,18 @@ function ho(e, c, m, s, f, u) {
142
145
  return K(e.$slots, "default");
143
146
  }
144
147
  var Ro = /* @__PURE__ */ L($o, [["render", ho], ["__file", "roving-focus-group-impl.vue"]]);
145
- const To = z({
148
+ const ko = z({
146
149
  name: "ElRovingFocusGroup",
147
150
  components: {
148
151
  ElFocusGroupCollection: go,
149
152
  ElRovingFocusGroupImpl: Ro
150
153
  }
151
154
  });
152
- function ko(e, c, m, s, f, u) {
155
+ function To(e, c, m, s, f, u) {
153
156
  const i = R("el-roving-focus-group-impl"), d = R("el-focus-group-collection");
154
157
  return C(), D(d, null, {
155
158
  default: l(() => [
156
- t(i, Je(je(e.$attrs)), {
159
+ t(i, Ye(He(e.$attrs)), {
157
160
  default: l(() => [
158
161
  K(e.$slots, "default")
159
162
  ]),
@@ -163,7 +166,7 @@ function ko(e, c, m, s, f, u) {
163
166
  _: 3
164
167
  });
165
168
  }
166
- var So = /* @__PURE__ */ L(To, [["render", ko], ["__file", "roving-focus-group.vue"]]);
169
+ var So = /* @__PURE__ */ L(ko, [["render", To], ["__file", "roving-focus-group.vue"]]);
167
170
  const ae = Symbol("elDropdown"), Ne = "elDropdown", { ButtonGroup: Do } = J, No = z({
168
171
  name: "ElDropdown",
169
172
  components: {
@@ -171,18 +174,18 @@ const ae = Symbol("elDropdown"), Ne = "elDropdown", { ButtonGroup: Do } = J, No
171
174
  ElButtonGroup: Do,
172
175
  ElScrollbar: oo,
173
176
  ElDropdownCollection: so,
174
- ElTooltip: Le,
177
+ ElTooltip: Ue,
175
178
  ElRovingFocusGroup: So,
176
- ElOnlyChild: ze,
177
- ElIcon: ue,
178
- ArrowDown: Ee
179
+ ElOnlyChild: Ge,
180
+ ElIcon: ce,
181
+ ArrowDown: $e
179
182
  },
180
183
  props: ro,
181
184
  emits: ["visible-change", "click", "command"],
182
185
  setup(e, { emit: c }) {
183
- const m = Pe(), s = de("dropdown"), { t: f } = vo(), u = y(), i = y(), d = y(), w = y(), b = y(null), r = y(null), o = y(!1), a = k(() => ({
186
+ const m = Ce(), s = ue("dropdown"), { t: f } = vo(), u = y(), i = y(), d = y(), w = y(), b = y(null), r = y(null), o = y(!1), a = T(() => ({
184
187
  maxHeight: Me(e.maxHeight)
185
- })), n = k(() => [s.m(F.value)]), p = k(() => _o(e.trigger)), _ = ke().value, g = k(() => e.id || _);
188
+ })), n = T(() => [s.m(F.value)]), p = T(() => _o(e.trigger)), _ = Se().value, g = T(() => e.id || _);
186
189
  function v() {
187
190
  var E;
188
191
  (E = d.value) == null || E.onClose(void 0, 0);
@@ -225,7 +228,7 @@ const ae = Symbol("elDropdown"), Ne = "elDropdown", { ButtonGroup: Do } = J, No
225
228
  }
226
229
  return Q(ae, {
227
230
  contentRef: w,
228
- role: k(() => e.role),
231
+ role: T(() => e.role),
229
232
  triggerId: g,
230
233
  isUsingKeyboard: o,
231
234
  onItemEnter: N,
@@ -304,7 +307,7 @@ function Oo(e, c, m, s, f, u) {
304
307
  onBeforeShow: e.handleBeforeShowTooltip,
305
308
  onShow: e.handleShowTooltip,
306
309
  onBeforeHide: e.handleBeforeHideTooltip
307
- }, We({
310
+ }, Je({
308
311
  content: l(() => [
309
312
  t(r, {
310
313
  ref: "scrollbar",
@@ -410,7 +413,7 @@ const Ko = z({
410
413
  },
411
414
  emits: ["mousedown", "focus", "keydown"],
412
415
  setup(e, { emit: c }) {
413
- const { currentTabbedId: m, loop: s, onItemFocus: f, onItemShiftTab: u } = P(ve, void 0), { getItems: i } = P(fe, void 0), d = ke(), w = y(), b = V((n) => {
416
+ const { currentTabbedId: m, loop: s, onItemFocus: f, onItemShiftTab: u } = P(ve, void 0), { getItems: i } = P(fe, void 0), d = Se(), w = y(), b = V((n) => {
414
417
  c("mousedown", n);
415
418
  }, (n) => {
416
419
  e.focusable ? f(h(d)) : n.preventDefault();
@@ -445,14 +448,14 @@ const Ko = z({
445
448
  break;
446
449
  }
447
450
  }
448
- ce(() => {
451
+ de(() => {
449
452
  _e(F);
450
453
  });
451
454
  }
452
- }), a = k(() => m.value === h(d));
455
+ }), a = T(() => m.value === h(d));
453
456
  return Q(De, {
454
457
  rovingFocusGroupItemRef: w,
455
- tabIndex: k(() => h(a) ? 0 : -1),
458
+ tabIndex: T(() => h(a) ? 0 : -1),
456
459
  handleMousedown: b,
457
460
  handleFocus: r,
458
461
  handleKeydown: o
@@ -481,18 +484,18 @@ var Mo = /* @__PURE__ */ L(Ko, [["render", Bo], ["__file", "roving-focus-item.vu
481
484
  const Ao = z({
482
485
  name: "DropdownItemImpl",
483
486
  components: {
484
- ElIcon: ue
487
+ ElIcon: ce
485
488
  },
486
- props: Se,
489
+ props: Te,
487
490
  emits: ["pointermove", "pointerleave", "click", "clickimpl"],
488
491
  setup(e, { emit: c }) {
489
- const m = de("dropdown"), { role: s } = P(ae, void 0), { collectionItemRef: f } = P(ao, void 0), { collectionItemRef: u } = P(yo, void 0), {
492
+ const m = ue("dropdown"), { role: s } = P(ae, void 0), { collectionItemRef: f } = P(ao, void 0), { collectionItemRef: u } = P(yo, void 0), {
490
493
  rovingFocusGroupItemRef: i,
491
494
  tabIndex: d,
492
495
  handleFocus: w,
493
496
  handleKeydown: b,
494
497
  handleMousedown: r
495
- } = P(De, void 0), o = he(f, u, i), a = k(() => s.value === "menu" ? "menuitem" : s.value === "navigation" ? "link" : "button"), n = V((p) => {
498
+ } = P(De, void 0), o = he(f, u, i), a = T(() => s.value === "menu" ? "menuitem" : s.value === "navigation" ? "link" : "button"), n = V((p) => {
496
499
  if ([S.enter, S.numpadEnter, S.space].includes(p.code))
497
500
  return p.preventDefault(), p.stopImmediatePropagation(), c("clickimpl", p), !0;
498
501
  }, b);
@@ -512,7 +515,7 @@ const Ao = z({
512
515
  });
513
516
  function Uo(e, c, m, s, f, u) {
514
517
  const i = R("el-icon");
515
- return C(), M(Fe, null, [
518
+ return C(), M(Pe, null, [
516
519
  e.divided ? (C(), M("li", {
517
520
  key: 0,
518
521
  role: "separator",
@@ -532,7 +535,7 @@ function Uo(e, c, m, s, f, u) {
532
535
  }), [
533
536
  e.icon ? (C(), D(i, { key: 0 }, {
534
537
  default: l(() => [
535
- (C(), D(Ze(e.icon)))
538
+ (C(), D(je(e.icon)))
536
539
  ]),
537
540
  _: 1
538
541
  })) : oe("v-if", !0),
@@ -542,7 +545,7 @@ function Uo(e, c, m, s, f, u) {
542
545
  }
543
546
  var Go = /* @__PURE__ */ L(Ao, [["render", Uo], ["__file", "dropdown-item-impl.vue"]]);
544
547
  const Oe = () => {
545
- const e = P(Ne, {}), c = k(() => e == null ? void 0 : e.dropdownSize);
548
+ const e = P(Ne, {}), c = T(() => e == null ? void 0 : e.dropdownSize);
546
549
  return {
547
550
  elDropdown: e,
548
551
  _elDropdownSize: c
@@ -555,10 +558,10 @@ const Oe = () => {
555
558
  ElDropdownItemImpl: Go
556
559
  },
557
560
  inheritAttrs: !1,
558
- props: Se,
561
+ props: Te,
559
562
  emits: ["pointermove", "pointerleave", "click"],
560
563
  setup(e, { emit: c, attrs: m }) {
561
- const { elDropdown: s } = Oe(), f = Pe(), u = y(null), i = k(() => {
564
+ const { elDropdown: s } = Oe(), f = Ce(), u = y(null), i = T(() => {
562
565
  var n, p;
563
566
  return (p = (n = h(u)) == null ? void 0 : n.textContent) != null ? p : "";
564
567
  }), { onItemEnter: d, onItemLeave: w } = P(ae, void 0), b = V((n) => (c("pointermove", n), n.defaultPrevented), be((n) => {
@@ -580,7 +583,7 @@ const Oe = () => {
580
583
  return;
581
584
  }
582
585
  (p = s == null ? void 0 : s.hideOnClick) != null && p.value && ((_ = s.handleClick) == null || _.call(s)), (g = s.commandHandler) == null || g.call(s, e.command, f, n);
583
- }), a = k(() => ({ ...e, ...m }));
586
+ }), a = T(() => ({ ...e, ...m }));
584
587
  return {
585
588
  handleClick: o,
586
589
  handlePointerMove: b,
@@ -624,14 +627,14 @@ const qo = z({
624
627
  name: "ElDropdownMenu",
625
628
  props: co,
626
629
  setup(e) {
627
- const c = de("dropdown"), { _elDropdownSize: m } = Oe(), s = m.value, { focusTrapRef: f, onKeydown: u } = P(qe, void 0), { contentRef: i, role: d, triggerId: w } = P(ae, void 0), { collectionRef: b, getItems: r } = P(po, void 0), {
630
+ const c = ue("dropdown"), { _elDropdownSize: m } = Oe(), s = m.value, { focusTrapRef: f, onKeydown: u } = P(Le, void 0), { contentRef: i, role: d, triggerId: w } = P(ae, void 0), { collectionRef: b, getItems: r } = P(po, void 0), {
628
631
  rovingFocusGroupRef: o,
629
632
  rovingFocusGroupRootStyle: a,
630
633
  tabIndex: n,
631
634
  onBlur: p,
632
635
  onFocus: _,
633
636
  onMousedown: g
634
- } = P(ve, void 0), { collectionRef: v } = P(fe, void 0), I = k(() => [c.b("menu"), c.bm("menu", s == null ? void 0 : s.value)]), B = he(i, b, f, o, v), F = V((N) => {
637
+ } = P(ve, void 0), { collectionRef: v } = P(fe, void 0), I = T(() => [c.b("menu"), c.bm("menu", s == null ? void 0 : s.value)]), B = he(i, b, f, o, v), F = V((N) => {
635
638
  var U;
636
639
  (U = e.onKeydown) == null || U.call(e, N);
637
640
  }, (N) => {
@@ -662,7 +665,7 @@ function Yo(e, c, m, s, f, u) {
662
665
  return C(), M("ul", {
663
666
  ref: e.dropdownListWrapperRef,
664
667
  class: X(e.dropdownKls),
665
- style: Qe(e.rovingFocusGroupRootStyle),
668
+ style: We(e.rovingFocusGroupRootStyle),
666
669
  tabindex: -1,
667
670
  role: e.role,
668
671
  "aria-labelledby": e.triggerId,
@@ -678,7 +681,7 @@ var Ke = /* @__PURE__ */ L(qo, [["render", Yo], ["__file", "dropdown-menu.vue"]]
678
681
  const Ho = Ae(Vo, {
679
682
  DropdownItem: Ve,
680
683
  DropdownMenu: Ke
681
- }), Jo = Ce(Ve), jo = Ce(Ke);
684
+ }), Jo = Ee(Ve), jo = Ee(Ke);
682
685
  const Wo = { class: "mobile" }, Zo = {
683
686
  key: 0,
684
687
  class: "get-button disabled"
@@ -728,11 +731,11 @@ const Wo = { class: "mobile" }, Zo = {
728
731
  };
729
732
  return (n, p) => {
730
733
  const _ = Re, g = J, v = re, I = le, B = se, F = te;
731
- return C(), M(Fe, null, [
734
+ return C(), M(Pe, null, [
732
735
  ne("div", Wo, [
733
736
  h(m).mobile ? (C(), D(_, { key: 0 }, {
734
737
  default: l(() => [
735
- T(Z(h(m).mobile), 1)
738
+ k(Z(h(m).mobile), 1)
736
739
  ]),
737
740
  _: 1
738
741
  })) : oe("", !0),
@@ -741,7 +744,7 @@ const Wo = { class: "mobile" }, Zo = {
741
744
  onClick: o
742
745
  }, {
743
746
  default: l(() => [
744
- T(Z(h(m).mobile ? "更换手机号" : "立即绑定"), 1)
747
+ k(Z(h(m).mobile ? "更换手机号" : "立即绑定"), 1)
745
748
  ]),
746
749
  _: 1
747
750
  })
@@ -761,7 +764,7 @@ const Wo = { class: "mobile" }, Zo = {
761
764
  onClick: p[2] || (p[2] = ($) => s.value = !1)
762
765
  }, {
763
766
  default: l(() => [
764
- T(" 取消 ")
767
+ k(" 取消 ")
765
768
  ]),
766
769
  _: 1
767
770
  }),
@@ -770,7 +773,7 @@ const Wo = { class: "mobile" }, Zo = {
770
773
  onClick: a
771
774
  }, {
772
775
  default: l(() => [
773
- T(" 确认 ")
776
+ k(" 确认 ")
774
777
  ]),
775
778
  _: 1
776
779
  })
@@ -888,7 +891,7 @@ const en = {
888
891
  onClick: r[2] || (r[2] = (v) => f.value = !1)
889
892
  }, {
890
893
  default: l(() => [
891
- T(" 取消 ")
894
+ k(" 取消 ")
892
895
  ]),
893
896
  _: 1
894
897
  }),
@@ -897,7 +900,7 @@ const en = {
897
900
  onClick: w
898
901
  }, {
899
902
  default: l(() => [
900
- T(" 确认 ")
903
+ k(" 确认 ")
901
904
  ]),
902
905
  _: 1
903
906
  })
@@ -915,7 +918,7 @@ const en = {
915
918
  default: l(() => [
916
919
  t(o, null, {
917
920
  default: l(() => [
918
- T(Z(h(s).username), 1)
921
+ k(Z(h(s).username), 1)
919
922
  ]),
920
923
  _: 1
921
924
  })
@@ -990,7 +993,7 @@ const nn = {
990
993
  Object.assign(d, {
991
994
  newPassword: "",
992
995
  newPassword2: ""
993
- }), u.value = !0, ce(() => {
996
+ }), u.value = !0, de(() => {
994
997
  var o, a;
995
998
  (o = w.newPassword) != null && o.length || (w.newPassword = (a = m.value) == null ? void 0 : a.ruleFormPassword);
996
999
  });
@@ -1012,7 +1015,7 @@ const nn = {
1012
1015
  onClick: a[6] || (a[6] = (I) => u.value = !1)
1013
1016
  }, {
1014
1017
  default: l(() => [
1015
- T(" 取消 ")
1018
+ k(" 取消 ")
1016
1019
  ]),
1017
1020
  _: 1
1018
1021
  }),
@@ -1021,7 +1024,7 @@ const nn = {
1021
1024
  onClick: a[7] || (a[7] = (I) => r(i.value))
1022
1025
  }, {
1023
1026
  default: l(() => [
1024
- T(" 确认 ")
1027
+ k(" 确认 ")
1025
1028
  ]),
1026
1029
  _: 1
1027
1030
  })
@@ -1036,7 +1039,7 @@ const nn = {
1036
1039
  "hide-required-asterisk": "",
1037
1040
  "validate-on-rule-change": !1,
1038
1041
  onSubmit: a[4] || (a[4] = H((I) => r(i.value), ["prevent"])),
1039
- onKeyup: a[5] || (a[5] = $e((I) => r(i.value), ["enter", "native"]))
1042
+ onKeyup: a[5] || (a[5] = Fe((I) => r(i.value), ["enter", "native"]))
1040
1043
  }, {
1041
1044
  default: l(() => [
1042
1045
  t(p, {
@@ -1054,7 +1057,7 @@ const nn = {
1054
1057
  }),
1055
1058
  onBlur: a[2] || (a[2] = (I) => b.value = !1)
1056
1059
  }, null, 8, ["modelValue"]),
1057
- t(Te, {
1060
+ t(ke, {
1058
1061
  ref_key: "PasswordPromptRef",
1059
1062
  ref: m,
1060
1063
  value: d.newPassword,
@@ -1118,7 +1121,7 @@ const tn = {
1118
1121
  password: "",
1119
1122
  newPassword: "",
1120
1123
  newPassword2: ""
1121
- }), f.value = !0, ce(() => {
1124
+ }), f.value = !0, de(() => {
1122
1125
  var r, o;
1123
1126
  (r = d.newPassword) != null && r.length || (d.newPassword = (o = s.value) == null ? void 0 : o.ruleFormPassword);
1124
1127
  });
@@ -1140,7 +1143,7 @@ const tn = {
1140
1143
  onClick: o[7] || (o[7] = (v) => f.value = !1)
1141
1144
  }, {
1142
1145
  default: l(() => [
1143
- T(" 取消 ")
1146
+ k(" 取消 ")
1144
1147
  ]),
1145
1148
  _: 1
1146
1149
  }),
@@ -1149,7 +1152,7 @@ const tn = {
1149
1152
  onClick: o[8] || (o[8] = (v) => b(u.value))
1150
1153
  }, {
1151
1154
  default: l(() => [
1152
- T(" 确认 ")
1155
+ k(" 确认 ")
1153
1156
  ]),
1154
1157
  _: 1
1155
1158
  })
@@ -1164,7 +1167,7 @@ const tn = {
1164
1167
  "hide-required-asterisk": "",
1165
1168
  "validate-on-rule-change": !1,
1166
1169
  onSubmit: o[5] || (o[5] = H((v) => b(u.value), ["prevent"])),
1167
- onKeyup: o[6] || (o[6] = $e((v) => b(u.value), ["enter", "native"]))
1170
+ onKeyup: o[6] || (o[6] = Fe((v) => b(u.value), ["enter", "native"]))
1168
1171
  }, {
1169
1172
  default: l(() => [
1170
1173
  t(n, {
@@ -1196,7 +1199,7 @@ const tn = {
1196
1199
  }),
1197
1200
  onBlur: o[3] || (o[3] = (v) => w.value = !1)
1198
1201
  }, null, 8, ["modelValue"]),
1199
- t(Te, {
1202
+ t(ke, {
1200
1203
  ref_key: "PasswordPromptRef",
1201
1204
  ref: s,
1202
1205
  value: i.newPassword,
@@ -1247,7 +1250,7 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
1247
1250
  eo(r, o), i("loginout");
1248
1251
  };
1249
1252
  return Q("userData", u), (r, o) => {
1250
- const a = ue, n = Jo, p = jo, _ = Ho;
1253
+ const a = ce, n = Jo, p = jo, _ = Ho;
1251
1254
  return C(), M("div", ln, [
1252
1255
  u ? (C(), D(_, {
1253
1256
  key: 0,
@@ -1264,7 +1267,7 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
1264
1267
  })
1265
1268
  }, {
1266
1269
  default: l(() => [
1267
- T("设置资料")
1270
+ k("设置资料")
1268
1271
  ]),
1269
1272
  _: 1
1270
1273
  }),
@@ -1276,7 +1279,7 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
1276
1279
  })
1277
1280
  }, {
1278
1281
  default: l(() => [
1279
- T(" 设置密码 ")
1282
+ k(" 设置密码 ")
1280
1283
  ]),
1281
1284
  _: 1
1282
1285
  })) : (C(), D(n, {
@@ -1287,13 +1290,13 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
1287
1290
  })
1288
1291
  }, {
1289
1292
  default: l(() => [
1290
- T(" 修改密码 ")
1293
+ k(" 修改密码 ")
1291
1294
  ]),
1292
1295
  _: 1
1293
1296
  })),
1294
1297
  t(n, { onClick: b }, {
1295
1298
  default: l(() => [
1296
- T("退出登录")
1299
+ k("退出登录")
1297
1300
  ]),
1298
1301
  _: 1
1299
1302
  })
@@ -1305,14 +1308,14 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
1305
1308
  ne("div", sn, [
1306
1309
  t(a, { class: "user-msg-icon" }, {
1307
1310
  default: l(() => [
1308
- t(h(Ue))
1311
+ t(h(Ze))
1309
1312
  ]),
1310
1313
  _: 1
1311
1314
  }),
1312
1315
  ne("span", null, Z(u.nickName || u.username), 1),
1313
1316
  t(a, { class: "user-msg-arrow" }, {
1314
1317
  default: l(() => [
1315
- t(h(Ee))
1318
+ t(h($e))
1316
1319
  ]),
1317
1320
  _: 1
1318
1321
  })
@@ -1324,10 +1327,10 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
1324
1327
  class: "user-login",
1325
1328
  onClick: w
1326
1329
  }, [
1327
- T(" 前往登录 "),
1330
+ k(" 前往登录 "),
1328
1331
  t(a, { class: "user-login-icon" }, {
1329
1332
  default: l(() => [
1330
- t(h(Ge))
1333
+ t(h(Qe))
1331
1334
  ]),
1332
1335
  _: 1
1333
1336
  })
@@ -1347,11 +1350,11 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
1347
1350
  ]);
1348
1351
  };
1349
1352
  }
1350
- }, an = /* @__PURE__ */ me(rn, [["__scopeId", "data-v-f2b88262"]]), An = {
1353
+ }, an = /* @__PURE__ */ me(rn, [["__scopeId", "data-v-f2b88262"]]), Ln = {
1351
1354
  install(e) {
1352
1355
  e.component("st-user", an);
1353
1356
  }
1354
1357
  };
1355
1358
  export {
1356
- An as default
1359
+ Ln as default
1357
1360
  };
@@ -1,3 +1,3 @@
1
- "use strict";const N=require("./base-7ba08794.cjs"),I=require("./el-dialog-ea480083.cjs");require("./el-overlay-60bc5a02.cjs");require("./el-tooltip-0ea8fbf8.cjs");const D=require("./el-popper-1dd8f5b4.cjs"),L=require("./el-button-08310c06.cjs"),z=require("./el-input-b04b5bfc.cjs");require("./el-tag-d59f3463.cjs");const S=require("./el-select-5fd77a96.cjs");require("./el-scrollbar-bc3f790d.cjs");const e=require("vue"),F=require("./el-autocomplete-609ac86d.cjs"),U=require("./index-8901a38c.cjs"),w=require("./_plugin-vue_export-helper-f246444f.cjs"),q=require("./el-message-05cd85bf.cjs");require("./use-form-common-props-41182853.cjs");require("./index-c30cf7f9.cjs");require("./index-f1c702f6.cjs");require("./vnode-8cb31692.cjs");require("./scroll-19533c53.cjs");require("./use-global-config-dc5527e8.cjs");require("./index-eea0bcb3.cjs");require("./typescript-b63f8e83.cjs");require("./index-d8294b1a.cjs");require("./index-ae6c9d97.cjs");require("./index-a206f6eb.cjs");require("./castArray-efa457a5.cjs");require("./debounce-4aa22feb.cjs");require("./config-provider-18c0a68a.cjs");const j={class:"variety-auto-complete"},A={key:0},M={class:"label"},P={__name:"VarietySelect",props:{size:{type:String,default:"default"},placeholder:{type:String,default:"请输入品种名称或代码"},labelShowEnable:{type:Boolean,default:!0},selectClearEnable:{type:Boolean,default:!0}},emits:["select","change"],setup(u,{emit:B}){const C=e.inject("stConfig"),g=B,d=u,p=e.ref(""),k=async(i,m)=>{if(i===""||i==="null")m([]);else{const n={keyWord:i,pageNum:1,pageSize:999,userId:U.V("id"),hotSearchFlag:1},{body:o}=await C.request.post("/common/qt/getFeatureInfosByPage",n),f=o.list.map(({code:c,featureName:r})=>({label:`${c}   ${r}`,value:c}));m(f)}},y=({label:i,value:m})=>{const n=i.split(" ").at(-1);g("select",{name:n,code:m}),d.selectClearEnable&&(p.value="")},x=i=>{g("change",i)};return(i,m)=>{const n=F.ElAutocomplete;return e.openBlock(),e.createElementBlock("div",j,[u.labelShowEnable?(e.openBlock(),e.createElementBlock("span",A,"品种搜索:")):e.createCommentVNode("",!0),e.createVNode(n,{modelValue:p.value,"onUpdate:modelValue":m[0]||(m[0]=o=>p.value=o),clearable:"",size:d.size,placeholder:d.placeholder,"fetch-suggestions":k,onSelect:y,onChange:x},{default:e.withCtx(({item:o})=>[e.createElementVNode("div",M,e.toDisplayString(o.label),1)]),_:1},8,["modelValue","size","placeholder"])])}}},T=w._export_sfc(P,[["__scopeId","data-v-d433c4b8"]]);const O=u=>(e.pushScopeId("data-v-e4f6c06a"),u=u(),e.popScopeId(),u),H={class:"custom-header"},R={class:"left"},W=O(()=>e.createElementVNode("span",null," 选择变量 ",-1)),G={class:"right"},J={class:"custom-body"},K={class:"config-list"},Q={class:"config-item"},X={key:0},Y={key:0},Z={key:1},ee={key:0},te={style:{"max-width":"820px"}},le={style:{"white-space":"pre-line"}},oe={__name:"index",props:{useCase:{type:String,default:"1"}},setup(u,{expose:B}){const C=e.inject("stConfig"),g=u,d=e.ref(null),p=e.ref(!1),k=e.ref(null),y=e.ref([]),x=e.computed(()=>{var n;return((n=y.value.find(o=>o.varName===k.value))==null?void 0:n.formatList)??[]}),i=n=>n.replace(/^\[|\]$/g,"").split("],[").map(c=>{const r=c.replace(/\[|\]/g,""),[b,_]=r.split(",");return{label:b.trim(),value:_.trim()}}),m=n=>{const o=[];for(let V=0;V<n.length;V++){const a=n[V];switch(console.log(a),a.vtype){case"text":{o.push(a.param);break}default:{if(!a.modelValue)return q.ElMessage.error("请检查插入格式内是否填写完整");let t=a.modelValue;a.prefix&&(t=`${a.prefix}${t}`),a.suffix&&(t=`${t}${a.suffix}`),o.push(t);break}}}if(!d.value)return q.ElMessage.error("未检测到编辑器实例");const f=o.join("_"),c=d.value.getInstance(),r=c.getPosition(),_=d.value.getValue().split(`
1
+ "use strict";require("./base-ef747d02.cjs");const I=require("./el-dialog-ae86edb8.cjs");require("./el-overlay-9e34965f.cjs");require("./el-tooltip-0ea8fbf8.cjs");const D=require("./el-popper-b6c99b28.cjs"),L=require("./el-button-eec58cff.cjs"),z=require("./el-input-7fd293af.cjs");require("./el-tag-a33c4b22.cjs");const q=require("./el-select-d8d91db1.cjs");require("./el-scrollbar-bc3f790d.cjs");const e=require("vue"),N=require("./index-098c2447.cjs"),F=require("./el-autocomplete-a07e9439.cjs"),U=require("./index-8901a38c.cjs"),w=require("./_plugin-vue_export-helper-f246444f.cjs"),S=require("./el-message-5e6a6be9.cjs");require("./use-form-common-props-fd9b61a0.cjs");require("./index-9780a537.cjs");require("./index-bb833443.cjs");require("./index-f1c702f6.cjs");require("./vnode-b906ae6d.cjs");require("./scroll-b108dabd.cjs");require("./use-global-config-30d7d8ce.cjs");require("./index-c108567d.cjs");require("./index-eea0bcb3.cjs");require("./typescript-b63f8e83.cjs");require("./index-11547a0c.cjs");require("./index-298075cf.cjs");require("./index-f3562b52.cjs");require("./castArray-35947698.cjs");require("./debounce-62f5b6e8.cjs");require("./config-provider-a584d81e.cjs");const j={class:"variety-auto-complete"},A={key:0},M={class:"label"},P={__name:"VarietySelect",props:{size:{type:String,default:"default"},placeholder:{type:String,default:"请输入品种名称或代码"},labelShowEnable:{type:Boolean,default:!0},selectClearEnable:{type:Boolean,default:!0}},emits:["select","change"],setup(u,{emit:b}){const C=e.inject("stConfig"),g=b,d=u,p=e.ref(""),k=async(i,m)=>{if(i===""||i==="null")m([]);else{const n={keyWord:i,pageNum:1,pageSize:999,userId:U.V("id"),hotSearchFlag:1},{body:o}=await C.request.post("/common/qt/getFeatureInfosByPage",n),f=o.list.map(({code:c,featureName:r})=>({label:`${c}   ${r}`,value:c}));m(f)}},y=({label:i,value:m})=>{const n=i.split(" ").at(-1);g("select",{name:n,code:m}),d.selectClearEnable&&(p.value="")},x=i=>{g("change",i)};return(i,m)=>{const n=F.ElAutocomplete;return e.openBlock(),e.createElementBlock("div",j,[u.labelShowEnable?(e.openBlock(),e.createElementBlock("span",A,"品种搜索:")):e.createCommentVNode("",!0),e.createVNode(n,{modelValue:p.value,"onUpdate:modelValue":m[0]||(m[0]=o=>p.value=o),clearable:"",size:d.size,placeholder:d.placeholder,"fetch-suggestions":k,onSelect:y,onChange:x},{default:e.withCtx(({item:o})=>[e.createElementVNode("div",M,e.toDisplayString(o.label),1)]),_:1},8,["modelValue","size","placeholder"])])}}},T=w._export_sfc(P,[["__scopeId","data-v-d433c4b8"]]);const O=u=>(e.pushScopeId("data-v-e4f6c06a"),u=u(),e.popScopeId(),u),H={class:"custom-header"},R={class:"left"},W=O(()=>e.createElementVNode("span",null," 选择变量 ",-1)),G={class:"right"},J={class:"custom-body"},K={class:"config-list"},Q={class:"config-item"},X={key:0},Y={key:0},Z={key:1},ee={key:0},te={style:{"max-width":"820px"}},le={style:{"white-space":"pre-line"}},oe={__name:"index",props:{useCase:{type:String,default:"1"}},setup(u,{expose:b}){const C=e.inject("stConfig"),g=u,d=e.ref(null),p=e.ref(!1),k=e.ref(null),y=e.ref([]),x=e.computed(()=>{var n;return((n=y.value.find(o=>o.varName===k.value))==null?void 0:n.formatList)??[]}),i=n=>n.replace(/^\[|\]$/g,"").split("],[").map(c=>{const r=c.replace(/\[|\]/g,""),[B,_]=r.split(",");return{label:B.trim(),value:_.trim()}}),m=n=>{const o=[];for(let V=0;V<n.length;V++){const a=n[V];switch(console.log(a),a.vtype){case"text":{o.push(a.param);break}default:{if(!a.modelValue)return S.ElMessage.error("请检查插入格式内是否填写完整");let t=a.modelValue;a.prefix&&(t=`${a.prefix}${t}`),a.suffix&&(t=`${t}${a.suffix}`),o.push(t);break}}}if(!d.value)return S.ElMessage.error("未检测到编辑器实例");const f=o.join("_"),c=d.value.getInstance(),r=c.getPosition(),_=d.value.getValue().split(`
2
2
  `);if(r.lineNumber<=_.length){const V=r.lineNumber-1,a=_[V],t=r.column-1,h=t>0?a[t-1]:"",l=t<a.length?a[t]:"";let v=f;h&&h!==" "&&!/[\s({[ ]/.test(h)&&(v=" "+v),l&&l!==" "&&!/[\s)}\]]/.test(l)&&(v=v+" ");const s=a.substring(0,t)+v+a.substring(t);_[V]=s;const E=_.join(`
3
- `);d.value.setValue(E);const $=r.column+v.length;c.setPosition({lineNumber:r.lineNumber,column:$}),c.focus()}};return e.onMounted(async()=>{const{body:n}=await C.request.post("/common/conf/queryAllBackVariables",{useCase:g.useCase});y.value=n??[]}),B({open:n=>{d.value=n,p.value=!0},close:()=>{p.value=!1}}),(n,o)=>{const f=S.ElOption,c=S.ElSelect,r=N.ElIcon,b=z.ElInput,_=L.ElButton,V=D.ElTooltip,a=I.ElDialog;return e.openBlock(),e.createBlock(a,{"modal-class":"var-select-dialog",modelValue:p.value,"onUpdate:modelValue":o[2]||(o[2]=t=>p.value=t),"align-center":"","append-to-body":"","destroy-on-close":"",draggable:"",overflow:"",modal:!1,"modal-penetrable":!0,"show-close":!1},{header:e.withCtx(()=>[e.createElementVNode("div",H,[e.createElementVNode("div",R,[W,e.createVNode(c,{modelValue:k.value,"onUpdate:modelValue":o[0]||(o[0]=t=>k.value=t),placeholder:"选择变量",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(t,h)=>(e.openBlock(),e.createBlock(f,{key:h,label:t.varName,value:t.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",G,[e.createVNode(r,{class:"el-icon--left",onClick:o[1]||(o[1]=t=>p.value=!1)},{default:e.withCtx(()=>[e.createVNode(e.unref(N.close_default))]),_:1})])])]),default:e.withCtx(()=>[e.createElementVNode("div",J,[x.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(x.value,(t,h)=>(e.openBlock(),e.createElementBlock("div",{class:"format-item",key:h},[e.createElementVNode("span",null,"格式"+e.toDisplayString(h+1)+":",1),e.createElementVNode("div",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.configList,(l,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Q,[l.vtype==="text"?(e.openBlock(),e.createElementBlock("span",X,e.toDisplayString(l.param),1)):e.createCommentVNode("",!0),l.vtype==="inputVariety"?(e.openBlock(),e.createBlock(T,{key:1,size:"small",placeholder:l.param,selectClearEnable:!1,labelShowEnable:!1,onSelect:({name:s,code:E})=>l.modelValue=E,onChange:s=>l.modelValue=s,style:{width:"100px"}},null,8,["placeholder","onSelect","onChange"])):e.createCommentVNode("",!0),l.vtype==="input"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[l.prefix?(e.openBlock(),e.createElementBlock("span",Y,e.toDisplayString(l.prefix),1)):e.createCommentVNode("",!0),e.createVNode(b,{modelValue:l.modelValue,"onUpdate:modelValue":s=>l.modelValue=s,placeholder:l.param,size:"small"},null,8,["modelValue","onUpdate:modelValue","placeholder"]),l.suffix?(e.openBlock(),e.createElementBlock("span",Z,e.toDisplayString(l.suffix),1)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),l.vtype==="select"?(e.openBlock(),e.createBlock(c,{key:3,modelValue:l.modelValue,"onUpdate:modelValue":s=>l.modelValue=s,placeholder:l.param,clearable:"",size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i(l.optionsStr),s=>(e.openBlock(),e.createBlock(f,{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):e.createCommentVNode("",!0)]),v!==t.configList.length-1?(e.openBlock(),e.createElementBlock("span",ee,"_")):e.createCommentVNode("",!0)],64))),256))]),e.createVNode(_,{type:"primary",plain:"",size:"small",onClick:l=>m(t.configList)},{default:e.withCtx(()=>[e.createTextVNode(" 插入变量 ")]),_:2},1032,["onClick"]),e.createVNode(V,{effect:"dark",placement:"top-start"},{content:e.withCtx(()=>[e.createElementVNode("div",te,[e.createElementVNode("span",le,e.toDisplayString(t.tip),1)])]),default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(e.unref(N.info_filled_default))]),_:1})]),_:2},1024)]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["modelValue"])}}},ne=w._export_sfc(oe,[["__scopeId","data-v-e4f6c06a"]]),ae={install(u){u.component("st-varSelectDialog",ne)}};module.exports=ae;
3
+ `);d.value.setValue(E);const $=r.column+v.length;c.setPosition({lineNumber:r.lineNumber,column:$}),c.focus()}};return e.onMounted(async()=>{const{body:n}=await C.request.post("/common/conf/queryAllBackVariables",{useCase:g.useCase});y.value=n??[]}),b({open:n=>{d.value=n,p.value=!0},close:()=>{p.value=!1}}),(n,o)=>{const f=q.ElOption,c=q.ElSelect,r=N.ElIcon,B=z.ElInput,_=L.ElButton,V=D.ElTooltip,a=I.ElDialog;return e.openBlock(),e.createBlock(a,{"modal-class":"var-select-dialog",modelValue:p.value,"onUpdate:modelValue":o[2]||(o[2]=t=>p.value=t),"align-center":"","append-to-body":"","destroy-on-close":"",draggable:"",overflow:"",modal:!1,"modal-penetrable":!0,"show-close":!1},{header:e.withCtx(()=>[e.createElementVNode("div",H,[e.createElementVNode("div",R,[W,e.createVNode(c,{modelValue:k.value,"onUpdate:modelValue":o[0]||(o[0]=t=>k.value=t),placeholder:"选择变量",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(t,h)=>(e.openBlock(),e.createBlock(f,{key:h,label:t.varName,value:t.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",G,[e.createVNode(r,{class:"el-icon--left",onClick:o[1]||(o[1]=t=>p.value=!1)},{default:e.withCtx(()=>[e.createVNode(e.unref(N.close_default))]),_:1})])])]),default:e.withCtx(()=>[e.createElementVNode("div",J,[x.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(x.value,(t,h)=>(e.openBlock(),e.createElementBlock("div",{class:"format-item",key:h},[e.createElementVNode("span",null,"格式"+e.toDisplayString(h+1)+":",1),e.createElementVNode("div",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.configList,(l,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Q,[l.vtype==="text"?(e.openBlock(),e.createElementBlock("span",X,e.toDisplayString(l.param),1)):e.createCommentVNode("",!0),l.vtype==="inputVariety"?(e.openBlock(),e.createBlock(T,{key:1,size:"small",placeholder:l.param,selectClearEnable:!1,labelShowEnable:!1,onSelect:({name:s,code:E})=>l.modelValue=E,onChange:s=>l.modelValue=s,style:{width:"100px"}},null,8,["placeholder","onSelect","onChange"])):e.createCommentVNode("",!0),l.vtype==="input"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[l.prefix?(e.openBlock(),e.createElementBlock("span",Y,e.toDisplayString(l.prefix),1)):e.createCommentVNode("",!0),e.createVNode(B,{modelValue:l.modelValue,"onUpdate:modelValue":s=>l.modelValue=s,placeholder:l.param,size:"small"},null,8,["modelValue","onUpdate:modelValue","placeholder"]),l.suffix?(e.openBlock(),e.createElementBlock("span",Z,e.toDisplayString(l.suffix),1)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),l.vtype==="select"?(e.openBlock(),e.createBlock(c,{key:3,modelValue:l.modelValue,"onUpdate:modelValue":s=>l.modelValue=s,placeholder:l.param,clearable:"",size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i(l.optionsStr),s=>(e.openBlock(),e.createBlock(f,{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):e.createCommentVNode("",!0)]),v!==t.configList.length-1?(e.openBlock(),e.createElementBlock("span",ee,"_")):e.createCommentVNode("",!0)],64))),256))]),e.createVNode(_,{type:"primary",plain:"",size:"small",onClick:l=>m(t.configList)},{default:e.withCtx(()=>[e.createTextVNode(" 插入变量 ")]),_:2},1032,["onClick"]),e.createVNode(V,{effect:"dark",placement:"top-start"},{content:e.withCtx(()=>[e.createElementVNode("div",te,[e.createElementVNode("span",le,e.toDisplayString(t.tip),1)])]),default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(e.unref(N.info_filled_default))]),_:1})]),_:2},1024)]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["modelValue"])}}},ne=w._export_sfc(oe,[["__scopeId","data-v-e4f6c06a"]]),ae={install(u){u.component("st-varSelectDialog",ne)}};module.exports=ae;