@guihz/trading-vue-editor-tes 0.1.46 → 0.1.48
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-4OtFfWew.js → parserTccWorker-CyEVZctE.js} +33 -22
- package/lib/assets/{scriptsRunWorker-CmAR4nak.js → scriptsRunWorker-DZGXIZFu.js} +600 -588
- package/lib/components/editor/v3/parseScript/parseToJs.d.ts +1 -0
- package/lib/components/editor/v4/parseScript/parseToJs.d.ts +1 -0
- package/lib/components/editor/v5/parseScript/parseToJs.d.ts +1 -0
- package/lib/components/editor/v6/parseScript/parseToJs.d.ts +1 -1
- package/lib/trading-vue-editor.es.packages.js +2 -2
- package/lib/trading-vue-editor.umd.packages.mjs +17 -17
- package/package.json +1 -1
|
@@ -25716,6 +25716,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
25716
25716
|
__count = 0;
|
|
25717
25717
|
preParseCode = "";
|
|
25718
25718
|
_isExperssion = !1;
|
|
25719
|
+
_tmpVarNames;
|
|
25719
25720
|
constructor(e) {
|
|
25720
25721
|
this._argChangeMap = /* @__PURE__ */ new Map(), this._nameMap = /* @__PURE__ */ new Map(), this._prefixNameVar = `${e}_var`, this._prefixNameFunc = `${e}_func`, this._prefixNameConst = `${e}_const`, this._isInFunc = !1, this._varlist = [{}], this._memberIndexList = [{}], this._blockCount = 0, this._inputCount = 0, this._count = 0, this._codesCol = [[]], this._dependsObj = {}, this._preRunMembers = [], this._preRunMembersFuncs = [];
|
|
25721
25722
|
}
|
|
@@ -25813,7 +25814,9 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
25813
25814
|
_parserVarBlockStmt(e) {
|
|
25814
25815
|
const { nameList: t, value: n } = e;
|
|
25815
25816
|
this._addVarList(t);
|
|
25816
|
-
const i = this._parserDeclareAssignNames(t)
|
|
25817
|
+
const i = this._parserDeclareAssignNames(t);
|
|
25818
|
+
this._tmpVarNames = i;
|
|
25819
|
+
const s = `$${i}_${this._blockCount}`;
|
|
25817
25820
|
this._dependsObj[s] = /* @__PURE__ */ new Map();
|
|
25818
25821
|
const o = this._parserStmt(n, !0), p = o.split(`
|
|
25819
25822
|
/****/
|
|
@@ -25945,7 +25948,7 @@ ${this._prefixNameVar}.setVarValue("${l}", ${z}, ${l}, "${o}")`;
|
|
|
25945
25948
|
}
|
|
25946
25949
|
_parserReturnBlock(e, t = !1) {
|
|
25947
25950
|
let n = "", i = "", s = "";
|
|
25948
|
-
switch (e.ruleType) {
|
|
25951
|
+
switch (this._tmpVarNames = "", e.ruleType) {
|
|
25949
25952
|
case j0.AgainAssign:
|
|
25950
25953
|
return n = this._parserStmt(e), i = this._getMembersCode(), t ? `${n};
|
|
25951
25954
|
${i}
|
|
@@ -25953,12 +25956,12 @@ ${this._prefixNameVar}.setVarValue("${l}", ${z}, ${l}, "${o}")`;
|
|
|
25953
25956
|
${i}
|
|
25954
25957
|
$$_result = ${this._parserName(e.name, !0)}`;
|
|
25955
25958
|
case j0.DeclareAssign:
|
|
25956
|
-
s = this._parserStmt(e), i = this._getMembersCode(), n = this.
|
|
25959
|
+
s = this._parserStmt(e), i = this._getMembersCode(), n = this._tmpVarNames;
|
|
25957
25960
|
break;
|
|
25958
25961
|
case j0.FlowStmt:
|
|
25959
25962
|
return this._getMembersCode();
|
|
25960
25963
|
case j0.VarBlockStmt:
|
|
25961
|
-
s = this._parserStmt(e), i = this._getMembersCode(), n = this.
|
|
25964
|
+
s = this._parserStmt(e), i = this._getMembersCode(), n = this._tmpVarNames;
|
|
25962
25965
|
break;
|
|
25963
25966
|
default:
|
|
25964
25967
|
n = this._parserStmt(e, !0), i = this._getMembersCode();
|
|
@@ -26027,7 +26030,7 @@ ${this._prefixNameVar}.setVarValue("${l}", ${z}, ${l}, "${o}")`;
|
|
|
26027
26030
|
}
|
|
26028
26031
|
_parserDeclareAssign(e) {
|
|
26029
26032
|
const { nameList: t, value: n } = e, i = this._parserDeclareAssignNames(t);
|
|
26030
|
-
this._addVarList(t);
|
|
26033
|
+
this._tmpVarNames = i, this._addVarList(t);
|
|
26031
26034
|
const s = {
|
|
26032
26035
|
code: "",
|
|
26033
26036
|
varNames: i.replace(/[\[\]]/g, "").split(", "),
|
|
@@ -60637,6 +60640,7 @@ Input files:
|
|
|
60637
60640
|
preParseCode = "";
|
|
60638
60641
|
_isExperssion = !1;
|
|
60639
60642
|
_hasAlert = !1;
|
|
60643
|
+
_tmpVarNames;
|
|
60640
60644
|
constructor(e) {
|
|
60641
60645
|
this._argChangeMap = /* @__PURE__ */ new Map(), this._nameMap = /* @__PURE__ */ new Map(), this._prefixNameVar = `${e}_var`, this._prefixNameFunc = `${e}_func`, this._prefixNameConst = `${e}_const`, this._isInFunc = !1, this._varlist = [{}], this._memberIndexList = [{}], this._blockCount = 0, this._inputCount = 0, this._count = 0, this._codesCol = [[]], this._dependsObj = {}, this._preRunMembers = [], this._preRunMembersFuncs = [];
|
|
60642
60646
|
}
|
|
@@ -60735,7 +60739,9 @@ Input files:
|
|
|
60735
60739
|
_parserVarBlockStmt(e) {
|
|
60736
60740
|
const { nameList: t, value: n } = e;
|
|
60737
60741
|
this._addVarList(t);
|
|
60738
|
-
const i = this._parserDeclareAssignNames(t)
|
|
60742
|
+
const i = this._parserDeclareAssignNames(t);
|
|
60743
|
+
this._tmpVarNames = i;
|
|
60744
|
+
const s = `$${i}_${this._blockCount}`;
|
|
60739
60745
|
this._dependsObj[s] = /* @__PURE__ */ new Map();
|
|
60740
60746
|
const o = this._parserStmt(n, !0), p = o.split(`
|
|
60741
60747
|
/****/
|
|
@@ -60867,7 +60873,7 @@ ${this._prefixNameVar}.setVarValue("${l}", ${z}, ${l}, "${o}")`;
|
|
|
60867
60873
|
}
|
|
60868
60874
|
_parserReturnBlock(e, t = !1) {
|
|
60869
60875
|
let n = "", i = "", s = "";
|
|
60870
|
-
switch (e.ruleType) {
|
|
60876
|
+
switch (this._tmpVarNames = "", e.ruleType) {
|
|
60871
60877
|
case $0.AgainAssign:
|
|
60872
60878
|
return n = this._parserStmt(e), i = this._getMembersCode(), t ? `${n};
|
|
60873
60879
|
${i}
|
|
@@ -60875,12 +60881,12 @@ ${this._prefixNameVar}.setVarValue("${l}", ${z}, ${l}, "${o}")`;
|
|
|
60875
60881
|
${i}
|
|
60876
60882
|
$$_result = ${this._parserName(e.name, !0)}`;
|
|
60877
60883
|
case $0.DeclareAssign:
|
|
60878
|
-
s = this._parserStmt(e), i = this._getMembersCode(), n = this.
|
|
60884
|
+
s = this._parserStmt(e), i = this._getMembersCode(), n = this._tmpVarNames;
|
|
60879
60885
|
break;
|
|
60880
60886
|
case $0.FlowStmt:
|
|
60881
60887
|
return this._getMembersCode();
|
|
60882
60888
|
case $0.VarBlockStmt:
|
|
60883
|
-
s = this._parserStmt(e), i = this._getMembersCode(), n = this.
|
|
60889
|
+
s = this._parserStmt(e), i = this._getMembersCode(), n = this._tmpVarNames;
|
|
60884
60890
|
break;
|
|
60885
60891
|
default:
|
|
60886
60892
|
n = this._parserStmt(e, !0), i = this._getMembersCode();
|
|
@@ -60949,7 +60955,7 @@ ${this._prefixNameVar}.setVarValue("${l}", ${z}, ${l}, "${o}")`;
|
|
|
60949
60955
|
}
|
|
60950
60956
|
_parserDeclareAssign(e) {
|
|
60951
60957
|
const { nameList: t, value: n } = e, i = this._parserDeclareAssignNames(t);
|
|
60952
|
-
this._addVarList(t);
|
|
60958
|
+
this._tmpVarNames = i, this._addVarList(t);
|
|
60953
60959
|
const s = {
|
|
60954
60960
|
code: "",
|
|
60955
60961
|
varNames: i.replace(/[\[\]]/g, "").split(", "),
|
|
@@ -79101,6 +79107,7 @@ ${this._prefixNameVar}.setCacheData("m${l}_" + ${f}, ${m})
|
|
|
79101
79107
|
_libTitle;
|
|
79102
79108
|
_exportEles;
|
|
79103
79109
|
_scriptType;
|
|
79110
|
+
_tmpVarNames;
|
|
79104
79111
|
constructor(e, t, n) {
|
|
79105
79112
|
this._argChangeMap = /* @__PURE__ */ new Map(), this._nameMap = /* @__PURE__ */ new Map(), this._prefixNameVar = `${e}_var`, this._prefixNameFunc = `${e}_func`, this._prefixNameConst = `${e}_const`, this._userTypes = [], this._isInFunc = !1, this._varlist = [{}], this._memberIndexList = [{}], this._blockCount = 0, this._inputCount = 0, this._count = 0, this._codesCol = [[]], this._dependsObj = {}, this._enums = /* @__PURE__ */ new Map(), this._preRunMembers = [], this._preRunMembersFuncs = [], this._libTitle = n, this._exportEles = [], this._scriptType = t;
|
|
79106
79113
|
}
|
|
@@ -79314,7 +79321,9 @@ ${this._prefixNameVar}.setCacheData("m${l}_" + ${f}, ${m})
|
|
|
79314
79321
|
_parserVarBlockStmt(e) {
|
|
79315
79322
|
const { nameList: t, value: n } = e;
|
|
79316
79323
|
this._addVarList(t);
|
|
79317
|
-
const i = this._parserDeclareAssignNames(t)
|
|
79324
|
+
const i = this._parserDeclareAssignNames(t);
|
|
79325
|
+
this._tmpVarNames = i;
|
|
79326
|
+
const s = `$${i}_${this._blockCount}`;
|
|
79318
79327
|
this._dependsObj[s] = /* @__PURE__ */ new Map();
|
|
79319
79328
|
const o = this._parserStmt(n, !0), p = o.split(`
|
|
79320
79329
|
/****/
|
|
@@ -79545,7 +79554,7 @@ ${this._prefixNameVar}.setVarValue("${l}", ${z}, ${l}, "${o}")`;
|
|
|
79545
79554
|
}
|
|
79546
79555
|
_parserReturnBlock(e, t = !1) {
|
|
79547
79556
|
let n = "", i = "", s = "";
|
|
79548
|
-
switch (e.ruleType) {
|
|
79557
|
+
switch (this._tmpVarNames = "", e.ruleType) {
|
|
79549
79558
|
case M0.AgainAssign:
|
|
79550
79559
|
return n = this._parserStmt(e), i = this._getMembersCode(), t ? `${n};
|
|
79551
79560
|
${i}
|
|
@@ -79553,12 +79562,12 @@ ${this._prefixNameVar}.setVarValue("${l}", ${z}, ${l}, "${o}")`;
|
|
|
79553
79562
|
${i}
|
|
79554
79563
|
$$_result = ${this._parserName(e.name, !0)}`;
|
|
79555
79564
|
case M0.DeclareAssign:
|
|
79556
|
-
s = this._parserStmt(e), i = this._getMembersCode(), n = this.
|
|
79565
|
+
s = this._parserStmt(e), i = this._getMembersCode(), n = this._tmpVarNames;
|
|
79557
79566
|
break;
|
|
79558
79567
|
case M0.FlowStmt:
|
|
79559
79568
|
return this._getMembersCode();
|
|
79560
79569
|
case M0.VarBlockStmt:
|
|
79561
|
-
s = this._parserStmt(e), i = this._getMembersCode(), n = this.
|
|
79570
|
+
s = this._parserStmt(e), i = this._getMembersCode(), n = this._tmpVarNames;
|
|
79562
79571
|
break;
|
|
79563
79572
|
default:
|
|
79564
79573
|
n = this._parserStmt(e, !0), i = this._getMembersCode();
|
|
@@ -79649,7 +79658,7 @@ ${this._prefixNameVar}.setVarValue("${l}", ${z}, ${l}, "${o}")`;
|
|
|
79649
79658
|
}
|
|
79650
79659
|
_parserDeclareAssign(e) {
|
|
79651
79660
|
const { nameList: t, value: n } = e, i = this._parserDeclareAssignNames(t);
|
|
79652
|
-
this._addVarList(t);
|
|
79661
|
+
this._tmpVarNames = i, this._addVarList(t);
|
|
79653
79662
|
const s = {
|
|
79654
79663
|
code: "",
|
|
79655
79664
|
varNames: i.replace(/[\[\]]/g, "").split(", "),
|
|
@@ -98956,7 +98965,6 @@ ${this._prefixNameVar}.setCacheData("m${l}_" + ${f}, ${m})
|
|
|
98956
98965
|
_enums;
|
|
98957
98966
|
_preRunMembers;
|
|
98958
98967
|
// private _isInConditionalStmt: boolean = false
|
|
98959
|
-
_preRunMembersFuncs;
|
|
98960
98968
|
// private _preRunMemberFuncsCount = 0
|
|
98961
98969
|
__count = 0;
|
|
98962
98970
|
preParseCode = "";
|
|
@@ -98967,8 +98975,9 @@ ${this._prefixNameVar}.setCacheData("m${l}_" + ${f}, ${m})
|
|
|
98967
98975
|
_libTitle;
|
|
98968
98976
|
_exportEles;
|
|
98969
98977
|
_scriptType;
|
|
98978
|
+
_tmpVarNames;
|
|
98970
98979
|
constructor(e, t, n) {
|
|
98971
|
-
this._argChangeMap = /* @__PURE__ */ new Map(), this._nameMap = /* @__PURE__ */ new Map(), this._prefixNameVar = `${e}_var`, this._prefixNameFunc = `${e}_func`, this._prefixNameConst = `${e}_const`, this._userTypes = [], this._isInFunc = !1, this._varlist = [{}], this._memberIndexList = [{}], this._blockCount = 0, this._inputCount = 0, this._count = 0, this._codesCol = [[]], this._dependsObj = {}, this._enums = /* @__PURE__ */ new Map(), this._preRunMembers = [], this.
|
|
98980
|
+
this._argChangeMap = /* @__PURE__ */ new Map(), this._nameMap = /* @__PURE__ */ new Map(), this._prefixNameVar = `${e}_var`, this._prefixNameFunc = `${e}_func`, this._prefixNameConst = `${e}_const`, this._userTypes = [], this._isInFunc = !1, this._varlist = [{}], this._memberIndexList = [{}], this._blockCount = 0, this._inputCount = 0, this._count = 0, this._codesCol = [[]], this._dependsObj = {}, this._enums = /* @__PURE__ */ new Map(), this._preRunMembers = [], this._libTitle = n, this._exportEles = [], this._scriptType = t;
|
|
98972
98981
|
}
|
|
98973
98982
|
preParser(e) {
|
|
98974
98983
|
const t = [];
|
|
@@ -99177,7 +99186,9 @@ ${this._prefixNameVar}.setCacheData("m${l}_" + ${f}, ${m})
|
|
|
99177
99186
|
_parserVarBlockStmt(e) {
|
|
99178
99187
|
const { nameList: t, value: n } = e;
|
|
99179
99188
|
this._addVarList(t);
|
|
99180
|
-
const i = this._parserDeclareAssignNames(t)
|
|
99189
|
+
const i = this._parserDeclareAssignNames(t);
|
|
99190
|
+
this._tmpVarNames = i;
|
|
99191
|
+
const s = `$${i}_${this._blockCount}`;
|
|
99181
99192
|
this._dependsObj[s] = /* @__PURE__ */ new Map();
|
|
99182
99193
|
const o = this._parserStmt(n, !0), p = o.split(`
|
|
99183
99194
|
/****/
|
|
@@ -99411,7 +99422,7 @@ ${this._prefixNameVar}.setVarValue("${l}", ${z}, ${l}, "${o}")`;
|
|
|
99411
99422
|
}
|
|
99412
99423
|
_parserReturnBlock(e, t = !1) {
|
|
99413
99424
|
let n = "", i = "", s = "";
|
|
99414
|
-
switch (e.ruleType) {
|
|
99425
|
+
switch (this._tmpVarNames = "", e.ruleType) {
|
|
99415
99426
|
case R0.AgainAssign:
|
|
99416
99427
|
return n = this._parserStmt(e), i = this._getMembersCode(), t ? `${n};
|
|
99417
99428
|
${i}
|
|
@@ -99419,12 +99430,12 @@ ${this._prefixNameVar}.setVarValue("${l}", ${z}, ${l}, "${o}")`;
|
|
|
99419
99430
|
${i}
|
|
99420
99431
|
$$_result = ${this._parserName(e.name, !0)}`;
|
|
99421
99432
|
case R0.DeclareAssign:
|
|
99422
|
-
s = this._parserStmt(e), i = this._getMembersCode(), n = this.
|
|
99433
|
+
s = this._parserStmt(e), i = this._getMembersCode(), n = this._tmpVarNames;
|
|
99423
99434
|
break;
|
|
99424
99435
|
case R0.FlowStmt:
|
|
99425
99436
|
return this._getMembersCode();
|
|
99426
99437
|
case R0.VarBlockStmt:
|
|
99427
|
-
s = this._parserStmt(e), i = this._getMembersCode(), n = this.
|
|
99438
|
+
s = this._parserStmt(e), i = this._getMembersCode(), n = this._tmpVarNames;
|
|
99428
99439
|
break;
|
|
99429
99440
|
default:
|
|
99430
99441
|
n = this._parserStmt(e, !0), i = this._getMembersCode();
|
|
@@ -99515,7 +99526,7 @@ ${this._prefixNameVar}.setVarValue("${l}", ${z}, ${l}, "${o}")`;
|
|
|
99515
99526
|
}
|
|
99516
99527
|
_parserDeclareAssign(e) {
|
|
99517
99528
|
const { nameList: t, value: n, isExport: i } = e, s = this._parserDeclareAssignNames(t);
|
|
99518
|
-
this._addVarList(t);
|
|
99529
|
+
this._tmpVarNames = s, this._addVarList(t);
|
|
99519
99530
|
const o = {
|
|
99520
99531
|
code: "",
|
|
99521
99532
|
varNames: s.replace(/[\[\]]/g, "").split(", "),
|