@guihz/trading-vue-editor-tes 0.1.131 → 0.1.133
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/lib/assets/{parserTccWorker-DmpCSdS1.js → parserTccWorker-DAzUDVmL.js} +71 -71
- package/lib/assets/{scriptsRunWorker-rEE0T-Pr.js → scriptsRunWorker-Dz_sGkUg.js} +4989 -4915
- package/lib/trading-vue-editor.es.packages.js +2 -2
- package/lib/trading-vue-editor.umd.packages.mjs +1 -1
- package/package.json +1 -1
|
@@ -29185,7 +29185,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
29185
29185
|
s.nameList = this.visit(a), this._inputVarName = (o = s.nameList) == null ? void 0 : o.name;
|
|
29186
29186
|
break;
|
|
29187
29187
|
case A0.RULE_singleExpression:
|
|
29188
|
-
s.value = this.visit(a), this._inputVarName = void 0;
|
|
29188
|
+
s.value = this.visit(a), this._inputVarName && (s.value.name = this._inputVarName), this._inputVarName = void 0;
|
|
29189
29189
|
break;
|
|
29190
29190
|
}
|
|
29191
29191
|
}
|
|
@@ -31197,31 +31197,31 @@ ${this._prefixNameVar}.setCacheData("m${u}_" + ${M}, ${T})
|
|
|
31197
31197
|
}
|
|
31198
31198
|
}
|
|
31199
31199
|
_parserMethodExpression(e) {
|
|
31200
|
-
const { exprs: t, ctx: r } = e, { column:
|
|
31201
|
-
let
|
|
31202
|
-
|
|
31203
|
-
let
|
|
31204
|
-
for (const
|
|
31205
|
-
|
|
31206
|
-
const
|
|
31207
|
-
|
|
31208
|
-
}
|
|
31209
|
-
const
|
|
31210
|
-
if (
|
|
31211
|
-
const
|
|
31200
|
+
const { exprs: t, ctx: r, name: i = "" } = e, { column: s, line: o } = r.start, a = `${i}_${o}_${s}`;
|
|
31201
|
+
let u = this._isInFunc ? `$posStr + "__${a}"` : `"${a}"`;
|
|
31202
|
+
u = this._isInLoop ? `"$" + $$count${this._count} + "_$" + ${u}` : u, s === 0 && (this._dependsObj[u] = /* @__PURE__ */ new Map());
|
|
31203
|
+
let M = !1, O = [];
|
|
31204
|
+
for (const R of t) {
|
|
31205
|
+
R.hasMemberIndex && (M = !0);
|
|
31206
|
+
const T = this._parserMethodElement(R, u);
|
|
31207
|
+
O.push(T);
|
|
31208
|
+
}
|
|
31209
|
+
const _ = O.join(".");
|
|
31210
|
+
if (s === 0) {
|
|
31211
|
+
const R = this._getDepends(u);
|
|
31212
31212
|
this._codesCol[this._blockCount].push({
|
|
31213
|
-
code:
|
|
31213
|
+
code: _,
|
|
31214
31214
|
isStmtFunc: !0,
|
|
31215
|
-
depends:
|
|
31215
|
+
depends: R
|
|
31216
31216
|
});
|
|
31217
31217
|
}
|
|
31218
|
-
if (this._isInConditionalStmt &&
|
|
31219
|
-
const
|
|
31218
|
+
if (this._isInConditionalStmt && M && !this._isExperssion) {
|
|
31219
|
+
const R = `$$result_${this._preRunMemberFuncsCount}`;
|
|
31220
31220
|
this._preRunMemberFuncsCount++;
|
|
31221
|
-
const
|
|
31222
|
-
return
|
|
31221
|
+
const T = this._preRunMembersFuncs[this._blockCount] || [];
|
|
31222
|
+
return T.push(`const ${R} = ${_}`), this._preRunMembersFuncs[this._blockCount] = T, R;
|
|
31223
31223
|
}
|
|
31224
|
-
return
|
|
31224
|
+
return _;
|
|
31225
31225
|
}
|
|
31226
31226
|
_parserMethodElement(e, t) {
|
|
31227
31227
|
var M, O;
|
|
@@ -64570,7 +64570,7 @@ ${this._prefixNameVar}.setCacheData("m${u}_" + ${M}, ${T})
|
|
|
64570
64570
|
s.nameList = this.visit(u), this._inputVarName = (o = s.nameList) == null ? void 0 : o.name;
|
|
64571
64571
|
break;
|
|
64572
64572
|
case M0.RULE_singleExpression:
|
|
64573
|
-
s.value = this.visit(u), this._inputVarName = void 0, ((a = s.value) == null ? void 0 : a.type) === "plot" && (s.nameList.declare = void 0);
|
|
64573
|
+
s.value = this.visit(u), this._inputVarName && (s.value.name = this._inputVarName), this._inputVarName = void 0, ((a = s.value) == null ? void 0 : a.type) === "plot" && (s.nameList.declare = void 0);
|
|
64574
64574
|
break;
|
|
64575
64575
|
}
|
|
64576
64576
|
}
|
|
@@ -66726,28 +66726,28 @@ ${this._prefixNameVar}.setCacheData("m${u}_" + ${M}, ${T})
|
|
|
66726
66726
|
}
|
|
66727
66727
|
}
|
|
66728
66728
|
_parserMethodExpression(e) {
|
|
66729
|
-
const { exprs: t, ctx: r } = e, { column:
|
|
66730
|
-
let
|
|
66731
|
-
|
|
66732
|
-
let
|
|
66733
|
-
for (const
|
|
66734
|
-
|
|
66735
|
-
const
|
|
66736
|
-
if (
|
|
66737
|
-
const
|
|
66729
|
+
const { exprs: t, ctx: r, name: i = "" } = e, { column: s, line: o } = r.start, a = `${i}_${o}_${s}`;
|
|
66730
|
+
let u = this._isInFunc ? `$posStr + "__${a}"` : `"${a}"`;
|
|
66731
|
+
u = this._isInLoop ? `"$" + $$count${this._count} + "_$" + ${u}` : u, s === 0 && (this._dependsObj[u] = /* @__PURE__ */ new Map());
|
|
66732
|
+
let M = !1, O = [];
|
|
66733
|
+
for (const R of t)
|
|
66734
|
+
R.hasMemberIndex && (M = !0), O.push(this._parserMethodElement(R, u));
|
|
66735
|
+
const _ = O.join(".");
|
|
66736
|
+
if (s === 0) {
|
|
66737
|
+
const R = this._getDepends(u);
|
|
66738
66738
|
this._codesCol[this._blockCount].push({
|
|
66739
|
-
code:
|
|
66739
|
+
code: _,
|
|
66740
66740
|
isStmtFunc: !0,
|
|
66741
|
-
depends:
|
|
66741
|
+
depends: R
|
|
66742
66742
|
});
|
|
66743
66743
|
}
|
|
66744
|
-
if (this._isInConditionalStmt &&
|
|
66745
|
-
const
|
|
66744
|
+
if (this._isInConditionalStmt && M && !this._isExperssion) {
|
|
66745
|
+
const R = `$$result_${this._preRunMemberFuncsCount}`;
|
|
66746
66746
|
this._preRunMemberFuncsCount++;
|
|
66747
|
-
const
|
|
66748
|
-
return
|
|
66747
|
+
const T = this._preRunMembersFuncs[this._blockCount] || [];
|
|
66748
|
+
return T.push(`const ${R} = ${_}`), this._preRunMembersFuncs[this._blockCount] = T, R;
|
|
66749
66749
|
}
|
|
66750
|
-
return
|
|
66750
|
+
return _;
|
|
66751
66751
|
}
|
|
66752
66752
|
_parserMethodElement(e, t) {
|
|
66753
66753
|
let r = "", i = "";
|
|
@@ -81701,7 +81701,7 @@ ${this._prefixNameVar}.setCacheData("m${u}_" + ${M}, ${T})
|
|
|
81701
81701
|
s.nameList = this.visit(u), this._inputVarName = (o = s.nameList) == null ? void 0 : o.name;
|
|
81702
81702
|
break;
|
|
81703
81703
|
case Y.RULE_singleExpression:
|
|
81704
|
-
s.value = this.visit(u), this._inputVarName = void 0, ((a = s.value) == null ? void 0 : a.type) === "plot" && (s.nameList.declare = void 0);
|
|
81704
|
+
s.value = this.visit(u), this._inputVarName && (s.value.name = this._inputVarName), this._inputVarName = void 0, ((a = s.value) == null ? void 0 : a.type) === "plot" && (s.nameList.declare = void 0);
|
|
81705
81705
|
break;
|
|
81706
81706
|
}
|
|
81707
81707
|
}
|
|
@@ -85320,31 +85320,31 @@ ${this._prefixNameVar}.setCacheData("m${u}_" + ${M}, ${T})
|
|
|
85320
85320
|
}
|
|
85321
85321
|
}
|
|
85322
85322
|
_parserMethodExpression(e) {
|
|
85323
|
-
const { exprs: t, ctx: r } = e, { column:
|
|
85324
|
-
let
|
|
85325
|
-
|
|
85326
|
-
let
|
|
85327
|
-
for (const
|
|
85328
|
-
|
|
85329
|
-
let
|
|
85330
|
-
|
|
85323
|
+
const { exprs: t, ctx: r, name: i = "" } = e, { column: s, line: o } = r.start, a = `${i}_${o}_${s}`;
|
|
85324
|
+
let u = this._isInFunc ? `$posStr + "__${a}"` : `"${this._scriptType === $r.library ? `export_${this._libTitle}_` : ""}${a}"`;
|
|
85325
|
+
u = this._isInLoop && !this._isExperssion ? `"$" + $$count${this._count} + "_$" + ${u}` : u, s === 0 && (this._dependsObj[u] = /* @__PURE__ */ new Map());
|
|
85326
|
+
let M = !1, O = [];
|
|
85327
|
+
for (const R of t) {
|
|
85328
|
+
R.hasMemberIndex && (M = !0);
|
|
85329
|
+
let T = "";
|
|
85330
|
+
R.selfArg ? (T = this._parserMethodElement(R, u, O.join(".")), O = []) : T = this._parserMethodElement(R, u, ""), O.push(T);
|
|
85331
85331
|
}
|
|
85332
|
-
const
|
|
85333
|
-
if (
|
|
85334
|
-
const
|
|
85332
|
+
const _ = O.join(".");
|
|
85333
|
+
if (s === 0) {
|
|
85334
|
+
const R = this._getDepends(u);
|
|
85335
85335
|
this._codesCol[this._blockCount].push({
|
|
85336
|
-
code:
|
|
85336
|
+
code: _,
|
|
85337
85337
|
isStmtFunc: !0,
|
|
85338
|
-
depends:
|
|
85338
|
+
depends: R
|
|
85339
85339
|
});
|
|
85340
85340
|
}
|
|
85341
|
-
if (this._isInConditionalStmt &&
|
|
85342
|
-
const
|
|
85341
|
+
if (this._isInConditionalStmt && M && !this._isExperssion) {
|
|
85342
|
+
const R = `$$result_${this._preRunMemberFuncsCount}`;
|
|
85343
85343
|
this._preRunMemberFuncsCount++;
|
|
85344
|
-
const
|
|
85345
|
-
return
|
|
85344
|
+
const T = this._preRunMembersFuncs[this._blockCount] || [];
|
|
85345
|
+
return T.push(`const ${R} = ${_}`), this._preRunMembersFuncs[this._blockCount] = T, R;
|
|
85346
85346
|
}
|
|
85347
|
-
return
|
|
85347
|
+
return _;
|
|
85348
85348
|
}
|
|
85349
85349
|
_parserMethodElement(e, t, r) {
|
|
85350
85350
|
var _, R, T, N, B, m;
|
|
@@ -100931,7 +100931,7 @@ ${this._prefixNameVar}.setCacheData("m${u}_" + ${M}, ${T})
|
|
|
100931
100931
|
s.nameList = this.visit(u), this._inputVarName = (o = s.nameList) == null ? void 0 : o.name;
|
|
100932
100932
|
break;
|
|
100933
100933
|
case G.RULE_singleExpression:
|
|
100934
|
-
s.value = this.visit(u), this._inputVarName = void 0, ((a = s.value) == null ? void 0 : a.type) === "plot" && (s.nameList.declare = void 0);
|
|
100934
|
+
s.value = this.visit(u), this._inputVarName && (s.value.name = this._inputVarName), this._inputVarName = void 0, ((a = s.value) == null ? void 0 : a.type) === "plot" && (s.nameList.declare = void 0);
|
|
100935
100935
|
break;
|
|
100936
100936
|
}
|
|
100937
100937
|
}
|
|
@@ -104669,24 +104669,24 @@ ${this._prefixNameVar}.setCacheData("m${u}_" + ${M}, ${T})
|
|
|
104669
104669
|
}
|
|
104670
104670
|
}
|
|
104671
104671
|
_parserMethodExpression(e) {
|
|
104672
|
-
const { exprs: t, ctx: r } = e, { column:
|
|
104673
|
-
let
|
|
104674
|
-
|
|
104675
|
-
let
|
|
104676
|
-
for (const
|
|
104677
|
-
let
|
|
104678
|
-
|
|
104679
|
-
}
|
|
104680
|
-
const
|
|
104681
|
-
if (
|
|
104682
|
-
const
|
|
104672
|
+
const { exprs: t, ctx: r, name: i = "" } = e, { column: s, line: o } = r.start, a = `${i}_${o}_${s}`;
|
|
104673
|
+
let u = this._isInFunc ? `$posStr + "__${a}"` : `"${this._scriptType === Fr.library ? `export_${this._libTitle}_` : ""}${a}"`;
|
|
104674
|
+
u = this._isInLoop && !this._isExperssion ? `"($" + $$count${this._count} + "_$)" + ${u}` : u, s === 0 && (this._dependsObj[u] = /* @__PURE__ */ new Map());
|
|
104675
|
+
let M = [];
|
|
104676
|
+
for (const _ of t) {
|
|
104677
|
+
let R = "";
|
|
104678
|
+
_.selfArg ? (R = this._parserMethodElement(_, u, M.join(".")), M = []) : R = this._parserMethodElement(_, u, ""), M.push(R);
|
|
104679
|
+
}
|
|
104680
|
+
const O = M.join(".");
|
|
104681
|
+
if (s === 0) {
|
|
104682
|
+
const _ = this._getDepends(u);
|
|
104683
104683
|
this._codesCol[this._blockCount].push({
|
|
104684
|
-
code:
|
|
104684
|
+
code: O,
|
|
104685
104685
|
isStmtFunc: !0,
|
|
104686
|
-
depends:
|
|
104686
|
+
depends: _
|
|
104687
104687
|
});
|
|
104688
104688
|
}
|
|
104689
|
-
return
|
|
104689
|
+
return O;
|
|
104690
104690
|
}
|
|
104691
104691
|
_parserMethodElement(e, t, r) {
|
|
104692
104692
|
var R, T, N, B, m, g, x;
|