@guihz/trading-vue-editor-tes 0.1.48 → 0.1.50

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.
@@ -99676,7 +99676,7 @@ ${this._prefixNameVar}.setCacheData("m${l}_" + ${f}, ${m})
99676
99676
  let m = "";
99677
99677
  const { column: E, line: T } = d?.ctx?.start || {}, x = `${T}_${E}`;
99678
99678
  let y = this._isInFunc ? `$posStr + "__${x}"` : `"${this._scriptType === Tn.library ? `export_${this._libTitle}_` : ""}${x}"`;
99679
- y = this._isInLoop ? `"($" + $$count${this._count} + "_$)" + ${y}` : y, d.selfArg ? (m = this._parserMethodElement(d, y, f.join(".")), f = []) : m = this._parserMethodElement(d, y, ""), f.push(m);
99679
+ d.selfArg ? (m = this._parserMethodElement(d, y, f.join(".")), f = []) : m = this._parserMethodElement(d, y, ""), f.push(m);
99680
99680
  }
99681
99681
  if (e.expr && f.unshift(`(${this._parserSingleExpression(e.expr)})`), e.isBuiltIn) {
99682
99682
  const d = f.join(".");
@@ -99698,7 +99698,7 @@ ${this._prefixNameVar}.setCacheData("m${l}_" + ${f}, ${m})
99698
99698
  _parserMethodExpression(e) {
99699
99699
  const { exprs: t, ctx: n } = e, { column: i, line: s } = n.start, o = `${s}_${i}`;
99700
99700
  let p = this._isInFunc ? `$posStr + "__${o}"` : `"${this._scriptType === Tn.library ? `export_${this._libTitle}_` : ""}${o}"`;
99701
- p = this._isInLoop ? `"($" + $$count${this._count} + "_$)" + ${p}` : p, i === 0 && (this._dependsObj[p] = /* @__PURE__ */ new Map());
99701
+ i === 0 && (this._dependsObj[p] = /* @__PURE__ */ new Map());
99702
99702
  let l = [];
99703
99703
  for (const d of t) {
99704
99704
  let m = "";
@@ -19009,7 +19009,7 @@ Example:
19009
19009
  else {
19010
19010
  this._newCacheData[i] = s;
19011
19011
  const o = this._historyInputs[i];
19012
- !(e.sourceTypeName || o?.sourceTypeName) && e.defval === o?.defval || e.sourceTypeName && o?.sourceTypeName === e.sourceTypeName ? s.sourceTypeName && (this._newCacheData[i].defval = this._variables[s.sourceTypeName]) : Object.assign(this._newCacheData[i], e);
19012
+ !o || !(e.sourceTypeName || o?.sourceTypeName) && e.defval === o?.defval || e.sourceTypeName && o?.sourceTypeName === e.sourceTypeName ? s.sourceTypeName && (this._newCacheData[i].defval = this._variables[s.sourceTypeName]) : Object.assign(this._newCacheData[i], e);
19013
19013
  }
19014
19014
  else {
19015
19015
  const { defval: o } = e;
@@ -21425,7 +21425,7 @@ ${u}`), u;
21425
21425
  q += 1, w.barindex = q;
21426
21426
  if (!f.length)
21427
21427
  continue;
21428
- W > m && f.push(Object.assign(A[q], { isrealtime: !1 })), f[f.length - 1].isrealtime = !0;
21428
+ W > m && A[q] && f.push(Object.assign(A[q], { isrealtime: !1 })), f[f.length - 1].isrealtime = !0;
21429
21429
  const v = c?.get(O)?.mintick || 1e-5;
21430
21430
  o?.set(O, A.concat(f));
21431
21431
  const { varCacheData: y, funcCacheData: N } = s[b] || {}, { errors: D = [], cacheData: R } = t.runScripts(l, b, !1, f, Object.assign(_, { varCacheData: y, funcCacheData: N, mintick: v }), u, d) || {};
@@ -24365,7 +24365,7 @@ ${u}`), u;
24365
24365
  else {
24366
24366
  this._newCacheData[i] = s;
24367
24367
  const o = this._historyInputs[i];
24368
- !(e.sourceTypeName || o?.sourceTypeName) && e.defval === o?.defval || e.sourceTypeName && o?.sourceTypeName === e.sourceTypeName ? s.sourceTypeName && (this._newCacheData[i].defval = this._variables[s.sourceTypeName]) : Object.assign(this._newCacheData[i], e);
24368
+ !o || !(e.sourceTypeName || o?.sourceTypeName) && e.defval === o?.defval || e.sourceTypeName && o?.sourceTypeName === e.sourceTypeName ? s.sourceTypeName && (this._newCacheData[i].defval = this._variables[s.sourceTypeName]) : Object.assign(this._newCacheData[i], e);
24369
24369
  }
24370
24370
  else {
24371
24371
  const { defval: o } = e;
@@ -27718,7 +27718,7 @@ ${u}`), u;
27718
27718
  q += 1, w.barindex = q;
27719
27719
  if (!f.length)
27720
27720
  continue;
27721
- W > m && f.push(Object.assign(A[q], { isrealtime: !1 })), f[f.length - 1].isrealtime = !0;
27721
+ W > m && A[q] && f.push(Object.assign(A[q], { isrealtime: !1 })), f[f.length - 1].isrealtime = !0;
27722
27722
  const v = c?.get(O)?.mintick || 1e-5;
27723
27723
  o?.set(O, A.concat(f));
27724
27724
  const { varCacheData: y, funcCacheData: N } = s[b] || {}, { errors: D = [], cacheData: R } = t.runScripts(l, b, !1, f, Object.assign(_, { varCacheData: y, funcCacheData: N, mintick: v }), u, d) || {};
@@ -29296,7 +29296,7 @@ ${u}`), u;
29296
29296
  else {
29297
29297
  this._newCacheData[i] = s;
29298
29298
  const o = this._historyInputs[i];
29299
- !(e.sourceTypeName || o?.sourceTypeName) && e.defval === o?.defval || e.sourceTypeName && o?.sourceTypeName === e.sourceTypeName ? s.sourceTypeName && (this._newCacheData[i].defval = this._variables[s.sourceTypeName]) : Object.assign(this._newCacheData[i], e);
29299
+ !o || !(e.sourceTypeName || o?.sourceTypeName) && e.defval === o?.defval || e.sourceTypeName && o?.sourceTypeName === e.sourceTypeName ? s.sourceTypeName && (this._newCacheData[i].defval = this._variables[s.sourceTypeName]) : Object.assign(this._newCacheData[i], e);
29300
29300
  }
29301
29301
  else {
29302
29302
  const { defval: o, display: a } = e;
@@ -39083,7 +39083,7 @@ ${u}`), u;
39083
39083
  q += 1, B.barindex = q;
39084
39084
  if (!f.length)
39085
39085
  continue;
39086
- W > m && f.push(Object.assign(A[q], { isrealtime: !1 })), f[f.length - 1].isrealtime = !0;
39086
+ W > m && A[q] && f.push(Object.assign(A[q], { isrealtime: !1 })), f[f.length - 1].isrealtime = !0;
39087
39087
  const v = c?.get(O)?.mintick || 1e-5;
39088
39088
  o?.set(O, A.concat(f));
39089
39089
  const { varCacheData: y, funcCacheData: N } = s[b] || {}, { logs: D = [], errors: R = [], cacheData: w } = await t.request.runScripts(l, b, !1, f, Object.assign(_, { varCacheData: y, funcCacheData: N, mintick: v }), u, d) || {};
@@ -40660,7 +40660,7 @@ ${u}`), u;
40660
40660
  else {
40661
40661
  this._newCacheData[i] = s;
40662
40662
  const o = this._historyInputs[i];
40663
- !(e.sourceTypeName || o?.sourceTypeName) && e.defval === o?.defval || e.sourceTypeName && o?.sourceTypeName === e.sourceTypeName ? s.sourceTypeName && (this._newCacheData[i].defval = this._variables[s.sourceTypeName]) : Object.assign(this._newCacheData[i], e);
40663
+ !o || !(e.sourceTypeName || o?.sourceTypeName) && e.defval === o?.defval || e.sourceTypeName && o?.sourceTypeName === e.sourceTypeName ? s.sourceTypeName && (this._newCacheData[i].defval = this._variables[s.sourceTypeName]) : Object.assign(this._newCacheData[i], e);
40664
40664
  }
40665
40665
  else {
40666
40666
  const { defval: o, display: a } = e;
@@ -47529,7 +47529,7 @@ ${u}`), u;
47529
47529
  q += 1, B.barindex = q;
47530
47530
  if (!f.length)
47531
47531
  continue;
47532
- W > m && f.push(Object.assign(A[q], { isrealtime: !1 })), f[f.length - 1].isrealtime = !0;
47532
+ W > m && A[q] && f.push(Object.assign(A[q], { isrealtime: !1 })), f[f.length - 1].isrealtime = !0;
47533
47533
  const v = c?.get(O)?.mintick || 1e-5;
47534
47534
  o?.set(O, A.concat(f));
47535
47535
  const { varCacheData: y, funcCacheData: N } = s[b] || {}, { logs: D = [], errors: R = [], cacheData: w } = await t.request.runScripts(l, b, !1, f, Object.assign(_, { varCacheData: y, funcCacheData: N, mintick: v }), u, d) || {};