st-comp 0.0.184 → 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.
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +4 -3
- package/es/VarSelectDialog.cjs +3 -3
- package/es/VarSelectDialog.js +268 -265
- package/es/VarietySearch.cjs +10 -10
- package/es/VarietySearch.js +940 -937
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +6 -6
- package/lib/{index-89193973.js → index-26fab3e5.js} +26 -19
- package/lib/{python-930b6755.js → python-c34eeb40.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/CustomFunction/index.vue +1 -0
- package/packages/VarSelectDialog/index.vue +21 -2
- package/packages/VarietySearch/components/FactorScreen/index.vue +22 -2
|
@@ -61507,7 +61507,7 @@ const ynt = {
|
|
|
61507
61507
|
n.component("st-contextmenu", wnt);
|
|
61508
61508
|
}
|
|
61509
61509
|
};
|
|
61510
|
-
const Snt = (n) => (Qh("data-v-
|
|
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" },
|
|
@@ -61597,6 +61597,7 @@ const Snt = (n) => (Qh("data-v-3bed8389"), n = n(), Zh(), n), xnt = { class: "cu
|
|
|
61597
61597
|
size: n.size,
|
|
61598
61598
|
placeholder: "自定义函数",
|
|
61599
61599
|
clearable: "",
|
|
61600
|
+
filterable: "",
|
|
61600
61601
|
onChange: f,
|
|
61601
61602
|
style: nn({ width: n.selectWidth })
|
|
61602
61603
|
}, {
|
|
@@ -61747,7 +61748,7 @@ const Snt = (n) => (Qh("data-v-3bed8389"), n = n(), Zh(), n), xnt = { class: "cu
|
|
|
61747
61748
|
]);
|
|
61748
61749
|
};
|
|
61749
61750
|
}
|
|
61750
|
-
}, Rnt = /* @__PURE__ */ si(Ont, [["__scopeId", "data-v-
|
|
61751
|
+
}, Rnt = /* @__PURE__ */ si(Ont, [["__scopeId", "data-v-716cca00"]]), Fnt = {
|
|
61751
61752
|
install(n) {
|
|
61752
61753
|
n.component("st-customFunction", Rnt);
|
|
61753
61754
|
}
|
|
@@ -246331,7 +246332,7 @@ H0e({
|
|
|
246331
246332
|
extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
|
|
246332
246333
|
aliases: ["Python", "py"],
|
|
246333
246334
|
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
|
246334
|
-
loader: () => import("./python-
|
|
246335
|
+
loader: () => import("./python-c34eeb40.js")
|
|
246335
246336
|
});
|
|
246336
246337
|
/*!-----------------------------------------------------------------------------
|
|
246337
246338
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -251289,7 +251290,7 @@ const $Lt = ["innerHTML"], ULt = {
|
|
|
251289
251290
|
};
|
|
251290
251291
|
}
|
|
251291
251292
|
};
|
|
251292
|
-
const phe = (n) => (Qh("data-v-
|
|
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 = {
|
|
251293
251294
|
__name: "index",
|
|
251294
251295
|
props: /* @__PURE__ */ Lh({
|
|
251295
251296
|
config: {
|
|
@@ -251472,15 +251473,18 @@ const phe = (n) => (Qh("data-v-13053ba7"), n = n(), Zh(), n), qLt = { class: "fa
|
|
|
251472
251473
|
const _ = v, w = i.value.getInstance(), C = w.getPosition(), x = i.value.getValue().split(`
|
|
251473
251474
|
`);
|
|
251474
251475
|
if (C.lineNumber <= x.length) {
|
|
251475
|
-
const D = C.lineNumber - 1, L = x[D], N =
|
|
251476
|
-
|
|
251477
|
-
|
|
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(`
|
|
251478
251482
|
`);
|
|
251479
|
-
i.value.setValue(
|
|
251480
|
-
const
|
|
251483
|
+
i.value.setValue(k);
|
|
251484
|
+
const A = C.column + I.length;
|
|
251481
251485
|
w.setPosition({
|
|
251482
251486
|
lineNumber: C.lineNumber,
|
|
251483
|
-
column:
|
|
251487
|
+
column: A
|
|
251484
251488
|
}), w.focus();
|
|
251485
251489
|
}
|
|
251486
251490
|
};
|
|
@@ -251988,7 +251992,7 @@ const phe = (n) => (Qh("data-v-13053ba7"), n = n(), Zh(), n), qLt = { class: "fa
|
|
|
251988
251992
|
], 64);
|
|
251989
251993
|
};
|
|
251990
251994
|
}
|
|
251991
|
-
}, oMt = /* @__PURE__ */ si(rMt, [["__scopeId", "data-v-
|
|
251995
|
+
}, oMt = /* @__PURE__ */ si(rMt, [["__scopeId", "data-v-b7036a88"]]);
|
|
251992
251996
|
const IS = (n) => (Qh("data-v-3e69da40"), n = n(), Zh(), n), sMt = {
|
|
251993
251997
|
key: 0,
|
|
251994
251998
|
class: "common-indicator"
|
|
@@ -253235,7 +253239,7 @@ const rAt = { class: "variety-auto-complete" }, oAt = { key: 0 }, sAt = { class:
|
|
|
253235
253239
|
};
|
|
253236
253240
|
}
|
|
253237
253241
|
}, lAt = /* @__PURE__ */ si(aAt, [["__scopeId", "data-v-d433c4b8"]]);
|
|
253238
|
-
const uAt = (n) => (Qh("data-v-
|
|
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 = {
|
|
253239
253243
|
__name: "index",
|
|
253240
253244
|
props: {
|
|
253241
253245
|
useCase: {
|
|
@@ -253277,15 +253281,18 @@ const uAt = (n) => (Qh("data-v-e4459978"), n = n(), Zh(), n), cAt = { class: "cu
|
|
|
253277
253281
|
const f = h.join("_"), p = r.value.getInstance(), g = p.getPosition(), m = r.value.getValue().split(`
|
|
253278
253282
|
`);
|
|
253279
253283
|
if (g.lineNumber <= m.length) {
|
|
253280
|
-
const y = g.lineNumber - 1, v = m[y], _ =
|
|
253281
|
-
|
|
253282
|
-
|
|
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(`
|
|
253283
253290
|
`);
|
|
253284
|
-
r.value.setValue(
|
|
253285
|
-
const
|
|
253291
|
+
r.value.setValue(D);
|
|
253292
|
+
const L = g.column + S.length;
|
|
253286
253293
|
p.setPosition({
|
|
253287
253294
|
lineNumber: g.lineNumber,
|
|
253288
|
-
column:
|
|
253295
|
+
column: L
|
|
253289
253296
|
}), p.focus();
|
|
253290
253297
|
}
|
|
253291
253298
|
};
|
|
@@ -253442,7 +253449,7 @@ const uAt = (n) => (Qh("data-v-e4459978"), n = n(), Zh(), n), cAt = { class: "cu
|
|
|
253442
253449
|
}, 8, ["modelValue"]);
|
|
253443
253450
|
};
|
|
253444
253451
|
}
|
|
253445
|
-
}, xAt = /* @__PURE__ */ si(SAt, [["__scopeId", "data-v-
|
|
253452
|
+
}, xAt = /* @__PURE__ */ si(SAt, [["__scopeId", "data-v-e4f6c06a"]]), DAt = {
|
|
253446
253453
|
install(n) {
|
|
253447
253454
|
n.component("st-varSelectDialog", xAt);
|
|
253448
253455
|
}
|