@guihz/trading-vue-editor-tes 0.1.63 → 0.1.65

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.
@@ -98497,7 +98497,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
98497
98497
  const C = `var ${E} = Date.now()`;
98498
98498
  let K = `for (let ${s}=${q};(${this._prefixNameVar}.compareDataHandle(${s}) - ${R}) * ${z} >= 0; ${s}-=(${S || "1"}) * ${z}){
98499
98499
  if (Date.now() - ${E} > 500) {
98500
- throw new Error('${d0.loopRuntimeErr}')
98500
+ throw new Error('${d0.loopRuntimeErr}-${p.start.line}')
98501
98501
  }
98502
98502
  ${x}++
98503
98503
  ${L}
@@ -45024,11 +45024,11 @@ ${z}`), z;
45024
45024
  const t = e.hasOwnProperty("replacement"), { source: r, replacement: i } = e;
45025
45025
  return r !== void 0 && !(typeof r == "number" && isNaN(r)) ? r : t ? i : 0;
45026
45026
  }
45027
- time({ timeframe: e = "", session: t, timezone: r = this._variables.syminfo.timezone, bars_back: i = 0 }, s) {
45028
- return this._timeHandle(this._variables.time, s, e, t, r, i);
45027
+ time({ timeframe: e = "", session: t, timezone: r = this._variables.syminfo.timezone, bars_back: i = 0, timeframe_bars_back: s = 0 }, o) {
45028
+ return this._timeHandle(this._variables.time, o, e, t, r, i, s);
45029
45029
  }
45030
- time_close({ timeframe: e = "", session: t, timezone: r = this._variables.syminfo.timezone, bars_back: i = 0 }, s) {
45031
- return this._timeHandle(this._variables.time, s, e, t, r, i, !0);
45030
+ time_close({ timeframe: e = "", session: t, timezone: r = this._variables.syminfo.timezone, bars_back: i = 0, timeframe_bars_back: s = 0 }, o) {
45031
+ return this._timeHandle(this._variables.time, o, e, t, r, i, s, !0);
45032
45032
  }
45033
45033
  timestamp(e) {
45034
45034
  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;
@@ -45070,96 +45070,96 @@ ${z}`), z;
45070
45070
  const r = this._variables.getTimeTradingday(e, this._variables.timeframe.period), i = I0(t, e) * 1e3;
45071
45071
  return e - r - Math.floor((e - r) / i) * i;
45072
45072
  }
45073
- _timeHandle(e, t, r = "", i, s, o = 0, a = !1) {
45074
- const c = r || this._variables.__period, p = I0(c, e), b = I0(this._variables.__period, e);
45075
- let M;
45076
- if (s = s?.trim(), p <= b)
45077
- M = e, a && (M += b * 1e3);
45073
+ _timeHandle(e, t, r = "", i, s, o = 0, a = 0, c = !1) {
45074
+ const p = r || this._variables.__period, b = I0(p, e), M = I0(this._variables.__period, e);
45075
+ let l;
45076
+ if (s = s?.trim(), b <= M)
45077
+ l = e, c && (l += M * 1e3);
45078
45078
  else {
45079
- const l = `time_${t}`, z = this._cacheData[l];
45080
- if (z) {
45081
- const { unit: O } = z;
45082
- switch (z.type) {
45079
+ const z = `time_${t}`, O = this._cacheData[z];
45080
+ if (O) {
45081
+ const { unit: d } = O;
45082
+ switch (O.type) {
45083
45083
  case 1:
45084
- const { time: d, nextTime: _, preNum: f } = z;
45085
- e >= _ ? (M = _, this._cacheData[l] = {
45084
+ const { time: _, nextTime: f, preNum: A } = O;
45085
+ e >= f ? (l = f, this._cacheData[z] = {
45086
45086
  type: 1,
45087
- time: M,
45088
- nextTime: p0(_).add(f, O).startOf(O).add(this._variables._offsetTime, "hour").valueOf(),
45089
- unit: O,
45090
- preNum: f
45091
- }) : M = d;
45087
+ time: l,
45088
+ nextTime: p0(f).add(A, d).startOf(d).add(this._variables._offsetTime, "hour").valueOf(),
45089
+ unit: d,
45090
+ preNum: A
45091
+ }) : l = _;
45092
45092
  break;
45093
45093
  case 2:
45094
- M = p0(e).startOf(O).add(this._variables._offsetTime, "hour").valueOf();
45094
+ l = p0(e).startOf(d).add(this._variables._offsetTime, "hour").valueOf();
45095
45095
  break;
45096
45096
  case 4:
45097
- this._variables.__isWeekChange && O === "w" || this._variables.__isMonthChange && O === "M" ? (M = e, this._cacheData[l] = {
45097
+ this._variables.__isWeekChange && d === "w" || this._variables.__isMonthChange && d === "M" ? (l = e, this._cacheData[z] = {
45098
45098
  type: 4,
45099
- time: M,
45100
- unit: O
45101
- }) : M = z.time;
45099
+ time: l,
45100
+ unit: d
45101
+ }) : l = O.time;
45102
45102
  break;
45103
45103
  default:
45104
- z.currentTime + p * 1e3 - z.offset <= e ? (M = e, this._cacheData[l] = {
45104
+ O.currentTime + b * 1e3 - O.offset <= e ? (l = e, this._cacheData[z] = {
45105
45105
  type: 3,
45106
45106
  currentTime: e,
45107
45107
  offset: 0
45108
- }) : M = z.currentTime;
45108
+ }) : l = O.currentTime;
45109
45109
  break;
45110
45110
  }
45111
45111
  } else {
45112
- const [O, d] = Me(c);
45113
- if (/[DWM]/.test(c))
45114
- if (M = p0(e).startOf(d).add(this._variables._offsetTime, "hour").valueOf(), !a && O === 1 && ["w", "M"].includes(d))
45115
- (this._variables.__isWeekChange && d === "w" || this._variables.__isMonthChange && d === "M") && (M = e), this._cacheData[l] = {
45112
+ const [d, _] = Me(p);
45113
+ if (/[DWM]/.test(p))
45114
+ if (l = p0(e).startOf(_).add(this._variables._offsetTime, "hour").valueOf(), !c && d === 1 && ["w", "M"].includes(_))
45115
+ (this._variables.__isWeekChange && _ === "w" || this._variables.__isMonthChange && _ === "M") && (l = e), this._cacheData[z] = {
45116
45116
  type: 4,
45117
- time: M,
45118
- unit: d
45117
+ time: l,
45118
+ unit: _
45119
45119
  };
45120
- else if (O > 1) {
45121
- const _ = p0(M).add(O, d).startOf(d).add(this._variables._offsetTime, "hour").valueOf();
45122
- this._cacheData[l] = {
45120
+ else if (d > 1) {
45121
+ const f = p0(l).add(d, _).startOf(_).add(this._variables._offsetTime, "hour").valueOf();
45122
+ this._cacheData[z] = {
45123
45123
  type: 1,
45124
- time: M,
45125
- nextTime: _,
45126
- unit: d,
45127
- preNum: O
45124
+ time: l,
45125
+ nextTime: f,
45126
+ unit: _,
45127
+ preNum: d
45128
45128
  };
45129
45129
  } else
45130
- this._cacheData[l] = {
45130
+ this._cacheData[z] = {
45131
45131
  type: 2,
45132
- unit: d
45132
+ unit: _
45133
45133
  };
45134
45134
  else {
45135
- const _ = this._calcTimeOffset(e, c);
45136
- this._cacheData[l] = {
45135
+ const f = this._calcTimeOffset(e, p);
45136
+ this._cacheData[z] = {
45137
45137
  type: 3,
45138
45138
  currentTime: e,
45139
- offset: _
45140
- }, M = e;
45139
+ offset: f
45140
+ }, l = e;
45141
45141
  }
45142
45142
  }
45143
- a && (M += p * 1e3);
45143
+ c && (l += b * 1e3);
45144
45144
  }
45145
45145
  if (typeof o == "string" && (i === void 0 ? i = o : s = o, o = 0), i && i !== ts.regular && i !== ts.extended) {
45146
- const { timePeriods: l, weeks: z } = this._parserSession(i, t), O = z1(e, s), d = O.format("YYYY-MM-DD HH:mm");
45147
- let _ = O.format("YYYY-MM-DD");
45148
- const f = Number(O.format("HHmm"));
45149
- M = void 0;
45150
- for (const q of l) {
45151
- const [m, W] = q;
45152
- let v = _;
45153
- const y = Number(m?.replace(":", "")), N = Number(W?.replace(":", ""));
45154
- if ((m === W || y > N) && (f >= y ? v = O.add(1, "day").format("YYYY-MM-DD") : f < N && (_ = O.subtract(1, "day").format("YYYY-MM-DD"))), z1(d, s).isBetween(`${_} ${m}`, `${v} ${W}`, "minute", "[)")) {
45155
- M = ps(`${_} ${m}`, s);
45146
+ const { timePeriods: z, weeks: O } = this._parserSession(i, t), d = z1(e, s), _ = d.format("YYYY-MM-DD HH:mm");
45147
+ let f = d.format("YYYY-MM-DD");
45148
+ const A = Number(d.format("HHmm"));
45149
+ l = void 0;
45150
+ for (const m of z) {
45151
+ const [W, v] = m;
45152
+ let y = f;
45153
+ const N = Number(W?.replace(":", "")), w = Number(v?.replace(":", ""));
45154
+ if ((W === v || N > w) && (A >= N ? y = d.add(1, "day").format("YYYY-MM-DD") : A < w && (f = d.subtract(1, "day").format("YYYY-MM-DD"))), z1(_, s).isBetween(`${f} ${W}`, `${y} ${v}`, "minute", "[)")) {
45155
+ l = ps(`${f} ${W}`, s);
45156
45156
  break;
45157
45157
  }
45158
45158
  }
45159
- const A = this._variables.dayofweek;
45160
- M && !z.includes(A) && (M = void 0);
45159
+ const q = this._variables.dayofweek;
45160
+ l && !O.includes(q) && (l = void 0);
45161
45161
  }
45162
- return Number(M && M - o * b * 1e3);
45162
+ return Number(l && l - o * M * 1e3 - a * b * 1e3);
45163
45163
  }
45164
45164
  _seriesColorHandle(e, t, r) {
45165
45165
  if (r && t?.length)
@@ -50,12 +50,15 @@ export declare const COLORS: {
50
50
  "color-tan-orange-700": string;
51
51
  "color-tan-orange-800": string;
52
52
  "color-tan-orange-900": string;
53
+ "color-tan-orange-a100": string;
53
54
  "color-tan-orange-a200": string;
54
55
  "color-tan-orange-a400": string;
56
+ "color-tan-orange-a500": string;
55
57
  "color-tan-orange-a600": string;
56
58
  "color-tan-orange-a700": string;
57
59
  "color-tan-orange-a800": string;
58
60
  "color-tan-orange-a900": string;
61
+ "color-iguana-green-50": string;
59
62
  "color-iguana-green-100": string;
60
63
  "color-iguana-green-200": string;
61
64
  "color-iguana-green-300": string;
@@ -65,7 +68,11 @@ export declare const COLORS: {
65
68
  "color-iguana-green-700": string;
66
69
  "color-iguana-green-800": string;
67
70
  "color-iguana-green-900": string;
71
+ "color-iguana-green-a100": string;
72
+ "color-iguana-green-a200": string;
73
+ "color-iguana-green-a400": string;
68
74
  "color-iguana-green-a700": string;
75
+ "color-banana-yellow-50": string;
69
76
  "color-banana-yellow-100": string;
70
77
  "color-banana-yellow-200": string;
71
78
  "color-banana-yellow-300": string;
@@ -75,6 +82,8 @@ export declare const COLORS: {
75
82
  "color-banana-yellow-700": string;
76
83
  "color-banana-yellow-800": string;
77
84
  "color-banana-yellow-900": string;
85
+ "color-banana-yellow-a100": string;
86
+ "color-banana-yellow-a200": string;
78
87
  "color-banana-yellow-a400": string;
79
88
  "color-banana-yellow-a700": string;
80
89
  "color-tv-blue-50": string;
@@ -100,6 +109,7 @@ export declare const COLORS: {
100
109
  "color-deep-blue-300": string;
101
110
  "color-deep-blue-400": string;
102
111
  "color-deep-blue-500": string;
112
+ "color-deep-blue-600": string;
103
113
  "color-deep-blue-700": string;
104
114
  "color-deep-blue-800": string;
105
115
  "color-deep-blue-900": string;
@@ -117,6 +127,8 @@ export declare const COLORS: {
117
127
  "color-minty-green-700": string;
118
128
  "color-minty-green-800": string;
119
129
  "color-minty-green-900": string;
130
+ "color-minty-green-a100": string;
131
+ "color-minty-green-a200": string;
120
132
  "color-minty-green-a400": string;
121
133
  "color-minty-green-a600": string;
122
134
  "color-minty-green-a700": string;
@@ -136,6 +148,7 @@ export declare const COLORS: {
136
148
  "color-grapes-purple-a200": string;
137
149
  "color-grapes-purple-a400": string;
138
150
  "color-grapes-purple-a700": string;
151
+ "color-berry-pink-50": string;
139
152
  "color-berry-pink-100": string;
140
153
  "color-berry-pink-200": string;
141
154
  "color-berry-pink-300": string;
@@ -148,6 +161,8 @@ export declare const COLORS: {
148
161
  "color-berry-pink-a100": string;
149
162
  "color-berry-pink-a200": string;
150
163
  "color-berry-pink-a400": string;
164
+ "color-berry-pink-a700": string;
165
+ "color-sky-blue-50": string;
151
166
  "color-sky-blue-100": string;
152
167
  "color-sky-blue-200": string;
153
168
  "color-sky-blue-300": string;
@@ -157,9 +172,10 @@ export declare const COLORS: {
157
172
  "color-sky-blue-700": string;
158
173
  "color-sky-blue-800": string;
159
174
  "color-sky-blue-900": string;
175
+ "color-sky-blue-a100": string;
176
+ "color-sky-blue-a200": string;
160
177
  "color-sky-blue-a400": string;
161
178
  "color-sky-blue-a700": string;
162
- "color-deep-blue-600": string;
163
179
  "color-forest-green-50": string;
164
180
  "color-forest-green-100": string;
165
181
  "color-forest-green-200": string;
@@ -177,6 +193,216 @@ export declare const COLORS: {
177
193
  "color-youtube": string;
178
194
  "color-linkedin": string;
179
195
  "color-seeking-alpha-brand": string;
196
+ "color-header-bg": string;
197
+ "color-body-bg": string;
198
+ "color-body-secondary-bg": string;
199
+ "color-bg-primary": string;
200
+ "color-bg-primary-hover": string;
201
+ "color-bg-secondary": string;
202
+ "color-bg-highlight": string;
203
+ "color-bg-scroll-buttons": string;
204
+ "color-legacy-bg-scroll-buttons": string;
205
+ "color-legacy-bg-widget": string;
206
+ "color-text-primary": string;
207
+ "color-text-secondary": string;
208
+ "color-text-tertiary": string;
209
+ "color-text-disabled": string;
210
+ "color-accent-content": string;
211
+ "color-box-shadow": string;
212
+ "color-divider": string;
213
+ "color-divider-hover": string;
214
+ "color-divider-secondary": string;
215
+ "color-active-hover-text": string;
216
+ "color-alert-text": string;
217
+ "color-border-table": string;
218
+ "color-brand": string;
219
+ "color-brand-active": string;
220
+ "color-brand-hover": string;
221
+ "color-chart-page-bg": string;
222
+ "color-common-tooltip-bg": string;
223
+ "color-danger": string;
224
+ "color-danger-hover": string;
225
+ "color-danger-active": string;
226
+ "color-depthrenderer-stroke-style": string;
227
+ "color-halal": string;
228
+ "color-continuous": string;
229
+ "color-tv-calculated-pair": string;
230
+ "color-highlight-new": string;
231
+ "color-input-bg": string;
232
+ "color-input-publish-bg": string;
233
+ "color-link": string;
234
+ "color-link-hover": string;
235
+ "color-link-active": string;
236
+ "color-list-nth-child-bg": string;
237
+ "color-pane-bg": string;
238
+ "color-pane-secondary-bg": string;
239
+ "color-popup-menu-item-hover-bg": string;
240
+ "color-popup-menu-separator": string;
241
+ "color-primary-symbol": string;
242
+ "color-screener-description": string;
243
+ "color-success": string;
244
+ "color-success-hover": string;
245
+ "color-success-active": string;
246
+ "color-toolbar-button-text": string;
247
+ "color-toolbar-button-text-hover": string;
248
+ "color-toolbar-button-text-active": string;
249
+ "color-toolbar-button-text-active-hover": string;
250
+ "color-toolbar-button-background-hover": string;
251
+ "color-toolbar-button-background-secondary-hover": string;
252
+ "color-toolbar-button-background-active": string;
253
+ "color-toolbar-button-background-active-hover": string;
254
+ "color-toolbar-toggle-button-background-active": string;
255
+ "color-toolbar-toggle-button-background-active-hover": string;
256
+ "color-toolbar-toggle-button-icon": string;
257
+ "color-toolbar-interactive-element-text-normal": string;
258
+ "color-toolbar-opened-element-bg": string;
259
+ "color-toolbar-divider-background": string;
260
+ "color-popup-background": string;
261
+ "color-popup-element-text": string;
262
+ "color-popup-element-text-hover": string;
263
+ "color-popup-element-background-hover": string;
264
+ "color-popup-element-secondary-text": string;
265
+ "color-popup-element-hint-text": string;
266
+ "color-popup-element-text-active": string;
267
+ "color-popup-element-background-active": string;
268
+ "color-popup-element-toolbox-text": string;
269
+ "color-popup-element-toolbox-text-hover": string;
270
+ "color-popup-element-toolbox-text-active-hover": string;
271
+ "color-popup-element-toolbox-background-hover": string;
272
+ "color-popup-element-toolbox-background-active-hover": string;
273
+ "color-tooltip-bg": string;
274
+ "color-tv-dialog-caption": string;
275
+ "color-tv-dropdown-item-hover-bg": string;
276
+ "color-underlined-text": string;
277
+ "color-widget-pages-bg": string;
278
+ "color-warning": string;
279
+ "color-growing": string;
280
+ "color-falling": string;
281
+ "color-forex-icon": string;
282
+ "color-list-item-active-bg": string;
283
+ "color-list-item-hover-bg": string;
284
+ "color-list-item-text": string;
285
+ "color-price-axis-label-back": string;
286
+ "color-price-axis-label-text": string;
287
+ "color-price-axis-gear": string;
288
+ "color-price-axis-gear-hover": string;
289
+ "color-price-axis-highlight": string;
290
+ "color-bid": string;
291
+ "color-border": string;
292
+ "color-border-chat-fields": string;
293
+ "color-border-hover": string;
294
+ "color-button-hover-bg": string;
295
+ "color-depthrenderer-fill-style": string;
296
+ "color-disabled-border-and-color": string;
297
+ "color-disabled-input": string;
298
+ "color-empty-container-message": string;
299
+ "color-icons": string;
300
+ "color-input-textarea-readonly": string;
301
+ "color-input-placeholder-text": string;
302
+ "color-item-active-blue": string;
303
+ "color-item-hover-active-bg": string;
304
+ "color-item-hover-bg": string;
305
+ "color-item-hover-blue": string;
306
+ "color-item-selected-blue": string;
307
+ "color-item-active-text": string;
308
+ "color-item-active-bg": string;
309
+ "color-list-item": string;
310
+ "color-news-highlight": string;
311
+ "color-placeholder": string;
312
+ "color-row-hover-active-bg": string;
313
+ "color-sb-scrollbar-body-bg": string;
314
+ "color-section-separator-border": string;
315
+ "color-separator-table-chat": string;
316
+ "color-tag-active-bg": string;
317
+ "color-tag-hover-bg": string;
318
+ "color-text-regular": string;
319
+ "color-tv-button-checked": string;
320
+ "color-scroll-bg": string;
321
+ "color-scroll-border": string;
322
+ "color-widget-border": string;
323
+ "color-scroll-buttons-arrow": string;
324
+ "color-control-intent-default": string;
325
+ "color-control-intent-success": string;
326
+ "color-control-intent-primary": string;
327
+ "color-control-intent-warning": string;
328
+ "color-control-intent-danger": string;
329
+ "color-goto-label-background": string;
330
+ "color-pre-market": string;
331
+ "color-pre-market-bg": string;
332
+ "color-post-market": string;
333
+ "color-post-market-bg": string;
334
+ "color-market-open": string;
335
+ "color-market-open-bg": string;
336
+ "color-market-closed": string;
337
+ "color-market-holiday": string;
338
+ "color-market-expired": string;
339
+ "color-invalid-symbol": string;
340
+ "color-invalid-symbol-hover": string;
341
+ "color-delisted-symbol": string;
342
+ "color-delisted-symbol-hover": string;
343
+ "color-replay-mode": string;
344
+ "color-replay-mode-point-select": string;
345
+ "color-replay-mode-icon": string;
346
+ "color-replay-mode-hover": string;
347
+ "color-notaccurate-mode": string;
348
+ "color-delay-mode": string;
349
+ "color-delay-mode-bg": string;
350
+ "color-eod-mode": string;
351
+ "color-eod-mode-bg": string;
352
+ "color-data-problem": string;
353
+ "color-data-problem-bg": string;
354
+ "color-data-problem-hover": string;
355
+ "color-list-item-bg-highlighted": string;
356
+ "color-list-item-bg-selected": string;
357
+ "color-list-item-bg-highlighted-hover": string;
358
+ "color-list-item-bg-selected-hover": string;
359
+ "color-screener-header-bg": string;
360
+ "color-screener-header-bg-hover": string;
361
+ "color-marker-flagged": string;
362
+ "color-marker-flagged-hovered": string;
363
+ "color-ask": string;
364
+ "color-sell": string;
365
+ "color-buy": string;
366
+ "color-neutral": string;
367
+ "color-pro": string;
368
+ "color-pro-hover": string;
369
+ "color-pro-plus": string;
370
+ "color-pro-plus-hover": string;
371
+ "color-pro-premium": string;
372
+ "color-pro-premium-hover": string;
373
+ "color-trial": string;
374
+ "color-trial-hover": string;
375
+ "color-mod": string;
376
+ "color-mod-hover": string;
377
+ "color-ad": string;
378
+ "color-broker-featured": string;
379
+ "color-broker-featured-hover": string;
380
+ "color-alert-status-active": string;
381
+ "color-alert-status-stopped": string;
382
+ "color-alert-status-triggered": string;
383
+ "color-overlay": string;
384
+ "color-search-button-hover": string;
385
+ "color-boost-button-content-selected": string;
386
+ "color-boost-button-content-hover": string;
387
+ "color-boost-button-bg-hover": string;
388
+ "color-boost-button-border-hover": string;
389
+ "color-boost-button-border-default": string;
390
+ "color-common-tooltip-text": string;
391
+ "color-replay-data-mode": string;
392
+ "color-legacy-success": string;
393
+ "color-collapse-tabs-border": string;
394
+ "color-site-widget-hover": string;
395
+ "color-attention": string;
396
+ "color-x-twitter-content": string;
397
+ "color-card-border": string;
398
+ "color-card-border-hover": string;
399
+ "color-background-special-primary": string;
400
+ "color-stroke-special-primary": string;
401
+ "color-selection-bg": string;
402
+ "color-default-gray": string;
403
+ "color-featured-broker-badge-bg": string;
404
+ "color-featured-broker-badge-bg-hover": string;
405
+ "color-featured-broker-badge-text": string;
180
406
  };
181
407
  export declare const VS: editor.IStandaloneThemeData;
182
408
  export declare const VS_DARK: editor.IStandaloneThemeData;