@guihz/trading-vue-editor-tes 0.1.51 → 0.1.53
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-D4JxTmqB.js → parserTccWorker-BMM5Yn4K.js} +3 -3
- package/lib/assets/{scriptsRunWorker-IotUWTYQ.js → scriptsRunWorker-Xes_EuyZ.js} +12 -8
- package/lib/trading-vue-editor.es.packages.js +285 -285
- package/lib/trading-vue-editor.umd.packages.mjs +1 -1
- package/package.json +1 -1
|
@@ -59023,7 +59023,7 @@ Input files:
|
|
|
59023
59023
|
i.nameList = this.visit(s), this._inputVarName = i.nameList?.name;
|
|
59024
59024
|
break;
|
|
59025
59025
|
case e0.RULE_singleExpression:
|
|
59026
|
-
i.value = this.visit(s), this._inputVarName = void 0;
|
|
59026
|
+
i.value = this.visit(s), this._inputVarName = void 0, i.value?.type === "plot" && (i.nameList.declare = void 0);
|
|
59027
59027
|
break;
|
|
59028
59028
|
}
|
|
59029
59029
|
}
|
|
@@ -76323,7 +76323,7 @@ ${this._prefixNameVar}.setCacheData("m${l}_" + ${f}, ${m})
|
|
|
76323
76323
|
i.nameList = this.visit(s), this._inputVarName = i.nameList?.name;
|
|
76324
76324
|
break;
|
|
76325
76325
|
case I.RULE_singleExpression:
|
|
76326
|
-
i.value = this.visit(s), this._inputVarName = void 0;
|
|
76326
|
+
i.value = this.visit(s), this._inputVarName = void 0, i.value?.type === "plot" && (i.nameList.declare = void 0);
|
|
76327
76327
|
break;
|
|
76328
76328
|
}
|
|
76329
76329
|
}
|
|
@@ -96163,7 +96163,7 @@ ${this._prefixNameVar}.setCacheData("m${l}_" + ${f}, ${m})
|
|
|
96163
96163
|
i.nameList = this.visit(s), this._inputVarName = i.nameList?.name;
|
|
96164
96164
|
break;
|
|
96165
96165
|
case N.RULE_singleExpression:
|
|
96166
|
-
i.value = this.visit(s), this._inputVarName = void 0;
|
|
96166
|
+
i.value = this.visit(s), this._inputVarName = void 0, i.value?.type === "plot" && (i.nameList.declare = void 0);
|
|
96167
96167
|
break;
|
|
96168
96168
|
}
|
|
96169
96169
|
}
|
|
@@ -3988,7 +3988,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3988
3988
|
};
|
|
3989
3989
|
function xO(n) {
|
|
3990
3990
|
const e = /* @__PURE__ */ new Date();
|
|
3991
|
-
return new Intl.DateTimeFormat("zh-CN", {
|
|
3991
|
+
return n = n?.trim(), new Intl.DateTimeFormat("zh-CN", {
|
|
3992
3992
|
timeZone: n,
|
|
3993
3993
|
timeZoneName: "long"
|
|
3994
3994
|
}).format(e).split(" ")[1];
|
|
@@ -9138,6 +9138,7 @@ Arguments: ` + Array.prototype.slice.call(r).join("") + `
|
|
|
9138
9138
|
return t;
|
|
9139
9139
|
}
|
|
9140
9140
|
function Id(n) {
|
|
9141
|
+
n = n?.trim();
|
|
9141
9142
|
const e = /([+-])(\d{1,2})(\d{0,2})/, t = n.replace(/GMT|UTC/, "").match(e);
|
|
9142
9143
|
if (!t)
|
|
9143
9144
|
return 0;
|
|
@@ -9145,10 +9146,10 @@ Arguments: ` + Array.prototype.slice.call(r).join("") + `
|
|
|
9145
9146
|
return (r === "+" ? 1 : -1) * (o + a);
|
|
9146
9147
|
}
|
|
9147
9148
|
function z1(n, e) {
|
|
9148
|
-
return e ? e && (e.startsWith("UTC") || e.startsWith("GMT")) ? p0.utc(n).utcOffset(Id(e)) : p0(n).tz(e) : p0(n);
|
|
9149
|
+
return e = e?.trim(), e ? e && (e.startsWith("UTC") || e.startsWith("GMT")) ? p0.utc(n).utcOffset(Id(e)) : p0(n).tz(e) : p0(n);
|
|
9149
9150
|
}
|
|
9150
9151
|
function ns(n, e) {
|
|
9151
|
-
if (!e)
|
|
9152
|
+
if (e = e?.trim(), !e)
|
|
9152
9153
|
return p0(n).valueOf();
|
|
9153
9154
|
if (e && (e.startsWith("UTC") || e.startsWith("GMT"))) {
|
|
9154
9155
|
const t = Id(e) * 60 * 1e3;
|
|
@@ -20982,7 +20983,7 @@ ${u}`), u;
|
|
|
20982
20983
|
timestamp(e) {
|
|
20983
20984
|
const { dateString: t, timezone: r = this._variables.syminfo.timezone, year: i, month: s, day: o, hour: a = 0, minute: c = 0, second: p = 0 } = e;
|
|
20984
20985
|
if (t)
|
|
20985
|
-
return p0.tz(t, r).valueOf();
|
|
20986
|
+
return p0.tz(t, r?.trim()).valueOf();
|
|
20986
20987
|
let b = s - 1, M = i;
|
|
20987
20988
|
if (b < 0) {
|
|
20988
20989
|
const l = Math.ceil(Math.abs(b / 12));
|
|
@@ -21085,6 +21086,7 @@ ${u}`), u;
|
|
|
21085
21086
|
return e - r - Math.floor((e - r) / i) * i;
|
|
21086
21087
|
}
|
|
21087
21088
|
_timeHandle(e, t, r = "", i, s, o = 0, a = !1) {
|
|
21089
|
+
s = s?.trim();
|
|
21088
21090
|
const c = r || this._variables.__period, p = I0(c, e), b = I0(this._variables.__period, e);
|
|
21089
21091
|
let M;
|
|
21090
21092
|
if (p <= b)
|
|
@@ -27364,7 +27366,7 @@ ${u}`), u;
|
|
|
27364
27366
|
timestamp(e) {
|
|
27365
27367
|
const { dateString: t, timezone: r = this._variables.syminfo.timezone, year: i, month: s, day: o, hour: a = 0, minute: c = 0, second: p = 0 } = e;
|
|
27366
27368
|
if (t)
|
|
27367
|
-
return p0.tz(t, r).valueOf();
|
|
27369
|
+
return p0.tz(t, r?.trim()).valueOf();
|
|
27368
27370
|
let b = s - 1, M = i;
|
|
27369
27371
|
if (b < 0) {
|
|
27370
27372
|
const l = Math.ceil(Math.abs(b / 12));
|
|
@@ -27402,6 +27404,7 @@ ${u}`), u;
|
|
|
27402
27404
|
return e - r - Math.floor((e - r) / i) * i;
|
|
27403
27405
|
}
|
|
27404
27406
|
_timeHandle(e, t, r = "", i, s, o = 0, a = !1) {
|
|
27407
|
+
s = s?.trim();
|
|
27405
27408
|
const c = r || this._variables.__period, p = I0(c, e), b = I0(this._variables.__period, e);
|
|
27406
27409
|
let M;
|
|
27407
27410
|
if (p <= b)
|
|
@@ -36605,7 +36608,7 @@ ${pf}`);
|
|
|
36605
36608
|
timestamp(e) {
|
|
36606
36609
|
const { dateString: t, timezone: r = this._variables.syminfo.timezone, year: i, month: s, day: o, hour: a = 0, minute: c = 0, second: p = 0 } = e;
|
|
36607
36610
|
if (t)
|
|
36608
|
-
return p0.tz(t, r).valueOf();
|
|
36611
|
+
return p0.tz(t, r?.trim()).valueOf();
|
|
36609
36612
|
let b = s - 1, M = i;
|
|
36610
36613
|
if (b < 0) {
|
|
36611
36614
|
const l = Math.ceil(Math.abs(b / 12));
|
|
@@ -36643,6 +36646,7 @@ ${pf}`);
|
|
|
36643
36646
|
return e - r - Math.floor((e - r) / i) * i;
|
|
36644
36647
|
}
|
|
36645
36648
|
_timeHandle(e, t, r = "", i, s, o = 0, a = !1) {
|
|
36649
|
+
s = s?.trim();
|
|
36646
36650
|
const c = r || this._variables.__period, p = I0(c, e), b = I0(this._variables.__period, e);
|
|
36647
36651
|
let M;
|
|
36648
36652
|
if (p <= b)
|
|
@@ -45024,7 +45028,7 @@ ${u}`), u;
|
|
|
45024
45028
|
timestamp(e) {
|
|
45025
45029
|
const { dateString: t, timezone: r = this._variables.syminfo.timezone, year: i, month: s, day: o, hour: a = 0, minute: c = 0, second: p = 0 } = e;
|
|
45026
45030
|
if (t)
|
|
45027
|
-
return p0.tz(t, r).valueOf();
|
|
45031
|
+
return p0.tz(t, r?.trim()).valueOf();
|
|
45028
45032
|
let b = s - 1, M = i;
|
|
45029
45033
|
if (b < 0) {
|
|
45030
45034
|
const l = Math.ceil(Math.abs(b / 12));
|
|
@@ -45064,7 +45068,7 @@ ${u}`), u;
|
|
|
45064
45068
|
_timeHandle(e, t, r = "", i, s, o = 0, a = !1) {
|
|
45065
45069
|
const c = r || this._variables.__period, p = I0(c, e), b = I0(this._variables.__period, e);
|
|
45066
45070
|
let M;
|
|
45067
|
-
if (p <= b)
|
|
45071
|
+
if (s = s?.trim(), p <= b)
|
|
45068
45072
|
M = e, a && (M += b * 1e3);
|
|
45069
45073
|
else {
|
|
45070
45074
|
const l = `time_${t}`, u = this._cacheData[l];
|