st-comp 0.0.185 → 0.0.186

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.
@@ -61507,7 +61507,7 @@ const ynt = {
61507
61507
  n.component("st-contextmenu", wnt);
61508
61508
  }
61509
61509
  };
61510
- const Snt = (n) => (Qh("data-v-8a151cf0"), n = n(), Zh(), n), xnt = { class: "custom-function" }, Dnt = { class: "func-option" }, Nnt = { class: "icons" }, Ent = { class: "custom-header" }, Lnt = { class: "left" }, Mnt = ["id"], Ant = { class: "right" }, Tnt = { style: { display: "flex", "align-items": "center", "margin-bottom": "10px" } }, knt = /* @__PURE__ */ Snt(() => /* @__PURE__ */ we("span", null, "函数名称:", -1)), Int = { class: "dialog-footer" }, Ont = {
61510
+ const Snt = (n) => (Qh("data-v-716cca00"), n = n(), Zh(), n), xnt = { class: "custom-function" }, Dnt = { class: "func-option" }, Nnt = { class: "icons" }, Ent = { class: "custom-header" }, Lnt = { class: "left" }, Mnt = ["id"], Ant = { class: "right" }, Tnt = { style: { display: "flex", "align-items": "center", "margin-bottom": "10px" } }, knt = /* @__PURE__ */ Snt(() => /* @__PURE__ */ we("span", null, "函数名称:", -1)), Int = { class: "dialog-footer" }, Ont = {
61511
61511
  __name: "index",
61512
61512
  props: {
61513
61513
  size: { type: String, default: "small" },
@@ -61565,7 +61565,7 @@ const Snt = (n) => (Qh("data-v-8a151cf0"), n = n(), Zh(), n), xnt = { class: "cu
61565
61565
  }, m = () => {
61566
61566
  if (!a.value)
61567
61567
  return Ui.error("请先选择自定义函数后, 再执行插入");
61568
- o("insert", ` ${a.value}`);
61568
+ o("insert", a.value);
61569
61569
  }, y = () => {
61570
61570
  r.value.open(i.value);
61571
61571
  };
@@ -61748,7 +61748,7 @@ const Snt = (n) => (Qh("data-v-8a151cf0"), n = n(), Zh(), n), xnt = { class: "cu
61748
61748
  ]);
61749
61749
  };
61750
61750
  }
