@guihz/trading-vue-editor-tes 0.1.8 → 0.1.9
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-CrprNqMy.js → parserTccWorker-BK-BIMe9.js} +1 -0
- package/lib/assets/{scriptsRunWorker-DwpQi_P7.js → scriptsRunWorker-D_5gdYgS.js} +14 -13
- package/lib/components/editor/v5/parseScript/buildInFuncNamespace/map.d.ts +4 -5
- package/lib/trading-vue-editor.es.packages.js +2 -2
- package/lib/trading-vue-editor.umd.packages.mjs +24 -24
- package/package.json +1 -1
@@ -80441,6 +80441,7 @@ ${this._prefixNameVar}.setCacheData("m${O}_" + ${m}, ${q})
|
|
80441
80441
|
let y = "";
|
80442
80442
|
const q = new Rg("_$");
|
80443
80443
|
let v = e ? "" : q.preParser(O);
|
80444
|
+
console.log(v);
|
80444
80445
|
const N = {};
|
80445
80446
|
if (e && !m.some((S) => S.type === Pe.Error)) {
|
80446
80447
|
const { code: S = "", hasLeftVisibleBarTime: _, hasRightVisibleBarTime: z } = q.parser(O) || {};
|
@@ -32334,54 +32334,55 @@ ${fd}`);
|
|
32334
32334
|
if (!e)
|
32335
32335
|
return;
|
32336
32336
|
const t = xu([e.keyTypeName, e.typeName]);
|
32337
|
-
return t._value = Object.
|
32337
|
+
return t._value = new Map(Object.entries(Object.fromEntries(e._value))), t;
|
32338
32338
|
}
|
32339
32339
|
get({ id: e, key: t }) {
|
32340
32340
|
if (e)
|
32341
|
-
return e._value
|
32341
|
+
return e._value.get(t);
|
32342
32342
|
}
|
32343
32343
|
put({ id: e, key: t, value: r }) {
|
32344
32344
|
if (!e)
|
32345
32345
|
return;
|
32346
|
-
const i = e._value
|
32347
|
-
return e._value
|
32346
|
+
const i = e._value.get(t);
|
32347
|
+
return e._value.set(t, r), i;
|
32348
32348
|
}
|
32349
32349
|
keys({ id: e }) {
|
32350
32350
|
if (!e)
|
32351
32351
|
return;
|
32352
32352
|
const t = d1(0, void 0, e.keyTypeName);
|
32353
|
-
let r =
|
32353
|
+
let r = [...e._value.keys()];
|
32354
32354
|
return [N0.INT, N0.FLOAT].includes(e.keyTypeName) ? r = r.map((i) => i === "undefined" ? void 0 : parseFloat(i)) : e.keyTypeName === N0.BOOL && (r = r.map((i) => i === "undefined" ? void 0 : i === "true")), t._value = r, t;
|
32355
32355
|
}
|
32356
32356
|
size({ id: e }) {
|
32357
32357
|
if (e)
|
32358
|
-
return
|
32358
|
+
return e._value.size;
|
32359
32359
|
}
|
32360
32360
|
clear({ id: e }) {
|
32361
|
-
e &&
|
32361
|
+
e && e._value.clear();
|
32362
32362
|
}
|
32363
32363
|
remove({ id: e, key: t }) {
|
32364
32364
|
if (!e)
|
32365
32365
|
return;
|
32366
|
-
const r = e._value
|
32367
|
-
return
|
32366
|
+
const r = e._value.get(t);
|
32367
|
+
return e._value.delete(t), r;
|
32368
32368
|
}
|
32369
32369
|
values({ id: e }) {
|
32370
32370
|
if (!e)
|
32371
32371
|
return;
|
32372
32372
|
const t = d1(0, void 0, e.typeName);
|
32373
|
-
return t._value =
|
32373
|
+
return t._value = [...e._value.values()], t;
|
32374
32374
|
}
|
32375
32375
|
put_all({ id: e, id2: t }) {
|
32376
32376
|
if (e) {
|
32377
32377
|
if (!t)
|
32378
32378
|
return e;
|
32379
|
-
|
32379
|
+
for (const [r, i] of t._value)
|
32380
|
+
e._value.set(r, i);
|
32380
32381
|
}
|
32381
32382
|
}
|
32382
32383
|
contains({ id: e, key: t }) {
|
32383
32384
|
if (e)
|
32384
|
-
return
|
32385
|
+
return e._value.has(t);
|
32385
32386
|
}
|
32386
32387
|
}
|
32387
32388
|
function xu(n) {
|
@@ -32389,7 +32390,7 @@ ${fd}`);
|
|
32389
32390
|
isMap: !0,
|
32390
32391
|
keyTypeName: n[0],
|
32391
32392
|
typeName: n[1],
|
32392
|
-
_value: /* @__PURE__ */
|
32393
|
+
_value: /* @__PURE__ */ new Map(),
|
32393
32394
|
type: s1.MAP
|
32394
32395
|
};
|
32395
32396
|
}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { IKeyObjectValue } from "../../../type";
|
2
1
|
import { VInsType } from "../enum";
|
3
2
|
interface IMapArgs {
|
4
3
|
id?: IPseudoMap;
|
@@ -14,14 +13,14 @@ export default class BuildInMap {
|
|
14
13
|
isMap: boolean;
|
15
14
|
keyTypeName: string;
|
16
15
|
typeName: string;
|
17
|
-
_value: any
|
16
|
+
_value: Map<any, any>;
|
18
17
|
type: VInsType;
|
19
18
|
};
|
20
19
|
copy({ id }: IMapArgs): {
|
21
20
|
isMap: boolean;
|
22
21
|
keyTypeName: string;
|
23
22
|
typeName: string;
|
24
|
-
_value: any
|
23
|
+
_value: Map<any, any>;
|
25
24
|
type: VInsType;
|
26
25
|
} | undefined;
|
27
26
|
get({ id, key }: IMapArgs): any;
|
@@ -38,14 +37,14 @@ interface IPseudoMap {
|
|
38
37
|
isMap: boolean;
|
39
38
|
keyTypeName: string;
|
40
39
|
typeName: string;
|
41
|
-
_value:
|
40
|
+
_value: Map<any, any>;
|
42
41
|
type: VInsType.MAP;
|
43
42
|
}
|
44
43
|
export declare function createMap(types: string[]): {
|
45
44
|
isMap: boolean;
|
46
45
|
keyTypeName: string;
|
47
46
|
typeName: string;
|
48
|
-
_value: any
|
47
|
+
_value: Map<any, any>;
|
49
48
|
type: VInsType;
|
50
49
|
};
|
51
50
|
export {};
|
@@ -9156,14 +9156,14 @@ function mr(i, n, r) {
|
|
9156
9156
|
function Sy() {
|
9157
9157
|
return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
|
9158
9158
|
}
|
9159
|
-
const Af = new Worker(new URL("" + new URL("assets/scriptsRunWorker-
|
9159
|
+
const Af = new Worker(new URL("" + new URL("assets/scriptsRunWorker-D_5gdYgS.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run MineScript Server" });
|
9160
9160
|
Af.onerror = (i) => {
|
9161
9161
|
console.error(i);
|
9162
9162
|
};
|
9163
9163
|
async function kf(i) {
|
9164
9164
|
return await _o.setInlayHints(i);
|
9165
9165
|
}
|
9166
|
-
const Lf = pa(Af), Tf = pa(new Worker(new URL("" + new URL("assets/parserTccWorker-
|
9166
|
+
const Lf = pa(Af), Tf = pa(new Worker(new URL("" + new URL("assets/parserTccWorker-BK-BIMe9.js", import.meta.url).href, import.meta.url), { type: "module", name: "Parser MineScript Server" }));
|
9167
9167
|
async function Oy(i, n = !1, r = Kt) {
|
9168
9168
|
r = Kt;
|
9169
9169
|
const s = await An(r);
|