61751
- }, Rnt = /* @__PURE__ */ si(Ont, [["__scopeId", "data-v-8a151cf0"]]), Fnt = {
61751
+ }, Rnt = /* @__PURE__ */ si(Ont, [["__scopeId", "data-v-716cca00"]]), Fnt = {
61752
61752
  install(n) {
61753
61753
  n.component("st-customFunction", Rnt);
61754
61754
  }
@@ -246332,7 +246332,7 @@ H0e({
246332
246332
  extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
246333
246333
  aliases: ["Python", "py"],
246334
246334
  firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
246335
- loader: () => import("./python-cf7a203d.js")
246335
+ loader: () => import("./python-c34eeb40.js")
246336
246336
  });
246337
246337
  /*!-----------------------------------------------------------------------------
246338
246338
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -251290,7 +251290,7 @@ const $Lt = ["innerHTML"], ULt = {
251290
251290
  };
251291
251291
  }
251292
251292
  };
251293
- const phe = (n) => (Qh("data-v-13053ba7"), n = n(), Zh(), n), qLt = { class: "factor-screen" }, KLt = { style: { "white-space": "pre-line" } }, GLt = { class: "custom-header" }, YLt = { class: "left" }, QLt = ["id"], ZLt = { class: "right" }, XLt = { class: "form-row" }, JLt = { class: "index" }, eMt = { style: { display: "flex", "align-items": "center", width: "100%", height: "24px" } }, tMt = /* @__PURE__ */ phe(() => /* @__PURE__ */ we("span", null, "~", -1)), nMt = /* @__PURE__ */ phe(() => /* @__PURE__ */ we("span", null, "&&代表and,||代表or", -1)), iMt = { class: "dialog-footer" }, rMt = {
251293
+ const phe = (n) => (Qh("data-v-b7036a88"), n = n(), Zh(), n), qLt = { class: "factor-screen" }, KLt = { style: { "white-space": "pre-line" } }, GLt = { class: "custom-header" }, YLt = { class: "left" }, QLt = ["id"], ZLt = { class: "right" }, XLt = { class: "form-row" }, JLt = { class: "index" }, eMt = { style: { display: "flex", "align-items": "center", width: "100%", height: "24px" } }, tMt = /* @__PURE__ */ phe(() => /* @__PURE__ */ we("span", null, "~", -1)), nMt = /* @__PURE__ */ phe(() => /* @__PURE__ */ we("span", null, "&&代表and,||代表or", -1)), iMt = { class: "dialog-footer" }, rMt = {
251294
251294
  __name: "index",
251295
251295
  props: /* @__PURE__ */ Lh({
251296
251296
  config: {
@@ -251473,15 +251473,18 @@ const phe = (n) => (Qh("data-v-13053ba7"), n = n(), Zh(), n), qLt = { class: "fa
251473
251473
  const _ = v, w = i.value.getInstance(), C = w.getPosition(), x = i.value.getValue().split(`
251474
251474
  `);
251475
251475
  if (C.lineNumber <= x.length) {
251476
- const D = C.lineNumber - 1, L = x[D], N = L.substring(0, C.column - 1) + _ + L.substring(C.column - 1);
251477
- x[D] = N;
251478
- const E = x.join(`
251476
+ const D = C.lineNumber - 1, L = x[D], N = C.column - 1, E = N > 0 ? L[N - 1] : "", T = N < L.length ? L[N] : "";
251477
+ let I = _;
251478
+ E && E !== " " && !/[\s({[ ]/.test(E) && (I = " " + I), T && T !== " " && !/[\s)}\]]/.test(T) && (I = I + " ");
251479
+ const B = L.substring(0, N) + I + L.substring(N);
251480
+ x[D] = B;
251481
+ const k = x.join(`
251479
251482
  `);
251480
- i.value.setValue(E);
251481
- const T = C.column + _.length;
251483
+ i.value.setValue(k);
251484
+ const A = C.column + I.length;
251482
251485
  w.setPosition({
251483
251486
  lineNumber: C.lineNumber,
251484
- column: T
251487
+ column: A
251485
251488
  }), w.focus();
251486
251489
  }
251487
251490
  };
@@ -251989,7 +251992,7 @@ const phe = (n) => (Qh("data-v-13053ba7"), n = n(), Zh(), n), qLt = { class: "fa
251989
251992
  ], 64);
251990
251993
  };
251991
251994
  }
251992
- }, oMt = /* @__PURE__ */ si(rMt, [["__scopeId", "data-v-13053ba7"]]);
251995
+ }, oMt = /* @__PURE__ */ si(rMt, [["__scopeId", "data-v-b7036a88"]]);
251993
251996
  const IS = (n) => (Qh("data-v-3e69da40"), n = n(), Zh(), n), sMt = {
251994
251997
  key: 0,
251995
251998
  class: "common-indicator"
@@ -253236,7 +253239,7 @@ const rAt = { class: "variety-auto-complete" }, oAt = { key: 0 }, sAt = { class:
253236
253239
  };
253237
253240
  }
253238
253241
  }, lAt = /* @__PURE__ */ si(aAt, [["__scopeId", "data-v-d433c4b8"]]);
253239
- const uAt = (n) => (Qh("data-v-e4459978"), n = n(), Zh(), n), cAt = { class: "custom-header" }, dAt = { class: "left" }, hAt = /* @__PURE__ */ uAt(() => /* @__PURE__ */ we("span", null, " 选择变量 ", -1)), fAt = { class: "right" }, pAt = { class: "custom-body" }, gAt = { class: "config-list" }, mAt = { class: "config-item" }, vAt = { key: 0 }, bAt = { key: 0 }, _At = { key: 1 }, yAt = { key: 0 }, wAt = { style: { "max-width": "820px" } }, CAt = { style: { "white-space": "pre-line" } }, SAt = {
253242
+ const uAt = (n) => (Qh("data-v-e4f6c06a"), n = n(), Zh(), n), cAt = { class: "custom-header" }, dAt = { class: "left" }, hAt = /* @__PURE__ */ uAt(() => /* @__PURE__ */ we("span", null, " 选择变量 ", -1)), fAt = { class: "right" }, pAt = { class: "custom-body" }, gAt = { class: "config-list" }, mAt = { class: "config-item" }, vAt = { key: 0 }, bAt = { key: 0 }, _At = { key: 1 }, yAt = { key: 0 }, wAt = { style: { "max-width": "820px" } }, CAt = { style: { "white-space": "pre-line" } }, SAt = {
253240
253243
  __name: "index",
253241
253244
  props: {
253242
253245
  useCase: {
@@ -253278,15 +253281,18 @@ const uAt = (n) => (Qh("data-v-e4459978"), n = n(), Zh(), n), cAt = { class: "cu
253278
253281
  const f = h.join("_"), p = r.value.getInstance(), g = p.getPosition(), m = r.value.getValue().split(`
253279
253282
  `);
253280
253283
  if (g.lineNumber <= m.length) {
253281
- const y = g.lineNumber - 1, v = m[y], _ = v.substring(0, g.column - 1) + f + v.substring(g.column - 1);
253282
- m[y] = _;
253283
- const w = m.join(`
253284
+ const y = g.lineNumber - 1, v = m[y], _ = g.column - 1, w = _ > 0 ? v[_ - 1] : "", C = _ < v.length ? v[_] : "";
253285
+ let S = f;
253286
+ w && w !== " " && !/[\s({[ ]/.test(w) && (S = " " + S), C && C !== " " && !/[\s)}\]]/.test(C) && (S = S + " ");
253287
+ const x = v.substring(0, _) + S + v.substring(_);
253288
+ m[y] = x;
253289
+ const D = m.join(`
253284
253290
  `);
253285
- r.value.setValue(w);
253286
- const C = g.column + f.length;
253291
+ r.value.setValue(D);
253292
+ const L = g.column + S.length;
253287
253293
  p.setPosition({
253288
253294
  lineNumber: g.lineNumber,
253289
- column: C
253295
+ column: L
253290
253296
  }), p.focus();
253291
253297
  }
253292
253298
  };
@@ -253443,7 +253449,7 @@ const uAt = (n) => (Qh("data-v-e4459978"), n = n(), Zh(), n), cAt = { class: "cu
253443
253449
  }, 8, ["modelValue"]);
253444
253450
  };
253445
253451
  }
253446
- }, xAt = /* @__PURE__ */ si(SAt, [["__scopeId", "data-v-e4459978"]]), DAt = {
253452
+ }, xAt = /* @__PURE__ */ si(SAt, [["__scopeId", "data-v-e4f6c06a"]]), DAt = {
253447
253453
  install(n) {
253448
253454
  n.component("st-varSelectDialog", xAt);
253449
253455
  }
@@ -1,4 +1,4 @@
1
- import { m as a } from "./index-5955b737.js";
1
+ import { m as a } from "./index-26fab3e5.js";
2
2
  import "vue";
3
3
  import "echarts";
4
4
  /*!-----------------------------------------------------------------------------